/* ClickSpeak site styles.
   1. Tokens: colours (light, then dark), one spacing scale, one radius scale, control
      heights, the z-index scale and the popover shadow.
   2. Primitives, used by every page (markup helpers in src/routes/ui.rs):
      .btn (+ .btn-primary / .btn-secondary / .btn-danger, .btn-lg, .btn-block), .link-button,
      .dropdown + .popover, .menu / .menu-item / .menu-header / .menu-sep, .field / .input /
      .select / .field-row, .copybox, .tabs, .card, .badge, .alert, .crumb.
      An icon inside a .btn or .menu-item is the Phosphor svg (class "ic", aria-hidden) first,
      then the label in <span class="lbl">: the row is a flex row, so they always sit inline.
   3. Pages: landing, legal, login, admin, member page. */

:root {
  --bg: #ffffff; --surface: #ffffff; --fg: #111614; --muted: #5b6662; --line: #e3e8e6;
  --hover: rgba(0,0,0,.05); --code-bg: rgba(0,0,0,.05);
  --green: #2fbe29; --green-ink: #1b7f18; --on-accent: #ffffff;
  --danger: #c62a2f; --on-danger: #ffffff; --warn: #c58a0a;
  --focus: #1b7f18;
  --shadow-pop: 0 14px 32px -12px rgba(0,0,0,.28), 0 2px 6px -2px rgba(0,0,0,.08);
  /* landing illustration */
  --desk-a: #d9f3d5; --desk-b: #eef6f3; --desk-c: #dde8f6;
  --menubar: rgba(255,255,255,.72); --panel: rgba(246,246,246,.94); --panel-line: rgba(0,0,0,.08);
  --row-hi: rgba(10,100,255,.12); --solid: #f6f6f6; --seg: rgba(0,0,0,.06); --seg-on: #8e8e93; --text2: #6e6e73;
  /* ...on Windows 11 (flyout, taskbar) and GNOME (Adwaita window, top bar) */
  --win-flyout: #f3f3f3; --win-card: #fbfbfb; --win-line: rgba(0,0,0,.08); --win-sel: rgba(0,95,184,.12);
  --win-accent: #005fb8; --win-taskbar: rgba(238,241,246,.86); --win-hover: rgba(0,0,0,.06); --win-text2: #616161;
  --gtk-bg: #fafafa; --gtk-hb: #ebebeb; --gtk-line: rgba(0,0,0,.12); --gtk-btn: rgba(0,0,0,.08);
  --gtk-accent: #3584e4; --gtk-sel: rgba(53,132,228,.2); --gtk-text2: rgba(0,0,0,.55);

  /* one spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px;
  /* one radius scale */
  --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 14px; --r-pill: 999px;
  /* controls: buttons, inputs, selects and the copy box share these heights */
  --control-h: 40px; --control-h-lg: 46px;
  /* stacking */
  --z-raised: 2; --z-dropdown: 20;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1110; --surface: #151b19; --fg: #eef3f1; --muted: #9aa7a2; --line: #26332e;
    --hover: rgba(255,255,255,.07); --code-bg: rgba(255,255,255,.06);
    --green-ink: #5fd65a; --on-accent: #0d1110;
    --danger: #ff6b6f; --on-danger: #0d1110; --warn: #e5a50a;
    --focus: #5fd65a;
    --shadow-pop: 0 16px 36px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02);
    --desk-a: #12361a; --desk-b: #0f1a17; --desk-c: #14213a;
    --menubar: rgba(30,30,30,.6); --panel: rgba(40,40,42,.94); --panel-line: rgba(255,255,255,.08);
    --row-hi: rgba(10,132,255,.28); --solid: #2c2c2e; --seg: rgba(255,255,255,.07); --seg-on: #6e6e73; --text2: #98989d;
    --win-flyout: #2b2b2b; --win-card: #323232; --win-line: rgba(255,255,255,.08); --win-sel: rgba(96,205,255,.14);
    --win-accent: #60cdff; --win-taskbar: rgba(28,28,28,.86); --win-hover: rgba(255,255,255,.07); --win-text2: #c5c5c5;
    --gtk-bg: #242424; --gtk-hb: #303030; --gtk-line: rgba(255,255,255,.12); --gtk-btn: rgba(255,255,255,.1);
    --gtk-accent: #78aeed; --gtk-sel: rgba(53,132,228,.32); --gtk-text2: rgba(255,255,255,.55);
  }
}

