/* The Next Row practice prototype. Tokens follow brand pack v1.0 (07-Developer/brand.css). */
/* Layout idea: course map as a list of rows; lessons split into a teaching column and a live sheet. */
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #22283A; --paper: #FAF7EF; --cobalt: #365CFF; --butter: #FFD978;
  --bg: var(--paper); --surface: #FFFFFF; --surface-2: #F3EFE4; --text: var(--ink); --muted: #5C6475; --border: #7D8598; --rule: #E4DFD2;
  --action: var(--cobalt); --action-hover: #244BDB; --on-action: #FFFFFF; --focus: var(--ink);
  --success: #166449; --success-surface: #E6F4ED; --warning: #815600; --warning-surface: #FFF0C6; --error: #B42318; --error-surface: #FEECEB;
  --target: var(--butter); --target-ink: var(--ink); --select: var(--cobalt); --range: rgba(54, 92, 255, 0.10);
  --grid-line: #D9D4C6; --grid-head: #F1EDE2;
  --font: "Manrope", Arial, sans-serif; --mono: "IBM Plex Mono", Consolas, monospace;
  --r-s: 4px; --r-c: 8px; --r-p: 16px; --t-short: 180ms; --t-section: 240ms; --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #22283A; --surface: #30384C; --surface-2: #2A3144; --text: #FAF7EF; --muted: #C5CBDA; --border: #8F97AA; --rule: #3E465B;
    --action: #AFC2FF; --action-hover: #C8D4FF; --on-action: #22283A; --focus: #FFD978;
    --success: #7FD6AE; --success-surface: #20402F; --warning: #FFD978; --warning-surface: #4A3D18; --error: #FF9C93; --error-surface: #4A2622;
    --target: rgba(255, 217, 120, 0.22); --target-ink: #FAF7EF; --select: #AFC2FF; --range: rgba(175, 194, 255, 0.16);
    --grid-line: #475069; --grid-head: #2A3144; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #22283A; --surface: #30384C; --surface-2: #2A3144; --text: #FAF7EF; --muted: #C5CBDA; --border: #8F97AA; --rule: #3E465B;
  --action: #AFC2FF; --action-hover: #C8D4FF; --on-action: #22283A; --focus: #FFD978;
  --success: #7FD6AE; --success-surface: #20402F; --warning: #FFD978; --warning-surface: #4A3D18; --error: #FF9C93; --error-surface: #4A2622;
  --target: rgba(255, 217, 120, 0.22); --target-ink: #FAF7EF; --select: #AFC2FF; --range: rgba(175, 194, 255, 0.16);
  --grid-line: #475069; --grid-head: #2A3144; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-s { width: 16px; height: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.logo { display: block; height: 34px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 24px; padding: 12px 24px; border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.topbar .spacer { flex: 1; }
.stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip .icon-s { color: var(--action); }
.chip.goal-met { background: var(--success-surface); color: var(--success); border-color: transparent; }
.chip .bump { display: inline-block; }
.chip.flash .bump { animation: bump var(--t-section) var(--ease); }
@keyframes bump { from { transform: translateY(-4px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-c); border: 1px solid transparent; background: var(--action); color: var(--on-action); font-weight: 600; cursor: pointer; text-decoration: none; transition: background-color var(--t-short) var(--ease); }
.btn:hover { background: var(--action-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--text); padding: 8px 10px; min-height: 40px; }
.btn-quiet:hover { background: var(--surface-2); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* home */
.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow.tag { background: var(--butter); color: var(--ink); padding: 2px 8px; border-radius: var(--r-s); letter-spacing: 0.06em; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; margin: 12px 0 12px; }
.hero .lede { font-size: 18px; max-width: 54ch; color: var(--text); }
.hero .actions { margin-top: 24px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-p); padding: 24px; }
.summary h2 { font-size: 16px; margin-bottom: 16px; }
.meter { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; background: var(--action); border-radius: 999px; transition: width var(--t-section) var(--ease); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 16px 0 0; font-variant-numeric: tabular-nums; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.section-head h2 { font-size: 24px; }
.modules { display: grid; gap: 16px; }
.module { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-p); padding: 20px 24px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
.module .num { font: 600 13px/1 var(--mono); color: var(--muted); padding-top: 6px; }
.module h3 { font-size: 20px; }
.module .msum { color: var(--muted); margin-top: 4px; }
.lessons { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.lessons li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.lessons li:last-child { border-bottom: 0; }
.lessons .state { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; }
.lessons .state.done { background: var(--success); border-color: var(--success); color: var(--surface); }
.lessons .state.part { border-color: var(--action); background: linear-gradient(90deg, var(--action) 50%, transparent 50%); }
.lessons .ltitle { font-weight: 600; }
.lessons .lcount { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lessons .btn { min-height: 36px; padding: 6px 14px; font-size: 14px; }

.sheetlog { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--grid-line); border-radius: var(--r-c); overflow: hidden; }
.sheetlog th, .sheetlog td { border: 1px solid var(--grid-line); padding: 8px 12px; text-align: left; font-size: 14px; }
.sheetlog thead th { background: var(--grid-head); font-weight: 600; color: var(--muted); font-size: 13px; }
.sheetlog td.n, .sheetlog th.n { text-align: right; }
.sheetlog .rn { width: 44px; background: var(--grid-head); color: var(--muted); text-align: center; font: 500 12px/1 var(--mono); }
.sheetlog tr.fresh td { animation: rowin var(--t-section) var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.empty-note { color: var(--muted); padding: 16px 0; }
.foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; font-size: 13px; }

/* lesson */
.lesson-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lesson-bar .ltitle { font-weight: 700; }
.back .icon-s { transform: rotate(90deg); }
.steps { display: flex; gap: 4px; align-items: center; }
.steps span { width: 28px; height: 10px; border-radius: 3px; border: 1.5px solid var(--border); background: transparent; transition: background-color var(--t-section) var(--ease); }
.steps span.done { background: var(--action); border-color: var(--action); }
.steps span.now { border-color: var(--action); border-width: 2px; }
.lesson-wrap { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; padding: 24px; align-items: start; }
.teach { display: grid; gap: 16px; }
.teach h1 { font-size: 30px; font-weight: 700; margin-top: 6px; }
.outcome { font-weight: 600; }
details.notes { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-c); padding: 12px 16px; }
details.notes summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.notes summary::-webkit-details-marker { display: none; }
details.notes summary .icon-s { transition: transform var(--t-short) var(--ease); }
details.notes[open] summary .icon-s { transform: rotate(180deg); }
details.notes p { margin-top: 8px; }
code, .mono { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0; font-size: 0.94em; }
.task { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-p); padding: 20px; display: grid; gap: 12px; }
.task .count { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.task .prompt { font-size: 18px; font-weight: 600; line-height: 1.4; }
.where { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.where b { background: var(--target); color: var(--target-ink); font: 600 13px/1 var(--mono); padding: 4px 6px; border-radius: var(--r-s); }
.hints { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hints li { border-left: 3px solid var(--butter); padding: 4px 0 4px 12px; font-size: 15px; }
.hints li b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.status { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-c); padding: 12px 14px; font-size: 15px; }
.status .icon { margin-top: 2px; }
.status.ok { background: var(--success-surface); color: var(--success); }
.status.bad { background: var(--error-surface); color: var(--error); }
.status.note { background: var(--warning-surface); color: var(--warning); }
.status p { color: inherit; }
.status .xp { font-weight: 700; white-space: nowrap; margin-left: auto; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r-c); background: var(--surface); cursor: pointer; transition: border-color var(--t-short) var(--ease), background-color var(--t-short) var(--ease); }
.option:hover { border-color: var(--action); }
.option[aria-checked="true"] { border-color: var(--action); background: var(--range); }
.option .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: 0 0 auto; }
.option[aria-checked="true"] .dot { border-color: var(--action); box-shadow: inset 0 0 0 4px var(--surface); background: var(--action); }
.option.is-right { border-color: var(--success); background: var(--success-surface); }
.option.is-wrong { border-color: var(--error); }

/* sheet */
.sheet-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-p); padding: 16px; min-width: 0; position: sticky; top: 76px; }
.sheet-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-tools .tip { color: var(--muted); font-size: 13px; margin-left: auto; }
.fbar { display: grid; grid-template-columns: 72px 32px minmax(0, 1fr); align-items: stretch; border: 1px solid var(--grid-line); border-radius: var(--r-c) var(--r-c) 0 0; overflow: hidden; background: var(--surface); }
.fbar .name { display: grid; place-items: center; font: 600 13px/1 var(--mono); border-right: 1px solid var(--grid-line); background: var(--grid-head); }
.fbar .fx { display: grid; place-items: center; color: var(--muted); border-right: 1px solid var(--grid-line); }
.fbar input { border: 0; padding: 8px 10px; min-height: 40px; font-family: var(--mono); font-size: 15px; background: var(--surface); outline: none; width: 100%; font-variant-ligatures: none; }
.fbar input:focus-visible { box-shadow: inset 0 0 0 2px var(--select); }
.fbar input[readonly] { color: var(--muted); }
.gridwrap { overflow: auto; border: 1px solid var(--grid-line); border-top: 0; border-radius: 0 0 var(--r-c) var(--r-c); position: relative; max-height: 560px; outline: none; }
.gridwrap:focus-visible { outline: none; }
table.grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; }
.grid th, .grid td { border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); height: 34px; padding: 0 8px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.grid thead th { background: var(--grid-head); color: var(--muted); font: 600 12px/34px var(--mono); text-align: center; position: sticky; top: 0; z-index: 2; padding: 0; }
.grid th.rh { background: var(--grid-head); color: var(--muted); font: 500 12px/1 var(--mono); text-align: center; width: 44px; position: sticky; left: 0; z-index: 1; padding: 0; }
.grid thead th.corner { left: 0; z-index: 3; }
.grid thead th.hl, .grid th.rh.hl { color: var(--text); background: var(--range); }
.grid td { background: var(--surface); cursor: cell; }
.grid td.num { text-align: right; }
.grid td.bool, .grid td.err { text-align: center; }
.grid td.err { color: var(--error); font-weight: 600; }
.grid td.formula-cell { }
.grid td.target { background: var(--target); color: var(--target-ink); }
.grid td.in-range { box-shadow: inset 0 0 0 9999px var(--range); }
.grid td.sel { outline: 2px solid var(--border); outline-offset: -2px; z-index: 1; }
.gridwrap:focus .grid td.sel, .gridwrap:focus-within .grid td.sel { outline-color: var(--select); }
.grid td.ok::after, .grid td.bad::after { content: ""; position: absolute; right: 2px; top: 2px; width: 7px; height: 7px; border-radius: 50%; }
.grid td.ok { box-shadow: inset 0 -3px 0 var(--success); }
.grid td.ok::after { background: var(--success); }
.grid td.bad { box-shadow: inset 0 -3px 0 var(--error); }
.grid td.bad::after { background: var(--error); }
.grid td.pointed { outline: 2px dashed var(--select); outline-offset: -3px; }
.grid td.textcell { text-align: left; }
.cell-editor { position: absolute; z-index: 4; border: 2px solid var(--select); background: var(--surface); color: var(--text); font: 500 14px/1 var(--mono); padding: 0 6px; outline: none; box-shadow: 0 2px 8px rgba(34, 40, 58, 0.18); font-variant-ligatures: none; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legend .lt { background: var(--target); border: 1px solid var(--grid-line); }
.legend .lok { background: var(--success); border-radius: 50%; width: 8px; height: 8px; }
.legend .lbad { background: var(--error); border-radius: 50%; width: 8px; height: 8px; }

/* done + test + certificate */
.donepage { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; display: grid; gap: 24px; }
.donepage h1 { font-size: clamp(32px, 4vw, 44px); }
.donepage .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-c); padding: 16px; }
.fact b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 14px; }
.cert { background: #FFFFFF; color: #22283A; border: 1px solid #E4DFD2; border-radius: var(--r-p); padding: 40px; display: grid; gap: 16px; aspect-ratio: 297 / 210; align-content: start; max-width: 720px; }
.cert .top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid #365CFF; padding-bottom: 16px; }
.cert .top span { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #5C6475; }
.cert .label { color: #22283A; margin-top: 16px; }
.cert .name { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.cert .small { font-size: 13px; color: #5C6475; }
.cert .course { font-size: 22px; font-weight: 600; }
.cert .foot-line { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #E4DFD2; padding-top: 12px; margin-top: auto; font-size: 13px; color: #5C6475; }
.cert .logo { height: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input { min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-c); padding: 8px 12px; background: var(--surface); }
.results { width: 100%; border-collapse: collapse; }
.results td { border-bottom: 1px solid var(--rule); padding: 8px 4px; font-size: 15px; }
.results td:last-child { text-align: right; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill.ok { background: var(--success-surface); color: var(--success); }
.pill.bad { background: var(--error-surface); color: var(--error); }
.pill.note { background: var(--warning-surface); color: var(--warning); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .lesson-wrap { grid-template-columns: 1fr; padding: 16px; }
  .sheet-panel { position: static; }
  .topbar { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .lesson-bar .ltitle, .back span { display: none; }
  .lesson-bar { gap: 8px; }
  .logo { height: 28px; }
  .donepage .facts { grid-template-columns: 1fr; }
  .lessons li { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .lessons .lcount { display: none; }
}
@media (max-width: 520px) {
  .page { padding: 24px 16px 48px; }
  .module { grid-template-columns: 1fr; gap: 8px; }
  .stats .chip.optional { display: none; }
  .cert { padding: 24px; aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the practice app on the website */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.foot-links { display: inline-flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot-links a { color: var(--muted); font-size: 13px; }
.noscript { padding: 24px; font-family: var(--font); }
/* Cookie choices banner and panel (site/consent.js). Uses the brand tokens both stylesheets define. */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.cc-box { pointer-events: auto; position: relative; width: 100%; max-width: 640px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-p); box-shadow: 0 12px 32px rgba(34, 40, 58, 0.18); padding: 20px 22px; font-family: var(--font); font-size: 15px; line-height: 1.5; }
.cc-box h2 { font-size: 18px; line-height: 1.3; margin: 0 32px 6px 0; font-weight: 700; color: var(--text); }
.cc-box h2:focus { outline: none; }
.cc-box p { margin: 0; color: var(--text); }
.cc-box a { color: var(--action); text-decoration: underline; text-underline-offset: 0.2em; }
.cc-opts { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cc-opts[hidden] { display: none; }
.cc-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.cc-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.cc-opt label { display: grid; gap: 2px; cursor: pointer; }
.cc-opt label span { color: var(--muted); font-size: 14px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r-c); border: 1px solid transparent; background: var(--action); color: var(--on-action); font: 600 15px/1.25 var(--font); cursor: pointer; }
.cc-btn:hover { background: var(--action-hover); }
.cc-btn.cc-alt { background: transparent; color: var(--text); border-color: var(--border); }
.cc-btn.cc-alt:hover { background: var(--surface-2); }
.cc-btn:focus-visible, .cc-close:focus-visible, .cc-opt input:focus-visible, .cc-box a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cc-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: var(--r-c); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.cc-close:hover { background: var(--surface-2); }
@media (max-width: 480px) { .cc { left: 8px; right: 8px; bottom: 8px; } .cc-box { padding: 16px; } .cc-btn { flex: 1 1 auto; } }
@media print { .cc { display: none; } }
