/* PULSE prototype — graphite, titanium, muted signal green. */
/* JetBrains Mono (SIL OFL 1.1, fonts/OFL.txt) — the terminal look of chats. */
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(../fonts/jbm-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(../fonts/jbm-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(../fonts/jbm-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(../fonts/jbm-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0a0c0b;
  --surface: #121614;
  --surface-2: #191e1b;
  --surface-3: #212723;
  --line: #262d29;
  --text: #eef2ef;
  --text-2: #a3aca6;
  --text-3: #6c7570;
  --accent: #9fe870;
  --accent-ink: #0d1a07;
  --accent-dim: rgba(159, 232, 112, .13);
  --accent-glow: rgba(159, 232, 112, .35);
  --ice: #8cd8ff;
  --ice-glow: rgba(140, 216, 255, .38);
  --danger: #e0574f;
  --danger-dim: rgba(224, 87, 79, .14);
  --radius: 16px;
  --tab-h: 64px;
  /* The user-facing kit (buttons, rows, tiles) */
  --line-2: #323b35;
  --accent-hi: #c4f99e;                 /* top of the green gradient */
  --accent-line: rgba(159, 232, 112, .42);
  --violet: #b9a2ff;
  --amber: #ffcf6e;
  --grad-primary: linear-gradient(180deg, var(--accent-hi), var(--accent) 62%);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 60%);
  --press: scale(.965);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: only dark; /* dark form controls (and keyboard, where the OS allows) */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: var(--app-h, 100%); background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); }
body { overflow: hidden; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app {
  position: relative; height: 100%; max-width: 460px; margin: 0 auto; overflow: hidden;
  display: flex; flex-direction: column; background: var(--bg);
  border-left: 1px solid #111412; border-right: 1px solid #111412;
}
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; padding: max(12px, env(safe-area-inset-top)) 16px 16px; }
.screen.noscroll { overflow: hidden; display: flex; flex-direction: column; }
.overlay { position: absolute; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; animation: slidein .18s ease-out; }
/* A screen under an opaque overlay or the call screen cannot be seen: power.js
   marks it "covered" and its animations wait until it is uncovered. */
.covered, .covered::before, .covered::after, .covered *, .covered *::before, .covered *::after { animation-play-state: paused !important; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }

/* ---------- top bars ---------- */
.topbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
.topbar h1 { font-size: 26px; font-weight: 700; margin: 0; flex: 1; letter-spacing: -.01em; }
.topbar h2 { font-size: 17px; font-weight: 600; margin: 0; flex: 1; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); flex: none;
  background: var(--sheen), var(--surface); border: 1px solid var(--line); transition: transform .12s var(--ease), color .15s, border-color .15s, background-color .15s; }
.iconbtn:hover { color: var(--text); border-color: var(--line-2); }
.iconbtn:active { transform: var(--press); }
.iconbtn.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); box-shadow: 0 0 16px -8px var(--accent-glow); }
.iconbtn.ghost { background: none; border-color: transparent; }
.iconbtn.ghost:hover { background: var(--surface); }
.icon { display: inline-grid; place-items: center; line-height: 0; }
.icon svg { display: block; }

/* ---------- tab bar ---------- */
/* A dark plate with wide rounded corners (tabbar.js draws it): its edge glows
   green over the open section, with a notch where that section ends, and runs
   on as a faint line past the others. */