/* ---- base ---- */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; }
.hint { font-size: 12.5px; color: var(--muted); }
/* Phosphor icons (inline SVG, routes/icons.rs): sized to the text around them. The 256 grid
   has 1/16 padding on each side, so 1.15em draws a glyph about as tall as the label. */
.ic { width: 1.15em; height: 1.15em; flex: none; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--sp-5); }
@media (max-width: 400px) { .wrap { padding: 0 var(--sp-4); } }
@media (max-width: 360px) { .wrap { padding: 0 var(--sp-3); } }

/* ---- .btn: one height, icon slot, three variants ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--control-h); max-width: 100%; padding: 6px var(--sp-4); margin: 0;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer; vertical-align: middle;
  -webkit-user-select: none; user-select: none;
}
.btn > .ic { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--green-ink); border-color: var(--green-ink); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--bg); border-color: var(--line); color: var(--fg); }
.btn-secondary:hover { background: var(--hover); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--on-danger); }
.btn-sm { min-height: 36px; padding: 4px 14px; white-space: nowrap; }
.btn-lg { min-height: var(--control-h-lg); padding: 8px var(--sp-5); font-size: 16px; border-radius: var(--r-lg); }
.btn-block { display: flex; width: 100%; }
/* A text-only action inside a row (Remove, Change): quiet until hovered. */
.link-button {
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: var(--sp-1); border-radius: var(--r-sm); text-decoration: underline; text-underline-offset: 2px;
}
.link-button:hover { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 0; }
.actions form { margin: 0; display: contents; }

/* ---- .dropdown (a native <details>) and its .popover ---- */
.dropdown { position: relative; font-size: 14px; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.trigger {
  display: flex; align-items: center; gap: var(--sp-2); min-height: 36px; padding: 0 var(--sp-3);
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
}
.trigger:hover, .dropdown[open] > .trigger { background: var(--hover); }
.trigger .caret { width: 12px; height: 12px; color: var(--muted); margin-left: auto; transition: transform .15s; }
.dropdown[open] > .trigger .caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .trigger .caret { transition: none; } }
.popover {
  position: absolute; top: calc(100% + var(--sp-1)); right: 0; z-index: var(--z-dropdown);
  min-width: 100%; max-width: calc(100vw - 2 * var(--sp-4));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
}
.dropdown-start > .popover { right: auto; left: 0; }

