/*
 * Home Station web app: the helpers' pages, signing up and signing in. The landing page's look (site.css):
 * night and paper sheets, DM Sans, the three buttons' colours, the tuner's amber display and the dial.
 * Calmer motion than the landing page: people come here to get something done, often from a phone
 * added to the home screen. Plain CSS, no build step (PLAN.md §5).
 */
@font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
    --night: #0c130f;
    --night-2: #121b16;
    --cream: #f3eee3;
    --cream-2: #ebe4d5;
    --paper: #fffdf8;
    --ink: #151c17;
    --ink-soft: #4a524c;
    --line: #e1dacb;
    --line-strong: #cfc6b3;
    --green: #1b7f3b;
    --green-dark: #146130;
    --green-light: #86e0a4;
    --yellow: #ffd60a;
    --red: #c62828;
    --red-light: #ff8a7a;
    --amber: #ffb547;
    --on-dark: #f1ecdf;
    --on-dark-soft: rgba(241, 236, 223, .66);
    --on-dark-line: rgba(241, 236, 223, .12);
    --app-ink: #1a1a1a;
    --ok-bg: #e3f2e5;
    --bad-bg: #fbe7e3;
    --warn-bg: #fff3c4;
    --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --device-font: var(--font);
    --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
    --ease: cubic-bezier(.16, .84, .24, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a524c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; min-height: 100vh; background: var(--cream); color: var(--ink); font: 16.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: 22px; }
h3 { font-size: 17px; letter-spacing: -.015em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible, .plan-best :focus-visible, .savebar :focus-visible { outline-color: var(--green-light); }
::selection { background: var(--yellow); color: var(--ink); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--ink); border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }
.soft { color: var(--ink-soft); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.mono-soft { font: 12.5px var(--mono); color: var(--ink-soft); letter-spacing: .01em; }
.bad { color: var(--red); font-weight: 600; }
.sheet a:not([class]), .auth-main a:not([class]) { color: var(--green); font-weight: 650; text-underline-offset: 3px; }

.dark { --ink-soft: var(--on-dark-soft); --line: var(--on-dark-line); background: var(--night); color: var(--on-dark); }

/* The kicker: a mono label with a rule, green on paper and amber at night. */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.dark .kicker { color: var(--amber); }

/* Buttons */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
    min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--ink); color: var(--cream); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
    transition: transform .45s var(--ease), box-shadow .35s, background-color .25s, color .25s;
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); transform: translateX(-110%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: scale(.975); }
.btn .ico { width: 18px; height: 18px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.dark .btn { background: var(--cream); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
.btn-small .ico { width: 16px; height: 16px; }
.btn-big { min-height: 60px; padding: 0 8px 0 26px; gap: 16px; font-size: 17px; }
.btn-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; transition: transform .5s var(--spring); }
.btn-arrow .ico { width: 20px; height: 20px; }
.btn:hover .btn-arrow { transform: rotate(-35deg) scale(1.06); }
.btn-block { width: 100%; }
.btn-big.btn-block { justify-content: space-between; }
.btn-tall { min-height: 60px; padding: 0 24px; font-size: 16px; }
.btn-glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 50px -14px rgba(134, 224, 164, .55); }
.sheet .btn-glow, .auth-main .btn-glow { box-shadow: 0 18px 40px -18px rgba(21, 28, 23, .55); }
.btn-green, .dark .btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.dark .btn-light, .btn-light { background: rgba(241, 236, 223, .08); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(241, 236, 223, .22); }
.btn-light:hover { background: rgba(241, 236, 223, .16); }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 650; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.text-link:hover { background-size: 100% 1.5px; }
.text-link .ico { width: 16px; height: 16px; }
.text-link.small { font-size: 14px; }
.dark .text-link { color: var(--green-light); }

/* The bar: night, with the dial under it. The needle sits on the section you're in. */
.bar { position: relative; z-index: 50; padding-top: env(safe-area-inset-top); }
.bar-in { display: flex; align-items: center; gap: 20px; max-width: 1240px; height: 66px; margin-inline: auto; padding-inline: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 9px; }
.tabs { display: flex; gap: 4px; margin-left: 24px; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; color: var(--on-dark-soft); font-size: 15px; font-weight: 550; text-decoration: none; transition: color .2s, background-color .2s; }
.tabs a:hover { color: var(--on-dark); background: rgba(241, 236, 223, .07); }
.tabs a[aria-current] { color: var(--ink); background: var(--cream); }
.tabs .ico { width: 18px; height: 18px; }
.bar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.bar-signout { margin: 0; }
.bar-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 99px; background: none; color: var(--on-dark-soft); font-size: 14.5px; font-weight: 550; cursor: pointer; transition: color .2s, background-color .2s; }
.bar-link:hover { color: var(--on-dark); background: rgba(241, 236, 223, .07); }
.bar-link .ico { width: 17px; height: 17px; }
.dial { position: relative; width: calc(100% - 64px); max-width: 1176px; height: 14px; margin-inline: auto; color: var(--on-dark); }
.dial::before {
    content: ''; position: absolute; inset: auto 0 0; height: 8px; opacity: .28;
    background:
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 1%) bottom / 100% 4px no-repeat,
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10%) bottom / 100% 8px no-repeat;
}
.dial-needle { position: absolute; top: 0; bottom: -2px; left: calc(var(--tune, .5) * 100%); width: 2px; margin-left: -1px; border-radius: 2px; background: #ff5b47; box-shadow: 0 0 10px 2px rgba(255, 91, 71, .65); transition: left 1.1s var(--ease); }

/* The language menu, at night in the bar or on paper beside a form. */
.language-menu { position: relative; }
.language-menu summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 99px; font-size: 14px; font-weight: 650; list-style: none; cursor: pointer; transition: background-color .2s; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.language-menu summary .ico { width: 17px; height: 17px; }
.language-menu .chevron { width: 14px; transition: transform .3s; }
.language-menu[open] .chevron { transform: rotate(180deg); }
.bar .language-menu summary { color: var(--on-dark-soft); }
.bar .language-menu summary:hover, .bar .language-menu[open] summary { color: var(--on-dark); }
.language-menu form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; display: grid; min-width: 200px; padding: 8px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06); animation: pop .25s var(--ease); }
.language-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.language-menu button:hover { background: var(--cream); }
.language-menu button[aria-current] { color: var(--green); font-weight: 700; }
.language-menu button .ico { width: 16px; height: 16px; stroke-width: 2.4; }

