/* Family accounts: /plus/, /account/, /kid/, /join/. Notebook Desk look: squared paper, flat colour, hard ink edges, no gradients,
   no glow, no glass. Everything is in rem; targets for children are at least 3.5rem (56px). Loaded after site.css. */

/* ---------- header link ---------- */
.top nav a.acct-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: .1875rem; }

/* ---------- /plus/: a prose page with a margin line, not a grid of cards ---------- */
.fam { max-width: 46rem; }
.fam-hero { padding-block: .875rem 1rem; }
.fam-hero .row { gap: .875rem 1.25rem; }
.fam-body { background: var(--wash); border-left: .1875rem solid var(--margin); padding-left: clamp(.875rem, 4vw, 1.75rem); }
.fam-sec { padding-block: .375rem 1rem; }
.fam-sec h2 { margin-top: .75rem; }
.fam-sec p, .fam-sec li { max-width: 62ch; }
.fam-sec ul { padding-left: 1.25rem; margin: .5rem 0 .75rem; }
.fam-sec li { margin-bottom: .5rem; }
.fam-steps { list-style: none; margin: .75rem 0; padding: 0; counter-reset: fs; }
.fam-steps li { counter-increment: fs; position: relative; padding: .125rem 0 .875rem 3rem; max-width: 62ch; }
.fam-steps li::before { content: counter(fs); position: absolute; left: 0; top: -.125rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--sun); font: 800 1.125rem/1 var(--f-d); transform: rotate(calc(-3deg * var(--tilt))); }
html.calm .fam-steps li::before { background: #fff; }
.fam-cta { margin: 1.25rem 0 2rem; padding: 1.25rem 1rem 1.375rem; border: 2px solid var(--ink); background: #fff; box-shadow: var(--shadow); }
.fam-cta h2 { margin: 0 0 .25rem; }
.fam-cta p { margin: 0 0 .875rem; color: var(--ink2); }

/* ---------- shared form bits ---------- */
.acct, .desk, .join-desk { max-width: 46rem; }
.acct .panel { padding: .875rem; border: 2px solid var(--edge); background: #fff; margin-bottom: 1.125rem; }
.acct .field input, .acct .field select { width: 100%; }
.acct h2.sec { margin-top: 1.75rem; }
.form-msg:empty { display: none; }
.form-msg { color: var(--ink); font-weight: 600; margin: 0; }
.reports-note { border-left: .25rem solid var(--margin); padding: .125rem 0 .125rem .875rem; display: grid; gap: .125rem; }
.reports-note > p:first-child { margin: 0; font-weight: 600; }
.consent { margin: 0; font-size: .875rem; color: var(--ink2); }
.btn.danger { border-color: var(--tom); color: var(--tom); background: #fff; }
.empty-note { margin: .5rem 0 1rem; }
.chip-av { width: 2rem; height: 2rem; display: inline-block; margin-right: .375rem; }
.chip-av svg { width: 100%; height: 100%; }
.acct .chips { margin-bottom: 1rem; }

/* The site's .prose list indent would push these lists sideways. */
.desk ol, .desk ul, .acct ol, .acct ul, .join-desk ul { padding-left: 0; margin-left: 0; }
.desk li, .acct li, .acct .plan-list { margin: 0; }

/* ---------- signed out: an open notebook ----------
   Left, the sign-in sheet: squared paper with the red margin line. Right, a contact-book page (連絡帳 / 알림장 / 聯絡簿):
   a sun-yellow label band, ruled rows with a date column, a red-ink "free" stamp. Flat colour and ink edges only. */
.app-page.app-out { max-width: 70rem; }
.app-out .acct { max-width: none; }
.acct-book { display: grid; gap: 1.5rem; margin: .25rem 0 2.25rem; }
.acct-sheet { position: relative; padding: 1rem 1rem 1.375rem 1.875rem; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.acct-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1rem; border-left: 2px solid var(--margin); pointer-events: none; }
.acct-sheet > .note { margin-bottom: .125rem; }
.acct-sheet > h2 { margin: 0 0 .875rem; font-size: clamp(1.375rem, 3.6vw, 1.75rem); }
.acct-sheet .paste { margin: 0 0 .875rem; }
.acct-form { display: grid; gap: 0; }
.acct-form > :first-child { margin-top: 0; }
.acct-ways { display: grid; gap: .625rem; }
/* Google's button rules: white, a grey #747775 edge, dark #1F1F1F text, the four-colour G at its own size. */
.g-btn { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 3.5rem; padding: .625rem 1rem; border: 1px solid #747775; border-radius: .875rem; background: #fff; color: #1F1F1F; font: 500 1rem/1.25 Roboto, "Segoe UI", system-ui, -apple-system, sans-serif, var(--cjk); cursor: pointer; }
.g-btn:hover { background: #F7F9FC; }
.g-btn:active { transform: translate(1px, 1px); }
.g-btn:focus-visible, .key-btn:focus-visible { outline: .1875rem solid var(--sky); outline-offset: 2px; }
.g-logo { display: inline-flex; width: 1.25rem; height: 1.25rem; flex: none; }
.g-logo svg, .key-ico svg { width: 100%; height: 100%; }
.key-btn { gap: .625rem; }
.key-ico { display: inline-flex; width: 1.75rem; height: 1.75rem; flex: none; }
.acct-or { display: flex; align-items: center; gap: .75rem; margin: 1.125rem 0 .5rem; color: var(--ink2); font-size: .875rem; text-align: center; }
.acct-or::before, .acct-or::after { content: ""; flex: 1 1 1.5rem; border-top: 2px dashed #C9D3E3; }
.acct-mail { display: grid; gap: .75rem; margin-top: .75rem; }
.acct-mail input[type="email"] { width: 100%; font: 400 1rem/1.4 var(--f-b), var(--cjk); border: 2px solid var(--edge); border-radius: .625rem; padding: .5rem .75rem; background: #fff; color: var(--ink); min-height: 3.5rem; }
.acct-mail input[type="email"]:focus-visible { outline: .1875rem solid var(--sky); outline-offset: 1px; }
/* Sign-up small print (owner, 5 Nov 2026: under the email box, and small): the parent box, then the weekly-report notice
   with its opt-out box. Under the sign-in buttons when email is off. Small type; each box row is still a 2.25rem+ tap target. */
.acct-fine { display: grid; gap: 0; font-size: .875rem; line-height: 1.45; color: var(--ink2); }
.acct-mail > .acct-fine { margin-top: -.25rem; }
.acct-form > .acct-fine { margin-top: 1rem; }
.acct-fine label.inline { display: flex; gap: .5rem; align-items: center; width: fit-content; max-width: 100%; min-height: 2.75rem; padding-right: .5rem; border-radius: .5rem; color: var(--ink); font-weight: 500; cursor: pointer; }
.acct-fine input[type="checkbox"] { width: 1.125rem; height: 1.125rem; margin: 0; }
.acct-fine label.inline.needs { outline: .1875rem solid var(--tom); outline-offset: .125rem; }
.acct-fine .reports-note { gap: 0; padding: .125rem 0 .125rem .625rem; border-left-width: .1875rem; }
.acct-fine .reports-note > p { margin: 0; font-size: .8125rem; }
.acct-fine .reports-note > p:first-child { font-size: .875rem; font-weight: 500; color: var(--ink); }
.acct-fine .reports-note label.inline { min-height: 2.75rem; }
.acct-form > .form-msg { margin-top: .75rem; color: var(--tom); }
.acct-sent { display: grid; gap: .25rem; justify-items: start; padding: .5rem 0 .25rem; }
.acct-sent h2 { margin: .25rem 0 .125rem; }
.acct-sent p { margin: 0 0 .25rem; }
.acct-sent .btn { margin-top: .625rem; }
.sent-ico { width: 4rem; height: 4rem; transform: rotate(calc(-6deg * var(--tilt))); }
.sent-ico svg { width: 100%; height: 100%; }

.acct-notebook { align-self: start; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; }
.nb-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 1rem .875rem 1.125rem; background: var(--sun); border-bottom: 2px solid var(--ink); }
html.calm .nb-head { background: var(--chip); }
.nb-head h2 { margin: 0; font-size: clamp(1.125rem, 3vw, 1.375rem); }
.nb-stamp { flex: none; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; padding: .25rem; border: .1875rem solid var(--tom); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 .1875rem #fff, inset 0 0 0 .3125rem var(--tom); color: var(--tom); font: 700 1.25rem/1 var(--f-h), var(--cjk); text-align: center; transform: rotate(calc(-12deg * var(--tilt))); margin: -.5rem -.25rem -.75rem 0; }
:lang(ja) .nb-stamp, :lang(ko) .nb-stamp, :lang(zh-Hant-TW) .nb-stamp { font: 700 1rem/1 var(--f-b), var(--cjk); }
.nb-rows { list-style: none; margin: 0; padding: 0; }
.nb-rows > li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); border-bottom: 1px solid #DCE6F2; }
.nb-ico { display: grid; place-items: center; padding: .625rem .5rem; border-right: 2px solid var(--margin); }
.nb-ico svg { width: 2.625rem; height: 2.625rem; }
.nb-rows > li > div { padding: .75rem 1rem .875rem; }
.nb-rows b { display: block; font: 700 1.0625rem/1.3 var(--f-d), var(--cjk); }
html.calm .nb-rows b { font-weight: 600; }
.nb-rows p { margin: .1875rem 0 0; color: var(--ink2); font-size: .9375rem; line-height: 1.55; }
.nb-foot { display: grid; gap: .375rem; padding: 1rem 1rem 1.125rem 5rem; }
.nb-foot p { margin: 0; }
.nb-keep { font-weight: 700; color: var(--ink); text-decoration-color: var(--sun); text-decoration-thickness: .1875rem; text-underline-offset: .25rem; }
@media (min-width: 56rem) {
  .acct-book { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
  .acct-sheet { padding: 1.375rem 1.75rem 1.75rem 2.75rem; }
  .acct-sheet::before { left: 1.5rem; }
  .acct-notebook { margin-top: .875rem; transform: rotate(calc(.6deg * var(--tilt))); }
}

/* ---------- parent dashboard ---------- */
.acct-top { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.who-am-i { margin: 0; color: var(--ink2); overflow-wrap: anywhere; }
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.125rem; }
.tabs button { flex: 1 1 0; min-height: 3rem; padding: .5rem .5rem; border: 2px solid var(--edge); border-bottom: 0; background: var(--chip); font: 700 .9375rem/1.1 var(--f-d), var(--cjk); cursor: pointer; border-radius: .5rem .5rem 0 0; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { background: var(--sun); border-color: var(--ink); }
html.calm .tabs button[aria-selected="true"] { background: #fff; }
.acct section[role="tabpanel"]:focus-visible { outline-offset: 6px; }

.kids { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.kids > li { border-top: 2px dashed var(--edge); padding-block: .875rem; }
.kids > li:first-child { border-top: 0; }
.kid-card { display: grid; gap: .625rem; }
.kid-id { display: flex; align-items: center; gap: .875rem; }
.kid-id h3 { margin: 0; overflow-wrap: anywhere; }
.kid-av { width: 4rem; height: 4rem; flex: none; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; transform: rotate(calc(-3deg * var(--tilt))); }
.kid-av svg, .desk-avatar svg, .who-btn svg { width: 86%; height: 86%; }
.kid-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.kid-edit { border-left: .25rem solid var(--sky); padding-left: .75rem; }
.kid-edit .panel { border: 0; padding: 0; background: none; }
.avatars { min-width: 0; }
.avatars { display: flex; flex-wrap: wrap; gap: .5rem; }
.avatars legend { width: 100%; }
.av-opt { position: relative; }
.av-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.av-opt label { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 2px solid var(--edge); background: #fff; cursor: pointer; }
.av-opt label svg { width: 82%; height: 82%; }
.av-opt input:checked + label { border-color: var(--ink); background: var(--sun); box-shadow: .125rem .125rem 0 var(--ink); }
html.calm .av-opt input:checked + label { background: var(--chip); }
.av-opt input:focus-visible + label { outline: .1875rem solid var(--sky); outline-offset: 2px; }
.plan { border: 2px dashed var(--edge); padding: .5rem .75rem; }
.plan summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0 .75rem; }
.pair-code { font: 600 1.75rem/1.2 var(--f-m) !important; letter-spacing: .3em; text-transform: uppercase; max-width: 12rem; }
.dev-list, .plain-list, .back-list, .next-list { list-style: none; margin: 0; padding: 0; }
.dev-list li, .plain-list li, .next-list li { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; justify-content: space-between; padding: .625rem 0; border-top: 1.5px dashed var(--edge); }
.dev-list li:first-child, .plain-list li:first-child, .next-list li:first-child { border-top: 0; }
.dev-list p { margin: 0; }

/* ---------- Progress charts ---------- */
.prog-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.prog-head h2 { margin: 0; }
.chart { padding: 1rem 0 1.125rem; border-top: 2px dashed var(--edge); }
.chart h3 { margin: 0 0 .125rem; }
.chart > .meta { margin-bottom: .625rem; max-width: 60ch; }
.chart figure { margin: 0; }
.ixl h4 { margin: 1rem 0 .25rem; font-size: 1rem; }
.ixl .plain { margin: 0; padding-left: 1.25rem; max-width: 60ch; }
.ixl .plain li { margin: .125rem 0; }
.tool-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.tool-bars li { display: grid; grid-template-columns: minmax(6rem, 30%) 1fr; gap: .125rem .75rem; align-items: center; }
.tool-bars .tb-name { font-weight: 600; }
.tool-bars .tb-bar { display: block; }
.tool-bars .tb-bar i { display: block; height: 100%; background: currentColor; }
.tool-bars .tb-val { grid-column: 1 / -1; font-size: .875rem; opacity: .8; }
.fig svg.ch { display: block; width: 100%; height: auto; max-width: 30rem; }
.fig svg.ch-week { max-width: 22rem; }
.fig svg.ch-times { max-width: 21rem; }
.fig svg.ch-cal { max-width: 28rem; }
.grade-row { display: grid; gap: .5rem; }
.grade-pencil svg { width: 100%; max-width: 24rem; height: auto; display: block; }
.as-table { margin-top: .5rem; }
.as-table summary { cursor: pointer; font-size: .875rem; color: var(--ink2); min-height: 2.75rem; display: flex; align-items: center; }
.table-wrap { overflow-x: auto; }
.ch-table { border-collapse: collapse; font-size: .875rem; width: 100%; }
.ch-table caption { text-align: left; font-weight: 600; padding-bottom: .25rem; }
.ch-table th, .ch-table td { text-align: left; padding: .375rem .5rem .375rem 0; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.ch-table thead th { font-size: .75rem; color: var(--ink2); font-weight: 600; }
.ch-table .sp { width: 5.5rem; }
.ch-spark { width: 5.25rem; height: 1.625rem; display: block; }
.back-list li { padding: .375rem 0; border-top: 1.5px dashed var(--edge); }
.back-list li:first-child { border-top: 0; }
.back-list b { font: 600 1.125rem/1.2 var(--f-m); }
.next-list li { align-items: center; }
.next-list li span { flex: 1 1 14rem; max-width: 40ch; }

/* ---------- kid desk ---------- */
.desk { padding-bottom: 2rem; }
.desk h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.desk-msg { font-size: 1.125rem; }
.desk-h { margin: .5rem 0 1rem; }
.who { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.who-btn { display: grid; justify-items: center; gap: .375rem; width: 8.5rem; min-height: 9.5rem; padding: .75rem .5rem; border: 2px solid var(--ink); background: #fff; box-shadow: var(--shadow); cursor: pointer; }
.who-btn > span:first-child { width: 5rem; height: 5rem; display: grid; place-items: center; }
.who li:nth-child(odd) .who-btn { transform: rotate(calc(-1.5deg * var(--tilt))); }
.who li:nth-child(even) .who-btn { transform: rotate(calc(1.2deg * var(--tilt))); }
.who-btn b { font: 800 1.25rem/1.1 var(--f-d), var(--cjk); overflow-wrap: anywhere; }
.who-btn:active { transform: translate(1px, 1px); }
.preview-note { border: 2px dashed var(--ink2); padding: .625rem .75rem; margin: 0 0 1rem; background: #fff; }
.watching-badge { display: inline-flex; align-items: center; gap: .625rem; margin: 0 0 1rem; padding: .5rem .875rem; background: var(--sun); border: 2px solid var(--ink); font: 700 1.0625rem/1.2 var(--f-d), var(--cjk); }
.watching-badge i { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 3px solid var(--ink); background: #fff; flex: none; box-shadow: inset 0 0 0 3px var(--ink); }
html.calm .watching-badge { background: #fff; font-weight: 600; }
.desk-top { display: grid; gap: .875rem; margin-bottom: 1.5rem; }
.desk-me { display: flex; align-items: center; gap: 1rem; }
.desk-avatar { width: 6rem; height: 6rem; flex: none; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transform: rotate(calc(-3deg * var(--tilt))); }
.desk-nick { margin: 0; font: 800 clamp(2rem, 9vw, 3rem)/1.05 var(--f-d), var(--cjk); overflow-wrap: anywhere; }
.desk-pencil svg { width: 100%; max-width: 26rem; height: auto; display: block; }
.desk-hops { margin: .375rem 0 0; font-size: 1.125rem; }
.desk-week, .desk-today, .desk-stamps { margin-bottom: 1.625rem; }
.wk { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .375rem; max-width: 26rem; }
.wk li { display: grid; justify-items: center; gap: .25rem; font: 700 .875rem/1 var(--f-d), var(--cjk); color: var(--ink2); }
.wk i { display: grid; place-items: center; width: 100%; aspect-ratio: 1; min-height: 2.75rem; border: 2px dashed var(--edge); background: #fff; font-style: normal; }
.wk li.on i { border: 2px solid var(--ink); background: var(--sun); }
html.calm .wk li.on i { background: var(--chip); }
.wk li.today i { border: 3px solid var(--ink); border-style: solid; }
.wk b { font-size: 1.5rem; line-height: 1; color: var(--ink); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.todo-row { display: grid; gap: .125rem; min-height: 3.5rem; padding: .625rem .875rem; border: 2px solid var(--ink); border-left-width: .625rem; background: #fff; text-decoration: none; color: var(--ink); }
.todo-row.plan { border-left-color: var(--tom); }
.todo-row.again { border-left-color: var(--pink); }
.todo-row.warm { border-left-color: var(--mint); }
.todo-row:hover { background: var(--chip); }
.todo-t { font: 700 1.1875rem/1.2 var(--f-d), var(--cjk); }
.todo-s { font-size: .9375rem; color: var(--ink2); overflow-wrap: anywhere; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr)); gap: .75rem .5rem; }
.stamps li { display: grid; justify-items: center; gap: .125rem; text-align: center; }
.stamp-art { width: 4.5rem; height: 4.5rem; }
.stamps li.got:nth-child(odd) .stamp-art { transform: rotate(calc(-4deg * var(--tilt))); }
.stamps li.got:nth-child(even) .stamp-art { transform: rotate(calc(3deg * var(--tilt))); }
.stamp-name { font: 600 .8125rem/1.25 var(--f-b), var(--cjk); color: var(--ink2); }
.stamps li.got .stamp-name { color: var(--ink); }
.desk-foot { display: flex; flex-wrap: wrap; gap: .875rem 1.5rem; align-items: center; justify-content: space-between; border-top: 2px dashed var(--edge); padding-top: 1.125rem; }
.desk-foot .finish { min-width: 10rem; }
.desk-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }

/* ---------- /join/ ---------- */
.join-desk { display: grid; gap: 1rem; justify-items: start; padding-bottom: 2rem; }
.join-ask { margin: 0; font: 700 1.5rem/1.25 var(--f-d), var(--cjk); }
.join-code { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0; }
.join-code span { display: grid; place-items: center; width: 3.5rem; height: 4.5rem; border: 2px solid var(--ink); background: #fff; font: 600 2.5rem/1 var(--f-m); box-shadow: .1875rem .1875rem 0 var(--ink); }
.join-qr-box summary { cursor: pointer; min-height: 3.5rem; display: flex; align-items: center; }
.join-qr .qr { width: 11rem; height: 11rem; }
.join-status { min-height: 1.5rem; }

/* ---------- small screens: nothing may scroll sideways ---------- */
/* Family tab: the three steps, the next-step note, each child's week, the data note (owner, 6 Nov 2026). */
.fam-steps-bar { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.5rem; padding: 0; }
.fam-steps-bar li { counter-increment: st; position: relative; display: grid; gap: .125rem; align-content: start; padding: .625rem .75rem .75rem 2.875rem; border: 2px solid var(--edge); border-radius: .875rem; background: #fff; }
.fam-steps-bar li::before { content: counter(st); position: absolute; left: .75rem; top: .5625rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font: 800 .875rem/1 var(--f-d); }
.fam-steps-bar li.now { box-shadow: var(--shadow); }
.fam-steps-bar li.now::before { background: var(--sun); }
.fam-steps-bar li.done { border-style: dashed; }
.fam-steps-bar li.done::before { content: "✓"; background: var(--chip); }
.fam-steps-bar b { font: 800 1rem/1.25 var(--f-d), var(--cjk); }
.fam-steps-bar .meta { font-size: .8438rem; line-height: 1.4; }
.next-step { display: grid; justify-items: start; gap: .5rem; margin-bottom: 1rem; }
.next-step p { margin: 0; }
.kid-week { display: grid; justify-items: start; gap: .375rem; }
.kid-week p { margin: 0; }
/* The parent stats dashboard: one sticker tile per number. */
.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; width: 100%; margin: .5rem 0 .25rem; }
.dash-tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dash-tile { display: grid; align-content: start; gap: .125rem; min-width: 0; padding: .5rem .625rem; border: 2px solid var(--ink); border-radius: .75rem; background: #fff; }
.dash-tile b { font: 600 1.5rem/1.15 var(--f-m); }
.dash-tile span { font-size: .8125rem; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.dash-tile.d1 { background: #FFF1C9; }
.dash-tile.d2 { background: #E4F1FC; }
.dash-tile.d3 { background: #E3F5EE; }
.dash-tile.d4 { background: #FDE6EC; }
.dash-tile.d5 { background: #F1EAFB; }
html.calm .dash-tile { border-color: var(--edge); background: #fff; }
.panel.pair { border-radius: 1rem; }
.pair > p:first-child { margin-top: 0; }
.pair .who { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.linkish { min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--ink); font: 600 .875rem/1.2 var(--f-b), var(--cjk); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: .1875rem; text-underline-offset: .1875rem; cursor: pointer; }
.linkish:focus-visible { outline: .1875rem solid var(--sky); outline-offset: 2px; }
.add-more { margin: 0 0 1.25rem; }
.data-note { margin-top: 1.75rem; padding-top: .25rem; border-top: 2px dashed var(--edge); }
.data-note h2.sec { margin-top: 1rem; }
.data-note p { max-width: 62ch; color: var(--ink2); font-size: .9375rem; }
.data-note b { color: var(--ink); }
@media (max-width: 40rem) { .fam-steps-bar { grid-template-columns: 1fr; gap: .5rem; } .fam-steps-bar li.done { padding-block: .5rem; } .fam-steps-bar li.done .meta { display: none; } }

/* Wide screens: the signed-in account uses the whole white page (owner, 6 Nov 2026: no empty half). */
@media (min-width: 64rem) {
  .app-page:not(.app-out) .acct { max-width: none; }
  .fam-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .fam-col > h2:first-child { margin-top: 0; }
  .prog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); }
  .prog > :not(.chart) { grid-column: 1 / -1; }
  .prog > .week { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 2.5rem; align-items: center; }
  .prog > .week > h3, .prog > .week > .meta { grid-column: 1 / -1; }
  .prog > .week > .dash-tiles { margin: 0; }
  .prog > .week > h3 + .dash-tiles { grid-column: 1 / -1; }
  .prog > .ixl { grid-column: 1 / -1; columns: 2; column-gap: clamp(2rem, 4vw, 3.5rem); }
  .prog > .ixl > h3, .prog > .ixl > .meta { column-span: all; }
  .prog > .ixl h4 { break-after: avoid; }
  .prog > .ixl ul, .prog > .ixl ol, .prog > .ixl > p { break-inside: avoid; }
  #p-settings { columns: 2; column-gap: clamp(2rem, 4vw, 3.5rem); }
  #p-settings > :not(.panel) { column-span: all; }
  #p-settings > .panel { break-inside: avoid; }
}

@media (max-width: 30rem) {
  .dash-tiles, .dash-tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs button { font-size: .8125rem; padding-inline: .25rem; }
  .join-code span { width: 2.75rem; height: 3.75rem; font-size: 2rem; }
  .kid-actions .btn { flex: 1 1 100%; }
}

/* ---------- printing the Progress tab ---------- */
@media print {
  header.top, footer.site, #langbar, .skip, .tabs, .acct-top, .noprint, .as-table summary, .acct-ways, .acct-notebook { display: none !important; }
  body { background: #fff !important; }
  .acct section[role="tabpanel"][hidden] { display: none !important; }
  .chart { break-inside: avoid; padding: .5rem 0 .625rem; }
  .acct { font-size: 10.5pt; line-height: 1.4; }
  .ixl h4 { margin: .5rem 0 .125rem; }
  .tool-bars { gap: .125rem; }
  .as-table:not([open]) { display: none; }
  /* Two columns of charts on paper; the pencil and the data note stay on screen. The unofficial line prints. */
  .prog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.25rem; }
  .prog > :not(.chart), .prog > .mistakes, .prog > .ixl, .prog > .week { grid-column: 1 / -1; }
  .prog > .grade, #p-progress .data-note { display: none !important; }
  .mt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem 1.25rem; }
  .unofficial { font-size: 8pt; padding: .25rem .5rem; }
}
@media (prefers-reduced-motion: reduce) { .stamp-art, .who-btn, .kid-av, .desk-avatar { transform: none !important; } }

/* Look B, Sticker book: the child's desk. Playful look only. */
html:not(.calm) .desk-avatar { border: .25rem solid var(--ink); background: var(--sun); box-shadow: .3125rem .3125rem 0 var(--ink); }
html:not(.calm) .wk i { border: .1875rem dashed var(--ink); border-radius: .75rem; background: var(--sb-sun); }
html:not(.calm) .wk li.on i { border: .1875rem solid var(--ink); background: var(--sun); transform: rotate(calc(-4deg * var(--tilt))); }
html:not(.calm) .wk li.today i { border: .1875rem solid var(--ink); background: var(--tom); }
html:not(.calm) .wk li.today b { color: #fff; }
html:not(.calm) .todo-row { border-width: .1875rem; border-left-width: .1875rem; border-radius: 1.125rem; box-shadow: .25rem .25rem 0 var(--ink); }
html:not(.calm) .todo-row.plan { background: var(--sb-sun); }
html:not(.calm) .todo-row.again { background: var(--sb-pink); }
html:not(.calm) .todo-row.warm { background: var(--sb-mint); }
html:not(.calm) .todo-row:hover { background: #fff; }
html:not(.calm) .stamps li.got { padding: .375rem .25rem; border: .1875rem solid var(--ink); border-radius: 1rem; background: var(--sb-sun); }
html:not(.calm) .stamps li.got:nth-child(even) { background: var(--sb-sky); }

/* Child's-device instructions above the code box (owner, 6 Nov 2026: say where the join page is). */
.pair-wrap { display: grid; gap: .75rem; }
.join-how { border: 1px solid #c9cfdb; border-left: 4px solid var(--ink); background: #fff; padding: .75rem 1rem; }
.join-how h3 { margin: 0 0 .375rem; font-size: 1rem; }
.join-how ol { list-style: decimal; padding-left: 1.25rem !important; margin: 0; display: grid; gap: .5rem; }
.join-addr { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .25rem; }
.join-addr a { font: 600 1.125rem/1.3 var(--f-m); color: var(--ink); background: #f4f6fa; border: 1px dashed var(--ink); padding: .25rem .5rem; overflow-wrap: anywhere; }
.join-how .join-qr-box summary { min-height: 2.75rem; font-size: .9375rem; }
.join-addr-inline { font-family: var(--f-m); overflow-wrap: anywhere; }
.kid-here { margin-top: 1rem; }

/* Parent view (signed-in account page, owner 6 Nov 2026): the calm look plus a plainer, more technical layer.
   Thin rules instead of stickers, numbers in monospace, one ink colour for amounts, red only for "most mistakes". */
.unofficial { margin: 0 0 1rem; padding: .5rem .75rem; border: 1px solid var(--edge); border-left: 3px solid var(--ink); background: #fff; color: var(--ink2); font-size: .8125rem; line-height: 1.5; }
.unofficial b { color: var(--ink); }
.parent-view .tabs { border-bottom: 1px solid var(--ink); }
.parent-view .tabs button { border: 1px solid var(--edge); border-bottom: 0; border-radius: .25rem .25rem 0 0; background: var(--chip); font: 600 .9375rem/1.1 var(--f-b), var(--cjk); margin-bottom: -1px; }
.parent-view .tabs button[aria-selected="true"] { background: #fff; border-color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.parent-view .dash-tile { border: 1px solid var(--edge); border-radius: .25rem; background: #fff; padding: .5rem .625rem .5625rem; }
.parent-view .dash-tile b { font: 600 1.375rem/1.15 var(--f-m); }
.parent-view .dash-tile > span { font-size: .75rem; color: var(--ink2); }
.delta { display: block; font: 500 .6875rem/1.3 var(--f-m); color: var(--ink2); }
.delta span { font-family: var(--f-b), var(--cjk); }
.delta.up { color: #1C6E52; }
.delta.down { color: #A8382A; }
.parent-view .chart { border-top: 1px solid var(--edge); }
.parent-view .chart h3 { font-size: 1rem; }
.parent-view .kids > li { border-top: 1px solid var(--edge); }
.parent-view .fam-steps-bar li { border: 1px solid var(--edge); border-radius: .25rem; }
.parent-view .fam-steps-bar li.now { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.parent-view .fam-steps-bar li::before { border-width: 1px; font-family: var(--f-m); font-weight: 600; }
.parent-view .fam-steps-bar li.now::before { background: var(--ink); color: #fff; }
.parent-view .data-note { border-top: 1px solid var(--edge); }
.parent-view .panel { border-radius: .375rem; }
/* Most-missed question types */
.mt-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .75rem; }
.mt-list li { display: grid; gap: .1875rem; }
.mt-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.mt-head b { font-weight: 600; }
.mt-num { font: 600 .9375rem/1 var(--f-m); }
.mt-bar { display: block; line-height: 0; }
.mt-bar svg { display: block; width: 100%; height: .625rem; }
.mt-meta { font-size: .8125rem; overflow-wrap: anywhere; }
.mt-meta a { color: var(--ink); }
@media (min-width: 64rem) { .prog > .mistakes { grid-column: 1 / -1; } .mt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