/* ---- .menu: rows of icon + label ---- */
.menu { padding: var(--sp-1); }
.menu form { margin: 0; }
.menu-item {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 36px; padding: var(--sp-2) var(--sp-3);
  font: inherit; font-size: 14px; line-height: 1.3; text-align: left; white-space: nowrap; text-decoration: none;
  color: var(--fg); background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.menu-item > .ic { color: var(--muted); }
.menu-item > .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); }
.menu-item:focus-visible { outline-offset: -2px; }
.menu-item[aria-current="true"] { font-weight: 600; }
.menu-item > .check { color: var(--green-ink); margin-left: auto; }
.menu-item.accent, .menu-item.accent > .ic { color: var(--green-ink); }
.menu-header { margin: 0; padding: var(--sp-2) var(--sp-3); color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.menu-sep { border: 0; border-top: 1px solid var(--line); margin: var(--sp-1) calc(-1 * var(--sp-1)); }

/* ---- forms: .field (label, control, hint), .input, .select, .field-row ---- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label { font-weight: 600; font-size: 14px; }
.input, .select {
  font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); min-height: var(--control-h); min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--sp-3);
}
.select { font-size: 14px; padding: 0 var(--sp-2); }
.select-sm { min-height: 32px; }
.input:focus-visible, .select:focus-visible { outline-offset: 1px; }
.select:disabled { opacity: .6; }
.field-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: stretch; }
.field-row > .input { flex: 1 1 14rem; }

/* ---- .copybox: a line of code and its Copy button, one height ---- */
.copybox { display: flex; gap: var(--sp-2); align-items: stretch; min-width: 0; }
.copybox code {
  flex: 1; min-width: 0; display: flex; align-items: center; min-height: var(--control-h);
  font: 13.5px/1.4 var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 var(--sp-3); white-space: nowrap; overflow-x: auto; user-select: all; scrollbar-width: thin;
}
.copybox .btn { flex: none; white-space: nowrap; }
.copy .ic-check, .copy.done .ic-copy { display: none; }
.copy.done .ic-check { display: block; }
.copy.done { background: transparent; color: var(--green-ink); }

/* ---- .tabs: links with aria-current="page" (admin) or role="tab" (Windows card) ---- */
.tabs { display: flex; gap: var(--sp-1); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs > a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  padding: var(--sp-2) var(--sp-3) 10px; border-bottom: 2px solid transparent;
}
.tabs > a:hover { color: var(--fg); }
.tabs > a[aria-current="page"], .tabs > a[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--green-ink); }
.tabs > a:focus-visible { outline-offset: -2px; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tabs-sm > a { font-size: 14px; padding: 6px var(--sp-2) 9px; }
@media (max-width: 480px) {
  .tabs { gap: 0; }
  .tabs > a { font-size: 14px; padding: var(--sp-2) 10px 10px; }
  .tabs-sm > a { font-size: 13px; padding: 6px 6px 9px; }
}

/* ---- .card, .badge, .alert, .crumb ---- */
.card { border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-5) 22px; min-width: 0; }
.card h2 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 var(--sp-2); }
.card .note { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
@media (max-width: 400px) { .card { padding: var(--sp-4); } }
@media (max-width: 360px) { .card { padding: 14px; } .tabs > a { font-size: 13px; padding: var(--sp-2) 6px 10px; } .tabs-sm > a { padding: 6px 5px 9px; } }
.badge {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--muted);
  background: var(--seg); border-radius: var(--r-pill); padding: 0 var(--sp-2); white-space: nowrap;
}
.alert { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px; margin: 0 0 var(--sp-5); font-size: 15px; max-width: 720px; }
.alert-error { border-color: var(--danger); }
.alert-ok { border-color: var(--green-ink); }
.alert-warn { border-color: var(--warn); margin-bottom: var(--sp-4); }
.crumb { margin: 0 0 6px; font-size: 14px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--fg); }
.crumb .ic { width: 1em; height: 1em; }
.pending { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.checklist { margin-bottom: var(--sp-5); }
.chk-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.chk-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chk-box { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; }
.chk-done .chk-box { background: var(--green-ink); border-color: var(--green-ink); color: var(--on-accent); }
.chk-done .chk-box .ic { width: 12px; height: 12px; }
.chk-done > span:last-child { color: var(--muted); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--green-ink); animation: spin .9s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---- header: brand or server picker on the left; language and account on the right ---- */
header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 22px 0; }
.hdr-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.home-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: var(--r-sm); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; min-width: 0; }
.brand svg { width: 26px; height: auto; flex: none; }
.brand small { font-weight: 400; color: var(--muted); font-size: 13px; }
.brand small a { color: inherit; }
.lang .lang-code { display: none; text-transform: uppercase; }
.lang .trigger > .ic:first-child { color: var(--muted); }
.account > summary {
  display: flex; align-items: center; gap: 9px; border-radius: var(--r-pill); padding: 3px 3px 3px 10px; border: 1px solid var(--line);
}
.account > summary:hover, .account[open] > summary { background: var(--hover); }
.account .who { color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .popover { min-width: 240px; }
.avatar { position: relative; overflow: hidden; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.picker-wrap { gap: var(--sp-3); flex: 0 1 auto; }
.picker { min-width: 0; font-size: 16px; }
.picker > .trigger { min-height: var(--control-h); border-radius: var(--r-lg); font-weight: 650; max-width: 320px; }
.picker .current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.picker .popover { min-width: 260px; }
.picker .menu-item { font-size: 15px; }
@media (max-width: 560px) {
  .account .who { display: none; }
  .account > summary { padding: 3px; }
  .brand small { display: none; }
  .lang .lang-name { display: none; }
  .lang .lang-code { display: inline; }
  .hdr-right { gap: var(--sp-2); }
  .picker > .trigger { padding: 0 10px; }
}
@media (max-width: 360px) { .lang .trigger > .ic:first-child { display: none; } }

/* ---- landing ---- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: var(--sp-8) 0 72px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: var(--sp-6); } }
.hero .btn { margin: 0 0 26px; }
.signal { width: 128px; height: auto; margin-bottom: 26px; overflow: visible; }
.signal rect { transform-box: fill-box; transform-origin: center; animation: talk 1.2s ease-in-out infinite alternate; }
.signal rect:nth-child(1) { animation-duration: .9s;  animation-delay: -.2s; }
.signal rect:nth-child(2) { animation-duration: 1.1s; animation-delay: -.6s; }
.signal rect:nth-child(3) { animation-duration: .8s;  animation-delay: -.1s; }
.signal rect:nth-child(4) { animation-duration: 1.3s; animation-delay: -.9s; }
.signal rect:nth-child(5) { animation-duration: .95s; animation-delay: -.4s; }
.signal rect:nth-child(6) { animation-duration: 1.15s; animation-delay: -.7s; }
.signal rect:nth-child(7) { animation-duration: .85s; animation-delay: -.3s; }
@keyframes talk { 0% { transform: scaleY(1); } 35% { transform: scaleY(.45); } 70% { transform: scaleY(1.25); } 100% { transform: scaleY(.7); } }
@media (prefers-reduced-motion: reduce) { .signal rect { animation: none; } }
h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 750; }
h1 span { color: var(--green-ink); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 30px; max-width: 520px; }
.hero .pricing { font-size: 14.5px; color: var(--muted); margin: -12px 0 26px; max-width: 520px; }
footer { border-top: 1px solid var(--line); padding: var(--sp-4) 0 var(--sp-6); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); }
footer a { color: inherit; }
footer nav { display: flex; gap: var(--sp-2) var(--sp-4); flex-wrap: wrap; }

/* product shot: the panel in the visitor's system (.os-mac / .os-windows / .os-linux, see
   routes/landing.rs), drawn in HTML so it is crisp in both themes (illustration, not UI
   chrome). Everything is scoped to .shot: the page has other .gone/.hint/.panel rules.
   The panel sits in the flow, so the picture grows with it and never crops a row. */
.shot {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 520px; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 85% 0%, var(--desk-a), transparent 60%),
              radial-gradient(90% 80% at 0% 100%, var(--desk-c), transparent 65%), var(--desk-b);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.35), 0 0 0 1px var(--line);
  font-size: 13px; color: var(--fg);
}
@media (max-width: 860px) { .shot { min-height: 0; } }
.shot .mark { width: 20px; height: 14px; flex: none; }
.shot .ic { width: 16px; height: 16px; }
.shot .clock { font-variant-numeric: tabular-nums; }
.shot .panel {
  position: relative; align-self: flex-end; margin: 8px 22px 28px; width: min(320px, calc(100% - 24px)); display: flex; flex-direction: column;
  border-radius: 12px; background: var(--panel); color: var(--fg);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.4), 0 0 0 1px var(--panel-line);
}
.shot .ch { display: flex; align-items: center; gap: 8px; font-weight: 650; padding: 7px 8px 3px; }
.shot .ch i { font-style: normal; width: 12px; color: var(--text2); font-weight: 400; text-align: center; }
.shot .ch.mine i { color: #0a84ff; }
.shot .p {
  display: flex; align-items: center; gap: 9px; margin: 0; padding: 4px 8px 4px 28px; border-radius: 7px;
  max-height: 40px; overflow: hidden; transition: max-height .45s ease, opacity .35s ease, padding .45s ease;
}
/* A row that moved away: no height, no padding, no margin, so it leaves no gap. */
.shot .p.away { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin: 0; }
.shot .p.me { background: var(--row-hi); }
.shot .av { position: relative; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.shot .av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; border: 2px solid var(--panel); }
.shot .av.live { box-shadow: 0 0 0 2px var(--green); animation: speak 1.1s ease-in-out infinite; }
.shot .av.live::after { background: var(--green); }
.shot .av.focus::after { background: #a855f7; }
.shot .p .n { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot .p .s { color: var(--text2); font-size: 12px; }
@keyframes speak { 0%,100% { box-shadow: 0 0 0 2px var(--green); } 50% { box-shadow: 0 0 0 4px rgba(47,190,41,.45); } }
.shot-badge { background: #e5484d; color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 4px; padding: 1px 5px; letter-spacing: .02em; transition: transform .3s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.shot-badge.hide { transform: scale(0); opacity: 0; }
.shot .foot { display: grid; grid-template-columns: 3fr 1fr; gap: 6px; margin: 10px 4px 0; flex: none; }
.shot .seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--seg); border-radius: 8px; overflow: hidden; }
.shot .seg div, .shot .share { text-align: center; padding: 6px 0 5px; font-size: 11px; color: var(--text2); transition: background .25s, color .25s; }
.shot .seg div svg, .shot .share svg { display: block; margin: 0 auto 2px; width: 15px; height: 15px; }
.shot .seg .on { background: var(--seg-on); color: #fff; border-radius: 8px; }
.shot .seg .on.live { background: #30b84a; }
.shot .share { background: var(--seg); border-radius: 8px; }
.shot .keyhint { flex: none; font-size: 11px; color: var(--text2); padding: 7px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot .invite {
  position: absolute; left: 12px; top: 44px; width: min(250px, calc(100% - 24px)); z-index: var(--z-raised); background: var(--solid); border-radius: 12px; padding: 12px;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.45), 0 0 0 1px var(--panel-line); font-size: 12.5px; color: var(--fg);
  transform: translateY(-8px); opacity: 0; transition: transform .35s ease, opacity .3s ease; pointer-events: none;
}
.shot .invite.show { transform: none; opacity: 1; }
.shot .invite .row { display: flex; gap: 9px; align-items: flex-start; }
.shot .invite .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.shot .invite .btns span { border-radius: 6px; padding: 3px 10px; background: var(--seg); font-size: 12px; }
.shot .invite .btns .ok { background: #0a84ff; color: #fff; }

/* macOS: menu bar on top, the panel hanging from its icon (NSPopover material). */
.os-mac { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; }
.os-mac .menubar { height: 30px; background: var(--menubar); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 16px; }
.os-mac .menubar .clock { opacity: .85; }
.os-mac .panel { padding: 8px 6px 10px; backdrop-filter: blur(20px); }
@media (max-width: 520px) { .os-mac .panel { margin: 8px 12px 16px; } }

/* Windows 11: taskbar at the bottom, the flyout opening up from the tray icon. */
.os-windows { font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; padding-top: 16px; }
.os-windows .panel {
  margin: auto 12px 12px; border-radius: 8px; background: var(--win-flyout);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,.35), 0 0 0 1px var(--win-line); padding: 0 0 10px;
}
.os-windows .head { flex: none; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 16px; border-bottom: 1px solid var(--win-line); }
.os-windows .head .mark { width: 22px; height: 16px; }
.os-windows .head b { flex: 1; font-size: 15px; font-weight: 600; }
.os-windows .leave { background: var(--win-card); border: 1px solid var(--win-line); border-bottom-color: rgba(0,0,0,.16); border-radius: 4px; padding: 3px 12px; font-size: 12.5px; }
.os-windows .rows { padding: 4px 6px 0; }
.os-windows .ch { padding: 8px 8px 4px; font-weight: 600; }
.os-windows .ch.mine i { color: var(--win-accent); }
.os-windows .p { border-radius: 4px; }
.os-windows .p.me { background: var(--win-sel); }
.os-windows .av::after { border-color: var(--win-flyout); }
.os-windows .foot { display: block; margin: 8px 10px 0; }
.os-windows .seg { background: var(--win-card); border: 1px solid var(--win-line); border-radius: 6px; padding: 3px; gap: 3px; }
.os-windows .seg div { position: relative; border-radius: 4px; color: var(--fg); padding: 6px 0 7px; }
.os-windows .seg .on { background: var(--win-sel); color: var(--fg); border-radius: 4px; }
.os-windows .seg .on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--win-text2); }
.os-windows .seg .on.live { background: rgba(48,184,74,.18); }
.os-windows .seg .on.live::after { background: #30b84a; }
.os-windows .keyhint { color: var(--win-text2); padding: 8px 14px 0; }
.os-windows .invite { top: auto; bottom: 60px; border-radius: 8px; transform: translateY(8px); }
.os-windows .invite.show { transform: none; }
.os-windows .invite .btns span { border-radius: 4px; }
.os-windows .invite .btns .ok { background: var(--win-accent); color: var(--win-flyout); }
.taskbar {
  flex: none; height: 48px; display: flex; align-items: center;
  padding: 0 8px; background: var(--win-taskbar); backdrop-filter: blur(20px); border-top: 1px solid var(--win-line);
}
.tb-mid { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; }
.start { display: grid; grid-template-columns: 9px 9px; gap: 1.5px; padding: 9px; border-radius: 4px; }
.start i { width: 9px; height: 9px; background: linear-gradient(135deg, #2b9cf2, #0a5fd1); border-radius: 1px; }
.tb-search { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; color: var(--fg); }
.tb-tray { display: flex; align-items: center; gap: 2px; }
.tb-ic { display: grid; place-items: center; height: 38px; padding: 0 7px; border-radius: 4px; color: var(--fg); }
.tb-ic.open { background: var(--win-hover); }
.taskbar .clock { display: grid; justify-items: end; font-size: 11.5px; line-height: 1.35; padding: 0 6px 0 8px; }
@media (max-width: 400px) { .tb-ic:first-child { display: none; } }

/* GNOME: the top bar (clock in the middle, status icons on the right) and the app as an
   Adwaita window with a headerbar (client/platform/linux/style.css). */
.os-linux { font-family: Cantarell, "Adwaita Sans", "Noto Sans", Ubuntu, system-ui, sans-serif; }
.topbar {
  height: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px;
  background: #000; color: #fff; font-size: 12.5px; font-weight: 700;
}
.topbar .ws { display: flex; gap: 5px; align-items: center; }
.topbar .ws i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); }
.topbar .ws i:first-child { width: 22px; background: #fff; }
.topbar .status { display: flex; gap: 9px; justify-content: flex-end; align-items: center; }
.topbar .status .ic { width: 14px; height: 14px; }
.topbar .mark { width: 18px; height: 13px; }
.os-linux .panel {
  align-self: center; margin: 14px 12px 28px; width: min(330px, calc(100% - 24px));
  background: var(--gtk-bg); border-radius: 12px; box-shadow: 0 16px 44px -10px rgba(0,0,0,.45), 0 0 0 1px var(--gtk-line); overflow: hidden;
}
.headerbar { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 12px; background: var(--gtk-hb); border-bottom: 1px solid var(--gtk-line); }
.headerbar .mark { width: 18px; height: 13px; }
.hb-title { flex: 1; display: grid; justify-items: center; line-height: 1.2; min-width: 0; }
.hb-title b { font-size: 13px; }
.hb-title small { font-size: 11px; color: var(--gtk-text2); }
.hb-btns { display: flex; align-items: center; gap: 6px; }
.hb-btn { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 6px; background: var(--gtk-btn); }
.hb-btn .ic { width: 15px; height: 15px; }
.hb-close { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; border-radius: 50%; background: var(--gtk-btn); }
.hb-close .ic { width: 11px; height: 11px; }
.os-linux .rows { padding: 6px 6px 0; }
.os-linux .ch { font-weight: 700; padding: 8px 8px 4px; }
.os-linux .ch.mine i { color: var(--gtk-accent); }
.os-linux .p { border-radius: 6px; }
.os-linux .p.me { background: var(--gtk-sel); }
.os-linux .p .s { color: var(--gtk-text2); }
.os-linux .av::after { border-color: var(--gtk-bg); }
.newch { color: var(--gtk-text2); padding: 8px 8px 4px 28px; }
.outside { margin-top: 6px; border-top: 1px solid var(--gtk-line); padding: 8px 8px 2px; font-size: 11px; letter-spacing: .05em; color: var(--gtk-text2); }
.os-linux .foot { display: block; margin: 0; padding: 8px 12px 12px; border-top: 1px solid var(--gtk-line); }
.os-linux .seg { background: none; border-radius: 6px; gap: 0; box-shadow: inset 0 0 0 1px var(--gtk-line); }
.os-linux .seg div { background: var(--gtk-btn); color: var(--fg); border-radius: 0; padding: 5px 0 4px; }
.os-linux .seg div + div { border-left: 1px solid var(--gtk-line); }
.os-linux .seg div:first-child { border-radius: 6px 0 0 6px; }
.os-linux .seg div:last-child { border-radius: 0 6px 6px 0; }
.os-linux .seg .on { background: #8e8e93; color: #fff; }
.os-linux .seg .on.live { background: #30b453; }
.os-linux .invite { top: 36px; left: 50%; margin-left: max(-180px, calc(-50% + 12px)); width: min(360px, calc(100% - 24px)); z-index: 3; }
.os-linux .invite .btns .ok { background: var(--gtk-accent); }

@media (prefers-reduced-motion: reduce) {
  .shot *, .shot *::after { transition: none !important; animation: none !important; }
  .shot .av.live { box-shadow: 0 0 0 2px var(--green); }
}

/* ---- legal pages: a readable column of text ---- */
.legal { max-width: 720px; padding: var(--sp-6) 0 64px; overflow-wrap: break-word; }
.legal h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: var(--sp-2); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 var(--sp-7); }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--fg); }
.legal ul { padding-left: 22px; }
.legal li { margin: var(--sp-1) 0; }
.legal table { border-collapse: collapse; width: 100%; margin: var(--sp-3) 0 var(--sp-5); display: block; overflow-x: auto; }
.legal th, .legal td { border-bottom: 1px solid var(--line); padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; text-align: left; vertical-align: top; }
.legal th { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---- sign-in: the logo and the provider buttons, centered ---- */
.login { max-width: 380px; margin: 0 auto; padding: 56px 0 96px; text-align: center; }
.login-logo { display: grid; justify-items: center; gap: var(--sp-1); margin-bottom: 36px; }
.login-logo .signal { width: 96px; margin: 0; }
.login h1 { font-size: clamp(30px, 4.4vw, 40px); margin: 0; }
.login .alert { text-align: left; }
.idps { display: grid; gap: var(--sp-3); margin: 0 0 22px; }
.idps .btn > .ic { width: 20px; height: 20px; }
.login .fine { color: var(--muted); font-size: 13px; }
.login .fine a { color: inherit; }

/* ---- page with a heading and a card (delete, billing change, messages) ---- */
.dash { padding: var(--sp-7) 0 80px; }
.dash h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 22px; overflow-wrap: anywhere; }
.dash .lead { margin-bottom: 22px; }
.dash > .card { max-width: 720px; }
/* /servers/start: two choices of the same weight; the team's servers as rows of cards */
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 760px) { .start-grid { grid-template-columns: 1fr; } }
.start-grid > .card h2 { font-size: 19px; color: var(--fg); text-transform: none; letter-spacing: 0; margin: 0 0 var(--sp-2); }
.start-grid .actions { margin-top: 0; }
.start-link { margin: 0 0 var(--sp-2); }
.start-link .alert { margin-bottom: var(--sp-2); }
.team-cards { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-4); }
.team-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); }
.team-card p { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---- admin pages (/servers/...): the server's name, the tabs, then cards ---- */
.admin { padding: var(--sp-3) 0 80px; max-width: 820px; }
.admin-head { box-shadow: inset 0 -1px var(--line); margin-bottom: var(--sp-6); }
.admin-head h1 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 14px; overflow-wrap: anywhere; }
.admin > .card { margin-bottom: var(--sp-5); }
.admin h2.section { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 28px 0 var(--sp-1); }
.admin > .note { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.card.danger { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.card.danger h2 { color: var(--danger); }
.card .empty { margin: 0 0 var(--sp-4); padding: var(--sp-3) 14px; border-radius: var(--r-lg); background: var(--seg); font-size: 15px; }

/* access list */
.items { list-style: none; margin: 0 0 var(--sp-4); padding: 0; border-top: 1px solid var(--line); }
.items li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.items .who { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.items form { margin: 0; }
.items form.role { display: flex; gap: 6px; align-items: center; }
.row-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.add { display: grid; gap: 6px; margin: 0; }

/* settings form and the capacity stepper */
.server-form { display: grid; gap: 22px; }
.server-form .note, .server-form .hint { margin: 0; }
.server-form .input { max-width: 420px; }
.server-form > .btn { justify-self: start; }
.server-form textarea.input { max-width: 560px; min-height: 7.5rem; padding: var(--sp-2) var(--sp-3); line-height: 1.45; resize: vertical; }
.server-form .actions { margin: 0; }
.server-form .hint.price { color: var(--fg); font-size: 14px; font-weight: 600; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; width: max-content; }
.stepper input {
  width: 64px; text-align: center; font: inherit; font-size: 17px; font-weight: 650; color: var(--fg); background: var(--bg);
  border: 0; padding: var(--sp-2) var(--sp-1); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button {
  font: inherit; border: 0; border-radius: 0; background: var(--seg); color: var(--fg); font-size: 18px; padding: 6px var(--sp-4); font-weight: 600; cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--line); }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper :focus-visible { outline-offset: -2px; }
.unlimited { margin: 0; font-size: 17px; font-weight: 650; }

/* delete confirmation */
.gone { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); display: grid; gap: 6px; font-size: 15px; }
.gone code { font: 13px/1.4 var(--mono); overflow-wrap: anywhere; }
.delete .lead { margin-bottom: 10px; }
.delete .add .input { max-width: 420px; }

/* billing tab and the change confirmation */
.plan-line { font-size: 18px; font-weight: 650; margin: 0 0 6px; }
.billing h3 { font-size: 15px; margin: 18px 0 6px; }
.billing .note { margin: 0 0 var(--sp-3); }
.billing .hint { margin: 10px 0 0; }
.prices { margin: 0 0 10px; padding-left: var(--sp-5); display: grid; gap: var(--sp-1); font-size: 15px; }
.change-form { display: grid; gap: 14px; margin: 0; }
.change-form p, .change-form .note { margin: 0; }
.change-form .lead { color: var(--fg); font-size: 17px; max-width: none; margin: 0; }
.currency { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-2); min-width: 0; }
.currency legend { font-weight: 600; font-size: 14px; margin: 0 0 var(--sp-2); padding: 0; }
.choice {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 11px 14px; cursor: pointer; font-size: 15px;
}
.choice:has(input:checked) { border-color: var(--green-ink); box-shadow: 0 0 0 1px var(--green-ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input { accent-color: var(--green-ink); margin: 0; flex: none; }

/* ---- install cards: the admin's Install tab and the member page ---- */
.os-list { display: grid; gap: 14px; }
.os h2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--fg); }
.os > h2 { margin: 0 0 var(--sp-3); }
.os.yours { border-color: var(--green-ink); }
/* the other systems, folded (a native <details>: works without JavaScript) */
.other-os > summary { cursor: pointer; width: max-content; max-width: 100%; font-size: 14.5px; font-weight: 550; color: var(--muted); padding: var(--sp-1) 0; }
.other-os > summary:hover { color: var(--fg); }
.other-os[open] > summary { margin-bottom: 14px; }
.open-in-app { margin: var(--sp-4) 0 0; font-size: 14px; color: var(--muted); }
.os-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 var(--sp-4);
  box-shadow: inset 0 -1px var(--line); margin: calc(-1 * var(--sp-1)) 0 var(--sp-5);
}
.os-head h2 { margin: 0 0 10px; }
.steps { display: grid; gap: var(--sp-5); }
.step-item { display: grid; gap: var(--sp-2); justify-items: start; min-width: 0; }
.step-item > * { margin: 0; max-width: 100%; }
.step-item > .copybox { justify-self: stretch; }
.steps .step { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.steps .note { color: var(--fg); font-size: 15px; margin: 0; }
.msstore { display: inline-block; line-height: 0; border-radius: 5px; }
.msstore img { display: block; height: 44px; width: auto; }
.steps .web { font-size: 13.5px; }
.steps .web a { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.steps .web a:hover { color: var(--fg); }
.win-panel > .note { margin: 0 0 var(--sp-3); }

/* ---- a server's home (<uuid>.clickspeak.io) ---- */
.home { padding: 40px 0 80px; max-width: 760px; }
.home h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: var(--sp-3); overflow-wrap: anywhere; }
.home .lead { margin-bottom: var(--sp-2); }
.home .addr { margin: 0 0 28px; }
.home .addr code { font: 13.5px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.home .after { color: var(--muted); font-size: 15px; margin: 22px 0 0; }
.home .actions { margin-top: var(--sp-5); }

/* Abstra's customer wall on the landing: the label, then the logos as one-colour
   silhouettes (dark and dimmed in light mode, light in dark mode) in a marquee with faded
   edges. The track holds the logos three times so -33.333% loops seamlessly; with reduced
   motion only the first copy stays, wrapped and still. */
.proof { display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--line); padding: 22px 0; }
.proof-label { flex: none; max-width: 190px; margin: 0; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.proof-wall { flex: 1; min-width: 0; 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); }
.proof-track { display: flex; align-items: center; width: max-content; animation: proof-scroll 60s linear infinite; }
.proof-wall:hover .proof-track { animation-play-state: paused; }
.proof-track img { flex: none; width: auto; margin: 0 22px; filter: grayscale(1) brightness(0); opacity: .45; }
@keyframes proof-scroll { to { transform: translateX(-33.333%); } }
@media (prefers-color-scheme: dark) { .proof-track img { filter: grayscale(1) brightness(0) invert(1); opacity: .55; } }
@media (max-width: 860px) {
  .proof { flex-direction: column; align-items: stretch; gap: 14px; }
  .proof-label { max-width: none; text-align: center; }
  .proof-track img { margin: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-wall { -webkit-mask-image: none; mask-image: none; }
  .proof-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .proof-track img.dup { display: none; }
}