.tabs { position: relative; display: flex; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); flex: none; }
.tabs-shape { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.tb-f0 { stop-color: #171c18; }
.tb-f1 { stop-color: #0e110f; }
.tb-f2 { stop-color: #0a0c0b; }
.tb-haze0 { stop-color: var(--accent); stop-opacity: .13; }
.tb-haze1 { stop-color: var(--accent); stop-opacity: 0; }
.tb-hi { stop-color: var(--accent); }
.tb-dim { stop-color: #d4e2d8; stop-opacity: .17; }
.tb-off { stop-color: var(--accent); stop-opacity: 0; }
/* The glow slowly comes up and fades away, the pulse of the bar. */
.tb-glow { opacity: .85; animation: tabglow 7s ease-in-out infinite; }
@keyframes tabglow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tb-glow { animation: none; } }
:where(:root.eco) .tb-glow { animation: none; }
.tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-top: 5px;
  font-size: 12.5px; font-weight: 500; color: #aeb7b1; position: relative; z-index: 1; transition: color .15s; }
.tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab > .icon { transition: color .15s, filter .2s; }
@media (hover: hover) { .tab:not(.active):hover { color: var(--text); } }
.tab:active > .icon { transform: var(--press); }
.tab.active { color: var(--accent); }
.tab.active > .icon { filter: drop-shadow(0 0 5px rgba(159, 232, 112, .6)); }
.tab.active .tab-label { text-shadow: 0 0 12px rgba(159, 232, 112, .45); }
.tab .badge { position: absolute; top: 8px; left: calc(50% + 7px); box-shadow: 0 0 0 2px #151a16; }
.badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; }

/* «+» in the middle of the tab bar (app.js TABS): creating, never a section. */
.tabplus { flex: none; width: 64px; display: grid; place-items: center; position: relative; z-index: 1; padding-top: 5px; }
.tabplus > span { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-primary); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px -8px var(--accent-glow); transition: transform .12s var(--ease); }
.tabplus:active > span { transform: var(--press); }

/* Inbox: chats and contacts under one tab. */
.inboxseg { flex: none; margin: 0 16px 4px; }
.inboxseg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* A line between groups of a menu sheet (the walkie apart in «Create»). */
.menusep { height: 1px; background: var(--line); margin: 6px 4px; }
/* A wave's tile: its first letter. */
.wtile.letter b { font-size: 19px; font-weight: 700; }
.wtile.letter .icon { color: var(--violet); }

/* ---------- Explore (waves.js): what goes on now ---------- */
.xoff { display: flex; gap: 8px; align-items: center; padding: 9px 12px; margin-bottom: 10px; border-radius: 12px; font-size: 13px;
  background: rgba(255, 207, 110, .1); border: 1px solid rgba(255, 207, 110, .4); color: var(--amber); }
.section-title .xcount { margin-left: 8px; color: var(--accent); }
.xnow { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.xcard { padding: 0; overflow: hidden; }
.xcard.live { border-color: rgba(159, 232, 112, .35); }
.xmain { display: flex; flex-direction: column; gap: 6px; padding: 13px 14px 8px; width: 100%; text-align: left; }
.xtags { display: flex; flex-wrap: wrap; gap: 5px; }
.xtag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); }
.xtag.live { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.xtag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: blink 1.4s infinite; }
.xtag.ice { color: var(--ice); border-color: rgba(140, 216, 255, .4); background: rgba(140, 216, 255, .1); }
.xtag.amber { color: var(--amber); border-color: rgba(255, 207, 110, .4); background: rgba(255, 207, 110, .1); }
.xname { font-size: 17px; font-weight: 600; line-height: 1.25; }
.xdesc { font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xwho { font-size: 13px; color: var(--text-2); }
.xfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 12px; }
.xnums { font-size: 12px; color: var(--text-2); }
.xhere { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); }
.xskel { height: 128px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%) 0 0 / 200% 100%; animation: xshimmer 1.4s linear infinite; }
.xskel.short { height: 96px; }
@keyframes xshimmer { to { background-position: -200% 0; } }
.xempty { padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.xempty b { font-size: 16px; color: var(--text); }
.xflat { width: 100%; height: 30px; }
.xacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.xsched .xwhen { width: 64px; flex: none; font-size: 13px; color: var(--violet); }
@media (prefers-reduced-motion: reduce) { .xskel, .xtag.live::before { animation: none; } }
:where(:root.eco) .xskel, :where(:root.eco) .xtag.live::before { animation: none; }
/* The room's role line: who you are here and whether anyone hears you. */
.wroleline { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; padding: 8px 12px; border-radius: 12px; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.wroleline.stage { border-color: var(--accent-line); }
.wroleline.hot { color: var(--accent); border-color: var(--accent); background: linear-gradient(90deg, rgba(159, 232, 112, .2), var(--surface-2)); font-weight: 600; }
/* Languages and topics (talk.js): Explore's language pill, the note of
   what it was picked by, and the chips of the first start and the profile. */
.xlangbar { display: flex; margin: 0 0 8px; }
.xlangpill { max-width: 100%; }
.xlangpill > span { overflow: hidden; text-overflow: ellipsis; }
.xpicked { display: flex; gap: 10px; align-items: center; padding: 9px 6px 9px 12px; margin-bottom: 10px; border-radius: 12px; font-size: 13px;
  background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--text-2); }
.xpicked > .icon { color: var(--accent); flex: none; }
.xpicked b { color: var(--text); font-weight: 600; }
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; }
.tchip:active { transform: var(--press); }
.tchip.on { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.onb-hero { display: grid; place-items: center; height: 96px; margin-top: 4px; border-radius: 18px; color: var(--accent);
  background: radial-gradient(closest-side, rgba(159, 232, 112, .18), transparent); }
.onb-points { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.wroleline.wait { color: var(--amber); border-color: rgba(255, 207, 110, .45); background: rgba(255, 207, 110, .08); }
.convtip { gap: 10px; }

/* ---------- the session bar (sessionbar.js) ----------
   Over the tab bar on every tab but the walkie: where the radio is tuned,
   what goes on there and the mic. Green when this phone is on air. */
.sbar { flex: none; display: flex; align-items: center; gap: 4px; margin: 0 8px 6px; padding: 4px 4px 4px 6px; border-radius: 14px;
  background: var(--sheen), var(--surface-2); border: 1px solid var(--line-2); position: relative; z-index: 2; }
.sbmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 3px 4px; border-radius: 10px; }
.sbico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.sbtext { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sbtext b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbline { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbleave { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.sbleave:hover { color: var(--text); background: var(--surface-3); }
.sbar.hot { border-color: var(--accent-line); background: linear-gradient(90deg, rgba(159, 232, 112, .2), var(--surface-2)); }
.sbar.hot .sbico { background: var(--accent-dim); color: var(--accent); }
.sbar.hot .sbline { color: var(--accent); }
.sbar.rx .sbico { color: var(--ice); }
.sbar.rx .sbline { color: var(--ice); }
.sbar.wait .sbline { color: var(--amber); }
.sbar.lost .sbline { color: var(--amber); }

/* The on-air pill: over every screen while this phone transmits and the
   screen in front does not show it. */
.onairpill { position: fixed; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 110;
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 22px; max-width: calc(100% - 24px);
  background: #142010; border: 1px solid var(--accent); color: var(--accent); font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8), 0 0 24px -6px var(--accent-glow); }
.onairpill .oat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onairpill .oadot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.2s infinite; }
.onairpill .oastop { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--grad-primary); color: var(--accent-ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .onairpill .oadot { animation: none; } }

/* ---------- common ---------- */
.card { background: linear-gradient(180deg, #141916, var(--surface) 60px); border: 1px solid var(--line); border-radius: var(--radius); }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); min-height: 60px; text-align: left; width: 100%; transition: background-color .15s; }
button.row:active { background-color: rgba(255, 255, 255, .025); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { color: var(--text-3); font-size: 12px; text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.section-title { color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 18px 4px 6px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.empty { color: var(--text-3); text-align: center; padding: 32px 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }
.hstack { display: flex; align-items: center; gap: 8px; }
.vstack { display: flex; flex-direction: column; gap: 10px; }

.avatar { flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--surface-3); color: var(--text); border: 1px solid var(--line); position: relative; }
.avatar.ch { border-radius: 12px; color: var(--accent); background: var(--accent-dim); border-color: transparent; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg); background: var(--text-3); }
.avatar .dot.live { background: var(--accent); }
.avatar .dot.quiet { background: #c9b45a; }

/* Buttons. One family for the whole app:
   .btn          — graphite, hairline, a faint sheen on top (secondary)
   .btn.primary  — the signal green, lit from above, with a soft glow
   .btn.signal   — green outline over a green tint (the terminal look)
   .btn.ghost    — text only, for the quiet third choice
   .btn.danger   — red tint
   sizes: .small (34px), default (46px), .large (54px); .block — full width */
.btn { height: 46px; border-radius: 14px; padding: 0 18px; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
  background: var(--sheen), var(--surface-2); border: 1px solid var(--line); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s var(--ease), border-color .15s, background-color .15s, box-shadow .2s, filter .15s; }
.btn:hover { border-color: var(--line-2); }
.btn:active { transform: var(--press); background-color: var(--surface-3); }
.btn.primary { background: var(--grad-primary); color: var(--accent-ink); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 8px 22px -12px var(--accent-glow); }
.btn.primary:hover { filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -10px var(--accent-glow); }
.btn.primary:active { filter: brightness(.95); }
.btn.signal { color: var(--accent); border-color: var(--accent-line); background: linear-gradient(rgba(159, 232, 112, .09), rgba(159, 232, 112, .03)); box-shadow: inset 0 0 18px -10px var(--accent-glow); }
.btn.signal:active { background-color: transparent; background-image: linear-gradient(rgba(159, 232, 112, .2), rgba(159, 232, 112, .1)); }
.btn.ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.danger { color: var(--danger); background: var(--danger-dim); border-color: rgba(224, 87, 79, .18); }
.btn.danger:hover { border-color: rgba(224, 87, 79, .4); }
.btn.small { height: 34px; border-radius: 11px; padding: 0 13px; font-size: 13px; gap: 6px; }
.btn.large { height: 54px; border-radius: 16px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .42; cursor: default; transform: none; filter: none; }
.btn .icon { flex: none; }
.pill { height: 32px; padding: 0 13px; border-radius: 16px; background: var(--sheen), var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none;
  transition: transform .12s var(--ease), background-color .15s, color .15s, border-color .15s; }
.pill:active { transform: var(--press); }
/* Selected is a green tint and outline — solid green is kept for the main action only. */
.pill.on { background: linear-gradient(rgba(159, 232, 112, .16), rgba(159, 232, 112, .07)); color: var(--accent); border-color: var(--accent-line); font-weight: 600; box-shadow: 0 0 14px -8px var(--accent-glow); }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.pills::-webkit-scrollbar { display: none; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.tag.green { background: var(--accent-dim); color: var(--accent); }
.tag.red { background: var(--danger-dim); color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--text-2); font-size: 13px; }
.input, select.input, textarea.input { height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 14px; resize: none; }
.input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(159, 232, 112, .08); }
.input::placeholder { color: var(--text-3); }
/* Selects: the system arrow is replaced with ours. */
select.input { -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer; text-overflow: ellipsis;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fe870' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat, var(--surface); }
select.input option { background: var(--surface-2); color: var(--text); }
/* A compact select inside a settings row. */
.setting select.input, select.input.compact { width: auto; max-width: 52%; height: 36px; border-radius: 10px; padding: 0 32px 0 12px; font-size: 13.5px; color: var(--text-2);
  background-position: right 9px center; background-color: var(--surface-2); flex: none; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 0 12px; color: var(--text-3); margin-bottom: 10px; }
.search input { flex: 1; background: none; border: 0; outline: none; height: 100%; }
.seg { display: flex; padding: 3px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; gap: 2px; }
.seg button { flex: 1; height: 34px; border-radius: 10px; color: var(--text-2); font-size: 13px; transition: background-color .15s, color .15s; }
.seg button:hover:not(.on) { color: var(--text); }
.seg button.on { background: var(--sheen), var(--surface-3); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-line), 0 4px 12px -8px var(--accent-glow); }

.switch { width: 48px; height: 28px; border-radius: 14px; background: var(--surface-3); position: relative; flex: none; transition: background .2s, box-shadow .2s;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 2px 4px rgba(0, 0, 0, .35); }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #c9d0cb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45); transition: transform .22s var(--ease), background .2s; }
.switch.on { background: var(--grad-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 14px -6px var(--accent-glow); }
.switch.on::after { transform: translateX(20px); background: #0f1d09; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* ---------- toasts & sheets ---------- */
.toasts { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); width: min(440px, calc(100% - 24px)); z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 8px 8px 12px; border-radius: 16px; cursor: pointer; touch-action: none;
  font-size: 14px; line-height: 1.35; color: var(--text); border: 1px solid var(--line-2);
  background: var(--sheen), rgba(25, 30, 27, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .03);
  animation: drop .22s var(--ease); transition: opacity .18s, transform .18s var(--ease); }
.toast.out { opacity: 0; transform: translateY(-10px) scale(.98); }
.toast.sticky { cursor: default; } /* only its timer or its button take it away */
.toast-tx { flex: 1; min-width: 0; padding: 4px 4px 4px 0; overflow-wrap: anywhere; }
.toast-ic { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--text-2); background: var(--surface-3); }
.toast.err { border-color: rgba(224, 87, 79, .42); }
.toast.err .toast-ic { color: var(--danger); background: var(--danger-dim); }
.toast.ok { border-color: rgba(159, 232, 112, .3); }
.toast.ok .toast-ic { color: var(--accent); background: var(--accent-dim); }
.toast .btn { flex: none; }
.toast:not(:has(.toast-ic)) { padding-left: 14px; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-height: 88%; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .24s var(--ease);
  background: linear-gradient(180deg, #161b18, var(--surface) 120px); box-shadow: 0 -18px 40px -12px rgba(0, 0, 0, .6); }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; position: relative; touch-action: none; cursor: grab; }
/* The grip is thin; its touch area is not. */
.sheet .grip::after { content: ""; position: absolute; inset: -12px -64px -10px; }
.sheet { transition: transform .2s var(--ease); }
/* Header with a × (sheet(…, { closeBtn: true })). */
.shead { display: flex; align-items: center; gap: 8px; margin: -6px -8px 10px 0; }
.shead h3 { flex: 1; min-width: 0; margin: 0; }
.shead .sclose { color: var(--text-3); }
/* Footer pinned to the bottom (sheet(…, { foot })): the main action is always
   in reach, the content scrolls under a short fade. */
.sfoot { position: sticky; z-index: 2; bottom: calc(-18px - env(safe-area-inset-bottom)); margin: 14px -16px calc(-18px - env(safe-area-inset-bottom));
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(18, 22, 20, 0), var(--surface) 16px); }
.ask .btn.ghost { color: var(--text-2); }
.sheet h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; letter-spacing: -.005em; }
.setting { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 52px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.setting:last-child { border-bottom: 0; }
.setting .grow { flex: 1; min-width: 0; }
.setting .hint { font-size: 12.5px; color: var(--text-3); line-height: 1.35; margin-top: 1px; }
/* The receive volume in the walkie's settings (radio.js walkieRows). */
.setting .volrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.setting .volrow input { flex: 1; min-width: 0; accent-color: var(--accent); }
.setting .volrow output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
button.setting { transition: background-color .15s; }
button.setting:active { background-color: rgba(255, 255, 255, .03); }
.setgroup { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 16px 0 2px; }
/* Icon tile at the start of a row. A bare icon as the first child (older
   rows) gets the same tile. */
.sico, .setting > .icon:first-child { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px rgba(159, 232, 112, .12); }
.sico.ice { color: var(--ice); background: rgba(140, 216, 255, .12); box-shadow: inset 0 0 0 1px rgba(140, 216, 255, .14); }
.sico.violet { color: var(--violet); background: rgba(185, 162, 255, .13); box-shadow: inset 0 0 0 1px rgba(185, 162, 255, .15); }
.sico.amber { color: var(--amber); background: rgba(255, 207, 110, .12); box-shadow: inset 0 0 0 1px rgba(255, 207, 110, .14); }
.sico.red, .setting.danger .sico, .setting.danger > .icon:first-child { color: var(--danger); background: var(--danger-dim); box-shadow: inset 0 0 0 1px rgba(224, 87, 79, .16); }
.sico.gray { color: var(--text-2); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.setting .chev { color: var(--text-3); flex: none; display: grid; }
.setting .val { color: var(--text-3); font-size: 13.5px; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A card of rows (profile, settings pages). */
.card.group { padding: 0 14px; }
.card.group > .setting .grow { font-weight: 500; }
.card.group > .setting .hint { font-weight: 400; }
.menu .setting .grow { font-weight: 500; }
.menu .setting .hint { font-weight: 400; }
/* Quick actions: big round buttons with a label under each. */
.qacts { display: flex; justify-content: space-around; gap: 6px; padding: 4px 0 10px; }
.qact { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 64px; flex: 1; max-width: 88px; font-size: 12px; color: var(--text-2); }
.qact .qico { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: var(--accent);
  background: var(--sheen), var(--surface-2); border: 1px solid var(--line); transition: transform .12s var(--ease), border-color .15s, background-color .15s, box-shadow .2s; }
.qact:active .qico { transform: var(--press); }
.qact:hover .qico { border-color: var(--line-2); }
.qact.on .qico { border-color: var(--accent-line); background: var(--accent-dim); box-shadow: 0 0 18px -8px var(--accent-glow); }
.qact.on { color: var(--accent); }
.qact.ice .qico { color: var(--ice); }
.qact.violet .qico { color: var(--violet); }
.qact.red .qico { color: var(--danger); }
/* A settings page pushed over the current screen. */
.subpage .screen { padding-top: 4px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.subpage .topbar h2 { font-size: 18px; }
.lead { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin: 2px 4px 6px; }
.footnote { color: var(--text-3); font-size: 12px; line-height: 1.5; margin: 10px 4px 0; }
.setting .hint .warn { color: var(--danger); }

/* ---------- auth ---------- */
.auth { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: max(24px, env(safe-area-inset-top)) 24px 28px; }
.planet { position: relative; height: 200px; margin: 0 -24px; overflow: hidden; flex: none; }
.planet::before { content: ""; position: absolute; left: 50%; top: 22px; width: 300px; height: 300px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1a201c 0%, #0b0e0c 62%); box-shadow: 0 -2px 0 0 rgba(220, 240, 225, .55), 0 -14px 40px -6px rgba(200, 240, 210, .25); }
.planet::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--bg)); }
.logo { position: absolute; left: 0; right: 0; top: 112px; text-align: center; z-index: 1; }
.logo b { display: block; font-size: 38px; letter-spacing: .38em; padding-left: .38em; color: var(--accent); font-weight: 500; }
.logo small { color: var(--text-3); font-size: 9px; letter-spacing: .4em; text-transform: uppercase; }
.tagline { text-align: center; color: var(--text-2); margin: 0 0 18px; line-height: 1.5; font-size: 14px; }
.tagline b { color: var(--text); font-weight: 500; }
.demo-hint { margin-top: 16px; font-size: 12px; color: var(--text-3); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.demo-hint .pill { height: 28px; font-size: 12px; color: var(--accent); }
/* Came by an «Invite» link: where they are going, above the form. */
.auth.invited .planet { height: 190px; }
.auth.invited .logo { top: 100px; }
.invite { position: relative; z-index: 1; text-align: center; margin: -6px 0 18px; padding: 12px 14px; border-radius: 16px; background: var(--accent-dim); border: 1px solid rgba(159, 232, 112, .3); color: var(--text); font-size: 14px; }
.invbig { font-size: 30px; color: var(--accent); margin: 2px 0 4px; text-shadow: 0 0 16px rgba(159, 232, 112, .3); }
.invbig span { font-size: 22px; }
.onb-howto { padding: 12px 14px 2px; }
.onb-howto .howto-l { margin: 0 0 10px; padding-left: 20px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.onb-howto .howto-l b { color: var(--accent); }
.prow.lost { opacity: .55; }
.awayhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.awayhead .btn { flex: none; }

/* ---------- radio ---------- */
/* One screen, top to bottom: the head (my channels, the channel, ⋯), the
   presets, the LCD, who is here, the air line, the big button, one line of
   help, the console. Nothing scrolls and nothing overlaps: the button takes
   what height is left (container units). */
/* The walkie keeps its layers to itself (isolation): its pager (z 40), the
   picture of the one talking (z 30) never show through a screen opened over
   it (a chat, z 20) or a sheet. */
.radio { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; isolation: isolate; }
.radio .head { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 4px; flex: none; }
.chanbtn { flex: 1; min-width: 0; text-align: center; padding: 4px 0; }
.chanbtn .name { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chanbtn .freqline { font-size: 12.5px; color: var(--text-2); display: flex; gap: 6px; justify-content: center; align-items: center; }

/* The LCD: what kind of air above, the number big, who is here below. */
.lcdbox { margin: 2px 12px 0; padding: 6px 12px 4px; border-radius: 18px; background: linear-gradient(#0f1311, #0b0e0c); border: 1px solid var(--line); flex: none; }
.lcd { display: block; width: 100%; min-width: 0; text-align: left; padding: 0; }
.lcdtop { display: flex; align-items: center; gap: 8px; height: 16px; font-size: 10.5px; letter-spacing: .12em; color: var(--accent); }
.lcdmode { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcdmode.open { color: #ffc44d; }
.lcdright { display: flex; align-items: center; gap: 8px; flex: none; }
.lcdsig { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.lcdsig i { width: 3px; border-radius: 1px; background: var(--surface-3); }
.lcdsig i.on { background: var(--accent); }
.lamp { font-size: 10px; line-height: 14px; padding: 0 5px; border-radius: 5px; color: #3a443e; border: 1px solid var(--line); letter-spacing: .1em; }
.lamp.rx { color: var(--accent-ink); background: var(--accent); border-color: transparent; box-shadow: 0 0 10px var(--accent-glow); }
.lamp.tx { color: #fff; background: var(--danger); border-color: transparent; box-shadow: 0 0 10px rgba(224, 87, 79, .6); }
.lcdfreq { font-size: 40px; line-height: 42px; height: 42px; color: var(--accent); text-shadow: 0 0 18px rgba(159, 232, 112, .3); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcdfreq.word { font-family: var(--font); font-size: 28px; font-weight: 600; }
.lcdbox.none .lcdfreq { color: #2c362f; text-shadow: none; }
.lcdbox.none .lcdmode { color: var(--text-3); }
.deaf { display: block; width: 100%; text-align: left; min-height: 16px; line-height: 15px; padding: 1px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--danger); position: relative; }
.deaf::after { content: ""; position: absolute; inset: -8px 0; } /* a finger-sized target */
.deaf .deaffix { white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; } /* what a tap does */
.lcdbot { display: flex; align-items: center; gap: 10px; height: 22px; margin-top: 2px; border-top: 1px dashed #1f2622; padding-top: 2px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.lcdbot > * { flex: none; }
.lcdlink { color: var(--accent); font-size: 12px; }
.locchip { display: inline-flex; align-items: center; height: 20px; border-radius: 10px; background: var(--accent-dim); color: var(--accent); min-width: 0; flex: 0 1 auto; overflow: hidden; }
.locchip.warn { background: rgba(255, 196, 77, .12); color: #ffc44d; }
.locchip .loctext { font-size: 11.5px; padding: 0 6px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.locstop { font-size: 11.5px; font-weight: 700; padding: 0 8px; height: 20px; border-left: 1px solid rgba(159, 232, 112, .25); flex: none; }
.lcdfav { color: var(--amber); margin-left: auto; display: inline-grid; }

/* Presets: big enough for a gloved thumb. */
.radio .quick { position: relative; padding: 2px 12px 2px; gap: 8px; flex: none; }
.radio .quick .pill { height: 38px; border-radius: 19px; padding: 0 14px; font-size: 13.5px; }
.radio .quick .pill.add { color: var(--accent); border-style: dashed; }
.radio .quick .pill.add .icon { color: var(--accent); }
.radio .quick .pill .pw { font-size: 13px; }
/* A walkie with a few hours left (radio.js walkieLeft): its time on the pill. */
.radio .quick .pill .pleft { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding: 1px 6px; border-radius: 8px; font: 600 10.5px var(--mono); color: var(--amber); background: rgba(240, 180, 80, .1); border: 1px solid rgba(240, 180, 80, .3); }

.rbanner:empty { display: none; }
.rbanner .banner { margin: 6px 12px 0; padding: 6px 8px 6px 12px; }
.rbanner .banner .grow { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tipcard { margin: 6px 12px 0; padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(140, 216, 255, .3); font-size: 12.5px; line-height: 1.35; color: var(--text-2); flex: none; }
.tipcard b { color: var(--text); }
.tipbtns { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.howto { margin: 8px 12px 0; padding: 10px 14px 12px; flex: none; }
.howto-t { font-weight: 600; margin-bottom: 4px; }
.howto-l { margin: 0 0 10px; padding-left: 20px; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.howto-l li + li { margin-top: 3px; }
.howto-l b { color: var(--accent); font-weight: 600; }
.howto .btn { height: 42px; }
.radio .stcard.compact { margin: 6px 12px 0; flex: none; }

/* Who is on the frequency. */
.people { display: flex; align-items: center; gap: 8px; padding: 4px 12px 0; height: 42px; flex: none; }
.people .pcall { flex: none; }
.pstrip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; color: var(--text-2); font-size: 13px; text-align: left; }
.pfaces { display: flex; align-items: center; flex: none; padding-right: 6px; }
.pface { margin-right: -6px; border: 2px solid var(--bg); }
.pface.talking { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); animation: talkpulse 1s ease-in-out infinite; z-index: 1; transform: scale(1.18); margin: 0 -2px 0 4px; }
/* Who talks: first among the faces and the names, lit. */
.plabel .ptalk { color: var(--accent); font-weight: 700; }
.pface.lost { opacity: .4; filter: grayscale(1); }
@keyframes talkpulse { 50% { box-shadow: 0 0 0 5px rgba(159, 232, 112, .18); } }
.pmore { margin-left: 12px; font-size: 12px; color: var(--text-3); }
.plabel { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A walkie's away: who keeps the frequency but is off its air (whom «Call»
   reaches): the list (a tap: «People»), and 📣 to call them all while others
   are on the air. Ringing, the pill is amber and the bell swings — for
   everyone on the air: the call is the frequency's. */
.paway { flex: 0 1 auto; min-width: 0; max-width: 70%; display: flex; align-items: center; height: 32px; border-radius: 16px;
  border: 1px dashed var(--line-2); color: var(--text-3); font-size: 12.5px; }
.pawaylist { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 11px 0 4px; color: inherit; font: inherit; }
.pawaylist .pfaces { padding-right: 4px; }
.paway .pface.away { opacity: .55; filter: grayscale(.7); }
.pawaycall { flex: none; width: 34px; height: 100%; display: grid; place-items: center; border-left: 1px dashed var(--line-2); border-radius: 0 16px 16px 0; color: var(--accent); }
.pawaycall:active { background: var(--accent-dim); }
.paway.ringing { border-style: solid; border-color: var(--amber); color: var(--amber); }
.paway.ringing .pface.away { opacity: .85; filter: none; }
.paway.ringing .pawaycall { border-left: 1px solid var(--amber); color: var(--amber); }
.paway.ringing .pawaycall .icon { animation: abell 1s ease-in-out infinite; }
.chip { height: 28px; padding: 0 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none; position: relative; }
.chip::after { content: ""; position: absolute; inset: -8px -2px; } /* a finger-sized target around a small chip */

.radio .stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 2px 14px 0; gap: 4px; }
/* The air line: one sentence about the air, the queue chips beside it. */
.airline { display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; flex: none; }
.airline .wave { width: 48px; height: 20px; flex: none; }
.airtext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; color: var(--text-2); }
.airtext .wsub { margin-left: 6px; font-size: 12px; color: var(--text-3); }
/* (not the wave screen's .wstatus pill: here it is a run of text) */
.airtext .wstatus { display: inline; font-weight: inherit; color: inherit; }
.airtext.rx .wstatus { color: var(--accent); font-weight: 600; }
.airtext.tx .wstatus { color: #ff7a6e; font-weight: 600; font-variant-numeric: tabular-nums; }
.airtext.busy .wstatus, .airtext.err .wstatus { color: var(--danger); font-weight: 600; }
.airtext.turn .wstatus { color: #ffd24a; font-weight: 600; }
.airtext.note .wstatus { color: var(--ice); }
.airline .unavail { display: flex; flex-direction: row; gap: 6px; flex: none; width: auto; max-width: 66%; }
.airline .unavail:empty { display: none; }
.airline .unavail .qbtn { margin-top: 0; }
/* The queue buttons and «⟲ Replay» sit in the line: small, one row. */
.airline .btn.small { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.airline .btn.small .icon { flex: none; }
.airline .btn.replay { color: var(--accent); flex: none; }
/* Main's consent («Listen right away»…) keeps its words whole; beside it the
   queue chip is its icon alone, also on a narrow phone. */
.airline .btn.small.qfix { flex: none; }
.airline .btn.small.qicon { flex: none; padding: 0 9px; }
.airline .btn.small.qicon .icon { display: inline-grid; }
.airline.chips .wave, .airline.side .wave { display: none; }
/* «My channels»: a walkie row with its own ⋯ beside it. */
.wkrow { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); }
.wkrow:last-child { border-bottom: 0; }
.wkrow > .row { flex: 1; min-width: 0; border-bottom: 0; }

.ptt-wrap { position: relative; flex: 1 1 0; min-height: 0; max-height: 230px; width: 100%; display: grid; place-items: center; container-type: size; }
.ptt { position: relative; width: 196px; height: 196px; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 50% 40%, #1d2320, #111513 70%); border: 2px solid #2b332e;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text);
  transition: transform .08s, border-color .2s, box-shadow .2s, background .2s; }
.ptt::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid #1d2420; }
.ptt .lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; max-width: 78%; text-align: center; line-height: 1.25; }
.ptt[data-state="idle"] { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(159, 232, 112, .06), 0 0 38px -8px var(--accent-glow); }
.ptt[data-state="idle"]::before { border-color: rgba(159, 232, 112, .25); }
.ptt[data-state="requesting"] { border-color: var(--accent); transform: scale(.97); }
.ptt[data-state="transmitting"] { transform: scale(.97); border-color: var(--accent); border-width: 3px; background: radial-gradient(circle at 50% 45%, #1f2b1b, #101710 72%); box-shadow: 0 0 0 10px rgba(159, 232, 112, .08), 0 0 0 26px rgba(159, 232, 112, .04), 0 0 70px -6px var(--accent-glow); color: var(--accent); }
.ptt[data-state="transmitting"]::before { animation: pulse 1.2s ease-out infinite; border-color: rgba(159, 232, 112, .5); }
@keyframes pulse { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.14); opacity: 0; } }
.ptt[data-state="receiving"] { border-color: #39423c; color: var(--text-2); }
/* Receiving: the button shows who talks — their face, ringed in the ice blue
   of another's voice, and their name. */
.ptt.face[data-state="receiving"] { border-color: rgba(120, 200, 255, .45); color: var(--text); gap: 6px; }
.ptt .pttface { flex: none; border: 3px solid var(--ice); box-shadow: 0 0 22px -4px var(--ice-glow); animation: icepulse 1.1s ease-in-out infinite; }
.ptt .lsub { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ice); text-transform: uppercase; }
@keyframes icepulse { 50% { box-shadow: 0 0 0 6px rgba(120, 200, 255, .14), 0 0 26px -2px var(--ice-glow); } }
.ptt[data-state="busy"] { border-color: var(--danger); color: var(--danger); background: radial-gradient(circle at 50% 40%, #2a1716, #141010 70%); box-shadow: 0 0 40px -10px rgba(224, 87, 79, .5); }
.ptt[data-state="connecting"], .ptt[data-state="unavailable"], .ptt[data-state="none"] { border-color: #2b332e; color: var(--text-3); }
.ptt[data-state="connecting"]::before { border-top-color: var(--text-3); animation: spin 1s linear infinite; }
.ptt[data-state="none"] { border-style: dashed; border-color: rgba(159, 232, 112, .45); color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.ptt .stopsq { width: 22px; height: 22px; border-radius: 5px; background: var(--danger); }

/* Browsers without container units (iOS 15): the button keeps its size and its room. */
@supports not (width: 1cqh) { .ptt-wrap { flex: none; height: 230px; } }
@supports (width: 1cqh) {
  .ptt { width: min(196px, 82cqh, 82cqw); height: min(196px, 82cqh, 82cqw); gap: min(12px, 5cqh); }
  /* A smaller button keeps its icon and words inside the circle. */
  .ptt .lbl { font-size: clamp(9px, 5.4cqh, 12px); letter-spacing: min(.06em, .45cqh); }
  .ptt .icon svg { width: clamp(22px, 20cqh, 46px); height: clamp(22px, 20cqh, 46px); }
  .ptt .pttface { width: clamp(30px, 28cqh, 64px) !important; height: clamp(30px, 28cqh, 64px) !important; font-size: clamp(12px, 10cqh, 24px) !important; }
  /* At its smallest the words alone fill the button: no icon, a readable size. */
  @container (max-height: 140px) {
    .ptt .icon, .ptt .lsub { display: none; }
    .ptt .lbl { font-size: 10.5px; letter-spacing: .04em; }
  }
}
/* A floor: the rows above give way first (see max-height: 760px), and the
   button never gets smaller than a thumb's target with its ring. */
.ptt-wrap { min-height: 128px; }
.ptt { min-width: 108px; min-height: 108px; }

.hint-line { font-size: 12px; color: var(--text-3); text-align: center; min-height: 18px; line-height: 18px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.actions { display: flex; justify-content: space-around; padding: 4px 8px 8px; flex: none; }
.action { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); width: 66px; }
.action .iconbtn { position: relative; width: 46px; height: 46px; background: var(--surface); border: 1px solid var(--line); }
.action .iconbtn .badge { position: absolute; top: -3px; right: -5px; }
.action.on .iconbtn { color: var(--accent); border-color: rgba(159, 232, 112, .35); }

.banner { margin: 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--accent-dim); border: 1px solid rgba(159, 232, 112, .3); display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.unavail { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.tab .geodot { position: absolute; top: 7px; left: calc(50% + 7px); font-size: 11px; line-height: 1; }

/* A phone of 640 px: the same screen, tighter. */
@media (max-height: 760px) {
  .radio .head { padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: 2px; }
  .radio .head .iconbtn { width: 36px; height: 36px; }
  .lcdfreq { font-size: 34px; line-height: 36px; height: 36px; }
  .lcdfreq.word { font-size: 24px; }
  .people { height: 36px; padding-top: 2px; }
  .pface { width: 28px !important; height: 28px !important; font-size: 11px !important; }
  .ptt-wrap { max-height: 180px; }
  @supports not (width: 1cqh) { .ptt-wrap { height: 180px; } }
  .ptt { width: 156px; height: 156px; }
  @supports (width: 1cqh) { .ptt { width: min(156px, 82cqh, 82cqw); height: min(156px, 82cqh, 82cqw); } }
  .ptt::before { inset: -10px; }
  .actions { padding: 2px 8px 6px; }
  .action { gap: 2px; }
  .action .iconbtn { width: 42px; height: 42px; }
  .howto { padding: 8px 12px 8px; }
  .howto-t { font-size: 14px; margin-bottom: 2px; }
  .howto-l { font-size: 12px; margin-bottom: 0; line-height: 1.35; }
  .howto .btn { display: none; } /* the big button below does the same */
  .radio .howto .howto-lead { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
  .tipcard { padding: 7px 10px 8px; font-size: 12px; line-height: 1.3; }
  .tipbtns { margin-top: 6px; }
  .tipbtns .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
  /* Optional rows give way to the button: someone talking to you (the
     banner) beats the pocket tip, which comes back afterwards; either one
     beats the sound buttons and the help line. */
  .radio.banneron .tipcard { display: none; }
  .radio.tipon:not(.banneron) .people, .radio.tipon:not(.banneron) .hint-line { display: none; }
  .radio.tipon .sfxbar, .radio.banneron .sfxbar, .radio.banneron .hint-line { display: none; }
}

/* ---------- tuner ---------- */
.tuner { flex: 1; overflow-y: auto; padding: 0 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.tuner > * { flex-shrink: 0; } /* it scrolls; nothing in it gets squeezed */
.display { padding: 18px 16px 14px; text-align: center; background: linear-gradient(#0f1311, #0c0f0d); border: 1px solid var(--line); border-radius: 20px; position: relative; }
.display .freq { font-family: var(--mono); font-size: 54px; font-weight: 500; letter-spacing: .02em; color: var(--accent); text-shadow: 0 0 22px rgba(159, 232, 112, .25); line-height: 1.05; font-variant-numeric: tabular-nums; }
.display .unit { font-size: 15px; color: var(--text-3); margin-left: 6px; letter-spacing: .1em; }
.display .stat { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.sig { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sig i { width: 3px; background: var(--surface-3); border-radius: 1px; }
.sig i.on { background: var(--accent); }
.scale { position: relative; height: 84px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; touch-action: none; cursor: grab; }
.scale canvas { width: 100%; height: 100%; display: block; }
.scale .needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); pointer-events: none; }
.finetune { display: flex; gap: 8px; }
.finetune .input { text-align: center; font-family: var(--mono); font-size: 17px; }
.finetune .iconbtn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); }
.result { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.result .rhead { display: flex; align-items: center; gap: 10px; }
.result .rname { font-weight: 600; font-size: 16px; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); display: inline-block; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.tunebtns { display: flex; gap: 8px; }
.tunebtns .btn { flex: 1; letter-spacing: .06em; }
/* «Find a frequency» for the walkie: the number, the code, what is there, «Connect». */
.freqtap { display: block; margin: 0 auto; }
.dcode { font-size: 12px; letter-spacing: .14em; color: var(--accent); margin-top: 4px; }
.dcode.open { color: #ffc44d; }
.coderow { display: flex; align-items: center; gap: 8px; }
.coderow > span { color: var(--text-2); font-size: 14px; width: 46px; text-align: center; flex: none; }
.codebtn { flex: 1; display: flex; align-items: center; justify-content: space-between; font: 18px var(--mono); color: var(--accent); letter-spacing: .06em; }
.codebtn .dim { font: 15px var(--font); letter-spacing: 0; }
.codebtn .icon { color: var(--text-3); }
.peek { font-size: 13px; color: var(--text-2); min-height: 18px; text-align: center; margin: -4px 0; }
.peek.live { color: var(--accent); }
.wavenote { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; background: var(--surface); border: 1px solid rgba(140, 216, 255, .35); border-radius: var(--radius); }
.connect { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.btn.walkiego { height: 60px; flex-direction: column; gap: 1px; }
.walkiego .gomain { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.walkiego .gosub { font-size: 12px; font-weight: 500; opacity: .75; }
.connect .tunebtns.here { min-height: 46px; padding: 0 0 0 6px; }
.connect .herel { white-space: nowrap; }
.connect .tunebtns.here .btn { padding: 0 10px; }
.tunenowbox:empty { display: none; }
.opennote { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.curnote { font-size: 13px; color: var(--text-2); line-height: 1.35; padding: 0 2px; }

/* ---------- chat ---------- */
.msgs { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
  background-image: radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 14px 14px; }
.msg { max-width: 80%; padding: 8px 12px 6px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; word-wrap: break-word; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #1d2a19; border-color: #2a3a24; }
.msg .from { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.msg .time { font-size: 10.5px; color: var(--text-3); text-align: right; margin-top: 2px; }
.msg.deleted { color: var(--text-3); font-style: italic; }
.msg .acts { display: flex; gap: 6px; margin-top: 6px; }
.composer { display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; min-height: 42px; max-height: 120px; border-radius: 21px; padding: 10px 16px; }
.composer .iconbtn { width: 42px; height: 42px; }
.composer .iconbtn.send { background: var(--accent); color: var(--accent-ink); }

/* ---------- chat room (terminal style) ---------- */
.chatx { font-family: var(--mono); --gl: rgba(159, 232, 112, .5); --gb: #263628;
  background:
    radial-gradient(120% 42% at 50% 0%, rgba(62, 130, 44, .22) 0%, transparent 70%),
    radial-gradient(90% 30% at 50% 100%, rgba(62, 130, 44, .14) 0%, transparent 70%),
    linear-gradient(rgba(159, 232, 112, .045) 1px, transparent 1px) 50% 0 / 24px 24px,
    linear-gradient(90deg, rgba(159, 232, 112, .045) 1px, transparent 1px) 50% 0 / 24px 24px,
    #050806; }
/* Head: back, the chat itself (a tap opens its settings), a call, «⋯».
   Quiet round icon buttons without frames. */
.chead { display: flex; align-items: center; gap: 2px; padding: max(8px, env(safe-area-inset-top)) 6px 6px; }
.tbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--text-2);
  transition: transform .12s var(--ease), color .15s, background-color .15s; }
.tbtn:hover { color: var(--text); background: rgba(159, 232, 112, .06); }
.tbtn:active { transform: var(--press); color: var(--accent); background: rgba(159, 232, 112, .12); }
.chinfo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 3px 8px 3px 2px; border-radius: 14px; text-align: left; transition: background-color .15s; }
.chinfo:hover { background: rgba(159, 232, 112, .04); }
.chinfo:active { background: rgba(159, 232, 112, .08); }
.cava { position: relative; width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent);
  border: 1px solid var(--gl); background: #08110a; font: 600 13px var(--font);
  box-shadow: inset 0 0 12px -6px var(--accent-glow), 0 0 14px -8px var(--accent-glow); }
.cava.round { border-radius: 50%; }
.cava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cava .dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #060a07; box-shadow: 0 0 8px var(--accent-glow); }
.ctitle { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cname { font-family: var(--font); font-size: 17px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csub { font-family: var(--font); color: var(--text-3); font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The band: the frequency and one status chip on a single row. It grows
   only for an announcement or the VIP board. */
.vfband { position: relative; margin: 2px 12px 0; min-height: 46px; padding: 6px 8px 6px 14px; border: 1.5px solid var(--accent); border-radius: 14px; background: linear-gradient(#0c1a0e, #060c07);
  box-shadow: 0 0 18px -6px var(--accent-glow), 0 0 2px rgba(159, 232, 112, .6), inset 0 0 24px -12px var(--accent-glow); display: flex; align-items: center; gap: 8px; overflow: hidden; transition: box-shadow .2s; }
.vfband.rx { box-shadow: 0 0 30px -2px var(--accent-glow), 0 0 2px rgba(159, 232, 112, .8), inset 0 0 32px -8px var(--accent-glow); }
.vfid { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.vfkick { flex: none; font-size: 9.5px; letter-spacing: .18em; color: rgba(159, 232, 112, .55); }
.vfnum { min-width: 0; font-size: 19px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 14px rgba(159, 232, 112, .55); }
.vfband.direct .vfnum { font-size: 16px; }
.vfbadges { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; flex: none; }
.vbadge { font: 11.5px var(--mono); height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid #33443a; background: rgba(5, 9, 6, .72); color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.vbadge.on { border-color: var(--accent-line); color: var(--accent); background: rgba(159, 232, 112, .1); box-shadow: 0 0 10px -4px var(--accent-glow); }
.vbadge.warn { border-color: rgba(224, 87, 79, .45); color: var(--danger); }
.vbadge.act { color: var(--accent); border-color: var(--accent); background: rgba(159, 232, 112, .08); box-shadow: inset 0 0 12px -6px var(--accent-glow); transition: transform .12s var(--ease), background-color .15s; }
.vbadge.act:active { transform: var(--press); background: rgba(159, 232, 112, .2); }
.sig5 { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.sig5 i { width: 3px; border-radius: 1px; background: #2c3a2f; }
.sig5 i.on { background: var(--accent); box-shadow: 0 0 5px var(--accent-glow); }
.vfwave { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none; opacity: .5; }
.vfwave svg { width: 100%; height: 100%; display: block; }
.vfwave polygon { fill: rgba(159, 232, 112, .07); stroke: none; }
.vfwave polygon.a { fill: rgba(159, 232, 112, .1); }
.vfwave polyline { fill: none; stroke: var(--accent); stroke-width: .8; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px rgba(159, 232, 112, .8)); }
.vfwave polyline.b { opacity: .4; }
.vfband.rx .vfwave { opacity: 1; animation: blink .7s infinite; }

/* The log in a frame with corner marks; it fades out under the top edge so
   scrolled lines never run into the marks. */
.tframe { position: relative; flex: 1; min-height: 0; margin: 6px 6px 0; }
/* «Draw for everyone» (livedraw.js): the writing over the log, lighting
   it up rather than covering it; in the mode, a pad takes the finger (the
   chat does not scroll) and a bar at the top says so. */
.ldcv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.ldpad { position: absolute; inset: 0; z-index: 3; touch-action: none; cursor: crosshair; }
.tframe.drawing::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(159, 232, 112, .35), inset 0 0 26px -10px var(--accent-glow); }
.ldbar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px);
  padding: 5px 6px 5px 12px; border-radius: 16px; border: 1px solid var(--accent-line); background: rgba(5, 9, 6, .88); color: var(--accent);
  font: 12px var(--font); white-space: nowrap; box-shadow: 0 0 16px -6px var(--accent-glow); }
.ldbar span { overflow: hidden; text-overflow: ellipsis; }
.ldone { flex: none; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); font: 600 12px var(--font); }
.ldone:active { transform: var(--press); }
.tframe::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; --c: rgba(159, 232, 112, .4);
  background: linear-gradient(var(--c), var(--c)) 0 0 / 12px 2px, linear-gradient(var(--c), var(--c)) 0 0 / 2px 12px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 12px 2px, linear-gradient(var(--c), var(--c)) 100% 0 / 2px 12px,
    linear-gradient(var(--c), var(--c)) 0 100% / 12px 2px, linear-gradient(var(--c), var(--c)) 0 100% / 2px 12px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 12px 2px, linear-gradient(var(--c), var(--c)) 100% 100% / 2px 12px;
  background-repeat: no-repeat; }
.term { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 14px 10px 10px; font-size: 12.5px;
  -webkit-mask-image: linear-gradient(transparent, #000 16px); mask-image: linear-gradient(transparent, #000 16px); }
.tlog { display: flex; flex-direction: column; gap: 10px; }
.tline { color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere; }
.tline .arrow { font-size: 9px; margin-right: 8px; position: relative; top: -1px; }
.hl { color: var(--accent); font-weight: 600; }
/* Notes in the log (pins, calls, command output): centred and quiet. */
.tline.sys { align-self: center; max-width: 94%; text-align: center; font-size: 11.5px; line-height: 1.5; color: var(--text-3); padding: 2px 10px; }
.tline.sys .icon { display: inline-grid; vertical-align: -2px; margin-right: 5px; color: var(--accent); }
.tline.sys.hello { color: var(--text-2); font-size: 12px; padding: 7px 14px; border: 1px dashed rgba(159, 232, 112, .22); border-radius: 12px; background: rgba(159, 232, 112, .03); }
.tline.sys.help { align-self: stretch; max-width: none; text-align: left; padding: 10px 12px; border-left: 2px solid var(--gl); border-radius: 3px 12px 12px 3px; background: rgba(159, 232, 112, .04); color: var(--text-2); }
.tline.sys.help .hrow + .hrow { margin-top: 6px; }
.tline.sys.help .cmds { display: flex; flex-wrap: wrap; gap: 3px 14px; }
/* The greeting is typed out with a cursor. */
.tline.typing .ttext::after { content: ""; display: inline-block; width: 8px; height: 2px; margin-left: 2px; vertical-align: -2px; background: var(--accent);
  box-shadow: 0 0 6px var(--accent); }
.chatx.intro .prompt .cursor { visibility: hidden; }
.tday { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 11px; margin: 4px 0; }
.tday::before, .tday::after { content: ""; flex: 1; border-top: 1px dashed #263228; }
/* The prompt: a blinking cursor at the end of the log; the state of the
   air in words when something happens — then it stays in view. */
.prompt { margin-top: 10px; display: flex; align-items: flex-start; }
.prompt > * { line-height: 21px; }
.prompt .arrow { flex: none; top: 0; color: var(--accent); }
.prompt .pmsg { flex: 1; min-width: 0; color: var(--accent); }
/* The cursor lies under the line, as an underscore, at the end of the
   draft as well as under a letter inside it. */
.prompt .cursor { display: inline-block; width: 9px; height: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.prompt.live, .chatx.typing .prompt, .prompt.echo { position: sticky; bottom: -10px; z-index: 32; /* over the screen effects (chatfx) */ margin: 6px -10px -10px; padding: 12px 12px 12px; background: linear-gradient(rgba(5, 8, 6, 0), #050806 12px); }
/* The draft echoed as it is typed: its own line breaks, at most five lines
   (those around the cursor), the cursor under the letter it stands before. */
.prompt.echo .pmsg { position: relative; white-space: pre-wrap; max-height: 105px; overflow: hidden; }
.prompt .cursor.mid { width: 0; position: relative; background: none; }
.prompt .cursor.mid::after { content: ""; position: absolute; left: 0; top: 0; width: 1ch; height: 2px; background: var(--accent); }
.prompt .sel { background: rgba(159, 232, 112, .3); color: var(--text); }
.prompt.err .pmsg, .prompt.err .arrow { color: var(--danger); }
.prompt.rx .pmsg, .prompt.rx .arrow { color: var(--ice); text-shadow: 0 0 10px rgba(140, 216, 255, .35); }
.prompt.turn .pmsg, .prompt.turn .arrow { color: #ffd24a; text-shadow: 0 0 10px rgba(255, 210, 74, .45); }
.prompt .lvl { letter-spacing: -1px; }
.prompt .recdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 8px; box-shadow: 0 0 8px var(--danger); animation: blink 1s infinite; }

/* Messages: a run of one sender reads as one block; the name and the
   initials only on its first message (waves), the time tucked into the
   corner of the last line. */
.mrow { display: flex; gap: 8px; align-items: flex-start; --who: var(--accent); }
.mrow.mine { justify-content: flex-end; }
.mrow.cont { margin-top: -6px; }
.micon { width: 30px; height: 30px; flex: none; margin-top: 1px; border-radius: 50%; border: 1px solid var(--gl); border-color: color-mix(in srgb, var(--who) 55%, transparent);
  color: var(--who); display: grid; place-items: center; background: #08110a; font: 600 11px var(--font); box-shadow: 0 0 12px -7px var(--who); }
.micon.blank { visibility: hidden; height: 1px; }
.mcard { position: relative; min-width: 0; max-width: 84%; border: 1px solid var(--gb); border-radius: 14px; padding: 7px 11px 6px; background: linear-gradient(#0c150d, #090f0a);
  transition: transform .2s var(--ease); -webkit-touch-callout: none; }
.mrow:not(.mine) .mcard.first::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; transform: rotate(45deg); background: #0b140c; border-left: 1px solid var(--gb); border-bottom: 1px solid var(--gb); }
.mcard.mine { border-color: var(--gl); box-shadow: 0 0 16px -9px var(--accent-glow); }
.mcard.pressing { transform: scale(.975); }
.mcard.voice { flex: 1; border-color: var(--gl); box-shadow: 0 0 20px -9px var(--accent-glow); }
.mrow:not(.mine) .mcard.voice::before { border-color: var(--gl); }
/* On phones a long press opens the menu, not the text selection;
   «Select text» in the menu makes one message selectable again. */
@media (hover: none) { .mcard { -webkit-user-select: none; user-select: none; } }
.mcard.selecting { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-line), 0 0 18px -8px var(--accent-glow); }
.mcard ::selection { background: rgba(159, 232, 112, .3); }
/* Voice messages in winter ice blue, so the chat is not all green: the
   accent is swapped for everything inside the row (play, wave, time,
   quote, reactions). */
.mrow.voice { --accent: var(--ice); --accent-glow: var(--ice-glow); --accent-dim: rgba(140, 216, 255, .13); --accent-line: rgba(140, 216, 255, .42); --gl: rgba(140, 216, 255, .5); --gb: #233440; }
.mrow.voice .mcard { background: linear-gradient(#0b151b, #080f13); }
.mrow.voice:not(.mine) .mcard::before { background: #0a1419; }
.mname { font-size: 12px; font-weight: 600; color: var(--who); margin: 0 26px 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmore { margin-left: auto; color: var(--text-2); padding: 0 2px; display: grid; place-items: center; }
/* «•••» on a message: not drawn on phones (a tap on the message opens the
   menu); a mouse sees it on hover, the keyboard on focus. */
.mcard > .mmore { position: absolute; top: -11px; right: -6px; z-index: 1; width: 30px; height: 22px; margin: 0; padding: 0; border-radius: 11px; color: var(--text);
  background: #0b140c; box-shadow: 0 0 0 1px var(--gl), 0 4px 10px -4px rgba(0, 0, 0, .8); opacity: 0; transition: opacity .15s; }
.mcard > .mmore:focus-visible { opacity: 1; }
@media (hover: hover) { .mcard:hover > .mmore { opacity: 1; } .mcard { cursor: pointer; } }
/* On a touch screen the hidden «•••» takes no taps: it reaches over the
   corner of the message above, and a tap there would open the menu of the
   wrong message. A picture (a tap on it opens the viewer) shows it, inside
   its own corner. */
@media (hover: none) {
  .mcard > .mmore { pointer-events: none; }
  .mcard.media > .mmore { pointer-events: auto; opacity: 1; top: 8px; right: 8px; width: 32px; height: 24px; border-radius: 12px; background: rgba(5, 10, 6, .72); box-shadow: 0 0 0 1px rgba(159, 232, 112, .25); }
  .mcard.media > .mmore::after { content: ""; position: absolute; inset: -8px; }
}
.mline { display: flow-root; }
.mline > .mtext { display: inline; }
.mline > .mtext.clamp { display: block; }
.mtext { font-size: 14.5px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.mtext.deleted { color: var(--text-3); font-style: italic; font-size: 13px; }
.mmeta { float: right; display: inline-flex; align-items: center; gap: 4px; margin: 7px -3px -3px 10px; font-size: 10.5px; line-height: 14px; color: var(--text-3); white-space: nowrap;
  font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }
.mmeta .mcheck, .mmeta .ppin { color: var(--accent); display: inline-grid; }
/* End-to-end encrypted chat: what came unsealed (or with a key never pinned) says so. */
.mplain, .qplain { display: inline-flex; align-items: center; gap: 3px; padding: 0 5px; border-radius: 6px; font-size: 10px; line-height: 14px; font-style: normal;
  color: var(--danger); background: var(--danger-dim); unicode-bidi: isolate; }
.mplain.weak, .qplain.weak { color: var(--amber); background: rgba(255, 207, 110, .12); }
.qplain { margin-right: 6px; vertical-align: 1px; }
.qtext .qplain .icon { margin-right: 0; }
.mfoot { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.mfoot .mmeta { float: none; margin: 0 -3px 0 auto; }
.mcheck { color: var(--accent); flex: none; }
.vbody { display: flex; align-items: center; gap: 10px; padding-top: 2px; }
.vplay { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; flex: none; padding-left: 2px;
  box-shadow: 0 0 12px -5px var(--accent-glow), inset 0 0 10px -6px var(--accent-glow); transition: transform .12s var(--ease), background-color .15s; }
.vplay:active { transform: var(--press); }
.vbody.playing .vplay { padding-left: 0; background: var(--accent-dim); }
.vplay:disabled { border-color: var(--gb); color: var(--text-3); box-shadow: none; cursor: default; }
.vbody.loading .vplay { animation: blink .8s infinite; }
.vmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vwave { height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 1px; }
.vwave i { width: 2px; flex: none; border-radius: 1px; background: var(--accent); opacity: .85; }
.vbody.playing .vwave i { opacity: .3; }
.vbody.playing .vwave i.on { opacity: 1; box-shadow: 0 0 4px var(--accent-glow); }
.vbody.gone .vwave i { background: var(--text-3); opacity: .4; }
.vfoot { display: flex; align-items: center; gap: 6px; min-height: 14px; }
.vdur { color: var(--accent); font-size: 11.5px; flex: none; font-variant-numeric: tabular-nums; }
.vbody.gone .vdur { color: var(--text-3); }
.vfoot .ptag { font-size: 11px; line-height: 1; }
.vfoot .mmeta { float: none; margin: 0 -3px 0 auto; }

/* Input dock: sits at the very bottom, over the grid. */
.tdock { flex: none; margin-top: 6px; border-radius: 22px 22px 0 0; border-top: 1px solid rgba(159, 232, 112, .2);
  background: linear-gradient(rgba(13, 24, 14, .94), rgba(5, 9, 6, .98));
  box-shadow: 0 -12px 30px -16px rgba(159, 232, 112, .3), inset 0 1px 0 rgba(159, 232, 112, .06); }
/* Composer: [+] [input with ☺ inside] [mic] — and send while there is a
   draft, with the mic a little smaller next to it. */
.tcomposer { display: flex; gap: 6px; align-items: flex-end; padding: 10px 10px 6px; flex: none; }
.tfield { flex: 1; min-width: 0; display: flex; align-items: flex-end; border-radius: 22px; border: 1px solid var(--gb); background: rgba(6, 11, 7, .9); transition: border-color .15s, box-shadow .15s; }
.tfield:focus-within { border-color: var(--gl); box-shadow: 0 0 16px -9px var(--accent-glow); }
.tinput { flex: 1; min-width: 0; height: 42px; max-height: 130px; resize: none; border: 0; border-radius: 0; background: none; padding: 10px 2px 10px 16px; font: 15px/1.45 var(--mono); outline: none; color: var(--text); caret-color: var(--accent); }
.tinput::placeholder { color: var(--text-3); }
.tmic, .tsend, .tplus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .12s var(--ease), background-color .15s, box-shadow .15s, color .15s; }
.tmic { border: 1px solid var(--gl); color: var(--accent); background: rgba(159, 232, 112, .05); box-shadow: inset 0 0 14px -8px var(--accent-glow);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; animation: tpop .16s var(--ease); }
.tmic[data-state="requesting"] { border-color: var(--accent); background: rgba(159, 232, 112, .14); }
.tmic[data-state="transmitting"] { border-color: transparent; background: var(--grad-primary); color: var(--accent-ink); box-shadow: 0 0 0 6px rgba(159, 232, 112, .12), 0 0 24px var(--accent-glow); transform: scale(1.06); }
.tmic[data-state="busy"], .tmic[data-state="peer"] { border-color: var(--danger); color: var(--danger); background: var(--danger-dim); box-shadow: none; }
.tsend { background: var(--grad-primary); color: var(--accent-ink); padding-right: 2px; animation: tpop .16s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 18px -4px var(--accent-glow); }
.tsend:active, .tplus:active { transform: var(--press); }
@keyframes tpop { from { transform: scale(.7); opacity: .3; } }
.tcomposer.draft .tmic { width: 40px; height: 40px; margin-bottom: 2px; }
.tcomposer.draft .tmic svg { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .tmic, .tsend { animation: none; } }
:where(:root.eco) .tmic, :where(:root.eco) .tsend { animation: none; }
/* Footer: PULSE between dotted lines, glowing along the bottom edge; slim,
   it grows back to full height for an incoming call (call.js). */
.tstatus { position: relative; flex: none; margin: 0 14px calc(4px + env(safe-area-inset-bottom)); height: 24px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  color: var(--accent); font-size: 12px; border: 1px solid rgba(159, 232, 112, .15); border-top-color: transparent; border-radius: 3px 3px 12px 12px;
  background: linear-gradient(transparent, rgba(159, 232, 112, .06));
  box-shadow: inset 0 -2px 0 rgba(159, 232, 112, .5), 0 8px 18px -10px var(--accent-glow); transition: height .2s var(--ease); }
.tstatus.ringing { height: 44px; margin-top: 2px; }
/* The footer moves for as long as the chat is open, so only transform and
   opacity move in it: the compositor plays them with no repaint. A glow
   cannot change that way, so the words carry copies of themselves (the
   text from data-t, chat.js) with a fixed glow under the letters, and
   their opacities rise and fall; the opacities are fitted to the
   text-shadow beat the footer had before (tools/e2e-footer.js holds that
   look and compares the two). The compositor draws a growing word from one
   picture made at its largest size, a little soft at the others, so PULSE
   itself is two copies: one that stands still, sharp, at rest (::before),
   and one that grows and shrinks from the beat to the after-beats
   (::after). Its glows beat in the inner span. */
.tstatus .brand { position: relative; z-index: 0; display: inline-block; font-size: 11.5px; letter-spacing: .55em; margin-right: -.55em; color: transparent; }
.tstatus .orn { position: relative; z-index: 0; font-size: 9px; opacity: .8; animation: orn-beat 2.8s ease-in-out infinite; }
/* «/ ""»: screen readers do not read the copies. Browsers that do not know
   it read them, so chat.js also hides the footer from screen readers. */
.tstatus .brand::before, .tstatus .brand::after, .tstatus .brand > span::before, .tstatus .brand > span::after, .tstatus .orn::before, .tstatus .orn::after {
  content: attr(data-t); content: attr(data-t) / ""; position: absolute; left: 0; top: 0; color: var(--accent); pointer-events: none;
  animation: brand-still 2.8s ease-in-out infinite; }
/* will-change: a layer of its own, as the beating word had, so its letters
   fall on the same pixels as before. */
.tstatus .brand::before { will-change: transform; }
.tstatus .brand::after { opacity: 0; animation-name: brand-pop; }
.tstatus .brand > span { position: absolute; inset: 0; z-index: -1; animation: brand-beat 2.8s ease-in-out infinite; }
.tstatus .brand > span::before, .tstatus .brand > span::after, .tstatus .orn::before, .tstatus .orn::after { z-index: -1; color: transparent; }
.tstatus .brand > span::before { text-shadow: 0 0 8px rgb(159, 232, 112); animation-name: brand-glow; }
.tstatus .brand > span::after { text-shadow: 0 0 6px #d6ffbd, 0 0 18px rgba(159, 232, 112, .95), 0 0 34px rgba(159, 232, 112, .45); animation-name: brand-flare; }
.tstatus .orn::before { text-shadow: 0 0 8px var(--accent); animation-name: orn-glow; }
.tstatus .orn::after { text-shadow: 0 0 3px var(--accent); animation-name: orn-core; }
/* Dots stream toward the word from both sides, fading in from the edges;
   a brighter pulse rides along them and the word beats as it arrives.
   The dots are a strip one dot wider than the line, slid by one dot; the
   pulse is as wide as the line and draws its light at its left end, so
   translateX(100% - 34px) takes it to the far end. */
.tstatus .sdots { position: relative; flex: 1; height: 2px; opacity: .75; overflow: hidden; overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.tstatus .sdots::before { content: ""; position: absolute; top: 0; bottom: 0; left: -6px; right: 0;
  background: radial-gradient(circle, rgba(159, 232, 112, .7) 1px, transparent 1.3px) 0 50% / 6px 2px repeat-x;
  animation: scroll-dots 1s linear infinite; }
.tstatus .sdots.r { -webkit-mask-image: linear-gradient(270deg, transparent, #000 55%); mask-image: linear-gradient(270deg, transparent, #000 55%); }
.tstatus .sdots.r::before { animation-direction: reverse; }
.tstatus .sdots::after { content: ""; position: absolute; top: -4px; left: 0; width: 100%; height: 10px; opacity: 0;
  background: radial-gradient(closest-side, rgba(200, 255, 160, .95), rgba(159, 232, 112, .35) 55%, transparent) 0 0 / 34px 10px no-repeat;
  animation: dot-run 2.8s cubic-bezier(.45, 0, .7, 1) infinite; }
.tstatus .sdots.r::after { animation-name: dot-run-r; }
.tstatus.active .sdots { opacity: 1; }
.tstatus.active .sdots::before { animation-duration: .45s; }
.tstatus.active .sdots::after, .tstatus.active .brand::before, .tstatus.active .brand::after, .tstatus.active .brand > span,
.tstatus.active .brand > span::before, .tstatus.active .brand > span::after, .tstatus.active .orn, .tstatus.active .orn::before, .tstatus.active .orn::after { animation-duration: 1.1s; }
@keyframes scroll-dots { to { transform: translateX(6px); } }
@keyframes dot-run { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 62% { transform: translateX(calc(100% - 34px)); opacity: 1; } 70%, 100% { transform: translateX(calc(100% - 34px)); opacity: 0; } }
@keyframes dot-run-r { 0% { transform: translateX(calc(100% - 34px)); opacity: 0; } 15% { opacity: 1; } 62% { transform: translateX(0); opacity: 1; } 70%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes brand-beat {
  0%, 56%, 100% { transform: scale(1); opacity: .88; }
  66% { transform: scale(1.07); opacity: 1; }
  76% { transform: scale(1.01); opacity: .95; }
  83% { transform: scale(1.035); opacity: 1; }
  92% { transform: scale(1); opacity: .9; }
}
/* The word: still and sharp at its rest size; from 56 % to 92 % the
   growing copy takes over (both are the same at those moments). */
@keyframes brand-still { 0% { opacity: .88; animation-timing-function: step-end; } 56% { opacity: 0; animation-timing-function: step-end; } 92% { opacity: .9; } 100% { opacity: .88; } }
@keyframes brand-pop {
  0% { transform: scale(1); opacity: 0; animation-timing-function: step-end; }
  56% { transform: scale(1); opacity: .88; }
  66% { transform: scale(1.07); opacity: 1; }
  76% { transform: scale(1.01); opacity: .95; }
  83% { transform: scale(1.035); opacity: 1; }
  92% { transform: scale(1); opacity: .9; animation-timing-function: step-start; }
  100% { transform: scale(1); opacity: 0; }
}
/* The word's two glows: the 8 px one (::before) at rest and on the
   after-beats, the flare (::after) at the beat, 66 %. */
@keyframes brand-glow { 0%, 56%, 100% { opacity: .447; } 61% { opacity: .56; } 66% { opacity: 0; } 71% { opacity: .9; } 76% { opacity: .5; } 83% { opacity: .55; } 92% { opacity: .465; } }
@keyframes brand-flare { 0%, 56%, 76%, 100% { opacity: 0; } 61% { opacity: .46; } 66% { opacity: 1; } 71% { opacity: .28; } }
@keyframes orn-beat { 0%, 56%, 100% { opacity: .55; } 66% { opacity: 1; } 83% { opacity: .85; } }
/* The diamonds' glow comes up slowly to the beat and goes: a tight one
   first, then the wide one. */
@keyframes orn-glow { 0%, 28%, 88%, 100% { opacity: 0; } 42% { opacity: .68; } 56%, 72% { opacity: 1; } 80% { opacity: .45; } }
@keyframes orn-core { 0%, 10%, 56%, 72%, 96%, 100% { opacity: 0; } 30% { opacity: .37; } 84% { opacity: .36; } }
/* Still: the word itself with its resting glow, no copies. */
@media (prefers-reduced-motion: reduce) {
  .tstatus .orn, .tstatus .sdots::before, .tstatus .sdots::after { animation: none; }
  .tstatus .brand { color: inherit; text-shadow: 0 0 10px rgba(159, 232, 112, .6); }
  .tstatus .brand::before, .tstatus .brand::after, .tstatus .brand > span, .tstatus .orn::before, .tstatus .orn::after { display: none; }
}
:where(:root.eco) .tstatus .orn, :where(:root.eco) .tstatus .sdots::before, :where(:root.eco) .tstatus .sdots::after { animation: none; }
:where(:root.eco) .tstatus .brand { color: inherit; text-shadow: 0 0 10px rgba(159, 232, 112, .6); }
:where(:root.eco) .tstatus .brand::before, :where(:root.eco) .tstatus .brand::after, :where(:root.eco) .tstatus .brand > span,
:where(:root.eco) .tstatus .orn::before, :where(:root.eco) .tstatus .orn::after { display: none; }
.chatx.typing .tstatus, .chatx.emoji .tstatus:not(.ringing) { display: none; }
.chatx.typing .tcomposer { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
/* An on-screen keyboard covers the home indicator: no padding for it. */
html.kb .chatx .tcomposer { padding-bottom: 8px; }
html.kb .app { transform: translateY(var(--app-y, 0px)); }
/* Quick phrases: over the keyboard while typing (a tap sends, the draft
   stays); not while editing a message or choosing an @name. */
.tquick { display: none; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.tquick::-webkit-scrollbar { display: none; }
.chatx.typing:not(.editing) .tquick { display: flex; }
.tqbtn { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid rgba(159, 232, 112, .3); background: rgba(159, 232, 112, .05);
  color: var(--accent); font: 12.5px var(--mono); white-space: nowrap; transition: transform .12s var(--ease), background-color .15s; }
.tqbtn:active { transform: var(--press); background: rgba(159, 232, 112, .2); box-shadow: 0 0 12px -4px var(--accent-glow); }
/* Editing and answering: a quote bar over the input. */
.tedit, .treply { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 3px 4px 3px 10px; min-height: 38px; border-radius: 4px 12px 12px 4px;
  border-left: 3px solid var(--accent); background: rgba(159, 232, 112, .06); color: var(--accent); font-size: 12.5px; }
.tedit .icon, .treply > .icon { flex: none; }
.tedit .rtext, .treply .rtext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.tedit .rtext { color: var(--accent); }
.tedit .mmore, .treply .mmore { width: 32px; height: 32px; flex: none; margin-left: auto; border-radius: 50%; color: var(--text-2); }
.tedit .mmore:active, .treply .mmore:active { background: rgba(159, 232, 112, .12); }
/* End-to-end encryption: the lock by the name of a personal chat, the bar
   that turns it on on this device, the safety number. */
.clock { color: var(--accent); margin-right: 5px; }
.clock .icon { display: inline-grid; vertical-align: -1px; }
.tkeybar { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; padding: 3px 4px 3px 10px; min-height: 38px; border-radius: 4px 12px 12px 4px;
  border-left: 3px solid var(--amber); background: rgba(255, 207, 110, .07); color: var(--amber); font-size: 12.5px; }
.tkeybar > .icon { flex: none; }
.tkeybar .rtext { flex: 1; min-width: 0; color: var(--text-2); line-height: 1.3; }
.tkeybtn { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid rgba(255, 207, 110, .45); background: rgba(255, 207, 110, .1);
  color: var(--amber); font: 600 12.5px var(--font); }
.tkeybtn:active { transform: var(--press); }
.safety { padding: 14px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--accent-line); text-align: center;
  font-size: 17px; line-height: 1.7; letter-spacing: .06em; color: var(--accent); user-select: all; -webkit-user-select: all; }
@media (max-width: 370px) {
  .vfnum { font-size: 17px; }
  .vfkick { display: none; }
  .tcomposer { gap: 4px; padding-left: 6px; padding-right: 6px; }
}

/* ---------- attachments ---------- */
.mtext.clamp { max-height: 19em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.mexpand { color: var(--accent); font-family: var(--mono); font-size: 12px; padding: 2px 0; }
.mcard.filecard { min-width: min(250px, 84%); }
.mcard.media { padding: 4px; }
.mcard.media .mname { padding: 2px 6px 1px; }
.mcard.media .mquote { margin: 0 0 4px; }
.mcard.media .mline, .mcard.media .mfoot { padding: 0 7px 2px; }
.mcard.media .mline { margin-top: 6px; }
.frow { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
.frow + .mline, .frow + .mfoot { margin-top: 4px; }
.ficon { width: 42px; height: 42px; flex: none; border-radius: 12px; color: var(--accent); display: grid; place-items: center;
  background: rgba(159, 232, 112, .1); box-shadow: inset 0 0 0 1px rgba(159, 232, 112, .18); }
.fmeta { flex: 1; min-width: 0; text-align: left; }
.fname { font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fdl { width: 38px; height: 38px; flex: none; border-radius: 50%; color: var(--accent); display: grid; place-items: center; font-size: 18px;
  transition: transform .12s var(--ease), background-color .15s; }
.fdl:hover { background: rgba(159, 232, 112, .08); }
.fdl:active { transform: var(--press); background: rgba(159, 232, 112, .14); }
.frow.gone .ficon { color: var(--text-3); background: var(--surface-3); box-shadow: none; }
.frow.gone .fsub { white-space: normal; }
.fmedia { position: relative; display: block; max-height: 340px; max-width: 100%; border-radius: 11px; overflow: hidden; background: #050806; }
.fthumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.fthumb:not([src]), .fthumb.broken { visibility: hidden; }
.fplay { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(5, 10, 6, .65); border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; padding-left: 3px; }
.fbadge { position: absolute; left: 6px; top: 6px; font-size: 10.5px; padding: 2px 7px; border-radius: 8px; background: rgba(5, 10, 6, .75); color: var(--text); }
.fmedia .mmeta { position: absolute; right: 6px; bottom: 6px; float: none; margin: 0; padding: 2px 7px; border-radius: 9px; background: rgba(5, 10, 6, .72); color: var(--text); }
.fprog { height: 3px; margin-top: 8px; border-radius: 2px; background: #1c261e; overflow: hidden; }
.fprog i { display: block; width: 0; height: 100%; background: var(--accent); box-shadow: 0 0 6px var(--accent); transition: width .2s; }
.mcard.failed { border-color: rgba(224, 87, 79, .6); }
.mcard.failed .fsub { color: var(--danger); white-space: normal; }
.mcard.failed .fprog i { background: var(--danger); box-shadow: none; }
.chatx.dropping .tframe { outline: 2px dashed var(--accent); outline-offset: -4px; border-radius: 12px; }
/* The attach sheet: three big round tiles and one line about limits. */
.attach .qacts { padding: 4px 0 6px; }
.attnote { text-align: center; font-size: 12px; color: var(--text-3); line-height: 1.45; margin: 2px 12px 2px; }
.clist { display: flex; flex-direction: column; gap: 8px; max-height: 44vh; overflow-y: auto; }
.crow { display: flex; align-items: center; gap: 12px; }
.crow.bad .fsub { color: var(--danger); }
.crow.bad { opacity: .75; }
.cthumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); }
textarea.input.tcap { min-height: 60px; }
.sheet .btn:not(.danger):not(.primary) .icon, .sheet .setting > .icon { color: var(--accent); }

.viewer { position: absolute; inset: 0; z-index: 60; background: #030504; display: flex; flex-direction: column; font-family: var(--mono); animation: fade .15s; }
.vwtop { display: flex; align-items: center; gap: 6px; padding: max(8px, env(safe-area-inset-top)) 6px 8px; border-bottom: 1px solid #141c16; }
.vwname { flex: 1; min-width: 0; padding: 0 4px; }
.vwname div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.vwname small { display: block; color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vwbody { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; transition: transform .2s var(--ease), opacity .2s; }
.vwbody.drag { transition: none; }
.vwbody > img, .vwbody > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
/* A picture: a tap zooms it 1:1; pulled down on a touch screen, it closes. */
.vwbody > img, .vwbody > video { touch-action: pinch-zoom; }
.vwbody > img { cursor: zoom-in; }
.vwbody.zoom { place-items: start; }
.vwbody.zoom > img { position: static; width: auto; height: auto; cursor: zoom-out; touch-action: auto; }
.vwtext { align-self: stretch; justify-self: stretch; margin: 0; padding: 14px 16px; font: 13px/1.5 var(--mono); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.vwmore { display: block; margin-top: 18px; color: var(--text-3); font-style: italic; }
.vwmsg { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text-2); text-align: center; padding: 24px; }
.vwmsg > .icon { color: var(--accent); }
.vwcap { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #141c16; color: var(--text); white-space: pre-wrap; max-height: 30%; overflow-y: auto; font-size: 14px; }

/* ---------- voice effects ---------- */
.fxsheet { gap: 12px; }
.fxsheet .section-title { margin-top: 8px; margin-bottom: -4px; }
.fxsheet .card.group { margin: 0; }
/* Tabs: the chosen one is raised graphite with green ink, not a second
   green button next to «Done». */
.fxmodes { margin: 0; }
.fxmodes button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; font-size: 13.5px; }
.fxmodes button .icon { opacity: .75; }
.fxmodes button.on { background: var(--sheen), var(--surface-3); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line), 0 4px 12px -8px rgba(0, 0, 0, .8); }
.fxmodes button.on .icon { opacity: 1; }
/* «On air now»: the effect and background in use, with a reset. */
.fxnow { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 8px 9px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fxnow .grow { flex: 1; min-width: 0; }
.fxk { font: 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.fxnow b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; overflow-wrap: anywhere; }
.fxnow.on { border-color: var(--accent-line); background: linear-gradient(rgba(159, 232, 112, .07), rgba(159, 232, 112, .015)), var(--surface); box-shadow: inset 0 0 22px -14px var(--accent-glow); }
.fxnow.on b { color: var(--accent); }
.fxnow .btn { flex: none; }
.fxban { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--danger-dim); border: 1px solid rgba(224, 87, 79, .2); color: var(--text); font-size: 13.5px; line-height: 1.4; }
.fxban .icon { color: var(--danger); margin-top: 1px; flex: none; }
/* Chips: emoji over the name. */
.fxgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fxchip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 70px; padding: 10px 4px 9px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--sheen), var(--surface-2); color: var(--text-2); font-size: 12.5px; line-height: 1.2; text-align: center;
  transition: transform .12s var(--ease), border-color .15s, background-color .15s, color .15s, box-shadow .2s; }
.fxchip b { font-size: 25px; line-height: 1; font-weight: 400; }
.fxchip:hover:not(:disabled) { border-color: var(--line-2); }
.fxchip:active:not(:disabled) { transform: var(--press); }
.fxchip.on { border-color: var(--accent-line); color: var(--accent); font-weight: 600;
  background: linear-gradient(rgba(159, 232, 112, .13), rgba(159, 232, 112, .04)), var(--surface-2); box-shadow: inset 0 0 20px -10px var(--accent-glow), 0 0 18px -12px var(--accent-glow); }
.fxchip:disabled { opacity: .32; cursor: default; }
/* Sounds in the sheet are previews: a small play mark in the corner. */
.fxpi { position: absolute; top: 7px; right: 8px; color: var(--text-3); }
.fxkick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin: 2px 2px -2px; }
.fxkick .icon { color: var(--accent); }
.fxhint { font-size: 12.5px; color: var(--text-3); line-height: 1.4; margin: -2px 4px 0; }
/* «Fine-tuning»: pitch and strength, folded away. */
.fxmore { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fxmore > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 12px; cursor: pointer; font-weight: 500; }
.fxmore > summary::-webkit-details-marker { display: none; }
.fxmore > summary .grow { flex: 1; min-width: 0; }
.fxsum { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-3); margin-top: 1px; }
.fxmore > summary > .icon { color: var(--text-3); transition: transform .2s var(--ease); }
.fxmore[open] > summary > .icon { transform: rotate(180deg); }
.fxfine { display: flex; flex-direction: column; gap: 14px; padding: 2px 14px 14px; }
.fxrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.fxrow .fxrange, .fxrow .fxends { grid-column: 1 / -1; }
.fxval { font: 600 13px var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.fxends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: -4px; }
/* Sliders: a thin track lit up to the thumb (--p, set from the script). */
.fxrange { --p: 50%; width: 100%; height: 30px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.fxrange::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p)); }
.fxrange::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p)); }
.fxrange::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; border: 0; background: var(--grad-primary);
  box-shadow: 0 0 0 4px rgba(159, 232, 112, .12), 0 2px 6px rgba(0, 0, 0, .5); transition: box-shadow .15s; }
.fxrange::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--grad-primary); box-shadow: 0 0 0 4px rgba(159, 232, 112, .12), 0 2px 6px rgba(0, 0, 0, .5); }
.fxrange:active::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(159, 232, 112, .16), 0 0 16px -2px var(--accent-glow); }
.fxrange:disabled { opacity: .4; cursor: default; }
/* Background volume with one play/stop button. */
.fxlevel { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fxlhead { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.fxlhead .grow { flex: 1; }
.fxplay { width: 36px; height: 36px; color: var(--accent); }
.fxtest.busy { animation: fxtest 1.2s ease-in-out infinite; }
@keyframes fxtest { 50% { box-shadow: inset 0 0 22px -6px var(--accent-glow), 0 0 18px -8px var(--accent-glow); } }
/* Soundboard on the radio screen (radio.js builds it from SOUNDS): one
   centred row of emoji discs; the names stay for screen readers and titles. */
.sfxbar { display: flex; justify-content: center; gap: 8px; width: 100%; padding: 2px 0 4px; flex: none; touch-action: manipulation; }
.sfxbtn { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sheen), var(--surface); border: 1px solid var(--line); color: var(--text-2);
  transition: transform .12s var(--ease), background-color .15s, border-color .15s, box-shadow .2s; }
.sfxbtn b { font-size: 21px; line-height: 1; font-weight: 400; }
.sfxbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sfxbtn:active { transform: var(--press); background-color: var(--accent-dim); border-color: var(--accent-line); box-shadow: 0 0 16px -6px var(--accent-glow); }
@media (max-height: 700px) { .sfxbtn { width: 38px; height: 38px; } .sfxbtn b { font-size: 18px; } }

/* ---------- profile ---------- */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 14px; text-align: center; }
.profile-head .avatar { width: 92px; height: 92px; font-size: 34px; border: 2px solid var(--accent); }
.profile-head .pname { font-size: 21px; font-weight: 700; margin-top: 6px; }
.mode { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid transparent; width: 100%; text-align: left; }
.mode .mi { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.mode.on { background: var(--accent-dim); border-color: rgba(159, 232, 112, .35); }
.mode.on .mi { background: var(--accent); color: var(--accent-ink); }
.mode .t { font-weight: 600; }
.mode .d { font-size: 12px; color: var(--text-3); }
.diag { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; padding: 12px 14px; }
.diag span:nth-child(even) { font-family: var(--mono); color: var(--text); text-align: right; }
.diag span:nth-child(odd) { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Energy saving («eco» on <html>, power.js) stills the decoration that
   reduced motion stills: the reduced-motion rules in the stylesheets have
   eco twins next to them. :where() keeps each twin's specificity that of its
   original, so it wins and loses where the original does. Transitions stay:
   they play once, when something changes. What carries content or shows
   that something is under way moves as without energy saving: the running
   line of announcements (and of a call, in the chat footer), the spinners
   and loading dots (a connecting PTT, the map's locate button, a button
   waiting for the server, a studio pad, the stations strip still loading), a
   voice message still loading, the message a jump lands on, and the rings
   of a call still ringing. */
:where(:root.eco) :where(:not(.vftrack, .vbody.loading .vplay, .mrow.flash .mcard, .cring i, .mapx .mbtn.busy, .sxdots i, .rdtile.ghost)),
:where(:root.eco) :where(:not(.ptt[data-state="connecting"]))::before,
:where(:root.eco) :where(:not(.btn.loading))::after { animation: none !important; }
@media (min-width: 520px) {
  body { background: #060807; }
}

/* ---------- frequency keypad ---------- */
.freqbtn { font: 18px var(--mono); color: var(--accent); text-align: center; letter-spacing: .04em; }
.freqbtn.left { text-align: left; font-size: 16px; }
.freqbtn.empty { color: var(--text-3); }
.kpscrim { position: absolute; inset: 0; z-index: 60; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-end; animation: fade .15s; }
.kpad { width: 100%; font-family: var(--mono); padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(159, 232, 112, .35); animation: up .2s ease-out;
  background:
    linear-gradient(rgba(159, 232, 112, .04) 1px, transparent 1px) 50% 0 / 22px 22px,
    linear-gradient(90deg, rgba(159, 232, 112, .04) 1px, transparent 1px) 50% 0 / 22px 22px,
    linear-gradient(#0d190f, #050806);
  box-shadow: 0 -14px 34px -14px rgba(159, 232, 112, .4); }
.kpad.shake { animation: kpshake .3s; }
@keyframes kpshake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.kphead { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.kpclose { color: var(--text-2); width: 32px; height: 32px; display: grid; place-items: center; }
.kpdisp { display: flex; align-items: baseline; gap: 10px; height: 64px; padding: 0 16px; border: 1.5px solid var(--accent); border-radius: 14px; background: #060c07;
  box-shadow: 0 0 20px -8px var(--accent-glow), inset 0 0 22px -12px var(--accent-glow); line-height: 64px; overflow: hidden; }
.kpvf { color: var(--text-2); font-size: 16px; }
.kpval { color: var(--accent); font-size: 32px; letter-spacing: .04em; text-shadow: 0 0 14px rgba(159, 232, 112, .55); white-space: nowrap; }
.kpval.fresh { background: rgba(159, 232, 112, .16); border-radius: 6px; padding: 0 4px; }
.kpcur { align-self: center; width: 3px; height: 30px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1s steps(1) infinite; margin-left: -6px; }
.kphint { color: var(--text-3); font-size: 11.5px; margin: 7px 2px 12px; min-height: 15px; }
.kphint.err { color: var(--danger); }
.kphint.note { color: #ffc44d; }
.kpad.code .kpval.none::before { content: "—"; color: var(--text-3); }
.kpfoot.one { grid-template-columns: 1fr; }
.kpgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpkey { height: 54px; border-radius: 12px; border: 1px solid var(--gb, #263628); background: linear-gradient(#0f1c11, #08100a); color: var(--text);
  font: 24px var(--mono); display: grid; place-items: center; user-select: none; -webkit-user-select: none; transition: background .08s, box-shadow .08s; }
.kpkey:active { background: rgba(159, 232, 112, .18); border-color: var(--accent); box-shadow: 0 0 16px -4px var(--accent-glow); color: var(--accent); }
.kpkey.fn { color: var(--text-2); font-size: 14px; letter-spacing: .1em; }
.kpfoot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 8px; }
.kpkey.wide { height: 50px; font: 600 15px var(--font); letter-spacing: .02em; }
.kpkey.ok { border-color: transparent; background: linear-gradient(#b8f58e, var(--accent)); color: var(--accent-ink); font-weight: 600; box-shadow: 0 0 20px -4px var(--accent-glow); }

/* ---------- calls ---------- */
.callx { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; font-family: var(--mono); color: var(--text);
  padding: max(16px, env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom)); animation: fade .2s;
  background:
    radial-gradient(90% 45% at 50% 38%, rgba(62, 130, 44, .26), transparent 70%),
    linear-gradient(rgba(159, 232, 112, .045) 1px, transparent 1px) 50% 0 / 24px 24px,
    linear-gradient(90deg, rgba(159, 232, 112, .045) 1px, transparent 1px) 50% 0 / 24px 24px,
    #050806; }
/* A quiet terminal kicker on top: what this is, and whose. */
.ctop { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .2em; color: var(--text-3); padding-top: 8px; }
.ctop .clabel { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.ctop .cfreq { letter-spacing: .32em; }
.cdot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(255, 207, 110, .7); animation: cdot 1.2s ease-in-out infinite; }
.callx[data-state="active"] .cdot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: none; }
.callx[data-state="ended"] .cdot { background: var(--text-3); box-shadow: none; animation: none; }
@keyframes cdot { 50% { opacity: .3; } }
.cmid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.cring { position: relative; width: 200px; height: 200px; display: grid; place-items: center; margin-bottom: 16px; }
.cring .avatar { position: relative; z-index: 1; border: 2px solid var(--accent); box-shadow: 0 0 30px -6px var(--accent-glow); background: #0b160d; color: var(--accent); transition: border-color .3s, box-shadow .3s, opacity .3s; }
.cring i { position: absolute; inset: 44px; border-radius: 50%; border: 1.5px solid rgba(159, 232, 112, .5); opacity: 0; }
.callx[data-state="incoming"] .cring i, .callx[data-state="outgoing"] .cring i, .callx[data-state="connecting"] .cring i { animation: cwave 2.4s ease-out infinite; }
.cring i:nth-child(2) { animation-delay: .8s !important; }
.cring i:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes cwave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes cbreath { 50% { box-shadow: 0 0 44px -2px var(--accent-glow); } }
.callx .cname { font-family: var(--font); font-size: 28px; font-weight: 600; text-align: center; letter-spacing: -.01em; max-width: 100%; overflow-wrap: anywhere; }
.cstatus { font-family: var(--font); color: var(--text-2); font-size: 15px; min-height: 21px; text-align: center; transition: color .2s; }
.ctimer { color: var(--accent); font-size: 20px; letter-spacing: .08em; min-height: 26px; text-shadow: 0 0 12px rgba(159, 232, 112, .5); font-variant-numeric: tabular-nums; }
/* Shown only when the voice goes through the server. */
.croute { font-family: var(--font); font-size: 12.5px; color: var(--amber); padding: 4px 11px; border-radius: 11px; background: rgba(255, 207, 110, .08); border: 1px solid rgba(255, 207, 110, .2); margin-top: 4px; }
.croute:empty { display: none; }
.callx.muted .cstatus { color: var(--amber); }
/* Round buttons, each with a caption. */
.cbtns { display: flex; justify-content: center; gap: 60px; min-height: 104px; }
.cact { display: flex; flex-direction: column; align-items: center; gap: 9px; animation: fade .25s; }
.ccap { font-family: var(--font); font-size: 13px; color: var(--text-2); }
.cbtn { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(159, 232, 112, .4); color: var(--text);
  background: radial-gradient(circle at 50% 30%, rgba(159, 232, 112, .1), rgba(159, 232, 112, .03)); transition: transform .12s var(--ease), background-color .2s, border-color .2s, color .2s; }
.cbtn:active { transform: var(--press); }
.cbtn.on { color: var(--amber); border-color: rgba(255, 207, 110, .55); background: rgba(255, 207, 110, .1); box-shadow: 0 0 22px -8px rgba(255, 207, 110, .6); }
.cbtn.end { background: linear-gradient(#ec6d64, var(--danger)); border-color: transparent; color: #fff; box-shadow: 0 0 26px -6px var(--danger); }
.cbtn.ok { background: var(--grad-primary); border-color: transparent; color: var(--accent-ink); box-shadow: 0 0 30px -4px var(--accent-glow); animation: cbreath 1.6s ease-in-out infinite; }
/* Ended: everything settles; the timer keeps the length of the talk. */
.callx[data-state="ended"] .cring .avatar { border-color: var(--line-2); box-shadow: none; color: var(--text-2); opacity: .75; }
.callx[data-state="ended"] .cstatus { color: var(--text); }
.callx[data-state="ended"] .ctimer { color: var(--text-3); text-shadow: none; }
.callx[data-state="ended"] .gridfx { opacity: .4; transition: opacity .6s; }

/* «Page»: someone wants you on the air. */
.alertx { position: absolute; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .62); animation: fade .15s; }
.abox { width: 100%; max-width: 360px; text-align: center; padding: 22px 18px 18px; border-radius: 24px; border: 1px solid var(--accent-line);
  background:
    linear-gradient(rgba(159, 232, 112, .04) 1px, transparent 1px) 50% 0 / 24px 24px,
    linear-gradient(90deg, rgba(159, 232, 112, .04) 1px, transparent 1px) 50% 0 / 24px 24px,
    linear-gradient(#0d1a0f, #070d08);
  box-shadow: 0 0 44px -10px var(--accent-glow), 0 24px 50px -20px rgba(0, 0, 0, .9); animation: ashake .5s 2; }
@keyframes ashake { 20% { transform: rotate(-1.5deg); } 40% { transform: rotate(1.5deg); } 60% { transform: rotate(-1deg); } 80% { transform: rotate(1deg); } }
.aring { position: relative; width: 120px; height: 120px; margin: 0 auto 10px; display: grid; place-items: center; color: var(--accent); }
.aring i { position: absolute; inset: 22px; border-radius: 50%; border: 1.5px solid rgba(159, 232, 112, .6); animation: cwave 1.6s ease-out infinite; }
.aring i:nth-child(2) { animation-delay: .8s; }
.aring .avatar { position: relative; border: 2px solid var(--accent); box-shadow: 0 0 26px -6px var(--accent-glow); background: #0b160d; color: var(--accent); }
.abell { position: absolute; right: 18px; bottom: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--grad-primary); color: var(--accent-ink); box-shadow: 0 0 0 3px #0b150d, 0 0 14px -2px var(--accent-glow); }
.abell .icon { animation: abell 1s ease-in-out infinite; }
@keyframes abell { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.alabel { font-family: var(--mono); color: var(--accent); letter-spacing: .24em; font-size: 11px; }
.aname { font-size: 21px; font-weight: 700; margin-top: 6px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.awhere { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; color: var(--text-2); font-size: 14px; margin-top: 4px; }
.afreq { font: 600 12px var(--mono); color: var(--accent); padding: 2px 7px; border-radius: 7px; background: var(--accent-dim); letter-spacing: .03em; }
.abtns { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 20px; }
.abtns .btn.ghost { padding: 0 16px; }
/* «The frequency is calling»: the number big, as on the walkie's display. */
.fcallx .fcfreq { font-size: 34px; font-weight: 700; letter-spacing: .04em; color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); margin-top: 8px; line-height: 1.1; }
.fcallx .fccode { font-size: 12px; color: var(--text-2); letter-spacing: .08em; margin-top: 2px; }
.fcallx .aname { font-size: 17px; }

.tline.callline { display: flex; align-items: center; flex-wrap: wrap; text-align: left; width: 100%; color: var(--accent); font: inherit; }
.tline.callline .ttext { display: inline-flex; align-items: center; gap: 4px; }
.tline.callline.missed { color: var(--danger); }
.tline.callline.dim { color: var(--text-2); }
.tline.callline .cback { margin-left: auto; font-size: 11px; color: var(--text-3); border: 1px solid var(--gb); border-radius: 6px; padding: 1px 6px; }

/* ---------- living grid (gridfx.js) ---------- */
/* Lights only the grid lines: layers masked by the same 24 px pattern as the
   background grid. Sits under the content of its screen (z-index -1). */
.gridfx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --lvl: 0; --ripmax: 1; }
.gfglow, .gfrip, .gfradar, .gfshots, .gftouch, .gftrail {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 1px, transparent 1px), linear-gradient(#000 1px, transparent 1px);
  mask-image: linear-gradient(90deg, #000 1px, transparent 1px), linear-gradient(#000 1px, transparent 1px);
  -webkit-mask-size: 24px 24px; mask-size: 24px 24px;
  -webkit-mask-position: 50% 0; mask-position: 50% 0;
}
/* Breathing: the grid brightens and fades every 8 s. */
.gfglow { background: radial-gradient(120% 80% at 50% 45%, rgba(159, 232, 112, .55), rgba(159, 232, 112, .12) 70%); opacity: 0;
  animation: gfbreath 8s ease-in-out infinite; }
@keyframes gfbreath { 50% { opacity: .38; } }
/* Ripples: rings scaled out from the centre, brighter with the voice. */
.gfrip { opacity: calc((.18 + var(--lvl) * .82) * var(--ripmax)); transition: opacity .25s; }
.gfrip i { position: absolute; left: var(--cx, 50%); top: var(--cy, 40%); width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, transparent 52%, rgba(159, 232, 112, .25) 62%, rgba(200, 255, 170, .95) 69%, rgba(159, 232, 112, .3) 71%, transparent 73%);
  transform: scale(.05); opacity: 0; animation: gfring 3.6s cubic-bezier(.2, .6, .4, 1) infinite; will-change: transform, opacity; }
.gfrip i:nth-child(2) { animation-delay: 1.2s; }
.gfrip i:nth-child(3) { animation-delay: 2.4s; }
@keyframes gfring { 0% { transform: scale(.05); opacity: 0; } 12% { opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
/* Rain: drops of light running down vertical lines. */
.gfdrop { position: absolute; top: 0; width: 1px; margin-left: 0; border-radius: 1px;
  background: linear-gradient(transparent, rgba(159, 232, 112, .25) 60%, rgba(214, 255, 190, .95));
  box-shadow: 0 0 6px rgba(159, 232, 112, .55); transform: translateY(-100%); animation: gffall 4s linear forwards; will-change: transform; }
@keyframes gffall { from { transform: translateY(-100%); } to { transform: translateY(var(--fall, 900px)); } }
/* Radar: a beam turns round the centre (the frequency band in the chat) and
   lights the lines it passes, dimmer far away. The mask of its circle is
   round, so turning does not change it. */
.gfradar i { position: absolute; left: var(--cx, 50%); top: var(--cy, 40%); width: calc(var(--rr, 100vmax) * 2); height: calc(var(--rr, 100vmax) * 2);
  margin: calc(var(--rr, 100vmax) * -1) 0 0 calc(var(--rr, 100vmax) * -1); border-radius: 50%;
  background: conic-gradient(rgba(159, 232, 112, 0) 0deg 282deg, rgba(159, 232, 112, .1) 318deg, rgba(159, 232, 112, .38) 348deg, rgba(214, 255, 190, .95) 359deg, rgba(159, 232, 112, 0) 360deg);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 8%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 8%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  animation: gfradar 6.5s linear infinite; will-change: transform; }
@keyframes gfradar { to { transform: rotate(1turn); } }
/* Shots: rings run out once from a point (the send button). */
.gfshots i { position: absolute; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; --rc: 159, 232, 112;
  background: radial-gradient(circle, transparent 52%, rgba(var(--rc), .25) 62%, rgba(var(--rc), 1) 69%, rgba(var(--rc), .35) 71%, transparent 73%);
  transform: scale(.04); opacity: 0; animation: gfshot 1.5s cubic-bezier(.2, .6, .4, 1) both; will-change: transform, opacity; }
@keyframes gfshot { 0% { transform: scale(.04); opacity: 0; } 10% { opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
/* Touch: slow, soft circles from a finger on the empty space, like on
   water (three, each a little later), in ice blue, and a faint light under
   the finger that is not held to the lines. */
.gftouch i { position: absolute; width: 440px; height: 440px; margin: -220px 0 0 -220px; border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(140, 216, 255, .16) 63%, rgba(196, 238, 255, .7) 69%, rgba(140, 216, 255, .22) 72%, transparent 75%);
  transform: scale(.04); opacity: 0; animation: gftouch 2.8s cubic-bezier(.15, .55, .35, 1) both; will-change: transform, opacity; }
@keyframes gftouch { 0% { transform: scale(.04); opacity: 0; } 12% { opacity: .85; } 100% { transform: scale(1.3); opacity: 0; } }
.gftouchglow { position: absolute; inset: 0; }
.gftouchglow b { position: absolute; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(176, 230, 255, .17), rgba(140, 216, 255, .06) 45%, rgba(140, 216, 255, 0) 70%);
  animation: gftglow 1.8s ease-out both; will-change: transform, opacity; }
@keyframes gftglow { 0% { transform: scale(.4); opacity: 0; } 18% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
/* Trail: light drawn with a finger (gridfx.js trailAt): the lines it runs
   along, and a faint glow with a thin core where the finger went. */
.gftrail, .gftrailglow { display: block; width: 100%; height: 100%; }
.gftrailglow { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .gfglow, .gfrip i, .gfdrop, .gfradar i, .gfshots i, .gftouch i, .gftouchglow b { animation: none; opacity: 0; } }
:where(:root.eco) .gfglow, :where(:root.eco) .gfrip i, :where(:root.eco) .gfdrop, :where(:root.eco) .gfradar i, :where(:root.eco) .gfshots i,
:where(:root.eco) .gftouch i, :where(:root.eco) .gftouchglow b { animation: none; opacity: 0; }

/* Sparks: a cell between the grid lines flashes, rings twice like a bell
   (a ring of light spreads out of it) and fades. Neighbours ring dimmer. */
.gfcells { position: absolute; inset: 0; }
.gfcell { position: absolute; width: 23px; height: 23px; border-radius: 2px; opacity: 0; --c: 159, 232, 112;
  background: rgba(var(--c), .55); box-shadow: 0 0 14px 2px rgba(var(--c), .55), inset 0 0 6px rgba(255, 255, 255, .35);
  animation: gfcell 1.5s ease-out both; }
.gfcell::after { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(var(--c), .9); border-radius: 3px; opacity: 0;
  animation: gfbell 1.5s ease-out both; animation-delay: inherit; }
.gfcell.dim { animation-name: gfcelldim; }
.gfcell.dim::after { display: none; }
.gfcell.ice { --c: 140, 216, 255; }
.gfcell.amb { --c: 255, 200, 90; }
.gfcell.vio { --c: 170, 140, 255; }
.gfcell.red { --c: 255, 90, 100; }
@keyframes gfcell { 0% { opacity: 0; transform: scale(.6); } 10% { opacity: 1; transform: scale(1.06); } 22% { opacity: .35; transform: scale(1); }
  34% { opacity: .9; } 48% { opacity: .3; } 62% { opacity: .55; } 100% { opacity: 0; } }
@keyframes gfcelldim { 0% { opacity: 0; } 14% { opacity: .5; } 30% { opacity: .15; } 44% { opacity: .35; } 100% { opacity: 0; } }
@keyframes gfbell { 0% { opacity: 0; transform: scale(1); } 12% { opacity: .9; } 100% { opacity: 0; transform: scale(2.6); } }
@media (prefers-reduced-motion: reduce) { .gfcells { display: none; } }
:where(:root.eco) .gfcells { display: none; }

/* In a call the voice also makes the avatar glow. */
.callx .cring .avatar { box-shadow: 0 0 calc(24px + var(--clvl, 0) * 46px) calc(-6px + var(--clvl, 0) * 10px) var(--accent-glow); transition: box-shadow .12s; }
/* The chat is calmer: half-strength ripples, a dimmer breath. */
.gfglow.beat { background: none; opacity: 1; animation: none; }
/* Hidden, not removed: the beat keeps its step while another mode is on. */
.gfglow.gfoff, .gfglow:not(.beat) > i { visibility: hidden; }
.gfglow.gfoff { animation: none; }
/* A dim wave of light flows down toward the PULSE footer (like the footer's
   dots run toward the word), then the whole grid gives a soft double beat
   as the word does. Same 2.8 s cycle and timing as .tstatus. */
.gfband { position: absolute; left: 0; right: 0; top: 0; height: 50%; opacity: 0; transform: translateY(-100%);
  background: linear-gradient(transparent, rgba(159, 232, 112, .45) 60%, rgba(159, 232, 112, .6) 78%, transparent);
  animation: gfband 2.8s cubic-bezier(.45, 0, .7, 1) infinite; will-change: transform, opacity; }
@keyframes gfband {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: .1; }
  58% { opacity: .17; }
  64% { transform: translateY(170%); opacity: .2; }
  78%, 100% { transform: translateY(200%); opacity: 0; }
}
.gfswell { position: absolute; inset: 0; opacity: 0; background: radial-gradient(130% 90% at 50% 100%, rgba(159, 232, 112, .5), rgba(159, 232, 112, .18) 75%);
  animation: gfswell 2.8s ease-in-out infinite; }
@keyframes gfswell { 0%, 56%, 100% { opacity: 0; } 66% { opacity: .13; } 76% { opacity: .04; } 83% { opacity: .08; } 92% { opacity: .02; } }

/* ---------- the current: a slow wave of colour down the chat ---------- */
/* A band over the whole chat screen moves from the top down. The "color"
   layer gives what lies under it a new hue at the same brightness, so dark
   stays dark and only the green lines, text and glow turn ice blue, then
   violet, then green again; a faint "screen" layer adds a little light.
   The blend sits on each full-screen layer (a blend inside one would only
   mix with that layer's empty backdrop); only the band's transform moves. */
.cflow { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.cflow.cfcolor { mix-blend-mode: color; }
.cflow.cfglow { mix-blend-mode: screen; }
.cflow i { position: absolute; left: 0; right: 0; top: 0; height: 60%; transform: translateY(-100%);
  animation: cflow 10s cubic-bezier(.42, 0, .58, 1) infinite; will-change: transform; }
.cfcolor i { background: linear-gradient(rgba(140, 216, 255, calc(0 * var(--fxk, 1))), rgba(140, 216, 255, calc(.55 * var(--fxk, 1))) 22%, rgba(140, 216, 255, calc(.85 * var(--fxk, 1))) 40%, rgba(160, 140, 255, calc(.8 * var(--fxk, 1))) 62%, rgba(160, 140, 255, calc(.4 * var(--fxk, 1))) 80%, rgba(160, 140, 255, calc(0 * var(--fxk, 1)))); }
.cfglow i { background: linear-gradient(rgba(140, 216, 255, calc(0 * var(--fxk, 1))), rgba(140, 216, 255, calc(.05 * var(--fxk, 1))) 35%, rgba(190, 235, 255, calc(.1 * var(--fxk, 1))) 50%, rgba(160, 140, 255, calc(.05 * var(--fxk, 1))) 70%, rgba(160, 140, 255, calc(0 * var(--fxk, 1)))); }
/* 167% of its own height (60% of the screen) puts the band just below the
   bottom; then a pause before the next wave. */
@keyframes cflow { 0% { transform: translateY(-100%); } 78%, 100% { transform: translateY(167%); } }
/* The layers over the chat come and go with the settings; their holder must
   not group them, or they would blend only with each other. */
.fxscreen { display: contents; }
/* Aurora: big soft patches of colour drift over the screen and give what is
   under them their hue; a fainter "screen" pair adds a little light. */
.cflow.cfaur { mix-blend-mode: color; }
.cflow.cfaurglow { mix-blend-mode: screen; }
.cfaur i, .cfaurglow i { position: absolute; width: 130%; height: 75%; left: -15%; top: -10%; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(140, 216, 255, calc(.8 * var(--fxk, 1))), rgba(140, 216, 255, calc(.35 * var(--fxk, 1))) 55%, rgba(140, 216, 255, calc(0 * var(--fxk, 1))));
  animation: cfaur 21s ease-in-out infinite alternate; }
.cfaur i:nth-child(2) { background: radial-gradient(closest-side, rgba(170, 130, 255, calc(.85 * var(--fxk, 1))), rgba(170, 130, 255, calc(.3 * var(--fxk, 1))) 55%, rgba(170, 130, 255, calc(0 * var(--fxk, 1))));
  top: 35%; left: -40%; animation-duration: 27s; animation-delay: -9s; }
.cfaur i:nth-child(3) { background: radial-gradient(closest-side, rgba(255, 110, 200, calc(.7 * var(--fxk, 1))), rgba(255, 110, 200, calc(.22 * var(--fxk, 1))) 55%, rgba(255, 110, 200, calc(0 * var(--fxk, 1))));
  top: 60%; left: 20%; width: 110%; animation-duration: 33s; animation-delay: -17s; }
.cfaurglow i { background: radial-gradient(closest-side, rgba(140, 216, 255, calc(.1 * var(--fxk, 1))), rgba(140, 216, 255, calc(0 * var(--fxk, 1)))); }
.cfaurglow i:nth-child(2) { background: radial-gradient(closest-side, rgba(170, 130, 255, calc(.1 * var(--fxk, 1))), rgba(170, 130, 255, calc(0 * var(--fxk, 1)))); top: 35%; left: -40%; animation-duration: 27s; animation-delay: -9s; }
@keyframes cfaur {
  0% { transform: translate(-18%, -6%) scale(1); }
  33% { transform: translate(14%, 12%) scale(1.15); }
  66% { transform: translate(-6%, 26%) scale(.92); }
  100% { transform: translate(20%, -10%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .cflow { display: none; } }
:where(:root.eco) .cflow { display: none; }

/* ---------- message and event effects (chatfx.js) ---------- */
.fxtop { position: absolute; inset: 0; z-index: 35; pointer-events: none; overflow: hidden; }
/* A new message: its frame flashes and a glint runs across. */
.mrow.fx-glow .mcard { animation: fxglow 1.4s ease-out; }
.mrow.fx-glow .mcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(200, 255, 170, .14) 44%, rgba(225, 255, 210, .3) 50%, rgba(200, 255, 170, .14) 56%, transparent 68%) no-repeat;
  background-size: 260% 100%; animation: fxglint 1s ease-out .08s both; }
@keyframes fxglow { 0%, 18% { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 30px -2px var(--accent-glow); } }
@keyframes fxglint { from { background-position: 135% 0; } to { background-position: -35% 0; } }
/* Slides in from its side with a trail of light. */
.mrow.fx-slide .mcard { animation: fxslide .6s cubic-bezier(.2, .85, .3, 1) both; }
.mrow.fx-slide.mine .mcard { animation-name: fxslider; }
@keyframes fxslide { 0% { transform: translateX(-46px); opacity: 0; box-shadow: -34px 0 34px -14px var(--accent-glow); } 55% { opacity: 1; } 100% { transform: none; } }
@keyframes fxslider { 0% { transform: translateX(46px); opacity: 0; box-shadow: 34px 0 34px -14px var(--accent-glow); } 55% { opacity: 1; } 100% { transform: none; } }
/* Interference: the card jumps in torn strips with colour fringes. */
.mrow.fx-glitch .mcard { animation: fxglitch .7s steps(1, end) both; }
@keyframes fxglitch {
  0% { transform: translateX(-4px); clip-path: inset(8% 0 58% 0); text-shadow: 2px 0 rgba(255, 60, 90, .85), -2px 0 rgba(46, 230, 255, .85); opacity: .85; }
  12% { transform: translateX(5px); clip-path: inset(52% 0 12% 0); }
  24% { transform: translateX(-2px); clip-path: inset(0 0 72% 0); text-shadow: -2px 0 rgba(255, 60, 90, .85), 2px 0 rgba(46, 230, 255, .85); }
  36% { transform: translateX(3px); clip-path: inset(30% 0 34% 0); }
  48% { transform: none; clip-path: inset(0); text-shadow: 1px 0 rgba(255, 60, 90, .6), -1px 0 rgba(46, 230, 255, .6); opacity: 1; }
  62% { transform: translateX(-1px); clip-path: inset(64% 0 0 0); }
  74%, 100% { transform: none; clip-path: none; text-shadow: none; opacity: 1; }
}
/* Typed out and decoded text. */
.mtext.fxtyping::after { content: ""; display: inline-block; width: 8px; height: 2px; margin-left: 2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.mtext.fxdecoding { color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); font-variant-ligatures: none; }
.mtext { transition: color .5s, text-shadow .5s; }
/* My message: a spark flies from the send button. */
.fxspark { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #eaffdc;
  box-shadow: 0 0 10px 3px rgba(159, 232, 112, .9), 0 0 24px 6px rgba(159, 232, 112, .45); }
.fxspark::after { content: ""; position: absolute; left: 2px; top: 6px; width: 4px; height: 54px; border-radius: 2px;
  background: linear-gradient(rgba(200, 255, 170, .8), rgba(159, 232, 112, 0)); }

/* Addressed to me: an amber mark that stays, and a pulse when it comes. */
.mtag { color: var(--accent); font-weight: 600; }
.mtag.me { color: #ffd24a; background: rgba(255, 200, 90, .13); border-radius: 4px; padding: 0 2px; }
.mcard.mine .mtag.me { color: var(--accent); background: none; padding: 0; }
.mrow.tome .mcard { border-color: rgba(255, 200, 90, .7); box-shadow: 0 0 18px -8px rgba(255, 200, 90, .7); }
/* Over the colour layers (z-index 30): the amber of a message to me is its
   meaning, the wave or the aurora must not repaint it. The draft line pinned
   to the bottom stays over it (z-index 32). */
.chatx .mrow.tome .mcard { z-index: 31; }
.mrow.tome:not(.mine) .mcard::before { border-color: rgba(255, 200, 90, .7); }
.mtome { font-size: 10px; letter-spacing: .06em; color: #1d1806; background: #ffd24a; border-radius: 5px; padding: 0 5px; line-height: 16px; }
.mrow.fx-me .mcard { animation: fxme 2.6s ease-out; }
@keyframes fxme {
  0%, 30%, 60% { border-color: #ffc85a; box-shadow: 0 0 0 1.5px #ffc85a, 0 0 34px -2px rgba(255, 200, 90, .75); }
  15%, 45%, 78% { box-shadow: 0 0 0 1px rgba(255, 200, 90, .45), 0 0 14px -6px rgba(255, 200, 90, .4); }
}
/* The edges of the screen flash amber. */
.fxframe { position: absolute; inset: 0; opacity: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 200, 90, .9), inset 0 0 70px 4px rgba(255, 190, 70, .42);
  animation: fxframe 2.4s ease-in-out both; }
.fxframe.quick { animation: fxframeq .9s ease-out both; }
@keyframes fxframe { 0% { opacity: 0; } 10% { opacity: 1; } 24% { opacity: .2; } 40% { opacity: 1; } 55% { opacity: .2; } 70% { opacity: .9; } 100% { opacity: 0; } }
@keyframes fxframeq { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
/* A spotlight: the screen darkens around the message. */
.fxspot { position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(var(--rw, 180px) var(--rh, 60px) at var(--x, 50%) var(--y, 50%), rgba(255, 200, 90, .08), rgba(2, 4, 3, 0) 70%, rgba(2, 4, 3, .72) 100%);
  animation: fxspot 2.4s ease-in-out both; }
@keyframes fxspot { 0% { opacity: 0; } 14%, 62% { opacity: 1; } 100% { opacity: 0; } }
/* Bursts of emoji. */
.fxp { position: absolute; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .35)); will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .fxtop { display: none; } .mrow[class*="fx-"] .mcard, .mrow[class*="fx-"] .mcard::after { animation: none !important; } }
:where(:root.eco) .fxtop { display: none; }
:where(:root.eco) .mrow[class*="fx-"] .mcard, :where(:root.eco) .mrow[class*="fx-"] .mcard::after { animation: none !important; }

/* ---------- the chat effects sheet ---------- */
/* The preview stays in sight while the choices scroll, where the screen is
   tall enough for both. */
.fxhead { position: relative; z-index: 3; margin: -2px -16px 0; padding: 2px 16px 10px; background: var(--surface); }
@media (min-height: 700px) { .fxhead { position: sticky; top: -10px; } }
.fxprev { position: relative; height: clamp(130px, 24vh, 196px); border-radius: 14px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 7px;
  font-family: var(--mono); font-size: 11px; --gl: rgba(159, 232, 112, .5); --gb: #263628; border: 1px solid rgba(159, 232, 112, .22);
  background:
    radial-gradient(120% 42% at 50% 0%, rgba(62, 130, 44, .22) 0%, transparent 70%),
    linear-gradient(rgba(159, 232, 112, .045) 1px, transparent 1px) 50% 0 / 24px 24px,
    linear-gradient(90deg, rgba(159, 232, 112, .045) 1px, transparent 1px) 50% 0 / 24px 24px,
    #050806; }
.fxpband { flex: none; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 9px; border: 1.2px solid var(--accent); border-radius: 10px;
  background: linear-gradient(#0c1a0e, #060c07); box-shadow: 0 0 16px -6px var(--accent-glow); }
.fxpnum { color: var(--accent); font-size: 14px; text-shadow: 0 0 10px rgba(159, 232, 112, .55); }
.fxpband .vbadge { height: 19px; font-size: 9.5px; }
.fxplog { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.fxplog .mcard { padding: 5px 9px 6px; border-radius: 10px; max-width: 82%; }
.fxplog .mrow:not(.mine) .mcard::before { top: 9px; width: 8px; height: 8px; left: -5px; }
.fxplog .micon { width: 22px; height: 22px; margin-top: 1px; font-size: 10px; display: grid; place-items: center; color: var(--who); }
.fxplog .mname { font-size: 10.5px; margin-bottom: 1px; }
.fxplog .mmeta { font-size: 9.5px; margin-top: 4px; }
.fxpnum .vfkick { font-size: 8.5px; margin-right: 4px; }
.fxplog .mhead { gap: 6px; }
.fxplog .mtext { font-size: 11.5px; }
.fxpcomp { flex: none; display: flex; gap: 6px; }
.fxpinput { flex: 1; height: 26px; border: 1px solid var(--gb); border-radius: 8px; color: var(--text-3); padding: 0 8px; display: flex; align-items: center; background: rgba(5, 8, 6, .7); }
.fxpsend { width: 32px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.fxtry { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.fxtry::-webkit-scrollbar { display: none; }
.fxtry button { flex: none; height: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.fxtry button .icon { color: var(--accent); }
.fxtry button:active { background: var(--accent-dim); }
.fxtry button:disabled { opacity: .4; }
.fxnote { font-size: 12.5px; color: #ffd24a; background: rgba(255, 200, 90, .08); border: 1px solid rgba(255, 200, 90, .25); border-radius: 10px; padding: 8px 10px; margin-top: 10px; }
.fxsec { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 16px 0 6px; }
.fxchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fxchip { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 13.5px; transition: background .15s, border-color .15s; }
.fxchip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 12px -5px var(--accent-glow); font-weight: 600; }
.fxchips.amb .fxchip.on { border-color: #ffc85a; color: #ffd24a; background: rgba(255, 200, 90, .1); box-shadow: 0 0 12px -5px rgba(255, 200, 90, .6); }
.fxhint { font-size: 12px; color: var(--text-3); line-height: 1.4; padding: 6px 2px 2px; }
.fxsheet .setting { padding: 10px 0; }
.fxbtns { margin-top: 16px; }

/* @ suggestions over the keyboard, and the @ badge in lists. */
.chatx:not(.mentioning) .tquick.tat { display: none; }
.chatx.typing.mentioning .tquick.tat { display: flex; }
.mname .mtome { margin-left: 8px; vertical-align: 1px; }
.mname.tomeonly { margin-bottom: 4px; }
.chatx.typing.mentioning .tquick:not(.tat) { display: none; }
.chatx.typing.mentioning .tedit:not([hidden]) ~ .tquick.tat { display: flex; }
.tqbtn.at { border-color: rgba(255, 200, 90, .45); background: rgba(255, 200, 90, .06); color: var(--text); }
.tqbtn.at b { color: #ffd24a; font-weight: 600; margin-right: 6px; }
.badge.at { background: #ffd24a; color: #1d1806; }

/* ---------- running line in the frequency banner ---------- */
.vfband.hasbanner { padding-bottom: 42px; }
.vfband.hasbanner .vfwave { opacity: .35; }
.vfticker { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 26px; overflow: hidden; z-index: 1; display: block; text-align: left; padding: 0;
  --bn: #c8ff9e; --bng: 159, 232, 112;
  border-radius: 8px; background: rgba(5, 10, 6, .55); border: 1px solid rgba(var(--bng), .2); transition: border-color .4s; }
.vfticker[data-style=run] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.vfticker.inline { position: relative; left: 0; right: 0; bottom: 0; height: 100%; }
/* Colours: green as usual, amber important, red alarm. */
.vftxt.lv-info { --bn: #c8ff9e; --bng: 159, 232, 112; }
.vfticker[data-level=warn], .vftxt.lv-warn, .bnitem.lv-warn, .bnview.lv-warn { --bn: #ffd27a; --bng: 255, 196, 77; }
.vfticker[data-level=alarm], .vftxt.lv-alarm, .bnitem.lv-alarm, .bnview.lv-alarm { --bn: #ff9585; --bng: 255, 90, 79; }
.vfticker[data-level=alarm] { animation: bnalarm 2.4s ease-in-out infinite; }
@keyframes bnalarm { 50% { border-color: rgba(255, 90, 79, .65); box-shadow: inset 0 0 14px rgba(255, 90, 79, .18); } }
/* A new alarm, or a countdown reaching zero: three flashes. */
.vfticker.flash { animation: bnflash .45s ease-in-out 3; }
@keyframes bnflash { 50% { background: rgba(var(--bng), .35); border-color: rgb(var(--bng)); box-shadow: 0 0 18px rgba(var(--bng), .6); } }

.vftrack { display: inline-flex; white-space: nowrap; height: 100%; align-items: center; animation: vfscroll 20s linear infinite; will-change: transform; }
@keyframes vfscroll { to { transform: translateX(-50%); } }
/* Modern take on a matrix pager: bright glowing text with a fine LED-dot
   texture. */
.vftxt, .vfpline { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--mono); letter-spacing: .06em; color: var(--bn);
  text-shadow: 0 0 6px rgba(var(--bng), .75), 0 0 16px rgba(var(--bng), .35);
  -webkit-mask-image: radial-gradient(circle, #000 58%, rgba(0, 0, 0, .55) 72%); mask-image: radial-gradient(circle, #000 58%, rgba(0, 0, 0, .55) 72%);
  -webkit-mask-size: 2.5px 2.5px; mask-size: 2.5px 2.5px; }
.vftxt { padding-right: 56px; }
.vfmark { font-style: normal; font-size: 9px; color: var(--bn); }
.vfcd { font-variant-numeric: tabular-nums; padding: 2px 6px; border-radius: 5px; background: rgba(var(--bng), .14); }
@media (prefers-reduced-motion: reduce) { .vftrack { animation-duration: 60s !important; } }
/* No eco twin: with energy saving the line runs at its own pace. */

/* Pager: typed letter by letter with a blinking block cursor. */
.vfpager { height: 100%; overflow: hidden; display: flex; align-items: center; padding: 0 10px; }
.vfpline { white-space: nowrap; gap: 8px; will-change: transform; }
.vfptxt { white-space: pre; }
.vfcur { width: 8px; height: 14px; background: var(--bn); box-shadow: 0 0 8px rgba(var(--bng), .8); animation: bncur 1s steps(1) infinite; margin-left: -4px; }
@keyframes bncur { 50% { opacity: 0; } }

/* Station board: letters flip into place. */
.vfboard { height: 100%; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 5px; }
.vfboard .fl { position: relative; flex: none; width: 11px; height: 19px; display: grid; place-items: center; border-radius: 2px;
  background: linear-gradient(#0f1a10 50%, #0a130b 50%); font: 700 12.5px/1 var(--mono); color: var(--bn); text-shadow: 0 0 6px rgba(var(--bng), .7); }
.vfboard .fl::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .7); }
.vfboard .fl.flip { animation: bnflip .11s ease-in; }
@keyframes bnflip { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); filter: brightness(1.6); } 100% { transform: scaleY(1); } }

/* Editor. */
.bnedit { gap: 12px; }
.bnprev { height: 36px; position: sticky; top: -10px; z-index: 2; background: var(--surface); padding: 0; border-radius: 9px;
  box-shadow: 0 -10px 0 var(--surface), 0 10px 10px -4px var(--surface); }
.bnprev .vfticker { background: #060c07; }
.bnlabel { font: 600 11px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: -4px; }
.bnitems { gap: 10px; }
.bnitem { --bn: var(--accent); --bng: 159, 232, 112; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px;
  background: rgba(var(--bng), .04); border: 1px solid rgba(var(--bng), .22); border-left: 3px solid var(--bn); }
.bnihead { gap: 8px; }
.bnnum { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; font: 700 12px/1 var(--mono); color: var(--bn); background: rgba(var(--bng), .12); }
.bnseg { margin: 0; flex: 1; }
.bnseg button { height: 30px; font-size: 12.5px; }
.bnitem .bnseg button.on { background: var(--bn); color: #0a0d0b; }
.bndel { width: 30px; height: 30px; flex: none; }
.bnifoot { gap: 8px; flex-wrap: wrap; }
.bncdbtn { height: 30px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); background: var(--surface-2, transparent); }
.bncdbtn.on { color: var(--bn); border-color: var(--bn); background: rgba(var(--bng), .1); }
.bnwhen { height: 34px; font-size: 14px; flex: 1; min-width: 0; color-scheme: dark; }
.bntext { position: relative; }
.bntext .bninput { width: 100%; padding-bottom: 22px; }
.bncount { position: absolute; right: 10px; bottom: 7px; font-size: 11px; pointer-events: none; }
.bninput { resize: none; font-family: var(--mono); height: auto; min-height: 60px; }
.bnspeed { display: flex; flex-direction: column; gap: 8px; }
.bnsteps { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.bnsl { font: 600 10px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.bnstep { width: 30px; height: 40px; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 6px; border-radius: 8px;
  background: rgba(159, 232, 112, .04); border: 1px solid rgba(159, 232, 112, .14); }
.bnstep i { width: 8px; border-radius: 2px; background: rgba(159, 232, 112, .22); transition: background .2s, box-shadow .2s; }
.bnstep.on i { background: var(--accent); box-shadow: 0 0 8px rgba(159, 232, 112, .55); }
.bnspname { font: 600 12px/1 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.bnview { --bn: var(--accent); --bng: 159, 232, 112; font-size: 17px; line-height: 1.45; color: var(--bn); padding: 10px 12px; border-radius: 12px; background: rgba(var(--bng), .06); border-left: 3px solid var(--bn); }
.bnlv { font: 700 11px/1 var(--mono); letter-spacing: .1em; margin-bottom: 6px; }
.bncd { margin-top: 6px; font: 600 13px/1.3 var(--mono); opacity: .85; font-variant-numeric: tabular-nums; }

/* ---------- incoming call in the chat footer ---------- */
.chatx.typing .tstatus.ringing { display: flex; }
.tstatus.ringing > :not(.tcallbar) { visibility: hidden; }
.tcallbar { position: absolute; inset: -1px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 10px; cursor: pointer;
  border-radius: 4px 4px 14px 14px; border: 1px solid; background: #050806; touch-action: none;
  animation: tcbhue 4.8s ease-in-out infinite, fade .3s; }
/* Slowly from green to amber and back: noticeable, not harsh. */
@keyframes tcbhue {
  0%, 100% { color: #9fe870; border-color: rgba(159, 232, 112, .65); box-shadow: inset 0 -2px 0 rgba(159, 232, 112, .6), 0 0 22px -6px rgba(159, 232, 112, .7); }
  50% { color: #ffcf6e; border-color: rgba(255, 207, 110, .65); box-shadow: inset 0 -2px 0 rgba(255, 207, 110, .6), 0 0 22px -6px rgba(255, 207, 110, .7); }
}
.tcbicon { display: grid; place-items: center; animation: abell 1s ease-in-out infinite; }
.tcbtext { flex: 1; min-width: 0; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tcallbar .vftxt { color: currentColor; font-size: 12.5px; text-shadow: 0 0 8px currentColor; }
.tcallbar .vfmark { color: currentColor; }
.tcbok, .tcbno { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: transform .12s var(--ease); }
.tcbok { color: var(--accent-ink); background: var(--grad-primary); box-shadow: 0 0 14px -2px var(--accent-glow); }
.tcbno { color: #fff; background: linear-gradient(#ec6d64, var(--danger)); box-shadow: 0 0 12px -4px var(--danger); }
.tcbok:active, .tcbno:active { transform: var(--press); }

/* ---------- VIP banner: the frequency banner becomes an LED board ---------- */
.vfband.hasvip { min-height: 98px; }
.vfband > :not(.vipx) { transition: opacity .5s ease, transform .5s ease, border-color .4s; }
.vfband.vipon > :not(.vipx) { opacity: 0; transform: translateY(-10px) scale(.98); }
.vfband.vipon { border-color: var(--vipc, #ffcf5a); box-shadow: 0 0 28px -6px var(--vipc, #ffcf5a), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.vipx { position: absolute; inset: 0; z-index: 3; display: block; padding: 0; border: 0; border-radius: inherit; overflow: hidden; text-align: left;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
  background: radial-gradient(130% 160% at 50% 50%, #0b100c, #030504 70%); }
.vipx.on { opacity: 1; pointer-events: auto; }
/* The unlit LEDs: a faint dot pattern, the same pitch as the lit ones. */
.vipx::before { content: ""; position: absolute; inset: 0 var(--padx, 0); pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .075) 0 30%, transparent 37%) 0 0 / var(--pitch, 3px) var(--pitch, 3px); }
/* A modern glass front: a soft highlight over the top. */
.vipx::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 38%), radial-gradient(90% 60% at 50% 120%, rgba(0, 0, 0, .35), transparent); }
.vipcv, .vipglow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vipglow { filter: blur(6px) saturate(1.4); opacity: .9; mix-blend-mode: screen; }
.viptag { position: absolute; top: 6px; right: 8px; z-index: 3; font: 800 9px/1 var(--mono); letter-spacing: .16em; padding: 3px 5px 3px 7px; border-radius: 6px;
  color: #1c1405; background: linear-gradient(90deg, #ffe596, #ffb444); box-shadow: 0 0 12px rgba(255, 196, 80, .45); }
.vipbox { position: relative; height: 98px; flex: none; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--vipc, #ffcf5a); box-shadow: 0 0 22px -8px var(--vipc, #ffcf5a); }
.vipbox.sticky { position: sticky; top: -10px; z-index: 3; box-shadow: 0 -10px 0 var(--surface), 0 0 22px -8px var(--vipc, #ffcf5a); }
.viptitle { font-size: 20px; font-weight: 800; }
.vippadwrap { align-items: center; gap: 10px; }
.vippad { display: grid; grid-template-columns: repeat(16, 1fr); gap: 1px; width: min(100%, 320px); aspect-ratio: 1; padding: 1px; border-radius: 10px; background: #1c251e; touch-action: none; }
.vippad i { background: #080c09; border-radius: 2px; }
.vipinks { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vipink { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; }
.vipink.on { border-color: #fff; box-shadow: inset 0 0 0 2px var(--surface); }
.vipink.erase { background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.vipemojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.vipemo { height: 44px; font-size: 24px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.vippals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vippal { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.vippal i { width: 100%; height: 14px; border-radius: 7px; }
.vippal.on { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 1px var(--accent) inset; }
@media (prefers-reduced-motion: reduce) { .vfband > :not(.vipx) { transition: none; } }
/* Energy saving keeps this one: a transition, played once. */

/* ---------- pixel emoji ---------- */
/* Small pictures inside the text: crisp pixels with a faint glow. */
.pemo { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -0.32em; margin: 0 .08em; image-rendering: pixelated; image-rendering: crisp-edges;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .22)); cursor: pointer; }
.typed .pemo { width: 1.3em; height: 1.3em; }
/* Sticker: a little LED board with a glow; the card itself steps back. */
.mcard.stickercard { background: transparent; border-color: transparent; box-shadow: none; padding-left: 4px; padding-right: 4px; }
.pstk { position: relative; display: block; padding: 0; margin-top: 4px; border: 0; background: none; }
.pstkcv, .pstkglow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pstkglow { filter: blur(7px) saturate(1.4); opacity: .75; mix-blend-mode: screen; }
.pstk.lit .pstkglow { animation: pstkflare .9s ease-out; }
@keyframes pstkflare { 0% { opacity: 1; filter: blur(9px) saturate(1.6) brightness(1.5); } 100% { opacity: .75; } }
.mrow.mine .pstk { margin-left: auto; }

/* Composer button: inside the input, at its right edge. */
.temo { width: 40px; height: 42px; flex: none; display: grid; place-items: center; color: var(--text-3); border-radius: 50%; transition: color .15s; }
.temo:hover { color: var(--text-2); }
.temo.on { color: var(--accent); }
.chatx.emoji .tquick { display: none; }

/* The picker, in place of the keyboard: one header row (set · mine on the
   left; how a tap sends, edit and close on the right) over the grid. */
.epanel { height: min(300px, 40vh); flex: none; display: flex; flex-direction: column; margin: 0 8px calc(6px + env(safe-area-inset-bottom)); border-radius: 16px;
  background: linear-gradient(#0b120c, #070b08); border: 1px solid rgba(159, 232, 112, .18); overflow: hidden; animation: up .18s ease-out; }
.ephead { display: flex; gap: 4px; align-items: center; padding: 4px 6px 4px 8px; border-bottom: 1px solid rgba(159, 232, 112, .08); }
.epseg { margin: 0; flex: none; padding: 2px; }
.epseg button { flex: none; height: 28px; padding: 0 9px; font-size: 11.5px; }
.epseg.eptabs { margin-right: auto; padding: 0; gap: 2px; background: none; border: 0; }
.epseg.eptabs button { height: 34px; padding: 0 8px; border-radius: 0; font-size: 12.5px; color: var(--text-3); border-bottom: 2px solid transparent; }
.epseg.eptabs button.on { background: none; box-shadow: none; color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.epseg.epmode button.on { background: var(--accent-dim); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(159, 232, 112, .3); }
.epx { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.epx.on { color: var(--accent); background: rgba(159, 232, 112, .12); }
.epgrid { position: relative; flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; padding: 4px 10px 12px; align-content: start; }
.epbtn { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: rgba(159, 232, 112, .035); border: 1px solid rgba(159, 232, 112, .09); transition: transform .1s; }
.epbtn:active { transform: scale(.9); }
.epbtn img { width: 34px; height: 34px; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .2)); }
.epbtn.add { color: var(--accent); border-style: dashed; border-color: rgba(159, 232, 112, .35); }
/* An animated one (pixanim.js): a little «play» mark in the corner. */
.epbtn.anim { position: relative; }
.epbtn.anim::after { content: ""; position: absolute; right: 5px; bottom: 5px; border-left: 5px solid var(--accent); border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  opacity: .75; filter: drop-shadow(0 0 3px var(--accent-glow)); }
.epgrid.editing .epbtn:not(.add) { border-color: var(--accent); border-style: dashed; animation: epwig .5s ease-in-out infinite alternate; }
@keyframes epwig { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.epsec { grid-column: 1 / -1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 6px 2px 0; }
.epsec:first-child { padding-top: 0; }
/* Jumps to the sections of the set: the first emoji of each. */
.epnav { display: flex; gap: 2px; padding: 0 8px 4px; overflow-x: auto; scrollbar-width: none; flex: none; }
.epnav::-webkit-scrollbar { display: none; }
.epnav button { flex: none; width: 34px; height: 28px; border-radius: 8px; display: grid; place-items: center; opacity: .5; transition: opacity .15s, background .15s; }
.epnav button.on { opacity: 1; background: rgba(159, 232, 112, .1); }
.epnav img { width: 20px; height: 20px; image-rendering: pixelated; image-rendering: crisp-edges; }
.epnav .icon { color: var(--text-2); }
.epempty { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; line-height: 1.45; padding: 6px 4px; }

/* Tapped emoji and the editor. */
.epinfo { align-items: center; text-align: center; padding-top: 6px; }
.epname { font-size: 18px; font-weight: 700; }
.epinfo .btn { align-self: stretch; }
.epprev { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 84px; padding: 6px; border-radius: 14px; background: #060a07; border: 1px solid rgba(159, 232, 112, .15); }
.eppline { font-size: 15px; color: var(--text-2); }
.eppempty { color: var(--text-3); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .epgrid.editing .epbtn { animation: none; } }
:where(:root.eco) .epgrid.editing .epbtn { animation: none; }

/* Replies, reactions and pinned messages in the chat. */
.mrow { position: relative; touch-action: pan-y; }
.mrow .mcard { will-change: auto; }
.swipehint { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gl);
  display: grid; place-items: center; color: var(--accent); opacity: 0; pointer-events: none; transition: background .15s, box-shadow .15s; }
.mrow.armed .swipehint { background: rgba(159, 232, 112, .16); box-shadow: 0 0 14px -3px var(--accent-glow); }
.mrow.flash .mcard { animation: mflash 1.6s ease-out; }
@keyframes mflash { 0%, 35% { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 26px -4px var(--accent-glow); } }
/* A quote: the name on top, the start of the message under it. */
.mquote { display: block; width: 100%; max-width: 100%; text-align: left; margin: 1px 0 6px; padding: 4px 10px 5px; border-left: 2px solid var(--accent); border-radius: 3px 9px 9px 3px;
  background: rgba(159, 232, 112, .07); font-size: 12px; line-height: 1.4; color: var(--text-2); overflow: hidden; }
.mquote .qnick, .mquote .qtext { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mquote .qnick { font-weight: 600; }
.mquote .pemo, .treply .pemo, .tpin .pemo { width: 1.25em; height: 1.25em; }
.qnick { color: var(--accent); margin-right: 6px; }
.treply .qnick::after, .tpin .qnick::after { content: ":"; }
.qtext .icon { display: inline-grid; vertical-align: -2px; margin-right: 5px; opacity: .85; }
.qtext.gone { font-style: italic; color: var(--text-3); }
/* What people wrote, and their names, keep their direction to themselves:
   a right-to-left override inside does not turn the rest of the line. */
.mname bdi, .mtext, .qnick, .qtext { unicode-bidi: isolate; }
.mreacts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mreact { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 4px; border-radius: 13px; border: 1px solid var(--gb);
  background: rgba(159, 232, 112, .04); color: var(--text-2); font-size: 11.5px; font-variant-numeric: tabular-nums; transition: transform .12s var(--ease); }
.mreact:active { transform: var(--press); }
.mreact.on { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 10px -4px var(--accent-glow); }
.mreact .pemo { width: 18px; height: 18px; margin: 0; vertical-align: 0; }
.ppin { color: var(--accent); display: inline-grid; }
.treply .rtext .qtext .icon { margin-right: 4px; }
/* The pinned bar under the band. */
.tpin { position: relative; z-index: 1; display: flex; align-items: center; height: 38px; margin: 6px 12px 0; border: 1px solid var(--gb); border-radius: 12px; background: rgba(6, 11, 7, .88); }
.tpin[hidden] { display: none; }
.tpin .pmain { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px; text-align: left; font-size: 12px; color: var(--text-2); }
.tpin .pmain > .icon { color: var(--accent); flex: none; }
.tpin .pnum { color: var(--accent); flex: none; font-size: 11px; font-variant-numeric: tabular-nums; }
.tpin .pnum:empty { display: none; }
.tpin .ptxt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpin .ptxt .qtext .icon { margin-right: 4px; }
/* On a wall the pinned bar is the pinned post above the feed, as a sheet's
   row: an amber tile with the pin, «Pinned post» in grey, the start of its
   text, its picture when it has one. */
.tpin.wall { height: 60px; border-color: var(--line); border-radius: 16px; background: linear-gradient(180deg, #161b18, var(--surface)); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .8); }
.tpin.wall .pmain { gap: 12px; font-family: var(--font); }
.tpin.wall .pmain > .icon { box-sizing: border-box; width: 32px; height: 32px; padding: 8px; border-radius: 10px; color: var(--amber);
  background: rgba(255, 207, 110, .12); box-shadow: inset 0 0 0 1px rgba(255, 207, 110, .14); }
.tpin.wall .ptxt { display: flex; flex-direction: column; gap: 2px; }
.tpin.wall .pinlabel { font: 400 12.5px/1.2 var(--font); color: var(--text-3); }
.tpin.wall .pinline { font: 500 14.5px/1.3 var(--font); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpin.wall .pinline .qtext { display: inline; }
.tpin.wall .pinthumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--line); }
.tpin.wall .pnum { color: var(--text-3); }
.tpin.wall .plist { border-left-color: var(--line); }
.tpin .plist { flex: none; width: 40px; align-self: stretch; display: grid; place-items: center; color: var(--text-2); border-left: 1px solid var(--gb); }
/* The message menu: reactions in one row, who put them, then the actions. */
.msgsheet .mmhead { padding: 0 0 4px; border-bottom: 1px solid var(--line); }
.rstrip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; padding: 2px 0 8px; }
.rstrip.all { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); max-height: 38vh; overflow-y: auto; }
.rbtn { aspect-ratio: 1; min-width: 0; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .12s var(--ease), background-color .15s, border-color .15s; }
.rbtn:active { transform: scale(.88); }
.rbtn img { width: 66%; max-width: 30px; image-rendering: pixelated; }
.rbtn.on { border-color: var(--accent-line); background: var(--accent-dim); }
.rbtn.more { color: var(--text-2); background: none; border-style: dashed; }
.rwho { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); padding: 2px 2px 8px; }
.rwho:empty { display: none; }
.rwrow { display: flex; align-items: center; gap: 8px; }
.rwrow .pemo { width: 20px; height: 20px; flex: none; }
.msgsheet .setting { min-height: 50px; padding: 9px 0; }
.msgsheet .setting.danger .grow { color: var(--danger); }
.menu .mmsep { height: 10px; border-bottom: 1px solid var(--line); }
/* The pins sheet. */
.pinlist { display: flex; flex-direction: column; }
.pinrow { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pinrow:last-child { border-bottom: 0; }
.pinq { flex: 1; min-width: 0; text-align: left; }
.pinhead { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.pinhead .qnick { font-weight: 600; margin: 0; }
.pinhead time { color: var(--text-3); font: 11.5px var(--mono); }
.pinbody { font-size: 14.5px; margin: 3px 0 2px; overflow-wrap: anywhere; color: var(--text); }
.pinq .hint { font-size: 12px; color: var(--text-3); }

/* Talk queue: "your turn" pulses amber on the PTT button and the chat mic. */
.ptt[data-state="turn"] { border-color: #ffd24a; color: #ffd24a; border-width: 3px; background: radial-gradient(circle at 50% 42%, #2a2614, #12110b 72%); animation: turnpulse 1s ease-in-out infinite; }
/* «Call»: nobody else on the walkie's air, the button calls the frequency;
   while it rings, the button pulses amber and its bell swings. */
.ptt[data-state="call"] { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(159, 232, 112, .06), 0 0 38px -8px var(--accent-glow); }
.ptt[data-state="call"]::before { border-color: rgba(159, 232, 112, .25); border-style: dashed; }
.ptt[data-state="calling"] { border-color: #ffd24a; color: #ffd24a; border-width: 3px; background: radial-gradient(circle at 50% 42%, #2a2614, #12110b 72%); animation: turnpulse 1.2s ease-in-out infinite; }
.ptt[data-state="calling"]::before { border-color: rgba(255, 210, 74, .45); animation: pulse 1.2s ease-out infinite; }
.ptt[data-state="calling"] .icon { animation: abell 1s ease-in-out infinite; }
.tmic[data-state="turn"] { border-color: #ffd24a; color: #ffd24a; animation: turnpulse 1s ease-in-out infinite; }
@keyframes turnpulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 210, 74, .06), 0 0 26px -10px rgba(255, 210, 74, .5); } 50% { box-shadow: 0 0 0 12px rgba(255, 210, 74, .1), 0 0 52px -6px rgba(255, 210, 74, .65); } }
.unavail .qbtn { margin-top: 8px; }

/* Server administration. */
.adm-head { padding: 0 16px 6px; flex: none; }
/* Tabs: pills that scroll sideways; the chosen one is outlined green, so
   «Send to everyone» stays the only solid green button. */
.adm-tabs { padding: 2px 0 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
.adm-tabs .pill { height: 36px; padding: 0 14px 0 11px; font-size: 13.5px; }
.adm-tabs .pill .icon { color: var(--text-3); }
.adm-tabs .pill.on { background: linear-gradient(rgba(159, 232, 112, .12), rgba(159, 232, 112, .04)), var(--surface-2); color: var(--accent); border-color: var(--accent-line); box-shadow: inset 0 0 14px -8px var(--accent-glow); }
.adm-tabs .pill.on .icon { color: var(--accent); }
.adm-body { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.adm-body > .section-title { margin: 8px 4px -4px; }
.adm-body > .lead { margin: 0 4px; }
.adm-body > .search { margin-bottom: 0; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.adm-tile { background: var(--sheen), var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.adm-v { font: 600 26px/1.15 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 14px rgba(159, 232, 112, .25); }
.adm-l { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.adm-s { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.adm-card { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.adm-meter { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.adm-mhead { display: flex; justify-content: space-between; gap: 10px; }
.adm-mhead .dim { font: 12.5px var(--mono); }
.adm-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.adm-bar i { display: block; height: 100%; min-width: 3px; background: var(--grad-primary); border-radius: 3px; box-shadow: 0 0 10px -2px var(--accent-glow); }
.adm-bar.hot i { background: var(--danger); box-shadow: none; }
.adm-note { display: flex; gap: 10px; align-items: flex-start; color: var(--text-3); font-size: 12.5px; line-height: 1.45; margin: 0 4px; }
.adm-note .icon { color: var(--accent); flex: none; margin-top: 1px; }
.adm-note.warn { color: var(--text-2); padding: 12px 14px; margin: 0; border-radius: 14px; background: rgba(255, 207, 110, .07); border: 1px solid rgba(255, 207, 110, .2); }
.adm-note.warn .icon { color: var(--amber); }
.adm-list { padding: 0 12px; }
/* A row: the name and the action on the first line, the details below
   running under the button, so a narrow phone does not squeeze them. */
.adm-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px; align-items: center; }
.adm-row > .avatar, .adm-row > .sico { grid-row: 1 / span 3; align-self: start; margin-top: 2px; }
.adm-row > .sico { width: 40px; height: 40px; border-radius: 12px; }
.adm-row > .grow { display: contents; }
.adm-row > .btn { grid-column: 3; grid-row: 1; }
.adm-row .title { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.adm-row .sub { grid-column: 2 / 4; }
.adm-row .adm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.adm-row .title .tag { flex: none; font-weight: 500; }
.adm-row .livedot { flex: none; }
.adm-row.banned .avatar { opacity: .45; }
.adm-row .btn.small { flex: none; }
.adm-act.risky { color: #f08a82; }
.adm-act.risky:hover { border-color: rgba(224, 87, 79, .4); }
.adm-row .sub { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; margin-top: 1px; }
.adm-row .sub.dim { color: var(--text-3); font-size: 12.5px; }
.adm-freq { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.adm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 12px; }
.adm-empty .icon { color: var(--text-3); }
.adm-notice { gap: 10px; }
.adm-notice .lead { margin: 0 4px; }
.adm-count { align-self: flex-end; font: 12px var(--mono); color: var(--text-3); margin: -4px 4px 0; }
/* A notice from the administrators: amber, it stays a while. */
.toast.notice { border-color: rgba(255, 207, 110, .5); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7), 0 0 22px -8px rgba(255, 207, 110, .45); }
.toast.notice .toast-ic { color: var(--amber); background: rgba(255, 207, 110, .12); }
.toast .notice b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--amber); margin-bottom: 1px; }
.toast .notice .hint { margin-top: 3px; font-size: 12px; color: var(--text-3); }

/* Profile photos. */
.avatar { overflow: hidden; }
.avatar .aimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar.photo { color: transparent; }
.avatar .dot { z-index: 1; }
.avatar:has(.dot) { overflow: visible; }
.avatar:has(.dot) .aimg { border-radius: 50%; }
.pavatar { position: relative; border-radius: 50%; }
.onb-cam { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 3px solid var(--bg); z-index: 2; }

/* Sign-up and passwords. */
.pwbox { position: relative; }
.pwbox[hidden] { display: none; }
.pwbox .input { width: 100%; padding-right: 46px; }
.pweye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-3); border-radius: 10px; }
.pweye.on { color: var(--accent); }
.authhint { font-size: 12.5px; color: var(--text-3); margin: -4px 4px 0; min-height: 16px; }
.authhint:empty { display: none; }
.sico.step { font-size: 14px; font-weight: 600; }
.setting .grow .icon { vertical-align: -3px; color: var(--accent); }
.authhint.ok { color: var(--accent); }
.authhint.bad { color: var(--danger); }
.setting.danger, .setting.danger .icon { color: var(--danger); }

/* Filling in the profile after sign-up. */
.onb .topbar { justify-content: space-between; }
.onb-dots { display: flex; gap: 6px; padding-left: 4px; }
.onb-dots i { width: 26px; height: 4px; border-radius: 2px; background: var(--surface-3); }
.onb-dots i.on { background: var(--accent); }
.onb-body { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin: 0 auto; padding-bottom: 24px; }
.onb-body h2 { margin: 6px 0 0; font-size: 26px; }
.onb-body p { margin: 0; line-height: 1.5; }
.onb-avatar { position: relative; align-self: center; border-radius: 50%; margin: 6px 0; }
.onb-avatar .avatar { border: 2px solid var(--accent); }
.btn.done { border-color: var(--accent); color: var(--accent); }
.onb-ch { position: relative; }
.onb-ch .onb-check { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.onb-ch.on .onb-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.onb-ch .sub + .sub { white-space: normal; }
.onb-ch:disabled { opacity: 1; cursor: default; }

/* ---------- waves: the list and the wave screen ---------- */
/* The list: your waves, then the open ones under a few quiet filters. The
   wave screen: a compact header, what is on air, the people under sticky
   tabs, and one main action in the dock. Graphite, thin green lines; mono
   only for the frequency. */
.wrow { min-height: 66px; }
.wrow .sub.live { color: var(--accent); }
.wrow .meta { justify-content: center; }
.wlock { color: var(--text-3); display: grid; }
.wtile { position: relative; width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--sheen), var(--surface-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; gap: 3px; }
.wtile b { font-size: 15px; font-weight: 600; color: var(--text); }
.wtile small { font-size: 10px; color: var(--text-3); }
.wtile.live { border-color: rgba(159, 232, 112, .55); box-shadow: 0 0 14px -4px var(--accent-glow); }
.wtile.live b { color: var(--accent); }
.wtile.here { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(159, 232, 112, .07); }
.wtile .where { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-primary); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--bg); }
.iconbtn.wplus { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); box-shadow: 0 0 16px -8px var(--accent-glow); }
.empty.wnone { padding: 14px 12px; font-size: 13.5px; }
.wlink { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 13px; padding: 4px 2px; }
.wavehint { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; text-align: left; }
.wavehint .icon:first-child { color: var(--accent); }
/* Search: a magnifier, a clear button, a "tune to" line for a number. */
.search .wclear { width: 30px; height: 30px; margin-right: -8px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); flex: none; }
.search .wclear:active { background: var(--surface-3); }
.search:focus-within { border-color: var(--accent-line); }
.wfreq { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px; margin: -2px 0 8px; border-radius: 12px; text-align: left;
  color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-line); font-size: 14px; }
.wfreq .grow { flex: 1; min-width: 0; }
.wfreq b { font-weight: 600; }
/* Filters: the chosen one has the app's selected look (the kit's .pill.on,
   a green tint and outline); the live dot only blinks while it is chosen. */
.wfilters { padding-bottom: 4px; }
.wfilters .pill .livedot { animation: none; background: var(--text-3); box-shadow: none; width: 7px; height: 7px; }
.wfilters .pill.wlive.on .livedot { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.4s infinite; }
.wfilters .pill .icon { color: var(--text-3); margin-right: -3px; }
.wfilters .pill.on .icon { color: inherit; }
.wtopics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wtopics button { height: 46px; border-radius: 14px; background: var(--sheen), var(--surface-2); border: 1px solid var(--line); color: var(--text); font-weight: 500;
  transition: transform .12s var(--ease), border-color .15s; }
.wtopics button:active { transform: var(--press); }
.wtopics button.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.wtopics button:first-child { grid-column: 1 / -1; }
/* An empty list says what to do next. */
.wempty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 16px 20px; margin: 2px 0 4px;
  border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--text-3); font-size: 13px; line-height: 1.45; }
.wempty b { color: var(--text); font-size: 15px; font-weight: 600; }
.wempty .hstack { margin-top: 8px; flex-wrap: wrap; justify-content: center; }

.wavex { background: #0b0e0c; }
.wavex .grow, .wstep .grow, .wavehint .grow { flex: 1; min-width: 0; }
.whead { display: flex; align-items: center; gap: 4px; min-height: 60px; padding: max(8px, env(safe-area-inset-top)) 8px 8px; border-bottom: 1px solid var(--line); flex: none; }
.wtitle { flex: 1; min-width: 0; padding: 0 6px; }
/* .wname is also the name on the radio screen (.who .wname). */
.wname { font-size: 27px; line-height: 1.15; font-weight: 650; margin: 12px 0 8px; letter-spacing: -.01em; }
.whead .wname { font-size: 17px; line-height: 1.25; font-weight: 650; margin: 0; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsubline { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 2px; font-size: 12px; line-height: 1.3; }
.wvf { color: var(--accent); letter-spacing: .02em; flex: none; }
.wonair { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wonair::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.wonair[data-state="on"] { color: var(--accent); }
.wonair[data-state="on"]::before { box-shadow: 0 0 6px var(--accent); animation: blink 1.4s infinite; }
.wonair[data-state="music"] { color: var(--violet); }
.wscroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 16px 16px; overscroll-behavior: contain; }
.whero { padding: 14px 2px 0; }
.wmeta { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.wmeta .whands { color: var(--amber); }
.wdesc { color: var(--text-3); font-size: 13px; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Following hosts (follow.js), the call log (calllog.js), recently listened. */
.whost { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13.5px; color: var(--text-2); }
.whost[hidden] { display: none; }
.followbtn.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.wphead .followbtn { flex: none; }
.xfollow { display: flex; flex-direction: column; margin-bottom: 6px; }
.xfollow[hidden] { display: none; }
.xhost { min-height: 56px; }
.xhost.quiet { min-height: 44px; }
.xhost .sub.live { color: var(--accent); }
.callrow { gap: 8px; }
.callpeer { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.callpeer .sub { display: flex; align-items: center; gap: 5px; }
.callrow.missed .callpeer .title, .callrow.missed .callpeer .sub { color: var(--danger); }
.recentrow { gap: 10px; }
.recentmain { display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; }
.recentmain .wtile { width: 40px; height: 40px; flex: none; }
.recentmain .title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recentmain .hint { display: block; }
.recentmain .hint.live { color: var(--accent); }
.wevents { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); }
.wevents[hidden] { display: none; }
.wevents .icon { color: var(--violet); flex: none; }
.wevnext, .wevadd { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; text-align: left; color: inherit; }
.wevnext b { color: var(--text); font-weight: 600; }
.wevadd { color: var(--violet); }
.remindbtn { flex: none; }
.remindbtn.on { color: var(--violet); border-color: rgba(190, 160, 255, .45); background: rgba(190, 160, 255, .12); }
.wevrow .wevwhen { width: 92px; flex: none; font-size: 12.5px; color: var(--violet); }
.wevrow.live .wevwhen { color: var(--accent); }
.wevform .seg { margin: 0; }
.xsched.xevent { cursor: pointer; }
/* The rules (rules.js) and the report of a track. */
.rules .rulesec { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.rules .rulehead { display: flex; align-items: center; gap: 8px; color: var(--text); }
.rules .rulehead .icon { color: var(--accent); }
.rules .rulesec p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.trackname { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.trackname .icon { color: var(--violet); flex: none; }
.mapext { font-size: 12.5px; }
.overlay.subpage.above { z-index: 45; } /* over a sheet (its scrim is 40): the uploader's «Rules» */
.strights .wlink { display: inline; padding: 0; color: var(--accent); }

/* The transmission: a calm line while quiet, a lit card while on air. */
.wcard { margin: 14px 0 12px; border-radius: 18px; background: var(--sheen), var(--surface); border: 1px solid var(--line); touch-action: pan-y;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.wcard.on { border-color: rgba(159, 232, 112, .24); background: linear-gradient(180deg, #131b15, #101411); }
.wcard.tx { border-color: rgba(159, 232, 112, .5); box-shadow: 0 0 40px -14px var(--accent-glow); }
.wcidle { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.wcidle-i { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--line); }
.wclive { padding: 14px 16px 12px; animation: wcin .25s var(--ease); }
@keyframes wcin { from { opacity: .3; transform: translateY(4px); } }
.wcwho { display: flex; align-items: center; gap: 12px; }
.wcav .avatar { border-color: rgba(159, 232, 112, .3); background: #1d2a20; box-shadow: 0 0 0 4px rgba(159, 232, 112, .07); }
.wcard.tx .wcav .avatar { box-shadow: 0 0 0 4px rgba(159, 232, 112, .14), 0 0 22px -4px var(--accent-glow); }
.wcname { font-size: 18px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcsub { color: var(--text-2); font-size: 13px; }
.wctimer { color: var(--text); font-size: 15px; flex: none; }
.wcwave { display: block; width: 100%; height: 48px; margin: 10px 0 8px; }
.wcbottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; min-height: 18px; }
.wcsig { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.wcsig::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.wcard[data-state="rx"] .wcsig, .wcard[data-state="tx"] .wcsig { color: var(--accent); }
.wcard[data-state="rx"] .wcsig::before, .wcard[data-state="tx"] .wcsig::before { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.wcard[data-state="muted"] .wcsig { color: var(--amber); }
.wcard[data-state="muted"] .wcsig::before { background: var(--amber); }
.wcfoot { color: var(--text-3); text-align: right; }

/* Tabs: they stick to the top of the scroll, so «People» shows at once. The
   chosen one looks like the kit's .seg: raised graphite, green ink, a green
   hairline. */
.wsegbar { position: sticky; top: 0; z-index: 3; margin: 0 -16px; padding: 8px 16px 6px; background: #0b0e0c; }
.wseg { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wseg button { flex: 1; height: 36px; border-radius: 11px; color: var(--text-2); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color .15s, color .15s; }
.wseg button:hover:not(.on) { color: var(--text); }
.wseg button.on { background: var(--sheen), var(--surface-3); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-line), 0 4px 12px -8px var(--accent-glow); }
.wseg button .icon { color: var(--text-3); }
.wseg .badge { position: static; }
.badge.hand { background: var(--amber); color: #1d1806; }
.wbody { min-height: 140px; }
.wbody > .section-title:first-child { margin-top: 10px; }
.prow { min-height: 56px; }
.prow.compact { min-height: 50px; padding: 7px 2px; border-bottom: 0; }
.prow .sub.hand { color: var(--amber); }
.prow .wanswer { flex: none; gap: 6px; }
.wtag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--accent); flex: none; }
.wtag.hand { color: var(--amber); }
.wtag.here { font-size: 11.5px; padding: 2px 8px; border-radius: 10px; background: var(--accent-dim); }
.wmore { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 4px; margin-top: 2px; color: var(--accent); font-size: 14px; text-align: left; border-top: 1px solid var(--line); }
.wnote { font-size: 13px; padding: 4px 2px; }
.wnote.card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 12px; }
.wnote.card .icon:first-child { color: var(--accent); }
.wrule { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.wrule .icon { margin-top: 1px; color: var(--text-3); }

/* The dock: one main action. */
.wdock { flex: none; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0c0f0d; }
.wdocknote { color: var(--text-3); font-size: 12.5px; line-height: 1.4; text-align: center; margin-top: 9px; }
.wdocknote.top { margin: 0 0 10px; color: var(--text-2); }
.wdocknote .wlink { padding: 0; font-size: 12.5px; }
.btn.wcta { border-radius: 27px; }
.wrow3 { display: flex; align-items: center; gap: 10px; }
.wround { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--accent);
  background: var(--sheen), var(--surface-2); border: 1px solid var(--line); transition: transform .12s var(--ease), color .15s, border-color .15s, box-shadow .2s; }
.wround:active { transform: var(--press); }
.wround.off { color: var(--amber); border-color: rgba(255, 207, 110, .45); box-shadow: 0 0 0 3px rgba(255, 207, 110, .07); }
.wround.quiet { color: var(--text-2); }
.wmain { flex: 1; min-width: 0; height: 50px; border-radius: 25px; font-size: 15px; }
.wmain.ask { color: var(--accent); border-color: var(--accent-line); background: linear-gradient(rgba(159, 232, 112, .1), rgba(159, 232, 112, .04)); box-shadow: inset 0 0 18px -10px var(--accent-glow); }
.wmain.waiting { color: var(--amber); border-color: rgba(255, 207, 110, .45); background: rgba(255, 207, 110, .07); }
.wstatus { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font-weight: 500; }
.wstatus .icon { color: var(--accent); }
.wptt { flex: 1; min-width: 0; height: 56px; border-radius: 28px; border: 2px solid var(--accent); background: radial-gradient(120% 140% at 50% 30%, #18211a, #0f1310 70%); color: var(--text);
  touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 0 30px -12px var(--accent-glow); transition: transform .08s, border-color .2s, background .2s, box-shadow .2s; }
.wpttl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; padding: 0 12px; font-size: 15px; font-weight: 600; line-height: 1.2; }
/* A long state (the queue) takes two short lines rather than an ellipsis. */
.wpttl > span:last-child { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: left; }
@media (max-width: 370px) { .wpttl { font-size: 14px; padding: 0 8px; gap: 6px; } .wrow3 { gap: 8px; } }
.wpttl .icon { color: var(--accent); }
.wptt[data-state="transmitting"], .wptt[data-state="requesting"] { transform: scale(.98); color: var(--accent); background: radial-gradient(120% 140% at 50% 30%, #203019, #111a10 70%); box-shadow: 0 0 0 6px rgba(159, 232, 112, .08), 0 0 44px -8px var(--accent-glow); }
.wptt[data-state="receiving"] { border-color: #39423c; color: var(--text-2); box-shadow: none; }
.wptt[data-state="receiving"] .icon, .wptt[data-state="connecting"] .icon, .wptt[data-state="unavailable"] .icon { color: inherit; }
.wptt[data-state="busy"] { border-color: var(--danger); color: var(--danger); background: radial-gradient(120% 140% at 50% 30%, #2a1716, #141010 70%); box-shadow: none; }
.wptt[data-state="busy"] .icon { color: inherit; }
.wptt[data-state="turn"] { border-color: var(--amber); color: var(--amber); }
.wptt[data-state="turn"] .icon { color: inherit; }
.wptt[data-state="connecting"], .wptt[data-state="unavailable"] { border-color: #2b332e; color: var(--text-3); box-shadow: none; }
/* Sound off: one slim line that is itself the switch. */
.wsoundnote { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 0 12px; margin-bottom: 10px; border-radius: 12px; text-align: left;
  background: rgba(255, 207, 110, .07); border: 1px solid rgba(255, 207, 110, .24); color: var(--text-2); font-size: 13px; transition: transform .12s var(--ease); }
.wsoundnote:active { transform: var(--press); }
.wsoundnote .icon { color: var(--amber); }
.wsoundnote .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsoundnote b { color: var(--amber); font-weight: 600; flex: none; }
.wqueue { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.wqueue .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sheets of the wave: how it works, a person. */
.wstep { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); font-size: 13px; color: var(--text-2); line-height: 1.45; }
.wstep b { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; }
.wstep > .icon { margin-top: 2px; color: var(--text-3); }
.wstep.done > .icon { color: var(--accent); }
.wstep.on { border-color: var(--accent-line); background: var(--accent-dim); }
.wstep.on > .icon { color: var(--accent); }
.wsafety .section-title { margin: 8px 2px 0; }
.wphead { display: flex; align-items: center; gap: 14px; margin: -2px 0 14px; }
.wprole { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--text); font-size: 15px; font-weight: 500; }
.wphead .dim { font-size: 13px; margin-top: 2px; }
.wperson .qacts { padding: 2px 0 6px; }
.wperson > .section-title:first-of-type { margin-top: 12px; }
.wquiet { margin-top: 14px; }
.wquiet .card.group { background: none; }
.wreasons { flex-wrap: wrap; }
.winvite .btn .icon { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .wclive { animation: none; }
  .wonair[data-state="on"]::before, .wfilters .pill.wlive.on .livedot { animation: none; }
}
:where(:root.eco) .wclive { animation: none; }
:where(:root.eco) .wonair[data-state="on"]::before, :where(:root.eco) .wfilters .pill.wlive.on .livedot { animation: none; }

/* The radio button of a listener who may ask for the floor. */
.ptt[data-state="listen"] { border-color: #3a453d; color: var(--text-2); }
.ptt[data-state="listen"]::before { border-color: rgba(159, 232, 112, .12); }

/* ---------- radio station: music on the frequency ---------- */
/* Music has its own colour, a soft violet, apart from the green radio and
   the ice-blue voice messages. */
.stcard { --mu: var(--violet); --mu-glow: rgba(185, 162, 255, .35); margin: 0 0 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--sheen), #111316; border: 1px solid var(--line); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.stcard.on { border-color: rgba(185, 162, 255, .3); background: linear-gradient(180deg, #16131c, #111014); }
.stcard.live { box-shadow: 0 0 36px -16px var(--mu-glow); }
.stcard.paused { border-color: rgba(255, 207, 110, .32); }
.sttop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stkick { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.stkick .icon { color: var(--mu); }
.ststate { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.stcard.on .ststate { color: var(--mu); }
.stcard.paused .ststate { color: var(--amber); }
.stnow { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; text-align: left; padding: 10px 0 8px; color: inherit; }
.stnow .grow { flex: 1; min-width: 0; }
.stnow .chev { color: var(--text-3); flex: none; display: grid; }
.sttitle { font-weight: 650; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stsub { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Equalizer: bars move while the music plays here. */
.steq { width: 34px; height: 34px; flex: none; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 7px 6px;
  border-radius: 10px; background: rgba(185, 162, 255, .1); }
.steq i { flex: 1; height: 20%; border-radius: 2px; background: var(--mu, var(--violet)); opacity: .45; }
.stcard.live .steq i, .strow.onair .steq i { opacity: 1; animation: steq 1s ease-in-out infinite; }
.steq i:nth-child(2) { animation-delay: -.3s !important; }
.steq i:nth-child(3) { animation-delay: -.6s !important; }
.steq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes steq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.stprog { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.stprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8f6dff, var(--mu)); box-shadow: 0 0 8px var(--mu-glow); transition: width .45s linear; }
.stcard.paused .stprog i { background: var(--amber); box-shadow: none; }
.sttimes { display: flex; justify-content: flex-end; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.sttimes:empty { display: none; }
.stnote { font-size: 12.5px; color: var(--amber); margin-top: 6px; }
.stctrls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.stctrls:empty { display: none; }
.stbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--sheen), rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: transform .12s var(--ease), color .15s, border-color .15s; }
.stbtn.main { width: 54px; height: 54px; color: #1a1030; background: linear-gradient(180deg, #d6c9ff, var(--mu) 65%); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 22px -6px var(--mu-glow); }
.stcard.paused .stbtn.main { background: linear-gradient(180deg, #ffe3a8, var(--amber) 65%); color: #2a1d00; }
.stbtn.mine { margin-left: auto; }
.stbtn.mine.on { color: var(--mu); border-color: rgba(185, 162, 255, .35); }
.stbtn.mine.off { color: var(--text-3); }
.stbtn:active { transform: var(--press); }
/* A listener has only the switch: it sits at the right of the line. */
.stctrls > .stbtn.mine:only-child { margin-top: -6px; }
/* On the radio screen: one compact line. */
.stcard.compact { margin: 8px 16px 0; padding: 8px 10px; border-radius: 16px; display: flex; align-items: center; gap: 8px; }
.stcard.compact .sttop { display: none; }
.stcard.compact .stnow { flex: 1; min-width: 0; padding: 0; }
.stcard.compact .steq { width: 30px; height: 30px; }
.stcard.compact .sttitle { font-size: 14px; }
.stcard.compact .stsub { font-size: 12px; }
.stcard.compact .stctrls { margin: 0; gap: 6px; }
.stcard.compact .stbtn { width: 36px; height: 36px; }
.stcard.compact .stbtn.main { width: 40px; height: 40px; }
.stcard.compact .stbtn.mine { margin-left: 0; }
.stcard.compact .stctrls > .stbtn.mine:only-child { margin-top: 0; }
.stcard.compact .stnow .chev { display: none; }
/* The sheet. */
.stsheet .stcard { margin: 0; }
.stsheet .btn .icon { color: inherit; }
.stslot:empty { display: none; }
.stupload { gap: 10px; padding: 12px; border-radius: 16px; background: rgba(185, 162, 255, .05); border: 1px dashed rgba(185, 162, 255, .3); }
.strights { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.4; padding: 2px; border-radius: 10px; transition: background-color .2s; }
.strights.need { background: rgba(255, 207, 110, .1); color: var(--text); }
.stcheck { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--violet); }
.btn.stupbtn { color: var(--violet); border-color: rgba(185, 162, 255, .4); background: linear-gradient(rgba(185, 162, 255, .12), rgba(185, 162, 255, .04)); }
.stupload.first .btn.stupbtn { color: #1a1030; border-color: transparent; background: linear-gradient(180deg, #d6c9ff, var(--violet) 65%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px -12px rgba(185, 162, 255, .5); }
.stfmt { font-size: 12px; color: var(--text-3); text-align: center; margin-top: -4px; }
.stup { display: flex; flex-direction: column; gap: 4px; }
.stup:empty { display: none; }
.stuprow { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.stuprow .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stuprow.bad { color: var(--danger); }
.sthead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 -6px; }
.sthead .section-title { margin: 6px 4px; }
.btn.stedit { color: var(--violet); }
.stempty { padding: 14px 12px; }
.strow { gap: 10px; }
.strow.onair { background: rgba(185, 162, 255, .07); border-radius: 12px; }
.strow.onair .title { color: var(--violet); }
.stplay { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; }
.stnum { font-size: 12px; color: var(--text-3); }
.stord { display: flex; gap: 4px; flex: none; }
.stord .iconbtn:disabled { opacity: .25; }
.stord .stdel { color: var(--danger); }
.setting.stslider { flex-wrap: wrap; row-gap: 4px; }
.stslider .strange { flex: 1 0 calc(100% - 44px); margin: 0 0 4px 44px; accent-color: var(--violet); }
.stuse { margin-top: 0; }
/* What comes next, a stall, the station's announcement. */
.stnext { display: flex; align-items: baseline; min-width: 0; margin-top: 8px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.stnext b { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); }
.stnext .stnt { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.stnext .stleft { flex: none; font-size: 11px; }
.stnext > * + *::before { content: "·"; margin: 0 7px; color: var(--text-3); }
.stbuf { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--amber); }
.stled { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(255, 207, 110, .75); animation: blink .9s ease-in-out infinite; }
/* The announcement in one line, in the colours and LED dots of the board. */
.stnotice { --bn: #c8ff9e; --bng: 159, 232, 112; display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 8px 10px; border-radius: 12px;
  background: rgba(5, 10, 6, .6); border: 1px solid rgba(var(--bng), .26); color: var(--bn); }
.stnotice > .icon { flex: none; filter: drop-shadow(0 0 4px rgba(var(--bng), .7)); }
.stnotice .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12.5px/1.25 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  text-shadow: 0 0 6px rgba(var(--bng), .7), 0 0 14px rgba(var(--bng), .3);
  -webkit-mask-image: radial-gradient(circle, #000 60%, rgba(0, 0, 0, .6) 74%); mask-image: radial-gradient(circle, #000 60%, rgba(0, 0, 0, .6) 74%);
  -webkit-mask-size: 2.5px 2.5px; mask-size: 2.5px 2.5px; }
.stnotice[data-level=warn] { --bn: #ffd27a; --bng: 255, 196, 77; }
.stnotice[data-level=alarm] { --bn: #ff9585; --bng: 255, 90, 79; animation: bnalarm 2.4s ease-in-out infinite; }
.stnotice[data-level=vip] { --bn: #ffcf5a; --bng: 255, 207, 90; }
.stnote { display: flex; align-items: center; gap: 10px; }
.stnote .grow { flex: 1; min-width: 0; }
.stresume { flex: none; color: #2a1d00; background: linear-gradient(180deg, #ffe3a8, var(--amber) 65%); border-color: transparent; }
/* The studio button of a station's presenters: on the right, by the music switch. */
.stbtn.studio { margin-left: auto; color: var(--mu); border-color: rgba(185, 162, 255, .35); background: rgba(185, 162, 255, .08); }
.stbtn.studio + .stbtn.mine { margin-left: 0; }
.stcard.compact { flex-wrap: wrap; }
.stcard.compact .stbuf, .stcard.compact .stnotice, .stcard.compact .stnote { order: 2; flex: 1 1 100%; min-width: 0; max-width: 100%; margin-top: 0; }
.stcard.compact .stnotice { padding: 6px 9px; }
.stcard.compact .stbtn.studio { margin-left: 0; }
/* The sheet: «Open studio» of a station, «Make it a radio station» of a plain wave. */
.ststudio { display: flex; flex-direction: column; gap: 10px; }
.ststudio .btn { color: var(--violet); border-color: rgba(185, 162, 255, .4); background: linear-gradient(rgba(185, 162, 255, .12), rgba(185, 162, 255, .04)); }
/* The sheet's own buttons keep their violet ink, icons too (the kit paints a sheet's icons green). */
.stsheet .btn:not(.danger):not(.primary) .icon { color: inherit; }
.section-title + .ststudio { padding: 12px; border-radius: 16px; background: var(--sheen), var(--surface); border: 1px solid var(--line); }
.stsub2 { font-size: 13px; line-height: 1.45; color: var(--text-2); padding: 0 2px; }
.stnexttag { margin-left: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
/* A choice in a row (the crossfade, the dip): the segments under the title. */
.setting.stchoice { flex-wrap: wrap; row-gap: 8px; }
.stchoice .seg { flex: 1 0 calc(100% - 44px); margin: 0 0 4px 44px; }
.stchoice .seg button { height: 32px; padding: 0 2px; font-size: 12.5px; }
.stchoice .seg button.on { color: var(--violet); box-shadow: inset 0 0 0 1px rgba(185, 162, 255, .45), 0 4px 12px -8px rgba(185, 162, 255, .35); }
/* ?debug=station: the decks, the drift and the clock over the app. */
.stdebug { position: fixed; left: 6px; top: max(6px, env(safe-area-inset-top)); z-index: 100; margin: 0; padding: 6px 8px; max-width: calc(100vw - 12px);
  font-size: 10px; line-height: 1.4; color: #c8ff9e; background: rgba(5, 8, 6, .85); border: 1px solid rgba(159, 232, 112, .25); border-radius: 8px;
  pointer-events: none; white-space: pre; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .steq i, .stled, .stnotice { animation: none !important; } }
:where(:root.eco) .steq i, :where(:root.eco) .stled, :where(:root.eco) .stnotice { animation: none !important; }

/* ======================================================================
   User-facing redesign. Each area adds its new rules under its own marker
   (or edits its existing section above). Keep the markers.
   ====================================================================== */

/* ---- redesign: radio screen and tuner ---- */
/* (radio) */
.radio .head { gap: 10px; padding-bottom: 6px; }
.chanbtn { border-radius: 14px; padding: 4px 6px; transition: background-color .15s; }
.chanbtn:active { background: var(--surface); }
.chanbtn .name { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; justify-content: center; }
.chanbtn .name .cname-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chanbtn .name .icon { color: var(--text-3); flex: none; margin-top: 1px; }
.chanbtn .freqline { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--text-3); }
.quick { padding: 0 12px 4px; }
.quick .pill .pf { font-size: 11.5px; opacity: .7; }
.quick .pill.on .pf { opacity: .75; }
.quick .pill .icon { color: var(--amber); }
.quick .pill.on .icon { color: inherit; }
/* The console: five buttons on one panel at the bottom of the radio. */
.radio .actions { margin: 0 12px 10px; padding: 8px 6px 7px; justify-content: space-around; gap: 4px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 70%), var(--surface); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 10px 26px -18px rgba(0, 0, 0, .8); }
.radio .action { flex: 1; width: auto; min-width: 0; max-width: 92px; gap: 5px; font-size: 11.5px; color: var(--text-2); transition: color .15s; }
.radio .action .iconbtn { width: 48px; height: 44px; border-radius: 15px; background: var(--sheen), var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.radio .action:active .iconbtn { transform: var(--press); }
.radio .action.on { color: var(--accent); }
.radio .action.on .iconbtn { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); box-shadow: 0 0 18px -8px var(--accent-glow); }
.radio .action:disabled { opacity: .38; cursor: default; }
.radio .action .actlbl { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.radio .action.off { color: var(--danger); }
.radio .action.off .iconbtn { color: var(--danger); border-color: rgba(224, 87, 79, .35); background: var(--danger-dim); }
/* «In pocket» paused by the phone (pocket.js): on, but not keeping the walkie up */
.radio .action.on.held { color: var(--amber); }
.radio .action.on.held .iconbtn { color: var(--amber); border-color: rgba(255, 207, 110, .4); background: rgba(255, 207, 110, .1); box-shadow: none; }
.hint-line { font-size: 12.5px; }
.ptt .icon svg { transition: width .2s, height .2s; }
/* Five on a narrow phone: a little closer together. The queue button in
   the air line drops its icon, so who talks stays readable beside it. */
@media (max-width: 380px) {
  .airline .btn.small .icon { display: none; }
  .airline .btn.small.qfix { padding: 0 9px; font-size: 12px; }
  .airline .btn.small.qicon { padding: 0 7px; }
  .airline .unavail { gap: 4px; }
  .radio .actions { padding-left: 4px; padding-right: 4px; gap: 2px; }
  .radio .action { font-size: 11px; }
  .radio .action .iconbtn { width: 44px; }
}
/* Short phones (iPhone SE, small Android): the whole radio fits, the
   button only gets smaller (its size follows the room it has). */
@media (max-height: 760px) {
  .radio .head { padding-bottom: 2px; }
  .radio .head .chanbtn { padding-top: 2px; padding-bottom: 2px; }
  .chanbtn .name { font-size: 16px; }
  .radio .actions { margin-bottom: 8px; padding: 6px 6px 5px; }
  .radio .action { gap: 3px; font-size: 11px; }
  .radio .action .iconbtn { width: 44px; height: 38px; border-radius: 13px; }
  .hint-line:empty { display: none; }
  .sfxbtn { width: 38px; height: 38px; }
  .sfxbtn b { font-size: 18px; }
}
@media (max-height: 620px) {
  .radio .quick .pill { height: 34px; }
  .lcdfreq { font-size: 30px; line-height: 32px; height: 32px; }
  @supports not (width: 1cqh) { .ptt .lbl { font-size: 11px; } } /* elsewhere it follows the button's size */
  .radio .action .iconbtn { height: 34px; }
  .radio .action .actlbl { font-size: 10.5px; }
  /* The LCD's bottom line waits while the tip or the banner is there (the
     people strip says who is here; the tab's 📍 that you are shown). */
  .radio.tipon .lcdbot, .radio.banneron .lcdbot { display: none; }
  .tipcard .tipmore { display: none; } /* its button says it */
}
/* Tuner. */
.tuner { gap: 12px; padding-top: 4px; }
.display { background: radial-gradient(120% 90% at 50% 0%, rgba(159, 232, 112, .07), transparent 60%), linear-gradient(#0f1311, #0b0e0c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.display .stat { font-family: var(--mono); font-size: 11px; }
.display .stat .st.on { color: var(--text-2); }
.display .stat .st.live { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }
.finetune .freqbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px var(--font); letter-spacing: 0; color: var(--text-2); }
.finetune .freqbtn .icon { color: var(--accent); }
.finetune .iconbtn { border-radius: 14px; }
.result { gap: 12px; }
.result .tunebtns .btn { letter-spacing: 0; }
.tunebtns.here { align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.tunebtns.here .btn { flex: none; }
.herel { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }
.result.free .avatar.ch { color: var(--text-2); background: var(--surface-3); }
.scanbtn.on { animation: scanpulse 1.6s ease-in-out infinite; }
@keyframes scanpulse { 50% { box-shadow: inset 0 0 22px -6px var(--accent-glow), 0 0 18px -8px var(--accent-glow); } }
.footnote.center { text-align: center; margin-top: 0; }
.tunenow { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 13.5px; }
.tunenow b { color: var(--text); font-weight: 600; }


/* ---- redesign: lists, contacts, channel settings ---- */
/* (lists) */
.chsub { color: var(--text-3); font-size: 12px; margin: -6px 0 12px; letter-spacing: .02em; }
.chsheet .qacts { padding: 2px 0 6px; }
.chsheet .section-title:first-of-type { margin-top: 10px; }
.chleave { margin-top: 18px; }
.invite-code { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--accent-line); text-align: center; font-size: 15px; line-height: 1.45; color: var(--accent); word-break: break-all; user-select: all; -webkit-user-select: all; }
.sheet .btn.danger .icon, .sheet .btn.primary .icon { color: inherit; }
.qact.red.on { color: var(--danger); }
.qact.red.on .qico { color: var(--danger); border-color: rgba(224, 87, 79, .4); background: var(--danger-dim); box-shadow: none; }
.qact.main .qico { border-color: var(--accent-line); background: linear-gradient(rgba(159, 232, 112, .14), rgba(159, 232, 112, .05)); box-shadow: 0 0 18px -8px var(--accent-glow); }
/* A settings row with a select: on a narrow screen the select goes under
   the title instead of squeezing it into a column. */
@media (max-width: 420px) {
  .setting:has(> select.input) { flex-wrap: wrap; row-gap: 8px; }
  .setting:has(> select.input) > select.input { max-width: none; flex: 1 1 calc(100% - 44px); margin-left: 44px; }
}
/* Contacts: the row opens the card; two quick actions on the right. */
.row.crow2 { gap: 6px; padding-right: 0; }
.crow2 .cmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 2px 0; border-radius: 12px; }
.crow2 .cmain:active { background: rgba(255, 255, 255, .025); }
.row .sub.on { color: var(--accent); }
.row .sub.live { color: var(--accent); }
.iconbtn.talk { color: var(--accent); border-color: var(--accent-line); background: linear-gradient(rgba(159, 232, 112, .12), rgba(159, 232, 112, .04)); box-shadow: inset 0 0 14px -8px var(--accent-glow); }
.card.list.reqs { padding: 0 12px; }
.reqs .btn.ghost { color: var(--text-3); }
/* The contact's card in a sheet. */
.ccard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 0 14px; text-align: center; }
.ccname { font-size: 21px; font-weight: 700; margin-top: 8px; }
.ccsub { color: var(--text-3); font-size: 12.5px; margin-bottom: 10px; }
.ccard .qacts { width: 100%; }
.menu .ccard + .setting { border-top: 1px solid var(--line); }
/* Empty states: an icon, a title, one line, one action. */
.empty.big { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; line-height: 1.5; font-size: 13.5px; }
.empty.big .btn { margin-top: 8px; }
.emptyico { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px rgba(159, 232, 112, .14), 0 0 30px -12px var(--accent-glow); margin-bottom: 4px; }
.etitle { color: var(--text); font-size: 17px; font-weight: 600; }
/* Chats. */
.row.unread .title { color: var(--text); }
.row.unread .sub { color: var(--text); }
.search { height: 42px; border-radius: 13px; transition: border-color .15s; }
.search:focus-within { border-color: var(--accent-line); }
/* «My channels». */
.switcher > .btn { margin-bottom: 4px; }
.switcher .setgroup { padding-top: 14px; }
.row.current .title { color: var(--accent); }
.screen .wavehint { margin: 0 0 10px; }
/* The new-wave form. */
.cform { gap: 14px; padding-bottom: 8px; }
.fhint { font-size: 12.5px; color: var(--text-3); line-height: 1.4; margin: -2px 2px 0; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.choice b { display: block; font-weight: 600; font-size: 14.5px; }
.choice small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
.choice.on { border-color: var(--accent-line); background: linear-gradient(rgba(159, 232, 112, .07), rgba(159, 232, 112, .02)); }
.choice .radio-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.choice.on .radio-dot { border: 6px solid var(--accent); box-shadow: 0 0 10px -2px var(--accent-glow); }
.cform .seg { margin-bottom: 0; }
details.more { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
details.more > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 13px 14px; cursor: pointer; font-weight: 600; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary small { flex: 1; color: var(--text-3); font-weight: 400; font-size: 12.5px; text-align: right; }
details.more > summary .icon { color: var(--text-3); transition: transform .2s var(--ease); }
details.more[open] > summary .icon { transform: rotate(180deg); }
details.more > .vstack { padding: 2px 14px 14px; gap: 12px; }
details.more .input { background: var(--surface-2); }
details.more select.input { background-color: var(--surface-2); }
details.more .setting { padding: 6px 0 0; }


/* ---- redesign: profile, settings pages, sign-in ---- */
/* (profile) */
.profile .profile-head { margin: 2px 0 6px; gap: 2px; }
.profile-head .pavatar .avatar { box-shadow: 0 0 0 5px rgba(159, 232, 112, .07), 0 0 34px -10px var(--accent-glow); }
.profile-head .pname { font-size: 23px; font-weight: 700; margin-top: 10px; letter-spacing: -.01em; }
.profile-head .puser { color: var(--text-3); font-size: 13px; }
.pbio { margin-top: 8px; font-size: 13.5px; color: var(--text-2); max-width: 300px; line-height: 1.4; padding: 4px 10px; border-radius: 10px; }
.pbio.empty { color: var(--accent); border: 1px dashed rgba(159, 232, 112, .35); }
.pbio:active { background: var(--surface); }
/* Availability: four tiles in a row, the chosen one lit. */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.modes .mode { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 2px 9px; border-radius: 14px; text-align: center; min-width: 0; transition: background-color .15s, border-color .15s; }
.modes .mode .mi { width: 36px; height: 36px; }
.modes .mode { justify-content: flex-start; }
.modes .mode .t { font-size: 11.5px; font-weight: 600; color: var(--text-2); line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.modes .mode.on .t { color: var(--accent); }
.modes .mode.on .mi { box-shadow: 0 0 16px -4px var(--accent-glow); background: var(--grad-primary); }
.modes .mode:active .mi { transform: var(--press); }
.modehint { font-size: 12.5px; color: var(--text-2); margin: 8px 6px 0; line-height: 1.45; }
.modehint .dim { margin-top: 4px; }
.brandfoot { text-align: center; color: var(--text-3); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; margin: 26px 0 8px; opacity: .7; }
.about { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 6px; text-align: center; }
.aboutlogo { font-size: 30px; letter-spacing: .38em; padding-left: .38em; color: var(--accent); text-shadow: 0 0 18px rgba(159, 232, 112, .35); }
.about .tag { margin-top: 6px; }
.authform { gap: 10px; }
.authtitle { font-size: 13px; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); margin: 0 4px 2px; }
.authform .btn.primary { margin-top: 6px; }
.authform .btn.ghost { color: var(--accent); height: 40px; }
.authhint:empty { display: none; }


/* ---- redesign: waves and radio station ---- */
/* (waves) */
/* The invite code, whole: wrapped mono text instead of a field that cuts it. */
.winvcode { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--accent);
  font-size: 15px; line-height: 1.5; letter-spacing: .04em; text-align: center; word-break: break-all; user-select: all; -webkit-user-select: all; cursor: text; }


/* ---- redesign: chat ---- */
/* (chat) */
/* The message menu says which message it is for: one quoted line. */
.msgsheet .mmquote { display: flex; align-items: baseline; gap: 0; min-width: 0; margin: -4px 2px 10px; padding: 4px 10px 5px; border-left: 2px solid var(--accent); border-radius: 3px 9px 9px 3px;
  background: rgba(159, 232, 112, .06); font: 12.5px/1.4 var(--mono); color: var(--text-2); white-space: nowrap; overflow: hidden; }
.msgsheet .mmquote .qnick { flex: none; font-weight: 600; }
.msgsheet .mmquote .qnick::after { content: ":"; }
.msgsheet .mmquote .qtext { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.msgsheet .mmquote .pemo { width: 1.25em; height: 1.25em; }
/* For a moment after the message menu opens it takes no taps (chat.js). */
.tapguard { position: absolute; inset: 0; z-index: 41; }
/* A call in the log: a quiet chip in the middle; a tap calls back. */
.tline.callline { align-self: center; width: auto; max-width: 94%; display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 10px; padding: 4px 4px 4px 12px; border-radius: 16px;
  border: 1px solid var(--gb); background: rgba(9, 15, 10, .85); color: var(--text-2); font: 12px/1.4 var(--mono); text-align: left; transition: transform .12s var(--ease); }
.tline.callline:active { transform: var(--press); }
.tline.callline .ttext { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.tline.callline .ctxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tline.callline:not(:has(.cback)) { padding-right: 12px; }
.tline.callline .ttext .icon { color: var(--accent); }
.tline.callline time { color: var(--text-3); font-size: 11px; margin-left: 4px; }
.tline.callline.missed .ttext, .tline.callline.missed .ttext .icon { color: var(--danger); }
.tline.callline.dim .ttext .icon { color: var(--text-3); }
.tline.callline .cback { flex: none; margin: 0; font-size: 11px; color: var(--accent); border: 0; padding: 3px 9px; border-radius: 12px; background: rgba(159, 232, 112, .1); }
/* A sticker steps out of its card; its time sits under it in a small pill. */
.mcard.stickercard { padding: 2px 0 0; }
.mcard.stickercard .mfoot { margin-top: 2px; }
.mrow:not(.mine) .mcard.stickercard .mfoot { justify-content: flex-start; }
.mcard.stickercard .mmeta { margin: 0; padding: 1px 7px; border-radius: 9px; background: rgba(9, 15, 10, .85); box-shadow: 0 0 0 1px var(--gb); }
.mrow:not(.mine) .mcard.stickercard .mmeta { margin-left: 0; }
.mcard.stickercard .mname { margin-left: 2px; }
.mrow:not(.mine) .mcard.stickercard.first::before { display: none; }
/* A file without a caption: the time on its own short line, at the right. */
.mfoot.end { justify-content: flex-end; }


/* ---- redesign: voice effects, calls, keypad ---- */
/* (fx) */


/* ---- end of redesign areas ---- */


/* ---- account: email, sessions, admin mail ---- */
/* Errors under a field (role=alert) and the password strength meter. */
.ferr { color: var(--danger); font-size: 12.5px; margin: -4px 4px 0; line-height: 1.35; }
.ferr:empty { display: none; }
.input[aria-invalid=true], .pwbox .input[aria-invalid=true] { border-color: rgba(224, 87, 79, .6); }
.input[aria-invalid=true]:focus { box-shadow: 0 0 0 3px var(--danger-dim); }
.pwmeter { display: flex; align-items: flex-start; gap: 10px; margin: -4px 4px 0; font-size: 12.5px; line-height: 1.35; color: var(--text-3); }
.pwm-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 104px; flex: none; margin-top: 6.5px; }
.pwm-bars i { height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .15s; }
.pwmeter[data-level="0"] .pwm-bars i.on { background: var(--text-3); }
.pwmeter.bad .pwm-bars i.on, .pwmeter[data-level="1"] .pwm-bars i.on { background: var(--danger); }
.pwmeter[data-level="2"] .pwm-bars i.on { background: var(--amber); }
.pwmeter[data-level="3"] .pwm-bars i.on, .pwmeter[data-level="4"] .pwm-bars i.on { background: var(--accent); box-shadow: 0 0 8px -2px var(--accent-glow); }
.pwmeter.bad .pwm-t, .pwmeter[data-level="1"] .pwm-t { color: var(--danger); }
.pwmeter[data-level="2"] .pwm-t { color: var(--amber); }
.pwmeter[data-level="3"] .pwm-t, .pwmeter[data-level="4"] .pwm-t { color: var(--accent); }
/* Link-like buttons in the e-mail sheet, as on the sign-in screens (.authlink). */
.linkbtn { color: var(--accent); font-weight: 500; font-size: 13.5px; min-height: 32px; padding: 4px 0; text-align: left;
  text-decoration-color: rgba(159, 232, 112, .35); text-underline-offset: 3px; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:disabled { color: var(--text-3); text-decoration: none; cursor: default; }
.acc { color: var(--accent); }

/* A 6-digit code: one field drawn as six cells (3 + 3, like the letter). */
.otp { position: relative; cursor: text; }
.otp-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 4px repeat(3, minmax(0, 1fr)); gap: 8px; }
.otp-c:nth-child(4) { grid-column-start: 5; }
.otp-c { height: 56px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center;
  font: 600 24px/1 var(--mono); color: var(--text); transition: border-color .12s, box-shadow .12s, background-color .12s; }
.otp-c.full { border-color: var(--line-2); background: var(--surface-2); }
.otp-c.cur { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(159, 232, 112, .08); }
.otp-c.cur:empty::after { content: ""; width: 2px; height: 26px; border-radius: 1px; background: var(--accent); animation: otpblink 1s steps(1) infinite; }
@keyframes otpblink { 50% { opacity: 0; } }
.otp.bad .otp-c { border-color: rgba(224, 87, 79, .6); }
.otp.bad .otp-c.cur { box-shadow: 0 0 0 3px var(--danger-dim); }
.otp-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; color: transparent; background: transparent; caret-color: transparent; }
@media (prefers-reduced-motion: reduce) { .otp-c.cur:empty::after { animation: none; } }
:where(:root.eco) .otp-c.cur:empty::after { animation: none; }

/* The e-mail sheet. */
.mailsheet { gap: 12px; }
.mailsheet .lead { margin: 0 2px; }
.mailnow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.mailnow .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mailnow .dim { font-size: 12px; }
.mailnow > .icon { color: var(--accent); flex: none; }
.mailsent { line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; padding: 0 2px; }
.mailsent b { color: var(--text); font-weight: 600; }
.mailsent .dim { font-size: 12px; }
.mailsent .hint { margin-top: 6px; }
.mailsheet .hint { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.mailnote:empty { display: none; }
.mailacts { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -2px; }

/* «Password & account»: the «Email» row. A dot on the tile while no e-mail is
   bound (also on the profile's «Password & account» row). */
.mailrow .mailaddr { display: flex; min-width: 0; }
.mailrow .mailpend { display: block; }
.mailrow .mailaddr span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailrow .mailcta { white-space: nowrap; }
.mailrow .hint { overflow-wrap: anywhere; }
.mailrow .mailok { color: var(--accent); flex: none; white-space: pre; }
.setting.todo > .sico { position: relative; }
.setting.todo > .sico::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 8px var(--accent-glow); }

/* Two cards without titles on «Password & account»: apart, the red one last. */
.accpage .card.group + .card.group { margin-top: 14px; }

/* Sessions. */
.sesscard .empty { padding: 22px 8px; }
.sessrow .sesstitle { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.sessrow .sessname { min-width: 0; overflow-wrap: anywhere; }
.sessrow .sesstitle .tag { flex: none; font-weight: 500; }
.sessrow .btn.small { flex: none; }
.sess-on { color: var(--accent); }
.sess-on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 5px 1px 0; vertical-align: middle; box-shadow: 0 0 6px var(--accent-glow); }
.sessnone { margin: 0 8px; }

/* Admin: people (the address, a reset code under the details), the code, mail. */
.adm-top, .adm-mailwrap { display: contents; }
.adm-row .adm-mail { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-row > .btn.adm-reset { grid-column: 2 / 4; grid-row: auto; justify-self: start; margin-top: 8px; }
.adm-reset .icon { color: var(--text-3); }
.adm-code { font-size: 40px; font-weight: 600; letter-spacing: .14em; text-align: center; color: var(--accent); padding: 18px 8px; border-radius: 16px;
  background: var(--sheen), var(--surface-2); border: 1px solid var(--line); text-shadow: 0 0 14px rgba(159, 232, 112, .25); user-select: all; -webkit-user-select: all; }
.adm-code.long { font-size: 27px; letter-spacing: .06em; padding: 20px 6px; white-space: nowrap; }
.adm-codettl { text-align: center; color: var(--text-2); font-size: 13px; margin-top: -2px; }
.adm-howto { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.adm-mailstate { display: flex; flex-direction: column; gap: 12px; }
.adm-mailstate .adm-note { margin: 0; }
.adm-mailtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.adm-st { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600; }
.adm-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.adm-st.ok { background: var(--accent-dim); color: var(--accent); }
.adm-st.ok::before { box-shadow: 0 0 8px var(--accent-glow); }
.adm-st.bad { background: var(--danger-dim); color: var(--danger); }
.adm-st.off { background: var(--surface-3); color: var(--text-2); }
.adm-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.adm-kv > span:nth-child(odd) { color: var(--text-3); }
.adm-kv > span:nth-child(even) { min-width: 0; overflow-wrap: break-word; }
.adm-kv .mono { font-size: 12.5px; overflow-wrap: anywhere; }
.adm-kv .bad { color: var(--danger); }
.adm-mailerr { padding: 10px 12px; border-radius: 12px; background: var(--danger-dim); color: var(--danger); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.adm-mailerr b { font-weight: 600; }
.adm-mailerr .mono { color: var(--text); font-size: 12px; overflow-wrap: anywhere; line-height: 1.45; }
.adm-mailtest { padding-top: 14px; border-top: 1px solid var(--line); }
.adm-mailtest .btn .icon { color: var(--accent); }
.adm-mailres { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.adm-mailres:empty { display: none; }
.adm-mailres.ok { color: var(--accent); }
.adm-mailres.bad { color: var(--danger); }
.setting.adm-nudge { padding: 10px 12px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--accent-dim); }
.adm-mail > div:empty { display: none; }

/* ---------- evening light (evening.js) ----------
   One layer over everything that multiplies the colours by a warm tint
   (JS sets it by the strength): dark stays dark, white turns warm, blue
   loses most. It takes no touches. */
.evening { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; mix-blend-mode: multiply; background-color: #fff;
  transition: background-color 4s ease; }
.evrow .grow > .hint { margin-bottom: 8px; }
.evseg { margin: 0; }
.evseg button { height: 32px; font-size: 12.5px; }
/* «Interface colour» (theme.js): the chips under the words. */
.throw .grow > .hint { margin-bottom: 10px; }
.thcolors { gap: 8px; }
.thcolors .fxcolor { width: 36px; height: 36px; }
.thcolors .fxcolor.orig { width: auto; }
.thcolors .fxcolor i { width: 22px; height: 22px; }

/* ---------- moderation of the platform (stage 9) ---------- */
/* Explore: «don't suggest this» on a live card, quiet, before Listen. */
.xfoot .xhide { margin-left: auto; color: var(--text-3); }
.xfoot .xhide:hover { color: var(--text-2); }
/* The wave: muted by a moderator — the note over the people and the pill
   where the talk button would be. */
.wnote.card.wmuted .icon:first-child { color: var(--amber); }
.wstatus.wmutedst, .wstatus.wmutedst .icon { color: var(--amber); }
.prow.muted .sub { color: var(--amber); }
.wunshown { margin-top: 6px; }
.wmutes { flex-wrap: wrap; }
/* The journal (journal.js): a row per step, the latest first. */
.journal { display: flex; flex-direction: column; }
.jrow .title { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.jrow .sub { white-space: normal; overflow-wrap: anywhere; }
.jrow > .sico { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.jmore { align-self: center; margin: 10px 0 4px; }
.jempty { padding: 24px 8px; }
.wjournal .journal { max-height: 60vh; overflow-y: auto; }
/* Reports with a status: the filter, the actions under the details. */
.adm-rfilter { margin: 4px 0 12px; }
.adm-row .adm-racts { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.adm-row .adm-closed { grid-column: 2 / 4; }
/* What a report kept (admin.js evidence): a text as it was, a recording. */
.adm-row .adm-evidence { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; }
.adm-ev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.adm-evtext { flex-basis: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.adm-evaudio { height: 34px; max-width: 100%; }
/* The report sheet (report.js): the chosen category looks chosen. */
.rcats .pill[aria-pressed="true"] { background: linear-gradient(rgba(159, 232, 112, .16), rgba(159, 232, 112, .07)); color: var(--accent); border-color: var(--accent-line); font-weight: 600; }
.rhelp { color: var(--amber); }
/* «People» on a walkie: who was there lately and left (views.js). */
.precent { margin-top: 10px; }
.adm-report[data-status="dismissed"] .adm-name, .adm-report[data-status="resolved"] .adm-name { color: var(--text-2); }
.hiddenlist .row { gap: 12px; }
.hiddenlist .hiddenopen { text-align: left; min-width: 0; }

/* A wall (chatMode «hosts» or «comments»): for a reader the composer goes
   and one small line over the PULSE footer says what this is. */
.tcomposer.readonly { display: none; }
.twall { flex: none; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 8px 14px 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); opacity: .85; }
.twall .icon { flex: none; }

/* A wall with comments: the button under a post, and its thread. */
.mcomm { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.mcomm .icon { color: var(--amber); }
.mcomm:hover { color: var(--text); border-color: var(--line-2); }
.thread { gap: 10px; }
.thpost { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.thwho { font-size: 12.5px; color: var(--amber); font-weight: 600; }
.thtext { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30vh; overflow-y: auto; }
.thlist { display: flex; flex-direction: column; gap: 2px; max-height: 45vh; overflow-y: auto; }
.throw { display: flex; gap: 8px; align-items: flex-start; padding: 8px 2px; border-top: 1px solid var(--line); }
.throw:first-child { border-top: 0; }
.throw .grow { flex: 1; min-width: 0; }
.thmeta { font-size: 12px; color: var(--text-3); }
.thmeta b { color: var(--text-2); font-weight: 600; }
.thbody { white-space: pre-wrap; overflow-wrap: anywhere; }
.throw.deleted .thbody { color: var(--text-3); font-style: italic; }
.thempty { color: var(--text-3); font-size: 13.5px; padding: 6px 2px; }
.thform { display: flex; gap: 8px; align-items: flex-end; }
.thform[hidden] { display: none; }
.thinput { flex: 1; min-width: 0; resize: none; max-height: 120px; }
.thform .iconbtn, .thform .thsend { flex: none; }
.thmic { color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; }
.thattach { color: var(--text-2); }
/* A comment's parts: what it answers, its photo or voice, «Reply». */
.thquote { display: flex; align-items: center; gap: 5px; max-width: 100%; margin: 4px 0 2px; padding: 3px 8px; border: 0; border-left: 2px solid var(--amber);
  border-radius: 4px; background: color-mix(in srgb, var(--amber) 8%, transparent); color: var(--text-2); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.thquote b { color: var(--amber); font-weight: 600; flex: none; }
.thquote span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thquote .icon { flex: none; color: var(--amber); }
.thmedia { position: relative; display: block; width: min(100%, 260px); margin: 5px 0 3px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; }
.thmedia .fthumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.thmedia .fplay { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; }
.thfrow { margin: 5px 0 3px; }
.thvoice { margin: 5px 0 3px; max-width: 300px; }
.thacts { display: flex; gap: 14px; margin-top: 3px; }
.thact { padding: 2px 0; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.thact:hover { color: var(--text); }
.throw.flash { animation: mflash 1.6s ease-out; border-radius: 10px; }
/* Above the field: the comment answered, the file attached, the recording. */
.threply, .thfile { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 3%, transparent); font-size: 12.5px; }
.threply[hidden], .thfile[hidden], .threc[hidden] { display: none; }
.threply .grow, .thfile .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.threply b, .thfile b { color: var(--amber); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threply span, .thfile span { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threply > .icon { color: var(--amber); flex: none; }
.thfthumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.thficon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); color: var(--text-2); }
.threc { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.threcdot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: blink 1s infinite; flex: none; }
.threctime { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }
.threchint { flex: 1; min-width: 0; color: var(--text-3); font-size: 12.5px; }

/* ---------- a wall's posts (chat.js renderPost) ----------
   As calm as the app's sheets: one opaque surface with the sheet's soft
   top light and a fine edge, no glow; the author as a menu row — a letter
   in a soft tinted tile, the name, and «Host · 20:29» in grey under it;
   pictures with a hairline, the text in the system font; a fine line, then
   flat actions in grey. Colour is kept for what it means: green for the
   host's tile and the link-like words, red for a heart that is yours. */
.wpost { display: flex; padding: 4px 0; }
.wpost[hidden] { display: none; }
.wpost + .wpost { margin-top: 10px; }
.chatx .mcard.pcard { position: relative; flex: 1; max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #161b18, var(--surface) 140px); box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .8); font-family: var(--font); }
.wpost.fresh .pcard { animation: pfresh .35s var(--ease) both; }
@keyframes pfresh { from { opacity: 0; transform: translateY(8px); } }
.pcard .phead { display: flex; align-items: center; gap: 12px; padding: 14px 8px 12px 16px; }
.pcard .pmark { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 600 16px var(--font);
  color: var(--text-2); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.pcard .pmark.host { color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px rgba(159, 232, 112, .12); }
.pcard .pwho { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pcard .pname { min-width: 0; font: 500 16px/1.25 var(--font); color: var(--text); }
.pcard .pname bdi { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font: 400 13px/1.35 var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pcard .pmeta > * + *::before { content: "·"; margin-right: 6px; color: var(--text-3); }
.pcard .phost { color: var(--accent); font-weight: 500; }
.pcard .ppinned { display: inline-flex; align-items: center; gap: 3px; color: var(--amber); }
.pcard .ppinned .icon { margin-right: 1px; }
.pcard .ppinned::before { margin-right: 6px !important; }
.pcard .pdots { width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; display: grid; place-items: center; background: none; color: var(--text-3); cursor: pointer;
  transition: background-color .15s, color .15s; }
.pcard .pdots:hover, .pcard .pdots:active { background: var(--surface-3); color: var(--text-2); }
/* Body. */
.pcard .pbody { padding: 0 16px; }
.pcard .pbody .mtext { font: 400 15.5px/1.55 var(--font); color: var(--text); }
.pcard.hasmedia .pbody { padding-top: 12px; }
.chatx .pcard .fmedia.pmedia { width: calc(100% - 24px); margin: 0 12px; max-height: 70vh; border-radius: 14px; background: #050706; box-shadow: 0 0 0 1px var(--line); }
/* An album (chat.js albumEl): photos and videos sent together, one post to
   swipe through: a slide a screen, its number in a dark chip, dots below,
   arrows for a mouse. A video in it plays as in a post. */
.chatx .pcard .palbum { position: relative; width: calc(100% - 24px); margin: 0 12px; max-height: 75vh; border-radius: 14px; overflow: hidden; background: #050706; box-shadow: 0 0 0 1px var(--line); }
.pcard .paltrack { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.pcard .paltrack::-webkit-scrollbar { display: none; }
.pcard .palslide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.chatx .pcard .palslide > .fmedia.pmedia { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto !important; }
.pcard .palslide > .fmedia:not(.pvideo) .fthumb { width: 100%; height: 100%; object-fit: cover; }
.pcard .palcount { position: absolute; top: 10px; right: 10px; z-index: 4; padding: 4px 9px; border-radius: 999px; pointer-events: none;
  background: rgba(0, 0, 0, .55); font: 500 12px/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; }
.pcard .paldots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 4; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pcard .paldots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: width .25s var(--ease), background-color .25s; }
.pcard .paldots i.on { width: 16px; background: #fff; }
.pcard .palbum:has(.pvideo.on) .paldots { opacity: 0; }
.pcard .palnav { position: absolute; top: 50%; z-index: 4; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .2s; }
.pcard .palnav.prev { left: 10px; }
.pcard .palnav.next { right: 10px; }
.pcard .palnav.next .icon { transform: scaleX(-1); }
.pcard .palbum:hover .palnav:not(:disabled) { opacity: 1; }
.pcard .palnav:disabled { pointer-events: none; }
@media (hover: none) { .pcard .palnav { display: none; } }
/* A video plays in the card (files.js postVideo): its frame, a plain dark
   ▶ in the middle, its size in a chip; the player's own controls once it
   plays. With no preview from the sender's device, a dark screen until the
   video shows its first frame. */
.pcard .pvideo { isolation: isolate; }
.pcard .pvideo .fthumb { position: absolute; inset: 0; z-index: 1; transition: opacity .25s; }
.pcard .pvvideo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.pcard .pvideo.bare { background: linear-gradient(180deg, #121614, #070908); }
.pcard .pvideo.bare:not(.framed):not(.on) .pvvideo { opacity: 0; }
.pcard .pvideo.on .fthumb { opacity: 0; }
.pcard .pvideo.on .pvvideo { z-index: 2; }
.pcard .pvplay { position: absolute; left: 50%; top: 50%; z-index: 3; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 0; border-radius: 50%; display: grid; place-items: center;
  color: #fff; cursor: pointer; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .15s var(--ease), opacity .2s; }
.pcard .pvplay > .icon { width: 24px; height: 24px; margin-left: 3px; }
.pcard .pvplay:active { transform: scale(.94); }
.pcard .pvring { position: absolute; inset: -3px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 65%, rgba(255, 255, 255, .85));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); }
.pcard .pvideo.loading .pvring { opacity: 1; animation: pvspin .9s linear infinite; }
@keyframes pvspin { to { transform: rotate(1turn); } }
.pcard .pvideo .fbadge { left: 10px; top: auto; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border: 0; border-radius: 999px;
  font: 500 12px var(--font); color: #fff; background: rgba(0, 0, 0, .55); transition: opacity .2s; }
.pcard .pvideo.on .pvplay, .pcard .pvideo.on .fbadge { opacity: 0; pointer-events: none; }
/* A post's text (chat.js postText): a headline, paragraphs a breath apart,
   lists with a small dot hung in the margin. */
.pcard .ptext { display: flex; flex-direction: column; gap: 10px; font: 400 15.5px/1.55 var(--font); color: #dfe5e1; overflow-wrap: anywhere; text-wrap: pretty; }
.pcard .ptitle { margin: 0; font: 600 17px/1.35 var(--font); color: var(--text); letter-spacing: -.01em; text-wrap: balance; }
.pcard .ppara { margin: 0; }
.pcard .pitems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pcard .pitems li { display: grid; grid-template-columns: 1.2em minmax(0, 1fr); column-gap: 6px; }
.pcard .pbul { width: 5px; height: 5px; margin: calc(.775em - 2.5px) 0 0; justify-self: center; border-radius: 50%; background: var(--text-3); }
.pcard .pmk { justify-self: center; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.pcard .ptext .pemo { vertical-align: -3px; }
.pcard .ptext.fold { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pcard .pread { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: 500 14px var(--font); color: var(--accent); }
.pcard .pread .icon { transition: transform .2s var(--ease); }
.pcard .pread[aria-expanded="true"] .icon { transform: rotate(180deg); }
.pcard .pvoice { padding: 0 16px; }
.pcard .pfile { padding-top: 0; }
.pcard .psticker { display: flex; justify-content: center; padding: 4px 0; }
.pcard .mquote { margin: 0 16px 10px; }
/* Foot: a fine line, then flat actions in grey — as a sheet's rows. */
.pcard .pdiv { height: 1px; margin: 14px 16px 0; background: var(--line); }
.pcard .pfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 10px 8px; }
.pcard .pfoot .mreacts { margin: 0 0 0 4px; }
.pcard .pheart, .pcard .mcomm { height: 38px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px;
  background: none; color: var(--text-2); font: 500 14px var(--font); font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: none;
  transition: background-color .15s, color .15s, transform .12s var(--ease); }
.pcard .pheart:hover, .pcard .mcomm:hover { background: var(--surface-3); color: var(--text); }
.pcard .pheart:active, .pcard .mcomm:active { transform: var(--press); }
.pcard .pheart.on { color: #ff8095; }
.pcard .mcomm .icon { color: var(--text-2); }
.pcard .mcomm:hover .icon { color: var(--text); }
/* How many saw the post (store/views.go): an eye and the count, at the end. */
.pcard .pviews { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 0 8px; font: 400 13px var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pcard .pviews[hidden] { display: none; }
/* A deleted post: a quiet line. */
.wpost.gone .pcard { padding: 14px 16px; background: var(--surface); box-shadow: none; }
.pcard .mtext.deleted { font: italic 400 14px var(--font); color: var(--text-3); }
/* A wall's day: as a sheet's section, small grey capitals. */
.tlog.wallmode .tday { justify-content: center; margin: 14px 0 4px; gap: 0; font: 600 11.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tlog.wallmode .tday::before, .tlog.wallmode .tday::after { display: none; }
@media (prefers-reduced-motion: reduce) { .wpost.fresh .pcard { animation: none; } }

/* ---------- together in a chat (together.js) ---------- */
/* Reactions thrown: they float up from the corner and fade. */
.tgfloats { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.tgfloat { position: absolute; bottom: 8px; width: 34px; height: 34px; margin-left: -17px; animation: tgfloat 2.6s cubic-bezier(.2, .6, .4, 1) forwards; }
.tgfloat img { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 0 6px var(--glow, rgba(255, 255, 255, .35))); }
@keyframes tgfloat {
  0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 0; }
  12% { transform: translate(calc(var(--dx) * .1), -30px) scale(1.15) rotate(calc(var(--rot) * .2)); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--dx), -62vh) scale(.9) rotate(var(--rot)); opacity: 0; }
}
.tgfloat.still { animation: tgpop 1.2s ease-out forwards; bottom: 40px; }
@keyframes tgpop { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
.tgfling { position: absolute; right: 8px; bottom: 10px; z-index: 6; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent-line); background: rgba(5, 9, 6, .82); box-shadow: 0 0 14px -6px var(--accent-glow); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tgfling img { width: 24px; height: 24px; image-rendering: pixelated; pointer-events: none; }
.tgfling:active { transform: var(--press); }
.tgpick { position: absolute; right: 8px; bottom: 58px; z-index: 7; display: grid; grid-template-columns: repeat(4, 38px); gap: 4px; padding: 6px; border-radius: 14px;
  border: 1px solid var(--accent-line); background: rgba(5, 9, 6, .94); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .8); }
.tgpick button { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.tgpick button:active { background: rgba(159, 232, 112, .12); }
.tgpick img { width: 26px; height: 26px; image-rendering: pixelated; }
/* Who else is here: a mark in the corner, and the radar's sweep. */
.tghere { position: absolute; right: 8px; top: 8px; z-index: 6; display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px;
  border: 1px solid var(--accent-line); background: rgba(5, 9, 6, .8); color: var(--accent); font: 600 11px var(--mono); }
.tghere i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: blink 1.4s infinite; }
.tgradar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* The shared pulse: a glow from the bottom; together, it beats in both colours. */
.tgpulse { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tgpulse b { position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 100%, rgba(159, 232, 112, .22), transparent 70%); opacity: .6; transition: opacity .3s; }
.tgpulse.both b { background: radial-gradient(60% 40% at 30% 70%, var(--peer, rgba(140, 216, 255, .5)), transparent 70%), radial-gradient(60% 40% at 70% 70%, var(--accent-glow), transparent 70%); opacity: .55; }
.tgpulse.beat b { animation: tgbeat .9s ease-out; }
@keyframes tgbeat { 0% { opacity: .5; transform: scale(1); } 12% { opacity: 1; transform: scale(1.04); } 30% { opacity: .65; } 42% { opacity: .9; } 100% { opacity: .5; transform: scale(1); } }
.tgpulse.still b, .tgpulse.still.beat b { animation: none; opacity: .8; }
.tgpnote { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: 80%; text-align: center; font: 12px var(--font); color: var(--text-2);
  padding: 4px 10px; border-radius: 12px; background: rgba(5, 9, 6, .78); }
.tgpulse.both .tgpnote { color: var(--accent); }
/* A knock here: the chat jolts with each beat. */
.tframe.tgknocked { animation: tgknock .16s ease-out; }
@keyframes tgknock { 0% { transform: translate(0, 0); } 30% { transform: translate(-3px, 1px); } 60% { transform: translate(2px, -1px); } 100% { transform: translate(0, 0); } }
/* The door to knock on. */
.tgknock { align-items: center; gap: 14px; padding: 8px 0 14px; }
.tgdoor { width: 150px; height: 190px; border-radius: 18px 18px 8px 8px; display: grid; place-items: center; color: var(--amber);
  background: linear-gradient(#5a3a22, #3c2615); border: 2px solid #7a5232; box-shadow: inset 0 0 0 8px rgba(0, 0, 0, .18), 0 0 24px -10px rgba(255, 207, 110, .5);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.tgdoor.hit { animation: tgdoor .15s ease-out; }
@keyframes tgdoor { 0% { transform: scale(1); } 40% { transform: scale(.96) rotate(-1deg); } 100% { transform: scale(1); } }
.tgkhint { text-align: center; }

/* ---------- the air in the chat (airfx.js) ---------- */
/* Tuning static: chunky snow over the whole chat, a moment. */
.afsnow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; image-rendering: pixelated; mix-blend-mode: screen; }
.chatx.tuning .tframe { animation: afjolt .18s steps(2) 2; }
@keyframes afjolt { 0% { transform: translateX(0); } 50% { transform: translateX(-2px); } 100% { transform: translateX(1px); } }
/* The voice as a ribbon on the grid. */
.afvoice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
/* The channel's pulse along the band, behind its words. */
.afecg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- weather outside (weather.js) ---------- */
.wxlayer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.wxchip { position: absolute; left: 10px; top: 8px; z-index: 6; height: 22px; padding: 0 8px; border-radius: 11px; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line-2); background: rgba(5, 9, 6, .78); color: var(--text-2); font: 600 11px var(--mono); }
.tframe.wxflash .term { filter: brightness(1.35); transition: filter .05s; }

/* A part of a menu (the chat's ⋯): its name over its rows. */
.menu .menusec { padding: 14px 4px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.menu .menusec:first-child { padding-top: 0; }

/* «What the chat can do» (guide.js). */
.guidelead { margin: 0 2px 4px; color: var(--text-2); font-size: 13.5px; }
.guide .guiderow { cursor: default; }
.guide .guiderow .hint b { color: var(--text-2); font-weight: 600; }
.guidecmds { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 12px 14px; }
.guidecmd { display: contents; }
.guidecmd code { font: 600 13px var(--mono); color: var(--accent); }
.guidecmd span { font-size: 13px; color: var(--text-2); }
.guide > .btn.block { margin-top: 14px; }
/* The emergency switches (admin.js lockdownCard). */
.adm-lock { margin-top: 12px; }
.adm-lockhead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.adm-lock .adm-switch { padding-left: 0; padding-right: 0; }
/* The empty walkie (radio.js howto): three ways onto the air, then how it
   works, folded. */
.howto .howto-lead { margin: 2px 0 12px; color: var(--text-2); }
.howto .howgo + .howgo, .howto .howgo-hint + .howgo { margin-top: 8px; }
.howto .howgo-hint { margin: 6px 2px 4px; font-size: 13px; color: var(--text-3); }
.howto .howto-more { margin-top: 12px; }
.howto .howto-more summary { cursor: pointer; color: var(--text-2); font-size: 14px; padding: 6px 0; }
/* Between the short phones (max-height: 760px, below) and the tall ones the
   whole card does not fit over the big button: the line the button repeats
   («I was called · dial a frequency» = SET FREQUENCY) and the hint give way. */
@media (max-height: 880px) {
  .radio .howto .howgo[data-act=dial], .radio .howto .howgo-hint { display: none; }
}
/* And whatever the look puts above it, the card gives way to the big button,
   never the other way round: on a short phone it scrolls inside itself. */
.radio > .howto:not([hidden]) { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.radio > .howto:not([hidden])::-webkit-scrollbar { display: none; }
.radio:has(> .howto:not([hidden])) > .stage { flex-shrink: 0; }

/* ---------------------------------------------------------------- the dial («Табло», dial.js) */
.dial { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.dlcd { position: relative; overflow: hidden; padding: 12px 16px 10px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, rgba(159, 232, 112, .07), transparent 60%), linear-gradient(#0f1311, #0b0e0c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.dtop { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; min-height: 14px; }
.dtop .dband { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtop .dfmt { color: var(--text-2); white-space: nowrap; }
.dfreq { font-size: 50px; line-height: 1.08; font-weight: 500; letter-spacing: .02em; color: var(--accent); text-shadow: 0 0 22px rgba(159, 232, 112, .25); font-variant-numeric: tabular-nums; text-align: center; }
.dname { display: block; width: 100%; text-align: center; font-size: 16px; font-weight: 600; color: var(--text); min-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dname:disabled { color: var(--text-3); font-weight: 500; font-size: 14px; }
.dtick { margin-top: 4px; height: 18px; overflow: hidden; white-space: nowrap; font-size: 12px; letter-spacing: .06em; color: var(--text-2); text-align: center; }
.dtick span { display: inline-block; }
.dtick.run { text-align: left; }
.dtick.run span { padding-left: 100%; animation: dtick 12s linear infinite; }
@keyframes dtick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.dlcd.live .dtick { color: var(--accent); }
.dlcd.music .dtick { color: var(--violet); }
.dlcd.static .dfreq { color: #4f6a42; text-shadow: none; }
.dlcd.static::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 4px); animation: dstatic .35s steps(3) infinite; }
@keyframes dstatic { 0% { transform: translate(0, 0); } 33% { transform: translate(-2px, 1px); } 66% { transform: translate(1px, -1px); } 100% { transform: translate(0, 0); } }
.dchips { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.dchips .pill.here:not(.on) { border-color: var(--line-2); color: var(--text); }
.dchips .dcount { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-dim); color: var(--accent); font-size: 11px; display: inline-grid; place-items: center; }
.dscale { height: 92px; }
.dscale:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.dctl { display: flex; align-items: center; gap: 6px; }
.dctl .iconbtn { border: 1px solid var(--line); background: var(--surface); }
.dctl .dscan.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.dpre { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dpre .dp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3); min-width: 0; -webkit-touch-callout: none; user-select: none; }
.dpre .dp b { font-size: 12px; color: var(--text-2); }
.dpre .dp .dpf { font-size: 10px; letter-spacing: .02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpre .dp.set { border-color: var(--accent-line); }
.dpre .dp.set b, .dpre .dp.set .dpf { color: var(--accent); }
.dpre .dp:active { transform: var(--press); }
@media (prefers-reduced-motion: reduce) { .dtick.run span { animation: none; padding-left: 0; } .dlcd.static::after { animation: none; } }

/* ---------------------------------------------------------- the air locked, its countdown (radio.js) */
/* The last seconds of the air over the display's digits, in the look's own
   screen colours (the kit's --k-* where the look has them). */
.txcount { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 10px; border-radius: inherit; text-align: center; pointer-events: none;
  background: color-mix(in srgb, var(--k-scr, #0b0e0c) 94%, transparent); color: var(--k-text, var(--text)); animation: txcin .18s var(--ease) both; }
.txcount[hidden] { display: none; }
.txc-t { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--k-dim, var(--text-2)); }
.txc-n { font: 700 clamp(40px, 15cqw, 76px) / 1 var(--mono); font-variant-numeric: tabular-nums; color: var(--k-acc, var(--accent));
  text-shadow: 0 0 22px color-mix(in srgb, var(--k-acc, var(--accent)) 45%, transparent); }
.txc-u { font-size: 11.5px; color: var(--k-dim, var(--text-3)); }
.txcount[data-kind=quiet] .txc-n { color: var(--k-text, var(--text)); text-shadow: none; }
.txcount.urgent .txc-n { color: #ff6a5c; text-shadow: 0 0 24px rgba(255, 90, 76, .55); animation: txcbeat 1s ease-out infinite; }
@keyframes txcin { from { opacity: 0; transform: scale(.96); } }
@keyframes txcbeat { 0% { transform: scale(1.12); } 40%, 100% { transform: scale(1); } }

/* The lock above the talk key: held, a track the finger slides up to the
   lock (--pull 0…1); locked, a pill that says how to stop. */
.txlock { position: fixed; z-index: 60; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; color: var(--k-text, var(--text)); --pull: 0; }
.txlock[hidden] { display: none; }
.txl-lock { order: -1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--k-scr, #101411) 88%, transparent); border: 1px solid color-mix(in srgb, var(--k-acc, var(--accent)) calc(25% + 60% * var(--pull)), transparent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 calc(18px * var(--pull)) color-mix(in srgb, var(--k-acc, var(--accent)) 55%, transparent);
  color: color-mix(in srgb, var(--k-acc, var(--accent)) calc(40% + 60% * var(--pull)), var(--k-text, var(--text))); transform: scale(calc(.9 + .15 * var(--pull))); }
.txl-track { position: relative; width: 24px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--k-scr, #101411) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--k-text, #fff) 14%, transparent); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.txl-track::before { content: ""; position: absolute; left: 50%; top: 8px; width: 8px; height: 8px; margin-left: -4px; border: solid color-mix(in srgb, var(--k-text, #fff) 55%, transparent);
  border-width: 2px 0 0 2px; rotate: 45deg; }
.txl-dot { position: absolute; left: 50%; bottom: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--k-acc, var(--accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--k-acc, var(--accent)) 60%, transparent); translate: 0 calc(-22px * var(--pull)); }
.txlock:not(.on) .txl-say { display: none; } /* held: the line under the key says it */
.txl-say { order: -2; padding: 4px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--k-scr, #101411) 90%, transparent); box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.txlock.on { flex-direction: row; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 22px; background: color-mix(in srgb, var(--k-scr, #101411) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--k-acc, var(--accent)) 70%, transparent); box-shadow: 0 4px 16px rgba(0, 0, 0, .5), 0 0 16px color-mix(in srgb, var(--k-acc, var(--accent)) 30%, transparent); }
.txlock.on .txl-track { display: none; }
.txlock.on .txl-lock { order: 0; width: 32px; height: 32px; transform: none; }
.txlock.on .txl-say { order: 1; padding: 0; background: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .txcount, .txcount.urgent .txc-n { animation: none; } }

/* A guest (guest.js): until when the pass lasts, and «Save account» on top. */
.profile-head .guestmark { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-dim); color: var(--text-2); font-family: inherit; font-size: 13px; }
.guestsave { padding: 16px; margin: 4px 0 18px; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); }
.guestsave .gs-t { font-size: 16px; font-weight: 700; }
.guestsave .gs-d { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.savegst .field .hint { margin-top: 4px; }
.savegst .field .hint { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }

/* ---- Events (gathering.js): creating one, links for guests, the organizer's console ---- */
.gtchips { display: flex; gap: 8px; flex-wrap: wrap; }
.gtchip { min-width: 56px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.gtchip.on { border-color: var(--accent-line); background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.gtagree { margin: 2px 0; }
.gtlinkssheet .section-title { margin-top: 10px; }
.gtmade { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.gtmade .qrbox { align-self: center; }
.gtlinks { display: flex; flex-direction: column; gap: 6px; }
.gtlink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.gtlink .hint, .gtguests { font-size: 12.5px; color: var(--text-3); }
.gtconsole { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.gtsum .gtname { font-size: 18px; font-weight: 700; }
.gtsum .gtname .hint { font-size: 13px; font-weight: 400; color: var(--text-3); }
.gtcounts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.gtcounts b { color: var(--text); font-variant-numeric: tabular-nums; }
.gtair { padding: 12px 14px; }
.gtonair { display: flex; align-items: center; gap: 12px; }
.gtonair .gtlbl { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.gtonair b { font-size: 17px; }
.gtonair.idle { color: var(--text-3); }
.gtclock { color: var(--text-2); font-size: 14px; }
.gtqueue { margin-top: 8px; font-size: 13px; }
.gtdot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); flex: none; }
.gtdot.live, .gtdot.talking { background: #ff5a4f; box-shadow: 0 0 0 4px #ff5a4f33; animation: gtpulse 1.2s ease-in-out infinite; }
.gtdot.queued { background: #ffb547; }
.gtdot.on { background: var(--accent); }
.gtdot.away { background: #8a93a6; }
.gtdot.off { background: transparent; border: 1.5px solid var(--text-3); }
@keyframes gtpulse { 50% { box-shadow: 0 0 0 7px #ff5a4f00; } }
.gtfilters .gtn { opacity: .7; font-variant-numeric: tabular-nums; }
.gtsearch { height: 40px; }
.gtpeople { display: flex; flex-direction: column; gap: 2px; }
.gtperson { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border-radius: 12px; text-align: left; color: var(--text); }
.gtperson:active { background: var(--surface); }
.gtperson[data-state=talking] { background: #ff5a4f14; }
.gtav { position: relative; flex: none; }
.gtav .gtdot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid var(--bg); }
.gtav .gtdot.off { border: 2px solid var(--bg); background: var(--text-3); opacity: .5; }
.gtpname { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.gtperson .hint { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.gtbadge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.gtbadge.org { background: #ffb54726; color: #ffcf80; }
.gtbadge.help { background: #a98bff26; color: #c9b6ff; }
.gtbadge.guest { background: var(--accent-dim); color: var(--accent); }
.gtmuted { color: #ffb547; }
.gtempty { padding: 16px 6px; }
.gtfoot { margin-top: 6px; }
.guestabout { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--accent-dim); color: var(--text); font-size: 14px; margin: 0 0 6px; }
.shguest { margin: 2px 0 6px; text-align: center; }
.sharex.gtlinkssheet { align-items: stretch; text-align: left; }
.gtlinkssheet .gtmade { align-items: center; text-align: center; }
.gtlinkssheet .gtmade .shlink, .gtlinkssheet .gtmade .shbtns { align-self: stretch; }
.gtlinkssheet .gtlink { text-align: left; }
/* The air's modes and the raised hands (gathering.js). */
.gtseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.gtmode { min-height: 40px; padding: 4px 6px; border-radius: 10px; font-size: 13px; line-height: 1.2; color: var(--text-2); }
.gtmode.on { background: var(--accent-dim); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-line); }
.gtmodehint { margin: 6px 2px 0; font-size: 12.5px; color: var(--text-3); }
.gthands { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; border-color: #ffb54766; }
.gthands .gtlbl { font-size: 12px; letter-spacing: .04em; color: #ffcf80; text-transform: uppercase; }
.gthand { display: flex; align-items: center; gap: 8px; }
.gtbadge.floor { background: #4fd18b26; color: #7ee3a8; }
.gtbadge.hand { background: #ffb54726; color: #ffcf80; }
/* Teams of an event (gathering.js, team.go). */
.gtteamshead { display: flex; align-items: center; justify-content: space-between; }
.gtteamadd { font-size: 13px; text-transform: none; letter-spacing: 0; }
.gtteams { display: flex; flex-direction: column; gap: 8px; }
.gtteam { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.gtteam .hint { font-size: 12.5px; color: var(--text-3); }
.gtteamair { color: #ff8a80; }
.gthere { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-color: #a98bff66; font-size: 14px; }
.gtnoteams { font-size: 12.5px; color: var(--text-3); }
.gtbadge.team { background: #a98bff26; color: #c9b6ff; }
/* The event pass (gathering.js, pass.go) and its codes in the administration. */
.gtpass { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.gtpass .hint { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.gtpass.on { border-color: #4fd18b66; color: var(--text); }
.gtpass.on > .icon { color: #7ee3a8; }
.gtpass.full { border-color: #ffb54788; }
.adm-passform { gap: 8px; }
.adm-passform input[type=number] { width: 80px; flex: none; }
.adm-codes { white-space: pre-wrap; user-select: all; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.adm-pass.used .title { color: var(--text-2); }
