:root {
  --ground: #f6f9fc; --surface: #fff; --ink: #0c2236; --ink-2: #3b4650; --muted: #55606a;
  --line: #e1e5e0; --line-strong: #c9d0cb;
  --teal: #0b6fb0; --teal-dark: #08558a; --teal-tint: #e3f1fb; --teal-bright: #7cc4f0; --side-1: #c8e6fa; --side-2: #e6f4fd; --accent2: #0d8a9f;
  --orange: #d9692a; --orange-tint: #fdebdd; --orange-ink: #8a3d0b;
  --night: #0c2236; --danger: #b42318; --danger-tint: #fde8e6; --good: #1c7a3c; --good-tint: #e5f4ea;
  --radius: 16px;
  --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.5 var(--font); }
a { color: var(--teal); } a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; } ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.stack { display: grid; gap: 16px; } .stack-lg { display: grid; gap: 24px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fineprint { font-size: 14px; color: var(--muted); }
.muted { color: var(--ink-2); }

.site-header { padding: 16px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; display: block; flex: none; }
.logo-full { display: block; max-width: 100%; height: auto; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav a.link { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 700; }
.nav a.link[aria-current="page"] { background: var(--teal-tint); color: var(--teal-dark); }
main { padding-bottom: 56px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; font: 700 17px var(--font); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; } .btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); } .btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid var(--danger); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; text-decoration: underline; cursor: pointer; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.card h2 { font-size: 22px; }
.card .sub { color: var(--ink-2); }
.chip { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--teal-tint); color: var(--teal-dark); font-size: 14px; font-weight: 700; }
.chip-plain { background: #eef0ed; color: var(--ink-2); }
.notice { border-radius: 12px; padding: 12px 16px; border: 1px solid var(--line-strong); background: var(--surface); }
.notice-error { background: var(--danger-tint); border-color: #f3b3ad; color: #7a1a12; }
.notice-warn { background: var(--orange-tint); border-color: #f1c39f; color: var(--orange-ink); }
.notice-good { background: var(--good-tint); border-color: #b5dcc2; color: #14532b; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; }
.field .hint { font-size: 14px; color: var(--muted); }
.text-input, select.text-input { width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: 17px var(--font); background: #fff; color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); }
.code-box { font: 700 34px/1 var(--font-display); letter-spacing: .12em; background: var(--teal-tint); color: var(--teal-dark); padding: 16px 20px; border-radius: 14px; text-align: center; }

/* landing */
.hero { padding: 32px 0 48px; display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 700; margin-top: 10px; }
.hero .lead { font-size: 19px; color: var(--ink-2); margin-top: 16px; max-width: 34em; }
.preview-card { background: var(--night); color: #fff; border-radius: 24px; padding: 24px; display: grid; gap: 16px; }
.preview-label { font-size: 13px; color: #b7c2cb; text-transform: uppercase; letter-spacing: .06em; }
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* dashboard */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; font: 700 16px var(--font); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.grid-2 { display: grid; gap: 16px; } @media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.hero-ready { background: var(--night); color: #fff; border-radius: 24px; padding: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero-ready .band { font: 600 26px var(--font-display); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { font: 600 26px var(--font-display); display: block; }
.stat span { font-size: 14px; color: var(--muted); }
.delta-up { color: var(--good); font-weight: 700; } .delta-down { color: var(--danger); font-weight: 700; }
.topic-rows { display: grid; gap: 14px; }
.topic-row .top { display: flex; justify-content: space-between; gap: 12px; }
.meter { height: 10px; background: #eef0ed; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; border-radius: 6px; background: var(--teal); }
.meter span.developing { background: #c99a1e; } .meter span.focus { background: var(--orange); }
.status { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef0ed; color: var(--ink-2); }
.status.strong { background: var(--good-tint); color: var(--good); } .status.focus { background: var(--orange-tint); color: var(--orange-ink); }
.chart text { fill: var(--muted); font: 12px var(--font); }
.chart .bar { fill: var(--teal); } .chart .line { stroke: var(--teal); fill: none; stroke-width: 3; } .chart .dot { fill: var(--teal); }
.chart .grid { stroke: var(--line); }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }

/* student */
.student-top { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.streak { display: inline-flex; gap: 6px; align-items: center; background: var(--orange-tint); color: var(--orange-ink); padding: 6px 14px; border-radius: 99px; font-weight: 700; }
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 16px; }
.progress-bar { height: 8px; background: #eef0ed; border-radius: 4px; overflow: hidden; } .progress-bar span { display: block; height: 100%; background: var(--teal); }
.question { font: 600 22px/1.3 var(--font-display); white-space: pre-line; }
.passage { background: #f3f5f1; border-radius: 12px; padding: 12px 16px; white-space: pre-line; }
.options { display: grid; gap: 10px; }
.option input { position: absolute; opacity: 0; }
.option label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--line-strong); border-radius: 14px; cursor: pointer; background: #fff; }
.option input:checked + label { border-color: var(--teal); background: var(--teal-tint); }
.option input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.letter { width: 30px; height: 30px; border-radius: 50%; background: #eef0ed; display: grid; place-items: center; font-weight: 700; flex: none; }
textarea.text-input { min-height: 140px; resize: vertical; }
.fb-head { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.fb-good { background: var(--good-tint); color: #14532b; } .fb-some { background: var(--orange-tint); color: var(--orange-ink); } .fb-miss { background: var(--danger-tint); color: #7a1a12; }
.note { border-left: 4px solid var(--teal); background: #f6faf9; padding: 10px 14px; border-radius: 8px; display: grid; gap: 2px; }
.note .tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-dark); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid #cfd6d2; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* Parent report: print or "save as PDF" from the dashboard. */
.print-only { display: none; }
@media print {
  body { background: #fff; font-size: 14px; }
  .site-header, .site-footer, .no-print, .tabs { display: none !important; }
  .print-only { display: block; margin-bottom: 8px; }
  .card, .hero-ready { break-inside: avoid; box-shadow: none; }
  .hero-ready { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { max-width: none; padding: 0; }
  main { padding-bottom: 0; }
}

/* Staff tools (admin/index.html) */
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.q-prompt { font-weight: 700; white-space: pre-line; }
.q-options { display: grid; gap: 6px; }
.q-options li { padding: 6px 12px; border-radius: 10px; background: #f3f5f1; display: flex; gap: 10px; }
.q-options li.correct { background: var(--good-tint); color: #14532b; font-weight: 700; }
.q-block { background: #f6faf9; border-left: 4px solid var(--teal); border-radius: 8px; padding: 8px 12px; white-space: pre-line; }
.q-block b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-dark); }
.chip-warn { background: var(--orange-tint); color: var(--orange-ink); }
/* Fields in a grid line up label to label, box to box and hint to hint, even when a label wraps onto two lines. */
.admin-grid { display: grid; gap: 12px; align-items: start; }
@supports (grid-template-rows: subgrid) { @media (min-width: 700px) { .admin-grid > .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; } } }
input[type="date"].text-input, input[type="number"].text-input, input[type="time"].text-input { min-height: 48px; appearance: none; -webkit-appearance: none; }
.text-input:focus-visible, textarea.text-input:focus-visible { outline: 3px solid var(--focus, #7fb7e6); outline-offset: 1px; } @media (min-width: 700px) { .admin-grid.cols-2 { grid-template-columns: 1fr 1fr; } .admin-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Step-by-step explanation (AI-written). */
.note .steps { display: block; margin: 4px 0 0; padding-left: 22px; list-style-position: outside; }
.note .steps li { display: list-item; margin: 0 0 6px; padding: 0; border: 0; }
.note ol.steps { list-style-type: decimal; }
.note ul.steps { list-style-type: disc; }

/* Smart practice */
.reason { margin: 0; padding: 8px 12px; border-radius: 10px; background: #eef6f5; color: var(--teal-dark); font-weight: 600; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.skill-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Mock exam */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mock-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.mock-clock { font-size: 24px; font-variant-numeric: tabular-nums; }
.mock-low { color: var(--orange-ink); }
.mock-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-dot { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line-strong); background: #fff; font-weight: 700; cursor: pointer; }
.mock-dot.is-done { background: var(--teal-tint); border-color: var(--teal); }
.mock-dot.is-flag { border-color: var(--orange); box-shadow: inset 0 -4px 0 var(--orange); }
.mock-dot.is-current { outline: 3px solid var(--teal-dark); outline-offset: 2px; }
.review-item { border-top: 1px solid var(--line); padding: 8px 0; }
.review-item summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; flex-wrap: wrap; }
.btn[aria-pressed="true"] { outline: 3px solid var(--teal); outline-offset: 1px; }

/* Support */
.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticket-row { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: inherit; text-decoration: none; background: #fff; }
.ticket-row:hover, .ticket-row:focus-visible { border-color: var(--teal); }
.thread { display: grid; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; }
.msg-staff { background: var(--teal-tint); border-color: #b6d8f0; }
.msg-internal { background: var(--orange-tint); border-color: #f1c39f; }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-chip { border: 1px solid var(--line-strong); background: #fff; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 15px; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.file-chip:hover, .file-chip:focus-visible { border-color: var(--teal); }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.field-error { color: var(--danger); margin: 0; }
.file-input { max-width: 100%; }

/* Coverage report */
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table thead th { background: var(--ground); position: sticky; top: 0; }
.sort-btn { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 0; color: inherit; }
.sort-btn:hover, .sort-btn:focus-visible { text-decoration: underline; }
.row-gap td { background: var(--orange-tint); }

/* App frame: side menu + top bar (staff portal and parent area) */
.app-shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; background: var(--ground); }
.app-side { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 16px 14px 24px; background: linear-gradient(180deg, var(--side-1), var(--side-2)); display: grid; align-content: start; gap: 14px; }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; font: 700 22px var(--font-display); color: var(--teal-dark); text-decoration: none; }
.app-nav [role="tablist"], .app-nav > div { display: grid; gap: 10px; }
.nav-card { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 15px var(--font); cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(12,34,54,.06); }
.nav-card:hover { border-color: var(--teal-bright); }
.nav-card:focus-visible, .nav-sub:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.nav-single.is-active { background: var(--teal); color: #fff; }
.nav-group-btn { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.nav-group-btn.has-active { border-color: var(--teal-bright); }
.nav-icon { width: 22px; text-align: center; }
.nav-label { flex: 1; }
.chev { font-size: 10px; color: var(--muted); }
.nav-group { background: var(--surface); border-radius: 14px; box-shadow: 0 1px 2px rgba(12,34,54,.06); }
.nav-group .nav-card { box-shadow: none; }
.nav-subs { display: grid; gap: 2px; padding: 0 8px 10px 40px; }
.nav-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: 600 15px var(--font); color: var(--ink-2); cursor: pointer; text-decoration: none; }
.nav-sub:hover { background: var(--teal-tint); color: var(--ink); }
.nav-sub.is-active { background: var(--teal); color: #fff; }
.side-badge { min-width: 24px; padding: 1px 8px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.app-body { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.app-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-search { flex: 1 1 220px; min-width: 160px; max-width: 460px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--ground); border: 1px solid var(--line); border-radius: 12px; }
.side-search { flex: 1; min-height: 40px; border: 0; background: none; font: 400 15px var(--font); color: var(--ink); outline: none; }
.top-search:focus-within { border-color: var(--teal); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.pill-online { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: #e3f6ea; color: #14683a; font-weight: 700; font-size: 14px; }
.pill-online .dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa65a; }
.pill-online.is-off { background: #fdeaea; color: #8f2020; } .pill-online.is-off .dot { background: #cc3a3a; }
.bell { position: relative; border: 0; background: none; font-size: 20px; cursor: pointer; }
.bell-count { position: absolute; top: -4px; right: -6px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: #fff; font: 700 12px var(--font); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent2); color: #fff; display: inline-grid; place-items: center; font: 700 15px var(--font); }
.who { display: grid; line-height: 1.2; } .who-name { font-size: 15px; } .who-role { font-size: 13px; color: var(--muted); }
.menu-toggle { display: none; }
.app-content { padding: 24px; min-width: 0; }
.app-content > .wrap { padding: 0; max-width: none; }
.welcome h1 { margin: 0 0 4px; } 
.cards-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat-card { display: grid; gap: 4px; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; }
.stat-card:hover { border-color: var(--teal); }
.stat-card b { font: 700 32px var(--font-display); color: var(--teal-dark); }
body.has-shell .site-header, body.has-shell .site-footer { display: none; }
body.has-shell { background: var(--ground); }
.parent-frame { display: block; }
body.has-shell .parent-frame { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; }
.parent-frame > #side-slot { display: none; }
body.has-shell .parent-frame > #side-slot { display: block; }
#side-slot .app-side { position: sticky; }
@media (max-width: 860px) {
  .app-shell, body.has-shell .parent-frame { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; position: static; height: auto; }
  .app-side.is-open { display: grid; }
  #side-slot .app-side { display: none; } #side-slot .app-side.is-open { display: grid; }
  .menu-toggle { display: inline-flex; }
  .who { display: none; }
  .app-top { padding: 10px 14px; } .app-content { padding: 16px 14px; }
}
@media print { .app-side, .menu-toggle, .app-top { display: none !important; } .app-shell { display: block; } }

/* Billing */
.plan-grid { display: grid; gap: 12px; }
.plan-card { display: grid; gap: 6px; padding: 14px 16px; border: 2px solid var(--line-strong); border-radius: 14px; background: #fff; cursor: pointer; }
.plan-card.is-picked { border-color: var(--teal); background: var(--teal-tint); }
.plan-card:focus-within { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.plan-radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-name { font-size: 20px; }
.chip-good { background: var(--good-tint); color: var(--good); }
.loading-pad { padding: 24px; }
body.has-shell main { padding-top: 24px; }
.summary { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--teal-tint); }
.summary p { margin: 0; }

/* How to use */
.howto-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.howto-tab { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 700 16px var(--font); cursor: pointer; }
.howto-tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.howto-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.howto-steps li { display: grid; gap: 2px; padding-left: 44px; position: relative; counter-increment: step; }
.howto-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-dark); font: 700 15px var(--font); display: grid; place-items: center; }
.howto-tips { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.howto-q h3 { margin: 0 0 2px; font-size: 17px; } .howto-q p { margin: 0 0 12px; }
.howto-tips { list-style: disc; }

/* Asking whether to carry on on this device */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(12,34,54,.55); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 460px; display: grid; gap: 12px; padding: 24px; background: var(--surface); border-radius: 18px; box-shadow: 0 20px 60px rgba(12,34,54,.35); }
.modal h2, .modal p { margin: 0; }

/* ---- Layout polish: one top bar row, inline filters, buttons that are not stretched ---- */
@media (min-width: 1000px) { .app-top { flex-wrap: nowrap; } .top-right { flex-wrap: nowrap; white-space: nowrap; } }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-row select, .filter-row select.text-input { width: auto; min-width: 180px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: 17px var(--font); background: #fff; color: var(--ink); }
.filter-row input[type="search"], .filter-row .text-input { flex: 1 1 260px; width: auto; min-width: 200px; }
.filter-row select.text-input { flex: 0 0 auto; }
.filter-row .btn { flex: none; min-height: 48px; }
@media (min-width: 700px) { .form > .btn, .form > button.btn { justify-self: start; } .narrow .form > .btn, .narrow .form > button.btn { justify-self: stretch; } }
.form h2 + .admin-grid, .form h2 + .field { margin-top: 2px; }
/* The page container takes focus after a page change so screen readers start at the top. Don't draw a ring around the whole page for that. */
#main:focus, #main:focus-visible { outline: none; }
body:not(.has-shell) #view { padding-top: 24px; }
@media (max-width: 699px) { .app-top .btn { padding: 6px 12px; min-height: 40px; } .top-right { margin-left: 0; width: 100%; justify-content: space-between; } .top-right #change-password { display: none; } }
.side-search { min-width: 0; width: 100%; }
[hidden] { display: none !important; }
