/* One stylesheet, mobile first, nothing loaded from another site (CSP: 'self' only). Light only, the owner's choice. */

/* Inter, the Aqoon typeface, served from here (CSP: font-src 'self'). Two files: the second (extended Latin: ɛ ɔ ɓ ɗ ƴ ŋ ɲ)
   is only fetched by a page that shows such a letter. N'Ko falls back to the phone's own font. Licence: fonts/OFL.txt. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.8e433c0592f7.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.ad4eb06671be.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The Aqoon brand (aqoon/backend/static/css/style.css): indigo on white and slate. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --tint: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #4f46e5; /* Aqoon's text and button indigo: white on it and it on white both pass WCAG AA */
  --primary-text: #ffffff;
  --brand: #6366f1; /* Aqoon's accent, for fills and outlines (not for normal-size text) */
  --teal: #0f766e; /* the teal of the Aqoon mark, darkened for text: invitations ("be among the first") */
  --accent: #f59e0b; /* amber: waiting, warnings, "this is you" */
  --clay: #dc2626; /* red: errors, refusals, danger (the name is from the first palette) */
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 16px;
  /* Light only, whatever the phone's setting: form fields and scrollbars too. */
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Like Aqoon: indigo links, underlined only inside running text (a link in a sentence must not rely on colour alone). */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:where(p, li, td, dd, label, span, figcaption) > a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.7rem); margin-top: 1.4em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 32px 0; }
.wrap.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 20px; }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.back { margin: 0 0 12px; font-size: 0.95rem; }
.back a, .back button { display: inline-block; padding: 8px 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.back a::before, .back button::before { content: "← "; }
.back a:hover, .back button:hover { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* --- top bar --- */
.topbar { border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
/* The Aqoon wordmark is lower case, next to the pixel icon. */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; text-transform: lowercase; }
.brand__icon { width: 26px; height: 26px; border-radius: 6px; background: #0d0d18; }
.topbar__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 14px; font-size: 0.95rem; }
.topbar__link { text-decoration: none; color: #475569; font-weight: 500; }
.topbar__link:hover { color: var(--text); text-decoration: none; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: var(--clay); color: #fff; font-size: 0.78rem; font-weight: 600; line-height: 1.4em; text-align: center; vertical-align: 1px; }
@media (max-width: 420px) { .topbar__nav { gap: 10px; font-size: 0.88rem; } }

.usermenu { position: relative; }
.usermenu__toggle { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: 999px; min-height: 44px; }
.usermenu__toggle::-webkit-details-marker { display: none; }
.usermenu__name { color: var(--text); max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 6px; display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.usermenu__panel form { margin: 0; }
.usermenu__link { display: block; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
.usermenu__link:hover, .usermenu__link:focus-visible { background: var(--tint); }
.usermenu__logout { color: var(--clay); border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; margin-top: 4px; }
@media (max-width: 520px) { .usermenu__name { display: none; } }

/* --- buttons --- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  line-height: 1.25; text-align: center; border-radius: var(--radius-sm); background: var(--brand); color: var(--primary-text);
  font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.button:hover { background: var(--primary); text-decoration: none; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35); }
.button--ghost:hover { background: #eef2ff; box-shadow: inset 0 0 0 2px var(--primary); }
.button--danger:hover { background: #b91c1c; box-shadow: none; }
.button--ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.button--small { min-height: 40px; padding: 6px 16px; font-size: .95rem; }
.button--big { min-height: 56px; font-size: 1.1rem; padding: 12px 28px; }
.button--block { width: 100%; }
.button--danger { background: var(--clay); }
.button[hidden] { display: none; }

/* --- messages --- */
.messages { padding-top: 16px; }
.message { margin: 0 0 8px; padding: 12px 14px; border-radius: 10px; background: var(--tint); border-left: 4px solid var(--primary); }
.message--danger, .message--error { border-left-color: var(--clay); }
.message--warning { border-left-color: var(--accent); }
/* Flash messages float over the top of the page (C10): the card under them never moves, so a tap meant for a button
   lands on it. Success and info fade after 5 s and let taps through; warnings and errors stay until closed (toasts.js). */
.toasts { position: fixed; top: 8px; left: 0; right: 0; z-index: 60; display: grid; gap: 8px; width: min(720px, 100% - 2 * var(--gutter)); margin: 0 auto; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; margin: 0; box-shadow: 0 6px 20px rgb(0 0 0 / 0.14); background: var(--surface); animation: toast-out 0.4s ease 5s forwards; }
.toast > span { flex: 1; }
.toast--stay { pointer-events: auto; animation: none; }
.toast__close { flex: none; min-width: 32px; min-height: 32px; margin: -6px -6px -6px 0; border: 0; background: none; font: inherit; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; }
@keyframes toast-out { to { opacity: 0; visibility: hidden; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { @keyframes toast-out { to { opacity: 0; visibility: hidden; } } }

/* --- forms --- */
.form { display: grid; gap: 16px; margin: 20px 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.field--error input, .field--error select { border-color: var(--clay); }
.help { color: var(--muted); }
.error { color: var(--clay); font-weight: 600; }
.req { color: var(--clay); }
/* The anti-spam honeypot (main.antispam): there for bots, never for people */
.field:has(.hp-input) { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- footer --- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0; margin-top: 24px; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding-top: 12px; }
.footer__about p { margin: 0 0 8px; color: var(--muted); max-width: 36ch; }
.footer__about .footer__brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-transform: lowercase; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.footer__col h2 { font-size: 0.95rem; margin: 0 0 6px; }
.footer__col a { color: var(--text); text-decoration: none; padding: 6px 0; overflow-wrap: anywhere; }
.footer__col a:hover, .footer__col a:focus-visible { color: var(--primary); text-decoration: underline; }
.footer__bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}

.inline-form { display: inline; margin: 0; }
.paytable-ref { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.paytable-ref input { min-height: 40px; padding: 6px 10px; font: inherit; border: 1px solid var(--border); border-radius: 10px; width: 14em; }

/* --- the ranking and the profile --- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tabs__tab { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; }
.tabs__tab:hover { text-decoration: none; border-color: #cbd5e1; }
.tabs__tab.is-current { background: var(--brand); border-color: var(--brand); color: var(--primary-text); }
.ranking th[scope=row] { text-align: left; font-weight: 600; }
.ranking .is-me { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.ranking__gap td { text-align: center; color: var(--muted); }

/* --- avatars: a preset picture, or an initial on a coloured circle (templatetags/avatars.py) --- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; vertical-align: middle; color: #fff; font-weight: 700; line-height: 1; background: var(--primary); }
.avatar--xs { width: 22px; height: 22px; font-size: 0.7rem; }
.avatar--sm { width: 32px; height: 32px; font-size: 0.95rem; }
.avatar--md { width: 44px; height: 44px; font-size: 1.15rem; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.7rem; }
.avatar--c0 { background: #4f46e5; }
.avatar--c1 { background: #b45309; }
.avatar--c2 { background: #0f766e; }
.avatar--c3 { background: #be185d; }
.avatar--c4 { background: #7a3fb2; }
.avatar--c5 { background: #2f6f9f; }
.avatar--neutral { background: #64748b; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.panel__by { display: flex; align-items: center; gap: 6px; }
.avatars { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.avatars legend { font-weight: 600; padding: 0; }
.avatars__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.avatars__choice { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: center; }
.avatars__choice:hover { background: var(--tint); }
.avatars__choice:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.avatars__choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
.avatars__name { font-size: 0.8rem; color: var(--muted); }

/* --- points and badges --- */
.ranking .points { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.badges { white-space: nowrap; }
.badge { display: inline-block; vertical-align: middle; border-radius: 50%; }
.badge--xs { width: 24px; height: 24px; margin-right: 2px; }
.badge--sm { width: 36px; height: 36px; }
.badge--md { width: 56px; height: 56px; }
.badges__more { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.badgegrid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badgecard { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; text-align: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.badgecard.is-locked .badge { filter: grayscale(1); opacity: 0.4; }
.badgecard.is-locked { background: var(--bg); }
.badgecard__name { font-size: 0.95rem; }
.badgecard__text { font-size: 0.82rem; color: var(--muted); }
.badgecard__state { font-size: 0.8rem; font-weight: 600; margin-top: 2px; }
.badgecard.is-earned .badgecard__state { color: var(--primary); }

.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.filterbar select { min-height: 40px; padding: 6px 10px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* --- the dictionary --- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card__title { margin: 0; font-size: 1.25rem; }
.card__title a { text-decoration: none; }
.card__sub { margin: 2px 0 8px; font-size: 0.9rem; }
.card__count { margin: 6px 0 2px; }
.card__links { margin: 8px 0 0; }
.meter { width: 100%; height: 12px; accent-color: var(--primary); }

.filterbar__q { flex: 1 1 200px; min-height: 40px; padding: 6px 12px; font: inherit; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.wordlist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; }
.wordlist__item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.wordlist__word { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.wordlist__meta { font-size: 0.88rem; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--tint); color: var(--text); font-size: 0.82rem; font-weight: 600; vertical-align: 1px; }
.tag--ok { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); color: var(--primary); }
.tag--empty { background: color-mix(in srgb, var(--accent) 25%, var(--surface)); }

.slot { margin: 0 0 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.slot__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; min-height: 48px; cursor: pointer; }
.slot__lang { font-weight: 800; font-size: 1.1rem; }
.slot__accepted { font-size: 1.1rem; }
.slot__body { padding: 0 16px 16px; }
.trlist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.tr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.tr--accepted { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.tr__main { flex: 1 1 220px; min-width: 0; }
.tr__text { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.tr__nko { font-size: 1.25rem; margin-left: 8px; }
.tr__meta { margin: 2px 0 6px; font-size: 0.9rem; }
.tr__audio { width: 100%; max-width: 320px; }
.tr__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }

.recorder { margin: 0; }
.recorder__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.recorder__bar[hidden], .recorder__preview[hidden], .field[hidden] { display: none; }
.recorder__preview { width: 100%; max-width: 360px; margin-bottom: 8px; }

.queue { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.queue__item { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.queue__name { margin: 0 0 4px; font-size: 1.2rem; }
.queue__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.queue__form input[type=number] { width: 8em; min-height: 40px; padding: 6px 10px; font: inherit; border: 1px solid var(--border); border-radius: 10px; }
.queue__reason { flex: 1 1 18em; min-width: 0; min-height: 40px; padding: 8px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.queue__reason::placeholder { color: var(--muted); }
.queue__reason:focus { outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 1px; border-color: var(--primary); }

.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); }
.table thead th { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.table .num { text-align: right; }
.tr__source { font-size: 0.85rem; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.banner .button { flex: none; }

/* --- the two-tone progress bar: an SVG whose rectangles carry their size as attributes (no inline style) --- */
.bar { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; }
.bar__rest { fill: #e2e8f0; }
.bar__waiting { fill: #c7d2fe; }
.bar__accepted { fill: #6366f1; }
.card__waiting { display: block; color: #4338ca; font-size: 0.9rem; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; font-size: 0.9rem; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend__swatch--accepted { background: #6366f1; }
.legend__swatch--waiting { background: #c7d2fe; }

/* --- sentence tasks --- */
.tasks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.task__link { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); min-height: 64px; }
.task__link:hover, .task__link:focus-visible { border-color: var(--primary); text-decoration: none; }
.task__name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text); }
.task__link:hover .task__name { color: var(--primary); }
.task__text { grid-column: 1; color: var(--muted); }
.task__link .tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.progress__line { margin: 12px 0 4px; }
.sentence { font-size: 1.5rem; line-height: 1.35; margin: 4px 0 16px; overflow-wrap: anywhere; }
.sentence--target { font-weight: 700; color: var(--primary); }
.sentence--nko { font-size: 1.7rem; }
.verdict { display: grid; gap: 10px; margin: 20px 0; }
@media (min-width: 560px) { .verdict { grid-template-columns: 1fr 1fr; } }
.verdict__rules { margin: 12px 0 0; font-size: 0.95rem; color: var(--muted); }
/* "Non": the reasons and the countdown take the place of the two buttons (static/js/verdict.js) */
.verdict--asking > .button[name="verdict"] { display: none; }
.verdict__why { grid-column: 1 / -1; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; }
.reasons__title { width: 100%; margin-bottom: 4px; font-weight: 600; }
.reason input { position: absolute; opacity: 0; }
.reason span { display: inline-block; padding: 8px 14px; border: 1px solid var(--clay); border-radius: 999px; cursor: pointer; }
.reason input:checked + span { background: var(--clay); color: #fff; }
.reason input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.verdict__countdown { margin: 0 0 10px; }
.verdict__actions { display: flex; gap: 10px; }
.verdict__actions .button { flex: 1; }
.reasons-given { margin: 2px 0 0; font-size: 0.9rem; }
.listen__audio { width: 100%; margin: 8px 0 16px; }

/* --- the lexicon is secondary on the home page: smaller cards --- */
.lexicon__title { font-size: 1.15rem; margin-top: 2em; }
.cards--small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cards--small .card { padding: 10px 12px; }
.cards--small .card__title { font-size: 1rem; }
.cards--small .card__sub { display: none; }
.cards--small .card__links { font-size: 0.9rem; }
.hint { margin: 0 0 12px; padding: 8px 12px; background: var(--tint); border-radius: 10px; font-size: 0.95rem; }
.warmup { margin: 16px 0; padding: 14px; border: 2px dashed var(--primary); border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.theme { font-size: 1.1rem; margin: 1.4em 0 0.2em; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- on-screen keys under a text field --- */
.keyboard { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.key { min-width: 44px; min-height: 44px; padding: 4px 8px; font: inherit; font-size: 1.15rem; color: var(--text); background: var(--tint); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.key:hover, .key:focus-visible { border-color: var(--primary); }
.key--mark { color: var(--clay); font-size: 1.5rem; line-height: 1; font-family: Arial, "Noto Sans", Roboto, sans-serif; } /* the system font on macOS draws "◌ + accent" as a broken glyph */
.key--shift[aria-pressed=true] { background: var(--primary); color: var(--primary-text); }
.keyboard--nko .key { font-size: 1.4rem; }

/* --- the offline queue's status bar --- */
.syncbar { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 80; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 14px; background: var(--text); color: #fff; border-radius: 12px; font-size: 0.95rem; box-shadow: 0 6px 20px rgb(0 0 0 / .3); }
.syncbar[hidden] { display: none; }
.syncbar button { min-height: 36px; padding: 2px 12px; font: inherit; color: var(--text); background: #fff; border: 0; border-radius: 999px; cursor: pointer; }
.syncbar__bad { color: #ffb4a3; }
.prompt { margin: 0 0 14px; }

/* --- the guided first visit and the suggested task --- */
.langrow { margin: 0 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; gap: 6px; }
.langrow legend { font-weight: 800; padding: 0 6px; }
.cards__title { margin: 28px 0 12px; }
.abilities { margin: 16px 0; padding: 14px; border: 2px solid var(--primary); border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.abilities h2 { margin-top: 0; }
.abilities__why { font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
.check input { width: 22px; height: 22px; flex: none; }
.check--mother { color: var(--primary); font-weight: 600; }
.why { padding-left: 1.2em; font-size: 1.1rem; }
.why li { margin: 0 0 14px; }
.choices { border: 0; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.choices__title { font-size: 1.35rem; font-weight: 800; padding: 0; margin: 0 0 4px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 400; }
.choice input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.choice > span { display: grid; gap: 2px; }
.choice:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.choice--off { opacity: 0.6; cursor: default; }
.suggested { margin: 12px 0; font-size: 1.15rem; }
.task--suggested .task__link { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }

/* --- a round of cards (lexicon.rounds): "Card 3 of 10" and "Stop here" --- */
.round { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.round__bar { flex: 1 1 120px; height: 8px; accent-color: var(--primary); }
.round__count { font-size: .9rem; }
.round__cap { font-size: 0.9rem; color: var(--muted); }
.round__cap--full { color: var(--clay); font-weight: 600; }
.round__stop { margin: 0; }

/* --- "Your work in …" (lexicon.mywork): the summary on the language page, and the list behind it --- */
.tag--no { background: color-mix(in srgb, var(--clay) 18%, var(--surface)); color: var(--clay); }
.mywork { margin: 0 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--tint); }
.mywork__title { margin: 0 0 10px; font-size: 1.1rem; }
.mywork__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mywork__table th, .mywork__table td { padding: 4px 6px; text-align: right; }
.mywork__table th[scope=row], .mywork__table thead th:first-child { text-align: left; font-weight: 600; }
.mywork__table thead th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.mywork__list { list-style: none; margin: 0 0 24px; padding: 0; }
.mywork__item { padding: 12px 0; border-bottom: 1px solid var(--tint); }
.mywork__item p { margin: 4px 0; }
.mywork__item audio { width: 100%; max-width: 360px; margin: 4px 0; }
.mywork__meta { font-size: .85rem; }

/* --- model scores on the dashboard (lexicon.scores.chart): two series, validated for colour-blind readers --- */
.scorechart { margin: 0 0 24px; }
.scorechart figcaption { margin-bottom: 4px; }
.scorechart__svg { display: block; width: 100%; max-width: 640px; height: auto; overflow: visible; }
.scorechart__grid { stroke: var(--border); stroke-width: 1; }
.scorechart__axis { fill: var(--muted); font-size: 12px; }
.scorechart__value { fill: var(--text); font-size: 13px; font-weight: 600; }
.scorechart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.scorechart__dot { stroke: var(--surface); stroke-width: 2; }
.scorechart__hit { fill: transparent; }
.scorechart__point:hover .scorechart__dot { r: 6; }
.scorechart__line.series-1 { stroke: #2a78d6; }
.scorechart__line.series-2 { stroke: #eb6834; }
.scorechart__dot.series-1, .scorelegend__swatch.series-1 { fill: #2a78d6; background: #2a78d6; }
.scorechart__dot.series-2, .scorelegend__swatch.series-2 { fill: #eb6834; background: #eb6834; }
.scorelegend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 6px; padding: 0; font-size: 0.88rem; color: var(--muted); }
.scorelegend__swatch { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* --- the language page: one start button, then the tasks in two groups (language_hub.html) --- */
.start { margin: 18px 0 22px; }
.start__button { font-size: 1.1rem; padding: 14px 24px; min-height: 52px; }
.start .muted { margin: 8px 0 0; }
.hub-tasks { margin: 20px 0; border-top: 1px solid var(--border); padding-top: 4px; }

/* --- the landing page (home.html): a quiet hero, then the language chooser as the one strong element --- */
.hero { padding-top: 48px; padding-bottom: 40px; }
.hero__title { font-size: clamp(2.2rem, 7.5vw, 3.6rem); max-width: 22ch; margin-bottom: 0.4em; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.hero__actions { margin: 0 0 10px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: center; }
.hero__card { margin: 0; padding: 22px 22px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); }
.hero__card .sentence { font-size: 1.3rem; }
.hero__verdict { display: flex; gap: 8px; margin: 4px 0 12px; }
.hero__verdict .button { flex: 1; pointer-events: none; }
.hero__card figcaption { font-size: 0.85rem; text-align: center; }
@media (max-width: 900px) {
  .hero { display: block; }
  .hero__card { display: none; }
}
.chooser { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0 40px; }
.chooser__title { margin-top: 0; }
.chooser__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 24px; }
.chooser__item { display: grid; gap: 4px; padding: 18px 4px 16px; border-top: 1px solid #cbd5e1; color: var(--text); text-decoration: none; min-height: 44px; }
.chooser__item:hover .chooser__name, .chooser__item:focus-visible .chooser__name { text-decoration: underline; text-underline-offset: 4px; }
.chooser__item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.chooser__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.15; }
.chooser__item:hover .chooser__name { color: var(--primary); }
.chooser__item:hover { text-decoration: none; }
.chooser__other { color: var(--muted); font-size: 0.95rem; }
.chooser__bar { display: block; width: 100%; height: 4px; margin-top: 10px; }
.chooser__bar-rest { fill: var(--border); }
.chooser__bar-done { fill: var(--brand); }
.chooser__count { color: var(--muted); font-size: 0.85rem; }
/* home: the three steps, side by side on a wide screen, the number large in laterite */
.howto { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.howto__step { counter-increment: step; display: flex; flex-direction: column; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.howto__step::before { content: counter(step); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--brand); margin-bottom: 10px; }
.howto__step h3 { font-size: 1.15rem; margin: 0 0 6px; }
.howto__step p { margin: 0 0 14px; color: var(--muted); flex: 1; }
.howto__step a { font-weight: 600; }
.howto__more { margin-top: 18px; }
.hero__paid { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: var(--primary); font-weight: 700; }
.hero__paid a { color: inherit; }

/* the paid pilot (profile → Payment) */
.earnings { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--tint); }
.earnings a { color: var(--text); text-decoration: none; }
.earnings strong { color: var(--primary); font-size: 1.2rem; }
.earnings small { display: block; color: var(--muted); }
.paytable td.is-paid { color: var(--primary); font-weight: 600; }
.pay__count { margin: 8px 0 4px; font-size: 1.1rem; }
.pay__count strong { font-size: 2.2rem; color: var(--primary); }
.pay__split { margin: 0 0 12px; }
.pay__bar { display: block; width: 100%; height: 8px; margin-bottom: 16px; }
.plain-list { margin: 0 0 12px; padding-left: 1.2em; max-width: 64ch; }
.plain-list li { margin: 0 0 6px; }

/* --- the top bar on phones: brand, "Menu", and the login button or the avatar (base.html) --- */
.navmenu { display: none; }
.navmenu__toggle { padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500; color: var(--text); }
.navmenu .usermenu__panel { right: auto; left: 0; }
/* folded optional fields (the N’Ko form) */
.fold { margin: 4px 0 14px; }
.fold > summary { cursor: pointer; color: var(--primary); font-weight: 600; padding: 10px 0; }

@media (max-width: 760px) {
  /* task cards: Send and Skip stay under the thumb, however long the form */
  form[data-offline] .actions { position: sticky; bottom: 0; z-index: 5; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
  .topbar__wide { display: none; }
  .navmenu { display: block; }
  .topbar__nav { flex-wrap: nowrap; gap: 8px; }
  .navmenu .usermenu__panel { left: auto; right: 0; }
}
.chooser__count--first { margin-top: 10px; color: var(--teal); font-weight: 600; }
.progress__first { color: var(--teal); font-weight: 600; }

/* --- notifications (the 🔔, from iamafrican.org) --- */
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; font-size: 1.2rem; }
.bell:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.bell__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--clay); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.linkbutton { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }
.notifications { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.notification a { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.notification a:hover { border-color: var(--primary); }
.notification.is-unread a { border-left: 4px solid var(--primary); font-weight: 600; }
.notification__icon { font-size: 1.3rem; text-align: center; }
.notification__text { display: grid; gap: 2px; }
.notification__text small { color: var(--muted); font-weight: 400; }
.notification__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.empty { color: var(--muted); }

/* The contributor's home (lexicon/home_mine.html): the next task, the month's pay, the other languages. */
.myhome__head { margin: 0 0 12px; }
.myhome__head h1 { margin: 0; }
.myhome__card { margin: 0 0 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.28); }
.myhome__task { border-top-color: var(--primary); }
.myhome__pay { border-top-color: var(--accent); }
.myhome__label { margin: 0 0 8px; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.myhome__task .start { margin: 0 0 18px; }
.myhome__stat { margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; }
.myhome__stat strong { color: var(--text); }
.myhome__more { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: none; }
.myhome__more:hover { text-decoration: underline; }
.myhome__amount { margin: 0; color: var(--primary); font-size: clamp(2.4rem, 10vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.myhome__amount span { margin-left: 8px; color: var(--muted); font-size: 0.42em; font-weight: 700; letter-spacing: 0; }
.myhome__waiting { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-size: 0.95rem; }
.myhome__waiting strong { color: #92400e; }
.myhome__topay { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.myhome__others h2 { margin: 24px 0 10px; font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--tint); font-size: 0.9rem; }
.chip--link { min-height: 44px; padding: 8px 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--primary); font-weight: 600; text-decoration: none; }
.chip--link:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.chip--add { background: transparent; box-shadow: none; border: 1.5px dashed var(--border); }
.myhome__moderation { border-top-color: var(--brand); }
.myhome__todo { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.myhome__todo a { display: block; padding: 10px 12px; border-radius: 10px; background: var(--tint); color: var(--text); text-decoration: none; }
.myhome__todo a:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.myhome__todo strong { color: var(--primary); font-size: 1.1rem; }

/* The unfinished-tour reminder: one strip, never above the fold's main action for long. */
.tourstrip { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--tint); font-size: 0.9rem; }
.tourstrip__text { flex: 1; }
.tourstrip__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.tourstrip__close:hover, .tourstrip__close:focus-visible { background: var(--surface); color: var(--text); }
/* The month's pay in a round's header. */
.round__pay { flex-basis: 100%; font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.round__pay strong { color: var(--primary); }
.usermenu__who { margin: 4px 12px 6px; color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The sentences hub's languages: one list, one tappable row per language (lexicon/_language_list.html). */
.langlist { max-width: 720px; margin: 0 0 12px; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.langlist li + li { border-top: 1px solid var(--border); }
.langlist__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name go" "stat go"; gap: 4px 12px; align-items: center; min-height: 64px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.langlist__row:hover, .langlist__row:focus-visible { background: var(--tint); }
.langlist__name { grid-area: name; color: var(--primary); font-size: 1.1rem; font-weight: 800; }
.langlist__name small { margin-left: 6px; font-size: 0.85rem; font-weight: 400; }
.langlist__stat { grid-area: stat; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 0.9rem; }
.langlist__stat .bar { flex: 0 1 140px; height: 6px; }
.langlist__go { grid-area: go; color: var(--muted); font-size: 1.6rem; line-height: 1; }
.langlist__add { grid-area: go; color: var(--primary); font-size: 0.9rem; font-weight: 700; }

/* The lexicon page (lexicon/words.html): progress per language as rows, and each word's eight languages as marks. */
.wordstats { max-width: none; } /* the lexicon page: as wide as the word list below it */
.wordstats__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 16px; }
.wordstats__name { font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.wordstats__count { color: var(--muted); font-size: 0.9rem; text-align: right; }
.wordstats__bar { grid-column: 1 / -1; height: 6px; }
.wordstats__links { grid-column: 1 / -1; font-size: 0.9rem; }
.wordstats__empty { margin: 0 0 20px; }
.wordlist__item { align-items: center; }
.wordmarks { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.wordmark { display: inline-grid; place-items: center; width: 28px; height: 24px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; cursor: default; }
.wordmark--accepted { background: #4f46e5; color: #fff; }
.wordmark--vote { background: #c7d2fe; color: #312e81; }
.wordlist__sentence { flex: 1 1 320px; font-weight: 600; font-size: 1rem; }
.sentence-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.tr__clip { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.slot__sub { margin: 16px 0 8px; font-size: 1rem; }
.wordmark--none { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }

/* Vote on words: one big button per proposed spelling */
.spellings { display: grid; gap: 10px; margin: 16px 0 20px; }
.spellings__choice { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; text-align: center; }
label.spellings__choice { align-items: center; justify-content: flex-start; text-align: left; min-height: 56px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 1.2rem; font-weight: 600; cursor: pointer; }
label.spellings__choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); flex: none; }
label.spellings__choice:has(input:checked) { border-color: var(--primary); background: var(--tint); }
label.spellings__choice:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.spellings__nko { font-size: .95em; }
.spellings__dialect { font-size: .8em; font-weight: 400; }

/* --- the menu's "Contribuer" dropdown (base.html): Phrases and Lexique --- */
.navdrop__toggle { color: #475569; font-weight: 500; min-height: 40px; padding: 4px 2px; border-radius: 6px; }
.navdrop__toggle::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.navdrop[open] .navdrop__toggle::after { margin-top: 3px; transform: rotate(-135deg); }
.navdrop .usermenu__panel { right: auto; left: 0; min-width: 180px; }

/* --- the language page's title is its language switcher ("Pular ▾", language_hub.html) --- */
.langswitch { display: inline-block; margin: 0 0 0.5em; }
.langswitch__toggle { list-style: none; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.langswitch__toggle::-webkit-details-marker { display: none; }
.langswitch__toggle h1 { margin: 0; }
.langswitch__toggle::after { content: ""; width: 12px; height: 12px; margin-top: -8px; border: solid var(--primary); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.langswitch[open] .langswitch__toggle::after { margin-top: 6px; transform: rotate(-135deg); }
.langswitch .usermenu__panel { right: auto; left: 0; min-width: 280px; max-height: 60vh; overflow-y: auto; }
.langswitch .usermenu__link.is-current { font-weight: 700; color: var(--primary); }
.langswitch__all { border-top: 1px solid var(--border); margin-top: 4px; color: var(--primary); }

/* --- “Mon compte”: deleting the account sits apart, at the bottom (profile_account.html) --- */
.dangerzone { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--clay); border-radius: var(--radius); }
.dangerzone h2 { color: var(--clay); font-size: 1.2rem; }

/* --- "Mes langues": a language's voice fields show once it is spoken (profile_languages.html) --- */
.langrow__voice { display: none; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border); }
.langrow:has(input[name^="speaks_"]:checked) .langrow__voice, .langrow:has(input[name="mother_tongue"]:checked) .langrow__voice { display: block; }
.langrow__voicehead { margin: 0 0 6px; color: var(--muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* a send button waiting for a recording (recorder.js, data-needs-take) */
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.searchrow{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
.searchrow input{flex:1 1 14rem}

/* --- the Aqoon hero (home.html, body.landing) and the Aqoon sign-in card (accounts pages, body.auth) ---
   Aqoon's landing and sign-in pages sit on a dark slate gradient with white text; the rest of the site stays light. */
.landing .topbar, .auth .topbar { position: relative; z-index: 2; background: transparent; border-bottom-color: transparent; }
.landing .brand, .auth .brand { color: #fff; }
.landing .topbar .brand__icon, .auth .topbar .brand__icon { background: #fff; }
.landing .topbar__link, .landing .navdrop__toggle, .auth .topbar__link, .auth .navdrop__toggle { color: #cbd5e1; }
.landing .topbar__link:hover, .landing .navdrop__toggle:hover, .auth .topbar__link:hover, .auth .navdrop__toggle:hover { color: #fff; }
.landing .navmenu__toggle, .auth .navmenu__toggle { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.2); }
/* The gradient starts at the top of the page: the hero is pulled up under the (transparent) top bar. */
.herobg { position: relative; margin-top: -57px; padding-top: 57px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); overflow: hidden; }
.herobg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent); }
.landing .hero { padding-top: 64px; padding-bottom: 72px; }
.landing .hero__title { color: #fff; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.landing .hero__title span { background: linear-gradient(135deg, #818cf8, #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #a5b4fc; }
.landing .hero__lead { color: #94a3b8; }
.landing .hero__paid { background: rgba(99, 102, 241, 0.18); color: #c7d2fe; font-weight: 600; }
.landing .hero__text > p > a:not(.button) { color: #cbd5e1; }
.landing .hero__text > .hero__paid > a { color: inherit; }
.landing .chooser { border-top: 0; }

.auth { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); }
.auth main { padding: 24px var(--gutter) 56px; }
.auth main > .wrap.section.narrow { max-width: 440px; padding: 32px 28px; background: var(--surface); border-radius: 16px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); }
.auth main h1 { font-size: 1.5rem; letter-spacing: -0.02em; text-align: center; }
.auth main .lead { font-size: 0.95rem; text-align: center; }
.auth main > .wrap.section.narrow > p { font-size: 0.92rem; }
.auth .footer { margin-top: 0; }
@media (max-width: 480px) { .auth main > .wrap.section.narrow { padding: 24px 18px; } }
