/* Card 56 (14 Oct): Lexend for text and boxes, Fredoka for titles; shipped with the app (OFL, public/fonts/OFL-*.txt). */
@font-face { font-family:"Fredoka"; font-style:normal; font-weight:300 700; font-display:swap; src:url(/fonts/fredoka-latin-ext.woff2) format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:"Fredoka"; font-style:normal; font-weight:300 700; font-display:swap; src:url(/fonts/fredoka-latin.woff2) format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Lexend"; font-style:normal; font-weight:100 900; font-display:swap; src:url(/fonts/lexend-latin-ext.woff2) format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:"Lexend"; font-style:normal; font-weight:100 900; font-display:swap; src:url(/fonts/lexend-latin.woff2) format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg:#fff6fb; --wash:radial-gradient(ellipse at 0% 0%,#ffe1f0,transparent 55%),radial-gradient(ellipse at 100% 20%,#e9ddff,transparent 55%),radial-gradient(ellipse at 30% 100%,#d6f5ea,transparent 55%);
  --card:#fff; --card2:#fbf6ff; --ink:#36244a; --muted:#6a587d; --line:#eadcf7;
  --primary:#7144b9; --soft:#f0e7fc; --cta:linear-gradient(120deg,#ffb5d8,#ceb6f4 58%,#ade9d7); --cta-ink:#2b173f;
  --good:#e0f7ed; --good-ink:#155a40; --hint:#fff2cf; --hint-ink:#654800;
  --shadow:0 8px 28px #7144b910,0 2px 4px #7144b908; --radius:25px;
  color-scheme:light;
  font-family:"Lexend",ui-rounded,"Segoe UI",system-ui,sans-serif;
}
:root[data-theme="oceano"] { --bg:#edf9ff; --wash:radial-gradient(ellipse at top left,#d1f4f2,transparent 65%),radial-gradient(ellipse at bottom right,#d7e6ff,transparent 65%); --card2:#f0f9ff; --ink:#163e55; --muted:#496779; --line:#d0e7f0; --primary:#116789; --soft:#dcf2fa; --cta:linear-gradient(120deg,#92e9e0,#acd2ff); --cta-ink:#123d54; }
:root[data-theme="floresta"] { --bg:#f0faef; --wash:radial-gradient(ellipse at top left,#dff3cd,transparent 65%),radial-gradient(ellipse at bottom right,#cdeee2,transparent 65%); --card2:#f2faf0; --ink:#244c37; --muted:#536a58; --line:#d7e9d5; --primary:#2c714e; --soft:#e1f0dc; --cta:linear-gradient(120deg,#c9e7a6,#95ddbf); --cta-ink:#20452f; }
:root[data-theme="por-do-sol"] { --bg:#fff7ed; --wash:radial-gradient(ellipse at top left,#ffe0b9,transparent 65%),radial-gradient(ellipse at bottom right,#ffd7e2,transparent 65%); --card2:#fff7f1; --ink:#633546; --muted:#7d5964; --line:#f0ddd7; --primary:#a34257; --soft:#ffe9df; --cta:linear-gradient(120deg,#ffd19d,#ffb8cf); --cta-ink:#603043; }
:root[data-theme="noite"] { --bg:#181525; --wash:radial-gradient(ellipse at top left,#312445,transparent 65%),radial-gradient(ellipse at bottom right,#193d3e,transparent 65%); --card:#252031; --card2:#30293f; --ink:#f4efff; --muted:#c6b9d6; --line:#463950; --primary:#d0b7ff; --soft:#3a2e50; --cta:linear-gradient(120deg,#edb3d1,#c2b2f7,#a7decb); --cta-ink:#2a193b; --good:#203e33; --good-ink:#b6f2d9; --hint:#433819; --hint-ink:#ffe8a3; --shadow:0 8px 28px #0002; color-scheme:dark; }
:root[data-theme="simples"] { --bg:#f6f7f9; --wash:none; --card2:#f8f9fb; --ink:#1d2433; --muted:#4f5a6e; --line:#e1e5ec; --primary:#1f5fd1; --soft:#eaf1fd; --cta:#1f5fd1; --cta-ink:#fff; --shadow:0 2px 6px #14203209; --radius:18px; }
/* checkout-2-themes start: W21 (João 22 Oct, 54a). The three themes a paid plan opens (Aurora with Plus; Galáxia and
   Coral with Completo and Família), the plan word beside the wordmark («o Explica Plus»), the locked tile where 54a
   allows it (a teen's own account and the plans pages) and a learner's one-time «Temas novos desbloqueados». Colours
   only: no motion, no blur, no layer of their own, so an old phone paints them like the other six. AA pairs: tests. */
:root[data-theme="aurora"] { --bg:#effaf7; --wash:radial-gradient(ellipse at 15% 0%,#bff2df,transparent 58%),radial-gradient(ellipse at 88% 12%,#d8cfff,transparent 55%),radial-gradient(ellipse at 50% 100%,#c2e6ff,transparent 60%); --card2:#f2fbf9; --ink:#123b3e; --muted:#3e6164; --line:#cbe8e3; --primary:#0b6a62; --soft:#d9f3ed; --cta:linear-gradient(120deg,#8eedd0,#a6dcff 52%,#cdbcff); --cta-ink:#10353a; --shadow:0 8px 28px #0b6a6212,0 2px 4px #0b6a620a; }
:root[data-theme="galaxia"] { --bg:#f4f2ff; --wash:radial-gradient(circle at 16% 22%,#a99cf0 1px,transparent 2px),radial-gradient(circle at 74% 10%,#a99cf0 1px,transparent 2px),radial-gradient(circle at 88% 62%,#c39be0 1px,transparent 2px),radial-gradient(circle at 32% 80%,#a99cf0 1px,transparent 2px),radial-gradient(ellipse at 0% 0%,#ddd2ff,transparent 55%),radial-gradient(ellipse at 100% 30%,#f9d3ec,transparent 55%),radial-gradient(ellipse at 40% 100%,#cfe0ff,transparent 60%); --card2:#f7f5ff; --ink:#1e1948; --muted:#4f4a78; --line:#e0dbf7; --primary:#4a2fb0; --soft:#e8e3ff; --cta:linear-gradient(120deg,#b9adff,#f3b6e0 52%,#9fd0ff); --cta-ink:#1f1747; --shadow:0 8px 28px #4a2fb014,0 2px 4px #4a2fb00a; }
:root[data-theme="coral"] { --bg:#fff5f1; --wash:radial-gradient(ellipse at 0% 0%,#ffd3c4,transparent 55%),radial-gradient(ellipse at 100% 10%,#ffe6b0,transparent 50%),radial-gradient(ellipse at 60% 100%,#b8efe5,transparent 60%); --card2:#fff7f4; --ink:#44201b; --muted:#744840; --line:#f6dcd4; --primary:#a8352a; --soft:#ffe5dd; --cta:linear-gradient(120deg,#ffb39c,#ffd58c 50%,#86e3d4); --cta-ink:#47201a; --shadow:0 8px 28px #a8352a12,0 2px 4px #a8352a0a; }
/* 20261123a: the hint's surface per theme (--tip, --tip-ink; text at 4.5:1 or more, checked in Chrome for every theme). Pastel, the
   default: a stronger pink (João, 23 Nov 06:11); the others: their own accent, mixed into their card colour. */
:root { --tip:#ffe0ef; --tip-ink:#7a1c4c; }
:root[data-theme]:not([data-theme="pastel"]) { --tip:color-mix(in srgb,var(--primary) 13%,var(--card)); --tip-ink:color-mix(in srgb,var(--primary) 55%,var(--ink)); }
:root[data-theme="noite"]:not([data-theme="pastel"]) { --tip:color-mix(in srgb,var(--primary) 20%,var(--card)); --tip-ink:#efe4ff; }
html[data-theme="aurora"] { --field-line:#76938f; }
html[data-theme="galaxia"] { --field-line:#8d87ad; }
html[data-theme="coral"] { --field-line:#9d817b; }
.theme-aurora { background:linear-gradient(130deg,#c4f3e2,#cde6ff,#ddd3ff); color:#123b3e; }
.theme-galaxia { background:radial-gradient(circle at 80% 24%,#ffffff 1.5px,transparent 2.5px),radial-gradient(circle at 62% 64%,#ffffff 1px,transparent 2px),linear-gradient(130deg,#d9d0ff,#f6cfe8,#c9e2ff); color:#1e1948; }
.theme-coral { background:linear-gradient(130deg,#ffc9b8,#ffe2a8,#a6eadf); color:#44201b; }
.theme-option.theme-locked { cursor:default; border:2px dashed var(--line); }
.theme-option b { font-weight:700; }
.theme-option small { font-size:13px; font-weight:600; line-height:1.3; }
.plan-themes { grid-template-columns:repeat(3,minmax(0,1fr)); margin:12px 0 0; }
.plan-themes .theme-option { min-height:96px; padding:12px; }
.brand-pair.with-plan { display:inline-flex; align-items:center; gap:6px; }
.side-wordmark .brand-pair.with-plan { display:flex; flex-wrap:wrap; row-gap:8px; }
.brand-plan { font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:14px; font-weight:700; line-height:1; letter-spacing:.2px; padding:5px 10px 6px; border-radius:999px; background:var(--cta); color:var(--cta-ink); white-space:nowrap; }
.theme-news { position:relative; }
.home-layers > .theme-news { margin:0; }
.theme-news h2 { padding-right:44px; }
.theme-news-close { position:absolute; top:8px; right:8px; min-width:44px; min-height:44px; }
/* checkout-2-themes end */
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--bg); background-image:var(--wash); background-attachment:fixed; min-height:100dvh; font-size:16px; line-height:1.5; }
button,input { font:inherit; }
button,a,input,summary { -webkit-tap-highlight-color:transparent; }
/* João (7 Nov): no double-tap zoom on fast taps; two-finger pinch zoom stays (viewport keeps user scaling). */
html,a,button,input,select,textarea,label,summary,[role="button"],[role="tab"],[role="checkbox"],[role="radio"],[role="switch"],[role="option"],[role="menuitem"] { touch-action:manipulation; }
button { color:inherit; cursor:pointer; }
button:disabled { cursor:default; opacity:.55; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-synthesis:none; }
h1 { font-size:28px; line-height:1.2; font-weight:800; letter-spacing:-.6px; }
h2 { font-size:24px; line-height:1.25; font-weight:800; letter-spacing:-.35px; }
h3 { font-size:18px; line-height:1.35; }
img,svg,canvas { max-width:100%; }
progress { appearance:none; border:0; width:100%; height:10px; background:var(--soft); border-radius:20px; overflow:hidden; display:block; }
progress::-webkit-progress-bar { background:var(--soft); border-radius:20px; }
progress::-webkit-progress-value { background:var(--cta); border-radius:20px; }
progress::-moz-progress-bar { background:var(--cta); border-radius:20px; }
.skip { position:fixed; top:-100px; left:8px; z-index:100; padding:12px; background:var(--card); color:var(--ink); }
.skip:focus { top:8px; }
.desktop-story { display:none; }
.preview-tools { max-width:430px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:0 14px; min-height:48px; gap:8px; }
.preview-label { font-size:11px; color:var(--muted); }
.text-button { border:0; background:none; padding:10px 0; min-height:48px; font-size:12px; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.phone-shell { max-width:430px; min-height:calc(100dvh - 48px); margin:0 auto; position:relative; display:flex; flex-direction:column; }
.topbar { padding:12px 20px; min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.wordmark { font-weight:900; font-size:25px; letter-spacing:-1.25px; }
.wordmark span { color:var(--primary); font-size:23px; padding-left:3px; }
.topbar .quiet { width:48px; }
.topbar .title { font-size:14px; font-weight:700; flex:1; text-align:center; }
.topbar .avatar-mini { width:46px; height:46px; border-radius:17px; display:grid; place-items:center; background:var(--soft); font-size:25px; }
.screen { padding:10px 20px 26px; flex:1; min-width:0; }
.screen:focus { outline:none; }
/* round 13 (R13-SCR-L2): a heading that takes the focus for screen readers is not a control: no focus box. */
:is(h1,h2)[tabindex="-1"]:focus { outline:none; }
.stack { display:flex; flex-direction:column; gap:16px; }
.row { display:flex; align-items:center; gap:10px; }
.between { justify-content:space-between; }
.muted { color:var(--muted); }
.small { font-size:13px; }
.center { text-align:center; }
.card { border:1px solid var(--line); border-radius:var(--radius); padding:22px; background:var(--card); box-shadow:var(--shadow); }
.btn { min-height:52px; border-radius:17px; padding:12px 18px; border:1px solid var(--line); background:var(--card); font-weight:700; display:flex; align-items:center; justify-content:center; gap:8px; line-height:1.35; text-decoration:none; }
.btn:active { transform:translateY(1px); }
.btn.cta { background:var(--cta); color:var(--cta-ink); border:0; box-shadow:0 5px 0 #6a447218; }
.btn.primary { background:var(--primary); color:var(--card); border-color:var(--primary); }
:root[data-theme="noite"] .btn.primary { color:#251535; }
.btn.soft { background:var(--soft); color:var(--primary); border:0; box-shadow:none; }
.btn.quiet,.quiet { border:0; background:transparent; box-shadow:none; min-height:48px; padding:10px; }
.btn.wide { width:100%; }
.btn.giant { min-height:68px; font-size:21px; border-radius:20px; }
.actions { display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.tag { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; padding:6px 10px; border-radius:10px; background:var(--soft); color:var(--primary); }
.greeting { margin:4px 0 20px; }
.greeting h1 { font-size:27px; }
.greeting p { color:var(--muted); margin-top:5px; font-size:14px; }
.xp { margin-bottom:22px; }
.xp .row { font-size:12px; margin-bottom:8px; }
.xp strong { font-size:13px; }
.continue-card { padding:20px; background:var(--card); border:1px solid var(--line); border-radius:28px; box-shadow:var(--shadow); position:relative; margin-bottom:14px; }
.continue-head { display:flex; align-items:center; gap:4px; margin-bottom:14px; }
.continue-copy { flex:1; min-width:0; }
.continue-copy h2 { font-size:23px; margin:10px 0 6px; }
.continue-copy p { font-size:12px; color:var(--muted); }
.continue-art { width:102px; height:100px; object-fit:contain; flex-shrink:0; }
.quick { width:100%; justify-content:space-between; padding:14px 18px; margin-bottom:14px; }
.quick .quick-copy { text-align:left; display:flex; flex-direction:column; gap:3px; }
.quick small { color:var(--muted); font-weight:400; font-size:12px; }
.photo-home { width:100%; min-height:72px; padding:14px 16px; justify-content:flex-start; text-align:left; font-size:15px; margin-bottom:18px; }
.photo-home .photo-icon { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; background:var(--soft); font-size:23px; flex-shrink:0; }
.test-strip { border-radius:14px; padding:12px 14px; background:var(--hint); color:var(--hint-ink); display:flex; align-items:center; gap:10px; font-size:12px; margin-bottom:20px; }
.subjects { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.subject-chip { min-height:48px; border:1px solid var(--line); padding:8px 12px; border-radius:14px; background:var(--card); font-size:12px; font-weight:600; }
.subject-chip.selected { background:var(--soft); border-color:var(--primary); color:var(--primary); }
.bottom-nav { display:flex; justify-content:space-around; padding:7px 14px max(9px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--card); border-radius:24px 24px 0 0; position:sticky; bottom:0; z-index:5; margin-top:12px; }
.nav-item { display:flex; flex-direction:column; gap:1px; align-items:center; justify-content:center; border:0; background:none; color:var(--muted); font-size:10px; min-height:52px; min-width:75px; border-radius:13px; }
.nav-item span { font-size:22px; }
.nav-item.active { background:var(--soft); color:var(--primary); font-weight:700; }
.onboarding { padding-top:16px; }
.onboarding h1 { font-size:30px; margin:6px 0 10px; }
.onboard-step { display:flex; gap:6px; margin:0 0 24px; }
.onboard-step span { width:24px; height:5px; border-radius:6px; background:var(--line); }
.onboard-step span.active { background:var(--primary); }
.theme-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:24px 0; }
.theme-option { border:2px solid transparent; border-radius:21px; min-height:100px; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; padding:14px; font-size:13px; font-weight:700; }
.theme-option span { font-size:21px; }
.theme-option[aria-pressed="true"] { border-color:var(--primary); box-shadow:0 0 0 3px var(--card); }
.theme-pastel { background:linear-gradient(130deg,#ffe1ee,#eadbff,#d8f5e9); color:#36244a; }
.theme-oceano { background:linear-gradient(130deg,#d1f4f2,#c6dfff); color:#163e55; }
.theme-floresta { background:linear-gradient(130deg,#e2f0c6,#bfe6d6); color:#244c37; }
.theme-por-do-sol { background:linear-gradient(130deg,#ffe2b5,#ffcbdc); color:#633546; }
.theme-noite { background:linear-gradient(130deg,#322745,#1b363c); color:#f4efff; }
.theme-simples { background:#fff; color:#1d2433; box-shadow:inset 0 0 0 1px #ddd; }
.avatar-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:26px 0; }
.avatar-option { font-size:31px; min-height:66px; border:2px solid var(--line); border-radius:20px; background:var(--card); }
.avatar-option[aria-pressed="true"] { border-color:var(--primary); background:var(--soft); }
.big-avatar { font-size:70px; width:130px; height:130px; margin:24px auto; background:var(--soft); border-radius:44px; display:grid; place-items:center; }
.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.profile-tile { flex-direction:column; min-width:0; min-height:174px; padding:20px 12px; gap:14px; border:2px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.profile-tile:hover,.profile-tile:focus-visible { border-color:var(--primary); background:var(--card2); }
.profile-avatar { display:grid; place-items:center; width:86px; height:86px; border-radius:29px; background:var(--soft); font-size:52px; line-height:1; }
.profile-name { max-width:100%; overflow-wrap:anywhere; font-size:18px; }
.pin-screen { width:100%; max-width:340px; margin:0 auto; gap:12px; }
.pin-screen [hidden] { display:none; }
.pin-screen .big-avatar { width:112px; height:112px; margin:4px auto; border-radius:36px; font-size:68px; }
.pin-dots { display:flex; justify-content:center; align-items:center; gap:16px; min-height:36px; }
.pin-dot { width:18px; height:18px; border:2px solid var(--primary); border-radius:50%; background:var(--card); }
.pin-dot.filled { background:var(--primary); }
.pin-notice { min-height:24px; }
.pinpad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.pin-key { min-height:68px; padding:12px 4px; font-size:27px; touch-action:manipulation; user-select:none; }
.pin-key.cta { font-size:16px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.input { width:100%; min-height:56px; border:2px solid var(--line); border-radius:16px; padding:13px 16px; background:var(--card); color:var(--ink); font-size:17px; }
label { display:block; font-size:14px; font-weight:600; margin-bottom:8px; }
.path-intro { margin-bottom:20px; }
.path-intro h1 { margin:8px 0; font-size:27px; }
.unit { margin-bottom:24px; }
.unit-heading { background:var(--card); border:1px solid var(--line); border-radius:20px; padding:16px 18px; box-shadow:var(--shadow); position:relative; z-index:1; }
.unit-heading .unit-count { font-size:12px; color:var(--muted); margin-bottom:6px; }
.unit-heading h2 { font-size:20px; }
.unit-heading .tag { margin-top:10px; font-size:11px; }
.trail { position:relative; padding:25px 12px 16px; }
.trail-line { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.trail-line path { stroke:var(--line); stroke-width:4; stroke-linecap:round; fill:none; stroke-dasharray:7 10; }
.step-row { display:flex; align-items:center; min-height:104px; gap:15px; position:relative; }
.step-row:nth-of-type(4n+2) { padding-left:18px; }
.step-row:nth-of-type(4n+3) { padding-left:70px; }
.step-row:nth-of-type(4n+4) { padding-left:40px; }
.step-node { width:62px; height:62px; flex-shrink:0; border:3px solid var(--card); background:var(--soft); color:var(--primary); font-size:25px; border-radius:23px; box-shadow:0 5px 0 var(--line); display:grid; place-items:center; }
.step-node.next { background:var(--cta); color:var(--cta-ink); animation:pulse 3s ease-in-out infinite; }
.step-node.done { background:var(--good); color:var(--good-ink); }
/* 20261123a (João's phone, 23 Nov: a finished step "gets invisible for a while" after he presses it): a tapped button stays off
   while the next screen loads (core.js button), and every off button is drawn at 55 % (button:disabled), which left the pale green
   tile almost white, with the trail's dotted line showing through it. A step's tile and its title keep their full colour then. */
.step-row .step-node:disabled, .step-row .step-label:disabled, .final-row .step-node:disabled { opacity:1; }
.step-label { background:none; border:0; text-align:left; padding:7px 0; flex:1; min-height:64px; font-size:13px; font-weight:700; line-height:1.35; }
.step-label small { display:block; font-size:11px; font-weight:400; color:var(--muted); margin-top:4px; }
.step-stars { font-size:12px; letter-spacing:1px; color:var(--hint-ink); }
.future-unit { display:flex; gap:12px; align-items:center; width:100%; border:1px solid var(--line); background:var(--card); padding:16px; border-radius:19px; text-align:left; min-height:90px; }
.future-unit .step-node { width:48px; height:48px; font-size:20px; border-width:2px; border-radius:17px; }
.future-unit strong { display:block; font-size:14px; }
.future-unit small { display:block; margin-top:5px; color:var(--muted); font-size:11px; }
.lesson-top { padding:0 20px 16px; }
.lesson-top .row { color:var(--muted); font-size:11px; margin-bottom:8px; }
.player { padding-top:0; }
.lesson-card { padding:21px; border-radius:26px; }
.card-type { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.card-type .tag { font-size:12px; }
.read-btn { width:48px; height:48px; border:0; background:var(--card2); border-radius:15px; font-size:22px; }
.lesson-card h1 { font-size:25px; margin-bottom:16px; }
.explanation p { margin-top:10px; line-height:1.6; font-size:16px; }
.explanation.simple { border-left:3px solid var(--primary); padding-left:13px; }
.simple-label { font-size:12px; font-weight:700; color:var(--primary); margin:10px 0; }
.media { margin-top:18px; background:#fff; border:1px solid var(--line); border-radius:17px; overflow:hidden; color:#36244a; }
.media img { width:100%; display:block; }
.media figcaption { font-size:11px; line-height:1.45; padding:12px; color:#584769; }
.media figure { margin:0; }
.media-svg { width:100%; height:auto; display:block; }
.media-step-caption { padding:8px 12px 12px; font-size:12px; }
.media-controls { display:flex; justify-content:center; gap:8px; margin-top:8px; }
.media-controls button { min-width:48px; min-height:48px; background:#f1e8fc; border-radius:12px; color:#513479; }
.media .muted { padding:0 12px 12px; color:#584769; }
.diagram-zoom { width:100%; border:0; background:none; padding:0; min-height:48px; }
.media-modal { border:1px solid var(--line); padding:15px; border-radius:22px; background:var(--card); color:var(--ink); width:min(940px,94vw); max-height:92dvh; }
.media-modal::backdrop { background:#241b4090; }
.media-modal img { display:block; width:100%; }
.question { font-size:19px; line-height:1.4; font-weight:700; margin:4px 0 20px; }
.options { display:flex; flex-direction:column; gap:10px; }
.option { width:100%; border:2px solid var(--line); border-radius:16px; padding:12px; min-height:58px; display:flex; align-items:center; gap:12px; text-align:left; background:var(--card); font-size:14px; line-height:1.4; }
.option .letter { display:grid; place-items:center; width:29px; height:29px; flex-shrink:0; border-radius:9px; background:var(--card2); color:var(--muted); font-size:12px; font-weight:700; }
.option.correct { background:var(--good); border-color:var(--good-ink); color:var(--good-ink); }
.option.missed { border-color:#c19b58; background:var(--hint); color:var(--hint-ink); }
.feedback { margin-top:16px; border-radius:16px; padding:16px; background:var(--hint); color:var(--hint-ink); font-size:14px; }
.feedback.good { background:var(--good); color:var(--good-ink); }
.feedback strong { display:block; margin-bottom:6px; }
.feedback .btn { margin-top:12px; background:transparent; border-color:currentColor; color:inherit; min-height:48px; font-size:13px; }
.answer-form { display:flex; flex-direction:column; gap:10px; }
.answer-form label { font-size:12px; color:var(--muted); margin:0; }
.remember-list { list-style:none; padding:0; margin:20px 0 0; }
.remember-list li { padding:15px 0; display:flex; gap:14px; align-items:flex-start; border-bottom:1px solid var(--line); font-size:15px; }
.remember-list li:last-child { border:0; }
.remember-list span { background:var(--soft); color:var(--primary); display:grid; place-items:center; width:30px; height:30px; flex-shrink:0; border-radius:10px; font-weight:800; }
.player-footer { margin-top:14px; }
.player-footer .small { margin-top:14px; text-align:center; font-size:11px; }
.prereq-prompt { text-align:center; margin-top:20px; }
.prereq-prompt .emoji { font-size:46px; margin:10px 0; }
.celebration { padding-top:24px; }
.celebration .celebration-art { width:190px; height:160px; margin:0 auto 14px; display:block; }
.celebration h1 { font-size:31px; margin:12px 0; }
.xp-award { display:inline-flex; background:var(--hint); color:var(--hint-ink); padding:10px 22px; border-radius:15px; font-size:25px; font-weight:800; margin:20px 0; }
.celebration .card { text-align:left; margin-top:18px; }
.xp-float { position:fixed; top:32%; left:50%; transform:translateX(-50%); font-weight:900; font-size:29px; color:var(--primary); background:var(--card); border-radius:18px; padding:8px 18px; box-shadow:var(--shadow); pointer-events:none; z-index:40; animation:float-up 1.6s ease-out forwards; }
#confetti { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:30; }
.toast { position:fixed; bottom:90px; left:50%; transform:translateX(-50%); width:min(355px,calc(100% - 30px)); border-radius:17px; padding:15px 20px; background:var(--ink); color:var(--card); box-shadow:var(--shadow); z-index:60; font-size:14px; text-align:center; }
.photo-area { min-height:200px; margin:22px 0; border:2px dashed var(--line); border-radius:24px; background:var(--card2); display:flex; flex-direction:column; justify-content:center; align-items:center; gap:10px; padding:24px; text-align:center; }
.photo-area .emoji { font-size:52px; }
.photo-area p { font-size:13px; color:var(--muted); }
.photo-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.photo-area + .file-label,.file-label + .btn,.fake-page { margin-bottom:14px; }
.file-label { margin:0; cursor:pointer; }
.file-label:focus-within { outline:3px solid var(--primary); outline-offset:3px; }
.fake-page { width:100%; padding:22px; border-radius:16px; text-align:left; background:var(--card); border:1px solid var(--line); }
.fake-page .page-line { height:6px; margin-top:12px; width:90%; background:var(--line); border-radius:5px; }
.fake-page .page-line:nth-child(3) { width:65%; }
.reading-ring { width:60px; height:60px; border-radius:50%; border:5px solid var(--line); border-top-color:var(--primary); animation:spin 1.3s linear infinite; }
.photo-result { margin:20px 0; }
.photo-result h2 { margin:12px 0; font-size:23px; }
.setting-group { margin-top:24px; }
.setting-group h2 { font-size:18px; margin-bottom:12px; }
.setting-group .theme-grid { margin:12px 0; }
.setting-group .avatar-grid { margin:12px 0; }
.toggle { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:58px; border:1px solid var(--line); padding:14px; border-radius:16px; background:var(--card); text-align:left; font-size:14px; }
.toggle .switch { width:44px; height:26px; border-radius:20px; padding:4px; background:var(--line); }
.toggle .switch::before { content:""; display:block; background:var(--card); width:18px; height:18px; border-radius:50%; }
.toggle[aria-pressed="true"] .switch { background:var(--primary); }
.toggle[aria-pressed="true"] .switch::before { margin-left:18px; }
.family-link { margin-top:24px; }
.family-screen h1 { margin:8px 0 18px; }
.trial { margin-bottom:20px; background:var(--soft); border:0; }
.trial h2 { font-size:21px; margin-bottom:12px; }
.billing-toggle { display:flex; background:var(--soft); padding:5px; border-radius:16px; gap:5px; margin-bottom:14px; }
.billing-toggle button { min-height:48px; flex:1; border:0; border-radius:12px; background:transparent; font-size:14px; }
.billing-toggle button.selected { background:var(--card); box-shadow:var(--shadow); font-weight:700; }
.plan { margin-bottom:12px; }
.plan h2 { font-size:20px; }
.plan-price { font-size:29px; font-weight:800; margin:10px 0; }
.plan-price small { font-size:13px; font-weight:400; }
.plan .muted { font-size:13px; }
.invite { margin:20px 0; background:var(--good); color:var(--good-ink); }
.invite h2 { font-size:19px; margin-bottom:10px; }
.timer-ring { display:grid; place-items:center; width:150px; height:150px; margin:28px auto; position:relative; }
.timer-ring svg { position:absolute; inset:0; }
.timer-ring circle { fill:none; stroke:var(--line); stroke-width:7; }
.timer-ring circle:last-child { stroke:var(--primary); stroke-dasharray:285 320; stroke-linecap:round; transform:rotate(-90deg); transform-origin:center; }
.timer-ring span { font-size:38px; }
.break-screen h1 { margin-bottom:15px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
[hidden] { display:none !important; }
@keyframes pulse { 50% { box-shadow:0 5px 0 var(--line),0 0 0 8px var(--soft); } }
@keyframes float-up { 0% { opacity:0; } 20% { opacity:1; } 100% { opacity:0; translate:0 -65px; } }
@keyframes spin { to { transform:rotate(360deg); } }
@media(min-width:850px) {
  body { padding:44px 0 36px; }
  .desktop-story { display:block; position:fixed; left:calc(50% - 525px); top:calc(50% - 220px); width:360px; }
  .desktop-story .wordmark { font-size:37px; }
  .desktop-story h1 { font-size:34px; line-height:1.3; margin:28px 0 16px; letter-spacing:-1px; }
  .desktop-story p { font-size:17px; line-height:1.7; color:var(--muted); }
  .story-art { width:150px; margin:20px 0 8px -13px; display:block; }
  .story-note { font-size:12px; color:var(--muted); }
  .phone-shell { width:410px; min-height:720px; margin-left:calc(50% + 12px); background:var(--bg); background-image:var(--wash); border:1px solid var(--line); border-radius:34px; box-shadow:0 25px 90px #43305520,0 0 0 8px #ffffff45; overflow:clip; }
  .preview-tools { margin-left:calc(50% + 12px); width:410px; padding:0 7px; margin-top:-40px; margin-bottom:10px; }
  .preview-label { font-size:12px; }
}
@media(min-width:850px) and (max-width:1100px) { .desktop-story { left:5%; width:320px; } .phone-shell,.preview-tools { margin-left:53%; } }
@media(max-width:374px) { .screen { padding-left:16px; padding-right:16px; } .topbar { padding-left:16px; padding-right:16px; } .continue-art { width:86px; } .continue-copy h2 { font-size:21px; } .step-row:nth-of-type(4n+3) { padding-left:52px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } .xp-float,#confetti { display:none; } }

/* Production shell and feature screens. All layout lives here for CSP self. */
.app-layout { display:flex; flex-direction:column; flex:1; min-height:100dvh; min-width:0; }
.brand { width:132px; height:auto; }
.brand-dark { display:none; }
:root[data-theme="noite"] .brand-light { display:none; }
:root[data-theme="noite"] .brand-dark { display:block; }
:root[data-theme="noite"] .story-brand { filter:brightness(0) invert(1); }
.story-brand { width:190px; }
.story-plico { display:block; width:225px; margin:24px 0; }
.desktop-story h2 { font-size:32px; line-height:1.25; margin-bottom:14px; }
.intro-plico { width:170px; height:170px; object-fit:contain; margin:4px auto; }
.feedback-plico { width:90px; height:90px; object-fit:contain; align-self:center; }
.screen h1 { overflow-wrap:anywhere; }
.screen p,.prose { overflow-wrap:anywhere; }
.prose { max-width:65ch; }
.prose p { margin:0 0 14px; }
.prose p:last-child { margin-bottom:0; }
.prose ul,.prose ol { padding-left:22px; }
.subject-row { justify-content:flex-start; text-align:left; gap:14px; }
.subject-row span:last-child { display:flex; flex-direction:column; gap:4px; min-width:0; }
.subject-row small { font-size:13px; color:var(--muted); }
.subject-icon { font-size:28px; }
.check { display:flex; align-items:center; gap:12px; min-height:52px; font-size:15px; margin:0; padding:8px 0; }
.check input { width:24px; height:24px; flex-shrink:0; accent-color:var(--primary); }
textarea,select { font:inherit; }
textarea.input { resize:vertical; }
.input { min-width:0; }
select.input { max-width:100%; }
input[type=file] { font-size:14px; padding:10px; }
input[type=file]::file-selector-button { min-height:48px; padding:8px; border:0; border-radius:12px; margin-right:8px; background:var(--soft); color:var(--ink); font:inherit; }
.check input:focus-visible,textarea:focus-visible,select:focus-visible,dialog:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.notice { background:var(--hint); color:var(--hint-ink); border-radius:14px; padding:14px 16px; font-size:14px; }
.option { text-align:left; justify-content:flex-start; min-height:56px; font-weight:600; }
.feedback { border-radius:17px; padding:16px; }
.feedback.good,.good { background:var(--good); color:var(--good-ink); }
.feedback.hint { background:var(--hint); color:var(--hint-ink); }
.recap-list { padding-left:24px; display:grid; gap:16px; margin:0; }
.offset-0 { padding-left:0; }.offset-1 { padding-left:28px; }.offset-2 { padding-left:12px; }
.trail { border-left:4px dotted var(--line); margin-left:34px; padding-left:0; }
.step-row .step-node { margin-left:-34px; flex-shrink:0; }
.step-label { min-width:0; overflow-wrap:anywhere; min-height:64px; }
.qr { width:230px; align-self:center; background:#fff; border-radius:18px; padding:12px; }
.pair-code { font-size:26px; font-weight:800; letter-spacing:2px; text-align:center; overflow-wrap:anywhere; }
.phrase-group summary { min-height:52px; padding:12px; border-radius:12px; background:var(--soft); cursor:pointer; }
.phrase-group > div { margin-top:10px; }
.chat-log { display:grid; gap:12px; max-height:380px; overflow:auto; }
.reactions { display:flex; flex-wrap:wrap; gap:8px; }
.reaction { min-width:48px; font-size:22px; padding:8px; }
.memory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.memory-tile { overflow-wrap:anywhere; min-height:70px; font-weight:600; }
.memory-tile[aria-pressed=true] { border:2px solid var(--primary); background:var(--soft); }
.matched { background:var(--good); color:var(--good-ink); opacity:1 !important; border-color:var(--good-ink); }
.letter-grid { display:flex; flex-wrap:wrap; gap:8px; }
.letter { min-width:48px; font-size:22px; }
.answer-tiles { min-height:56px; border-bottom:2px solid var(--line); font-size:26px; letter-spacing:2px; }
.billing-toggle [aria-pressed=true] { background:var(--card); border:2px solid var(--primary); }
/* premium-1: use the existing pastel/night tokens and keep each offer readable on a phone. */
.premium-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:16px; }
.premium-plan { min-width:0; }
.screen:has(.plan-price) .chip { overflow-wrap:normal; }
.premium-plan .plan-price { margin:0; }
.premium-plan .tag { align-self:flex-start; }
.premium-plan .btn.cta { margin-top:auto; }
.media-host { min-width: 0; max-width: 100%; }
.lesson-media { margin:12px 0 0; min-width:0; }
.media-img { display:block; width:100%; height:auto; border-radius:16px; }
.media-open { display:block; padding:0; border:0; background:transparent; cursor:zoom-in; width:100%; }
.media-caption,.media-step-caption { font-size:13px; color:var(--muted); margin-top:10px; }
/* 29 «passo a passo» (media-ui.js passosCard): every drawing stacked in one cell, so the card keeps the tallest one's
   height from the first move and the arrows never move; one line under it; back, «3 de 8», forward (44 px). */
.passos-frames { display:grid; }
/* the drawing gives way first (app-screens-fit rule): the card, its line and the arrows fit 360x640 above the action bar */
.passos-frames > img.passos-img { grid-area:1/1; align-self:start; max-height:min(340px,max(170px,calc(100vh - 430px))); object-fit:contain; object-position:center top; }
.passos-frames > img.passos-off { visibility:hidden; }
.passos-line { display:grid; margin-top:8px; }
.passos-line > .passos-text { grid-area:1/1; margin:0; }
.passos-line > .passos-off { visibility:hidden; }
.passos-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.passos-bar .passos-btn { min-width:56px; min-height:44px; padding:0 16px; }
.passos-bar .passos-btn:disabled { opacity:.4; }
.passos-back-ic { display:inline-flex; transform:scaleX(-1); }
.passos-pos { margin:0; }
.media-host .media-controls { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.media-host button { min-height:48px; min-width:48px; border-radius:12px; padding:8px 12px; border:1px solid var(--line); background:var(--card2); color:var(--ink); font:inherit; }
.media-svg { width:100%; height:auto; border-radius:16px; }
.media-3d-stage { position:relative; width:100%; height:300px; min-width:0; overflow:hidden; border-radius:16px; }
.media-3d-stage canvas { display:block; width:100%; height:100%; touch-action: none; }
.media-3d-labels { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.media-3d-label { position:absolute; max-width:140px; font-size:13px; border-radius:8px; padding:4px 7px; background:#ffffffee; color:#163e55; }
.media-dialog { width: calc(100% - 24px); max-width:900px; max-height:92dvh; border:1px solid var(--line); border-radius:22px; padding:16px; color:var(--ink); background:var(--card); }
.media-dialog::backdrop { background:#24143299; }
.media-dialog img { width:100%; height:auto; }
.media-parts,.anatomia-parts { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.media-parts button { text-align:left; }
.btn,.subject-chip,.text-button,summary { min-height:48px; }
.bottom-nav { gap:2px; }.nav-item { min-width:60px; flex:1; }
@media(max-width:340px) { .bottom-nav { padding-left:6px; padding-right:6px; } .nav-item { min-width:56px; } }  /* 20261123c: the five entries fit 320 px (22a ran 2 px over) */
.test-strip { border:0; min-height:52px; cursor:pointer; text-align:left; }
@media(min-width:850px) { .app-layout { min-height:720px; }.phone-shell { min-height:720px; }.screen { padding-bottom:28px; } }
@media(max-width:374px) { .step-row { gap:10px; }.step-row .step-node { width:58px; height:58px; }.card { padding:18px; }.memory-tile { padding:10px; } }
@media(prefers-reduced-motion:reduce) { .step-node.next { animation:none; }.btn:active { transform:none; } }

/* Answer tools stay in the page flow above the input, never over it or the OS keyboard. */
.answer-blocks,.answer-checklist { min-width:0; max-width:100%; }
.answer-blocks [hidden],.answer-checklist[hidden] { display:none; }
/* 14 Nov: the «Teclado Explica» is gone; only the symbols a phone keyboard lacks, in one calm row next to the box. */
.symbol-strip { display:flex; flex-wrap:wrap; gap:6px; min-width:0; max-width:100%; }
.symbol-key { min-width:48px; min-height:48px; flex:0 0 auto; padding:6px 10px; border-radius:12px; background:var(--card2); font-size:22px; font-weight:600; line-height:1; }
.block-actions { display:flex; flex-wrap:wrap; gap:6px; }
.block-actions .btn { min-width:48px; min-height:48px; }
textarea.input { font:inherit; line-height:1.5; resize:vertical; width:100%; min-height:96px; }
.answer-text { scroll-margin-block:12px; }
.answer-block { justify-content:flex-start; text-align:left; overflow-wrap:anywhere; min-height:48px; }
.answer-block-order { margin:0; padding-left:24px; }
.answer-block-selected { min-width:0; padding:12px; border:1px solid var(--line); border-radius:16px; background:var(--card2); overflow-wrap:anywhere; }
.block-gap { min-width:0; max-width:100%; min-height:48px; }
.answer-checklist { padding:12px; background:var(--soft); border-radius:16px; }
.answer-checklist .check { min-height:48px; overflow-wrap:anywhere; }
.answer-model { overflow-wrap:anywhere; }
textarea:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
@media(max-width:374px) { .answer-block { padding:10px; }.symbol-key { min-width:44px; min-height:44px; padding:6px 8px; } }
@media(max-width:600px) and (max-height:520px) { .app-layout:has(.exercise:focus-within) .bottom-nav { display:none; } }
/* 20261123a (João's iPhone, 23 Nov, «Procurar tópicos»: "the bar covers the text and i cant see what im typing"): the rules above
   step the tab bar aside only when the page gets short, and an iPhone never makes the page shorter for its keys (they cover it).
   On a touch phone the bar now steps aside whenever a box that opens the phone's keys has the focus, on every screen that has
   both, and comes back when the box is left. Our own pads (inputmode none), ticks, wheels and lists are not typing. */
@media(max-width:849px) {
  html.field-keys .app-layout > .bottom-nav { display:none; }  /* 20261123b (review m2): set by core.js only while the keys are up */
}
/* 20261123a (photo of «Os teus testes» on the iPhone: the bar floated with a strip of page under it): the bar keeps to the end of
   the page (sticky), so whatever shows below its edge (the iPhone's bounce at the end of a short page, a browser bar settling)
   showed the page's background as a band. Below its edge the bar now continues in its own colour; nothing else moves. */
@media(max-width:849px) { .app-layout > .bottom-nav { box-shadow:0 100px 0 40px var(--card); } }
@media(prefers-reduced-motion:reduce) { .symbol-key:active { transform:none; } }

/* 12 Oct: Teste de treino, Desafio final, Caderneta do Plico, Como responder bem, emails, reports. */
.wrap { flex-wrap:wrap; }
.tight { gap:6px; }
.app-footer { display:flex; justify-content:center; padding:2px 20px 10px; }
.app-footer .text-button,.report-link { min-height:48px; font-size:13px; }
.text-button { cursor:pointer; }
.notice strong { display:block; }
.notice strong.inline { display:inline; }
.pc-notice p { margin-top:4px; }
.facts { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.facts li { display:flex; gap:12px; align-items:flex-start; font-size:15px; overflow-wrap:anywhere; }
.facts li > span:first-child { flex-shrink:0; width:24px; text-align:center; }
.answer-box { background:var(--card2); border:1px solid var(--line); border-radius:16px; padding:14px 16px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.55; }
.answer-box.model { background:var(--good); color:var(--good-ink); border-color:transparent; }
.answer-box.weak { background:var(--hint); color:var(--hint-ink); border-color:transparent; }
.char-count { font-size:12px; color:var(--muted); text-align:right; margin-top:-8px; }
.solution-lines { margin:0; padding-left:22px; display:grid; gap:8px; }
.exam-intro { margin-bottom:-4px; }
.exam-top { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.exam-clock { display:inline-flex; align-items:center; min-height:36px; padding:6px 12px; border-radius:12px; background:var(--card2); border:1px solid var(--line); color:var(--muted); font-weight:700; font-size:14px; font-variant-numeric:tabular-nums; }
.clock-toggle { font-size:13px; color:var(--muted); }
.save-status { min-height:20px; font-size:13px; color:var(--muted); }
.exam-nav { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.option[aria-pressed="true"] { border-color:var(--primary); background:var(--soft); color:var(--primary); }
.option[aria-pressed="true"] .letter { background:var(--primary); color:var(--card); }
.question-map { display:grid; grid-template-columns:repeat(auto-fill,minmax(60px,1fr)); gap:8px; }
.map-item { flex-direction:column; gap:0; min-height:58px; padding:6px; }
.map-item small { font-size:12px; color:var(--muted); }
.map-item.answered { background:var(--good); color:var(--good-ink); border-color:transparent; }
.map-item.answered small { color:inherit; }
.choice-list { border:0; padding:0; margin:0; min-width:0; display:grid; gap:10px; }
.choice-list legend { font-weight:700; font-size:15px; margin-bottom:10px; padding:0; }
.choice-list .check { min-height:52px; }
.choice-card { display:flex; align-items:center; gap:12px; min-height:56px; padding:12px 14px; margin:0; border:2px solid var(--line); border-radius:16px; background:var(--card); font-size:15px; font-weight:600; cursor:pointer; overflow-wrap:anywhere; }
.choice-card input { width:22px; height:22px; flex-shrink:0; accent-color:var(--primary); }
.choice-card:has(input:checked) { border-color:var(--primary); background:var(--soft); }
.choice-card:has(input:disabled) { cursor:default; opacity:.8; }
.choice-card:focus-within { outline:3px solid var(--primary); outline-offset:2px; }
.share-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.share-list li { display:flex; gap:10px; align-items:flex-start; font-size:15px; }
.share-list li > span:first-child { flex-shrink:0; width:24px; text-align:center; }
.share-list li.off { color:var(--muted); }
/* Path: the final challenge and the conquered marks. */
.path-tools { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; margin:-8px 0 18px; }
.path-tools > * { min-width:0; }
.path-tools .btn { width:100%; min-height:48px; font-size:13px; padding:8px 10px; }
.guide-slot:empty { display:none; }
.final-row .step-node.final { background:var(--hint); color:var(--hint-ink); }
.final-row .step-node.locked { background:var(--card2); color:var(--muted); box-shadow:0 5px 0 var(--line); }
.final-row .step-node.conquered { background:var(--good); color:var(--good-ink); }
.conquered-tag { background:var(--good); color:var(--good-ink); }
.sticker-tag { border:0; min-height:48px; cursor:pointer; }
.final-lock { font-size:60px; text-align:center; }
.final-steps summary { min-height:48px; padding:12px; border-radius:12px; background:var(--soft); color:var(--primary); font-weight:700; cursor:pointer; }
.final-steps > div { margin-top:12px; }
/* Reward: Plico celebrates and the sticker flips in. All motion stops with prefers-reduced-motion. */
.reward { align-items:center; text-align:center; }
.reward .xp-award { margin:4px 0; }
.reward-plico { width:120px; height:120px; object-fit:contain; animation:hop 1.1s ease-out 1; }
.sticker-stage { perspective:900px; }
.sticker-flip,.sticker-mini,.sticker-big { position:relative; overflow:hidden; display:grid; place-items:center; background:var(--card); border:4px solid #fff; border-radius:28px; box-shadow:var(--shadow); }
.sticker-flip { width:180px; height:180px; margin:0 auto; animation:flip-in .9s ease-out .25s both; }
.sticker-flip img,.sticker-big img,.sticker-mini img { width:88%; height:88%; object-fit:contain; }
.sticker-mini { width:96px; height:96px; border-radius:20px; align-self:center; }
.sticker-name { font-weight:800; font-size:18px; }
.shiny { border-color:#f2cf62; box-shadow:0 0 0 3px #f2cf6266,var(--shadow); }
.shiny::after { content:""; position:absolute; inset:-30%; background:linear-gradient(115deg,transparent 42%,#ffffffa8 50%,transparent 58%); transform:translateX(-70%); animation:shine 5s ease-in-out infinite; pointer-events:none; }
@keyframes hop { 0%,100% { transform:translateY(0); } 30% { transform:translateY(-14px); } 60% { transform:translateY(0); } 80% { transform:translateY(-5px); } }
@keyframes flip-in { from { transform:rotateY(180deg) scale(.6); opacity:0; } to { transform:none; opacity:1; } }
@keyframes shine { 0%,55% { transform:translateX(-70%); } 100% { transform:translateX(70%); } }
/* Caderneta do Plico: Panini-like pages. */
.album-cover { align-items:center; text-align:center; }
.album-plico { width:130px; height:130px; object-fit:contain; }
.album-stats { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.album-row { min-height:84px; }
.album-book { font-size:30px; flex-shrink:0; }
.album-book-copy { display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.album-book-copy progress { height:8px; margin-top:4px; }
.album-home .quick-copy { display:flex; flex-direction:column; gap:3px; }
.album-home small { color:var(--muted); font-weight:400; font-size:12px; }
.album-page { background:#fffaf0; color:#3d2f1f; border:1px solid #efe0c6; border-radius:22px; padding:14px; box-shadow:var(--shadow); }
:root[data-theme="noite"] .album-page { background:var(--card2); color:var(--ink); border-color:var(--line); }
.album-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.sticker-slot { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; min-height:136px; padding:22px 6px 8px; border-radius:16px; border:2px dashed #d9c7a6; background:#fff6e4; color:inherit; font:inherit; font-size:11px; font-weight:700; line-height:1.25; text-align:center; cursor:pointer; }
.sticker-slot.owned { border:2px solid #fff; background:#fff; box-shadow:0 3px 10px #3d2f1f1a; }
:root[data-theme="noite"] .sticker-slot { background:var(--card); border-color:var(--line); }
.sticker-slot:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.slot-number { position:absolute; top:5px; left:8px; font-size:11px; font-weight:800; opacity:.6; }
.slot-face { position:relative; overflow:hidden; display:block; width:100%; max-width:84px; aspect-ratio:1; border-radius:14px; }
.slot-face.shiny { border:2px solid #f2cf62; }
.sticker-img { display:block; width:100%; height:100%; object-fit:contain; }
.silhouette { filter:brightness(0); opacity:.13; }
:root[data-theme="noite"] .silhouette { filter:brightness(0) invert(1); opacity:.18; }
.slot-name { overflow-wrap:anywhere; hyphens:auto; }
.sticker-slot.missing .slot-name { font-weight:600; opacity:.75; }
.sticker-dialog { width:min(380px,calc(100% - 24px)); max-height:92dvh; border:1px solid var(--line); border-radius:24px; padding:20px; background:var(--card); color:var(--ink); }
.sticker-dialog::backdrop { background:#24143299; }
.sticker-big { width:220px; height:220px; margin:0 auto; }
.sticker-big.missing { background:var(--card2); border-style:dashed; border-color:var(--line); }
/* Como responder bem. */
.recipe { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; counter-reset:recipe; }
.recipe li { counter-increment:recipe; background:var(--soft); color:var(--primary); border-radius:12px; padding:8px 12px; font-weight:700; font-size:14px; }
.recipe li::before { content:counter(recipe) ". "; }
.guide-more summary { min-height:52px; padding:12px 14px; border-radius:14px; background:var(--card); border:1px solid var(--line); font-weight:700; cursor:pointer; }
.guide-more[open] summary { margin-bottom:12px; }
@media(max-width:374px) { .album-grid { gap:8px; }.sticker-slot { min-height:124px; padding-top:20px; } }
@media(prefers-reduced-motion:reduce) { .reward-plico,.sticker-flip { animation:none; }.shiny::after { display:none; } }
/* The parents' unsubscribe page (served by the backend, no script). */
.unsubscribe-page { padding-top:28px; align-items:center; }
.unsubscribe-page .brand { width:150px; }
.unsubscribe-page form { width:100%; }
@media(min-width:850px) { .phone-shell.solo { margin-left:auto; margin-right:auto; } }
/* Tags keep their own width inside stacks (centred on celebration screens). */
.stack > .tag { align-self:flex-start; }
.center > .tag,.reward > .tag,.album-cover > .tag,.sticker-dialog .tag { align-self:center; }
.sticker-dialog .stack { align-items:center; }
.sticker-dialog .btn.wide { align-self:stretch; }
.exam-count { margin:0; letter-spacing:0; }
.guide-question { font-size:19px; line-height:1.4; }
/* Polish 1 (13 Oct): cards 26, 29, 33 and 23. Transform and opacity only; all still with reduced motion. */
/* Card 26: a small 🐞 top-right on lesson and exercise cards (44 px), its hover/focus label, and Plico's one-time tip. */
.card-head { gap:8px; }
.card-tools { display:flex; align-items:center; gap:4px; flex-shrink:0; }
.bug-button { position:relative; display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border:1px solid var(--line); border-radius:14px; background:var(--card2); font-size:20px; line-height:1; flex-shrink:0; }
.bug-button:active { transform:scale(.94); }
.bug-button:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.bug-label { position:absolute; right:calc(100% + 8px); top:50%; z-index:2; padding:5px 9px; border-radius:9px; background:var(--ink); color:var(--card); font-size:12px; font-weight:700; white-space:nowrap; pointer-events:none; opacity:0; transform:translate(4px,-50%); transition:opacity .15s ease-out,transform .15s ease-out; }
.bug-button:focus-visible .bug-label { opacity:1; transform:translate(0,-50%); }
@media(hover:hover) { .bug-button:hover { border-color:var(--primary); } .bug-button:hover .bug-label { opacity:1; transform:translate(0,-50%); } }
.bug-tip { position:relative; display:flex; align-items:center; gap:10px; margin-top:-4px; padding:8px 8px 8px 10px; border-radius:16px; background:var(--hint); color:var(--hint-ink); animation:tip-in .35s ease-out both; }
.bug-tip::before { content:""; position:absolute; top:-6px; right:16px; width:12px; height:12px; border-radius:2px; background:var(--hint); transform:rotate(45deg); }
.bug-tip p { flex:1; min-width:0; font-size:14px; font-weight:700; line-height:1.35; }
.bug-tip-plico { width:44px; height:44px; object-fit:contain; flex-shrink:0; animation:tip-hop .9s ease-out .3s both; }
.bug-tip .bug-tip-ok { padding:8px 10px; color:inherit; font-size:13px; text-decoration:underline; text-underline-offset:3px; flex-shrink:0; }
@keyframes tip-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
@keyframes tip-hop { 0%,100% { transform:none; } 40% { transform:translateY(-6px); } 70% { transform:translateY(0); } }
/* Card 29: key terms in lessons as a soft highlighter in the subject's colour (content/subjects.json, 30 % on white,
   42 % on the dark card). The ink stays the theme's ink: AA on every tint (tests/test_polish_1.py checks each ratio).
   Opt-in (core.js markdown with a subject), so legal and billing texts keep plain bold. */
.lesson-prose { --hl:#fff0b3; }
/* 29 fit pass: no last word alone on its line in a lesson's text (Chrome and Safari; elsewhere it wraps as before) */
#screen .card p.lesson-prose, #screen .card .lesson-prose p, #screen .card .lesson-prose li, #screen .card li.lesson-prose, #screen .card .passos-text { text-wrap:balance; }
#screen .card .idea-head h1 { text-wrap:balance; }
/* 29 fit pass (app-screens-fit rule, art gives way first): on a phone a lesson's figure (not an animation: its words would
   get too small) is never taller than
   the screen left after the bar, the title, a few lines and the action bar; a tap still opens it larger. */
@media (max-width:767px) { #screen .card .lesson-media:not(.passos) .media-img { max-height:min(70vh,max(200px,calc(100vh - 420px))); object-fit:contain; } }
.media-caption { text-wrap:balance; }
.lesson-prose .key-term { font-weight:800; color:inherit; padding:0 .18em; margin:0 -.04em; border-radius:.3em; background:linear-gradient(to top,var(--hl) 0 66%,transparent 66%); -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.lesson-prose[data-subject="por"] { --hl:#f6ccd9; } .lesson-prose[data-subject="mat"] { --hl:#c6d2f6; } .lesson-prose[data-subject="ing"] { --hl:#fad8c2; } .lesson-prose[data-subject="fra"] { --hl:#c0e2f3; }
.lesson-prose[data-subject="esp"] { --hl:#f8e8c0; } .lesson-prose[data-subject="ale"] { --hl:#f4c7c5; } .lesson-prose[data-subject="hgp"] { --hl:#e7c9e2; } .lesson-prose[data-subject="his"] { --hl:#e5d2c4; }
.lesson-prose[data-subject="geo"] { --hl:#b9e2dc; } .lesson-prose[data-subject="cn"] { --hl:#d1e7c5; } .lesson-prose[data-subject="fq"] { --hl:#dccef3; } .lesson-prose[data-subject="em"] { --hl:#c4e7d8; }
.lesson-prose[data-subject="mta"] { --hl:#c9d4f3; } .lesson-prose[data-subject="mcs"] { --hl:#ceddfa; } .lesson-prose[data-subject="fqa"] { --hl:#f6d4c4; } .lesson-prose[data-subject="bge"] { --hl:#c1e2d4; }
.lesson-prose[data-subject="fis"] { --hl:#f4d0bf; } .lesson-prose[data-subject="qui"] { --hl:#efcac1; } .lesson-prose[data-subject="bio"] { --hl:#c0dccd; } .lesson-prose[data-subject="gel"] { --hl:#dcd2c9; }
.lesson-prose[data-subject="hia"] { --hl:#e1cec4; } .lesson-prose[data-subject="gea"] { --hl:#c0dce2; } .lesson-prose[data-subject="eca"] { --hl:#d3ddbd; } .lesson-prose[data-subject="fil"] { --hl:#d7cfe9; }
.lesson-prose[data-subject="psb"] { --hl:#e7cfe2; }
:root[data-theme="noite"] .lesson-prose { --hl:#5b4d1f; }
:root[data-theme="noite"] .lesson-prose[data-subject="por"] { --hl:#743752; } :root[data-theme="noite"] .lesson-prose[data-subject="mat"] { --hl:#313f7b; } :root[data-theme="noite"] .lesson-prose[data-subject="ing"] { --hl:#7a4733; }
:root[data-theme="noite"] .lesson-prose[data-subject="fra"] { --hl:#285577; } :root[data-theme="noite"] .lesson-prose[data-subject="esp"] { --hl:#765d30; } :root[data-theme="noite"] .lesson-prose[data-subject="ale"] { --hl:#712f37; }
:root[data-theme="noite"] .lesson-prose[data-subject="hgp"] { --hl:#5f325f; } :root[data-theme="noite"] .lesson-prose[data-subject="his"] { --hl:#5c3f36; } :root[data-theme="noite"] .lesson-prose[data-subject="geo"] { --hl:#1f5657; }
:root[data-theme="noite"] .lesson-prose[data-subject="cn"] { --hl:#405c36; } :root[data-theme="noite"] .lesson-prose[data-subject="fq"] { --hl:#503976; } :root[data-theme="noite"] .lesson-prose[data-subject="em"] { --hl:#2e5c51; }
:root[data-theme="noite"] .lesson-prose[data-subject="mta"] { --hl:#354177; } :root[data-theme="noite"] .lesson-prose[data-subject="mcs"] { --hl:#3b4e80; } :root[data-theme="noite"] .lesson-prose[data-subject="fqa"] { --hl:#744235; }
:root[data-theme="noite"] .lesson-prose[data-subject="bge"] { --hl:#29554b; } :root[data-theme="noite"] .lesson-prose[data-subject="fis"] { --hl:#713c2e; } :root[data-theme="noite"] .lesson-prose[data-subject="qui"] { --hl:#6a3430; }
:root[data-theme="noite"] .lesson-prose[data-subject="bio"] { --hl:#294d41; } :root[data-theme="noite"] .lesson-prose[data-subject="gel"] { --hl:#503f3c; } :root[data-theme="noite"] .lesson-prose[data-subject="hia"] { --hl:#573935; }
:root[data-theme="noite"] .lesson-prose[data-subject="gea"] { --hl:#284d5f; } :root[data-theme="noite"] .lesson-prose[data-subject="eca"] { --hl:#424e2b; } :root[data-theme="noite"] .lesson-prose[data-subject="fil"] { --hl:#493a68; }
:root[data-theme="noite"] .lesson-prose[data-subject="psb"] { --hl:#5f3a60; }
/* Card 33: livelier selects and date boxes: a soft tint, a chevron with room on the right, a clear focus ring and
   56 px boxes, in every theme (the colours come from the theme). The date says the chosen day in words below it. */
.select-box { position:relative; display:block; }
.select-box::after { content:""; position:absolute; right:20px; top:50%; width:9px; height:9px; margin-top:-7px; border-right:2.5px solid var(--primary); border-bottom:2.5px solid var(--primary); border-radius:0 0 2px 0; transform:rotate(45deg); pointer-events:none; }
select.input { -webkit-appearance:none; appearance:none; padding-right:50px; text-overflow:ellipsis; cursor:pointer; }
select.input,input.input[type=date],input.input[type=time] { min-height:56px; background:var(--card2); font-weight:600; }
select.input:focus-visible,input.input[type=date]:focus-visible,input.input[type=time]:focus-visible { outline:3px solid var(--primary); outline-offset:2px; border-color:var(--primary); }
@media(hover:hover) { select.input:hover,input.input[type=date]:hover,input.input[type=time]:hover { border-color:var(--primary); } }
select.input:disabled { cursor:default; opacity:.7; }
input.input[type=date],input.input[type=time] { display:block; text-align:left; cursor:pointer; }
input.input[type=date]::-webkit-date-and-time-value,input.input[type=time]::-webkit-date-and-time-value { text-align:left; }
input.input[type=date]::-webkit-calendar-picker-indicator,input.input[type=time]::-webkit-calendar-picker-indicator { width:22px; height:22px; padding:8px; margin-right:-4px; border-radius:10px; background-color:var(--soft); cursor:pointer; }
.date-words { margin-top:8px; color:var(--primary); font-size:15px; font-weight:700; }
.date-words:empty { margin:0; }
/* Card 23: the Língua estrangeira II step: three tappable cards with flags drawn here (the same on every device). */
.lang-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.lang-card { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:132px; margin:0; padding:16px 6px 12px; border:2px solid var(--line); border-radius:20px; background:var(--card); box-shadow:var(--shadow); text-align:center; cursor:pointer; overflow-wrap:anywhere; }
.lang-card strong { font-size:15px; line-height:1.25; }
.lang-card small { color:var(--muted); font-size:12px; font-weight:600; }
.lang-card:has(input:checked) { border-color:var(--primary); background:var(--soft); }
.lang-card:has(input:checked)::before { content:""; position:absolute; top:8px; right:8px; width:22px; height:22px; border-radius:50%; background:var(--primary); }
.lang-card:has(input:checked)::after { content:""; position:absolute; top:12px; right:16px; width:5px; height:10px; border-right:2.5px solid var(--card); border-bottom:2.5px solid var(--card); transform:rotate(45deg); }
.lang-card:has(input:focus-visible) { outline:3px solid var(--primary); outline-offset:2px; }
.lang-card:has(input:checked) .flag { animation:flag-pop .35s cubic-bezier(.3,1.4,.5,1) both; }
@media(hover:hover) { .lang-card:hover { border-color:var(--primary); } }
.flag { display:block; width:56px; height:38px; border-radius:8px; box-shadow:0 0 0 1px #00000014,0 3px 8px #0000001f; }
.flag-fra { background:linear-gradient(90deg,#002395 0 33.4%,#fff 33.4% 66.6%,#ed2939 66.6%); }
.flag-esp { background:linear-gradient(180deg,#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75%); }
.flag-ale { background:linear-gradient(180deg,#000 0 33.4%,#dd0000 33.4% 66.6%,#ffce00 66.6%); }
.lang-later { min-height:56px; }
@keyframes flag-pop { from { transform:scale(.8); } to { transform:none; } }
@media(max-width:374px) { .lang-cards { gap:8px; } .lang-card { min-height:120px; padding:14px 4px 10px; } .flag { width:48px; height:32px; } }
@media(prefers-reduced-motion:reduce) { .bug-tip,.bug-tip-plico,.lang-card:has(input:checked) .flag { animation:none; } .bug-label { transition:none; } .bug-button:active { transform:none; } }
/* Cards 15-16 (13 Oct): Plico's three-beat story before sign-up (thinking, shrug, jump; about 3 s, once per browser)
   and Plico as the loading screen. Transform and opacity only; everything is still with reduced motion. */
.plico-welcome { position:relative; display:flex; justify-content:center; }
.plico-intro { display:grid; grid-template-areas:"beat"; justify-items:center; }
.plico-beat { grid-area:beat; margin:0; display:flex; flex-direction:column; align-items:center; gap:8px; }
.plico-pose { display:block; width:160px; height:160px; object-fit:contain; transform-origin:50% 88%; }
.plico-say { position:relative; padding:5px 14px; border:1px solid var(--line); border-radius:14px; background:var(--card); box-shadow:var(--shadow); color:var(--primary); font-weight:800; line-height:1.35; white-space:nowrap; }
.plico-say::before { content:""; position:absolute; left:calc(50% - 5px); top:-6px; width:10px; height:10px; background:var(--card); border-left:1px solid var(--line); border-top:1px solid var(--line); transform:rotate(45deg); }
.plico-skip { position:absolute; top:0; right:0; z-index:1; min-height:48px; padding:10px 12px; color:var(--muted); font-size:14px; }
.plico-intro.play .beat-1,.plico-intro.play .beat-2 { opacity:0; }
.plico-intro.play .beat-1 { animation:plico-in-out 1.1s ease-in-out both; }
.plico-intro.play .beat-2 { animation:plico-in-out 1.1s ease-in-out .95s both; }
.plico-intro.play .beat-3 { animation:plico-in .3s ease-out 1.95s both; }
.plico-intro.play .beat-1 .plico-pose { animation:plico-think 1.1s ease-in-out both; }
.plico-intro.play .beat-2 .plico-pose { animation:plico-shrug 1.1s ease-in-out .95s both; }
.plico-intro.play .beat-3 .plico-pose { animation:plico-jump 1.05s ease-out 1.95s both; }
.plico-intro.play .beat-1 .plico-say { animation:plico-pop .35s cubic-bezier(.3,1.4,.5,1) .2s both; }
.plico-intro.play .beat-2 .plico-say { animation:plico-pop .35s cubic-bezier(.3,1.4,.5,1) 1.15s both; }
.plico-intro.play .beat-3 .plico-say { animation:plico-pop .35s cubic-bezier(.3,1.4,.5,1) 2.3s both; }
.plico-intro.wait .plico-beat,.plico-intro.wait .plico-pose,.plico-intro.wait .plico-say { animation-play-state:paused; }
@keyframes plico-in-out { 0% { opacity:0; transform:translateY(12px) scale(.92); } 22% { opacity:1; transform:none; } 80% { opacity:1; transform:none; } 100% { opacity:0; transform:scale(.96); } }
@keyframes plico-in { from { opacity:0; transform:translateY(12px) scale(.92); } to { opacity:1; transform:none; } }
@keyframes plico-think { 0%,22% { transform:none; } 42% { transform:rotate(-5deg); } 62% { transform:rotate(3deg); } 78%,100% { transform:none; } }
@keyframes plico-shrug { 0%,22% { transform:none; } 36% { transform:translateY(-6px) scale(1.04,.96); } 50% { transform:none; } 62% { transform:translateY(-6px) scale(1.04,.96); } 76%,100% { transform:none; } }
@keyframes plico-jump { 0%,8% { transform:none; } 24% { transform:scale(1.08,.9); } 48% { transform:translateY(-24px) scale(.96,1.06); } 70% { transform:scale(1.08,.92); } 85% { transform:scale(.98,1.02); } 100% { transform:none; } }
@keyframes plico-pop { from { opacity:0; transform:translateY(6px) scale(.7); } to { opacity:1; transform:none; } }
.plico-loading { min-height:60vh; min-height:60dvh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; color:var(--muted); font-weight:700; }
.plico-loading-art { display:block; width:96px; height:96px; object-fit:contain; animation:plico-bob 1.8s ease-in-out infinite; }
.plico-loading.later { animation:plico-show .3s ease-out .25s both; }
@keyframes plico-bob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-7px) rotate(-2deg); } }
@keyframes plico-show { from { opacity:0; } to { opacity:1; } }
@media(max-width:374px) { .plico-pose { width:140px; height:140px; } }
@media(prefers-reduced-motion:reduce) {
  .plico-intro.play .plico-beat,.plico-intro.play .plico-beat .plico-pose,.plico-intro.play .plico-beat .plico-say,.plico-loading.later,.plico-loading-art { animation:none; }
  .plico-skip { display:none; }
  .plico-intro.play { grid-template-areas:none; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; width:100%; max-width:360px; }
  .plico-intro.play .plico-beat { grid-area:auto; opacity:1; min-width:0; }
  .plico-intro.play .plico-pose { width:100%; max-width:110px; height:auto; aspect-ratio:1; }
  .plico-intro.play .plico-say { padding:4px 6px; font-size:13px; white-space:normal; text-align:center; }
}
/* ui-batch-a start: João's walkthrough cards 31b, 36, 36a-c, 37a and 38 (14 Oct). Colours come from the theme (AA in the
   four light themes and "noite", tests/test_polish_1.py checks the pairs); 44 px or larger targets; transform and opacity
   only, and every animation stops with reduced motion. */
/* Card 38: one back button, a 52 px soft round button with a bold arrow drawn here (the same on every device). */
.topbar .back-button { width:52px; height:52px; min-height:52px; padding:0; border:0; border-radius:50%; background:var(--soft); color:var(--primary); box-shadow:none; flex-shrink:0; }
.topbar .back-button:active { transform:scale(.94); }
@media(hover:hover) { .topbar .back-button:hover { box-shadow:0 0 0 2px var(--primary); } }
.back-arrow { display:grid; place-items:center; width:26px; height:26px; }  /* card 47: the arrow is an SVG (polish-2) */
.topbar-end { width:52px; flex-shrink:0; }
/* Card 37a: our own calm message under a field that needs a fix (no browser bubble). */
.field-label { display:block; font-size:14px; font-weight:600; margin:0 0 8px; padding:0; }
.field-error { margin-top:8px; padding:8px 12px; border-radius:12px; background:var(--hint); color:var(--hint-ink); font-size:14px; font-weight:700; line-height:1.4; animation:fix-in .2s ease-out both; }
.input[aria-invalid="true"],.chips[aria-invalid="true"] .chip,.choice-list[aria-invalid="true"] .choice-card { border-color:var(--hint-ink); }
/* Card 36: chips (a radio group) instead of the grey OS dropdown; the size class follows the longest label. */
.chips { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; min-width:0; }
.chips-xs { grid-template-columns:repeat(auto-fill,minmax(60px,1fr)); }
.chips-sm { grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); }
.chips-lg { grid-template-columns:minmax(0,1fr); }
.chips-emoji { grid-template-columns:repeat(auto-fill,minmax(52px,1fr)); }
.chip { position:relative; display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:48px; margin:0; padding:10px 12px; border:2px solid var(--line); border-radius:16px; background:var(--card); color:var(--ink); font:inherit; font-size:15px; font-weight:700; line-height:1.25; text-align:center; overflow-wrap:anywhere; cursor:pointer; }
.chips-lg .chip { justify-content:flex-start; text-align:left; padding:12px 14px; }
.chips-emoji .chip { min-height:56px; padding:6px; }
.chips-emoji .chip-text { font-size:28px; line-height:1; }
.chip-emoji { font-size:20px; line-height:1; flex-shrink:0; }
.chip[aria-checked="true"],.chip-check:has(input:checked) { border-color:var(--primary); background:var(--soft); color:var(--primary); animation:chip-pop .3s cubic-bezier(.3,1.4,.5,1) both; }
.chip[aria-checked="true"]::after,.chip-check:has(input:checked)::after { content:"✓"; position:absolute; top:-8px; right:-6px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--primary); color:var(--card); font-size:13px; font-weight:900; line-height:1; }
.chip:focus-visible,.chip-check:has(input:focus-visible) { outline:3px solid var(--primary); outline-offset:2px; }
.chip:active { transform:scale(.97); }
.chip:disabled { opacity:.5; cursor:default; }
@media(hover:hover) { .chip:hover:not(:disabled) { border-color:var(--primary); } }
.chip-checks { border:0; padding:0; margin:0; min-width:0; }
.chip-input { position:absolute; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; }
/* Longer lists: the field opens a sheet with big rows (a bottom sheet on phones, a small panel over the app on wider screens). */
.sheet-trigger { display:flex; align-items:center; gap:10px; width:100%; min-height:56px; background:var(--card2); font-weight:700; text-align:left; cursor:pointer; }
.sheet-value { flex:1; min-width:0; overflow-wrap:anywhere; }
.sheet-chevron { width:10px; height:10px; margin:-4px 6px 0 0; border-right:2.5px solid var(--primary); border-bottom:2.5px solid var(--primary); border-radius:0 0 2px 0; transform:rotate(45deg); flex-shrink:0; }
.sheet-trigger:focus-visible { outline:3px solid var(--primary); outline-offset:2px; border-color:var(--primary); }
@media(hover:hover) { .sheet-trigger:hover { border-color:var(--primary); } }
dialog.sheet { box-sizing:border-box; width:100%; max-width:100%; max-height:min(88dvh,680px); margin:auto 0 0; padding:8px 16px max(18px,env(safe-area-inset-bottom)); border:0; border-radius:26px 26px 0 0; background:var(--card); color:var(--ink); box-shadow:0 -10px 40px #24143233; overflow:auto; overscroll-behavior:contain; }
dialog.sheet[open] { animation:sheet-up .26s cubic-bezier(.2,.9,.3,1) both; }
dialog.sheet::backdrop { background:#24143280; }
.sheet-head { position:sticky; top:-8px; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0 12px; background:var(--card); }
.sheet-head h2 { font-size:19px; overflow-wrap:anywhere; }
.sheet-close { display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:50%; background:var(--soft); color:var(--primary); font-size:17px; font-weight:800; flex-shrink:0; }
.sheet-close:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.sheet-list { display:flex; flex-direction:column; gap:6px; }
.sheet-row { display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:12px 14px; border:2px solid transparent; border-radius:16px; background:var(--card2); color:var(--ink); font:inherit; font-size:16px; font-weight:700; text-align:left; cursor:pointer; }
.sheet-row .chip-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.sheet-row[aria-checked="true"] { border-color:var(--primary); background:var(--soft); color:var(--primary); }
.sheet-tick { width:22px; height:22px; border:2px solid var(--muted); border-radius:50%; flex-shrink:0; }
.sheet-row[aria-checked="true"] .sheet-tick { border-color:var(--primary); background:var(--primary); box-shadow:inset 0 0 0 4px var(--soft); }
.sheet-row:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
@media(hover:hover) { .sheet-row:hover:not(:disabled) { border-color:var(--primary); } }
@media(min-width:560px) {
  dialog.sheet { width:min(400px,calc(100% - 32px)); max-height:min(80dvh,640px); margin:auto; border-radius:24px; box-shadow:0 20px 60px #24143240; }
  dialog.sheet[open] { animation-name:sheet-pop; }
}
@media(min-width:850px) { dialog.sheet { width:380px; margin:auto 0; left:calc(50% + 27px); right:auto; } }
@media(min-width:850px) and (max-width:1100px) { dialog.sheet { left:calc(53% + 15px); } }
/* Card 36b: our own date picker (weeks from Monday, big round days, today ringed, days outside the range off) and the small
   time picker the reminders screen will use. */
.date-icon { font-size:20px; line-height:1; flex-shrink:0; }
.date-trigger.empty .sheet-value { color:var(--muted); }
.date-sheet { gap:12px; }
.date-quick { display:flex; flex-wrap:wrap; }
.date-quick .chip { flex:1 1 auto; }
.date-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.date-month { flex:1; font-size:17px; font-weight:800; text-align:center; }
.date-nav { display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:50%; background:var(--soft); color:var(--primary); flex-shrink:0; }
.date-nav:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.nav-arrow { display:block; width:10px; height:10px; border-left:3px solid currentColor; border-bottom:3px solid currentColor; border-radius:0 0 0 2px; }
.nav-arrow.prev { transform:translateX(2px) rotate(45deg); }
.nav-arrow.next { transform:translateX(-2px) rotate(-135deg); }
.date-grid { width:100%; border-collapse:collapse; table-layout:fixed; }
.date-grid th { padding:0 0 6px; font-size:12px; font-weight:700; color:var(--muted); }
.date-grid td { padding:2px 0; text-align:center; }
.date-day { width:44px; height:44px; min-height:44px; max-width:100%; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ink); font:inherit; font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; cursor:pointer; }
.date-day.today { box-shadow:inset 0 0 0 2px var(--primary); color:var(--primary); }
.date-day[aria-pressed="true"] { background:var(--primary); color:var(--card); box-shadow:none; animation:chip-pop .3s cubic-bezier(.3,1.4,.5,1) both; }
.date-day:disabled { opacity:.35; cursor:default; }
.date-day:focus-visible { outline:3px solid var(--primary); outline-offset:1px; }
@media(hover:hover) { .date-day:hover:not(:disabled):not([aria-pressed="true"]) { background:var(--soft); } }
.date-sheet .date-words { min-height:22px; margin:0; text-align:center; }
.time-words { min-height:22px; color:var(--primary); font-size:15px; font-weight:800; }
/* Card 31b: "Eu", the learner's own tab. */
.eu-hero { display:flex; flex-direction:column; align-items:center; gap:8px; padding-top:4px; text-align:center; }
.eu-avatar { display:grid; place-items:center; width:104px; height:104px; border-radius:36px; background:var(--soft); font-size:58px; line-height:1; box-shadow:var(--shadow); animation:hop 1.1s ease-out 1; }
.eu-hero h1 { font-size:26px; }
/* 20261127b: an explain card's worked example («Exemplo», player.js exampleBlock), a calm tinted block under the text */
.idea-example { margin-top:12px; padding:10px 14px 12px; border-radius:16px; background:var(--soft); color:var(--ink); }
.idea-example-label { margin:0 0 4px; font-size:13px; font-weight:800; letter-spacing:.02em; color:var(--muted); }
.idea-example .prose > :first-child { margin-top:0; }
.idea-example .prose > :last-child { margin-bottom:0; }

/* 20261127b: the name with its own ✏️ (one tap to «O teu nome»); a 44 px circle like the avatar's pencil */
.eu-name { display:flex; align-items:center; justify-content:center; gap:6px; max-width:100%; }
.eu-name h1 { margin:0; min-width:0; overflow-wrap:anywhere; }
.eu-name-edit { flex:none; display:grid; place-items:center; width:44px; height:44px; padding:0; border:2px solid var(--line); border-radius:50%; background:var(--card); color:var(--ink); cursor:pointer; font-size:17px; line-height:1; }
@media(hover:hover) { .eu-name-edit:hover { border-color:var(--primary); } }

.stack > .eu-hero .tag,.eu-hero .tag { align-self:center; }
.eu-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.eu-stat { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-width:0; min-height:96px; margin:0; padding:12px 6px; border:1px solid var(--line); border-radius:20px; background:var(--card); box-shadow:var(--shadow); color:var(--ink); font:inherit; text-align:center; overflow-wrap:anywhere; }
.eu-stat-emoji { font-size:24px; line-height:1.1; }
.eu-stat strong { font-size:16px; line-height:1.2; }
.eu-stat small { color:var(--muted); font-size:12px; line-height:1.3; }
.eu-stat-link { cursor:pointer; }
.eu-stat-link:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
@media(hover:hover) { .eu-stat-link:hover { border-color:var(--primary); } }
.eu-group h2 { margin:0 0 8px 4px; color:var(--muted); font-size:13px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.eu-list { display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:22px; background:var(--card); box-shadow:var(--shadow); }
.eu-row { display:flex; align-items:center; gap:12px; width:100%; min-height:64px; margin:0; padding:10px 14px; border:0; border-top:1px solid var(--line); background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.eu-row:first-child { border-top:0; }
.eu-row-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; background:var(--soft); font-size:21px; flex-shrink:0; }
.eu-row-text { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.eu-row-text strong { font-size:15px; line-height:1.3; }
.eu-row-text small { color:var(--muted); font-size:13px; line-height:1.3; }
.eu-row-go { width:9px; height:9px; margin-right:4px; border-top:2.5px solid var(--muted); border-right:2.5px solid var(--muted); transform:rotate(45deg); flex-shrink:0; }
.eu-row:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; border-radius:20px; }
.eu-row:active { background:var(--soft); }
@media(hover:hover) { .eu-row:hover { background:var(--card2); } }
.nav-item .nav-avatar { font-size:22px; }
/* Card 36a: the animal name with a live preview ("🦦 Lontra Veloz ⚡"). */
.alias-stage { display:flex; flex-direction:column; align-items:center; gap:4px; padding:14px 12px; border-radius:20px; background:var(--soft); text-align:center; }
.alias-stage .muted { color:var(--ink); }
.alias-preview { min-height:30px; color:var(--primary); font-size:24px; font-weight:800; line-height:1.25; overflow-wrap:anywhere; }
@keyframes chip-pop { from { transform:scale(.9); } to { transform:none; } }
@keyframes sheet-up { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:none; } }
@keyframes sheet-pop { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:none; } }
@keyframes fix-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
@media(max-width:374px) { .eu-stats { gap:6px; } .eu-stat { padding:10px 4px; } .chip { padding:10px 8px; } .eu-row { padding:10px 12px; } }
@media(prefers-reduced-motion:reduce) {
  .chip[aria-checked="true"],.chip-check:has(input:checked),.date-day[aria-pressed="true"],dialog.sheet[open],.field-error,.eu-avatar { animation:none; }
  .chip:active,.topbar .back-button:active { transform:none; }
}
/* ui-batch-a end */

/* player-batch-b start */
/* Cards 39, 39b and 39c (14 Oct): exercise texts in two modes (📄 Simples, 💬 Conversa), the text's small title, the
   question box, the letter tiles on the options and "📚 Como estudo". Transform and opacity only; with reduced motion
   nothing moves and everything shows at once (the global rule above plus exercise-text.js). Tile letters are white,
   19 px bold (large text): every tile colour is at least 3.9:1 with white (tests/test_player_batch_b.py). */
.exercise-text { --ask:var(--soft); --ask-line:var(--line); }
:root[data-theme="noite"] .exercise-text { --ask:#3d2f5c; --ask-line:#5b4783; }
.text-mode-row { display:flex; justify-content:flex-end; margin-top:-6px; }
.text-mode { display:inline-flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:15px; background:var(--card2); }
.text-mode-btn { min-height:44px; padding:0 12px; border:0; border-radius:12px; background:transparent; color:var(--muted); font-size:13px; font-weight:800; white-space:nowrap; }
.text-mode-btn[aria-pressed="true"] { background:var(--soft); color:var(--ink); }
.text-mode-btn:hover { color:var(--ink); }
.ex-text { font-size:16px; line-height:1.55; overflow-wrap:anywhere; }
.ex-title { margin:0 0 8px; font-size:18px; line-height:1.35; font-weight:800; color:var(--ink); }
.ex-line { margin:0 0 6px; }
.ex-list { margin:0 0 6px; padding-left:22px; }
.ex-pre { white-space:pre-wrap; font-variant-numeric:tabular-nums; }
.ex-question { margin-top:12px; padding:10px 12px; border-radius:16px; background:var(--soft); }
.ex-qlabel { display:flex; align-items:center; gap:6px; margin:0 0 4px; font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--primary); }
.ex-qtext { margin:0; font-size:18px; line-height:1.4; font-weight:800; letter-spacing:0; color:var(--ink); }
.convo-log { display:flex; flex-direction:column; gap:8px; }
.convo-msg { display:flex; align-items:flex-end; gap:8px; animation:convo-pop .28s ease-out both; }
.convo-msg.convo-still { animation:none; }
.convo-av { flex:none; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--soft); color:var(--primary); font-size:13px; font-weight:800; }
.convo-bubble { min-width:0; max-width:calc(100% - 42px); padding:9px 12px; border:1px solid var(--line); border-radius:18px 18px 18px 6px; background:var(--card2); color:var(--ink); font-size:16px; line-height:1.45; }
.convo-bubble .ex-list { margin:0; }
.convo-ask { flex-direction:row-reverse; margin-top:14px; border-radius:18px; }
.convo-ask .convo-bubble { max-width:calc(100% - 52px); border-color:var(--ask-line); border-radius:18px 18px 6px 18px; background:var(--ask); }
.convo-ask:focus { outline:none; }
.convo-ask:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.convo-plico { flex:none; width:44px; height:44px; object-fit:contain; }
.convo-next { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; margin:10px auto 0; padding:0 18px; border:1.5px dashed var(--line); border-radius:14px; background:transparent; color:var(--muted); font-size:14px; font-weight:800; }
.convo-next:hover { color:var(--ink); border-color:var(--primary); }
@keyframes convo-pop { from { opacity:0; transform:translateY(8px) scale(.97); } to { opacity:1; transform:none; } }
/* Letter tiles: A red, B blue, C green, D amber (then purple, teal, pink, slate). The tile sits over the option's left
   padding and lets taps through; the button keeps its text as its whole accessible name. */
.tile-options { gap:10px; }
.tile-row { position:relative; --tile:#e0264d; }
.tile-row.tile-1 { --tile:#2563eb; } .tile-row.tile-2 { --tile:#188a46; } .tile-row.tile-3 { --tile:#c26a00; }
.tile-row.tile-4 { --tile:#7c3aed; } .tile-row.tile-5 { --tile:#0f766e; } .tile-row.tile-6 { --tile:#be185d; } .tile-row.tile-7 { --tile:#475569; }
.tile-row.right { --tile:#11804f; }
.tile-row .tile-option { width:100%; min-height:58px; padding-left:62px; }
.tile-letter { position:absolute; z-index:1; left:12px; top:0; bottom:0; width:38px; height:38px; margin:auto 0; display:grid; place-items:center; border-radius:11px; background:var(--tile); color:#fff; font-size:19px; font-weight:900; line-height:1; text-shadow:0 1px 0 #0004; box-shadow:inset 0 -3px 0 #0003,inset 0 2px 0 #fff5,0 2px 6px #0003; pointer-events:none; animation:tile-pop .45s cubic-bezier(.3,1.6,.5,1) both; animation-delay:var(--tile-delay,0s); }
.tile-row.tile-1 .tile-letter { --tile-delay:.12s; } .tile-row.tile-2 .tile-letter { --tile-delay:.24s; } .tile-row.tile-3 .tile-letter { --tile-delay:.36s; }
.tile-row.tile-4 .tile-letter { --tile-delay:.48s; } .tile-row.tile-5 .tile-letter { --tile-delay:.6s; } .tile-row.tile-6 .tile-letter { --tile-delay:.72s; } .tile-row.tile-7 .tile-letter { --tile-delay:.84s; }
/* The wiggle is added next to the pop, never instead of it: a pop that is replaced restarts from invisible when the
   pointer leaves (the tiles vanished for up to a second, João 18 Oct). The wiggle turns with `rotate`, so it never
   fights the pop's kept transform. */
.tile-row:hover .tile-letter,.tile-row:focus-within .tile-letter { animation-name:tile-pop,tile-wiggle; animation-duration:.45s,.5s; animation-timing-function:cubic-bezier(.3,1.6,.5,1),ease-in-out; animation-fill-mode:both,none; animation-delay:var(--tile-delay,0s),0s; }
.tile-row.right .tile-letter { animation:tile-pop .35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes tile-pop { from { opacity:0; transform:scale(.4) rotate(-12deg); } to { opacity:1; transform:none; } }
@keyframes tile-wiggle { 25% { rotate:-10deg; } 75% { rotate:10deg; } }
@media(max-width:374px) { .text-mode-btn { padding:0 9px; } .tile-row .tile-option { padding-left:58px; } .tile-letter { left:10px; } }
@media(prefers-reduced-motion:reduce) { .convo-msg,.tile-letter,.tile-row:hover .tile-letter,.tile-row:focus-within .tile-letter,.tile-row.right .tile-letter { animation:none; } }
/* "📚 Como estudo" (eu/estudo): two soft choices; the radio groups come from core.js (card 36). */
.study-prefs .study-help { margin:4px 0 0; }
.study-prefs .save-note { min-height:22px; }
/* player-batch-b end */

/* school-day-c start */
.school-week,.school-day { min-width:0; }
.school-week .card,.school-day .card { padding:16px; min-width:0; }
.school-week h2,.school-day h2 { font-size:20px; overflow-wrap:anywhere; }
.school-slot { padding:14px; border:1px solid var(--line); border-radius:18px; background:var(--card2); color:var(--ink); min-width:0; }
.school-slot .chips { grid-template-columns:repeat(2,minmax(0,1fr)); }
.school-slot .chip { min-height:44px; min-width:44px; overflow-wrap:anywhere; }
.school-times { border-radius:16px; background:var(--soft); color:var(--ink); padding:0 10px; }
.school-times summary { min-height:44px; padding:10px 0; color:var(--primary); font-weight:700; cursor:pointer; }
.school-times[open] { padding-bottom:12px; }
.school-times .field { margin-top:12px; }
.school-times .chips-xs { grid-template-columns:repeat(4,minmax(0,1fr)); }
.school-times .chip { padding:8px 2px; }
.school-subject .input { max-width:100%; min-width:0; }
.school-day .chip-checks { min-width:0; }
.school-week textarea:focus-visible,.school-day textarea:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.school-week .btn,.school-day .btn,.school-day .chip-check { min-height:44px; }
.school-subject { animation:school-day-appear .18s ease-out; }
@keyframes school-day-appear { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .school-subject { animation:none; transition:none; } }
/* school-day-c end */

/* reminders-d start */
.reminders { min-width:0; }
.reminders .card { min-width:0; border-radius:22px; }
.reminders .reminder-details { border-top:1px solid var(--line); padding-top:12px; }
.reminders .reminder-details[hidden] { display:none; }
.reminders .btn,.reminders .chip,.reminders .chip-check,.pause-reminder .btn { min-height:44px; }
.reminders .save-note { min-height:24px; color:var(--ink); overflow-wrap:anywhere; }
.reminders .field-error:empty { display:none; }
.reminders .chip-checks { min-width:0; }
.reminders h2 { overflow-wrap:anywhere; }
.reminders .btn:focus-visible,.pause-reminder .btn:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
@media(max-width:374px) { .reminders .card { padding:14px; } .reminders .chips { gap:6px; } }
@media(prefers-reduced-motion:reduce) { .reminders *,.pause-reminder * { animation:none; transition:none; } }
/* reminders-d end */

/* polish-2 start: João's second walkthrough, cards 41, 42, 45, 45a, 46, 47, 49, 51 and 52 (14 Oct). Theme colours only
   (AA in all six themes, tests/test_polish_2.py); 44 px or larger targets; transform and opacity animations, all still
   with reduced motion. */
/* Card 41: soft checkboxes and radios everywhere (rounded, theme colours, a clear tick or dot, a small pop when chosen).
   The tick is drawn with clip-path in the theme's own colours, so it needs no image. Hidden inputs (chips, cards) are
   left out. */
:where(input[type=checkbox],input[type=radio]):not(.sr-only):not(.chip-input) { -webkit-appearance:none; appearance:none; display:inline-grid; place-content:center; flex-shrink:0; width:26px; height:26px; margin:0; padding:0; border:2px solid var(--muted); border-radius:8px; background:var(--card); color:var(--card); cursor:pointer; vertical-align:middle; transition:border-color .15s ease-out,background-color .15s ease-out; }
input[type=radio]:not(.sr-only):not(.chip-input) { border-radius:50%; }
input[type=checkbox]:not(.sr-only):not(.chip-input)::before { content:""; width:14px; height:14px; background:var(--card); clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%); transform:scale(0); transition:transform .15s ease-out; }
input[type=radio]:not(.sr-only):not(.chip-input)::before { content:""; width:12px; height:12px; border-radius:50%; background:var(--primary); transform:scale(0); transition:transform .15s ease-out; }
input[type=checkbox]:not(.sr-only):not(.chip-input):checked { border-color:var(--primary); background:var(--primary); animation:control-pop .3s cubic-bezier(.3,1.4,.5,1) both; }
input[type=radio]:not(.sr-only):not(.chip-input):checked { border-color:var(--primary); animation:control-pop .3s cubic-bezier(.3,1.4,.5,1) both; }
input[type=checkbox]:not(.sr-only):not(.chip-input):checked::before,input[type=radio]:not(.sr-only):not(.chip-input):checked::before { transform:scale(1); }
input[type=checkbox]:not(.sr-only):not(.chip-input):focus-visible,input[type=radio]:not(.sr-only):not(.chip-input):focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
input[type=checkbox]:not(.sr-only):not(.chip-input):disabled,input[type=radio]:not(.sr-only):not(.chip-input):disabled { cursor:default; opacity:.55; }
@media(hover:hover) { input[type=checkbox]:not(.sr-only):not(.chip-input):not(:disabled):hover,input[type=radio]:not(.sr-only):not(.chip-input):not(:disabled):hover { border-color:var(--primary); } }
@media(forced-colors:active) { input[type=checkbox]:not(.sr-only):not(.chip-input),input[type=radio]:not(.sr-only):not(.chip-input) { -webkit-appearance:auto; appearance:auto; } input[type=checkbox]:not(.sr-only):not(.chip-input)::before,input[type=radio]:not(.sr-only):not(.chip-input)::before { display:none; } }
.check { cursor:pointer; }
.check:has(input:disabled) { cursor:default; }
/* "Hoje não tive" reads as a small soft toggle on the subject card. */
.school-subject .check { align-self:flex-start; min-height:48px; padding:8px 16px 8px 10px; border:2px solid var(--line); border-radius:16px; background:var(--card2); font-weight:700; }
.school-subject .check:has(input:checked) { border-color:var(--primary); background:var(--soft); color:var(--primary); }
/* Number boxes: no grey spinner arrows (the keyboard is numeric through inputmode). */
input.input[type=number] { -moz-appearance:textfield; appearance:textfield; }
input.input[type=number]::-webkit-inner-spin-button,input.input[type=number]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
/* The parents' reminder time (card 41): hour and minute chips, a note and a quiet way to clear it. */
.reminder-time .btn.later { align-self:flex-start; width:auto; }
/* Card 42: two soft photo buttons instead of "Choose File"; the file inputs stay out of sight and out of the tab order. */
.photo-picks { position:relative; display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:8px; min-width:0; }
.photo-pick { min-width:0; min-height:56px; padding:10px 14px; text-align:center; overflow-wrap:anywhere; }
.photo-pick-icon { font-size:22px; line-height:1; flex-shrink:0; }
.photo-picks .photo-input { top:0; left:0; pointer-events:none; }
.photo-title { font-size:18px; }
/* Card 45: actions look like buttons. "btn quiet" was bold text; it is now a soft outlined button (white, a light border
   in the theme colour). Only true "later" links ("Decidir mais tarde", "Agora não") stay text-like, with a 48 px area. */
.btn.quiet { min-height:48px; padding:10px 16px; border:2px solid var(--line); border-color:color-mix(in srgb,var(--primary) 26%,var(--card)); background:var(--card); color:var(--primary); box-shadow:0 2px 0 var(--line); }
.feedback .btn.quiet { background:transparent; border-color:currentColor; color:inherit; box-shadow:none; }
@media(hover:hover) { .btn.quiet:not(:disabled):hover { border-color:var(--primary); background:var(--soft); } }
.btn.later { min-height:48px; padding:10px 16px; border:0; border-radius:14px; background:transparent; box-shadow:none; color:var(--muted); font-weight:700; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
@media(hover:hover) { .btn.later:not(:disabled):hover { background:var(--soft); color:var(--primary); } }
.btn.quiet:focus-visible,.btn.later:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
/* Card 45a: the friends' rhythm line is a fresh start at zero. */
.rhythm-line { font-size:17px; font-weight:800; }
/* Card 46: Plico Professor beside the Conversa bubbles; one per group, at the newest message, like a chat. */
.convo-av.convo-prof { width:40px; height:40px; padding:0; border-radius:0; background:none; object-fit:contain; transform:scale(1.15); transform-origin:50% 100%; }
.convo-log .convo-bubble { max-width:calc(100% - 48px); }
.convo-log .convo-msg:not(:last-child) .convo-av { visibility:hidden; }
/* Card 47: the back arrow is one SVG stroke, centred in the 52 px round button; a 🔍 round button can sit on the right. */
.back-arrow svg { display:block; width:26px; height:26px; }
.topbar .topbar-action { width:52px; height:52px; min-height:52px; padding:0; border:0; border-radius:50%; background:var(--soft); color:var(--ink); font-size:22px; line-height:1; box-shadow:none; flex-shrink:0; }
.topbar .topbar-action:active { transform:scale(.94); }
@media(hover:hover) { .topbar .topbar-action:hover { box-shadow:0 0 0 2px var(--primary); } }
/* Card 49: the trail is one winding road through the stops (an SVG curve behind the nodes, drawn in path.js). */
.trail.trail-path { position:relative; margin-left:0; padding:14px 0 8px; border-left:0; }
.trail-path .step-row { min-height:98px; gap:14px; padding-left:var(--bend,0px); z-index:1; }
.trail-path .step-row .step-node { margin-left:0; }
.trail-path .bend-0 { --bend:0px; } .trail-path .bend-1 { --bend:38px; } .trail-path .bend-2 { --bend:76px; } .trail-path .bend-3 { --bend:38px; }
.trail-svg { position:absolute; inset:0; z-index:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.trail-road,.trail-done,.trail-dots { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.trail-road { stroke:var(--line); stroke-width:12; }
.trail-done { stroke:var(--primary); stroke-width:12; opacity:.3; }
.trail-dots { stroke:var(--card); stroke-width:3; stroke-dasharray:0 13; }
.trail-path .practice-row { margin-top:22px; }
.step-node.practice { background:var(--hint); color:var(--hint-ink); }
.step-node.practice.locked { background:var(--card2); color:var(--muted); }
.practice-row .step-label small { color:var(--muted); }
@media(max-width:374px) { .trail-path .bend-1,.trail-path .bend-3 { --bend:28px; } .trail-path .bend-2 { --bend:56px; } }
/* Card 51: the avatar in "Eu" has a ✏️ and opens a sheet with the avatars and the ones still to open. */
.eu-avatar-wrap { display:grid; place-items:center; }
button.eu-avatar { position:relative; padding:0; border:0; color:var(--ink); font:inherit; cursor:pointer; }
.eu-avatar-face { font-size:58px; line-height:1; }
.eu-avatar-edit { position:absolute; right:-6px; bottom:-6px; display:grid; place-items:center; width:40px; height:40px; border:2px solid var(--line); border-radius:50%; background:var(--card); box-shadow:var(--shadow); font-size:18px; line-height:1; }
button.eu-avatar:focus-visible { outline:3px solid var(--primary); outline-offset:4px; }
button.eu-avatar.picked { animation:avatar-pop .45s cubic-bezier(.3,1.5,.5,1) both; }
@media(hover:hover) { button.eu-avatar:hover .eu-avatar-edit { border-color:var(--primary); } }
.avatar-sheet { text-align:left; }
.avatar-sheet .chips-emoji { grid-template-columns:repeat(4,minmax(0,1fr)); }
.avatar-sheet .chips-emoji .chip { min-height:60px; }
.avatar-locks h3 { margin:0 0 8px; color:var(--muted); font-size:15px; }
.avatar-lock-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.avatar-lock { display:flex; align-items:center; gap:12px; min-height:52px; padding:8px 12px; border:2px dashed var(--line); border-radius:16px; color:var(--ink); font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.avatar-lock-emoji { font-size:28px; line-height:1; filter:grayscale(1); opacity:.55; flex-shrink:0; }
/* UX sweep (polish-2): an empty status box takes no room (it stays in the page, so screen readers still hear it when it
   fills); empty topic lists on a subject card take no room; headings wrap in balanced lines (no lone emoji on the last
   line); the timetable's subject chips size to their names (no "Matemáti-ca" break at 360 px). */
.notice:empty { min-height:0; padding:0; background:none; }
.screen h1,.screen h2 { text-wrap:balance; }
.school-subject > .stack:empty { display:none; }
/* The reminders' on/off chip: full width and centred, named by the card's heading (the group label is for screen readers). */
.reminders .chips-lg .chip-check { justify-content:center; text-align:center; }
.school-slot > .picker > .chips { display:flex; flex-wrap:wrap; }
.school-slot > .picker .chip { flex:1 1 auto; overflow-wrap:normal; }
@keyframes control-pop { from { transform:scale(.8); } to { transform:none; } }
@keyframes avatar-pop { 0% { transform:scale(.85); } 60% { transform:scale(1.06); } 100% { transform:none; } }
@media(prefers-reduced-motion:reduce) {
  input[type=checkbox]:not(.sr-only):not(.chip-input):checked,input[type=radio]:not(.sr-only):not(.chip-input):checked,button.eu-avatar.picked { animation:none; }
  input[type=checkbox]:not(.sr-only):not(.chip-input)::before,input[type=radio]:not(.sr-only):not(.chip-input)::before { transition:none; }
  .topbar .topbar-action:active { transform:none; }
}
/* polish-2 end */

/* features-e start */
.learner-tools { display:flex; align-items:center; gap:6px; margin-left:auto; flex-shrink:0; }
.learner-tool { position:relative; width:44px; min-width:44px; min-height:44px; padding:8px; border-radius:15px; background:var(--soft); color:var(--ink); font-size:21px; }
.notice-count { position:absolute; top:-3px; right:-3px; min-width:20px; padding:1px 4px; border-radius:12px; background:var(--ink); color:var(--card); font-size:11px; font-weight:800; line-height:18px; }
.notice-count[hidden] { display:none; }
.learner-notices,.topic-results { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.learner-notice { display:flex; align-items:flex-start; gap:12px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:20px; background:var(--card); }
.learner-notice.unread { border-inline-start:4px solid var(--primary); }
.notice-icon { font-size:24px; flex-shrink:0; }
.notice-copy { display:flex; flex:1; flex-direction:column; gap:10px; min-width:0; overflow-wrap:anywhere; }
.notice-new { color:var(--primary); font-size:12px; font-weight:800; }
.notice-actions { display:flex; flex-wrap:wrap; gap:8px; }
.notice-actions .btn { flex:1 1 110px; min-height:44px; }
.topic-search-box { display:flex; align-items:center; gap:8px; min-width:0; }
.topic-search-box input { min-width:0; flex:1; min-height:48px; }
.topic-search-box .btn { min-height:44px; flex-shrink:0; }
/* testes-search (João 19 Nov 14:19): the 🔍 at the right of «O que vai sair?» and its field, in the search's own style. */
.test-topic-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.test-topic-head h2 { margin:0; }
.test-topic-find { scroll-margin-top:12px; }
.test-topic-find[hidden],.test-topic-list .check[hidden] { display:none; }
.test-topic-status:empty { display:none; }
/* With the phone's keys up (a short visible page), the tab bar steps aside while the field is in use, as in a lesson. */
@media(max-width:600px) and (max-height:520px) { .app-layout:has(.test-topic-find:focus-within) .bottom-nav { display:none; } }
.topic-result { width:100%; min-height:64px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; text-align:left; overflow-wrap:anywhere; }
.topic-result strong { line-height:1.35; }
.focus-header { display:flex; justify-content:flex-end; }
.focus-control { min-width:44px; min-height:44px; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--ink); }
.focus-break { text-align:center; align-items:center; }
.focus-break .btn { min-height:48px; white-space:normal; }
.focus-plico { width:112px; height:112px; object-fit:contain; }
.focus-time { font-size:40px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--ink); }
.focus-dialog { max-width:min(430px,calc(100vw - 24px)); }
@media(max-width:380px) { .learner-tools { gap:4px; }.notice-actions { flex-direction:column; }.notice-actions .btn { flex-basis:auto; }.learner-notice { padding:13px; gap:9px; } }
@media(prefers-reduced-motion:reduce) { .learner-tool,.learner-notice,.topic-result,.focus-control,.focus-dialog,.focus-plico { animation:none; transition:none; }.learner-tool:active,.topic-result:active,.focus-control:active { transform:none; } }
/* features-e end */

/* wardrobe-build-1 start */
.boneco-render { display:block; max-width:100%; height:auto; flex:none; overflow:visible; }
.wardrobe-own-avatar { display:inline-flex; flex-direction:column; align-items:center; max-width:100%; }
.wardrobe-emoji { display:inline-block; font-size:inherit; }
.wardrobe-legend { display:inline-block; border:2px solid #b89424; border-radius:999px; background:#ffe7a0; color:#493410; padding:4px 10px; font-size:.8rem; font-weight:700; }
.wardrobe-tabs,.wardrobe-slots { display:flex; flex-wrap:wrap; gap:8px; }
.wardrobe-tabs .btn { flex:1; }
.wardrobe-tabs [aria-pressed=true],.wardrobe-slots [aria-pressed=true] { box-shadow:inset 0 0 0 2px var(--primary); }
.wardrobe-tabs .btn,.wardrobe-slots .btn { min-height:48px; }
.wardrobe-sheet-panel { text-align:center; }
.wardrobe-sheet-panel .wardrobe-own-avatar { margin:auto; }
.wardrobe-emoji-panel[hidden],.wardrobe-sheet-panel[hidden] { display:none; }
.wardrobe-starters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.wardrobe-starter,.wardrobe-character,.wardrobe-item { min-width:0; border:2px solid transparent; border-radius:20px; background:var(--card); color:var(--ink); padding:12px; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; overflow-wrap:anywhere; }
button.wardrobe-starter,button.wardrobe-character,button.wardrobe-item { cursor:pointer; min-height:48px; font:inherit; }
.wardrobe-starter[aria-pressed=true],.wardrobe-character[aria-pressed=true],.wardrobe-item[aria-pressed=true] { border-color:var(--primary); background:var(--soft); }
.wardrobe-starter:focus-visible,.wardrobe-character:focus-visible,.wardrobe-item:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.wardrobe-colour { display:flex; align-items:center; gap:6px; font-size:.8rem; color:var(--muted); }
.wardrobe-characters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.wardrobe-character { padding:8px; font-size:.85rem; }
.wardrobe-character .small,.wardrobe-item .small { margin:0; }
.wardrobe-preview { min-height:220px; display:flex; justify-content:center; align-items:center; background:var(--soft); border-radius:28px; padding:10px; }
.wardrobe-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.wardrobe-item img { display:block; max-width:100%; height:auto; object-fit:contain; }
.wardrobe-item-icon { min-height:96px; display:grid; place-items:center; font-size:2rem; }
.wardrobe-character.locked .boneco-render,.wardrobe-item.locked img { filter:grayscale(1); opacity:.65; }
.wardrobe-character.locked,.wardrobe-item.locked { background:var(--soft); }
.wardrobe-starter:disabled,.wardrobe-character:disabled,.wardrobe-item:disabled { cursor:default; }
.wardrobe-bounce .boneco-render { animation:wardrobe-happy .34s ease-out; }
@keyframes wardrobe-happy { 0%,100% { transform:translateY(0); } 45% { transform:translateY(-8px) rotate(2deg); } }
.wardrobe-rewards,.wardrobe-achievements { margin:0; padding-left:22px; }
.wardrobe-rewards li,.wardrobe-achievements li { padding:8px 0; }
.wardrobe-album-avatar { display:flex; flex-direction:column; align-items:center; gap:8px; }
.greeting>.wardrobe-own-avatar { float:right; margin:0 0 8px 12px; }
.greeting::after { content:''; display:block; clear:both; }
.eu-avatar-face .boneco-render { width:88px; height:88px; }
@media(min-width:560px) { .wardrobe-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .wardrobe-characters { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { .wardrobe-bounce .boneco-render { animation:none; } }
/* wardrobe-build-1 end */

/* wide-1: W1-W3 theme-aware strips and quick-review tiles, preserved for every width. */
/* W1-W3 (João, 18 Oct, every size, phones included): the Início strips fit the chosen theme. Praise celebrates (the
   theme's own gradient, Plico and a sparkle, a short entrance), a prompt invites (a card with its icon, dashed with a "+"
   when it adds something), the other notes take the theme's soft colour and an accent line instead of a flat yellow, and
   "Só 2 minutos" is a card like "O que deste hoje na escola?". Theme colours only (the CTA ink on the CTA colours and the
   ink on the soft colour, the pairs the buttons already use); transform and opacity only, all still with reduced motion. */
.notice { background:var(--soft); color:var(--ink); border-radius:16px; box-shadow:inset 4px 0 0 var(--primary); }
.notice:empty { box-shadow:none; }
.week-line { position:relative; display:flex; align-items:center; min-height:66px; padding:12px 40px 12px 76px; border-radius:20px; background:var(--cta); color:var(--cta-ink); box-shadow:var(--shadow); font-size:15px; font-weight:800; line-height:1.35; overflow:hidden; animation:praise-in .45s cubic-bezier(.3,1.3,.5,1) both; }
.week-line::before { content:""; position:absolute; left:10px; top:50%; width:54px; height:54px; margin-top:-27px; border-radius:16px; background:#ffffffd9 url(/brand/boa.png) center / 86% no-repeat; animation:praise-hop .9s ease-out .3s both; }
.week-line::after { content:"\2728" / ""; position:absolute; right:12px; top:9px; font-size:17px; line-height:1; animation:praise-twinkle 1.6s ease-in-out .5s 2 both; }
.test-strip { position:relative; display:flex; align-items:center; gap:12px; width:100%; min-height:64px; margin-bottom:20px; padding:10px 14px 10px 10px; border:1px solid var(--line); border-radius:20px; background:var(--card); color:var(--ink); box-shadow:var(--shadow); font-size:15px; font-weight:700; line-height:1.35; text-align:left; }
.strip-icon { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border-radius:14px; background:var(--soft); font-size:22px; line-height:1; }
.strip-copy { flex:1; min-width:0; overflow-wrap:anywhere; }
.test-strip.add { border:2px dashed color-mix(in srgb,var(--primary) 45%,var(--line)); background:var(--card2); }
.test-strip.add .strip-icon { background:var(--cta); }
.test-strip.add::after { content:"+" / ""; display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:50%; background:var(--primary); color:var(--card); font-size:22px; font-weight:800; line-height:1; }
@media(hover:hover) { .test-strip:hover { border-color:var(--primary); } }
.photo-home .quick-copy { display:flex; flex-direction:column; gap:3px; text-align:left; }
.photo-home small { color:var(--muted); font-weight:400; font-size:12px; }
.quick-home.done .photo-icon { background:var(--good); }
@keyframes praise-in { from { opacity:0; transform:translateY(8px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes praise-hop { 0%,100% { transform:none; } 40% { transform:translateY(-6px) rotate(-4deg); } 70% { transform:rotate(2deg); } }
@keyframes praise-twinkle { 0%,100% { opacity:.45; transform:scale(.85); } 50% { opacity:1; transform:scale(1.15) rotate(12deg); } }
@media(prefers-reduced-motion:reduce) { .week-line,.week-line::before,.week-line::after { animation:none; } }
/* wide-2a start: approved laptop rows, 18 Oct 2026. Every rule is >= 850 px.
   The existing W1-W3 phone styles above and both joy blocks below are preserved. */
@media(min-width:850px) {
  dialog.sheet { left:0; right:0; width:min(440px,calc(100% - 48px)); margin:auto; }
  .toast { bottom:32px; }
  #app:not(:has(> .app-layout)) { margin-inline:auto; border-color:transparent; background:none; box-shadow:none; }
  body:not(:has(#app > .app-layout)) .desktop-story { display:none; }
  .desktop-story a[href="/"] { display:none; }
  body:has(#app > [data-parent-guide="true"]) .desktop-story a[href="/"] { display:inline; }
  /* site-2b: the parent link is a soft button, not an underlined link (shown only where the rule above shows it). */
  .desktop-story a[href="/"] { align-items:center; gap:8px; min-height:48px; padding:10px 20px; border-radius:999px; background:var(--soft); color:var(--primary); font-weight:700; text-decoration:none; }
  .desktop-story a[href="/"]::after { content:"→"; }
  .desktop-story a[href="/"]:hover { filter:brightness(.97); }
  .desktop-story a[href="/"]:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
  body:has(#app > [data-parent-guide="true"]) .desktop-story a[href="/"] { display:flex; width:fit-content; margin:20px auto 0; justify-content:center; }
  #app:has(> .app-layout:not(.in-app)) { border-radius:30px; box-shadow:var(--shadow); min-height:0; }
  body:has(#app > .app-layout:not(.in-app)) { display:flex; flex-direction:column; justify-content:center; min-height:100dvh; padding:40px 0; }
  #app:has(> .app-layout:not(.in-app)) > .app-layout { min-height:min(520px,calc(100dvh - 80px)); }
  body:has(#app > .in-app) { padding:0; }
  body:has(#app > .in-app) .desktop-story { display:none; }
  #app:has(> .in-app) { width:100%; max-width:none; min-height:100dvh; margin:0; border:0; border-radius:0; background:none; box-shadow:none; overflow:visible; }
  .app-layout.in-app { --rail:76px; --gap:24px; --pad:clamp(24px,3vw,48px); --content:760px;
    display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto 1fr auto; gap:0;
    width:100%; max-width:none; min-height:100dvh; margin:0; padding:0; font-size:clamp(16px,calc(13.53px + .181vw),17px); }
  .app-layout.in-app.has-sidebar { grid-template-columns:var(--rail) minmax(0,1fr); }
  .app-layout.in-app.wide-page { --content:1240px; }
  .in-app > :is(.topbar,.notice,#screen,.app-footer) { grid-column:-2 / -1; justify-self:center;
    width:min(calc(100% - 2 * var(--pad)),var(--content)); min-width:0; }
  .in-app > .topbar { grid-row:1; min-height:80px; padding:16px 0; justify-content:flex-start; }
  .in-app > .topbar > .title { font-size:1em; padding-inline:8px; }
  .in-app.has-sidebar > .topbar > .brand-pair { display:none; }
  .in-app > .topbar > :is(.learner-tools,[data-topbar="end"],.topbar-end) { margin-left:auto; }
  .in-app > .notice { grid-row:2; margin-bottom:var(--gap); }
  .in-app > #screen { grid-row:3; align-self:start; padding:8px 0 40px; gap:var(--gap); }
  .in-app > .app-footer { grid-row:4; }
  .in-app > .bottom-nav { grid-column:1; grid-row:1 / -1; align-self:start; position:sticky; top:0; bottom:auto;
    height:100dvh; min-height:0; flex-direction:column; justify-content:flex-start; align-items:stretch; gap:8px;
    margin:0; padding:0 10px 24px; border:0; border-right:1px solid var(--line); border-radius:0;
    background:var(--card); box-shadow:none; z-index:20; }
  .in-app > .bottom-nav > .side-wordmark { display:flex; align-items:center; justify-content:center; min-height:80px; margin-bottom:16px; }
  .in-app > .bottom-nav .side-wordmark .brand { width:100%; max-width:152px; }
  .in-app > .bottom-nav .nav-item { position:relative; flex:0 0 auto; flex-direction:row; justify-content:center; gap:0;
    min-width:0; min-height:56px; padding:10px; border-radius:14px; font-size:0; line-height:1.35; }
  .in-app > .bottom-nav .nav-item > span { font-size:24px; }
  .in-app > .bottom-nav .nav-item.active { box-shadow:inset 4px 0 0 var(--primary); }
  .in-app > .bottom-nav .nav-item:not(.active):hover { background:var(--card2); color:var(--ink); }
  .in-app > .bottom-nav .nav-item::after { content:attr(data-label); position:absolute; left:calc(100% + 12px); top:50%; transform:translateY(-50%);
    padding:10px 14px; border:1px solid var(--primary); border-radius:12px; background:var(--card); color:var(--ink);
    font-size:14px; font-weight:600; white-space:nowrap; box-shadow:var(--shadow); visibility:hidden; pointer-events:none; }
  .in-app > .bottom-nav .nav-item:hover::after,.in-app > .bottom-nav .nav-item:focus::after,.in-app > .bottom-nav .nav-item:focus-visible::after { visibility:visible; }
  .in-app h1,.in-app .greeting h1 { font-size:clamp(28px,2.1vw,34px); }
  .in-app h2 { font-size:clamp(24px,1.6vw,28px); }
  .in-app h3 { font-size:clamp(20px,1.2vw,23px); }
  .in-app #screen > p:not(.notice):not(.feedback),.in-app #screen .card > p:not(.notice):not(.feedback) { max-width:70ch; }
  .in-app:not(.has-sidebar) #screen .card > :not(.lesson-media) { max-width:760px; margin-inline:auto; }
  .in-app:not(.has-sidebar) #screen .card { padding:28px; }
  .in-app .media-3d-stage { height:clamp(300px,52vh,480px); }
  .in-app .media-svg { max-height:62vh; }
  .in-app .media-img { max-height:70vh; object-fit:contain; }
  /* Lists keep row order and stretch siblings. All remaining reading/form screens stay one column. */
  .in-app #screen:has(> .subject-row),.in-app #screen > .stack:has(> .subject-row) {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:var(--gap); align-items:stretch; align-content:start; }
  .in-app #screen:has(> .subject-row) > :not(.subject-row) { grid-column:1 / -1; }
  .in-app .subject-row { height:100%; }
  .in-app .chips-sm { grid-template-columns:repeat(auto-fill,minmax(136px,1fr)); }
  .in-app .album-grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
  /* wide-2b: the Trilho list balances its rows by count (8 subjects: 2 x 4 or 4 x 2, never 3 + 3 + 2). */
  .in-app > #screen.subject-list { grid-template-columns:repeat(var(--r2),minmax(0,1fr)); }
  .in-app .trail-path .bend-1,.in-app .trail-path .bend-3 { --bend:72px; }
  .in-app .trail-path .bend-2 { --bend:144px; }
}
@media(min-width:850px) and (max-height:520px) {
  .in-app > .bottom-nav { overflow-y:auto; }
  /* A fixed label escapes the scrolling rail on short windows; labelled sidebars hide it below. */
  .in-app > .bottom-nav .nav-item::after { position:fixed; left:calc(var(--rail) + 12px); top:16px; transform:none; }
}
@media(min-width:1024px) {
  .app-layout.in-app { --rail:208px; }
  .in-app > .bottom-nav { padding-inline:16px; }
  .in-app > .bottom-nav .nav-item { justify-content:flex-start; gap:14px; padding:12px 16px; font-size:16px; text-align:left; }
  .in-app > .bottom-nav .nav-item::after { content:none; }
}
@media(min-width:1280px) {
  .app-layout.in-app { --rail:240px; }
  .in-app > #screen.subject-list { grid-template-columns:repeat(var(--c4),minmax(0,1fr)); }
  /* wide-2b: the Caderneta's albums (equal rows) in two columns on a wide page. */
  .in-app .album-pages { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
}
@media(min-width:1440px) {
  .desktop-story { left:calc(50% - 600px); width:400px; }
  .story-plico { width:260px; }
  .desktop-story h2 { font-size:36px; }
}
/* wide-2b: big monitors (1800 px and up) grow the columns and the type a little instead of leaving wide empty sides. */
@media(min-width:1800px) {
  .app-layout.in-app { --content:820px; font-size:18px; }
  .app-layout.in-app.wide-page { --content:1360px; }
}
@media(min-width:2200px) {
  .app-layout.in-app { --rail:264px; --content:880px; font-size:19px; }
  .app-layout.in-app.wide-page { --content:1480px; }
  .in-app > .bottom-nav .nav-item { min-height:60px; font-size:17px; }
}
/* wide-2a end */

/* wide-2b start: Início in layers (João, 18 Oct 2026: "needs some layers"; every size, phones included). First layer:
   greeting and level, one "O teu próximo passo" card, the subjects; second layer, quieter: Só 2 minutos, the photo, the
   Caderneta; at most one small note line, closable for today. Only Início's own classes and the count variables below,
   so every other screen keeps its phone pixels. Theme colours only; motion is transform and opacity, off with reduced
   motion. The count classes give balanced rows: --c4/--c6/--c8 = columns when at most 4/6/8 fit, --r2 = at most 2. */
.subjects-n1 { --c4:1; --c6:1; --c8:1; --r2:1; }
.subjects-n2 { --c4:2; --c6:2; --c8:2; --r2:2; }
.subjects-n3 { --c4:3; --c6:3; --c8:3; --r2:2; }
.subjects-n4 { --c4:4; --c6:4; --c8:4; --r2:2; }
.subjects-n5 { --c4:3; --c6:5; --c8:5; --r2:2; }
.subjects-n6 { --c4:3; --c6:6; --c8:6; --r2:2; }
.subjects-n7 { --c4:4; --c6:4; --c8:7; --r2:2; }
.subjects-n8 { --c4:4; --c6:4; --c8:8; --r2:2; }
.subjects-n9 { --c4:3; --c6:5; --c8:5; --r2:2; }
.subjects-n10 { --c4:4; --c6:5; --c8:5; --r2:2; }
.subjects-n11 { --c4:4; --c6:6; --c8:6; --r2:2; }
.subjects-n12 { --c4:4; --c6:6; --c8:6; --r2:2; }
.home-layers { gap:12px; }
.home-layers > .greeting { margin:2px 0 0; }
.home-layers > :is(.xp,.home-note,.home-next,.home-subjects,.home-more) { margin:0; }
/* The note line: one at a time, the most useful first. */
.home-note { display:flex; align-items:center; gap:8px; min-height:52px; padding:4px 4px 4px 8px; border:1px solid var(--line); border-radius:18px; background:var(--card); color:var(--ink); box-shadow:var(--shadow); animation:home-note-in .28s cubic-bezier(.2,.8,.3,1) both; }
.home-note-icon { display:grid; place-items:center; flex:0 0 36px; height:36px; border-radius:12px; background:var(--soft); font-size:19px; line-height:1; }
.home-note-go,.home-note-text { display:flex; align-items:center; flex:1; min-width:0; min-height:44px; padding:4px; border:0; border-radius:12px; background:none; color:inherit; font-size:14px; font-weight:700; line-height:1.3; text-align:left; overflow-wrap:anywhere; }
.home-note-close { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:0; border-radius:14px; background:transparent; color:var(--ink); font-size:15px; font-weight:700; }
@media(hover:hover) { .home-note-close:hover { background:var(--card2); } .home-note-go:hover { text-decoration:underline; text-underline-offset:3px; } }
.home-note.praise { border-color:transparent; background:var(--cta); color:var(--cta-ink); }
.home-note.praise .home-note-icon { background:#ffffffd9 url(/brand/boa.png) center / 84% no-repeat; }
.home-note.praise .home-note-close { color:var(--cta-ink); }
@media(hover:hover) { .home-note.praise .home-note-close:hover { background:#ffffff59; } }
.home-note.past { border-color:transparent; background:var(--soft); }
.home-note.past .home-note-icon { background:var(--card); }
.home-note.add { border:2px dashed color-mix(in srgb,var(--primary) 45%,var(--line)); background:var(--card2); box-shadow:none; }
.home-note.add .home-note-icon { background:var(--cta); }
.home-note.leaving { animation:home-note-out .2s ease-in both; pointer-events:none; }
@keyframes home-note-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
@keyframes home-note-out { from { opacity:1; transform:none; } to { opacity:0; transform:translateY(-6px) scale(.98); } }
/* "O teu próximo passo": the one big card. */
.home-next > .home-next-eyebrow { margin:0 0 8px; color:var(--muted); font-size:13px; font-weight:700; line-height:1.3; }
.home-next .continue-copy h2 { margin:8px 0 6px; }
.home-next.prep .continue-head { margin-bottom:8px; }
.home-next.prep .continue-copy h2 { margin-bottom:0; font-size:21px; }
.home-next.prep .continue-art { width:76px; height:74px; }
.home-next > .home-next-line { margin:0 0 12px; font-size:14px; line-height:1.45; }
.home-next > progress { margin:0 0 16px; }
.home-next.prep > .home-next-go { min-height:58px; font-size:17px; border-radius:18px; }
.home-next-alt { display:block; width:100%; margin-top:6px; color:var(--primary); font-size:14px; font-weight:700; text-align:center; }
/* The subjects stay chips on a phone; tiles from 850 px. */
.home-subjects h3 { margin:0; }
.home-subjects .subjects { margin-top:10px; }
.home-subjects .subject-chip { display:inline-flex; align-items:center; gap:6px; }
.home-subjects .subject-emoji { font-size:15px; line-height:1; }
/* The second layer: one quiet list on a phone, three small tiles from 850 px. */
.home-more { padding-top:4px; }
.home-more h3 { margin:0 0 8px; color:var(--muted); font-size:15px; }
.home-more-list { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:20px; background:var(--card); overflow:hidden; }
.home-more-list > .photo-home { min-height:60px; margin:0; padding:10px 14px; gap:12px; border:0; border-radius:0; background:transparent; box-shadow:none; font-size:14px; }
.home-more-list > .photo-home + .photo-home { border-top:1px solid var(--line); }
.home-more-list > .photo-home:focus-visible { outline-offset:-3px; }
.home-more-list .photo-icon { width:36px; height:36px; border-radius:12px; font-size:19px; }
@media(min-width:850px) {
  .in-app > #screen.home-layers { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,340px); gap:var(--gap); align-content:start; }
  .home-layers > * { grid-column:1 / -1; min-width:0; }
  .home-layers > .greeting { grid-column:1; align-self:center; }
  .home-layers > .xp { grid-column:2; align-self:center; }
  .home-layers .greeting p { font-size:1em; }
  .home-note { min-height:56px; padding:6px 6px 6px 10px; }
  .home-note-icon { flex-basis:40px; height:40px; font-size:21px; }
  .home-note-go,.home-note-text { font-size:.95em; }
  .home-next { padding:24px 28px; }
  .home-next .continue-copy h2,.home-next.prep .continue-copy h2 { font-size:clamp(24px,1.7vw,30px); }
  .home-next .continue-copy p { font-size:.9em; }
  .home-next > .home-next-line { font-size:1em; }
  .home-next > .home-next-eyebrow { font-size:.85em; }
  .home-next .continue-art,.home-next.prep .continue-art { width:120px; height:116px; }
  .home-subjects h3,.home-more h3 { margin:0 0 14px; }
  .home-subjects .subjects { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; margin:0; }
  .home-subjects .subject-chip { --cols:var(--c4,4); display:flex; flex:0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); flex-direction:column; justify-content:center; gap:10px;
    min-width:0; min-height:100px; padding:14px 8px; border-radius:20px; box-shadow:var(--shadow); font-size:.95em; text-align:center; overflow-wrap:break-word; hyphens:auto; }
  .home-subjects .subject-emoji { font-size:32px; line-height:1.15; }
  .home-more h3 { font-size:1em; }
  .home-more-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; border:0; border-radius:0; background:none; overflow:visible; }
  .home-more-list > .photo-home,.home-more-list > .photo-home + .photo-home { min-height:76px; padding:14px 16px; border:1px solid var(--line); border-radius:18px; background:var(--card); font-size:.95em; }
  .home-more-list > .photo-home:focus-visible { outline-offset:3px; }
  .home-more-list .photo-icon { width:40px; height:40px; font-size:21px; }
}
@media(min-width:1024px) {
  .home-subjects .subject-chip { --cols:var(--c6,6); }
  /* One calm banner: Plico, the words, the button. The head's two parts join the card's grid. */
  .home-next { display:grid; grid-template-columns:auto minmax(0,1fr) minmax(220px,300px); grid-template-areas:"art eye cta" "art copy cta" "art line cta" "art bar alt";
    align-content:center; align-items:center; column-gap:28px; }
  .home-next > .continue-head { display:contents; }
  .home-next .continue-art,.home-next.prep .continue-art { grid-area:art; width:132px; height:128px; }
  .home-next > .home-next-eyebrow { grid-area:eye; margin:0 0 6px; }
  .home-next .continue-copy { grid-area:copy; }
  .home-next > .home-next-line { grid-area:line; margin:8px 0 0; }
  .home-next > progress { grid-area:bar; margin:12px 0 0; }
  .home-next > .home-next-go,.home-next.prep > .home-next-go { grid-area:cta; min-height:64px; font-size:clamp(17px,1.25vw,20px); }
  .home-next > .home-next-alt { grid-area:alt; margin-top:8px; }
}
@media(min-width:1536px) { .home-subjects .subject-chip { --cols:var(--c8,8); min-height:112px; } }
@media(hover:hover) and (min-width:850px) {
  .home-subjects .subject-chip { transition:transform .16s ease-out,border-color .16s ease-out; }
  .home-subjects .subject-chip:hover { transform:translateY(-2px); border-color:var(--primary); }
}
@media(prefers-reduced-motion:reduce) {
  .home-note,.home-note.leaving { animation:none; }
  .home-subjects .subject-chip { transition:none; }
  .home-subjects .subject-chip:hover { transform:none; }
}
/* Follow-up 2 (João 18 Oct): the praise in Eu opens "Temas que praticaste": one row per topic, ⏪ practises it again. */
button.week-link { width:100%; border:0; text-align:left; cursor:pointer; gap:10px; transition:transform .16s ease-out,box-shadow .16s ease-out; }
button.week-link::after { content:none; }
.week-link .week-text { flex:1; min-width:0; }
.week-link .week-go { flex:0 0 auto; padding:6px 10px; border-radius:12px; background:#ffffff73; font-size:14px; font-weight:800; white-space:nowrap; }
@media(hover:hover) { button.week-link:hover { transform:translateY(-2px); box-shadow:0 10px 24px #3a1d5a26; } }
button.week-link:active { transform:translateY(1px); }
.home-note-go { gap:8px; }
.home-note-go > span:first-child { flex:1; min-width:0; }
.home-note-chevron { flex:0 0 auto; font-size:22px; font-weight:700; line-height:1; opacity:.8; }
.practised-list { display:flex; flex-direction:column; gap:10px; margin:0; padding:0; list-style:none; }
.practised-row { display:flex; align-items:center; gap:12px; min-height:72px; padding:12px 12px 12px 14px; border:1px solid var(--line); border-radius:20px; background:var(--card); box-shadow:var(--shadow); }
.practised-icon { display:grid; place-items:center; flex:0 0 44px; height:44px; border-radius:14px; background:var(--soft); font-size:22px; line-height:1; }
.practised-copy { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; overflow-wrap:anywhere; }
.practised-copy strong { font-size:15px; line-height:1.3; }
.practised-again { flex:0 0 48px; width:48px; min-height:48px; padding:0; border-radius:16px; font-size:20px; }
.chips.practised-periods { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(min-width:560px) { .chips.practised-periods { grid-template-columns:repeat(4,minmax(0,1fr)); } }
/* wide-2b end */

/* joy-3 start */
/* Seven days form one little study notebook. Existing theme colours and fonts
   keep the notebook at home in every palette; no timed or looping celebration. */
.my-progress-link { display:block; min-height:52px; padding:10px 12px; border:1px solid var(--line); border-radius:16px; background:var(--card); color:var(--ink); text-decoration:none; }
.my-progress-link:hover { border-color:var(--primary); }
.my-progress-welcome { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.my-progress-welcome > div { min-width:0; }
.my-progress-welcome h1 { margin-bottom:8px; }
.my-progress-welcome img { width:80px; height:80px; object-fit:contain; flex-shrink:0; }
.my-progress { display:flex; flex-direction:column; gap:20px; min-width:0; }
.my-progress section { padding:20px; border:1px solid var(--line); border-radius:24px; background:var(--card); }
.my-progress h2 { font-size:22px; margin-bottom:12px; }
.my-progress-section-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 16px; }
.my-progress-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; padding:12px 0 8px; margin:0; list-style:none; }
.my-progress-day { display:flex; flex-direction:column; align-items:center; gap:7px; min-width:0; }
.my-progress-day abbr { font-size:12px; text-decoration:none; color:var(--muted); }
.my-progress-mark { display:grid; place-items:center; width:30px; height:30px; border:1px solid var(--muted); border-radius:50%; color:var(--muted); font-size:18px; }
.my-progress-mark.studied { background:var(--primary); color:var(--card); border-color:var(--primary); font-weight:700; }
:root[data-theme="noite"] .my-progress-mark.studied { color:#251535; }
.my-progress-day.is-today .my-progress-mark { outline:2px solid var(--primary); outline-offset:3px; }
.my-progress-bars { display:block; width:100%; max-width:40px; height:82px; border-bottom:1px solid var(--muted); }
.my-progress-bars .answers { fill:var(--primary); }
.my-progress-bars .lessons { fill:var(--good-ink); }
.my-progress-day-count { font-size:11px; color:var(--muted); white-space:nowrap; }
.my-progress-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 20px; margin:8px 0 12px; }
.my-progress-legend .answers { color:var(--primary); }
.my-progress-legend .lessons { color:var(--good-ink); }
.my-progress-pair { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
.my-progress-score { font-family:"Fredoka","Lexend",sans-serif; font-size:38px; line-height:1.2; font-weight:600; color:var(--primary); }
.my-progress-cheer { padding:10px 0; color:var(--good-ink); }
.my-progress-rhythm-total { font-weight:700; margin-bottom:8px; }
.my-progress-trophies { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 20px; }
.my-progress-trophies > div { display:flex; flex-direction:column-reverse; gap:4px; }
.my-progress-trophies dt { font-size:13px; color:var(--muted); }
.my-progress-trophies dd { margin:0; font-family:"Fredoka","Lexend",sans-serif; font-size:32px; font-weight:600; }
.my-progress-level { font-weight:700; margin-bottom:10px; }
.my-progress-conquests > .small { margin:10px 0 16px; }
@media(min-width:560px) {
  .my-progress-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .my-progress-welcome img { width:96px; height:96px; }
  .my-progress section { padding:24px; }
  .my-progress-days { gap:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .my-progress-link,.my-progress * { animation:none; transition:none; }
}
/* wide-2b follow-up (João 18 Oct, "make it more colorful ... more life ... for all themes"): each section has its own
   accent (week: the theme's primary; points: a warm star gold; rhythm: a warm flame coral; conquests: a sticker teal),
   an icon tile and a soft wash of its colour; studied days are bright filled marks, today has a ring; answers and lessons
   are two clearly different colours (the legend uses the same two); empty days are quiet. AA measured in every theme. */
.my-progress { --bar-a:var(--primary); --bar-b:#a8380c; }
:root[data-theme="por-do-sol"] .my-progress { --bar-b:#0f766e; }
:root[data-theme="noite"] .my-progress { --bar-b:#ffc35c; }
.my-progress-week { --acc:var(--primary); --acc-soft:var(--soft); }
.my-progress-points { --acc:#8a5300; --acc-soft:#fff0c2; }
.my-progress-rhythm { --acc:#b23c17; --acc-soft:#ffe1d3; }
.my-progress-conquests { --acc:#0d6e66; --acc-soft:#d3f3ec; }
:root[data-theme="noite"] .my-progress-points { --acc:#ffd36e; --acc-soft:#4a3b17; }
:root[data-theme="noite"] .my-progress-rhythm { --acc:#ffab85; --acc-soft:#4d2a22; }
:root[data-theme="noite"] .my-progress-conquests { --acc:#7ee3d0; --acc-soft:#1d4640; }
.my-progress section { position:relative; border-color:color-mix(in srgb,var(--acc) 28%,var(--line)); background:linear-gradient(165deg,var(--acc-soft),var(--card) 62%); box-shadow:var(--shadow); }
.my-progress-section-head { align-items:center; justify-content:flex-start; gap:10px 12px; margin-bottom:4px; }
.my-progress-section-head h2 { flex:1; min-width:0; margin:0; }
.my-progress-icon { display:grid; place-items:center; flex:0 0 42px; height:42px; border-radius:14px; background:color-mix(in srgb,var(--acc) 20%,var(--card)); font-size:22px; line-height:1; }
.my-progress-mark { border:2px dashed var(--line); background:transparent; }
.my-progress-mark.studied { border:0; background:var(--cta); color:var(--cta-ink); box-shadow:0 3px 0 color-mix(in srgb,var(--primary) 25%,transparent); }
:root[data-theme="noite"] .my-progress-mark.studied { color:var(--cta-ink); }
.my-progress-day.is-today .my-progress-mark { outline:3px solid var(--primary); outline-offset:3px; }
.my-progress-day.is-today abbr { color:var(--primary); font-weight:800; }
.my-progress-bars { border-bottom-color:var(--line); }
.my-progress-bars .answers { fill:var(--bar-a); }
.my-progress-bars .lessons { fill:var(--bar-b); }
.my-progress-legend span { display:inline-flex; align-items:center; gap:6px; color:var(--ink); font-weight:600; }
.my-progress-legend .answers { color:var(--bar-a); }
.my-progress-legend .lessons { color:var(--bar-b); }
.my-progress-day.is-empty .my-progress-day-count { font-size:12px; }
.my-progress-score,.my-progress-rhythm-total,.my-progress-trophies dd,.my-progress-level { color:var(--acc); }
.my-progress-points.is-better .my-progress-score { animation:my-progress-pop .5s cubic-bezier(.3,1.4,.5,1) .15s both; }
.my-progress-points.is-better::after { content:"\2728" / ""; position:absolute; top:18px; right:20px; font-size:22px; line-height:1; animation:my-progress-twinkle 1.6s ease-in-out .4s 2 both; }
@keyframes my-progress-pop { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:none; } }
@keyframes my-progress-twinkle { 0%,100% { opacity:.5; transform:scale(.85); } 50% { opacity:1; transform:scale(1.15) rotate(12deg); } }
@media(prefers-reduced-motion:reduce) { .my-progress-points.is-better .my-progress-score,.my-progress-points.is-better::after { animation:none; } }
/* joy-3 end */

/* joy-2 start */
.path-resume { display:grid; gap:6px; width:100%; min-width:44px; min-height:112px; padding:20px; border:1px solid var(--line); border-radius:20px; background:var(--soft); color:var(--primary); box-shadow:var(--shadow); text-align:left; overflow-wrap:anywhere; }
.path-resume-label { font-family:"Fredoka","Lexend",sans-serif; font-size:26px; font-weight:600; line-height:1.2; }
.path-resume-topic { font-size:17px; font-weight:600; line-height:1.4; }
.path-resume-module { font-size:13px; line-height:1.4; }
.path-modules { display:grid; gap:12px; min-width:0; }
.path-module { min-width:0; border:1px solid var(--line); border-radius:20px; background:var(--card); box-shadow:var(--shadow); }
.path-module > h2 { margin:0; font-size:20px; }
.path-module-toggle { display:flex; align-items:center; gap:12px; width:100%; min-height:96px; padding:16px; border:0; border-radius:20px; background:var(--card); color:var(--ink); text-align:left; }
.path-module-icon { display:grid; place-items:center; flex:0 0 40px; min-height:44px; font-size:28px; }
.path-module-copy { display:grid; gap:5px; flex:1; min-width:0; }
.path-module-name { font-family:"Fredoka","Lexend",sans-serif; font-size:20px; font-weight:600; line-height:1.25; overflow-wrap:anywhere; }
.path-module-progress { color:var(--muted); font-family:"Lexend",sans-serif; font-size:12px; font-weight:400; }
.path-module-copy progress { height:6px; margin-top:2px; }
.path-module-chevron { flex:0 0 20px; text-align:center; color:var(--primary); }
.path-module-toggle[aria-expanded="true"] .path-module-chevron { transform:rotate(180deg); }
.path-module-content { padding:0 12px 12px; }
.path-module-content[hidden] { display:none; }
.path-module-content .unit { margin:0 0 16px; }
.path-module-content .unit:last-child { margin-bottom:0; }
.path-module-content .unit-heading { box-shadow:none; background:var(--card2); padding:14px; border-radius:14px; }
.path-module-content .unit-heading h3 { font-size:18px; }
@media(max-width:380px) {
  .path-module-toggle { gap:8px; padding:12px; }
  .path-module-icon { flex-basis:32px; font-size:24px; }
  .path-module-name { font-size:18px; }
  .path-module-content { padding:0 6px 10px; }
  .path-module-content .step-row { gap:10px; }
  .path-module-content .trail-path .bend-2 { --bend:38px; }
}
/* joy-2 end */

/* tour-1 start: the spotlight tour (João, 18 Oct 2026: "they highlight that feature and the rest of the app stays more
   dark"). The app dims behind an SVG mask with a rounded hole over the real element, a soft ring glows around it, and a
   small bubble with Plico points at it. Positions come from tour.js (SVG attributes and the Web Animations API, no
   inline style); here only the look. Theme colours; transform and opacity only; nothing moves with reduced motion. */
.spot-layer { position:fixed; inset:0; z-index:60; background:transparent; touch-action:none; }
.spot-shade { position:fixed; inset:0; z-index:61; width:100%; height:100%; pointer-events:none; animation:spot-fade .28s ease-out both; }
.spot-dim { fill:#120a1ccc; }
:root[data-theme="noite"] .spot-dim { fill:#05020ad9; }
.spot-cut,.spot-ring { transform-box:view-box; transform-origin:0 0; }
.spot-ring { fill:none; stroke:var(--primary); stroke-width:3; filter:drop-shadow(0 0 10px color-mix(in srgb,var(--primary) 70%,transparent)); }
.spot-caret { fill:var(--card); }
.spot-bubble { position:fixed; left:0; top:0; z-index:62; width:min(340px,calc(100vw - 24px)); }
.spot-card { padding:16px 16px 10px; border:1px solid var(--line); border-radius:22px; background:var(--card); color:var(--ink); box-shadow:0 18px 50px #12081f55; }
.spot-card.spot-in { animation:spot-card-in .26s ease-out both; }
.spot-head { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.spot-plico { flex:0 0 56px; width:56px; height:56px; padding:4px; border-radius:18px; background:var(--soft); object-fit:contain; animation:spot-plico-in .36s cubic-bezier(.3,1.4,.5,1) both,spot-bob 2.4s ease-in-out .6s 3; }
.spot-copy { min-width:0; }
.spot-step { color:var(--muted); font-size:12px; font-weight:700; }
.spot-title { font-size:19px; line-height:1.25; }
.spot-lines { display:flex; flex-direction:column; gap:4px; font-size:15px; line-height:1.45; }
.spot-actions { display:flex; gap:8px; margin-top:12px; }
.spot-actions .spot-next { flex:1; min-height:52px; font-size:17px; }
.spot-actions .spot-back { flex:0 0 52px; min-height:52px; padding:0; font-size:26px; line-height:1; }
.spot-skip { display:flex; width:100%; min-height:44px; margin-top:4px; color:var(--muted); font-weight:700; }
@keyframes spot-fade { from { opacity:0; } to { opacity:1; } }
@keyframes spot-card-in { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes spot-plico-in { from { opacity:0; transform:translateY(10px) scale(.85); } to { opacity:1; transform:none; } }
@keyframes spot-bob { 0%,100% { transform:none; } 50% { transform:translateY(-4px); } }
@media(prefers-reduced-motion:reduce) {
  .spot-shade,.spot-card.spot-in,.spot-plico { animation:none; }
}
/* fe-fix-6: scroll room and compact bubbles keep the visible feature clear on short screens. */
.spot-space { height:100vh; pointer-events:none; }
.spot-card { max-height:calc(100dvh - 24px); overflow:auto; overscroll-behavior:contain; }
@media(max-height:479px) {
  .spot-card { padding:8px 12px; border-radius:16px; }
  .spot-plico { display:none; }
  .spot-head { margin-bottom:4px; }
  .spot-title { font-size:16px; }
  .spot-lines { font-size:14px; line-height:1.3; }
  .spot-actions { margin-top:6px; }
  .spot-actions .spot-next,.spot-actions .spot-back { min-height:44px; }
  .spot-actions .spot-back { flex-basis:44px; }
  .spot-skip { margin-top:0; }
}
/* tour-1 end */

/* sound-settings start: volume sliders in "Som e voz" (João, 18 Oct), 0 to 10 per kind and general */
.vol-row { display:grid; grid-template-columns:1fr auto; align-items:center; gap:6px 12px; padding:6px 0; }
.vol-label { font-weight:700; }
.vol-value { font-weight:700; color:var(--primary); min-width:5.5em; text-align:right; }
.vol-range { grid-column:1 / -1; width:100%; min-height:44px; accent-color:var(--primary); cursor:pointer; }
.vol-row .small { grid-column:1 / -1; margin:0; }
/* sound-settings end */

/* paid-1 start: "Apoio ao cliente" and the Livro de Reclamações logo (adults' and public screens only) */
.support-mail { display:flex; align-items:center; justify-content:center; text-decoration:none; overflow-wrap:anywhere; }
.lre-footer { margin:8px 0 0; }
/* The official logo is white on transparent: a fixed dark badge keeps it legible in every theme (contrast > 12:1). */
.lre-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px;
  padding:6px 12px; border-radius:10px; background:#1f2a33; border:1px solid var(--line); }
.lre-link img { display:block; width:121px; height:auto; }
.lre-link:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.landing-credit a { display:inline-flex; align-items:center; min-height:44px; color:var(--primary); text-underline-offset:3px; }
/* paid-1 end */

/* ux-1 start (João 19 Oct): a subject that is not open is muted and carries a small lock; the consent text scrolls in its own box. */
.is-locked { color:var(--muted); border-style:dashed; background:var(--card2); }
.is-locked .subject-emoji,.is-locked .subject-icon { filter:grayscale(1); }
.lock-mark { font-style:normal; font-size:.85em; }
.small-link { align-self:center; min-height:44px; display:inline-flex; align-items:center; font-size:14px; font-weight:600; color:var(--primary); text-decoration:underline; }
.consent-scroll { max-height:min(50vh,420px); max-height:min(50dvh,420px); overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
/* The consent screen fits the screen: the text box takes the room that is left (about half of a tall one), never less than
   150px, so the two checkboxes and the button stay in view; on a very short screen the page scrolls as before. */
.app-layout:has(.consent-scroll) { flex:none; height:100dvh; min-height:0; }
@media(min-width:850px) { #app:has(> .app-layout:not(.in-app)) > .app-layout:has(.consent-scroll) { height:min(calc(100dvh - 84px),820px); } }
.app-layout:has(.consent-scroll) > #screen { flex:1 1 auto; min-height:0; overflow-y:auto; }
#screen > .consent-host { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
:is(#screen,.consent-host) > .consent-scroll { flex:1 1 150px; min-height:150px; max-height:min(56dvh,520px); }
:is(#screen,.consent-host):has(> .consent-scroll) > :not(.consent-scroll) { flex:none; }
.consent-scroll:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
/* ux-1 end */
/* parent-ux-1 start (João 19 Oct, his own start as a parent): the year and birth dropdowns (the device's own select, styled
   like card 33's), the fixed parent sign, the two-step start ("Onde vai ... estudar?") and the family screen's profile cards. */
.native-field .select-box { display:block; }
.birth-date { margin:0; padding:0; border:0; min-width:0; }
.birth-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.birth-row .field { min-width:0; }
.parent-head { display:flex; align-items:center; gap:12px; }
.parent-avatar { flex:none; display:grid; place-items:center; width:52px; height:52px; border-radius:18px; background:var(--soft); color:var(--ink); font-size:28px; line-height:1; }
.step-count { font-weight:600; }
.place-choices { display:flex; flex-direction:column; gap:12px; }
.place-choice { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:14px; width:100%; min-height:72px; padding:14px 16px; border:2px solid var(--line); border-radius:20px; background:var(--card); color:var(--ink); text-align:left; font:inherit; box-shadow:var(--shadow); }
.place-choice[aria-pressed="true"] { border-color:var(--primary); background:var(--soft); }
.place-icon { font-size:30px; line-height:1; }
.place-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.place-text strong { font-size:17px; line-height:1.3; overflow-wrap:anywhere; }
.place-text small { font-size:14px; color:var(--muted); line-height:1.4; }
.place-panel:empty { display:none; }
.pair-link { padding:12px 14px; border:2px dashed var(--line); border-radius:16px; background:var(--card2); font-size:15px; font-weight:600; overflow-wrap:anywhere; -webkit-user-select:all; user-select:all; }
.device-on { color:var(--good-ink); font-weight:600; }
.device-off { padding:14px; border:2px dashed var(--line); border-radius:18px; background:var(--card2); }
.child-study h3,.child-tests h3 { font-size:18px; line-height:1.3; }
.child-study,.child-tests { gap:6px; }
.child-actions { display:flex; flex-wrap:wrap; gap:10px; }
.child-actions .btn { flex:1 1 140px; min-height:48px; }
.eu-avatar-still { animation:none; }
/* parent-ux-1 end */
/* readability-1 start (20 Oct): «Uma ideia» as Plico's chat in 💬 Conversa: 1-3 bubbles at once, a short stagger,
   Plico only beside the last; key terms stay inline inside hints and «porque está errado» (.feedback strong is a block). */
.idea-convo { margin:2px 0 0; }
.idea-log .convo-bubble { margin:0; }
.idea-log .convo-msg:nth-child(2) { animation-delay:.12s; }
.idea-log .convo-msg:nth-child(3) { animation-delay:.24s; }
.convo-gap { visibility:hidden; }
.feedback strong.key-term { display:inline; margin:0 -.04em; }
.feedback strong.term { display:inline; margin:0; }
@media(prefers-reduced-motion:reduce) { .idea-log .convo-msg { animation:none; } }
/* readability-1 end */
/* testprep-2 start (João 21 Oct), test screens only: earlier-year topics in «Marcar um teste», the «Resumo para o teste» and its
   mini-test, and their print view (only the sheet is printed, black on white, no app bars or buttons). */
.check .year-tag { margin-left:4px; padding:3px 8px; font-size:12px; vertical-align:middle; }
.summary-list { margin:0; padding-left:22px; display:grid; gap:8px; }
.summary-list li,.mini-test > li { overflow-wrap:anywhere; }
.mini-test { margin:0; padding-left:26px; display:grid; gap:18px; }
.mini-test > li { gap:6px; }
.mini-test p,.mini-answer { margin:0; }
.mini-options { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
@media print {
  body:has(.summary-sheet) { background:#fff !important; background-image:none !important; color:#000 !important; min-height:0; }
  body:has(.summary-sheet) > :not(#app),.app-layout:has(.summary-sheet) > :not(#screen),.summary-sheet .no-print { display:none !important; }
  body:has(.summary-sheet) #app,.app-layout:has(.summary-sheet),.app-layout:has(.summary-sheet) #screen { display:block; width:auto; max-width:none; min-height:0; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:#fff; }
  .summary-sheet,.summary-sheet * { color:#000 !important; background:transparent !important; box-shadow:none !important; }
  .summary-sheet .card { border:1px solid #888; border-radius:8px; padding:10px 12px; margin:0 0 10px; page-break-inside:avoid; }
  .summary-sheet h1 { font-size:20pt; margin:0 0 6px; }
  .summary-sheet h2,.summary-sheet h3 { page-break-after:avoid; }
  .summary-sheet li { page-break-inside:avoid; }
  .summary-sheet .tag { padding:0; font-size:10pt; }
}
/* resumo-share (João 21 Oct, work/growth/SPEC_resumo_partilhavel_2026-10-21.md), in this block: the «Resumo para o teste»
   saved as a PDF from the browser's print. Print rules only: the brand header, the last block (a QR of about 30 mm, black
   on white, the link and the honest line) and a slim footer on every page, drawn in the page's bottom margin (a named page
   with a margin box, so it never covers the text; its words match SUMMARY_NAME in tests.js). On screen these parts keep
   `hidden`. */
@media print {
  .summary-sheet { page:resumo; }
  @page resumo {
    margin:12mm 14mm 16mm;
    @bottom-center { content:"oexplica.pt \00B7  Resumo para o teste"; font-family:system-ui,sans-serif; font-size:8.5pt; color:#444; }
  }
  /* A little tighter on paper, so a usual test fits on one or two pages. */
  .summary-sheet { font-size:10.5pt; line-height:1.35; }
  .summary-sheet.stack,.summary-sheet .stack { gap:2.5mm; }
  .summary-sheet .card { margin:0; padding:2.5mm 3.5mm; page-break-inside:auto; }  /* a long topic may go on over the page */
  .summary-sheet h1 { font-size:17pt; }
  .summary-sheet h2 { font-size:13pt; }
  .summary-sheet h3 { font-size:11pt; }
  .summary-sheet .summary-list { gap:1mm; }
  .summary-sheet .sheet-print[hidden] { display:block !important; }
  .summary-sheet .sheet-head[hidden] { display:flex !important; align-items:center; justify-content:space-between; gap:8mm; margin:0 0 4mm; padding:0 0 3mm; border-bottom:1px solid #888; }
  .summary-sheet .sheet-wordmark { width:36mm; height:auto; }
  .summary-sheet .sheet-plico { width:13mm; height:13mm; object-fit:contain; }
  .summary-sheet .sheet-share[hidden] { display:flex !important; flex-direction:column; align-items:center; gap:2mm; margin:6mm 0 0; padding:5mm 0 0; border-top:1px solid #888; text-align:center; page-break-inside:avoid; }
  .summary-sheet .sheet-qr { display:block; width:30mm; height:30mm; }
  .summary-sheet .sheet-link,.summary-sheet .sheet-line { margin:0; }
  .summary-sheet .sheet-link a { color:#000 !important; font-weight:700; text-decoration:underline; }
  .summary-sheet .sheet-line { max-width:150mm; font-size:9pt; text-wrap:balance; }
}
/* testprep-2 end */

/* pricing-2 start (21 Oct, card B): Plico's line on the invite screens, the share block with its QR and code chip, the
   neutral landing's choice, the parent review's safety list, the free-subject chips that are full or fixed, and the special
   collectibles in the Caderneta (the golden one uses the album's gold look; the shine stops with reduced motion). */
.plico-line { display:flex; align-items:flex-end; gap:10px; }
.plico-line-art { width:72px; height:72px; flex-shrink:0; object-fit:contain; }
.plico-bubble { position:relative; margin:0 0 10px; padding:10px 14px; border:1px solid var(--line); border-radius:18px 18px 18px 6px; background:var(--card); color:var(--ink); box-shadow:var(--shadow); font-weight:700; line-height:1.45; }
.invite-share { align-items:stretch; }
.invite-qr { margin:0; align-items:center; }
.invite-qr .qr { width:min(240px,100%); }
.code-chip { min-height:48px; align-self:center; letter-spacing:1px; font-variant-numeric:tabular-nums; }
.invite-who .btn { min-height:56px; }
.invite-safety { margin:0; padding-left:22px; display:flex; flex-direction:column; gap:6px; }
.chip-check:has(input:disabled:not(:checked)) { color:var(--muted); border-style:dashed; background:var(--card2); }
.chip-check:has(input:disabled:checked) { cursor:default; }
.album-specials h2 { text-align:center; }
.special-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
.special-sticker { margin:0; display:flex; flex-direction:column; align-items:center; gap:8px; padding:12px 8px; border-radius:18px; border:2px dashed var(--line); background:var(--card); text-align:center; }
.special-sticker.owned { border:2px solid #fff; box-shadow:var(--shadow); }
.special-sticker.owned.is-gold { border-color:#f2cf62; }
.special-face { position:relative; overflow:hidden; display:block; width:100%; max-width:110px; aspect-ratio:1; border-radius:16px; }
.special-sticker.is-gold.owned .sticker-img { filter:sepia(1) saturate(3.2) hue-rotate(-12deg) brightness(1.05); }
/* fix-11b (R11-SCREENS-L8): the signed-out wordmark link is a 44 px target. */
.brand-home { display:inline-flex; align-items:center; min-height:44px; }
/* fix-11b (R11-SCREENS-M2): the Fundador code's confirm step. */
.code-confirm { border:2px solid var(--primary); }
/* pricing-2 end */
/* audit-fix-1 start: launch audit 21 Oct (LA-M7, LA-M8, LA-L27, LA-L28, LA-L31) */
/* LA-M8: the message boxes stay in the page and the accessibility tree; idle or empty they are only clipped away, so
   a screen reader still hears every new message. */
.toast { cursor:pointer; }
.toast:empty,.toast[data-idle] { clip-path:inset(50%); pointer-events:none; }
/* LA-M7: a used tile or letter keeps the keyboard focus (aria-disabled); it reads as used without losing contrast. */
button[aria-disabled="true"]:not(.matched) { cursor:default; border-style:dashed; background:var(--card2); }
/* LA-L27 (WCAG 1.4.11): text fields with a border of 3:1 or more on the card and the page, in every theme (html, so
   the theme blocks above stay the only :root ones). */
html { --field-line:#978aa4; }
html[data-theme="oceano"] { --field-line:#7c929f; }
html[data-theme="floresta"] { --field-line:#819285; }
html[data-theme="por-do-sol"] { --field-line:#a38991; }
html[data-theme="noite"] { --field-line:#746b82; }
html[data-theme="simples"] { --field-line:#878f9c; }
.input { border-color:var(--field-line); }
/* LA-L28: the tab bar labels and the trail's step details a little larger on phones. */
.nav-item { font-size:12px; }
/* menu-icons start (João 15 Nov 22:33 on menu-v8.png; 19 Nov 13:43 "this icons should be custom"): the learner menu's
   drawn icons (public/js/menu-icons.js). Every icon keeps a 40 px layout box, so the labels line up and nothing moves
   while «Eu» fills in; Trilho is drawn 15% larger and Eu 25% (the Plico about 8% over Trilho), spilling over the box
   with negative margins, as in v4.html. The laptop rail uses the same proportions on a 36 px box. */
.nav-ic { display:block; flex:none; width:40px; height:40px; }
.nav-ic > .menu-art { display:block; width:100%; height:100%; overflow:visible; }
.nav-ic-trilho { width:46px; height:46px; margin:-3px; }
.nav-ic-eu { width:50px; height:50px; margin:-5px; }
.nav-item:has(> .nav-ic) { gap:3px; padding-block:6px 4px; }
@media(min-width:850px) {
  .in-app > .bottom-nav .nav-ic { width:36px; height:36px; }
  .in-app > .bottom-nav .nav-ic-trilho { width:41.4px; height:41.4px; margin:-2.7px; }
  .in-app > .bottom-nav .nav-ic-eu { width:45px; height:45px; margin:-4.5px; }
  .in-app > .bottom-nav .nav-item:has(> .nav-ic) { padding-block:10px; }
}
/* Noite: the art keeps its dark outline; a thin pale edge (the theme's ink) keeps the outline and the sprout's stem
   readable on the dark bar. The drawings themselves are unchanged. */
:root[data-theme="noite"] .nav-ic > .menu-art { filter:drop-shadow(0 0 .6px #f4efffb3) drop-shadow(0 0 .6px #f4efffb3); }
/* menu-icons end */
.step-label small { font-size:13px; }
/* LA-L31 (WCAG 2.2.2): the next step's pulse and a golden sticker's shine play three times, then rest. */
.step-node.next,.shiny::after { animation-iteration-count:3; }
/* audit-fix-1 end */
/* next-entry start (João 21 Oct, on /register#/quem): the screens before signing in, never the signed-in app. The adults'
   ones carry a light header back to the site (the logo and «Início»); each one a small footer (the site's Privacidade,
   Termos and Segurança, or the learners' texts inside the app). */
.topbar .entry-home { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border-radius:999px; background:var(--soft); color:var(--primary); font-size:14px; font-weight:700; text-decoration:none; flex-shrink:0; }
@media(hover:hover) { .topbar .entry-home:hover { box-shadow:0 0 0 2px var(--primary); } }
.entry-footer { border-top:1px solid var(--line); }
.entry-footer .app-footer { flex-wrap:wrap; align-items:center; padding:4px 20px 12px; }
.entry-footer .text-button { display:inline-flex; align-items:center; padding:10px 6px; }
/* footer-dots start (João 16 Nov: "points are off"): the dot rows under the entry screens, the legal texts and the parents'
   dashboard. The dot was its own flex item, stretched to the row's 48 px with its text at the top, while the links' text
   sat 10 px lower (padding), so it rode high; the no-break spaces gave 3.6 px a side. Now each link carries its own
   dot, drawn in the same font and centred on the link's text line, in an equal slot before it; the slot of the first link
   on every line is cut away, so a wrapped row never starts or ends with a dot. The old separator spans stay hidden. */
.legal-links,.entry-footer .app-footer { --sep:22px; display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:center;
  width:fit-content; max-width:calc(100% - 40px + var(--sep)); margin-inline:auto; padding-inline:0; translate:calc(var(--sep) / -2) 0;
  clip-path:inset(-16px -16px -16px var(--sep)); }
.legal-links > [aria-hidden="true"],.entry-footer .app-footer > [aria-hidden="true"] { display:none; }
.legal-links > a,.entry-footer .app-footer > a { position:relative; display:inline-flex; align-items:center; margin-left:var(--sep); padding:10px 0; }
.legal-links > a::before,.entry-footer .app-footer > a::before { content:"\00b7"; position:absolute; top:0; bottom:0; left:calc(var(--sep) / -2);
  width:0; display:flex; align-items:center; justify-content:center; color:var(--muted); text-decoration:none; pointer-events:none; }
/* footer-dots end */
/* next-entry end */
/* camera-inpage start (João 21 Oct, question 43): the camera inside the page on the photo screens (public/photo/camera.js).
   Theme colours only; the live image and the kept photo sit on black, so any camera shape fits a phone at 360 px. */
.camera-dialog { width:calc(100% - 16px); max-width:560px; max-height:calc(100dvh - 16px); overflow:auto; border:1px solid var(--line); border-radius:22px; padding:14px; color:var(--ink); background:var(--card); }
.camera-dialog[open] { display:flex; flex-direction:column; gap:10px; }
.camera-dialog::backdrop { background:#24143299; }
.camera-dialog h2 { font-size:20px; overflow-wrap:anywhere; }
.camera-frame { display:flex; align-items:center; justify-content:center; width:100%; height:min(56dvh,520px); flex-shrink:0; border-radius:16px; overflow:hidden; background:#000; }
.camera-frame video { display:block; width:100%; height:100%; object-fit:contain; }
.camera-frame canvas { display:block; width:auto; height:auto; max-width:100%; max-height:100%; }
.camera-actions,.camera-more { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; min-width:0; }
.camera-actions .btn,.camera-more .btn { min-width:0; overflow-wrap:anywhere; }
.camera-actions .camera-shoot { grid-column:1 / -1; min-height:72px; font-size:20px; }
.camera-torch[aria-pressed="true"] { box-shadow:0 0 0 3px var(--primary); }
/* camera-inpage end */
/* miniaula start (João 21 Oct, questions 44a and 45b): the mini-aula player (public/media/miniaula.js). Like a video:
   the picture, its controls right below, then the large, high-contrast narration; the picture keeps a fixed height so
   the narration stays on screen at 360 px. Theme colours only. */
.miniaula-host { min-width:0; }
.miniaula { gap:10px; min-width:0; padding:14px; border:1px solid var(--line); border-radius:22px; background:var(--card); color:var(--ink); }
.miniaula:focus { outline:none; }
.miniaula:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.miniaula-head { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.miniaula-title { margin:0; font-size:19px; overflow-wrap:anywhere; }
.miniaula-stage { display:flex; align-items:center; justify-content:center; height:min(40vh,420px); height:min(40dvh,420px); min-height:200px; border-radius:16px; overflow:hidden; background:var(--card2); }
.miniaula-visual { display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.miniaula-visual svg,.miniaula-visual .miniaula-img { display:block; width:100%; height:100%; object-fit:contain; border-radius:0; }
.miniaula-stage.ampliada { height:auto; min-height:0; }
.miniaula-stage.ampliada .miniaula-visual,.miniaula-stage.ampliada svg,.miniaula-stage.ampliada .miniaula-img { height:auto; }
.miniaula-controls { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
.miniaula .miniaula-btn { min-width:0; min-height:48px; padding:6px; font-size:22px; border-radius:14px; background:var(--soft); color:var(--primary); }
.miniaula .miniaula-btn:disabled { opacity:.45; }
.miniaula .miniaula-btn[aria-pressed="true"] { box-shadow:0 0 0 3px var(--primary); }
.miniaula .miniaula-close { min-height:44px; padding:8px 12px; font-size:16px; background:transparent; }
.miniaula-progress { display:flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap; }
.miniaula-dots { display:flex; flex-wrap:wrap; justify-content:center; margin:0; padding:0; list-style:none; }
.miniaula .miniaula-dot { min-width:28px; min-height:36px; padding:0; border:0; box-shadow:none; font-size:0; background:transparent; }
.miniaula-dot::before { content:""; display:block; width:10px; height:10px; margin:auto; border:2px solid var(--primary); border-radius:50%; }
.miniaula-dot.done::before { background:var(--soft); }
.miniaula-dot[aria-current="step"]::before { width:14px; height:14px; background:var(--primary); }
.miniaula-count { margin:0; font-size:13px; color:var(--muted); white-space:nowrap; }
.miniaula-say { display:flex; align-items:flex-start; gap:10px; min-height:5.6em; }
.miniaula-plico { flex-shrink:0; width:44px; height:44px; object-fit:contain; }
.miniaula-text { margin:0; min-width:0; font-size:21px; line-height:1.4; font-weight:600; color:var(--ink); overflow-wrap:anywhere; }
.miniaula-caption { margin:0; font-size:12px; color:var(--muted); }
.miniaula-note,.miniaula-status { margin:0; padding:10px 12px; border-radius:12px; font-size:15px; color:var(--ink); background:var(--card2); }
@media (max-width:420px) {
  .miniaula { padding:10px; gap:8px; }
  .miniaula-text { font-size:20px; }
}
/* miniaula end */
/* age-gate-clear start (João 22 Oct, "no scroll on the buttons"): the learner's birth year as «− 2012 +» beside the month */
.birth-row.with-stepper { grid-template-columns:minmax(0,1fr) 162px; align-items:start; }  /* round 12c L1: 44+4+66+4+44, a long fix line wraps */
.year-stepper { display:flex; align-items:center; gap:4px; }
.year-stepper .year-input { flex:none; width:66px; padding-left:4px; padding-right:4px; text-align:center; font-weight:700; }
.year-stepper .btn.year-step { flex:none; width:44px; min-height:56px; padding:0; border-radius:14px; font-size:24px; line-height:1; }
@media (max-width:340px) { .birth-row.with-stepper { grid-template-columns:minmax(0,1fr); } }
/* age-gate-clear end */
/* checkout-2 start: W20, the payer's celebration after paying (billing.js paid). Confetti: 18 small pieces, transform
   and opacity only, once (about 3 s), never with reduced motion; the screen itself stays calm and readable. */
.paid-screen { text-align:center; }
.paid-screen h1 { margin:4px 0 6px; }
.paid-screen .card { text-align:left; }
.paid-screen .card p { margin:6px 0; }
.paid-plico { display:block; width:112px; height:112px; margin:6px auto 0; }
.confetti { position:fixed; top:0; right:0; bottom:0; left:0; z-index:40; overflow:hidden; pointer-events:none; }
.confetti i { position:absolute; top:-18px; left:50%; width:8px; height:14px; border-radius:2px; opacity:0; background:#ffb84d; animation:paid-confetti 2.6s cubic-bezier(.25,.6,.45,1) forwards; }
.confetti i:nth-child(3n) { width:10px; height:10px; border-radius:50%; background:#5ec8b8; }
.confetti i:nth-child(3n+1) { background:#b79cf7; }
.confetti i:nth-child(4n) { background:#ff8fab; }
.confetti i:nth-child(even) { animation-duration:3.1s; }
.confetti i:nth-child(1) { left:6%; animation-delay:.05s; --dx:-40px; }
.confetti i:nth-child(2) { left:14%; animation-delay:.25s; --dx:30px; }
.confetti i:nth-child(3) { left:22%; animation-delay:.1s; --dx:-20px; }
.confetti i:nth-child(4) { left:30%; animation-delay:.4s; --dx:45px; }
.confetti i:nth-child(5) { left:38%; animation-delay:0s; --dx:-35px; }
.confetti i:nth-child(6) { left:46%; animation-delay:.3s; --dx:25px; }
.confetti i:nth-child(7) { left:54%; animation-delay:.15s; --dx:-50px; }
.confetti i:nth-child(8) { left:62%; animation-delay:.45s; --dx:35px; }
.confetti i:nth-child(9) { left:70%; animation-delay:.2s; --dx:-25px; }
.confetti i:nth-child(10) { left:78%; animation-delay:.05s; --dx:40px; }
.confetti i:nth-child(11) { left:86%; animation-delay:.35s; --dx:-30px; }
.confetti i:nth-child(12) { left:94%; animation-delay:.1s; --dx:20px; }
.confetti i:nth-child(13) { left:10%; animation-delay:.5s; --dx:50px; }
.confetti i:nth-child(14) { left:26%; animation-delay:.2s; --dx:-45px; }
.confetti i:nth-child(15) { left:42%; animation-delay:.4s; --dx:15px; }
.confetti i:nth-child(16) { left:58%; animation-delay:.3s; --dx:-15px; }
.confetti i:nth-child(17) { left:74%; animation-delay:.15s; --dx:55px; }
.confetti i:nth-child(18) { left:90%; animation-delay:.25s; --dx:-55px; }
@keyframes paid-confetti { 0% { opacity:1; transform:translate3d(0,0,0) rotate(0deg); } 80% { opacity:1; } 100% { opacity:0; transform:translate3d(var(--dx,20px),105vh,0) rotate(560deg); } }
@media (prefers-reduced-motion: reduce) { .confetti { display:none; } }
/* checkout-2 end */

/* onboarding-2 start: João 11 Nov 2026, Agency skill app-onboarding: the Plico's first-run conversation (onboarding.js).
   One spring for everything; the old step blurs out and the new one rises in. Transform, opacity and filter only.
   Phone: one column, the Plico and his line on top, the answer in the middle, the button in thumb reach.
   Desktop (1024 px and up): the Plico and the whole conversation on the left, the step on a card on the right.
   Reduced motion: the global rule above stops every animation, and every element below is visible without one. */
:root { --onb-spring:cubic-bezier(.2,.9,.25,1.15); --onb-in:420ms; }
.onb { display:flex; flex-direction:column; gap:14px; min-height:calc(100dvh - 150px); }
.onb-head { display:flex; align-items:center; gap:10px; min-height:44px; }
.onb-back { min-height:44px; min-width:44px; padding:0; border-radius:14px; font-size:26px; line-height:1; }
.onb-back[hidden] { display:flex; visibility:hidden; }
.onb-bar,.onb-bar-space { flex:1; height:8px; border-radius:99px; }
.onb-bar { background:var(--soft); overflow:hidden; }
.onb-bar i { display:block; height:100%; border-radius:inherit; background:var(--primary); transform-origin:left center; transform:scaleX(0); transition:transform var(--onb-in) var(--onb-spring); }
.onb-bar i[data-p="0"] { transform:scaleX(0.00); }
.onb-bar i[data-p="1"] { transform:scaleX(0.05); }
.onb-bar i[data-p="2"] { transform:scaleX(0.10); }
.onb-bar i[data-p="3"] { transform:scaleX(0.15); }
.onb-bar i[data-p="4"] { transform:scaleX(0.20); }
.onb-bar i[data-p="5"] { transform:scaleX(0.25); }
.onb-bar i[data-p="6"] { transform:scaleX(0.30); }
.onb-bar i[data-p="7"] { transform:scaleX(0.35); }
.onb-bar i[data-p="8"] { transform:scaleX(0.40); }
.onb-bar i[data-p="9"] { transform:scaleX(0.45); }
.onb-bar i[data-p="10"] { transform:scaleX(0.50); }
.onb-bar i[data-p="11"] { transform:scaleX(0.55); }
.onb-bar i[data-p="12"] { transform:scaleX(0.60); }
.onb-bar i[data-p="13"] { transform:scaleX(0.65); }
.onb-bar i[data-p="14"] { transform:scaleX(0.70); }
.onb-bar i[data-p="15"] { transform:scaleX(0.75); }
.onb-bar i[data-p="16"] { transform:scaleX(0.80); }
.onb-bar i[data-p="17"] { transform:scaleX(0.85); }
.onb-bar i[data-p="18"] { transform:scaleX(0.90); }
.onb-bar i[data-p="19"] { transform:scaleX(0.95); }
.onb-bar i[data-p="20"] { transform:scaleX(1.00); }
.onb-grid { display:flex; flex-direction:column; gap:14px; flex:1; }
.onb-side { display:flex; align-items:flex-end; gap:12px; cursor:default; }
.onb-plico-wrap { flex:0 0 auto; }
.onb-plico { width:84px; height:84px; object-fit:contain; animation:onb-rise var(--onb-in) var(--onb-spring) both, onb-float 4.5s ease-in-out 600ms infinite; }
.onb-chat { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; flex:1; min-width:0; }
.onb-turn { display:none; }
.onb-turn.is-now { display:block; animation:onb-pop var(--onb-in) var(--onb-spring) both; }
.onb-say { margin:0; padding:12px 16px; border-radius:20px 20px 20px 6px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); color:var(--ink); font-size:19px; font-weight:700; line-height:1.35; overflow-wrap:anywhere; }
.onb-turn.is-now + .onb-turn.is-now .onb-say { font-size:17px; font-weight:600; }
.onb-say.is-typing .onb-typing::after { content:""; display:inline-block; width:2px; height:1em; margin-left:2px; vertical-align:-2px; background:var(--primary); animation:onb-caret .8s steps(1) infinite; }
.onb-main { display:flex; flex-direction:column; gap:12px; flex:1; }
.onb-stage { flex:1; }
.onb-card { display:block; }
.onb-card.onb-in { animation:onb-step var(--onb-in) var(--onb-spring) both; }
.onb-actions { position:sticky; bottom:0; display:flex; flex-direction:column; gap:8px; padding:12px 0 calc(8px + env(safe-area-inset-bottom)); background:linear-gradient(to top,var(--bg) 70%,transparent); z-index:2; }
/* Bug hunt 15 Nov (A-08): edge to edge and see-through, so no pale block shows over the page's own gradient. */
@media(max-width:1023px) { .onb-actions { margin:0 -20px; padding-left:20px; padding-right:20px; background:linear-gradient(to top,color-mix(in srgb,var(--bg) 55%,transparent) 60%,transparent); } }
@media(max-width:374px) { .onb-actions { margin:0 -16px; padding-left:16px; padding-right:16px; } }  /* the screen's own side padding there */
/* Retest 16 Nov (A-08): from 431 px the screen is a centred 430 px column over the page's gradient (.phone-shell), so no
   backing can reach the edges: the bar has none, like the desktop's. */
@media(min-width:431px) and (max-width:1023px) { .onb-actions { margin:0; padding-left:0; padding-right:0; background:none; } }
.onb-actions:empty { display:none; }
.onb-go[disabled] { opacity:.55; }
.onb-choices { display:grid; gap:10px; }
.onb-choice { display:flex; align-items:center; gap:14px; width:100%; min-height:64px; padding:14px 16px; text-align:left; border-radius:20px; border:2px solid var(--line); background:var(--card); color:var(--ink); box-shadow:var(--shadow); font:inherit; cursor:pointer; transition:transform 180ms var(--onb-spring),border-color 160ms ease-out,background-color 160ms ease-out; }
.onb-choice:active { transform:scale(.97); }
.onb-choice[aria-pressed="true"] { border-color:var(--primary); background:var(--soft); animation:onb-chip var(--onb-in) var(--onb-spring); }
.onb-choice:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.onb-choice-icon { font-size:28px; line-height:1; flex:0 0 auto; }
.onb-choice-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.onb-choice-text strong { font-size:17px; line-height:1.3; }
.onb-choice-text small { color:var(--muted); font-size:14px; line-height:1.35; }
.onb-subjects { grid-template-columns:repeat(2,minmax(0,1fr)); }
.onb-subjects .onb-choice { flex-direction:column; align-items:flex-start; gap:8px; min-height:96px; }
.onb-days { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.onb-days .onb-choice,.onb-week .onb-choice,.onb-row .onb-choice { justify-content:center; text-align:center; padding:10px 4px; min-height:64px; }
.onb-days .onb-choice-text,.onb-week .onb-choice-text,.onb-row .onb-choice-text { align-items:center; }
.onb-days .onb-choice-text strong { font-size:14px; font-weight:600; color:var(--muted); }
.onb-days .onb-choice-text small { font-size:20px; font-weight:800; color:var(--ink); }
.onb-week { grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.onb-week .onb-choice { min-height:56px; border-radius:16px; padding:8px 2px; }
.onb-week .onb-choice-text strong { font-size:14px; }
.onb-row { grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
.onb-hello { font-size:64px; text-align:center; padding:28px 0; animation:onb-wave 1.6s ease-in-out 400ms 2 both; transform-origin:70% 70%; }
.onb-timeline { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.onb-time { display:flex; gap:14px; align-items:flex-start; padding:14px 16px; border-radius:20px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); animation:onb-pop var(--onb-in) var(--onb-spring) both; }
.onb-time:nth-child(2) { animation-delay:80ms; }
.onb-time:nth-child(3) { animation-delay:160ms; }
.onb-time > span:last-child { display:flex; flex-direction:column; gap:2px; }
.onb-time small { color:var(--muted); font-size:14px; }
.onb-time-n { flex:0 0 32px; height:32px; border-radius:50%; display:grid; place-items:center; background:var(--soft); color:var(--primary); font-weight:800; }
.onb-time.is-now .onb-time-n { background:var(--primary); color:var(--card); }
.onb-chart { position:relative; margin:4px 0 0; padding:16px 16px 10px; border-radius:24px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); }
.onb-chart-svg { display:block; width:100%; height:auto; overflow:visible; }
.onb-chart-fill { fill:var(--soft); }
.onb-chart-line { fill:none; stroke:var(--primary); stroke-width:5; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:0; animation:onb-draw 900ms ease-out 200ms both; }
.onb-chart-dot { fill:var(--card); stroke:var(--primary); stroke-width:3; }
.onb-chart-dot.is-goal { fill:var(--primary); }
.onb-chart-plico { position:absolute; right:4%; top:-18px; width:56px; height:56px; animation:onb-rise var(--onb-in) var(--onb-spring) 700ms both; }
.onb-chart-axis { display:flex; justify-content:space-between; margin-top:6px; font-size:14px; font-weight:700; color:var(--muted); }
.onb-notif { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:20px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); animation:onb-drop var(--onb-in) var(--onb-spring) 200ms both; }
.onb-notif img { border-radius:10px; }
.onb-notif-text { display:flex; flex-direction:column; flex:1; min-width:0; font-size:15px; line-height:1.35; }
.onb-notif-time { font-size:13px; color:var(--muted); align-self:flex-start; }
.onb-ready { display:flex; flex-direction:column; gap:16px; padding:18px; border-radius:24px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); }
.onb-ready-bar { height:10px; border-radius:99px; background:var(--soft); overflow:hidden; }
.onb-ready-bar i { display:block; height:100%; background:var(--cta); transform-origin:left center; }
.is-running .onb-ready-bar i { animation:onb-fill 2.2s cubic-bezier(.4,0,.2,1) both; }
.onb-ready-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.onb-ready-row { display:flex; align-items:center; gap:10px; font-weight:600; }
.onb-tick { flex:0 0 26px; height:26px; border-radius:50%; display:grid; place-items:center; background:var(--primary); color:var(--card); font-size:14px; font-weight:800; }
.is-running .onb-ready-row { animation:onb-pop var(--onb-in) var(--onb-spring) both; }
.is-running .onb-ready-row .onb-tick { animation:onb-chip var(--onb-in) var(--onb-spring) both; }
.is-running .onb-ready-row[data-i="1"],.is-running .onb-ready-row[data-i="1"] .onb-tick { animation-delay:350ms; }
.is-running .onb-ready-row[data-i="2"],.is-running .onb-ready-row[data-i="2"] .onb-tick { animation-delay:700ms; }
.is-running .onb-ready-row[data-i="3"],.is-running .onb-ready-row[data-i="3"] .onb-tick { animation-delay:1050ms; }
.is-running .onb-ready-row[data-i="4"],.is-running .onb-ready-row[data-i="4"] .onb-tick { animation-delay:1400ms; }
.is-running .onb-ready-row[data-i="5"],.is-running .onb-ready-row[data-i="5"] .onb-tick { animation-delay:1750ms; }
.onb-party .stack { position:relative; }
.onb-confetti { position:absolute; inset:-60px 0 auto; height:0; pointer-events:none; }
.onb-confetti i { position:absolute; top:0; width:10px; height:14px; border-radius:3px; opacity:0; animation:onb-confetti 1.4s cubic-bezier(.2,.7,.3,1) both; }
.onb-confetti i[data-c="0"] { left:4.0%; background:#ff8fc4; animation-delay:0ms; --dx:10px; --rot:0deg; }
.onb-confetti i[data-c="1"] { left:10.8%; background:#b89cff; animation-delay:45ms; --dx:-13px; --rot:47deg; }
.onb-confetti i[data-c="2"] { left:17.6%; background:#7fe0c4; animation-delay:90ms; --dx:16px; --rot:94deg; }
.onb-confetti i[data-c="3"] { left:24.4%; background:#ffd36e; animation-delay:135ms; --dx:-19px; --rot:141deg; }
.onb-confetti i[data-c="4"] { left:31.2%; background:#8fc8ff; animation-delay:180ms; --dx:22px; --rot:188deg; }
.onb-confetti i[data-c="5"] { left:38.0%; background:#ff9f80; animation-delay:225ms; --dx:-25px; --rot:235deg; }
.onb-confetti i[data-c="6"] { left:44.8%; background:#c9f27a; animation-delay:270ms; --dx:28px; --rot:282deg; }
.onb-confetti i[data-c="7"] { left:51.6%; background:#ff8fc4; animation-delay:15ms; --dx:-31px; --rot:329deg; }
.onb-confetti i[data-c="8"] { left:58.4%; background:#b89cff; animation-delay:60ms; --dx:34px; --rot:16deg; }
.onb-confetti i[data-c="9"] { left:65.2%; background:#7fe0c4; animation-delay:105ms; --dx:-37px; --rot:63deg; }
.onb-confetti i[data-c="10"] { left:72.0%; background:#ffd36e; animation-delay:150ms; --dx:40px; --rot:110deg; }
.onb-confetti i[data-c="11"] { left:78.8%; background:#8fc8ff; animation-delay:195ms; --dx:-43px; --rot:157deg; }
.onb-confetti i[data-c="12"] { left:85.6%; background:#ff9f80; animation-delay:240ms; --dx:46px; --rot:204deg; }
.onb-confetti i[data-c="13"] { left:92.4%; background:#c9f27a; animation-delay:285ms; --dx:-49px; --rot:251deg; }
.onb-plan-recap { margin:0; font-size:17px; font-weight:700; text-align:center; color:var(--ink); }
.onb-lesson { display:flex; align-items:center; gap:14px; padding:18px; border-radius:24px; background:var(--card); border:2px solid var(--primary); box-shadow:var(--shadow); animation:onb-pop var(--onb-in) var(--onb-spring) 250ms both; }
.onb-lesson-icon { font-size:34px; flex:0 0 auto; }
.onb-lesson-text { display:flex; flex-direction:column; gap:3px; min-width:0; }
.onb-lesson-text small { color:var(--muted); font-size:14px; }
.onb-lesson-text strong { font-size:19px; line-height:1.3; overflow-wrap:anywhere; }
/* Name tiles: each typed letter pops in (core.js nameField, onboarding.js letterTiles). */
.name-tiles { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 14px; padding-left:2px; }  /* João 11 Nov 23:28: room from the field and the line below */
@media(min-width:1024px) { .name-tiles { gap:10px; margin:20px 0 16px; } }
.name-tiles:empty { display:none; }
.name-tile { display:grid; place-items:center; width:34px; height:38px; border-radius:11px; font-weight:800; font-size:18px; color:#2b173f; box-shadow:0 3px 0 #0000001a; animation:onb-letter var(--onb-in) var(--onb-spring) both; }
.name-tile[data-c="0"] { background:#ffb5d8; }
.name-tile[data-c="1"] { background:#ceb6f4; }
.name-tile[data-c="2"] { background:#ade9d7; }
.name-tile[data-c="3"] { background:#ffd98a; }
.name-tile[data-c="4"] { background:#a9d4ff; }
.name-tile[data-c="5"] { background:#ffc2a8; }
@keyframes onb-step { from { opacity:0; transform:translateY(22px); filter:blur(6px); } to { opacity:1; transform:none; filter:none; } }
@keyframes onb-rise { from { opacity:0; transform:translateY(28px) scale(.92); } to { opacity:1; transform:none; } }
@keyframes onb-pop { from { opacity:0; transform:translateY(10px) scale(.96); } to { opacity:1; transform:none; } }
@keyframes onb-chip { 0% { transform:scale(.94); } 60% { transform:scale(1.03); } 100% { transform:none; } }
@keyframes onb-letter { from { opacity:0; transform:translateY(10px) scale(.6) rotate(-8deg); } to { opacity:1; transform:none; } }
@keyframes onb-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
@keyframes onb-wave { 0%,100% { transform:none; } 25% { transform:rotate(16deg); } 75% { transform:rotate(-10deg); } }
@keyframes onb-caret { 50% { opacity:0; } }
@keyframes onb-draw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@keyframes onb-fill { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes onb-drop { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:none; } }
@keyframes onb-confetti { 0% { opacity:0; transform:translate(0,0) rotate(0); } 10% { opacity:1; } 100% { opacity:0; transform:translate(var(--dx),200px) rotate(var(--rot)); } }
@media(prefers-reduced-motion:reduce) { .onb-confetti { display:none; } .onb-say.is-typing .onb-typing::after { display:none; } }
@media(max-width:374px) { .onb-say { font-size:17px; } .onb-plico { width:68px; height:68px; } .onb-days { gap:6px; } .onb-week .onb-choice-text strong { font-size:13px; } }
/* The test date (João 11 Nov 23:29): a large native date field, the chosen day in words under it. */
.onb-date-box { display:flex; flex-direction:column; gap:10px; padding:18px; border-radius:24px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); }
.onb-date-label { font-weight:700; color:var(--muted); font-size:15px; }
.onb-date { min-height:60px; font-size:20px; font-weight:700; padding:12px 16px; border-radius:16px; color:var(--ink); background:var(--card2); }
.onb-date-said { margin:0; min-height:1.4em; font-size:17px; font-weight:700; color:var(--primary); }
.onb-date-said.is-wrong { color:var(--ink); font-weight:600; }
/* The other start screens in the Plico's look (João 11 Nov 23:37): their own forms on the card, spaced like the steps. */
.onb-form-card { display:flex; flex-direction:column; gap:14px; }
.onb-static .onb-main > h1.sr-only { margin:0; }
/* «Como estudamos juntos», the first step (João 11 Nov 23:34): the lesson's look, one clear bubble at a time. */
.tut-card h1 { margin:6px 0 10px; }
.tut-chat { display:flex; flex-direction:column; gap:8px; }
.tut-chat .plico-bubble { font-size:17px; line-height:1.4; }
.tut-more { margin:0 0 0 82px; animation:onb-pop var(--onb-in) var(--onb-spring) 200ms both; }
.tut-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.tut-option { min-height:72px; font-size:26px; font-weight:800; border-radius:20px; border-width:2px; }
.tut-option.is-right { background:var(--good,#dcf5e8); color:var(--good-ink,#145c3a); border-color:transparent; animation:onb-chip var(--onb-in) var(--onb-spring); }
.tut-option.is-right:disabled { opacity:1; }  /* 13 Nov: the right answer stays bright once the others close */
.tut-option.is-again { border-color:var(--hint-ink,#8a6a00); animation:onb-chip var(--onb-in) var(--onb-spring); }
.tut-again { margin:0; font-weight:700; color:var(--muted); }
.tut-hint { align-self:flex-start; }
.tut-tools { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.tut-tool { display:flex; gap:14px; align-items:center; padding:14px 16px; border-radius:20px; background:var(--card2); border:1px solid var(--line); animation:onb-pop var(--onb-in) var(--onb-spring) both; }
.tut-tool:nth-child(2) { animation-delay:120ms; }
.tut-tool > span:last-child { display:flex; flex-direction:column; gap:2px; }
.tut-tool small { color:var(--muted); font-size:15px; line-height:1.35; }
.tut-tool-icon { font-size:30px; flex:0 0 auto; }
.tut-path { display:flex; align-items:center; gap:8px; padding:6px 4px 10px; }
.tut-dot { flex:0 0 48px; height:48px; border-radius:50%; display:grid; place-items:center; font-weight:800; background:var(--soft); color:var(--primary); border:2px solid var(--line); }
.tut-dot.is-done { background:var(--primary); color:var(--card); border-color:transparent; animation:onb-chip var(--onb-in) var(--onb-spring) both; }
.tut-dot.is-next { border-color:var(--primary); }
.tut-line { flex:1; height:4px; border-radius:4px; background:var(--line); }
/* The 🐞 tip in a lesson closes with a small ✕, never a second «continue» (João 11 Nov 23:34). */
.bug-tip .bug-tip-ok.bug-tip-ok { width:44px; height:44px; min-height:44px; padding:0; border-radius:50%; text-decoration:none; font-size:16px; font-weight:800; display:grid; place-items:center; }
@media(max-width:374px) { .tut-more { margin-left:0; } }
/* Scroll wheels instead of boxes (João 11 Nov 23:42): five rows show, the middle one is chosen and highlighted; the
   list snaps to it. The <select> or input under it keeps the value for the form, hidden from view. */
.wheel { --row:44px; --rows:5; position:relative; height:calc(var(--row) * var(--rows)); border-radius:20px; background:var(--card2); border:1px solid var(--line); overflow:hidden; outline:none; touch-action:pan-y; }
.wheel:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.wheel-track { position:absolute; inset:0; overflow-y:auto; scroll-snap-type:y mandatory; scroll-behavior:smooth; overscroll-behavior:contain; scrollbar-width:none;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 70%,transparent); mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 70%,transparent); }
.wheel-track::-webkit-scrollbar { display:none; }
.wheel-pad { height:calc(var(--row) * (var(--rows) - 1) / 2); }  /* the chosen row stays in the middle for any --rows */
.wheel-row { height:var(--row); display:flex; align-items:center; justify-content:center; scroll-snap-align:center; font-size:18px; font-weight:600; color:var(--muted); cursor:pointer; user-select:none; transition:color 160ms ease-out,transform 220ms var(--onb-spring); }
.wheel-row.is-on { color:var(--ink); font-weight:800; font-size:20px; transform:scale(1.04); }
.wheel-row.is-off { opacity:.4; cursor:default; }
.wheel-lens { position:absolute; left:8px; right:8px; top:calc(50% - var(--row) / 2); height:var(--row); border-radius:14px; background:var(--soft); border:2px solid var(--primary); pointer-events:none; }
.has-wheel select.wheel-native,.has-wheel .year-stepper { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.has-wheel .wheel { margin-top:6px; }
/* 13 Nov: the hidden select's chevron (.select-box::after, card 33) peeked out above the wheel; the wheel is the control. */
.has-wheel .select-box { position:static; }
.has-wheel .select-box::after { content:none; display:none; }
.birth-row .has-wheel { min-width:0; }
.onb-date-box .wheel { --row:48px; }
/* 21d: on a short phone screen (360 x 640, and less inside the app) the five rows pushed the date under the sticky «Continuar»;
   three rows keep the wheel, the chosen day and both buttons in view. */
@media(max-width:1023px) and (max-height:740px) { .onb-date-box .wheel { --rows:3; } }
/* 21d: inside the Android app a 640 px phone keeps about 590 px under its status and navigation bars: a tighter box, and the
   box's own small label goes (the Plico has just asked the question above it). */
@media(max-width:1023px) and (max-height:640px) { .onb-date-box { padding:12px; gap:6px; } .onb-date-box .wheel { --row:42px; } .onb-date-label { display:none; } }
.onb-date-box .wheel-row { font-size:19px; }
.onb-date-box .wheel-row.is-on { font-size:22px; }
@media(prefers-reduced-motion:reduce) { .wheel-track { scroll-behavior:auto; } .wheel-row { transition:none; } }
/* Desktop: a real two-pane composition, never a stretched phone. The card fills the screen's height and the two
   panes sit in its vertical middle; the Plico and the type are larger than on the phone. */
@media(min-width:1024px) {
  body:has(#app .onb) .desktop-story { display:none; }
  body:has(#app .onb):has(#app .onb) { padding:28px 0; justify-content:flex-start; }
  #app#app:has(.onb) { width:min(1240px,calc(100% - 64px)); max-width:none; margin-inline:auto; border-radius:36px; }
  #app#app:has(.onb) > .app-layout { min-height:calc(100dvh - 56px); }
  #app#app:has(.onb) #screen { display:flex; flex-direction:column; padding:8px 56px 40px; }
  .onb { flex:1; min-height:0; gap:24px; }
  .onb-head { max-width:none; }
  .onb-bar,.onb-bar-space { height:10px; }
  .onb-grid { flex:1; flex-direction:row; align-items:center; gap:72px; }
  .onb-side { flex:0 0 40%; flex-direction:column; align-items:flex-start; justify-content:center; gap:24px; }
  .onb-plico { width:184px; height:184px; }
  .onb-chat { gap:12px; width:100%; justify-content:flex-start; }
  .onb-turn { display:block; opacity:.6; }
  .onb-turn:nth-last-child(n+6) { display:none; }
  .onb-turn .onb-say { font-size:17px; font-weight:600; box-shadow:none; padding:12px 18px; }
  .onb-turn.is-now { opacity:1; }
  .onb-turn.is-now .onb-say { font-size:28px; font-weight:700; line-height:1.3; padding:18px 24px; border-radius:26px 26px 26px 8px; box-shadow:var(--shadow); }
  .onb-turn.is-now + .onb-turn.is-now .onb-say { font-size:21px; font-weight:600; }
  .onb-main { flex:1; min-width:0; max-width:620px; justify-content:center; gap:28px; }
  .onb-stage { flex:0 1 auto; }
  .onb-choices { gap:14px; }
  .onb-choice { min-height:80px; padding:18px 22px; border-radius:24px; gap:18px; }
  .onb-choice-icon { font-size:34px; }
  .onb-choice-text strong { font-size:20px; }
  .onb-choice-text small { font-size:16px; }
  .onb-subjects { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .onb-subjects .onb-choice { min-height:120px; }
  .onb-days .onb-choice,.onb-row .onb-choice { min-height:84px; }
  .onb-days .onb-choice-text small { font-size:24px; }
  .onb-week .onb-choice { min-height:72px; }
  .onb-week .onb-choice-text strong { font-size:17px; }
  .onb-time { padding:18px 22px; }
  .onb-time strong { font-size:19px; }
  .onb-time small { font-size:16px; }
  .onb-hello { font-size:96px; }
  .onb-ready { padding:26px; gap:20px; }
  .onb-ready-row { font-size:19px; }
  .onb-lesson { padding:24px; }
  .onb-lesson-text strong { font-size:23px; }
  .onb-notif-text { font-size:17px; }
  .onb-date-box { padding:24px; gap:12px; }
  .onb-date { min-height:68px; font-size:24px; }
  .onb-date-said { font-size:20px; }
  .onb-actions { position:static; background:none; padding:0; flex-direction:row; justify-content:flex-start; gap:12px; }
  .onb-actions .btn { width:auto; min-width:260px; min-height:60px; font-size:19px; }
  .onb-actions .onb-skip { min-width:0; }
  .onb-static .onb-main { justify-content:center; }
  .onb-form-card { gap:16px; }
  .onb-choice:hover { border-color:var(--primary); transform:translateY(-2px); }
}
/* onboarding-2 end */
/* onboarding-plico start: João 14 Nov 2026 ("yes basic stuff") and 15 Nov 13:16 ("implement everything"); the mock in
   work/review/onboarding-plico-2026-11-14/. The Plico is the wardrobe's own figure (onboarding.js, wardrobe.js), the
   four friends stand around him on the first screens, each choice and step has its character's tint, the gift opens
   on the first step's pencil and «O meu boneco» lets any piece be tried on. Transform and opacity only; the global
   reduced-motion rule (top of this file) stops every animation and everything below stays readable and still. */
.tint-mint { --tint:#A7E9D4; } .tint-lilac { --tint:#CBB9EE; } .tint-peach { --tint:#F5AE8F; } .tint-rose { --tint:#EDA0AE; } .tint-gold { --tint:#F1D77C; }
.onb-choice[class*="tint-"],.onb-time[class*="tint-"],.start-card { background:var(--card); background:color-mix(in srgb,var(--tint,#A7E9D4) 16%,var(--card)); border-color:var(--line); border-color:color-mix(in srgb,var(--tint,#A7E9D4) 55%,var(--card)); }
.onb-choice[class*="tint-"][aria-pressed="true"] { border-color:var(--primary); background:color-mix(in srgb,var(--tint) 30%,var(--card)); }
@media(hover:hover) { .onb-choice[class*="tint-"]:hover { border-color:var(--primary); } }
.onb-choice-text b,.onb-time b,.start-card b { color:var(--ink); font-weight:700; }
.nw { white-space:nowrap; }
/* The Plico on top, talking: his own figure; he hops at a new screen or a right answer, tilts at «Ainda não». */
.onb-plico { display:block; width:84px; height:84px; filter:drop-shadow(0 6px 6px #2b173f22); }
.onb-plico svg,.onb-plico img { display:block; width:100%; height:100%; object-fit:contain; }
.onb-plico-wrap { animation:onb-rise var(--onb-in) var(--onb-spring) both; }
.onb-plico.is-hop { animation:onb-hop .5s cubic-bezier(.19,1,.22,1); }
.onb-plico.is-tilt { animation:onb-tilt .5s ease; }
@keyframes onb-hop { 0% { transform:none; } 35% { transform:translateY(-12px) rotate(-4deg); } 70% { transform:translateY(2px); } 100% { transform:none; } }
@keyframes onb-tilt { 0%,100% { transform:none; } 30% { transform:rotate(-8deg); } 65% { transform:rotate(5deg); } }
/* «Writing»: three dots while the line keeps its place (mock, second round). */
.onb-say { position:relative; }
.onb-say.is-waiting { visibility:hidden; }
.onb-say.is-typing .onb-typing { visibility:hidden; }
.onb-say.is-typing .onb-typing::after { content:none; }
.onb-dots { display:none; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); gap:6px; }
.onb-say.is-typing .onb-dots { display:inline-flex; }
.onb-dots i { width:8px; height:8px; border-radius:50%; background:var(--muted); opacity:.35; animation:onb-blink 1s ease-in-out infinite; }
.onb-dots i:nth-child(2) { animation-delay:.15s; } .onb-dots i:nth-child(3) { animation-delay:.3s; }
.onb-say.is-said { animation:onb-pop .38s cubic-bezier(.19,1,.22,1) both; }
@keyframes onb-blink { 50% { opacity:.9; transform:translateY(-2px); } }
/* One screen at a time: the old step is gone in the same frame, the new one comes in over 200 ms. */
.onb-card.onb-in { animation:onb-enter .2s ease-out both; }
.onb-card.onb-in.is-back { animation-name:onb-enter-back; }
@keyframes onb-enter { from { opacity:0; transform:translateX(12px); } to { opacity:1; transform:none; } }
@keyframes onb-enter-back { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:none; } }
.onb-go.is-wait { visibility:hidden; }
/* Pictures on the choices and the steps: the app's characters on a tint of their colour. */
.onb-art { position:relative; flex:0 0 60px; width:60px; height:60px; border-radius:18px; background:var(--soft); background:color-mix(in srgb,var(--tint,#A7E9D4) 50%,var(--card)); display:grid; place-items:center; }
.onb-art-in { display:flex; align-items:center; justify-content:center; }
.onb-art svg,.onb-art img { width:58px; height:58px; display:block; }
.onb-art.is-pair svg { width:36px; height:36px; margin:0 -4px; }
.onb-art-badge { position:absolute; right:-6px; bottom:-6px; font-size:20px; line-height:1; }
.onb-art-phone { width:32px; height:48px; border-radius:9px; border:3px solid #123F4A; background:#fff6fb; display:grid; place-items:center; overflow:hidden; }
.onb-art.is-phone .onb-art-phone svg { width:40px; height:40px; }
.onb-paths { grid-auto-rows:1fr; }
.onb-paths .onb-choice { height:100%; }
.onb-timeline { display:grid; grid-auto-rows:1fr; }
.onb-time { align-items:center; }
.onb-time > span:last-child strong { font-size:17px; }
.onb-time small { font-size:15px; line-height:1.4; }
.onb-subjects { grid-auto-rows:1fr; }
.onb-subjects .onb-choice { height:100%; min-height:112px; }
.onb-subjects .onb-choice:last-child:nth-child(odd) { grid-column:1 / -1; width:calc(50% - 5px); justify-self:center; }
.onb-goals { grid-auto-rows:1fr; }
.onb-goals .onb-choice { height:100%; }
/* The big Plico and his friends (first screen, the learner's hello, the hand-off to the trail). */
.onb-hero { position:relative; height:400px; margin:0 -8px; }
.onb-hero.is-hello { height:440px; }
.onb-hero.is-trail { height:400px; }
.onb-halo { position:absolute; left:50%; top:58%; width:290px; height:290px; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle,#ffffffcc,transparent 66%); }
:root[data-theme="noite"] .onb-halo { background:radial-gradient(circle,#d0b7ff33,transparent 66%); }
.onb-hero-say { position:absolute; left:50%; top:4px; transform:translateX(-50%); width:min(300px,92%); min-width:220px; display:flex; flex-direction:column; align-items:center; gap:6px; z-index:3; }
.onb-hero-bubble { position:relative; margin:0; background:var(--card); border:1px solid var(--line); border-radius:20px; padding:9px 16px; font-weight:700; font-size:17px; line-height:1.3; text-align:center; box-shadow:var(--shadow); color:var(--ink); animation:onb-pop .38s cubic-bezier(.19,1,.22,1) both; }
.onb-hero-bubble.is-small { font-weight:600; font-size:16px; animation-delay:.45s; }
.onb-hero-bubble:last-child::after { content:""; position:absolute; left:50%; bottom:-7px; width:13px; height:13px; margin-left:-6px; background:var(--card); border-right:1px solid var(--line); border-bottom:1px solid var(--line); transform:rotate(45deg); }
.onb-hero-figs,.onb-hero-in { position:absolute; inset:0; }
.onb-fig { position:absolute; filter:drop-shadow(0 12px 10px #2b173f2b) drop-shadow(0 2px 2px #2b173f22); }
.onb-fig svg,.onb-fig img { display:block; width:100%; height:auto; }
.onb-float { display:block; animation:onb-floaty 3.6s ease-in-out infinite alternate; }
.onb-fig.is-nolvu .onb-float { animation-delay:-.9s; } .onb-fig.is-rilfo .onb-float { animation-delay:-1.5s; } .onb-fig.is-vunco .onb-float { animation-delay:-.5s; } .onb-fig.is-zelna .onb-float { animation-delay:-.2s; }
@keyframes onb-floaty { from { transform:translateY(0) rotate(-1.5deg); } to { transform:translateY(-9px) rotate(1.5deg); } }
.onb-fig.is-plico { left:50%; top:62px; width:236px; margin-left:-118px; z-index:2; }
.onb-fig.is-zelna { left:2px; top:78px; width:108px; }
.onb-fig.is-nolvu { right:-2px; top:66px; width:114px; }
.onb-fig.is-rilfo { left:10px; bottom:10px; width:108px; }
.onb-fig.is-vunco { right:8px; bottom:12px; width:106px; }
.is-hello .onb-fig.is-plico { top:22%; }
.is-hello .onb-fig.is-zelna { top:31%; left:-4px; width:96px; } .is-hello .onb-fig.is-nolvu { top:27%; right:-4px; width:100px; }
.is-hello .onb-fig.is-rilfo { top:63%; bottom:auto; left:22px; width:104px; } .is-hello .onb-fig.is-vunco { top:65%; bottom:auto; right:20px; width:100px; }
.is-hello .onb-hero-say,.is-trail .onb-hero-say { top:6px; }
.is-trail .onb-fig.is-plico { top:20%; width:250px; margin-left:-125px; }
.onb[data-hero="true"] .onb-side { display:none; }
.onb[data-hero="true"] .onb-grid { justify-content:center; }
/* The landing (account.js): the hero, the headline in the Plico's voice, one button; «Já tenho conta» at the top. */
.topbar .topbar-link { width:auto; min-height:44px; padding:0 14px; border:0; border-radius:14px; background:transparent; color:var(--primary); font-weight:700; font-size:16px; box-shadow:none; }
.landing-hero { width:100%; align-self:stretch; }
.landing-hero .onb-hero { margin:0 -12px; }
.landing-title { font-size:31px; line-height:1.12; margin:10px 0 8px; letter-spacing:-.2px; }
.landing-lede { font-size:16px; line-height:1.45; margin:0 0 6px; }
/* 21d (João, 21 Nov 16:33: "the first page theres a bit of scroll and it shouldnt when u download the app"): on a phone the
   start screen is one screen high. The page already fills the visible height (.app-layout min-height:100dvh, so the
   Android WebView's own height, inside its status and navigation bars); the Plico's picture now takes only the height the
   words and buttons leave (flex), up to its usual 400 px, and its figures are placed in units of that height (cqh), so the
   same picture shrinks instead of pushing «Começar» and «Apoio ao cliente» below the fold. A computer keeps today's page. */
.landing-foot { display:contents; }
@media(max-width:1023px) {
  #screen:has(> .landing-hero) { gap:12px; padding-bottom:max(8px, env(safe-area-inset-bottom)); }
  .landing-hero { flex:1 1 0; min-height:120px; max-height:400px; container-type:size; }
  .landing-hero .onb-hero.is-landing { height:100%; }
  .is-landing .onb-fig.is-plico { top:15.5cqh; width:59cqh; margin-left:-29.5cqh; }
  .is-landing .onb-fig.is-zelna { top:19.5cqh; width:27cqh; }
  .is-landing .onb-fig.is-nolvu { top:16.5cqh; width:28.5cqh; }
  .is-landing .onb-fig.is-rilfo { bottom:2.5cqh; width:27cqh; }
  .is-landing .onb-fig.is-vunco { bottom:3cqh; width:26.5cqh; }
  .is-landing .onb-halo { width:72cqh; height:72cqh; }  /* the glow shrinks with him, never over the headline */
  .landing-title { margin:4px 0 0; }
  .landing-lede { margin:0; }
  .landing-foot { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; column-gap:16px; }
  .landing-foot > .landing-credit { margin:0; }
  .landing-foot > .legal-links { padding:0; justify-content:center; }
}
/* A short picture: the bubble goes first (the headline speaks for him), then the four friends; the Plico stays. */
@container (max-height:250px) { .is-landing .onb-hero-say { display:none; } .is-landing .onb-fig.is-plico { top:3cqh; width:92cqh; margin-left:-46cqh; } }
@container (max-height:170px) { .is-landing .onb-fig:not(.is-plico) { display:none; } }
/* Up to an 800 px phone (and the app's view of it): the support card keeps its title and its email button (the line
   between them says the same). */
@media(max-width:1023px) and (max-height:800px) {
  #screen:has(> .landing-hero) > .card { padding:14px 16px; }
  #screen:has(> .landing-hero) > .card > p { display:none; }
  #screen:has(> .landing-hero) > .card h2 { margin:0 0 8px; }
}
/* A 640 px phone (about 570 px inside the app): a smaller top bar, headline, button and gaps; the picture may shrink to the
   Plico alone. Below 560 px (that phone in a browser with its bars) the picture gives way, never the line that says what O
   Explica is and for which years (independent read, 21 Nov). */
@media(max-width:1023px) and (max-height:700px) {
  #app:has(.landing-hero) .topbar { min-height:56px; padding-top:6px; padding-bottom:6px; }
  #screen:has(> .landing-hero) { gap:8px; padding-top:4px; }
  .landing-hero { min-height:64px; }
  .landing-title { font-size:26px; }
  .landing-go.giant { min-height:56px; }
}
@media(max-width:1023px) and (max-height:560px) { .landing-hero { display:none; } }
/* The family's start card: the Plico with a 🌱, the key words in bold. */
.start-card-row { display:flex; gap:14px; align-items:flex-start; }
.start-card h2 { font-size:20px; margin:2px 0 6px; }
.start-card p { margin:0; color:var(--muted); line-height:1.45; }
/* The first step's cards and the spider (mock screen 7). */
.onb-count { margin:0 0 4px; }
.tut .card h1.tut-title { font-size:26px; line-height:1.18; margin:12px 0 14px; }
.tut-option.is-again { background:#ffe4ea; color:#8a1f3d; border-color:transparent; animation:onb-shake .4s ease; }
:root[data-theme="noite"] .tut-option.is-again { background:#45202c; color:#ffc2d1; }
@keyframes onb-shake { 25% { transform:translateX(-5px); } 50% { transform:translateX(5px); } 75% { transform:translateX(-3px); } }
.tut-hint { margin-top:6px; min-height:48px; }
.tut-hint[hidden] { display:none; }
/* The gift (mock screen 8): a closed box that wiggles, opens, and shows the pencil. */
.onb-gift-stage { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:340px; text-align:center; }
.onb-gift-open { position:relative; width:160px; height:150px; border:0; background:none; cursor:pointer; padding:0; border-radius:24px; animation:onb-wiggle 2.4s ease-in-out infinite; }
.onb-gift-open:focus-visible { outline:3px solid var(--primary); outline-offset:4px; }
.onb-gift-box { position:absolute; inset:0; }
.onb-gift-base { position:absolute; left:14px; right:14px; bottom:0; height:96px; border-radius:18px; background:linear-gradient(135deg,#ffb5d8,#ceb6f4); box-shadow:inset 0 -10px 0 #0000000f,0 14px 22px #7144b933; }
.onb-gift-base::before,.onb-gift-lid::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:22px; margin-left:-11px; background:#fff3d9; }
.onb-gift-lid { position:absolute; left:4px; right:4px; top:30px; height:34px; border-radius:14px; background:linear-gradient(135deg,#ffc7e1,#d9c6f7); box-shadow:0 4px 0 #0000000f; z-index:2; transition:transform .6s cubic-bezier(.19,1,.22,1),opacity .6s; }
.onb-gift-lid::after { content:""; position:absolute; left:50%; top:-24px; width:52px; height:26px; margin-left:-26px; border-radius:50% 50% 8px 8px; border:7px solid #fff3d9; border-bottom:0; }
@keyframes onb-wiggle { 0%,70%,100% { transform:none; } 76% { transform:rotate(-5deg); } 82% { transform:rotate(5deg); } 88% { transform:rotate(-3deg); } 94% { transform:rotate(2deg); } }
.onb-gift-won { position:absolute; left:50%; top:46%; width:190px; height:190px; transform:translate(-50%,-62%) scale(.4); opacity:0; transition:transform .6s cubic-bezier(.19,1,.22,1),opacity .4s; display:grid; place-items:center; border-radius:50%; background:radial-gradient(circle,var(--hint),transparent 70%); pointer-events:none; }
.onb-gift-won svg { width:190px; height:190px; display:block; }
.onb-gift-name { margin:26px 0 0; font-size:30px; opacity:0; transition:opacity .4s .3s; }
.onb-gift-sparks i { position:absolute; left:50%; top:42%; font-size:22px; font-style:normal; color:#f1b84a; opacity:0; pointer-events:none; }
.onb-gift-stage.is-open .onb-gift-open { animation:none; cursor:default; }
.onb-gift-stage.is-open .onb-gift-lid { transform:translateY(-90px) rotate(-24deg); opacity:0; }
.onb-gift-stage.is-open .onb-gift-base { opacity:0; transition:opacity .5s .25s; }
.onb-gift-stage.is-open .onb-gift-won { transform:translate(-50%,-62%) scale(1); opacity:1; }
.onb-gift-stage.is-open .onb-gift-name { opacity:1; }
.onb-gift-stage.is-open .onb-gift-sparks i { animation:onb-spark .9s ease-out both; }
.onb-gift-sparks i[data-k="0"] { --x:-90px; --y:-70px; } .onb-gift-sparks i[data-k="1"] { --x:80px; --y:-80px; } .onb-gift-sparks i[data-k="2"] { --x:-110px; --y:10px; }
.onb-gift-sparks i[data-k="3"] { --x:110px; --y:0px; } .onb-gift-sparks i[data-k="4"] { --x:-60px; --y:70px; } .onb-gift-sparks i[data-k="5"] { --x:70px; --y:80px; } .onb-gift-sparks i[data-k="6"] { --x:0px; --y:-110px; }
@keyframes onb-spark { 0% { opacity:0; transform:translate(-50%,-50%) scale(.4); } 30% { opacity:1; } 100% { opacity:0; transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1.1); } }
@media(prefers-reduced-motion:reduce) { .onb-gift-stage.is-open .onb-gift-won,.onb-gift-stage.is-open .onb-gift-name { transition:none; } .onb-gift-sparks { display:none; } }
/* «O meu boneco» (mock screen 9): the stage with the boneco's line, the tabs, the shelf, the friends, «Guardar». */
.dress { gap:12px; }
.dress-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.dress-head h1 { font-size:26px; margin:0; }
.dress-level { font-weight:700; color:var(--primary); background:var(--soft); border-radius:12px; padding:6px 12px; font-size:14px; white-space:nowrap; }
.dress .dress-stage { position:relative; display:block; height:300px; min-height:0; padding:0; border-radius:30px; overflow:hidden; background:linear-gradient(180deg,var(--card2),var(--soft)); border:1px solid var(--line); }
.dress-backdrop { position:absolute; inset:0; }
.dress-bg { width:100%; height:100%; display:block; }
.dress-say { position:absolute; top:10px; left:12px; right:12px; z-index:2; margin:0; text-align:center; background:var(--card); border:1px solid var(--line); border-radius:20px; padding:9px 14px 10px; font-weight:700; font-size:15px; line-height:1.35; box-shadow:var(--shadow); color:var(--ink); }
.dress-say::after { content:""; position:absolute; left:50%; bottom:-7px; width:13px; height:13px; margin-left:-6px; background:var(--card); border-right:1px solid var(--line); border-bottom:1px solid var(--line); transform:rotate(45deg); }
.dress-star { position:absolute; left:50%; bottom:22px; width:184px; margin-left:-92px; filter:drop-shadow(0 12px 10px #2b173f30); }
.dress-star svg { width:184px; height:184px; display:block; }
.dress-chip { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); z-index:2; white-space:nowrap; max-width:calc(100% - 24px); overflow:hidden; text-overflow:ellipsis; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:6px 12px; font-size:14px; font-weight:700; box-shadow:var(--shadow); color:var(--ink); }
.dress-chip[hidden] { display:none; }
.dress .dress-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
.dress .dress-tab { min-width:0; overflow:hidden; min-height:44px; padding:0 1px; border-radius:14px; border:2px solid var(--line); background:var(--card); font-weight:700; font-size:13px; letter-spacing:-.2px; white-space:nowrap; color:var(--muted); box-shadow:none; }
.dress .dress-tab[aria-pressed="true"] { background:var(--primary); border-color:var(--primary); color:var(--card); box-shadow:none; }
.dress .dress-shelf { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.dress .dress-item { position:relative; aspect-ratio:1; min-height:64px; border-radius:18px; border:2px solid var(--line); background:var(--card); padding:0; display:grid; place-items:center; overflow:hidden; gap:0; }
.dress .dress-item.locked { background:var(--card); }
.dress-piece { width:100%; height:100%; display:block; }
.dress .dress-item.locked .dress-piece { opacity:.5; filter:grayscale(.35); }
.dress .dress-item.is-on,.dress .dress-item[aria-pressed="true"] { border-color:var(--primary); background:var(--card); box-shadow:0 0 0 2px var(--primary) inset; }
.dress .dress-item.is-on::after { content:"✓"; position:absolute; top:4px; right:4px; width:20px; height:20px; border-radius:50%; background:var(--primary); color:var(--card); font-size:12px; font-weight:800; display:grid; place-items:center; }
.dress .dress-item.is-fresh { border-color:var(--primary); animation:onb-pulse 1.4s ease-in-out infinite; }
@keyframes onb-pulse { 0%,100% { box-shadow:0 0 0 0 #7144b955; } 50% { box-shadow:0 0 0 7px #7144b922; } }
@media(prefers-reduced-motion:reduce) { .dress .dress-item.is-fresh { outline:3px solid var(--primary); outline-offset:2px; } }
.dress-padlock { position:absolute; left:5px; top:4px; font-size:13px; line-height:1; }
.dress-rule { position:absolute; left:4px; right:4px; bottom:4px; text-align:center; white-space:nowrap; font-size:10px; letter-spacing:-.2px; font-weight:800; background:var(--card); color:var(--muted); border-radius:8px; padding:2px; border:1px solid var(--line); line-height:1.2; }
.dress-new { position:absolute; left:4px; top:4px; font-size:11px; font-weight:800; background:var(--good); color:var(--good-ink); border-radius:8px; padding:2px 6px; }
.dress-friends[hidden] { display:none; }
.dress-friends-title { font-size:17px; margin:4px 0 8px; }
.dress-friend-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.dress .dress-friend { border:2px dashed var(--line); background:var(--card2); border-radius:18px; padding:4px 2px 6px; min-height:44px; gap:2px; }
.dress .dress-friend svg { width:100%; max-width:76px; height:auto; }
.dress .dress-friend.locked svg { opacity:.55; filter:grayscale(.4); }
.dress-friend-name { font-size:12px; font-weight:700; color:var(--muted); }
.dress.is-first .dress-save { position:sticky; bottom:calc(8px + env(safe-area-inset-bottom)); z-index:3; }
.wardrobe-characters[hidden] { display:none; }
@media(max-width:374px) { .onb-week { grid-template-columns:repeat(4,minmax(0,1fr)); } .dress .dress-tab { font-size:12px; } .onb-fig.is-plico { width:210px; margin-left:-105px; } .is-trail .onb-fig.is-plico { width:220px; margin-left:-110px; } .landing-title { font-size:28px; } }
/* Desktop: the hero and the room keep their phone composition inside the right pane, a little larger. */
@media(min-width:1024px) {
  .onb-plico { width:184px; height:184px; }
  .onb[data-hero="true"] .onb-main { max-width:520px; margin-inline:auto; }
  .dress .dress-stage { height:340px; }
  .dress .dress-shelf { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .onb-actions { flex-wrap:wrap; }
  .onb-actions .onb-skip { flex:1 0 100%; min-height:48px; }
  /* 21c (João, 21 Nov: "fix this buttons"): with a second button the main one takes the same full row, above it. */
  .onb-actions:has(.onb-skip) .onb-go { flex:1 0 100%; }
}
/* onboarding-plico end */
/* levelup-1 (14 Nov): the level-up moment. Plico hops, the level pops, the gift waits, shakes and glows when tapped,
   then the prize flips in. Reduced motion: everything still, the gift opens after a short pause. */
.levelup-dialog { position:fixed; width:min(380px,calc(100% - 32px)); max-height:92dvh; overflow:auto; border:1px solid var(--line); border-radius:26px; padding:22px 18px 20px; background:var(--card); color:var(--ink); box-shadow:var(--shadow); text-align:center; }
.levelup-dialog::backdrop { background:#241432a6; }
.levelup { align-items:center; gap:10px; -webkit-user-select:none; user-select:none; }
.levelup-level:focus { outline:none; }
.levelup-actions { align-self:stretch; gap:8px; margin-top:6px; min-height:104px; }
.levelup-dialog p { text-wrap:balance; }   /* 29 fit pass: «boneco.» was alone on its line at 360 px */
.levelup-actions.shown { animation:levelup-fade .45s ease both; }
.levelup > .btn.wide { align-self:stretch; margin-top:6px; }
.levelup-later { font-size:14px; min-height:44px; padding:6px 12px; }
.levelup-plico { width:104px; height:104px; object-fit:contain; animation:hop 1.1s ease-out 1; }
.levelup-level { margin:0; font-size:44px; line-height:1.05; font-weight:800; color:var(--primary); animation:levelup-pop .55s cubic-bezier(.2,1.4,.4,1) .15s both; }
.levelup-line { margin:0; font-size:18px; font-weight:700; }
.levelup-gift { display:flex; flex-direction:column; align-items:center; gap:2px; margin-top:4px; padding:6px 18px 10px; border:0; border-radius:22px; background:transparent; color:var(--muted); font:inherit; font-size:14px; font-weight:700; cursor:pointer; min-height:44px; }
.levelup-gift:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.levelup-gift .gift-art { display:block; overflow:visible; animation:gift-wait 2.6s ease-in-out .9s infinite; transform-origin:50% 90%; }
.gift-body { fill:#b79cf7; }
.gift-top { fill:#cbb6fb; }
.gift-ribbon,.gift-bow { fill:#ffb84d; }
.gift-lid { transform-box:fill-box; transform-origin:50% 100%; }
.levelup-gift.opening,.levelup-gift:disabled { opacity:1; color:var(--primary); cursor:default; }
.levelup-gift.opening .gift-art { animation:gift-shake 1.2s ease-in both, gift-glow 1.2s ease-in both; }
.levelup-gift.opening .gift-lid { animation:gift-lid 1.3s ease-in both; }
.levelup-gift.opening .gift-tap { visibility:hidden; }
.levelup-prize { display:grid; place-items:center; width:196px; height:196px; border-radius:50%; background:radial-gradient(circle,var(--soft) 0 58%,transparent 72%); animation:levelup-settle .8s cubic-bezier(.22,.8,.3,1) both; }
.levelup-step { animation:levelup-fade .5s ease both; }
.levelup-prize-name.levelup-step { animation-delay:.35s; }
.levelup p.levelup-step { animation-delay:.55s; }
.levelup p.small.levelup-step { animation-delay:.7s; }
.levelup-prize-name:focus { outline:none; }
.levelup-prize img,.levelup-prize svg { max-width:168px; max-height:168px; }
.levelup-prize-name { margin:0; font-size:24px; line-height:1.2; }

@keyframes levelup-settle { from { transform:translateY(14px) scale(.92); opacity:0; } to { transform:none; opacity:1; } }
@keyframes levelup-fade { from { transform:translateY(6px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes levelup-pop { from { transform:scale(.4); opacity:0; } to { transform:none; opacity:1; } }
@keyframes gift-wait { 0%,70%,100% { transform:rotate(0); } 76% { transform:rotate(-4deg); } 82% { transform:rotate(4deg); } 88% { transform:rotate(-2deg); } 94% { transform:rotate(1deg); } }
@keyframes gift-shake { 0% { transform:none; } 10% { transform:rotate(-3deg); } 20% { transform:rotate(3deg); } 30% { transform:rotate(-4deg); } 40% { transform:rotate(4deg); } 50% { transform:rotate(-6deg) scale(1.02); } 60% { transform:rotate(6deg) scale(1.04); } 70% { transform:rotate(-8deg) scale(1.06); } 80% { transform:rotate(8deg) scale(1.08); } 90% { transform:rotate(-4deg) scale(1.1); } 100% { transform:scale(1.12); } }
@keyframes gift-glow { from { filter:drop-shadow(0 0 0 #ffd76a00); } to { filter:drop-shadow(0 0 22px #ffd76a); } }
@keyframes gift-lid { 0%,80% { transform:none; } 100% { transform:translateY(-26px) rotate(-14deg); opacity:.2; } }
@media(prefers-reduced-motion:reduce) {
  .levelup-plico,.levelup-level,.levelup-prize,.levelup-step,.levelup-actions.shown,.levelup-gift .gift-art,.levelup-gift.opening .gift-art,.levelup-gift.opening .gift-lid { animation:none; }
  .levelup-gift.opening .gift-art { filter:drop-shadow(0 0 14px #ffd76a); }
}
/* levelup-1 end */
/* abertura-2026-11-16: Plico's opening when the app opens (João 16 Nov: "truly smooth"). public/js/abertura.js decides
   whether it shows and when it ends; hidden unless it adds .ab-on to <html>. Made by
   work/mockups/abertura-2026-11-16/make_abertura.py from the icon's own drawing: rerun it, do not edit by hand.
   Each moving part is its own layer, animated on transform and opacity only, so the compositor runs it while the app
   boots. Timelines: .ab-a (the default, about 1 s), .ab-full (about 1.8 s) and .ab-short (0.4 s), then a gentle rest
   until the app is ready, then the hand-off. Reduced motion: the still icon for 0.4 s. The markup carries `hidden`
   (so it never shows without these styles or without the script); !important beats the global [hidden] rule.
   Hand-off (second pass, João 16 Nov 21:05: "it doesn't have a smooth transition"), 0.45 s (0.26 s after a tap), one
   gesture over a first screen already drawn under the veil: the tile takes a small breath in (1.05, the rest's own
   swell) and pops away into its centre, solid until it is small (gone at 52%), as the reverse of its appear; the
   veil's background (its own layer, ::before) dissolves around it from 10%; and the app rises 12 px and settles from
   98.5% (.ab-prep places it under the opaque veil first, .ab-go moves it). No full-size half-faded Plico ever sits
   on the screen behind. Reduced motion: the same fades, nothing moves or scales. */
.abertura { display:none; }
html.ab-on .abertura[hidden] { position:fixed; inset:0; z-index:2147483000; display:grid !important; place-items:center; contain:strict; animation:ab-clock 1s linear both; cursor:default; -webkit-tap-highlight-color:transparent; }
html.ab-on .abertura[hidden]::before { content:''; position:absolute; inset:0; background-color:var(--bg); background-image:var(--wash); background-attachment:fixed; }
.ab-tile { position:relative; width:min(40vmin,168px); aspect-ratio:1; border-radius:22%; overflow:hidden; box-shadow:0 10px 34px #4a288538; animation:ab-in .22s cubic-bezier(.2,.8,.3,1) both; }
.ab-tile svg,.ab-m { position:absolute; inset:0; width:100%; height:100%; display:block; }
html.ab-on .ab-m { will-change:transform; }
.ab-spk{transform-origin:70.833% 18.750%} .ab-shd{transform-origin:52.144% 63.243%} .ab-body{transform-origin:52.553% 84.214%} .ab-fold{transform-origin:77.081% 25.012%} .ab-eyes{transform-origin:50.000% 54.167%} .ab-hand{transform-origin:34.223% 63.944%} .ab-hand2{transform-origin:69.576% 70.146%} .ab-plico{transform-origin:52.553% 84.214%}
html.ab-a .ab-hand { animation:ab-wave .6s ease-in-out .18s both; }
html.ab-a .ab-hand2 { animation:ab-wave2 .6s ease-in-out .18s both; }
html.ab-a .ab-eyes { animation:ab-blink .12s linear .8s both; }
html.ab-a .ab-plico { animation:ab-rest 2.4s ease-in-out 1s infinite; }
html.ab-full .abertura[hidden] { animation-duration:1.8s; }
html.ab-full .ab-body { animation:ab-hop 1s cubic-bezier(.3,.7,.4,1) .08s both; }
html.ab-full .ab-shd { animation:ab-shd .52s ease-in-out .24s both; }
html.ab-full .ab-fold { animation:ab-fold .56s ease-out .4s both; }
html.ab-full .ab-spk { animation:ab-spk .72s ease-out .36s both; }
html.ab-full .ab-hand { animation:ab-wave .96s ease-in-out .8s both; }
html.ab-full .ab-hand2 { animation:ab-wave2 .96s ease-in-out .8s both; }
html.ab-full .ab-eyes { animation:ab-blink .12s linear 1.44s both; }
html.ab-full .ab-plico { animation:ab-rest 2.4s ease-in-out 1.8s infinite; }
html.ab-short .abertura[hidden] { animation-duration:.4s; }
html.ab-short .ab-tile { animation-duration:.2s; }
html.ab-short .ab-eyes { animation:ab-blink .12s linear .22s both; }
html.ab-short .ab-plico { animation:ab-rest 2.4s ease-in-out .4s infinite; }
html.ab-on .abertura.ab-out[hidden] { animation:ab-out .45s linear both; }
html.ab-on .abertura.ab-now[hidden] { animation:ab-out .26s linear both; }
html.ab-on .abertura.ab-out[hidden]::before { animation:ab-veil .45s both; }
html.ab-on .abertura.ab-now[hidden]::before { animation:ab-veil .26s both; }
html.ab-on .abertura.ab-out[hidden] .ab-tile { animation:ab-pop .45s both,ab-fade .45s both; }
html.ab-on .abertura.ab-now[hidden] .ab-tile { animation:ab-pop .26s both,ab-fade .26s both; }
html.ab-on .abertura.ab-out[hidden],html.ab-on .abertura.ab-now[hidden] { pointer-events:none; }
@media (prefers-reduced-motion:no-preference) {
  html.ab-prep #app,html.ab-prep .desktop-story { transform:translateY(12px) scale(.985); transform-origin:50% 50vh; will-change:transform; }
  html.ab-go #app,html.ab-go .desktop-story { animation:ab-rise .45s both; transform-origin:50% 50vh; }
  html.ab-go.ab-fast #app,html.ab-go.ab-fast .desktop-story { animation-duration:.26s; }
  html.ab-fit { overflow:hidden; }
}
@media (prefers-reduced-motion:reduce) {
  html.ab-on .abertura[hidden] { animation-duration:.4s; }
  html.ab-on .ab-tile,html.ab-on .ab-m { animation:none; will-change:auto; }
  html.ab-on .abertura.ab-out[hidden],html.ab-on .abertura.ab-now[hidden] { animation:ab-out .24s linear both !important; }
  html.ab-on .abertura.ab-out[hidden]::before,html.ab-on .abertura.ab-now[hidden]::before { animation:ab-veil .24s both !important; }
  html.ab-on .abertura.ab-out[hidden] .ab-tile,html.ab-on .abertura.ab-now[hidden] .ab-tile { animation:ab-fade .24s both !important; }
}
@keyframes ab-clock { from,to { opacity:1; } }
@keyframes ab-out { from,to { opacity:1; } }
@keyframes ab-veil { 0%,10% { opacity:1; animation-timing-function:cubic-bezier(.35,0,.25,1); } 100% { opacity:0; } }
@keyframes ab-pop { 0% { transform:none; animation-timing-function:cubic-bezier(.3,0,.4,1); } 14% { transform:scale(1.05); animation-timing-function:cubic-bezier(.5,0,.75,.3); } 55%,100% { transform:scale(.3); } }
@keyframes ab-fade { 0%,36% { opacity:1; animation-timing-function:cubic-bezier(.4,0,1,1); } 52%,100% { opacity:0; } }
@keyframes ab-rise { 0%,10% { transform:translateY(12px) scale(.985); animation-timing-function:cubic-bezier(.2,.6,.3,1); } 100% { transform:none; } }
@keyframes ab-in { from { opacity:0; transform:scale(.9); } to { opacity:1; transform:none; } }
@keyframes ab-hop { 0% { transform:rotate(-4deg) translateY(0.000%) scale(1,1) rotate(4deg); } 16% { transform:rotate(-4deg) translateY(0.000%) scale(1.07,0.9) rotate(4deg); } 44% { transform:rotate(-4deg) translateY(-9.640%) scale(0.95,1.07) rotate(4deg); } 68% { transform:rotate(-4deg) translateY(0.000%) scale(1.08,0.92) rotate(4deg); } 84% { transform:rotate(-4deg) translateY(0.000%) scale(0.98,1.03) rotate(4deg); } 100% { transform:rotate(-4deg) translateY(0.000%) scale(1,1) rotate(4deg); } }
@keyframes ab-shd { 0%,100% { transform:scale(1); opacity:1; } 53.85% { transform:scale(.78); opacity:.45; } }
@keyframes ab-fold { 0%,100% { transform:scale(1); } 28.57% { transform:scale(.55); } 71.43% { transform:scale(1.12); } }
@keyframes ab-spk { 0%,100% { transform:scale(1); opacity:1; } 27.78% { transform:scale(.01); opacity:0; } 66.67% { transform:scale(1.4); opacity:1; } }
@keyframes ab-wave { 0%,100% { transform:rotate(0deg); } 20.83% { transform:rotate(-20deg); } 41.67% { transform:rotate(14deg); } 62.5% { transform:rotate(-16deg); } 83.33% { transform:rotate(6deg); } }
@keyframes ab-wave2 { 0%,100% { transform:rotate(0deg); } 20.83% { transform:rotate(18deg); } 41.67% { transform:rotate(-12deg); } 62.5% { transform:rotate(14deg); } 83.33% { transform:rotate(-5deg); } }
@keyframes ab-blink { 0%,100% { transform:rotate(-4deg) scale(1,1) rotate(4deg); } 50% { transform:rotate(-4deg) scale(1,.12) rotate(4deg); } }
@keyframes ab-rest { 0%,100% { transform:scale(1); } 50% { transform:scale(1.025); } }
/* abertura-2026-11-16 end */

/* build-a start (João, 17 Nov 12:39: "this buttons need borders as well, all of them"): every soft button (lilac fill,
   label in the theme's colour) gets a 2 px border in its label's colour, the weight and corner of the outlined
   «btn quiet». Drawn as an inset ring, so no button grows, moves or rewraps by the border's width; the corner is the
   button's own. The wardrobe tabs use «btn soft» only for its base and draw their own line, so they keep it. */
.btn.soft, .topbar .back-button, .sheet-close, .date-nav, .topbar .entry-home, .miniaula .miniaula-btn { box-shadow:inset 0 0 0 2px currentColor; }
.desktop-story a[href="/"] { box-shadow:inset 0 0 0 2px currentColor; }
.dress .dress-tab { box-shadow:none; }
/* Reader round 2: the outlined «btn quiet» (white, «Voltar ao trilho», «Ligar aparelho e gerir perfil») takes the
   label's purple too, instead of the pale tint, at the same 2 px. */
.btn.quiet { border-color:currentColor; }
/* build-a end */

/* one-screen start (João, 17 Nov 21:08: "it should be 1 screen, no scrolling"; sketch approved 21:41, Agency
   docs/_previews/oexplica-exercicio-1-ecra-2026-11-17). A lesson, Recordar and Treinar: a thin top row (back, progress,
   ⚙), the question and its answers, and one bar at the bottom with «💡 Dica» and the main button. On a phone the bar
   stays fixed in thumb reach and a result comes up as a sheet over it, with the question still on screen; on a computer
   the same column sits in the middle and the bar follows the answers. With the phone keyboard open the bar joins the
   page under the box (html.kb-open, player.js watchKeyboard), so the keys never cover «Verificar». */
.one-screen .screen { padding-bottom:calc(112px + env(safe-area-inset-bottom,0px)); }
.one-screen .screen:has(.one-act-row) { padding-bottom:calc(160px + env(safe-area-inset-bottom,0px)); }
.one-screen .screen:has(.one-sheet) { padding-bottom:calc(220px + env(safe-area-inset-bottom,0px)); }
.one-top { min-height:60px; padding-top:8px; padding-bottom:4px; gap:12px; }
.one-top .back-button { width:44px; height:44px; min-height:44px; }
.one-top .one-progress { flex:1; min-width:0; height:12px; }
.one-gear { display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:50%; background:var(--soft); color:var(--primary); box-shadow:none; flex-shrink:0; }
.one-gear svg { width:23px; height:23px; stroke-width:2; }
.one-gear:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.one-gear { box-shadow:inset 0 0 0 2px currentColor; }
/* A toast («+35 XP», «Muito bem!») comes in at the top, never over the main button or the answer's sheet. */
html:has(.one-screen) .toast { top:calc(68px + env(safe-area-inset-top,0px)); bottom:auto; }
.one-stage { gap:14px; }
.one-stage > .tag { align-self:flex-start; }
.one-title { font-size:22px; margin:0; }
.one-ex { gap:14px; }
.one-ex .ex-level { align-self:flex-start; }
.one-q { display:flex; align-items:flex-start; gap:10px; }
.one-q .exercise-text { flex:1; min-width:0; }
.one-q > .btn { display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border-radius:50%; border:0; background:var(--soft); color:var(--primary); box-shadow:none; flex-shrink:0; font-size:19px; }
.one-ex .ex-question { margin:0; padding:0; background:none; border:0; }
.one-ex .ex-qlabel { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.one-ex .ex-qtext { font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:23px; font-weight:600; line-height:1.28; letter-spacing:-.005em; }
.one-ex .ex-line { font-size:17px; line-height:1.55; }
.one-ex .ex-title { font-size:17px; }
.one-ex .convo-ask .convo-plico { display:none; }
.one-ex .convo-ask .convo-bubble { max-width:100%; }
.one-ex .convo-think { display:none; }
.tile-options.tile-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tile-grid .tile-row .tile-option { min-height:72px; font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:24px; font-weight:600; }
.tile-row .tile-option[aria-pressed="true"] { border-color:var(--primary); background:var(--soft); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 22%,transparent); }
.tile-row.right .tile-option, .tile-row.right .tile-option[aria-pressed="true"] { border-color:color-mix(in srgb,var(--good-ink) 45%,var(--good)); background:var(--good); color:var(--good-ink); box-shadow:none; }
.tile-row.wrong .tile-option { border-color:#d97a96; background:#fde8ee; color:#5b1a2c; }
:root[data-theme="noite"] .tile-row.wrong .tile-option { border-color:#a8506c; background:#45202c; color:#ffc2d1; }
.one-locked .tile-row:not(.right):not(.wrong) { opacity:.55; }
.one-locked .tile-option:disabled { cursor:default; }
.one-ex .ex-form { gap:8px; }
.one-ex .ex-form > label { font-weight:700; font-size:15px; }
.one-ex .answer-line { min-height:58px; font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:24px; font-weight:600; }
.one-ex textarea.answer-text { min-height:84px; font-size:17px; }
.one-ex .ex-form .feedback { margin-top:0; padding:10px 14px; font-size:15px; font-weight:600; }
/* 20261123a (João's phone, 23 Nov, photo15: the «Ainda não» line tucked under the box's focus ring): the line starts below the
   ring (3 px wide, 3 px off the box), with room to spare. */
.one-ex .ex-form :is(input.input,textarea) + .feedback { margin-top:6px; }
/* 20261123a (João, 23 Nov 06:09: "also tip color maybe blue? And it changes on themes just to be different from the yellow wrong";
   06:11: "In this theme can be a stronger pink"): the hint has its own surface, from each theme's tokens (--tip, --tip-ink, set
   at the top of this file), never the yellow of a wrong answer; it reads as plain text, not bold like the line above it. */
.feedback.hint.hint-text { background:var(--tip); color:var(--tip-ink); }
.one-ex .ex-form .feedback.hint-text { font-weight:400; }
.one-small { min-height:44px; padding:8px 14px; font-size:15px; }
.one-ex .exercise-answers > .one-small { align-self:flex-start; }
.one-nohint { margin:0; }
/* The bar */
.one-act { position:fixed; left:0; right:0; bottom:0; z-index:30; max-width:640px; margin:0 auto; display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px)); background:var(--card); border-radius:26px 26px 0 0; box-shadow:0 -18px 40px -18px #36244a55; }
.one-act[hidden] { display:none; }
.one-act > .one-go { flex:1 1 0; min-width:0; }
.one-act > .one-hint { flex:none; min-height:58px; padding:0 16px; border-radius:18px; font-size:16px; }
.one-act-row { flex:1 0 100%; display:flex; justify-content:center; gap:8px; }
.one-act-row > .btn { flex:1; }
.btn.cta.one-go { position:relative; min-height:58px; padding:0 30px; border-radius:18px; font-size:18px; font-weight:800; letter-spacing:.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#fff; background:var(--primary);
  box-shadow:0 10px 20px -8px color-mix(in srgb,var(--primary) 80%,transparent), inset 0 1px 0 #ffffff40, inset 0 -3px 0 #0000002a; }
/* The main button's small stars (João, 17 Nov: "the buttons we want them to click should have more life"): drawn by CSS, never read aloud. */
.btn.cta.one-go::before, .btn.cta.one-go::after { position:absolute; line-height:1; pointer-events:none; }
.btn.cta.one-go::before { content:"✦" / ""; top:9px; left:14px; font-size:12px; color:#ffd36e; }
.btn.cta.one-go::after { content:"✦" / ""; right:16px; bottom:9px; font-size:9px; color:#fff; }
:root[data-theme="noite"] .btn.cta.one-go::after { color:#251535; }
.btn.cta.one-go[data-wait="true"]::before, .btn.cta.one-go[data-wait="true"]::after { content:none; }
:root[data-theme="noite"] .btn.cta.one-go { color:#251535; }
.btn.cta.one-go[data-wait="true"] { background:var(--soft); color:var(--primary); box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--primary) 35%,transparent); }
.btn.cta.one-go:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
/* 20261123a (João, 23 Nov 06:12: "Dica and verificar buttons could be slightly smsller as well"): on the exercise's own bar, with or
   without a pad, «Dica» and «Verificar» are 50 px high (were 58; the tap target stays above 48); the result's «Continuar» keeps 58. */
.one-ex .one-act > .one-hint, .one-ex .one-act > .btn.cta.one-go { min-height:50px; }
/* The result's sheet */
.one-sheet { position:fixed; left:0; right:0; bottom:0; z-index:31; max-width:640px; max-height:78dvh; margin:0 auto; overflow-y:auto; display:flex; flex-direction:column; gap:12px; padding:16px 16px calc(14px + env(safe-area-inset-bottom,0px)); border-radius:26px 26px 0 0; border-top:2px solid; box-shadow:0 -18px 40px -18px #36244a66; animation:one-up .26s cubic-bezier(.2,.9,.3,1) both; }
.one-sheet.good { background:var(--good); color:var(--good-ink); border-color:color-mix(in srgb,var(--good-ink) 30%,var(--good)); }
.one-sheet.hint { background:var(--hint); color:var(--hint-ink); border-color:color-mix(in srgb,var(--hint-ink) 30%,var(--hint)); }
.one-sheet .one-act { position:static; max-width:none; margin:0; padding:0; background:transparent; box-shadow:none; border-radius:0; }
.one-sheet .feedback { margin:0; padding:0; background:transparent; color:inherit; font-size:16px; }
.one-sheet .card { background:var(--card); color:var(--ink); }
.one-sheet-body { gap:10px; font-size:16px; line-height:1.5; }
.one-sheet-body:empty { display:none; }
.one-says { display:grid; grid-template-columns:84px 1fr; gap:10px; align-items:end; }
.one-says-plico { width:84px; height:84px; object-fit:contain; filter:drop-shadow(0 6px 6px #2b173f22); }
.one-bubble { margin:0; padding:12px 16px; border:1px solid var(--line); border-radius:20px 20px 20px 6px; background:var(--card); color:var(--ink); font-weight:700; font-size:17px; line-height:1.35; box-shadow:var(--shadow); }
.one-bubble:focus { outline:none; }
.one-bubble:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
/* 20261123c (the «Jogar» tab, prototype 1c-jogar): the next test leads, its «Preparar» beside it. */
.play-next { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.play-next-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.play-next-tag { margin:0; font-weight:700; color:var(--muted); font-size:15px; }
.play-next-subject { font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:22px; line-height:1.2; overflow-wrap:anywhere; }
.play-next .play-prepare { flex:none; min-height:48px; padding:0 20px; }
@media(max-width:374px) { .play-next { flex-wrap:wrap; } .play-next .play-prepare { width:100%; } }
/* 20261123a (João, 23 Nov 05:50): a right answer's sheet is the green band and «Continuar»; a note that stays is one bubble, no Plico.
   The typed answer gets the ✓ a tile gets, drawn in the box (no text added). */
.one-sheet.good .one-bubble { align-self:stretch; border-radius:20px; }
.one-sheet .one-bubble.sr-only { padding:0; border:0; box-shadow:none; }
.one-locked.one-right .answer-line, .one-locked.one-right textarea.answer-text { border-color:color-mix(in srgb,var(--good-ink) 45%,var(--good)); background:var(--good); color:var(--good-ink); -webkit-text-fill-color:var(--good-ink); opacity:1; padding-right:52px; }
.one-right-box { position:relative; display:block; }
.one-right-mark { position:absolute; right:14px; top:50%; width:28px; height:28px; margin-top:-14px; display:grid; place-items:center; border-radius:50%; background:#11804f; color:#fff; font-size:17px; font-weight:800; line-height:1; pointer-events:none; }
.one-right-box:has(textarea) .one-right-mark { top:14px; margin-top:0; }
:root[data-theme="noite"]:not([data-theme="pastel"]) .one-right-mark { background:#34b87a; color:#0b241a; }  /* 20261123b (review m5): 4.6:1 on Noite's green, the ✓ 6.5:1 */
@keyframes one-up { from { transform:translateY(24px); opacity:0; } to { transform:none; opacity:1; } }
/* The ⚙ sheet */
.one-settings-body { display:flex; flex-direction:column; gap:12px; padding-bottom:4px; }
.one-group { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--card2); }
.one-group > * + * { border-top:1px solid var(--line); }
.one-group > .guide-slot:empty { display:none; }
.one-row { display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:8px 14px; border:0; border-radius:0; background:transparent; color:var(--ink); font:inherit; font-size:16px; font-weight:700; text-align:left; box-shadow:none; cursor:pointer; }
.one-row .one-row-icon { width:28px; text-align:center; font-size:20px; flex-shrink:0; }
.one-row .one-row-text { flex:1; min-width:0; line-height:1.25; overflow-wrap:anywhere; }
.one-row small { display:block; margin-top:2px; font-size:14px; font-weight:400; color:var(--muted); }
.one-row .one-row-go { color:var(--muted); font-size:20px; }
/* 20261123a (João's phone, 23 Nov: «box is off on texto em conversa»): the square outline ran into the group's rounded, clipped
   corners and showed cut at the top and bottom. The ring is drawn inside the row with the group's own inner radius (20 - 1 px border),
   so it is whole on every row, first, middle and last. */
.one-row:focus-visible { outline:none; border-radius:19px; box-shadow:inset 0 0 0 3px var(--primary); }
@media(forced-colors:active) { .one-row:focus-visible { outline:3px solid CanvasText; outline-offset:-3px; box-shadow:none; } }
@media(hover:hover) { .one-row:hover { background:var(--soft); } }
.one-switch { position:relative; width:52px; height:32px; border-radius:99px; background:var(--line); flex-shrink:0; transition:background .2s; }
.one-switch::after { content:""; position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0004; transition:transform .2s; }
.one-row[aria-checked="true"] .one-switch { background:var(--primary); }
.one-row[aria-checked="true"] .one-switch::after { transform:translateX(20px); }
:root[data-theme="noite"] .one-switch::after { background:#f4efff; }
:root[data-theme="noite"] .one-row[aria-checked="true"] .one-switch::after { background:#251535; }
.one-guide.btn { justify-content:flex-start; }
/* The end of a lesson: smaller Plico, «Continuar» in the bar */
.one-end { padding-top:8px; }
.one-end .celebration-art { width:112px; height:96px; margin-bottom:0; }
.one-end { gap:10px; }
.one-end .xp-award { margin:0; }
.one-end h1 { margin:6px 0; }
/* Keys up (19 Nov; João, 17 Nov 23:17 and 18 Nov 09:56). The phone's own keyboard where the page shrinks above it (the Android app,
   html.kb-open from player.js watchKeyboard), our number pad and our maths keyboard (.has-pad): the same layout. The lesson fills the
   screen above the keys, the bar with «Dica», «Verificar» and our pad is the last thing in it, the answer box sits right on the bar,
   and a long question scrolls in the space left, its last lines (what is asked) in view, with a soft edge at its top. A computer keeps
   the page as it is (the pads follow the answers there). 20261123b (first review of 23a, B3): the phone layout ends at 849 px,
   where the app's computer layout starts (.in-app, 850 px); it ended at 879 px, so 850 to 879 px wide got both. */
@media(max-width:849px) {
  html.kb-open:not(.kb-over) .one-screen, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) { flex:none; height:100dvh; min-height:0; overflow:hidden; display:flex; flex-direction:column; }
  /* 20261123a (João's iPhone, 23 Nov: the pad's last row under Brave's toolbar, "I was able to scroll past the keyboard"): 100dvh is not
     the visible height in every iPhone browser, and the page under the lesson could still scroll. The lesson is a layer fixed to the
     screen (inset 0 follows the browser's bars), so the page never moves it.
     20261123b (first review of 23a, B3: on a short phone, at 130 % text, in «Só 2 minutos», in a star retry or with «Já fiz este
     cartão» the answers were squeezed to a few px): the answers keep their natural height; the question gives up its room first
     (it scrolls in its own space, down to its last lines), then the lesson scrolls, and the bar with the pad stays whole at the
     bottom of the screen (sticky). On a screen too short for the pad and a box together (phone landscape, 480 px high or less)
     the bar with the pad follows the answers in the page, whole, and the page scrolls. */
  html.kb-open:not(.kb-over) .one-screen, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) { position:fixed; inset:0; height:auto; width:100%; max-width:430px; margin-inline:auto; z-index:1; overscroll-behavior:none; }
  /* 22a review (Codex high 4): when the lesson cannot fit (a short screen, a large font), the screen scrolls instead of cutting
     its end, so «Verificar» and the pad can always be reached; when it fits, nothing moves. */
  html.kb-open:not(.kb-over) .one-screen .one-top, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-top, html.kb-open:not(.kb-over) .one-screen .topbar, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .topbar { flex:none; }  /* 20261123c (recheck F3): «Só 2 minutos» and «Treinar» have a plain top bar */
  /* 20261123b (review B3): the lesson's one child is laid out from the bottom (column-reverse), so when it is taller than the screen
     it opens scrolled to its end, the box right above the bar, and the question above is reached by scrolling up. */
  html.kb-open:not(.kb-over) .one-screen .screen, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .screen { flex:1 1 auto; min-height:0; display:flex; flex-direction:column-reverse; overflow-x:hidden; overflow-y:auto; padding-bottom:0; }
  html.kb-open:not(.kb-over) .one-screen .one-stage, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-stage { flex:1 1 auto; min-height:auto; display:flex; flex-direction:column; }
  html.kb-open:not(.kb-over) .one-screen .one-stage > *, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-stage > * { flex:none; }
  html.kb-open:not(.kb-over) .one-screen .one-stage > .one-ex, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-stage > .one-ex, html.kb-open:not(.kb-over) .one-screen .one-stage > .one-review, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-stage > .one-review, html.kb-open:not(.kb-over) .one-screen .one-review > .one-ex, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-review > .one-ex { flex:1 1 auto; min-height:auto; display:flex; flex-direction:column; }
  html.kb-open:not(.kb-over) .one-screen .one-ex > *, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex > * { flex:none; }
  html.kb-open:not(.kb-over) .one-screen .one-ex > .one-q, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex > .one-q { flex:0 100 auto; min-height:56px; align-items:stretch; overflow:hidden; }
  html.kb-open:not(.kb-over) .one-screen .one-ex .one-q > .btn, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex .one-q > .btn { align-self:flex-start; }
  html.kb-open:not(.kb-over) .one-screen .one-ex .one-q .exercise-text, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex .one-q .exercise-text { overflow-y:auto; overscroll-behavior:contain; }
  html.kb-open:not(.kb-over) .one-screen .one-ex > .exercise-answers, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex > .exercise-answers { margin-top:auto; }
  html.kb-open:not(.kb-over) .one-screen .one-ex > .one-act, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex > .one-act { position:sticky; bottom:0; z-index:2; max-width:none; margin:0 -20px; }
  html.kb-open:not(.kb-over) .one-screen .one-ex > .ex-level { display:none; }
  html.kb-open:not(.kb-over) .one-screen .one-ex textarea.answer-text { min-height:64px; }
}
@media(max-width:849px) and (max-height:480px) { .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex > .one-act { position:static; } .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .screen { flex-direction:column; } }  /* opens at its start: the question and the box */
/* 20261123c (recheck F2): the Android app's keys leave a very short page (landscape, a small phone): the bar follows the box in the
   page again and the page opens at its start, as on 22a, so the whole box can be reached; above 300 px the bar stays on the keys. */
@media(max-width:849px) and (max-height:300px) { html.kb-open:not(.kb-over) .one-screen .one-ex > .one-act { position:static; } html.kb-open:not(.kb-over) .one-screen .screen { flex-direction:column; } }
@media(max-width:374px) { html.kb-open:not(.kb-over) .one-screen .one-ex > .one-act, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex > .one-act { margin:0 -16px; } }
.one-ex .one-q .exercise-text.q-more { -webkit-mask-image:linear-gradient(to bottom,transparent 0,transparent 10px,#000 40px); mask-image:linear-gradient(to bottom,transparent 0,transparent 10px,#000 40px); }
html.kb-open .one-ex .one-act { padding-top:10px; padding-bottom:10px; border-radius:22px 22px 0 0; }
html.kb-open .one-ex .ex-qtext { font-size:19px; }
html.kb-open .one-top { min-height:52px; }
.one-ex textarea.answer-text { resize:none; }
/* A short phone with its keys up: the label stays for screen readers, the box starts on two lines and grows as they type. */
@media(max-height:700px) {
  html.kb-open:not(.kb-over) .one-ex .ex-form > label { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
  html.kb-open:not(.kb-over) .one-ex textarea.answer-text { min-height:48px; field-sizing:content; max-height:120px; }
  html.kb-open .one-ex .one-q .exercise-text.q-more { -webkit-mask-image:linear-gradient(to bottom,transparent 0,transparent 6px,#000 22px); mask-image:linear-gradient(to bottom,transparent 0,transparent 6px,#000 22px); }
  .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex > .ex-level { display:none; }
}
/* 22a recheck (Codex medium): «abc» on our maths pad opens the phone's own keys, so that mode leaves the fixed-height pad layout
   (the :has(... data-mode="letters") exclusions) and takes the keyboard rules below. */
/* 22a review (Codex high 4): a phone's own keyboard that neither shrinks the page nor reports itself (Android 15 edge-to-edge
   WebViews can do this): while the child types in a box, the bar joins the page right under it, and the page gets room to scroll
   «Verificar» above the keys (html.kb-typing from player.js watchKeyboard; kb-open takes over whenever the keys are seen). */
@media(max-width:849px) and (pointer:coarse) {
  html.kb-typing:not(.kb-open) .one-screen .screen { padding-bottom:50vh; }
  html.kb-typing:not(.kb-open) .one-ex .one-act:is(:not(.has-pad),:has(.answer-pad[data-mode="letters"])) { position:static; max-width:none; margin:0; padding:4px 0 0; background:transparent; box-shadow:none; border-radius:0; }
}
/* The keys only cover the page (a phone's browser): the bar joins the page under the box (17 Nov). */
/* 22a third pass (RECHECK2 Codex): keys that only cover the page take about half of it; the page gets that much room to scroll
   «Verificar» above them (no inline style: the CSP and test_polish_1 keep styles in this file). */
html.kb-over .one-screen .screen { padding-bottom:calc(16px + 55vh); }
/* 20261123a (João's iPhone, 23 Nov: after «abc» "bugs like this": a large empty band between «Verificar» and the keys; RECHECK3_OPUS
   note 12): where the phone reports how much its keys cover (visualViewport), the room is that height, in 40 px steps
   (player.js watchKeyboard sets kb-r-N for N x 40 px); 55vh stays only where nothing is reported. */
html.kb-over.kb-r-4 .one-screen .screen { padding-bottom:176px; } html.kb-over.kb-r-5 .one-screen .screen { padding-bottom:216px; }
html.kb-over.kb-r-6 .one-screen .screen { padding-bottom:256px; } html.kb-over.kb-r-7 .one-screen .screen { padding-bottom:296px; }
html.kb-over.kb-r-8 .one-screen .screen { padding-bottom:336px; } html.kb-over.kb-r-9 .one-screen .screen { padding-bottom:376px; }
html.kb-over.kb-r-10 .one-screen .screen { padding-bottom:416px; } html.kb-over.kb-r-11 .one-screen .screen { padding-bottom:456px; }
html.kb-over.kb-r-12 .one-screen .screen { padding-bottom:496px; } html.kb-over.kb-r-13 .one-screen .screen { padding-bottom:536px; }
html.kb-over .one-ex .one-act { position:static; max-width:none; margin:0; padding:4px 0 0; background:transparent; box-shadow:none; border-radius:0; }
/* Our number pad and maths keyboard (João, 18 Nov 09:56: the pad under «Verificar» "its perfect ... should lock bellow"). */
.one-act.has-pad { padding-bottom:calc(8px + env(safe-area-inset-bottom,0px)); }
.one-ex input[inputmode="none"] { caret-color:var(--primary); }
.answer-pad { display:flex; flex-direction:column; gap:6px; min-width:0; }
.one-act > .answer-pad { flex:1 0 100%; }
.pad-row { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:6px; }
.pad-key { min-width:0; min-height:52px; padding:0 2px; border:1px solid color-mix(in srgb,var(--ink) 22%,transparent); border-radius:12px; background:var(--card2); color:var(--ink); box-shadow:0 1px 0 color-mix(in srgb,var(--ink) 18%,transparent);
  font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:22px; font-weight:600; line-height:1; white-space:nowrap; }
.pad-key.pad-digit { background:var(--card); }
:root[data-theme="noite"] .pad-key.pad-digit { background:var(--card2); }
.pad-key.pad-act { background:var(--soft); color:var(--primary); }
.pad-space { display:inline-block; width:28px; height:8px; border:2.5px solid currentColor; border-top:0; border-radius:0 0 4px 4px; vertical-align:middle; }
.pad-key[aria-label="verificar"], .pad-key[aria-label="menos"] { font-size:28px; }
/* The operators are why the maths keyboard exists: drawn as big as the digits look (their glyphs are small in the app's font). */
.answer-pad-maths .pad-key:is([aria-label="mais"],[aria-label="menos"],[aria-label="vezes"],[aria-label="a dividir por"],[aria-label="igual"]) { font-size:31px; }
.answer-pad-maths .pad-key { min-height:50px; font-size:24px; }
.answer-pad-maths .pad-key[data-act]:not([data-act="power"]) { font-size:16px; font-weight:700; }
.answer-pad-maths .pad-key[data-act="back"] { font-size:22px; }
.answer-pad-maths .pad-key[data-act="more"] { font-size:18px; }
.answer-pad-maths .pad-key[aria-pressed="true"] { background:var(--primary); color:var(--card); }
/* «x» and «y» in an italic serif, as in a maths book, so the letter never looks like «×»; the same x on «x²», «x³», «xⁿ» and «Mais» */
.pad-key[aria-label="xis"], .pad-key[aria-label="ípsilon"], .pad-math { font-family:Georgia,"Times New Roman","Noto Serif",serif; font-weight:400; }
.pad-key[aria-label="xis"], .pad-key[aria-label="ípsilon"], .pad-math i { font-style:italic; }
.pad-math { font-size:24px; }
.pad-key[aria-label="xis"], .pad-key[aria-label="ípsilon"] { font-size:25px; }
.pad-row-letters { grid-auto-columns:auto; justify-content:start; }
.pad-row-letters .pad-key { min-width:88px; }
.pad-key:active { transform:translateY(1px); filter:brightness(.96); }
.pad-key:focus-visible { outline:3px solid var(--primary); outline-offset:1px; }
@media(max-height:700px) { .pad-key, .answer-pad-maths .pad-key { min-height:44px; } }
@media(prefers-reduced-motion:reduce) { .pad-key:active { transform:none; } }
@media(max-width:374px) { .one-ex .ex-qtext { font-size:21px; } .one-q > .btn { width:44px; } .one-act { padding-left:12px; padding-right:12px; } }
@media(min-width:850px) {
  .one-screen .screen, .one-screen .screen:has(.one-act-row), .one-screen .screen:has(.one-sheet) { width:100%; max-width:640px; margin:0 auto; padding-bottom:32px; }
  .one-screen .topbar.one-top { width:100%; max-width:640px; margin:0 auto; }
  .one-act { position:sticky; bottom:16px; max-width:none; margin:8px 0 0; border-radius:24px; box-shadow:var(--shadow); border:1px solid var(--line); }
  .one-sheet { position:static; max-width:none; max-height:none; margin:8px 0 0; border:2px solid; border-radius:24px; box-shadow:var(--shadow); }
  .one-sheet.good { border-color:color-mix(in srgb,var(--good-ink) 30%,var(--good)); }
  .one-sheet.hint { border-color:color-mix(in srgb,var(--hint-ink) 30%,var(--hint)); }
}
@media(prefers-reduced-motion:reduce) { .one-sheet { animation:none; } .one-switch,.one-switch::after { transition:none; } }
/* one-screen end */

/* icons-search-home start (20 Nov 2026, the independent read of the menu icons, the topic search in «O que vai sair?» and
   Início: C:/Users/grate/Desktop/Agency/docs/_reviews/OEXPLICA_ICONS_SEARCH_READ_2026-11-20.md). Theme colours only. */
/* Menu: the same pill on phone and laptop (no bar on the left), a focus ring inside the tab, a pressed state, and the
   icons at the phone's 40 px in the laptop rail too, so «Amigos» keeps its four friends readable. */
.bottom-nav .nav-item:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.bottom-nav .nav-item { transition:transform .12s ease-out; }
/* Pressed has its own look, never the selected fill (round 2): the tab dims and, with motion, shrinks a little. */
.bottom-nav .nav-item:active { transform:scale(.94); }
.bottom-nav .nav-item:not(.active):active,.in-app > .bottom-nav .nav-item:not(.active):active { background:transparent; opacity:.6; }
@media(hover:hover) { .bottom-nav .nav-item:not(.active):hover { background:var(--card2); color:var(--ink); } }
@media(prefers-reduced-motion:reduce) { .bottom-nav .nav-item { transition:none; }.bottom-nav .nav-item:active { transform:none; } }
.side-mark { display:none; }
@media(min-width:850px) {
  .in-app > .bottom-nav .nav-item.active { box-shadow:none; }
  .in-app > .bottom-nav .nav-ic { width:40px; height:40px; }
  .in-app > .bottom-nav .nav-ic-trilho { width:46px; height:46px; margin:-3px; }
  .in-app > .bottom-nav .nav-ic-eu { width:50px; height:50px; margin:-5px; }
}
/* The narrow rail (850 to 1023 px, a tablet held sideways): the name under each icon, as on the phone, and the Plico's
   icon in place of the shrunken wordmark. */
@media(min-width:850px) and (max-width:1023px) {
  .app-layout.in-app { --rail:88px; }
  .in-app > .bottom-nav { padding-inline:8px; }
  .in-app > .bottom-nav .nav-item { flex-direction:column; gap:3px; min-height:72px; padding:8px 2px 6px; font-size:12px; line-height:1.2; }
  .in-app > .bottom-nav .nav-item:has(> .nav-ic) { padding-block:8px 6px; }
  .in-app > .bottom-nav .nav-item::after { content:none; }
  .in-app > .bottom-nav .side-wordmark .brand-pair { display:none; }
  .in-app > .bottom-nav .side-mark { display:block; width:52px; height:52px; border-radius:16px; }
}
/* The top bar's lupa and bell, drawn (menu-icons.js drawTool). */
.tool-ic { display:flex; align-items:center; justify-content:center; width:28px; height:28px; margin:auto; }
.tool-ic > .tool-art { display:block; width:100%; height:100%; overflow:visible; }
:root[data-theme="noite"] .tool-art { filter:drop-shadow(0 0 .6px #f4efffb3) drop-shadow(0 0 .6px #f4efffb3); }
/* Search in «O que vai sair?»: the lupa filled while the field is open; one border that turns purple on focus; one ×,
   in the screen's purple, inside the field (the browser's own × is hidden); air above the count line; the marked
   topics in their own group. */
.test-topic-lupa[aria-expanded="true"] { background:var(--primary); box-shadow:0 2px 0 color-mix(in srgb,var(--primary) 60%,#000); }
.test-topic-find { gap:10px; }
.test-topic-box { position:relative; gap:0; }
.test-topic-box input { padding-right:56px; }
.test-topic-box input::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; display:none; }
.test-topic-box input:focus-visible { outline:none; border-color:var(--primary); box-shadow:inset 0 0 0 1px var(--primary); }
.test-topic-clear { position:absolute; top:50%; right:6px; transform:translateY(-50%); display:flex; align-items:center; justify-content:center;
  width:44px; min-width:44px; min-height:44px; padding:0; border:0; border-radius:12px; background:transparent; box-shadow:none; color:var(--primary); }
.test-topic-clear[hidden] { display:none; }
.test-topic-x { display:flex; font-size:18px; font-weight:800; line-height:1; }
.test-topic-x > svg { width:22px; height:22px; }
@media(hover:hover) { .test-topic-clear:hover { background:var(--soft); } }
.test-topic-clear:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.test-topic-status { margin:0; }
/* Round 2: the hint and the count at body size, like the topics. */
.test-topic-hint,.test-topic-status { font-size:1em; }
.test-topic-marked[hidden] { display:none; }
.test-topic-marked { gap:8px; }
.test-topic-group { margin:0; font-size:15px; color:var(--primary); }
/* Earlier years (round 4, João 20 Nov 12:49): one chip, the year before, at its own width; pressed while that year's
   topics are open. */
.test-years { display:flex; flex-wrap:nowrap; gap:8px; }
.test-years > .btn { flex:0 0 auto; min-width:140px; padding-inline:20px; white-space:nowrap; }
.test-years > .btn[aria-pressed="true"] { border-color:var(--primary); background:var(--primary); color:var(--card); }
/* The test kinds' emoji sit on a pale disc, the same in light and Noite («Oral» was dark purple on the dark card, «Ficha»
   pale on white). On a laptop each chip fits its words on one line. */
.test-kind .chip-emoji { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:color-mix(in srgb,var(--primary) 30%,#fff); font-size:18px; }
:root[data-theme="noite"] .test-kind .chip-emoji { background:#efe8fdeb; }
@media(min-width:850px) {
  .test-kind .chips { display:flex; flex-wrap:wrap; }
  .test-kind .chip { flex:0 0 auto; min-width:136px; }
  .test-kind .chip-text { white-space:nowrap; }
}
/* Início: one close style for the update's card and the notice line (a bare ×, 44 px to tap), its box 12 px from the card's
   outer edge on both, phone and laptop (round 2). The notice line: a solid border, the whole line opens it (the button is
   stretched over the line, the × stays above it). */
.home-note,.home-note.add { position:relative; min-height:68px; padding:11px 11px 11px 12px; }
.home-note.add { padding:10px 10px 10px 11px; border-style:solid; }
.home-note-go::after { content:""; position:absolute; inset:0; border-radius:18px; }
.home-note-go:focus-visible { outline:none; }
.home-note-go:focus-visible::after { outline:3px solid var(--primary); outline-offset:2px; }
.home-note-close { position:relative; z-index:1; }
.btn.quiet.theme-news-close { top:11px; right:11px; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:14px;
  background:transparent; box-shadow:none; color:var(--ink); font-size:15px; font-weight:700; }
@media(hover:hover) { .btn.quiet.theme-news-close:not(:disabled):hover { border:0; background:var(--card2); } }
/* At 850 to 1023 px the next step's words start at the top, as at 1280 (round 2: 38 px above the chip at 900). */
@media(min-width:850px) and (max-width:1023px) {
  .home-next .continue-head { align-items:flex-start; }
  .home-next > .home-next-eyebrow { margin-bottom:6px; }
}
/* icons-search-home end */
/* number-pad start (20 Nov; João, 10:05 to 10:12: no «↵», no «.», thousands grouped as typed, a calculator key where a real test allows
   one; and the independent read of the 19 Nov stills, Agency docs/_reviews/OEXPLICA_PLAYER_READ_2026-11-20.md). After one-screen. */
/* «Verificar» before an answer is chosen, in Noite: the Noite ink of the filled button (#251535) won over the quiet colours by
   specificity and read 1.36:1 on --soft (Agency docs/_previews/oexplica-interactive-2026-11-20/BUILD_NOTES.md). */
:root[data-theme="noite"] .btn.cta.one-go[data-wait="true"] { color:var(--primary); }
/* The number pad is one grid: «⌫» takes the corner «↵» left (two rows tall). */
.answer-pad-number { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.answer-pad-number .pad-row { display:contents; }
.answer-pad-number .pad-key[data-act="back"] { grid-column:4; grid-row:3 / span 2; font-size:26px; }
/* João, 20 Nov 13:33: "0 generally stays under the 8": «0» in the 8's column, «,» beside it, the calculator bottom left (else empty). */
.answer-pad-number .pad-key[aria-label="0"] { grid-column:2; grid-row:4; }
.answer-pad-number .pad-key[aria-label="vírgula"] { grid-column:3; grid-row:4; }
.answer-pad-number .pad-key[data-act="calc"] { grid-column:1; grid-row:4; }
.pad-calc { display:inline-grid; place-items:center; }
.pad-calc svg { width:26px; height:26px; stroke-width:2; }
/* Exponent mode (reader MINOR 12): the digit raised at a readable size, and the key that started it pressed. */
.pad-up { display:inline-block; font-size:17px; transform:translateY(-7px); }
.answer-pad-maths .pad-key.pad-on { background:var(--primary); color:var(--card); border-color:var(--primary); }
:root[data-theme="noite"] .answer-pad-maths .pad-key.pad-on { color:#251535; }
/* Key labels keep 12 px from the key's edges at 360 (reader MINORs 9 and 10). */
.answer-pad-maths .pad-key .pad-more { font-size:16px; letter-spacing:-.02em; }
.answer-pad-maths .pad-key .pad-ten { font-size:15px; font-weight:600; letter-spacing:-.03em; }
/* «abc» open: «123» joins the row of «Dica» and «Verificar» (reader MINOR 8), first, where «abc» was. */
.one-act > .answer-pad[data-mode="letters"] { flex:none; order:-1; }
.answer-pad[data-mode="letters"] .pad-row-letters .pad-key { min-width:64px; min-height:58px; border-radius:18px; }
/* The bottom key row clear of a phone's home bar (reader MINOR 11). */
.one-act.has-pad { padding-bottom:max(16px,calc(8px + env(safe-area-inset-bottom,0px))); }
/* A sentence box grows with what the child writes, up to five lines (reader MAJOR 5; player.js adds rows where field-sizing is missing). */
.one-ex textarea.answer-text { field-sizing:content; max-height:150px; }
@media(max-width:849px) {
  /* One question size and one box size in every keyboard state on a phone (reader MINOR 6). */
  html.kb-open .one-ex .ex-qtext, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex .ex-qtext { font-size:20px; }
  /* «A tua resposta» in every state (reader MINOR 7): the short-phone rule no longer hides it. */
  html.kb-open:not(.kb-over) .one-ex .ex-form > label { position:static; width:auto; height:auto; margin:0; overflow:visible; clip-path:none; white-space:normal; }
  html.kb-open:not(.kb-over) .one-ex .ex-form > label, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex .ex-form > label { font-size:14px; line-height:1.2; }
  html.kb-open:not(.kb-over) .one-ex .ex-form, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex .ex-form { gap:4px; }
  /* The story above a long question: its last line stays in view, faded, so the child sees there is text above (reader MAJOR 4);
     the fade is a whole line long, so a cut line is never read as broken letters (reader MINOR 13). */
  html.kb-open:not(.kb-over) .one-screen .one-ex > .one-q, .one-screen:has(.one-act.has-pad):not(:has(.answer-pad[data-mode="letters"])) .one-ex > .one-q { min-height:72px; }
  .one-ex .one-q .exercise-text.q-more, html.kb-open .one-ex .one-q .exercise-text.q-more { -webkit-mask-image:linear-gradient(to bottom,transparent 0,transparent 4px,#0006 22px,#000 40px); mask-image:linear-gradient(to bottom,transparent 0,transparent 4px,#0006 22px,#000 40px); }
}
/* The first story line in view is whole (player.js showLastLines): the text box starts a few px lower. */
.one-q .exercise-text.q-trim-3 { margin-top:3px; } .one-q .exercise-text.q-trim-6 { margin-top:6px; } .one-q .exercise-text.q-trim-9 { margin-top:9px; } .one-q .exercise-text.q-trim-12 { margin-top:12px; } .one-q .exercise-text.q-trim-15 { margin-top:15px; } .one-q .exercise-text.q-trim-18 { margin-top:18px; } .one-q .exercise-text.q-trim-21 { margin-top:21px; } .one-q .exercise-text.q-trim-24 { margin-top:24px; } .one-q .exercise-text.q-trim-27 { margin-top:27px; }
@media(max-height:700px) {
  /* A short phone with the keys up: the box grows to three whole lines (two on the smallest), then scrolls inside, so «Verificar»
     stays above the keys. 25.5 px a line, 26 px of padding, 4 px of border. */
  html.kb-open:not(.kb-over) .one-ex textarea.answer-text { min-height:44px; max-height:107px; }
}
@media(max-height:520px) { html.kb-open:not(.kb-over) .one-ex textarea.answer-text { max-height:81px; } }
/* The ⚙ glyph sat 2.5 px high in its circle (João, 20 Nov 13:33: "the wheel isn't centered btw"): its inline wrapper took the
   line's baseline room. Centred as a block (measured: work/number-pad-2026-11-20/out-round/). */
.one-gear .one-gear-icon { display:grid; place-items:center; }
.one-gear svg { display:block; }
/* number-pad end */
/* sidebar start (João, 20 Nov 2026 12:52, on the stills Agency/docs/_previews/oexplica-shell-2026-11-20/1-barra: "Its
   perfect, love it ... the side bar is just perfect"; 12:49: "The pc sidebar is perfect"). The laptop rail as drawn:
   850 to 1023 px a 96 px rail with the name under each icon; from 1024 px a 240 px rail (256 from 1440) with the icon and
   the name side by side at the top, the tabs with their names, and «O teu dia» at the foot (core.js sideDay). Every
   rule is 850 px or wider, so the phone keeps its pixels. Theme colours only; the round frame of the boneco is sized by
   --side-medal-size and its contents placed by menu-icons.js medalPlacement (the centring rule drops in there). */
@media(min-width:850px) {
  .app-layout.in-app { --side-medal-size:96px; --side-brand-ink:#123f4a; --side-panel:color-mix(in srgb,var(--soft) 40%,var(--card)); --side-ring:color-mix(in srgb,var(--primary) 30%,transparent); }
  :root[data-theme="noite"] .app-layout.in-app { --side-brand-ink:var(--ink); --side-ring:color-mix(in srgb,var(--primary) 35%,transparent); }
  .in-app > .bottom-nav { gap:6px; }
  .in-app > .bottom-nav > .side-wordmark { min-height:88px; margin-bottom:-6px; }  /* 88 px to the first tab, as drawn: the rail gap does not apply after it */
  .in-app > .bottom-nav .side-word,.in-app > .bottom-nav > .side-day { display:none; }
  .in-app > .bottom-nav .nav-item,.in-app > .bottom-nav .nav-item:has(> .nav-ic) { border-radius:16px; font-weight:500; }
  .in-app > .bottom-nav .nav-item.active { font-weight:700; }
}
@media(min-width:850px) and (max-width:1023px) {
  .app-layout.in-app { --rail:96px; }
  .in-app > .bottom-nav { padding:0 8px 16px; }
  .in-app > .bottom-nav .side-mark { width:44px; height:44px; border-radius:11px; box-shadow:0 2px 6px #4a288533; }
  .in-app > .bottom-nav .nav-item,.in-app > .bottom-nav .nav-item:has(> .nav-ic) { gap:4px; min-height:78px; padding:8px 4px; font-size:13px; line-height:1.2; }
}
@media(min-width:1024px) {
  .app-layout.in-app { --rail:240px; }
  .in-app > .bottom-nav { padding:0 16px 20px; overflow-y:auto; }
  .in-app > .bottom-nav > .side-wordmark { justify-content:flex-start; flex-wrap:wrap; gap:12px; padding-left:12px; }
  .in-app > .bottom-nav .side-mark { display:block; width:40px; height:40px; border-radius:10px; box-shadow:0 2px 6px #4a288533; }
  /* The name in the theme's ink (Noite: the light ink, not the cream file), from the wordmark's own shape. */
  .in-app > .bottom-nav .side-word { display:block; flex:none; width:108px; height:24px; background:var(--side-brand-ink);
    -webkit-mask:url(/brand/wordmark.svg) -1.4px -1.7px / 111.4px 27.8px no-repeat; mask:url(/brand/wordmark.svg) -1.4px -1.7px / 111.4px 27.8px no-repeat; }
  .in-app > .bottom-nav .side-wordmark .brand { display:none; }
  .in-app > .bottom-nav .nav-item,.in-app > .bottom-nav .nav-item:has(> .nav-ic) { gap:14px; min-height:56px; padding:8px 14px; font-size:16px; }
  /* «O teu dia» */
  .in-app > .bottom-nav > .side-day { display:flex; flex-direction:column; gap:4px; flex:none; margin-top:auto; padding:12px 10px 10px; border-radius:22px; background:var(--side-panel); }
  .side-day-me { display:flex; flex-direction:column; align-items:center; gap:10px; width:100%; padding:6px 0; border:0; border-radius:16px; background:none; color:var(--ink); font:inherit; cursor:pointer; }
  .side-day-medal { display:block; flex:none; width:var(--side-medal-size); height:var(--side-medal-size); border-radius:50%; overflow:hidden; background:var(--soft); box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--side-ring); }
  .side-day-medal > .medal-art { display:block; width:100%; height:100%; }
  .side-day-today { font-size:15px; line-height:1.5; color:var(--ink); }
  .side-day-today b { font-weight:700; }
  .side-day-week { display:grid; grid-template-columns:repeat(7,22px); justify-content:center; gap:5px; margin:4px 0 8px; }
  .side-day-d { display:flex; flex-direction:column; align-items:center; gap:3px; font-size:12px; font-weight:600; line-height:1; color:var(--muted); }
  .side-day-mk { display:grid; place-items:center; width:22px; height:22px; border:2px dashed var(--line); border-radius:50%; font-size:11px; font-weight:800; color:var(--cta-ink); }
  .side-day-d.on .side-day-mk { border:0; background:var(--cta); }
  .side-day-d.today .side-day-mk { outline:2px solid var(--primary); outline-offset:1px; }
  .side-day-row { display:flex; align-items:center; gap:12px; width:100%; min-height:60px; padding:8px 10px; border:0; border-radius:16px; background:none; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
  .side-day-art { display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:12px; background:#f3ecfd; }
  .side-day-art > svg { display:block; width:34px; height:34px; overflow:visible; }
  .side-day-cal { display:flex; flex-direction:column; justify-content:center; line-height:1; color:#5a2ea6; }
  .side-day-cal b { font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:17px; font-weight:600; }
  .side-day-cal small { font-size:11px; font-weight:700; }
  .side-day-txt { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
  .side-day-txt strong { font-size:15px; font-weight:700; color:var(--ink); }
  .side-day-txt > span { font-size:14px; color:var(--muted); }
  .side-day-txt > span b { font-weight:700; color:var(--ink); }
  .side-day-me:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }  /* clear of the frame's ring, the week and the panel's edges */
  .side-day-row:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
  .side-day :is(.side-day-me,.side-day-row):active { opacity:.6; }
}
@media(hover:hover) and (min-width:1024px) { .side-day-row:hover { background:var(--card); } }
/* The boneco moves from the greeting to the rail (once on Início), unless the window is too short for it there. */
@media(min-width:1024px) and (min-height:760px) {
  .in-app:has(> .bottom-nav > .side-day) .greeting > :is(.wardrobe-own-avatar,.wardrobe-emoji) { display:none; }
}
@media(min-width:1024px) and (max-height:759px) {
  .side-day-medal { display:none; }
  .side-day-me:not(:has(.side-day-today)) { display:none; }
}
@media(min-width:1440px) and (max-width:2199px) { .app-layout.in-app { --rail:256px; } }
/* sidebar end */
/* 22a (copy sweep): a parent's view of a profile: a small tag with the name and «Voltar à família», no sentence. */
.preview-tag { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin:8px 16px 0; }
.preview-tag .btn { min-height:44px; }
/* 22a: «A conta foi apagada», alone on its screen. */
.deleted-done { text-align:center; margin-top:18vh; }
/* 22a: «Novidades» as blocks: the title, version and day; a tap opens what changed. */
.news-block > summary { list-style:none; cursor:pointer; min-height:44px; display:flex; flex-direction:column; gap:2px; padding-right:28px; position:relative; }
.news-block > summary::-webkit-details-marker { display:none; }
.news-block > summary::after { content:'▸'; position:absolute; right:4px; top:4px; color:var(--muted, #888); }
.news-block[open] > summary::after { content:'▾'; }
.news-block > summary h2 { margin:0; }

/* jogar-amigos-2026-11-24 start (João 24 Nov 2026: Jogar 1-4 players + Amigos clean with topbar gear & instant on/off toggles).
   20261125a: carried from AG's 24a onto 23d (LF), with the review's fixes: m3 the switch is a 44 px target, M9 and m4 the
   one-row theme picker with a marked choice, M10 the timer is a <progress> (no inline style). */
.jogar-test-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.jogar-test-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.mini-label { font-size:12.5px; font-weight:700; color:var(--muted); }   /* the sheet writes it as a sentence */
.jogar-invite { display:flex; flex-direction:column; gap:12px; }
.jogar-inv-head { display:flex; align-items:center; gap:12px; }
.jogar-inv-head > div { min-width:0; overflow-wrap:anywhere; }
.jogar-inv-av { font-size:32px; line-height:1; flex:none; }
.jogar-inv-acts { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.jogar-mode-t { font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:22px; font-weight:700; color:var(--ink); }
.jogar-ways { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.jogar-way { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:12px; border-radius:18px; border:1px solid var(--line); background:rgba(255,255,255,.88); color:var(--ink); font:inherit; text-align:left; cursor:pointer; box-shadow:0 2px 8px rgba(24,20,40,.06); }
:root[data-theme="noite"] .jogar-way { background:rgba(25,22,42,.86); }
.jogar-way strong { font-size:15px; line-height:1.2; }
.jogar-way small { font-size:12.5px; color:var(--muted); line-height:1.25; }
.jogar-wi { font-size:20px; line-height:1; }
.jogar-plico { width:72px; height:72px; object-fit:contain; }
.jogar-pick { display:flex; align-items:center; gap:10px; width:100%; min-height:52px; padding:12px 16px; border-radius:18px; border:1px solid var(--line); background:var(--card); color:var(--ink); font:inherit; font-weight:700; text-align:left; cursor:pointer; box-shadow:var(--shadow); }
.jogar-pick-ic { font-size:20px; line-height:1; flex:none; }
.jogar-pick-v { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jogar-pick-chev { flex:none; font-size:22px; line-height:1; color:var(--primary); transition:transform 160ms ease; }
.jogar-pick[aria-expanded="true"] .jogar-pick-chev { transform:rotate(90deg); }
.jogar-themes { display:flex; flex-direction:column; gap:6px; }
.jogar-opt-theme { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px 14px; border-radius:14px; border:2px solid var(--line); background:var(--card); color:var(--ink); font:inherit; font-weight:600; text-align:left; cursor:pointer; }
.jogar-opt-theme.on { border-color:var(--primary); background:var(--soft); font-weight:800; }
.jogar-opt-theme.on::after { content:"✓"; margin-left:auto; color:var(--primary); font-weight:800; }
.jogar-faces { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.jogar-face { display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 6px; border-radius:18px; border:2px solid var(--line); background:var(--card); color:var(--ink); font:inherit; text-align:center; cursor:pointer; }
.jogar-face.in { border-color:var(--primary); background:var(--soft); }
.jogar-face.sent { border-color:var(--primary); border-style:dashed; }
.jogar-face.new { border-style:dashed; color:var(--muted); }
.jogar-av { font-size:28px; line-height:1; }
.jogar-fn { font-size:12.5px; font-weight:700; line-height:1.2; max-width:100%; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.jogar-st { font-size:11px; color:var(--muted); min-height:14px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jogar-q { font-size:19px; font-weight:700; line-height:1.4; margin:0 0 12px; }
.jogar-opt { justify-content:flex-start; text-align:left; font-weight:600; }
.jogar-opt-ok.jogar-opt-ok { background:#dcf5e8; color:#145c3a; border:2px solid #2f9b77; opacity:1; }
.jogar-opt-no.jogar-opt-no { background:#ffe4ea; color:#8a1f3d; border:2px solid #d84a6b; opacity:1; }
:root[data-theme="noite"] .jogar-opt-ok.jogar-opt-ok { background:#184231; color:#b8f5d6; border:2px solid #3ec995; }
:root[data-theme="noite"] .jogar-opt-no.jogar-opt-no { background:#45202c; color:#ffc2d1; border:2px solid #e06c88; }
.jogar-score-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px; border-radius:12px; background:var(--card2); }
.jogar-score-row.me { font-weight:800; }
/* 20261127b (João, 27 Nov 19:38: "not centered"): on a computer #screen > p keeps 70ch from the left; the line sits on
   the card's and the Plico's axis */
.amigos-who,.in-app #screen > p.amigos-who { text-align:center; margin-left:auto; margin-right:auto; }
/* 20261127b (B5b): «Pedir ao meu encarregado» under the line, on the same axis, no wider than the card */
.amigos-ask { width:100%; max-width:420px; margin:0 auto; }
.amigos-ask .amigos-who { margin:0; }
/* with the button the off screen still fits 390x664: the Plico and the gaps around it shrink first */
#screen:has(.amigos-ask) .amigos-plico { max-height:112px; margin:0 auto; }
#screen:has(.amigos-ask) > .amigos-who { margin-top:0; margin-bottom:0; }
.jogar-continue { flex-direction:column; align-items:flex-start; gap:2px; text-align:left; }
.jogar-continue small { font-weight:600; opacity:.85; }
/* Amigos redesign + instant On/Off toggles */
.amigos-list { display:flex; flex-direction:column; gap:0; padding:6px 14px; }
.amigos-item { display:flex; align-items:center; gap:12px; padding:12px 2px; border-bottom:1px solid var(--line); }
.amigos-item:last-child { border-bottom:0; }
.amigos-ico { font-size:24px; line-height:1; flex:none; }
.amigos-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.amigos-copy strong { font-size:15.5px; color:var(--ink); line-height:1.25; }
.amigos-copy small { font-size:13px; color:var(--muted); line-height:1.3; }
.amigos-plico { display:block; max-height:138px; width:auto; margin:12px auto 6px; object-fit:contain; }
.amigos-card-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.amigos-card-head h2 { margin:0; }
.toggle-list { display:flex; flex-direction:column; gap:10px; }
.toggle-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 16px; border-radius:18px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); }
.toggle-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.toggle-copy strong { font-size:15.5px; color:var(--ink); line-height:1.25; }
.toggle-copy small { font-size:13px; color:var(--muted); line-height:1.3; }
.sw-btn { position:relative; flex:none; width:58px; height:44px; padding:0; border:0; border-radius:999px; background:transparent; cursor:pointer; }
.sw-btn::before { content:""; position:absolute; top:7px; left:4px; width:50px; height:30px; border-radius:999px; background:#cfc8de; transition:background 180ms ease; }
:root[data-theme="noite"] .sw-btn::before { background:#3a3352; }
.sw-btn::after { content:""; position:absolute; top:10px; left:7px; width:24px; height:24px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.22); transition:transform 180ms ease; }
.sw-btn.on::before { background:var(--primary); }
:root[data-theme="noite"] .sw-btn.on::before { background:#7e57c2; }
.sw-btn.on::after { transform:translateX(20px); }
.sw-btn:disabled,.sw-btn.locked { opacity:.5; cursor:default; }
.sw-btn:focus-visible { outline:3px solid var(--primary); outline-offset:1px; }
@media (prefers-reduced-motion: reduce) { .sw-btn::before,.sw-btn::after,.jogar-pick-chev { transition:none; } }
/* jogar-amigos-2026-11-24 end */
/* 20261125a round 2 (João, 25 Nov 15:56) */
.jogar-praise { margin:2px 0 0; font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:18px; font-weight:700; color:var(--primary); text-align:center; }
.jogar-face[aria-pressed="true"] { border-style:solid; box-shadow:0 0 0 3px var(--soft); }
.friend-list { display:flex; flex-direction:column; gap:8px; }
.friend-item { display:flex; flex-direction:column; gap:8px; }
.friend-row { display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:10px 14px; border-radius:18px; border:1px solid var(--line); background:var(--card); color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.friend-row.open { border-color:var(--primary); background:var(--soft); }
.friend-row:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.friend-av { font-size:26px; line-height:1; flex:none; }
.friend-name { flex:1; min-width:0; font-weight:700; overflow-wrap:anywhere; }
.friend-alias { display:block; font-size:12px; font-weight:600; color:var(--muted); }
.friend-state { font-size:12px; color:var(--muted); font-weight:700; }
.friend-chev { flex:none; color:var(--primary); font-weight:800; transition:transform .15s ease; }
.friend-row.open .friend-chev { transform:rotate(90deg); }
.friend-panel:empty { display:none; }
.friend-panel { padding:0 4px 6px; }
.friend-profile { display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:18px; background:var(--card2,var(--card)); border:1px solid var(--line); }
.friend-profile-av { font-size:40px; line-height:1; }
.sharing-short { margin:0; padding-left:20px; display:flex; flex-direction:column; gap:6px; line-height:1.4; }
@media (prefers-reduced-motion: reduce) { .friend-chev { transition:none; } }
/* 20261125a round 2 end */
/* 20261125a round 3 (João, 25 Nov 16:49) */
.jogar-face.new,.jogar-face.wait,.jogar-face.empty { justify-content:center; min-height:96px; }
.jogar-face.new .jogar-st { display:none; }
.jogar-face.wait,.jogar-face.empty { border-style:dashed; cursor:default; color:var(--muted); }
.jogar-dots { display:flex; gap:5px; align-items:center; justify-content:center; height:28px; }
.jogar-dots i { width:7px; height:7px; border-radius:50%; background:var(--primary); opacity:.35; animation:jogar-dot 1.2s ease-in-out infinite; }
.jogar-dots i:nth-child(2) { animation-delay:.2s; }
.jogar-dots i:nth-child(3) { animation-delay:.4s; }
@keyframes jogar-dot { 0%,100% { opacity:.25; transform:translateY(0); } 50% { opacity:.9; transform:translateY(-3px); } }
.jogar-searching { margin:0; text-align:center; font-weight:700; }
.friend-item { position:relative; }
.friend-row.static { cursor:default; }
.friend-layer:empty { display:none; }
.friend-backdrop { position:fixed; inset:0; z-index:60; margin:0; padding:0; border:0; background:rgba(30,20,60,.08); cursor:default; }
.friend-menu { position:absolute; z-index:61; top:calc(100% + 6px); left:0; width:min(360px,100%); padding:14px; border-radius:20px; border:1px solid var(--line); background:var(--card); box-shadow:0 18px 44px rgba(40,20,90,.22); }
.friend-menu .btn,.friend-menu summary { min-height:44px; }
.friend-menu-head { display:flex; align-items:center; gap:10px; padding:2px 2px 6px; }
.friend-menu-head strong { font-size:16px; }
@media (max-width:719px) {
  .friend-backdrop { background:rgba(30,20,60,.32); }
  .friend-menu { position:fixed; top:auto; left:0; right:0; bottom:0; width:auto; max-height:80vh; overflow:auto; padding:16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; }
}
.invite-family { display:flex; align-items:center; gap:12px; background:linear-gradient(135deg,#ffe3ee 0%,#ece3ff 55%,#dcf6ec 100%); border:0; }
:root[data-theme="noite"] .invite-family { background:linear-gradient(135deg,#3b2140 0%,#2c2550 55%,#1d3a33 100%); }
.invite-family-copy { display:flex; flex-direction:column; align-items:flex-start; gap:6px; flex:1; min-width:0; }
.invite-family-copy h2 { margin:0; }
.invite-family-copy p { margin:0; }
.invite-family-art { flex:none; width:72px; height:72px; object-fit:contain; }
.amigos-family { text-align:center; }
@media (prefers-reduced-motion: reduce) { .jogar-dots i { animation:none; opacity:.6; } }
/* 20261125a round 3 end */

/* jogar-fit start (20261127a: João, 26 Nov 17:05 and 17:08, the approved stills of Agency work/oexplica-next-fit-2026-11-26,
   stills/proposed.css as he saw it on VER-390.png; then what the build needs beyond the stills, below it). */
/* (a) Result: one card, Plico beside the score, a compact list, one button. Nothing scrolls with 2 to 4 players. */
.jogar-result { display:flex; flex-direction:column; gap:12px; }
.jogar-result-card { padding:14px 16px; gap:10px; }
.jogar-result-head { display:flex; flex-direction:column; align-items:center; gap:2px; text-align:center; }
.jogar-result-head h1 { font-size:26px; }
.jogar-result-plico { display:block; margin:0 auto; width:64px; height:64px; object-fit:contain; flex:none; }
.jogar-result .jogar-scores { margin:0; gap:6px; }
.jogar-result .jogar-score-row { min-height:38px; padding:5px 12px; }
.jogar-result .jogar-score-row.me { background:var(--soft); box-shadow:inset 0 0 0 2px var(--primary); }
.jogar-score-who { display:flex; align-items:center; gap:8px; min-width:0; }
.jogar-score-who > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jogar-score-av { font-size:20px; line-height:1; flex:none; }
.jogar-result .btn.cta { min-height:52px; }

/* (b1) Jogar: two entries, nothing else on top. */
.jogar-home { gap:12px; }
.jogar-entry { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:136px; padding:16px 16px 16px 22px; border-radius:24px; border:1px solid var(--line); text-align:left; font:inherit; color:var(--ink); box-shadow:var(--shadow); cursor:pointer; }
.jogar-entry.qsm { background:linear-gradient(145deg,#f8d8ee 0%,#d7c7fb 58%,#beeae1 100%); }
.jogar-entry.ras { background:linear-gradient(135deg,#ffd6a5 0%,#ffc2d6 55%,#a8e6cf 100%); }
.jogar-entry-copy { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; }
.jogar-entry .jogar-plico { width:100px; height:100px; }
.jogar-entry .jogar-mode-t { font-size:24px; line-height:1.2; text-wrap:balance; }
.jogar-agenda { gap:8px; }

/* (b2) Lobby: seats, «Encontrar jogadores», the settings, «Começar». */
.jogar-lobby { gap:12px; }
.jogar-lobby .jogar-faces { gap:8px; }
.jogar-lobby .jogar-face { min-height:88px; justify-content:center; padding:8px 4px; }
.jogar-lobby .jogar-face.new { color:var(--primary); }
.jogar-lobby .jogar-face.new .jogar-av { font-size:26px; font-weight:800; }
.jogar-find { min-height:48px; }
/* 20261127b (B4): the topic row joins the subject's; gaps shrink first so the lobby still fits 390x664 */
.jogar-settings { padding:12px 14px; gap:8px; }
.jogar-set-row { display:flex; flex-direction:column; gap:6px; }
.jogar-set-label { font-size:13px; font-weight:700; color:var(--muted); }
.jogar-settings .jogar-pick { min-height:44px; padding:8px 14px; box-shadow:none; }
.jogar-pick.is-locked { cursor:default; color:var(--muted); }   /* fix round 27b: among other years, no picker */
.jogar-topic-note { margin:0; text-align:center; font-size:12.5px; line-height:1.25; }
/* the locked row is not a control: shorter than a tap target, so the lobby with its line still fits 390x664 and 360x560 */
.jogar-settings .jogar-pick.is-locked { min-height:34px; padding:4px 14px; }
.jogar-settings:has(.is-locked) { gap:6px; padding-block:10px; }
.jogar-settings:has(.is-locked) .jogar-set-row { gap:4px; }
.jogar-lobby:has(.is-locked) { gap:8px; }
.jogar-chips { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; padding:4px; border-radius:16px; background:var(--soft); }
.jogar-chip { min-height:44px; padding:6px 4px; border:0; border-radius:12px; background:transparent; color:var(--muted); font:inherit; font-size:15px; font-weight:700; white-space:nowrap; cursor:pointer; }
.jogar-chip[aria-checked="true"] { background:var(--card); color:var(--ink); box-shadow:var(--shadow); }
.jogar-lobby .btn.giant { min-height:60px; font-size:20px; }

/* (c) Question: no mode title; the question number and the time beside the arrow; no menu during a round. */
.topbar.jogar-top { display:grid; grid-template-columns:84px 1fr 84px; align-items:center; }
.topbar.jogar-top .back-button { justify-self:start; }
.topbar.jogar-top .topbar-end, .topbar.jogar-top .jogar-clock { justify-self:end; }
.jogar-clock { display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 12px; border-radius:999px; background:var(--card); border:2px solid var(--primary); color:var(--primary); white-space:nowrap; font-weight:800; font-size:15px; font-variant-numeric:tabular-nums; }
.jogar-round { gap:12px; }
.jogar-round .jogar-q { font-size:18px; line-height:1.35; margin:0; }
.jogar-round .jogar-opt { min-height:48px; padding:10px 14px; font-size:15px; line-height:1.3; border-radius:15px; }

/* (d) After answering: who picked what, then 20 s of explanation with «Saltar». */
.jogar-opt-wrap { display:flex; flex-direction:column; gap:4px; }
.jogar-opt.jogar-opt-ok, .jogar-opt.jogar-opt-no { justify-content:space-between; gap:10px; }
.jogar-pickers { display:inline-flex; gap:2px; font-size:18px; line-height:1; flex:none; }
/* Fix round (Codex M9): picks on the other options, one compact line under the two kept ones. */
/* Fix round 2: always one line (two or three picks share it, each cut short), so the explanation's fit never depends on
   how O Explica's players happened to pick. */
.jogar-other-picks { display:flex; flex-wrap:nowrap; gap:14px; margin:0; padding-inline:4px; font-size:13px; line-height:1.3; color:var(--muted); overflow:hidden; }
.jogar-other { display:inline-flex; align-items:center; gap:6px; min-width:0; flex:0 1 auto; }
.jogar-other .jogar-pickers { font-size:15px; }
.jogar-other-t { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jogar-explain { position:fixed; left:0; right:0; bottom:0; z-index:31; max-width:640px; margin:0 auto; display:flex; flex-direction:column; gap:10px; padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px)); border-radius:24px 24px 0 0; border-top:2px solid; box-shadow:none; }
.jogar-explain.hint { background:var(--hint); color:var(--hint-ink); border-color:color-mix(in srgb,var(--hint-ink) 30%,var(--hint)); }
.jogar-explain.good { background:var(--good); color:var(--good-ink); border-color:color-mix(in srgb,var(--good-ink) 30%,var(--good)); }
.jogar-explain-title { font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:19px; }
.jogar-explain p { margin:0; font-size:16px; line-height:1.45; }
.jogar-skip-row { display:flex; align-items:center; gap:12px; }
.jogar-skip-row .btn { flex:1; min-height:52px; }
.jogar-skipped { display:flex; gap:4px; flex:none; }
.jogar-skipped span { position:relative; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--card); font-size:18px; opacity:.5; }
.jogar-skipped span.on { opacity:1; }
.jogar-skipped span.on::after { content:"✓"; position:absolute; right:-4px; bottom:-4px; width:17px; height:17px; display:grid; place-items:center; border-radius:50%; background:#2f9b77; color:#fff; font-size:11px; font-weight:900; }
.jogar-skip { position:relative; overflow:hidden; }
.jogar-skip-bar { position:absolute; left:0; bottom:0; width:100%; height:6px; border:0; -webkit-appearance:none; appearance:none; background:transparent; }
.jogar-skip-bar::-webkit-progress-bar { background:rgba(255,255,255,.45); }
.jogar-skip-bar::-webkit-progress-value { background:var(--primary); }
.jogar-skip-bar::-moz-progress-bar { background:var(--primary); }
.jogar-round-answered { padding-bottom:210px; }

/* Short screens (a phone with both browser bars, 360x560): the lobby keeps everything in view. */
@media (max-width:600px) and (max-height:600px) {
  /* Every screen: a shorter top bar and less padding above the menu (each saves height a phone with two bars lacks). */
  .topbar { min-height:60px; padding-block:4px; }
  .topbar .back-button, .topbar .topbar-action { width:48px; height:48px; min-height:48px; }
  .screen { padding-top:6px; padding-bottom:16px; }
  .app-layout > .bottom-nav { margin-top:6px; }
  .jogar-lobby { gap:10px; }
  .jogar-lobby .jogar-face { min-height:76px; gap:2px; }
  .jogar-lobby .jogar-av { font-size:24px; }
  .jogar-find { min-height:44px; }
  .jogar-settings { padding:12px 14px; gap:8px; }
  .jogar-chip { min-height:40px; }
  .jogar-settings .jogar-pick { min-height:44px; padding:8px 14px; }
  .jogar-lobby .btn.giant { min-height:52px; font-size:19px; }
  /* 20261127b (B4): with the topic row the lobby still fits 360x560: gaps first, then the seats a little shorter */
  .jogar-lobby:has(.jogar-pick-topic) { gap:4px; }
  .jogar-lobby:has(.jogar-pick-topic) .jogar-face { min-height:62px; }
  .jogar-settings:has(.jogar-pick-topic) { padding:6px 10px; gap:6px; }
  .jogar-settings:has(.jogar-pick-topic) .jogar-set-row { gap:4px; }
  .jogar-settings:has(.jogar-pick-topic) .jogar-set-label { font-size:12px; line-height:1.15; }
  .jogar-lobby:has(.jogar-pick-topic) .btn.giant { min-height:48px; }
  .jogar-settings .jogar-pick.is-locked { min-height:28px; padding:2px 12px; }   /* fix round 27b: the locked row */
  .jogar-topic-note { font-size:12px; line-height:1.2; }
}

/* Read 2 (3): the block sits in the middle of the space between the top bar and the menu (or the sheet), not glued to the top. */
.screen:has(> .jogar-home), .screen:has(> .jogar-result), .screen:has(> .jogar-lobby), .screen:has(> .jogar-round) { justify-content:center; }
.jogar-lobby .jogar-av.jogar-add { font-size:24px; }
.jogar-find { gap:8px; }
.jogar-lobby .jogar-av.jogar-add { position:relative; }
.jogar-lobby .jogar-av.jogar-add::after { content:"+"; position:absolute; right:-9px; top:-6px; width:18px; height:18px; display:grid; place-items:center; border-radius:50%; background:var(--primary); color:#fff; font-size:14px; font-weight:900; line-height:1; }
/* Beyond the stills: the night theme of the two entries, the round without the bottom menu (as a lesson), the pick
   kept marked while others answer, who answered, the guest's settings line. */
:root[data-theme="noite"] .jogar-entry.qsm { background:linear-gradient(145deg,#352447 0%,#262c4a 60%,#1e3a3d 100%); }
:root[data-theme="noite"] .jogar-entry.ras { background:linear-gradient(135deg,#433022 0%,#3f2438 55%,#1f3a36 100%); }
@media(max-width:849px) { html.jogar-in-round .app-layout > .bottom-nav { display:none; } }
.jogar-opt.jogar-opt-picked { box-shadow:inset 0 0 0 2px var(--primary); }
.jogar-opt.jogar-opt-picked:disabled { opacity:1; }
.jogar-answered { justify-content:center; }
.jogar-answered span { background:var(--soft); }
.jogar-set-line { margin:0; font-weight:700; text-align:center; }
.jogar-friend-sheet { padding-top:4px; }
.jogar-explain .btn.cta:disabled { opacity:.75; }
/* Jogar with more than the two games (an invitation, «Continuar a jogar», the next test): the entries get shorter, so
   the screen still fits a phone; the agenda's two buttons share a row. */
.jogar-home.busy .jogar-entry { min-height:96px; padding-block:10px; }
.jogar-home.busy .jogar-entry .jogar-plico { width:76px; height:76px; }
.jogar-home.full .jogar-entry { min-height:68px; padding-block:4px; }
.jogar-home.full .jogar-entry .jogar-plico { width:56px; height:56px; }
.jogar-home.full .jogar-entry .jogar-mode-t { font-size:21px; }
.jogar-agenda-row { display:grid; grid-template-columns:1fr; gap:8px; }
.jogar-agenda-row.two { grid-template-columns:1fr 1fr; }
.jogar-agenda-row.two .btn { padding-inline:8px; font-size:15px; }
.jogar-home .jogar-invite { gap:8px; padding:12px 14px; }
.jogar-home .jogar-invite h2 { font-size:18px; margin:0; }
.jogar-home .jogar-inv-head p { margin:0; }
.jogar-home .jogar-invite > p { margin:0; }
.jogar-home .jogar-inv-acts .btn { min-height:44px; }
.jogar-home .jogar-continue { min-height:52px; padding-block:6px; }
.jogar-home .jogar-invite.one .jogar-inv-head > div { flex:1; }
.jogar-home .jogar-invite.one .jogar-inv-head .btn { flex:none; min-height:44px; padding-inline:14px; }
.jogar-home.full { gap:8px; }
.jogar-home.full .jogar-continue { min-height:46px; padding-block:4px; }
.jogar-home .play-next { flex-wrap:nowrap; padding:12px 14px; }
.jogar-home .play-next .play-prepare { width:auto; }
.jogar-home .play-next-subject { font-size:20px; }
@media (max-width:600px) and (max-height:600px) {
  .jogar-home.busy .jogar-entry { min-height:84px; }
  .jogar-home.busy .jogar-entry .jogar-plico { width:64px; height:64px; }
  .jogar-home.full { gap:6px; }
  .jogar-home.full .jogar-entry { min-height:50px; }
  .jogar-home .jogar-invite { padding:10px 12px; }
  .jogar-home.full .jogar-entry .jogar-plico { display:none; }
  .jogar-home.full .jogar-entry .jogar-mode-t br { display:none; }
  .jogar-home.full .jogar-entry .jogar-mode-t { font-size:20px; }
}
/* The explanation: the question and the two options stay above the sheet (top of the screen, a step smaller); on a
   short phone the question keeps two lines (it was just read). */
.screen:has(> .jogar-round-answered) { justify-content:flex-start; }
.jogar-round-answered .jogar-q { font-size:16px; }
.jogar-round-answered .jogar-opt { min-height:44px; padding-block:8px; font-size:14px; }
.jogar-explain p { font-size:15px; line-height:1.4; }
@media (max-height:600px) { .jogar-round-answered .jogar-q { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; } }
/* Desktop (fit audit defect 9, BUILD_BRIEF §11 item 8): a top bar with the round back button was 84 px in an 80 px row
   (52 px button and 16 px above and below), and the grid then sized its 1fr row as if it were 80, so every such screen
   was 4 px taller than the window. 14 px above and below keep it at 80. */
@media(min-width:850px) { .in-app > .topbar { padding-block:14px; } }
/* Trilho (fit audit L02, BUILD_BRIEF §11 item 2): on a phone the subjects sit two to a row, as Início's tiles. */
@media(max-width:849px) {
  #screen.subject-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-content:start; }
  #screen.subject-list > :not(.subject-row) { grid-column:1 / -1; }
  .subject-list .subject-row { align-items:center; justify-content:flex-start; gap:8px; min-height:60px; padding:8px 10px; }
  .subject-list .subject-row .subject-icon { font-size:24px; flex:none; }
  .subject-list .subject-row strong { font-size:15px; line-height:1.2; overflow-wrap:anywhere; }
  .subject-list .subject-row small { font-size:12px; }
}
/* jogar-fit end */
/* 20261128a start: the choice of a friend and its colour (onboarding.js choiceSteps, the 22 Nov stills escolher-personagem,
   escolher-cor and mudar-de-plico) and the colour tab of «O meu boneco» (wardrobe.js). No inline style: each colour's
   dot comes from its data-colour (CSP). */
.onb-title { flex:1; margin:0; font-size:26px; line-height:1.15; text-wrap:balance; }
.onb-picks { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.onb-picks .onb-pick { position:relative; flex-direction:column; justify-content:center; gap:2px; min-height:0; padding:8px 6px 10px; text-align:center; border-radius:22px; }
.onb-pick-art { display:flex; justify-content:center; }
.onb-pick-art svg { display:block; width:112px; height:112px; }
.onb-pick strong { font-family:"Fredoka","Lexend",sans-serif; font-size:19px; line-height:1.2; }
.onb-pick[aria-pressed="true"]::after,.onb-swatch[aria-pressed="true"]::after { content:"✓"; position:absolute; top:-8px; right:-6px; display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--primary); color:#fff; font-size:15px; font-weight:900; }
.onb-colour { gap:12px; }
.onb-tint { display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 0 10px; border-radius:28px; background:linear-gradient(180deg,var(--card2),var(--soft)); border:1px solid var(--line); }
.onb-tint-art svg { display:block; width:176px; height:176px; }
.onb-tint-name { font-family:"Fredoka","Lexend",sans-serif; font-size:22px; line-height:1.2; }
.onb-swatches { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; justify-items:center; }
.onb-swatches .onb-swatch { position:relative; width:62px; height:62px; min-height:0; padding:0; justify-content:center; border-radius:50%; }
.onb-swatches .onb-swatch[aria-pressed="true"] { border:3px solid var(--primary); background:var(--card); }
.onb-swatch-dot,.dress-colour-dot { display:block; width:46px; height:46px; border-radius:50%; border:3px solid #123F4A; }
[data-colour="rosa"].onb-swatch-dot,[data-colour="rosa"].dress-colour-dot { background:#EDA0AE; }
[data-colour="lilas"].onb-swatch-dot,[data-colour="lilas"].dress-colour-dot { background:#CBB9EE; }
[data-colour="alperce"].onb-swatch-dot,[data-colour="alperce"].dress-colour-dot { background:#F5AE8F; }
[data-colour="amarelo"].onb-swatch-dot,[data-colour="amarelo"].dress-colour-dot { background:#F1D77C; }
[data-colour="vermelho"].onb-swatch-dot,[data-colour="vermelho"].dress-colour-dot { background:#D93A2B; }
[data-colour="laranja"].onb-swatch-dot,[data-colour="laranja"].dress-colour-dot { background:#F07020; }
[data-colour="verde"].onb-swatch-dot,[data-colour="verde"].dress-colour-dot { background:#2F9E44; }
[data-colour="turquesa"].onb-swatch-dot,[data-colour="turquesa"].dress-colour-dot { background:#1E9AA8; }
[data-colour="azul"].onb-swatch-dot,[data-colour="azul"].dress-colour-dot { background:#2F7AD6; }
[data-colour="violeta"].onb-swatch-dot,[data-colour="violeta"].dress-colour-dot { background:#6236B0; }
[data-colour="caramelo"].onb-swatch-dot,[data-colour="caramelo"].dress-colour-dot { background:#C08B5C; }
[data-colour="grafite"].onb-swatch-dot,[data-colour="grafite"].dress-colour-dot { background:#80868D; }
.dress .dress-tabs:has(> :nth-child(6)) { grid-template-columns:repeat(6,minmax(0,1fr)); }
.dress .dress-tabs:has(> :nth-child(6)) .dress-tab { font-size:12px; letter-spacing:-.4px; }
.dress .dress-item.dress-colour { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; }
.dress .dress-colour .dress-colour-dot { width:36px; height:36px; }
.dress-colour-name { font-size:12px; font-weight:700; line-height:1.1; color:var(--ink); }
@media(max-height:760px) and (max-width:1023px) {
  .onb-pick-art svg { width:92px; height:92px; }
  .onb-tint-art svg { width:118px; height:118px; }
  .onb-tint { padding:4px 0 6px; }
  .onb-colour { gap:10px; }
  .onb-swatches .onb-swatch { width:54px; height:54px; }
  .onb-swatch-dot { width:38px; height:38px; }
  .onb-title { font-size:23px; }
}
@media(max-height:660px) and (max-width:1023px) {
  .onb-pick-art svg { width:76px; height:76px; }
  .onb-picks { gap:10px; }
  .onb-tint-art svg { width:100px; height:100px; }
  .onb-swatches { gap:8px; }
  .onb-swatches .onb-swatch { width:50px; height:50px; }
  .onb-swatch-dot { width:34px; height:34px; }
}
@media(min-width:1024px) {
  .onb-pick-art svg { width:132px; height:132px; }
  .onb-title { font-size:32px; }
}
/* the surprise's line is the longest the Plico says here: on a short phone it takes less room */
@media(max-height:760px) and (max-width:1023px) {
  .onb:has(.onb-card.is-surprise) .onb-say { font-size:16px; padding:8px 12px; }
  .onb:has(.onb-card.is-surprise) .onb-plico { width:64px; height:64px; }
  .onb-card.is-surprise .onb-pick-art svg { width:84px; height:84px; }
}
@media(max-height:660px) and (max-width:1023px) {
  .onb-card.is-surprise .onb-pick-art svg { width:70px; height:70px; }
  .onb-card.is-surprise .onb-pick { padding:6px 6px 8px; }
}
/* 12 colours on the choose screens (João 28 Nov 13:43): three rows of four, smaller swatches, all choosable */
.onb-swatches { gap:8px 10px; }
.onb-swatches .onb-swatch { width:54px; height:54px; }
.onb-swatch-dot { width:40px; height:40px; }
@media(max-height:760px) and (max-width:1023px) {
  .onb-swatches .onb-swatch { width:46px; height:46px; }
  .onb-swatch-dot { width:34px; height:34px; }
  .onb-swatches { gap:6px 10px; }
  .onb-tint-art svg { width:92px; height:92px; }
  .onb-tint { padding:4px 0 4px; }
}
@media(max-height:660px) and (max-width:1023px) {
  .onb-swatches .onb-swatch { width:42px; height:42px; }
  .onb-swatch-dot { width:30px; height:30px; }
  .onb-tint-art svg { width:84px; height:84px; }
  .onb-tint { padding:2px 0 4px; }
  .onb-tint-name { font-size:19px; }
}
/* «O meu boneco» (João 28 Nov 13:48): the locked hidden by default, a soft text toggle, the shelf scrolling inside its own
   box so the boneco, the tabs and «Guardar» stay on the screen. */
.dress-toggle { align-self:flex-start; display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:4px 12px; border:0; border-radius:99px; background:transparent; color:var(--primary); font:inherit; font-size:14px; font-weight:700; cursor:pointer; box-shadow:none; }
.dress-toggle:hover { background:var(--soft); }
.dress-toggle[aria-pressed="true"] { background:var(--soft); }
.dress-toggle:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.dress-toggle[hidden] { display:none; }
.dress-toggle-icon { font-size:13px; line-height:1; }
.dress-plus { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; border:2px dashed var(--primary); color:var(--primary); font-size:22px; font-weight:800; line-height:1; }
.dress .dress-new-slot { border-style:dashed; border-color:var(--primary); }
.dress .dress-who { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 4px; }
.dress .dress-who[hidden] { display:none; }
.dress .dress-who-tile { position:relative; flex:0 0 auto; width:84px; display:flex; flex-direction:column; align-items:center; gap:0; padding:4px 4px 6px; min-height:0; }
.dress .dress-who-tile svg { width:56px; height:56px; }
.dress .dress-who-tile strong { font-size:13px; }
.dress .dress-who-tile .dress-rule { position:static; margin-top:2px; }
.dress .dress-who-tile[aria-pressed="true"] { border-color:var(--primary); background:var(--soft); }
.dress-links { display:flex; justify-content:center; gap:4px; flex-wrap:wrap; }
.dress-link { min-height:40px; padding:4px 10px; font-size:14px; }
.dress .dress-links .dress-link { border:0; background:none; box-shadow:none; color:var(--primary); font-weight:700; white-space:nowrap; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.dress-link:hover { background:var(--soft); }
.dress-links { flex-wrap:nowrap; }
@media(max-width:1023px) {
  .dress.is-room { gap:6px; height:calc(100dvh - var(--room-chrome,180px)); min-height:400px; overflow:hidden; }
  .dress.is-room > * { flex:0 0 auto; }
  /* the room ends right above the tab bar: no page padding or bar margin under it */
  .screen:has(> .dress.is-room), #screen:has(.dress.is-room) { padding-bottom:4px; }
  .app-layout:has(.dress.is-room) .bottom-nav { margin-top:0; }
  /* the page's own title already says «O meu boneco»: the room's heading stays for screen readers only */
  .dress.is-room .dress-head h1 { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
  .dress.is-room .dress-head { min-height:32px; }
  .dress.is-room .dress-head .dress-toggle { min-height:32px; padding:2px 10px; margin-left:-10px; }
  .dress.is-room .dress-level { padding:4px 10px; font-size:13px; }
  .dress.is-room .dress-who-tile { width:64px; padding:2px 2px 3px; border-radius:16px; }
  .dress.is-room .dress-who-tile svg { width:38px; height:38px; }
  .dress.is-room .dress-who-tile strong { font-size:12px; line-height:1.2; }
  .dress.is-room .dress-who-tile .dress-plus { width:26px; height:26px; font-size:16px; margin:6px 0 2px; }
  .dress.is-room .dress-who-tile .dress-rule { font-size:9px; padding:1px 2px; }
  .dress.is-room .dress-stage { flex:0 1 auto; height:clamp(116px,28dvh,250px); min-height:116px; }
  .dress.is-room .dress-say { top:6px; padding:6px 12px 7px; font-size:14px; }
  .dress.is-room .dress-star { width:auto; left:0; right:0; top:34px; bottom:4px; margin:0; display:flex; justify-content:center; }
  .dress.is-room .dress-star svg { height:100%; width:auto; max-width:184px; max-height:184px; }
  .dress.is-room .dress-shelf { flex:1 1 0; min-height:76px; overflow-y:auto; overscroll-behavior:contain; align-content:start; padding:2px; }
  .dress.is-room .dress-tab { min-height:40px; }
  .dress.is-room .dress-save { min-height:46px; }
  .dress.is-room .dress-link { min-height:28px; font-size:13px; padding:2px 8px; }
  .dress.is-room .dress-who { padding:0 2px; }
}
/* 20261128a end */

/* 28b start (Agency docs/_reviews/OEXPLICA_28B_ROOTS_2026-11-28.md). Every rule of 28b is in this block. */
/* Item 7 (João's iPhone, Brave, 28 Nov 13:50, empty Amigos: "the footer got out"): on a short screen the tab bar sat where
   the page ended, 100dvh down, and Brave's 100dvh is shorter than what it shows, so a band of the page's background showed
   under the bar. On a phone the bar is now fixed to the bottom of the screen (fixed follows the browser's bars, as the
   lesson layer of 23 Nov does on his phone); the page keeps the bar's height free at its end (the bar: 79 px and its
   bottom padding, max(9px, safe area); plus its 12 px gap), nothing while the bar is out of view; below the page, the
   canvas is the bar's colour, as a second net. 850 px and up keep the side rail. No script: CSS only. */
@media(max-width:849px) {
  .app-layout:has(> .bottom-nav) { padding-bottom:calc(91px + max(9px, env(safe-area-inset-bottom))); }
  .app-layout > .bottom-nav { position:fixed; left:0; right:0; bottom:0; width:100%; max-width:430px; margin:0 auto; }
  html:has(#app > .app-layout > .bottom-nav) { background-color:var(--card); }
  html.field-keys .app-layout:has(> .bottom-nav), html.jogar-in-round .app-layout:has(> .bottom-nav) { padding-bottom:0; }
}
@media(max-width:600px) and (max-height:520px) {
  .app-layout:has(> .bottom-nav):has(.exercise:focus-within), .app-layout:has(> .bottom-nav):has(.test-topic-find:focus-within) { padding-bottom:0; }
}
/* Item 2: the invitation to play, on any screen outside an exercise (invite-pop.js), above the tab bar on a phone. */
.invite-pop { position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px)); z-index:40; max-width:406px; margin:0 auto;
  display:flex; flex-direction:column; gap:10px; padding:14px 16px; border-radius:22px; background:var(--card); color:var(--ink);
  border:1px solid var(--line); box-shadow:0 14px 40px -10px #36244a66; animation:invite-up .24s cubic-bezier(.2,.9,.3,1) both; }
body:has(#app > .app-layout > .bottom-nav) .invite-pop { bottom:calc(89px + max(9px, env(safe-area-inset-bottom))); }
.invite-pop-head { display:flex; align-items:center; gap:12px; }
.invite-pop-av { font-size:30px; line-height:1; flex:none; }
.invite-pop-copy { display:flex; flex-direction:column; min-width:0; }
.invite-pop-copy strong { font-size:17px; line-height:1.25; overflow-wrap:anywhere; }
.invite-pop-bar { height:6px; }
.invite-pop-acts { display:flex; align-items:center; gap:8px; }
.invite-pop-acts .btn { min-height:48px; }
.invite-pop-acts .btn.cta { flex:1; }
.invite-pop-left { margin-left:auto; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
@keyframes invite-up { from { transform:translateY(16px); opacity:0; } to { transform:none; opacity:1; } }
@media(min-width:850px) { .invite-pop, body:has(#app > .app-layout > .bottom-nav) .invite-pop { left:auto; right:24px; bottom:24px; width:380px; } }
/* Item 6: the empty Amigos of a 13+ with the area on by default: the line under the Plico, who gives it room. */
#screen:has(> .amigos-default) .amigos-plico { max-height:92px; margin:0 auto; }
#screen > .amigos-default { margin:0 auto; }
/* Item 4: the line on the Jogar home after «Convidar para jogar» on a friend. */
.jogar-ask { text-align:center; font-weight:700; color:var(--primary); }
/* 28b end */
/* 28c R1 start */
/* Sweep B2: «Aceitar amizade» and «Recusar» side by side. */
.friend-decide > .btn { flex:1 1 0; min-height:44px; }
.friend-decide > .btn.quiet { flex:0 1 auto; }
/* João, 28 Nov 20:12: the idea card has no «Uma ideia» chip; the title shares its row with the read-aloud. */
.idea-head { align-items:flex-start; gap:8px; }
.idea-head > h1 { margin:0; flex:1 1 auto; min-width:0; }
.idea-head > .card-tools, .idea-head > .speak { flex:none; }
/* João, 28 Nov 20:14 and 21:12: «Explica melhor» (35%, left) and «Já percebi. Continuar» (65%, right) in one row, the same
   height and type size; the main button stays first in the page order. 28c R2 (copy read M5): up to 430 px 38/62, so
   «Explica melhor» keeps side space on 375 to 430 px phones; under 375 px 41/59, 14 px and less inner padding. */
.one-act.one-pair { flex-wrap:nowrap; }
.one-act.one-pair > .one-explain { order:-1; flex:0 0 calc(35% - 5px); min-width:0; min-height:58px; padding:0 6px; border-radius:18px;
  font-size:15px; font-weight:700; white-space:nowrap; }
.one-act.one-pair > .btn.cta.one-go { flex:1 1 0; font-size:15px; padding:0 18px; }
.one-act.one-pair > .btn.cta.one-go::before { left:8px; }
.one-act.one-pair > .btn.cta.one-go::after { right:8px; }
.pair-row { display:flex; gap:10px; }
.pair-row > .pair-explain { order:-1; flex:0 0 calc(35% - 5px); min-width:0; min-height:58px; padding:0 6px; font-size:15px; white-space:nowrap; }
.pair-row > .pair-go { flex:1 1 0; min-width:0; min-height:58px; padding:0 12px; font-size:15px; white-space:nowrap; }
@media (max-width:430px) {
  .one-act.one-pair > .one-explain, .pair-row > .pair-explain { flex-basis:calc(38% - 5px); }
}
@media (max-width:374px) {
  .one-act.one-pair > .one-explain, .one-act.one-pair > .btn.cta.one-go, .pair-row > .btn { font-size:14px; }
  .one-act.one-pair > .one-explain, .pair-row > .pair-explain { flex-basis:calc(41% - 5px); padding:0 4px; }
  .one-act.one-pair > .btn.cta.one-go { padding:0 10px; }
  .pair-row > .pair-go { padding:0 8px; }
}
/* 28c R1 end */
/* 29a icons (A14, João 28 Nov 21:12): our own icons where system emoji were. The box is sized before the drawing
   arrives (core.js icon()), about the width of the emoji it replaces, so no line moves. Words beside it keep the gap
   the space gave (.ic-a after the words, .ic-b before them). The line glyphs take the text colour; the colour icons get
   the Noite halo the menu and the top bar tools already have. */
.ic { display:inline-block; width:1.2em; height:1.2em; vertical-align:-.22em; flex:none; line-height:1; }
.ic > .ic-art, .ic > .menu-art, .ic > .tool-art { display:block; width:100%; height:100%; overflow:visible; }
.ic-a { margin-inline-start:.28em; }
.ic-b { margin-inline-end:.28em; }
:root[data-theme="noite"] .ic > .ic-art:not(.ic-glyph), :root[data-theme="noite"] .ic > .menu-art { filter:drop-shadow(0 0 .6px #f4efffb3) drop-shadow(0 0 .6px #f4efffb3); }
@media (forced-colors:active) { .ic > .ic-art:not(.ic-glyph) { forced-color-adjust:none; } }
/* 29a icons end */
/* 29a icons: the theme swatch (MAP «amostra de cor do tema»), the size of the emoji it replaces (.theme-option span 21px). */
.theme-option .theme-swatch { display:inline-block; width:1.15em; height:1.15em; border-radius:50%; border:2.5px solid #123F4A; box-sizing:border-box; flex:none; }
.swatch-pastel { background:linear-gradient(120deg,#f7b5cd,#cdb6f4,#a7e9d4); }
.swatch-oceano { background:linear-gradient(120deg,#92e9e0,#acd2ff); }
.swatch-floresta { background:linear-gradient(120deg,#c9e7a6,#95ddbf); }
.swatch-por-do-sol { background:linear-gradient(120deg,#ffd19d,#ffb8cf); }
.swatch-noite { background:radial-gradient(circle at 30% 30%,#d0b7ff 0 18%,transparent 19%),#181525; }
.swatch-simples { background:linear-gradient(120deg,#ffffff 50%,#1f5fd1 50%); }
.swatch-aurora { background:linear-gradient(120deg,#8eedd0,#a6dcff 52%,#cdbcff); }
.swatch-galaxia { background:linear-gradient(120deg,#b9adff,#f3b6e0 52%,#9fd0ff); }
.swatch-coral { background:linear-gradient(120deg,#ffb39c,#ffd58c 50%,#86e3d4); }
:root[data-theme="noite"] .theme-option .theme-swatch { border-color:#f4efff; }

/* 29a consistency sweep (30 Nov): the lesson's «Definições» draws the top bar's wheel (icon('definicoes')), the size of the tools. */
.one-gear .one-gear-icon > .ic { width:28px; height:28px; }
/* 29a consistency sweep: the sign-up steps' back is the app's back button (the same round soft button and arrow), not a «‹». */
.onb-back { width:44px; height:44px; min-height:44px; padding:0; flex:none; border-radius:50%; background:var(--soft); color:var(--primary); box-shadow:inset 0 0 0 2px currentColor; display:grid; place-items:center; }

/* 29a screens start (João 30 Nov 00:23: one fixed top bar everywhere with search, notifications and settings,
   notifications at the right; 00:26: "the lupa icon being different is wild"). One button shape for every bar tool: the
   soft rounded square the lupa and the sino already had, 44 x 44, also for back, the lesson's wheel and any end action.
   The bar stays at the top while the page scrolls; it carries the page's own wash (fixed, as the body), and a soft line
   once the page has moved. */
.topbar .learner-tools { display:flex; align-items:center; gap:6px; margin-left:auto; flex-shrink:0; }
.topbar .learner-tool, .topbar .back-button, .topbar .one-gear, .topbar .topbar-action, .topbar .btn.quiet.bar-wheel {
  width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:15px; background:var(--soft);
  box-shadow:none; display:grid; place-items:center; flex-shrink:0; }
.topbar .back-button, .topbar .one-gear { color:var(--primary); }
.topbar .learner-tool .tool-ic, .topbar .one-gear .one-gear-icon > .ic { width:28px; height:28px; }
.topbar .learner-tool:focus-visible, .topbar .back-button:focus-visible, .topbar .one-gear:focus-visible, .topbar .topbar-action:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
@media(hover:hover) { .topbar .learner-tool:hover, .topbar .back-button:hover, .topbar .one-gear:hover { box-shadow:0 0 0 2px var(--primary); } }
.topbar.tool-bar .title { flex:1; min-width:0; text-align:left; font-size:15px; line-height:1.2; text-wrap:balance;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.app-layout.in-app:not(.one-screen) > .topbar { position:sticky; top:0; z-index:6; background-color:var(--bg); background-image:var(--wash); background-attachment:fixed; }
html.bar-scrolled .app-layout.in-app:not(.one-screen) > .topbar { box-shadow:0 1px 0 var(--line),0 8px 16px -10px #36244a33; }
@media(max-width:374px) { .topbar .learner-tools { gap:4px; } .topbar.tool-bar { gap:8px; } }
@media(prefers-reduced-motion:reduce) { .topbar .learner-tool:active, .topbar .back-button:active { transform:none; } }
/* 29a screens end */
/* 29a screens: «Olá, Rita!» once, after the opening (kid.js hello): a small card under the top bar, over the page (nothing
   moves), for about three seconds. Reduced motion: it shows and goes without moving. */
.hello-pop { position:fixed; z-index:7; top:calc(76px + env(safe-area-inset-top,0px)); left:50%; transform:translateX(-50%);
  display:flex; align-items:center; gap:10px; padding:8px 18px 8px 10px; border-radius:22px; background:var(--card);
  border:1px solid var(--line); box-shadow:var(--shadow),0 10px 24px -12px #36244a40; max-width:calc(100vw - 32px);
  font-family:"Fredoka","Lexend",ui-rounded,system-ui,sans-serif; font-size:21px; color:var(--ink); cursor:pointer;
  animation:hello-in .42s cubic-bezier(.19,1,.22,1) both; }
.hello-pop > .wardrobe-own-avatar, .hello-pop > .wardrobe-emoji { width:40px; height:40px; flex:none; margin:0; }
.hello-pop.leaving { animation:hello-out .32s ease-in both; }
@keyframes hello-in { from { opacity:0; transform:translate(-50%,-10px) scale(.96); } to { opacity:1; transform:translate(-50%,0); } }
@keyframes hello-out { to { opacity:0; transform:translate(-50%,-8px); } }
@media(prefers-reduced-motion:reduce) { .hello-pop, .hello-pop.leaving { animation:none; } }
@media(min-width:850px) { .home-layers > h1.sr-only + .xp { grid-column:1 / -1; } }
/* 29a screens, E (João 30 Nov: app screens fit at 390 x 664 with the browser bars, scroll is rare): Início on a phone.
   The greeting is gone (kid.js hello), the level line and the next step are tighter, the subjects are one row that slides
   sideways (all of them, in their order), «Mais para explorar» is three tiles in one row (its heading stays for screen
   readers). Nothing is removed; the type stays at its sizes. */
@media(max-width:849px) {
  .in-app > #screen.home-layers { padding-top:4px; gap:10px; }
  .in-app > #screen.home-layers { gap:8px; }
  .home-layers > .xp.my-progress-link { min-height:0; padding:7px 12px 9px; }
  .home-layers > .xp .row { margin-bottom:5px; }
  .home-layers > .xp progress { height:8px; }
  .home-next.continue-card { padding:14px 16px 16px; }
  .home-next > .home-next-eyebrow { margin-bottom:2px; }
  .home-next .continue-head { margin-bottom:10px; }
  .home-next .continue-copy h2 { margin:6px 0 0; }
  .home-next .continue-art { width:84px; height:80px; }
  .home-next > .btn.giant.home-next-go { min-height:58px; }
  .home-subjects .subjects { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; margin:8px -20px 0; padding:0 20px 2px; scroll-padding-inline:20px; scrollbar-width:none; }
  .home-subjects .subjects::-webkit-scrollbar { display:none; }
  .home-subjects .subject-chip { flex:none; scroll-snap-align:start; white-space:nowrap; }
  .home-more { padding-top:0; }
  .home-more > h3 { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .home-more-list { flex-direction:row; gap:8px; margin:0 -20px; padding:0 20px 2px; border:0; border-radius:0; background:none; overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x proximity; scroll-padding-inline:20px; scrollbar-width:none; }
  .home-more-list::-webkit-scrollbar { display:none; }
  .home-more-list > .photo-home, .home-more-list > .photo-home + .photo-home { flex:none; gap:8px; min-height:48px; padding:6px 14px 6px 8px; border:1px solid var(--line); border-radius:14px;
    width:auto; max-width:none; background:var(--card); font-size:13px; white-space:nowrap; scroll-snap-align:start; }
  .home-more-list .quick-copy small { display:none; }
  .home-more-list .photo-icon { width:32px; height:32px; border-radius:10px; }
  .in-app > #screen.home-layers { padding-bottom:12px; }
}
@media(max-width:374px) { .home-more-list { margin-inline:-16px; padding-inline:16px; scroll-padding-inline:16px; } }
@media(max-width:374px) { .home-subjects .subjects { margin-inline:-16px; padding-inline:16px; scroll-padding-inline:16px; } }
/* 29a screens, C: the close, tick, delete and arrow signs drawn as our icons where they stood alone (fechar, visto, apagar,
   seta-direita); the ticks drawn by CSS on chosen chips and pieces are our «visto» line, cut out of the same round badge
   (the badge keeps its colour; the line shows the surface under it, as the white sign did). */
.pad-del .ic { width:24px; height:24px; vertical-align:middle; }
.sheet-close .ic, .theme-news-close .ic, .home-note-close .ic, .bug-tip-ok .ic, .test-topic-clear .ic { width:24px; height:24px; vertical-align:middle; }
.chip[aria-checked="true"]::after,.chip-check:has(input:checked)::after,.dress .dress-item.is-on::after,.jogar-skipped span.on::after,.onb-pick[aria-pressed="true"]::after,.onb-swatch[aria-pressed="true"]::after {
  content:""; -webkit-mask:url(/icons/visto-badge.svg) center / 100% 100% no-repeat;
  mask:url(/icons/visto-badge.svg) center / 100% 100% no-repeat; }
.jogar-opt-theme.on::after { content:""; width:18px; height:18px; flex:none; background:var(--primary);
  -webkit-mask:url(/icons/visto-linha.svg) center / contain no-repeat;
  mask:url(/icons/visto-linha.svg) center / contain no-repeat; }
/* 29a screens, D: two buttons side by side (core.js duo): the secondary left, taking what its label needs between 35 % and 44 %
   (two lines at most), the main right with the rest; the same height. */
.duo { display:flex; gap:10px; align-items:stretch; width:100%; }
.duo > .btn, .duo > a.btn { width:auto; margin:0; min-height:52px; }
.duo > .duo-side { order:-1; flex:0 1 auto; min-width:calc(35% - 5px); max-width:calc(44% - 5px); padding:6px 6px; white-space:normal; text-wrap:balance; line-height:1.2; text-align:center; }
.duo > .duo-main { flex:1 1 0; min-width:calc(56% - 5px); padding:6px 12px; white-space:normal; text-wrap:balance; line-height:1.2; text-align:center; }
.duo > [hidden] { display:none; }
.card > .duo, .stack > .duo { margin:0; }
@media(max-width:374px) { .duo { gap:8px; } .duo > .duo-side { padding-inline:6px; } }
/* 29 (main chat ruling, 1 Dec, after João on «Entrar»: "button here side by side is ugly text is too much"): a pair goes
   side by side only when both labels fit on one line at 360 px at the normal type (no smaller type in .duo); otherwise
   core.js pairStack: the main button at full width, the other a quiet text link under it, centred, the same words, 44 px. */
.pair-stack { display:flex; flex-direction:column; align-items:stretch; gap:2px; width:100%; }
.pair-stack > .btn, .pair-stack > a.btn { width:100%; margin:0; }
.pair-stack > .pair-quiet { align-self:center; min-height:44px; padding:10px 14px; font-size:15px; line-height:1.3; text-align:center; }
.pair-stack > [hidden] { display:none; }
/* The sign-up steps' back: the bar's shape (the soft rounded square). */
.onb-back { border-radius:15px; box-shadow:none; }
.levelup-actions.duo { min-height:52px; flex-direction:row; }
/* 29a screens, A3 (João 29 Nov 23:06): «Eu» tightened: the boneco box, its pencil and the name's pencil smaller and closer,
   less air between them, the three tiles lower. The pencils keep a 44 px touch area. */
.stack > .eu-hero, .eu-hero { gap:4px; padding-top:0; }
.eu-avatar { width:92px; height:92px; border-radius:30px; }
.eu-avatar-face .boneco-render { width:78px; height:78px; }
.eu-avatar-edit { right:-4px; bottom:-4px; width:32px; height:32px; font-size:15px; border-width:1.5px; }
.eu-avatar-edit .ic { width:18px; height:18px; }
.eu-name { gap:4px; }
.eu-name-edit { position:relative; width:34px; height:34px; border-width:1.5px; font-size:14px; }
.eu-name-edit::after { content:""; position:absolute; inset:-5px; }
.eu-name-edit .ic { width:18px; height:18px; }
.eu-hero h1 { font-size:24px; line-height:1.15; }
.eu-hero .tag { padding-block:3px; }
.eu-stat { min-height:78px; padding:8px 6px; }
/* 29a screens, A1 (João 29 Nov 23:06): «Continuar» and its arrow centred in the button, measured on the ink: the arrow's
   circle sits 3 px inside its own box on the right, so the box gives those 3 px back (ink gaps 86.5 and 88 px before, equal now). */
.btn .ic-seguir.ic-a { margin-inline-end:-3px; }
/* 29a screens, A5: «Jogar» while a friend's invitation is live (core.js markLive). The two cards hop and rock with a soft
   ring under them, under 1 s every 2.4 s; a small dot stays between the moves. One colour (the theme's), no sound, nothing
   red. Reduced motion: no movement, the dot only. */
.bottom-nav .nav-item[data-tab="jogar"] { position:relative; }
.nav-item.is-live > .nav-ic { animation:jogar-live 2.4s cubic-bezier(.3,.7,.4,1) infinite; transform-origin:50% 88%; }
.nav-item.is-live > .live-ring { position:absolute; left:50%; top:3px; width:48px; height:48px; margin-left:-24px; border-radius:50%; background:var(--primary);
  opacity:0; pointer-events:none; animation:jogar-ring 2.4s ease-out infinite; }
.nav-item.is-live > .tab-dot { position:absolute; top:4px; left:calc(50% + 13px); width:12px; height:12px; border-radius:50%; background:var(--primary); border:2px solid var(--card); pointer-events:none; }
@keyframes jogar-live { 0%,52%,100% { transform:none; } 60% { transform:translateY(-8px) rotate(-12deg) scale(1.06); } 70% { transform:translateY(-3px) rotate(9deg) scale(1.03); }
  79% { transform:translateY(0) rotate(-4deg); } 88% { transform:none; } }
@keyframes jogar-ring { 0%,52% { opacity:0; transform:scale(.55); } 60% { opacity:.26; } 92%,100% { opacity:0; transform:scale(1.3); } }
@media(prefers-reduced-motion:reduce) { .nav-item.is-live > .nav-ic, .nav-item.is-live > .live-ring { animation:none; } .nav-item.is-live > .live-ring { display:none; } }
/* 29a screens, F: a reaction shows at once (social.js reactionRow): the chosen one in the theme's colour, its count beside
   the icon, a short pop on the tap. Reduced motion: no pop. */
.reaction { display:inline-flex; align-items:center; gap:4px; min-width:52px; }
.reaction .reaction-n { min-width:.6em; font-size:15px; font-weight:800; color:var(--ink); font-variant-numeric:tabular-nums; }
.reaction .reaction-n:empty { display:none; }
.reaction.is-mine { background:var(--soft); border-color:var(--primary); box-shadow:inset 0 0 0 1px var(--primary); }
.reaction.is-mine .reaction-n { color:var(--primary); }
.reaction.pop > .ic { animation:reaction-pop .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes reaction-pop { 0% { transform:scale(.7); } 60% { transform:scale(1.25); } 100% { transform:none; } }
@media(prefers-reduced-motion:reduce) { .reaction.pop > .ic { animation:none; } }
/* 29a screens, E: the sign-in and sign-up screens fit 390 x 664 with their footer. The conversation's own height left room
   for the top bar only, so the footer always fell under the fold; on these screens it also counts the footer. «Criar
   conta»: the three ways in, the Plico and the gaps a little tighter (the type and the cards' words unchanged). */
.app-layout:has(> .entry-footer) .onb { min-height:calc(100dvh - 214px); }
/* 29 stacked pairs: the quiet link under «Enviar link para entrar» takes 46 px, so the sign-in screens give that back here */
.app-layout:has(> .entry-footer) .onb:has(.pair-stack) { min-height:calc(100dvh - 260px); }
.app-layout:has(> .entry-footer) .onb:has(.pair-stack) > .onb-head:has(> .onb-bar-space:only-child) { display:none; }   /* an empty head (no step bar) */
.onb:has(.onb-paths) { gap:6px; }
.onb:has(.onb-paths) .onb-plico { width:70px; height:70px; }
.onb-paths { gap:6px; }
.onb-paths .onb-choice { min-height:0; padding:7px 14px; }
.duo > .duo-main { padding-inline:5px; }
/* 29a screens, E: «O meu boneco» ends above the tab bar with nothing under the fold (it ran 10 px over). */
@media(max-width:1023px) { .dress.is-room { --room-chrome:192px; } }
.eu-group { scroll-margin-top:80px; }
/* 29a screens, E: the Plico's lines break in balance, so a closing icon never sits alone («O espaço da / família» and the house). */
.onb-say, .onb-static h1 { text-wrap:balance; }
/* 29a screens, H: in a lesson a message sits over the top bar's own row (back, progress, wheel), never over the question,
   the answer or «Dica» and «Verificar»; elsewhere above the tab bar, as before. The XP an answer earned: a small mark in
   its «Já consegues» sheet. */
html:has(.one-screen) .toast { top:calc(6px + env(safe-area-inset-top,0px)); bottom:auto; min-height:52px; padding:12px 18px; display:flex; align-items:center; justify-content:center; }
.xp-chip { align-self:flex-start; display:inline-flex; padding:3px 10px; border-radius:999px; background:var(--good); color:var(--good-ink); font-size:13px; font-weight:800; }
/* 29a screens, I: a number with marks («0,(4)», «(2, 5)», «75%»): the number pad with one row of the marks it needs on top
   (keyboard.js); the digits, «0», «,» and the delete key move one row down. The keys keep their size, a little lower each. */
.answer-pad-number .pad-row.pad-row-marks { display:grid; grid-column:1 / -1; grid-row:1; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.answer-pad-number.has-marks .pad-key[data-act="back"] { grid-row:4 / span 2; }
.answer-pad-number.has-marks .pad-key[aria-label="0"], .answer-pad-number.has-marks .pad-key[aria-label="vírgula"], .answer-pad-number.has-marks .pad-key[data-act="calc"] { grid-row:5; }
.answer-pad-number.has-marks .pad-key { min-height:44px; }
@media(max-width:374px) { .answer-pad-number.has-marks .pad-key { min-height:40px; } .answer-pad-number.has-marks { gap:5px; } }
/* 29a screens, J: a line to take away with its worked example (core.js recapItem): the rule in bold, the example under it in
   the lesson's maths style on a soft band, a small figure under that. A line without an example looks as before. */
.recap-list > .recap-item { display:grid; gap:6px; }
.recap-item > .recap-rule { font-weight:700; line-height:1.4; }
.recap-item > .recap-ex { justify-self:start; padding:6px 12px; border-radius:12px; background:var(--soft); color:var(--ink); font-variant-numeric:tabular-nums; line-height:1.45; }
.recap-item > .recap-fig { display:block; max-width:min(100%,220px); height:auto; margin-top:2px; }
/* 29a screens (João 30 Nov 12:18): the topic summary reached from search, on one screen: the title and its tags, the first
   lines of the summary (the rest behind «Ver mais»), the steps as one list with their minutes, one big button. */
.topic-head { display:grid; gap:6px; }
.topic-head h1 { font-size:23px; line-height:1.2; text-wrap:balance; }
.in-app > #screen:has(> .topic-head) { gap:8px; padding-top:2px; }
.topic-tags { gap:6px; }
.topic-about { display:grid; gap:2px; }
.topic-about > .prose { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.topic-about:has(.topic-more[open]) > .prose { display:block; -webkit-line-clamp:unset; overflow:visible; }
.topic-about .prose p { margin:0; }
.topic-more > summary { min-height:40px; display:inline-flex; align-items:center; color:var(--primary); font-weight:700; cursor:pointer; }
.topic-more[open] { display:grid; gap:8px; }
.topic-about > .speak { justify-self:start; }
.topic-steps { display:grid; border:1px solid var(--line); border-radius:20px; background:var(--card); overflow:hidden; }
.topic-steps > div + div { border-top:1px solid var(--line); }
.topic-step { display:flex; align-items:center; gap:12px; width:100%; min-height:46px; padding:6px 14px; border:0; background:none; color:var(--ink); font:inherit; font-size:15px; font-weight:600; text-align:left; cursor:pointer; }
.topic-step-n { flex:none; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--soft); color:var(--primary); font-size:14px; font-weight:800; }
.topic-step.done .topic-step-n { background:var(--good); color:var(--good-ink); }
.topic-step.next .topic-step-n { background:var(--primary); color:var(--card); }
.topic-step-t { flex:1; min-width:0; line-height:1.3; }
.topic-step-m { flex:none; color:var(--muted); font-size:13px; font-weight:600; }
.topic-step:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
@media(hover:hover) { .topic-step:hover { background:var(--card2); } }
.topic-go.btn.giant { min-height:58px; }