/* The masthead: a strip of night under the bar, with the page's title. */
.mast { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 96px; }
.mast::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(241, 236, 223, .07) 1px, transparent 1.4px) 0 0 / 26px 26px; mask-image: radial-gradient(ellipse 60% 90% at 78% 30%, #000, transparent 80%); }
.mast-glow { position: absolute; right: -8%; top: -60%; z-index: -1; width: 780px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 195, 106, .24), transparent); pointer-events: none; }
.mast-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: end; }
.mast-copy { max-width: 760px; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 15px 7px 11px; border-radius: 99px; background: rgba(241, 236, 223, .06); box-shadow: inset 0 0 0 1px var(--on-dark-line); color: var(--on-dark-soft); font-size: 14px; font-weight: 550; text-decoration: none; transition: color .2s, background-color .2s; }
.back:hover { color: var(--on-dark); background: rgba(241, 236, 223, .12); }
.back .ico { width: 16px; height: 16px; }
.mast .kicker { display: flex; width: fit-content; }
.mast-title { font-size: clamp(36px, 5vw, 66px); line-height: .98; letter-spacing: -.05em; overflow-wrap: anywhere; }
.mast-lead { max-width: 38em; margin-top: 16px; font-size: 18px; color: var(--on-dark-soft); }
.mast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.mast-actions form { margin: 0; }
.mast-aside { width: min(430px, 100%); }
.mast-note { max-width: 38em; margin-top: 14px; font-size: 13.5px; color: var(--on-dark-soft); }
.mast-button { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; color: var(--on-dark); }
.mast-button .soft { color: var(--on-dark-soft); }

/* The sheet of paper that slides over the night. */
.sheet { position: relative; z-index: 2; margin-top: -48px; border-radius: 40px 40px 0 0; background: var(--cream); }
.sheet-in { min-height: 42vh; padding-top: 36px; padding-bottom: 64px; }
.foot { padding: 0 0 32px; background: var(--cream); color: var(--ink-soft); font-size: 13px; }
.foot p { padding-top: 22px; border-top: 1px solid var(--line); }
.foot a { color: inherit; }

/* Cards and columns */
.card { position: relative; min-width: 0; padding: 28px; border-radius: 28px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(21, 28, 23, .03); }
.card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.card-head h2 { padding-top: 7px; }
.card-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--ink); color: var(--cream); }
.card-icon .ico { width: 20px; height: 20px; }
.card-icon.is-red { background: var(--red); color: #fff; }
.card-lead { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
.card > p + p, .card > p + .btn, .card > .soft + .btn { margin-top: 12px; }
.card-accent { box-shadow: 0 0 0 2px var(--green), 0 24px 50px -30px rgba(27, 127, 59, .5); }
.card-danger { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(198, 40, 40, .28); }
.card-danger h2 { font-size: 18px; color: var(--red); }
.card-danger p { margin: 8px 0 16px; font-size: 14.5px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.columns-even { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.column-main, .column-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; align-content: start; }
.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Messages above the work */
.flash, .notice, .alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 14px 18px; border-radius: 18px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.flash { background: var(--ink); color: var(--cream); box-shadow: 0 22px 40px -26px rgba(21, 28, 23, .7); animation: drop .7s var(--ease); }
.flash-icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; }
.flash-icon .ico { width: 15px; height: 15px; stroke-width: 2.8; }
.notice { background: var(--warn-bg); color: #5c4400; box-shadow: inset 0 0 0 1px rgba(212, 168, 0, .35); }
.alert { background: var(--bad-bg); color: #8a1c1c; box-shadow: inset 0 0 0 1px rgba(198, 40, 40, .22); }
.notice > .ico, .alert > .ico { margin-top: 1px; }
.notice a, .alert a { color: inherit; font-weight: 700; }
.card .notice, .card .alert { margin: 0 0 18px; }

/* Forms */
.field { margin-bottom: 18px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.input {
    display: block; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 14px;
    background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px;
    transition: box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #a39c8d; }
.input:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(134, 224, 164, .45); }
.has-error .input { box-shadow: inset 0 0 0 2px var(--red); }
select.input { padding-right: 44px; background: #fff var(--chevron) right 14px center / 18px no-repeat; }
.input.mono { font-family: var(--mono); font-size: 14.5px; }
.input.pin { max-width: 170px; font-size: 22px; letter-spacing: .45em; }
.input-file { min-height: 0; padding: 10px; }
.input-file::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 99px; background: var(--ink); color: var(--cream); font-weight: 600; cursor: pointer; }
.hint { margin-top: 7px; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.hint .ico { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.hint-tight { margin: 8px 0 20px; }
.error { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; color: var(--red); font-size: 14px; font-weight: 550; line-height: 1.4; }
.error .ico { width: 17px; height: 17px; margin-top: 1px; }
.error.on-dark { color: var(--red-light); }
.affix { position: relative; }
.affix .input { padding-right: 42px; }
.affix > span { position: absolute; right: 16px; top: 50%; translate: 0 -50%; color: var(--ink-soft); font-weight: 600; pointer-events: none; }
.pair-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair-fields .field { margin-bottom: 0; }
.pw { position: relative; }
.js .pw .input { padding-right: 88px; }
.pw-toggle { display: none; position: absolute; top: 7px; right: 7px; bottom: 7px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 13.5px; font-weight: 650; cursor: pointer; }
.pw-toggle:hover { background: var(--cream-2); }
.js .pw-toggle { display: block; }

/* A checkbox, drawn. */
.check { position: relative; display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; font-size: 15px; cursor: pointer; }
.check input { position: absolute; width: 24px; height: 24px; margin: 0; opacity: 0; }
.check-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; transition: background-color .2s, box-shadow .2s, color .2s; }
.check-box .ico { width: 16px; height: 16px; stroke-width: 2.8; }
.check input:checked + .check-box { background: var(--ink); color: var(--cream); box-shadow: none; }
.check input:focus-visible + .check-box { outline: 3px solid var(--green); outline-offset: 2px; }

/* On/off switches with their words. */
.toggles { margin: 4px 0 22px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.toggle { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; }
.toggle + .toggle { border-top: 1px solid var(--line); }
.toggles + .hint { margin: -12px 0 22px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-copy { flex: 1; min-width: 0; }
.toggle-copy b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.toggle-copy small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }
.switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: 99px; background: #d9d2c2; transition: background-color .25s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .4s var(--spring); }
.toggle input:checked ~ .switch { background: var(--green); }
.toggle input:checked ~ .switch::after { transform: translateX(20px); }
.toggle input:focus-visible ~ .switch { outline: 3px solid var(--green); outline-offset: 3px; }

/* Colour swatches and the two-way switch for what a button plays. */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.swatch { position: relative; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; cursor: pointer; transition: box-shadow .2s; }
.swatch:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.swatch input { position: absolute; opacity: 0; }
.swatch > span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: transparent; }
.swatch > span .ico { width: 15px; height: 15px; stroke-width: 3; }
.swatch.is-green > span { background: var(--green); }
.swatch.is-yellow > span { background: var(--yellow); }
.swatch.is-red > span { background: var(--red); }
.swatch input:checked ~ span { color: #fff; }
.swatch.is-yellow input:checked ~ span { color: var(--app-ink); }
.swatch b { overflow: hidden; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.swatch:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.swatch input:focus-visible ~ span { outline: 3px solid var(--green); outline-offset: 3px; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--cream-2); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 10px; border-radius: 12px; color: var(--ink-soft); font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: anywhere; hyphens: auto; transition: background-color .2s, color .2s, box-shadow .2s; }
.segmented span .ico { width: 17px; height: 17px; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21, 28, 23, .16); }
.segmented input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 1px; }

/* Something to open for more, like a station ID. */
.more summary { display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 14px; color: var(--ink-soft); font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--ink); }
.more summary .ico { width: 16px; height: 16px; }
.more summary .ico:last-child { transition: transform .3s; }
.more[open] summary .ico:last-child { transform: rotate(180deg); }

/* Pills, chips and dots */
.pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 11px; border-radius: 99px; background: var(--cream-2); color: var(--ink-soft); font-size: 13px; font-weight: 650; line-height: 1.3; }
.pill i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--green); }
.pill-ok i { animation: blink 1.6s ease-in-out infinite; }
.pill-bad { background: var(--bad-bg); color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: var(--cream-2); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip .ico { width: 14px; height: 14px; }
.chip-mono { font-family: var(--mono); font-weight: 500; }
.chip-soft { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); }
.chip-ok { background: var(--ok-bg); color: var(--green); }
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #d4ccbb; }
.dot.is-green { background: var(--green); }
.dot.is-yellow { background: var(--yellow); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.dot.is-red { background: var(--red); }

/* The radio's screen as the parent sees it, drawn at any size (SeniorScreens.kt): night, an amber display, keys on their edge. */
.set { --w: 230px; display: flex; flex-direction: column; gap: 10px; width: var(--w); aspect-ratio: 9 / 17; padding: 16px 12px 14px; border-radius: 34px; background: radial-gradient(90% 45% at 50% 32%, rgba(27, 127, 59, .4), transparent 70%) var(--night); color: var(--on-dark); font-family: var(--device-font); box-shadow: 0 0 0 9px #151816, 0 0 0 10px #3a3f3c, 0 50px 90px -30px rgba(0, 0, 0, .8); }
.set-status { padding: 6px 8px; border-radius: 12px; background: radial-gradient(130% 110% at 50% 0%, #2d2412, #120e07 72%); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .18); color: #ffd596; font-size: 14px; font-weight: 700; text-align: center; text-shadow: 0 0 12px rgba(255, 181, 71, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-button { flex: 1; display: grid; place-items: center; padding: 6px; border-radius: 16px; background-image: linear-gradient(rgba(255, 255, 255, .08), transparent); box-shadow: 0 4px 0 var(--edge); font-size: 25px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; text-align: center; overflow-wrap: anywhere; }
.set-button.g { --edge: #0f4d23; background-color: var(--green); color: #fff; }
.set-button.y { --edge: #b89800; background-color: var(--yellow); color: var(--app-ink); }
.set-button.r { --edge: #7c1414; background-color: var(--red); color: #fff; }
.set-button.is-on { box-shadow: inset 0 0 0 4px var(--on-dark), 0 4px 0 var(--edge), 0 0 24px 2px rgba(40, 190, 90, .45); }
.set-stop { display: grid; place-items: center; height: 44px; margin-top: 2px; border-radius: 16px; background: var(--on-dark); color: var(--ink); box-shadow: 0 4px 0 #a39c8b; font-size: 16px; font-weight: 700; }
.set-small { --w: 150px; gap: 7px; padding: 12px 9px 11px; border-radius: 24px; box-shadow: 0 0 0 6px #151816, 0 30px 50px -22px rgba(0, 0, 0, .5); }
.set-small .set-button { border-radius: 11px; box-shadow: 0 3px 0 var(--edge); font-size: 15px; }
.set-small .set-stop { height: 26px; border-radius: 9px; box-shadow: 0 3px 0 #a39c8b; font-size: 11px; }

/* Signing up and in: night on one side, paper on the other. */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { position: sticky; top: 0; isolation: isolate; display: flex; flex-direction: column; height: 100vh; overflow: hidden; padding: 30px 48px 0; }
.auth-side::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(241, 236, 223, .07) 1px, transparent 1.4px) 0 0 / 26px 26px; mask-image: radial-gradient(ellipse 80% 70% at 60% 70%, #000, transparent 80%); }
.auth-glow { position: absolute; left: 66%; top: 78%; z-index: -1; width: 820px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 195, 106, .34), transparent); translate: -50% -50%; animation: breathe 9s ease-in-out infinite; pointer-events: none; }
.auth-copy { position: relative; z-index: 2; max-width: 520px; margin-top: clamp(40px, 11vh, 130px); }
.auth-copy .kicker { display: flex; width: fit-content; }
.auth-title { font-size: clamp(38px, 4.3vw, 64px); font-weight: 650; line-height: .98; letter-spacing: -.05em; text-wrap: balance; }
.auth-lead { max-width: 30em; margin-top: 18px; font-size: 18px; color: var(--on-dark-soft); }
.auth-points { display: grid; gap: 10px; margin-top: 26px; color: var(--on-dark-soft); font-size: 15.5px; }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points .ico { color: var(--green-light); stroke-width: 2.4; }
.auth-art { position: absolute; right: 9%; bottom: -150px; z-index: 1; rotate: -6deg; animation: float 8s ease-in-out infinite; }
.auth-art .set { --w: clamp(200px, 19vw, 260px); }
.auth-art .set-button.is-on { animation: onair 2.6s ease-in-out infinite; }
.auth-side .dial { position: absolute; left: 48px; right: 48px; bottom: 18px; z-index: 3; width: auto; }
.auth-main { display: flex; flex-direction: column; min-width: 0; padding: 22px 48px 26px; background: var(--cream); }
.auth-top { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-height: 40px; }
.auth-body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 460px; margin: 28px auto; }
.auth-card { padding: 34px; border-radius: 30px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(21, 28, 23, .45); }
.auth-h { margin-bottom: 8px; font-size: 30px; letter-spacing: -.04em; }
.auth-h + .field, .auth-h + form { margin-top: 22px; }
.auth-intro { margin-bottom: 22px; color: var(--ink-soft); font-size: 15.5px; }
.auth-intro + .auth-intro { margin-top: -12px; }
.auth-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--ink-soft); font-size: 13.5px; text-align: center; }
.auth-note .ico { width: 16px; height: 16px; color: var(--green); }
.auth-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; color: var(--ink-soft); font-size: 15px; text-align: center; }
.auth-foot { max-width: 460px; margin: 0 auto; color: var(--ink-soft); font-size: 12.5px; text-align: center; }
.auth-foot a { color: inherit; }
.auth-badge { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 17px; background: var(--cream-2); }
.auth-badge.is-bad { background: var(--bad-bg); color: var(--red); }
.auth-badge .ico { width: 26px; height: 26px; }
.invite-from { display: flex; margin-bottom: 20px; }
.invite-from .avatar { width: 56px; height: 56px; font-size: 22px; box-shadow: 0 0 0 4px var(--paper); }
.invite-from .avatar + .avatar { margin-left: -12px; }
.avatar.avatar-radio { background: var(--night); }
.avatar-radio img { width: 34px; height: 34px; border-radius: 9px; }
.invite-what { margin-bottom: 10px; font-weight: 650; }
.ticks { display: grid; gap: 9px; margin-bottom: 4px; }
.ticks li { display: flex; gap: 10px; }
.ticks .ico { margin-top: 3px; color: var(--green); stroke-width: 2.4; }
.auth-card .auth-note { justify-content: flex-start; margin: 16px 0 22px; text-align: left; }
.auth-card .btn-block + .auth-note { justify-content: center; margin: 14px 0 0; text-align: center; }
.invite-meta { margin-top: 14px; color: var(--ink-soft); font-size: 13px; text-align: center; overflow-wrap: anywhere; }

/* Your family: one card per radio, its screen drawn small. */
.radios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); gap: 18px; }
.radios > li { min-width: 0; }
.radio-card { display: flex; align-items: center; gap: 26px; height: 100%; padding: 22px 24px 22px 24px; color: inherit; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.radio-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(21, 28, 23, .45); }
.radio-card-body { flex: 1; min-width: 0; }
.radio-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.radio-card-head h2 { font-size: 27px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.radio-card-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); transition: background-color .3s, color .3s, transform .5s var(--spring); }
.radio-card:hover .radio-card-go { background: var(--ink); color: var(--cream); transform: rotate(-35deg); }
.radio-card-add { justify-content: flex-start; gap: 18px; min-height: 132px; background: transparent; box-shadow: none; outline: 1.5px dashed rgba(21, 28, 23, .22); outline-offset: -1.5px; }
.radio-card-add:hover { background: var(--paper); outline-color: var(--ink); box-shadow: 0 30px 50px -34px rgba(21, 28, 23, .4); }
.radio-card-add b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.radio-card-add small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; }
.add-plus { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--cream); transition: transform .5s var(--spring); }
.radio-card-add:hover .add-plus { transform: rotate(90deg); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 14px; color: var(--ink-soft); font-size: 14.5px; }
.face { flex: none; display: flex; flex-direction: column; gap: 6px; width: 104px; padding: 11px 7px 9px; border-radius: 20px; background: var(--night); color: var(--on-dark); box-shadow: 0 0 0 5px #151816, 0 20px 30px -18px rgba(0, 0, 0, .55); font-family: var(--device-font); }
.face-button { display: grid; place-items: center; min-height: 36px; padding: 4px; border-radius: 9px; box-shadow: 0 2px 0 var(--edge); font-size: 11.5px; font-weight: 700; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.face-button.is-green { --edge: #0f4d23; background: var(--green); color: #fff; }
.face-button.is-yellow { --edge: #b89800; background: var(--yellow); color: var(--app-ink); }
.face-button.is-red { --edge: #7c1414; background: var(--red); color: #fff; }
.face-button.is-empty { --edge: #070b09; background: #19251e; color: var(--on-dark-soft); }
.face-button.is-on { box-shadow: inset 0 0 0 2px var(--on-dark), 0 2px 0 var(--edge); }
.face-stop { height: 13px; margin-top: 2px; border-radius: 6px; background: var(--on-dark); box-shadow: 0 2px 0 #a39c8b; }
.plays { display: grid; gap: 6px; font-size: 14px; }
.plays li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.plays b { flex: none; font-weight: 650; }
.plays > li > span { min-width: 0; overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.welcome { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 52px; align-items: center; padding: 36px; }
.welcome-art { position: relative; display: grid; place-items: center; min-height: 360px; overflow: hidden; border-radius: 22px; background: radial-gradient(rgba(21, 28, 23, .1) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--cream-2); }
.welcome-art .set { rotate: -4deg; }
.welcome-qr { position: absolute; right: 16%; bottom: 16%; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; background: var(--yellow); color: var(--ink); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .4); rotate: 8deg; animation: glow 2.6s ease-in-out infinite; }
.welcome-qr .ico { width: 32px; height: 32px; }
.welcome h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }
.steps { display: grid; gap: 18px; margin: 22px 0 30px; }
.steps li { display: flex; gap: 16px; }
.step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--cream); font: 600 13px var(--mono); letter-spacing: .06em; }
.steps h3 { margin: 2px 0 4px; }
.steps p { color: var(--ink-soft); font-size: 15px; }
.steps-compact { margin-bottom: 0; }
.steps-compact p { padding-top: 8px; color: var(--ink); }

/* Home Station on the helper's phone (partials/install), above their radios. */
.install { margin-bottom: 18px; }
.install .steps { gap: 12px; margin: 16px 0 0; }
.install .button-row { margin-top: 18px; }
.install-share { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.install-alerts { margin-top: 16px; }

/* A radio's page: its display, its 3 buttons, its family. */
.lcd { position: relative; overflow: hidden; padding: 18px 22px 16px; border-radius: 26px; background: radial-gradient(130% 110% at 50% 0%, #2d2412, #120e07 72%); color: var(--amber); font-family: var(--mono); box-shadow: inset 0 0 60px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 181, 71, .18), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.lcd::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px); pointer-events: none; }
.lcd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lcd-state { display: inline-flex; align-items: center; gap: 8px; }
.lcd-state i { width: 8px; height: 8px; border-radius: 50%; background: #7d6d4c; }
.lcd.is-online .lcd-state i { background: var(--green-light); box-shadow: 0 0 10px var(--green-light); animation: blink 1.6s ease-in-out infinite; }
.lcd.is-alarm .lcd-state i { background: #ff5b47; box-shadow: 0 0 10px #ff5b47; animation: blink 1s ease-in-out infinite; }
.lcd-meters { display: flex; gap: 14px; }
.lcd-meters > span { display: inline-flex; align-items: center; gap: 5px; }
.lcd-meters .ico { width: 15px; height: 15px; }
.lcd-main { margin: 18px 0 6px; color: #ffd596; font-family: var(--font); font-size: clamp(26px, 2.8vw, 36px); font-weight: 650; line-height: 1.05; letter-spacing: -.03em; text-shadow: 0 0 22px rgba(255, 181, 71, .5), 0 0 2px rgba(255, 226, 170, .7); overflow-wrap: anywhere; }
.lcd.is-alarm .lcd-main { color: #ffb4a6; text-shadow: 0 0 22px rgba(255, 91, 71, .45); }
.lcd-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.lcd-sub { font-size: 13px; letter-spacing: .05em; }
.lcd-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255, 181, 71, .22); font-size: 12px; letter-spacing: .05em; opacity: .75; }
.eq { flex: none; display: flex; align-items: flex-end; gap: 3px; width: 26px; height: 20px; }
.eq i { flex: 1; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.55s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
.bcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bcard { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.bcard-face { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px 16px; font-family: var(--device-font); text-align: center; transition: background-color .35s, color .35s; }
.bcard[data-color='green'] .bcard-face { background: var(--green); color: #fff; }
.bcard[data-color='yellow'] .bcard-face { background: var(--yellow); color: var(--app-ink); }
.bcard[data-color='red'] .bcard-face { background: var(--red); color: #fff; }
.bcard-n { position: absolute; top: 12px; left: 14px; font: 600 12px var(--mono); opacity: .7; }
.bcard-label { max-width: 100%; font-size: 30px; font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.bcard-plays { max-width: 100%; font-size: 13px; font-weight: 600; opacity: .88; overflow-wrap: anywhere; }
.bcard-body { min-width: 0; padding: 22px 22px 6px; }
.bcard-part { margin-bottom: 14px; }
.bcard-part > .soft { margin-bottom: 8px; font-size: 14.5px; }
.station-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.station-now > div { min-width: 0; }
.station-now b { display: block; overflow-wrap: anywhere; }
.health { display: flex; align-items: flex-start; gap: 6px; margin-top: 3px; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.health .ico { width: 15px; height: 15px; margin-top: 1px; }
.health.is-ok { color: var(--green); }
.health.is-bad { color: var(--red); }
/* Sits at the end of the form; with changes to save it follows you down the page. */
.savebar { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 24px; border-radius: 999px; background: rgba(12, 19, 15, .94); color: var(--on-dark); box-shadow: 0 22px 50px -18px rgba(12, 19, 15, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.savebar-text { color: var(--on-dark-soft); font-size: 14px; }
.savebar.is-dirty { position: sticky; bottom: 18px; box-shadow: 0 0 0 2px var(--yellow), 0 22px 50px -18px rgba(12, 19, 15, .7); }
.savebar.is-dirty .savebar-text { color: var(--yellow); font-weight: 600; }
.people { display: grid; margin: 14px 0 4px; }
.people li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 0; }
.people li + li { border-top: 1px solid var(--line); }
.people form { margin: 0; }
.avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, #2c9a52, #1b7f3b); color: #fff; font-size: 17px; font-weight: 700; }
.avatar[data-tone='1'] { background: linear-gradient(145deg, #ffe156, #f5c400); color: var(--ink); }
.avatar[data-tone='2'] { background: linear-gradient(145deg, #e0473e, #b71f1f); }
.avatar[data-tone='3'] { background: linear-gradient(145deg, #4b5a52, #26302a); }
.avatar.avatar-pending { background: var(--cream-2); color: var(--ink-soft); }
.avatar-pending .ico { width: 19px; height: 19px; }
.person { flex: 1; min-width: 0; }
.person b { display: block; font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.person b .soft { font-weight: 500; }
.person small { display: block; color: var(--ink-soft); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.invite-form { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.invite-form .field { margin-bottom: 12px; }
.facts { display: grid; gap: 12px; margin-bottom: 18px; }
.facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.facts .ico { margin-top: 2px; color: var(--ink-soft); }
.facts .is-ok { color: var(--green); }
.facts .is-warn { color: #b36b00; }
.card form .hint { margin-top: 10px; }

/* Choosing a station: search on the night, results on paper, each one to listen to before choosing it. */
.mast-search .mast-actions { display: block; margin-top: 26px; }
.search { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; padding: 10px; border-radius: 32px; background: rgba(241, 236, 223, .07); box-shadow: inset 0 0 0 1px var(--on-dark-line); }
.search-field { position: relative; min-width: 0; }
.search-field label { position: absolute; top: 11px; left: 50px; z-index: 1; color: #6b716c; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.search-field > .ico { position: absolute; top: 50%; left: 18px; z-index: 1; color: #6b716c; translate: 0 -50%; pointer-events: none; }
.search-field input, .search-field select { display: block; width: 100%; height: 62px; padding: 22px 16px 6px 50px; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); font-size: 16.5px; font-weight: 550; -webkit-appearance: none; appearance: none; }
.search-field select { padding-right: 40px; background: var(--paper) var(--chevron) right 14px center / 18px no-repeat; cursor: pointer; }
.search-field input:focus, .search-field select:focus { outline: none; box-shadow: 0 0 0 3px var(--green-light); }
.search .btn-big { min-height: 62px; }
.picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.station-current { display: flex; align-items: center; gap: 18px; padding: 20px 22px; box-shadow: 0 0 0 2px var(--green), 0 24px 50px -34px rgba(27, 127, 59, .6); }
.station-current h2 { font-size: 21px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.station-current-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--green); font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.station-current-kicker .dot { width: 8px; height: 8px; }
.station-results { transition: opacity .2s; }
.station-results[aria-busy='true'] { opacity: .5; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 14px; }
.results-count { margin-bottom: 14px; color: var(--ink-soft); font: 600 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.results-head .results-count { margin-bottom: 0; }
.results-note { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; }
.results-note .ico { width: 14px; height: 14px; fill: var(--green); stroke: none; }
.results { display: grid; gap: 12px; }
.result { display: flex; align-items: center; gap: 18px; padding: 18px 20px; }
.result.is-current { box-shadow: 0 0 0 2px var(--green); }
.result-art { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--cream-2); }
.result.is-current .result-art { background: var(--green); color: #fff; }
.result-body { flex: 1; min-width: 0; }
.result h2 { font-size: 18px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.result-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 10px; }
.result-links:empty { display: none; }
.result-choose { flex: none; margin: 0; }
.js .no-js { display: none; }

/* Listening before choosing: play, connecting, on air, or not in this browser. */
.station-play { position: relative; flex: none; display: none; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--cream); cursor: pointer; transition: background-color .25s, color .25s, transform .45s var(--spring); }
.js .station-play { display: grid; }
.station-play:hover { transform: scale(1.06); }
.station-play:active { transform: scale(.94); }
.station-play > * { grid-area: 1 / 1; }
.station-play .ico { width: 20px; height: 20px; }
.station-play .when-idle { translate: 1px 0; }
.station-play .when-on, .station-play .when-playing, .station-play .when-failed { display: none; }
.station-play:not([data-state='idle']) .when-idle { display: none; }
.station-play[data-state='loading'] { background: var(--ink); }
.station-play[data-state='loading'] .when-on { display: block; }
.station-play[data-state='loading']::after { content: ''; position: absolute; inset: -5px; border: 2.5px solid transparent; border-top-color: var(--green); border-right-color: var(--green); border-radius: 50%; animation: turn .9s linear infinite; }
.station-play[data-state='playing'] { background: var(--green); color: #fff; box-shadow: 0 0 0 5px rgba(27, 127, 59, .16); }
.station-play[data-state='playing'] .when-playing { display: flex; width: 20px; height: 18px; }
.station-play[data-state='playing']:is(:hover, :focus-visible) .when-playing { display: none; }
.station-play[data-state='playing']:is(:hover, :focus-visible) .when-on { display: block; }
.station-play[data-state='failed'] { background: var(--bad-bg); color: var(--red); }
.station-play[data-state='failed'] .when-failed { display: block; }
.preview-status { margin-top: 8px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.preview-status:empty { display: none; }
[data-state='playing'] ~ .result-body .preview-status { color: var(--green); }
[data-state='failed'] ~ .result-body .preview-status { color: var(--red); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 28px; color: var(--ink-soft); font-size: 16.5px; text-align: center; }
.empty p { max-width: 32em; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--cream-2); color: var(--ink); }
.empty-icon .ico { width: 28px; height: 28px; }
.page-note { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin-top: 28px; color: var(--ink-soft); font-size: 14px; text-align: center; }
.page-note .ico { margin-top: 2px; color: var(--green); }

/* Voice messages: a big red button, the voice drawn as it's recorded. */
.recorder h2 { font-size: 24px; letter-spacing: -.035em; }
.recorder > .soft { margin-top: 6px; }
.rec { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 24px 0 6px; padding: 34px 20px 24px; border-radius: 24px; background: radial-gradient(rgba(21, 28, 23, .09) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--cream-2); }
.rec-button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 136px; height: 136px; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 22px 40px -16px rgba(198, 40, 40, .75), inset 0 -4px 0 rgba(0, 0, 0, .14); transition: transform .45s var(--spring), background-color .3s; }
.rec-button:hover { transform: scale(1.04); }
.rec-button:active { transform: scale(.95); }
.rec-button:disabled { background: #b9b1a1; box-shadow: none; cursor: not-allowed; transform: none; }
.rec-button .ico { width: 42px; height: 42px; }
.rec-label { font-size: 14px; font-weight: 700; }
.rec-stop { display: none; }
.rec-button.is-recording { background: var(--app-ink); }
.rec-button.is-recording .rec-mic { display: none; }
.rec-button.is-recording .rec-stop { display: block; }
.rec-rings i { position: absolute; inset: 0; border: 2px solid var(--red); border-radius: 50%; opacity: 0; pointer-events: none; }
.rec-button.is-recording .rec-rings i { animation: ring 1.8s var(--ease) infinite; }
.rec-button.is-recording .rec-rings i:nth-child(2) { animation-delay: .9s; }
.rec-wave { display: flex; align-items: center; justify-content: center; gap: 3px; width: min(100%, 340px); height: 52px; }
.rec-wave i { flex: 1; max-width: 6px; height: 10%; min-height: 4px; border-radius: 3px; background: #cdc5b3; transition: height .09s linear, background-color .3s; }
.rec.is-live .rec-wave i { background: var(--red); }
.rec.is-done .rec-wave i { background: var(--green); }
.rec-timer { font: 500 22px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.rec-preview { margin: 18px 0 4px; }
.rec-preview audio { width: 100%; }
.rec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.recorder .error { margin-top: 14px; }
.recorder .more { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.recorder .more .field { margin-bottom: 12px; }
.messages { display: grid; gap: 12px; }
.messages li { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.message-head { display: flex; align-items: center; gap: 12px; }
.message-head form { margin: 0; }
.messages audio { width: 100%; height: 40px; }
.messages .chip { justify-self: start; white-space: normal; }
.card > .messages + .hint { margin-top: 14px; }

/* Adding a radio: the code as its screen shows it. */
.pair-card { display: flex; flex-direction: column; }
.pair-label { display: block; margin-bottom: 14px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.code-screen { position: relative; overflow: hidden; margin-bottom: 4px; padding: 14px; border-radius: 24px; background: radial-gradient(130% 110% at 50% 0%, #2d2412, #120e07 72%); box-shadow: inset 0 0 50px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 181, 71, .18); transition: box-shadow .2s; }
.code-screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px); pointer-events: none; }
.code-screen:focus-within { box-shadow: inset 0 0 50px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 181, 71, .18), 0 0 0 4px rgba(134, 224, 164, .55); }
.code-screen.has-error { box-shadow: inset 0 0 50px rgba(0, 0, 0, .6), 0 0 0 2px var(--red); }
.code-input { display: block; width: 100%; height: 96px; padding: 0; border: 0; background: transparent; color: #ffd596; font: 500 clamp(38px, 6vw, 58px) var(--mono); letter-spacing: .14em; text-align: center; text-shadow: 0 0 22px rgba(255, 181, 71, .55); caret-color: var(--amber); }
.code-input::placeholder { color: rgba(255, 181, 71, .2); text-shadow: none; }
.code-input:focus { outline: none; }
.pair-card .btn { margin-top: 20px; }

/* Billing: the landing page's plans, and how many radios. */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: min(320px, 100%); }
.stats > div { padding: 16px 18px; border-radius: 20px; background: rgba(241, 236, 223, .06); box-shadow: inset 0 0 0 1px var(--on-dark-line); }
.stats dt { color: var(--on-dark-soft); font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stats dd { margin-top: 8px; color: var(--amber); font-size: 42px; font-weight: 650; line-height: 1; letter-spacing: -.04em; text-shadow: 0 0 30px rgba(255, 181, 71, .3); font-variant-numeric: tabular-nums; }
.stats .stat-wide { grid-column: 1 / -1; }
.stats .stat-wide dd { font-size: 22px; letter-spacing: -.02em; }
.choose-plan { display: grid; gap: 20px; }
.how-many { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.how-many h2 { font-size: 26px; letter-spacing: -.035em; }
.how-many .soft { margin-top: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 28px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.plan h3 { color: var(--ink-soft); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.plan-price { margin-top: 18px; font-size: clamp(44px, 4.4vw, 58px); font-weight: 650; line-height: 1; letter-spacing: -.055em; }
.plan-price span { color: var(--ink-soft); font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.plan-per { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.plan-note { flex: 1; margin: 12px 0 26px; color: var(--ink-soft); font-size: 15px; }
.plan-best { --ink-soft: var(--on-dark-soft); background: var(--night); color: var(--on-dark); box-shadow: 0 40px 80px -40px rgba(12, 19, 15, .8); }
.plan-best::before { content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--angle), transparent 0 55%, #86e0a4 70%, #ffd60a 82%, #ff7b6b 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 5s linear infinite; pointer-events: none; }
.plan-best .btn { background: var(--cream); color: var(--ink); }
.plan-badge { position: absolute; top: 24px; right: 24px; padding: 5px 12px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.stepper-field > label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper .input { width: 76px; min-height: 42px; padding: 0 8px; background: transparent; box-shadow: none; font-size: 20px; font-weight: 650; text-align: center; }
.stepper .input:focus { box-shadow: none; }
.stepper:focus-within { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(134, 224, 164, .45); }
.js .stepper .input { -moz-appearance: textfield; }
.js .stepper .input::-webkit-inner-spin-button, .js .stepper .input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.stepper-button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; transition: background-color .2s, color .2s; }
.stepper-button:hover { background: var(--ink); color: var(--cream); }
.stepper-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 8px; }
.plan-now .btn-line { margin-top: 18px; }
.plan-now > .notice, .plan-now > .alert { margin-bottom: 18px; }

/* Account */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 20px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 550; transition: box-shadow .2s; }
.choice:hover span { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); }
.choice input:checked + span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(27, 127, 59, .15); }
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.push-status { display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 12px 16px; border-radius: 14px; background: var(--cream); font-size: 14.5px; font-weight: 550; line-height: 1.45; }
.push-status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #b8b09f; }
.push-status.is-on i { background: var(--green); box-shadow: 0 0 0 4px rgba(27, 127, 59, .15); }
.push-status.is-blocked i { background: var(--red); }
/* Privacy policy and terms: the sections listed beside the text on wide screens, above it on phones. */
.legal { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 24px; }
.legal-toc ol { display: grid; gap: 9px; font-size: 14.5px; line-height: 1.35; counter-reset: toc; }
.legal-toc li { display: flex; gap: 10px; counter-increment: toc; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero); flex: none; padding-top: 1px; font: 12px/1.5 var(--mono); color: var(--ink-soft); }
.sheet .legal-toc a { color: var(--ink-soft); font-weight: 550; text-decoration: none; }
.sheet .legal-toc a:hover { color: var(--green); }
.legal-text { font-size: 16.5px; line-height: 1.65; }
.legal-text section + section { margin-top: 38px; }
.legal-text h2 { margin-bottom: 12px; font-size: 24px; scroll-margin-top: 24px; }
.legal-text p + p, .legal-text p + ul, .legal-text ul + p { margin-top: 12px; }
.legal-text ul { display: grid; gap: 8px; }
.legal-text li { position: relative; padding-left: 24px; }
.legal-text li::before { content: ''; position: absolute; left: 5px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.legal-contact { margin-top: 48px; }
.legal-contact h2 { margin-bottom: 10px; font-size: 20px; }
.legal-contact p + p { margin-top: 8px; }
.auth-legal { margin-top: 12px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; text-align: center; }

.account-delete { max-width: 640px; margin-top: 20px; }
.account-delete .field { max-width: 360px; margin-bottom: 16px; }
.delete-radios { display: grid; gap: 6px; margin: -6px 0 16px; font-size: 14.5px; font-weight: 600; }
.delete-radios li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.delete-radios .ico { width: 17px; height: 17px; color: var(--ink-soft); }
.sign-out { display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 18px 22px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }

/* Errors: nothing on this frequency. */
.oops-page { min-height: 100vh; background: var(--night); }
.oops { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; padding: 28px 32px 30px; }
.oops::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 600px at 80% 20%, rgba(255, 181, 71, .1), transparent 70%), radial-gradient(rgba(241, 236, 223, .07) 1px, transparent 1.4px) 0 0 / 26px 26px; }
.oops-in { max-width: 760px; margin: auto 0; padding: 48px 0; }
.oops-code { color: var(--amber); font: 500 14px var(--mono); letter-spacing: .3em; text-shadow: 0 0 12px rgba(255, 181, 71, .5); }
.oops-title { margin-top: 18px; font-size: clamp(42px, 7vw, 92px); line-height: .95; letter-spacing: -.055em; }
.oops-text { max-width: 34em; margin-top: 22px; color: var(--on-dark-soft); font-size: 19px; }
.oops-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.oops-dial { width: 100%; max-width: none; }
.oops-dial .dial-needle { animation: seek 7s ease-in-out infinite; }

/* Arrivals: the masthead rises, then the sheet's contents, a beat apart. */
.mast-copy > *, .mast-aside, .sheet-in > *, .auth-copy > *, .auth-body > * { animation: rise .8s var(--ease) both; }
.mast-copy > :nth-child(2), .auth-copy > :nth-child(2) { animation-delay: .05s; }
.mast-copy > :nth-child(3), .auth-copy > :nth-child(3) { animation-delay: .1s; }
.mast-copy > :nth-child(4), .auth-copy > :nth-child(4) { animation-delay: .15s; }
.mast-copy > :nth-child(5), .mast-aside, .auth-body > :nth-child(2) { animation-delay: .2s; }
.sheet-in > * { animation-delay: .12s; }
.sheet-in > :nth-child(2) { animation-delay: .18s; }
.sheet-in > :nth-child(n + 3) { animation-delay: .24s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes eq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .7; scale: 1.08; } }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes onair { 50% { box-shadow: inset 0 0 0 6px var(--app-ink), 0 0 0 6px rgba(134, 224, 164, .35); } }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(255, 214, 10, .25), 0 16px 30px -14px rgba(0, 0, 0, .4); } }
@keyframes seek { 0%, 100% { left: 12%; } 45% { left: 81%; } 60% { left: 64%; } }

@media (max-width: 1080px) {
    .mast-in { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .mast-aside { width: min(560px, 100%); }
}

@media (max-width: 960px) {
    .columns, .columns-even, .grid-cards { grid-template-columns: minmax(0, 1fr); }
    .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
    .plan-best { order: -1; }
    .welcome { grid-template-columns: minmax(0, 1fr); padding: 24px; }
    .welcome-art { min-height: 280px; }
    .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .legal-toc { position: static; padding: 22px 24px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }
}

/* Tablets and phones: sign-up pages stack, the paper slides up over the night. */
@media (max-width: 900px) {
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-side { position: relative; height: auto; padding: 20px 22px 76px; }
    .auth-copy { margin-top: 30px; }
    .auth-title { font-size: clamp(32px, 8.2vw, 46px); }
    .auth-lead { margin-top: 12px; font-size: 16px; }
    .auth-points { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14px; }
    .auth-art { display: none; }
    .auth-side .dial { left: 22px; right: 22px; bottom: 52px; }
    .auth-main { position: relative; z-index: 2; margin-top: -34px; padding: 16px 16px 26px; border-radius: 30px 30px 0 0; }
    .auth-body { margin: 10px auto 26px; }
}

@media (max-width: 760px) {
    body.app:not(.auth-page):not(.oops-page):not(.legal-page) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    /* The legal pages have no tabs, and just the icon of their way back in: its words stay for screen readers. */
    .legal-page .bar-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .wrap { padding-inline: 16px; }
    .bar-in { height: 58px; gap: 10px; padding-inline: 16px; }
    .brand { font-size: 16.5px; gap: 9px; }
    .brand img { width: 28px; height: 28px; }
    .bar-signout { display: none; }
    .dial { width: calc(100% - 32px); height: 10px; }
    .dial::before { height: 6px; }
    /* The sections move to the bottom of the screen, under the thumb. */
    .tabs {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0;
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: rgba(12, 19, 15, .95); box-shadow: 0 -1px 0 var(--on-dark-line);
        -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    }
    .tabs a { flex-direction: column; gap: 3px; padding: 7px 4px 6px; border-radius: 14px; font-size: 11.5px; font-weight: 600; }
    .tabs a .ico { width: 23px; height: 23px; }
    .tabs a[aria-current] { background: transparent; color: var(--green-light); }
    .tabs a[aria-current]::before { content: ''; position: absolute; top: -5px; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--green-light); box-shadow: 0 0 10px var(--green-light); }
    .mast { padding: 24px 0 78px; }
    .back { margin-bottom: 16px; }
    .mast-title { font-size: clamp(34px, 10vw, 48px); }
    .mast-lead { font-size: 16px; }
    .mast-actions { margin-top: 22px; }
    .mast-actions > .btn, .mast-actions > form { flex: 1 1 auto; }
    .mast-actions > form .btn { width: 100%; justify-content: space-between; }
    .sheet { margin-top: -44px; border-radius: 28px 28px 0 0; }
    .sheet-in { padding-top: 20px; padding-bottom: 40px; }
    .card { padding: 20px; border-radius: 24px; }
    .card-head { gap: 12px; margin-bottom: 14px; }
    .card-icon { width: 38px; height: 38px; border-radius: 12px; }
    .card-head h2 { padding-top: 5px; font-size: 20px; }
    .radio-card { gap: 18px; padding: 18px; }
    .radio-card-go { display: none; }
    .radio-card-head h2 { font-size: 23px; }
    .face { width: 82px; padding: 9px 5px 6px; border-radius: 16px; box-shadow: 0 0 0 4px #151816, 0 16px 24px -16px rgba(0, 0, 0, .55); }
    .face-button { min-height: 30px; font-size: 10px; border-radius: 7px; }
    .bcard { grid-template-columns: minmax(0, 1fr); }
    .bcard-face { min-height: 116px; padding: 22px 16px; }
    .bcard-body { padding: 18px 16px 4px; }
    .swatch { gap: 7px; padding: 0 9px; }
    .savebar { padding: 8px 8px 8px 18px; border-radius: 22px; }
    .savebar.is-dirty { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .savebar-text { font-size: 13px; line-height: 1.3; }
    .savebar:not(.is-dirty) .savebar-text { display: none; }
    .savebar:not(.is-dirty) .btn { width: 100%; }
    .search { grid-template-columns: minmax(0, 1fr); border-radius: 28px; }
    .search .btn-big { justify-content: space-between; }
    .result { flex-wrap: wrap; gap: 14px; padding: 16px; }
    .result-art { display: none; }
    .result-choose, .result-choose .btn { width: 100%; }
    .result-choose.chip { justify-content: center; padding-block: 9px; }
    .station-play { width: 46px; height: 46px; align-self: flex-start; }
    .station-current { gap: 14px; padding: 16px; }
    .station-current h2 { font-size: 19px; }
    .rec-button { width: 120px; height: 120px; }
    .stats dd { font-size: 34px; }
    .choices { grid-template-columns: minmax(0, 1fr); }
    .sign-out { display: flex; }
    .auth-card { padding: 24px 20px; border-radius: 24px; }
    .auth-h { font-size: 26px; }
    .oops { padding: 20px 18px 24px; }
    .oops-text { font-size: 17px; }
}

@media (max-width: 420px) {
    .pair-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pair-fields .field { margin-bottom: 18px; }
    .swatch b { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
}
