/* ============================================================================
   Trigger Menu — design system
   ----------------------------------------------------------------------------
   One file, three surfaces (landing, login, dashboard). No build step: this is
   loaded as a plain stylesheet from /tm.css and every page uses the same tokens.

   Ground is dark by default because the team works at night; [data-ground="light"]
   on <html> swaps the eleven surface/ink tokens and nothing else. Accent is one
   of three, set with [data-accent]; it owns selection and the primary action and
   has no other job. Semantic state colours (ok / warn / crit) are NOT themeable —
   a warning must not change meaning because someone picked a different accent.

   Rules this file holds to, because the old panel broke all four:
     1. No gradients, no glow, no blur, no glass. Depth is a hairline and, for
        things that genuinely float, a shadow with a real offset.
     2. One radius ramp. 6 / 8 / 12 / pill. Nothing else.
     3. Every surface value comes from a token. No literal hex below :root.
     4. Icons are drawn SVG on one 1.5px stroke. Never a Unicode glyph.
   ========================================================================== */

/* ── tokens ───────────────────────────────────────────────────────────────── */
:root{
  color-scheme:dark;

  --bg:#16171A;
  --bg-sunken:#121316;
  --panel:#1E2024;
  --panel-2:#24262B;
  --hover:#2A2D33;
  --active:#303440;
  --line:#2E3138;
  --line-strong:#3A3E46;

  --ink:#F2F3F5;
  --ink-2:#B5BAC1;
  --ink-3:#8E949D;
  --ink-4:#6E747D;

  /* Each state has three jobs and they need different values, which is where
     most "accessible palettes" quietly fail:
       --x       structural — borders, dots, rules
       --x-ink   TEXT on the dark tint (--x-bg). Lighter, or it lands near 3.9:1
       --x-solid a filled chip carrying white text. Darker, or white fails on it */
  --ok:#2DAE6B;   --ok-ink:#45C886;   --ok-solid:#1E8A52;
  --ok-bg:rgba(45,174,107,.13);  --ok-line:rgba(45,174,107,.32);
  --warn:#E8A33D; --warn-ink:#F0B460; --warn-solid:#A96F14;
  --warn-bg:rgba(232,163,61,.13);--warn-line:rgba(232,163,61,.32);
  --crit:#F04747; --crit-ink:#FF7A7A; --crit-solid:#D13636;
  --crit-bg:rgba(240,71,71,.13); --crit-line:rgba(240,71,71,.32);

  /* Discord blurple. Used on the Discord sign-in control and nowhere else —
     it is their brand, not ours. */
  --discord:#5865F2; --discord-hover:#4752C4;

  --r-sm:6px; --r:8px; --r-lg:12px; --r-pill:999px;

  --f-ui:'Archivo',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --f-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;

  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px;
  --s-6:24px; --s-7:32px; --s-8:40px; --s-9:48px; --s-10:64px;

  --sh-1:0 1px 2px rgba(0,0,0,.34);
  --sh-2:0 4px 14px rgba(0,0,0,.32);
  --sh-3:0 16px 40px rgba(0,0,0,.44);

  --rail-w:248px;
  --top-h:60px;

  --dur:140ms;
  --ease:cubic-bezier(.2,.8,.3,1);
}

:root[data-ground="light"]{
  color-scheme:light;
  --bg:#FFFFFF;
  --bg-sunken:#F5F6F8;
  --panel:#FFFFFF;
  --panel-2:#F7F8FA;
  --hover:#EFF1F4;
  --active:#E6E9EE;
  --line:#E3E5E9;
  --line-strong:#CDD2D9;

  --ink:#15171A;
  --ink-2:#464C55;
  --ink-3:#656C76;
  --ink-4:#858C96;

  /* On a light ground the tint is pale, so text goes darker, not lighter:
     --x-ink collapses back onto --x and --x-solid stays the filled-chip value. */
  --ok:#157F4B;   --ok-ink:#126A3E;   --ok-solid:#157F4B;
  --ok-bg:rgba(21,127,75,.09);   --ok-line:rgba(21,127,75,.26);
  --warn:#9A6212; --warn-ink:#80510F; --warn-solid:#9A6212;
  --warn-bg:rgba(154,98,18,.09); --warn-line:rgba(154,98,18,.26);
  --crit:#C62B2B; --crit-ink:#A82222; --crit-solid:#C62B2B;
  --crit-bg:rgba(198,43,43,.08); --crit-line:rgba(198,43,43,.24);

  --sh-1:0 1px 2px rgba(16,24,40,.07);
  --sh-2:0 4px 14px rgba(16,24,40,.09);
  --sh-3:0 16px 40px rgba(16,24,40,.14);
}

/* Three accents. --accent-ink is declared per accent, never computed: amber
   needs near-black on it and indigo needs white, and getting it wrong is an
   unreadable button rather than a cosmetic slip. */
/* --accent-ink is the text ON a solid accent fill and is declared per accent,
   never computed: amber needs near-black and indigo needs white, and guessing
   gives an unreadable control rather than a cosmetic slip. --accent-tint-ink is
   the different problem — accent text on the pale --accent-bg tint. */
:root,:root[data-accent="indigo"]{
  --accent:#4663EB; --accent-hover:#3A55D8; --accent-ink:#FFFFFF; --accent-tint-ink:#8098FF;
  --accent-bg:rgba(70,99,235,.16); --accent-line:rgba(70,99,235,.42);
}
:root[data-accent="emerald"]{
  --accent:#1E9B55; --accent-hover:#188346; --accent-ink:#FFFFFF; --accent-tint-ink:#45C886;
  --accent-bg:rgba(30,155,85,.16); --accent-line:rgba(30,155,85,.42);
}
:root[data-accent="amber"]{
  --accent:#E0932B; --accent-hover:#C87F1E; --accent-ink:#1E1403; --accent-tint-ink:#F0B460;
  --accent-bg:rgba(224,147,43,.16); --accent-line:rgba(224,147,43,.42);
}
/* ── the public world ───────────────────────────────────────────────────────
   The three surfaces a visitor meets before they are a user — landing, store,
   login — run on a darker ground with crimson as the accent. The panel does
   not, and that is the point rather than an oversight: inside the panel
   crimson already means "critical", and a brand accent you cannot tell apart
   from an alarm makes a worse tool. The seam falls at the login, which wears
   this world because it is the last public page rather than the first panel
   screen. Dark only: this world was pinned as dark, so there is no light
   variant to toggle into. */
:root[data-world="red"]{
  color-scheme:dark;

  --bg:#0B0B0D;
  --bg-sunken:#070709;
  --panel:#141417;
  --panel-2:#1A1A1F;
  --hover:#212127;
  --active:#2A2A31;
  --line:#26262C;
  --line-strong:#34343C;

  --ink:#F4F4F6;
  --ink-2:#B4B4BC;
  --ink-3:#8B8B95;
  --ink-4:#6A6A74;

  /* #CF2238 carries white at 5.35:1, so a filled button is readable; the
     lighter #FF5C6E is the one that goes on the dark ground as text. Using
     either value for both jobs fails one of them. */
  --accent:#CF2238; --accent-hover:#B81C30; --accent-ink:#FFFFFF; --accent-tint-ink:#FF5C6E;
  --accent-bg:rgba(207,34,56,.14); --accent-line:rgba(207,34,56,.40);
}

:root[data-ground="light"]{--accent-tint-ink:var(--accent)}
:root[data-ground="light"][data-accent="emerald"]{--accent:#15803D;--accent-hover:#126A33;}
:root[data-ground="light"][data-accent="amber"]{--accent:#A66A0C;--accent-hover:#8C590A;--accent-ink:#FFFFFF;}

/* ── reset ────────────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--bg);color:var(--ink);
  font-family:var(--f-ui);font-size:14px;line-height:1.5;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img,svg{display:block;max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
table{border-collapse:collapse;width:100%}
h1,h2,h3,h4{font-weight:600;letter-spacing:-.016em;line-height:1.2}

/* ── browser surfaces ─────────────────────────────────────────────────────────
   The parts nobody draws. Left at browser defaults they belong to no design
   system, and they are the cheapest tell that a page was assembled. */
::selection{background:var(--accent);color:var(--accent-ink)}
:root{caret-color:var(--accent);accent-color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-sm)}
*{scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:var(--r-pill);border:3px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:var(--ink-4)}
::-webkit-scrollbar-corner{background:transparent}

/* Every figure in the product is tabular: IDs, counts, durations, keys, money.
   Columns of numbers that do not line up are the single loudest amateur tell. */
.num,table td,table th,time,.mono{font-variant-numeric:tabular-nums}
.mono,.key,code,kbd{font-family:var(--f-mono);font-variant-ligatures:none}

/* ── icons ────────────────────────────────────────────────────────────────── */
.i{width:18px;height:18px;flex:0 0 auto;stroke:currentColor;fill:none;
   stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.i-sm{width:15px;height:15px}
.i-lg{width:22px;height:22px}
.i-xl{width:28px;height:28px;stroke-width:1.4}

/* ── type helpers ─────────────────────────────────────────────────────────── */
.t-display{font-size:clamp(34px,4.6vw,56px);font-weight:700;letter-spacing:-.034em;line-height:1.04}
.t-h1{font-size:24px;font-weight:600;letter-spacing:-.02em}
.t-h2{font-size:19px;font-weight:600;letter-spacing:-.016em}
.t-h3{font-size:16px;font-weight:600;letter-spacing:-.01em}
.t-body{font-size:15px;line-height:1.62;color:var(--ink-2)}
.t-sm{font-size:13px}
.t-meta{font-size:12px;color:var(--ink-3)}
.t-label{font-size:12px;font-weight:600;color:var(--ink-2)}
.muted{color:var(--ink-3)}
.t-ok{color:var(--ok-ink)} .t-warn{color:var(--warn-ink)} .t-crit{color:var(--crit-ink)} .t-accent{color:var(--accent-tint-ink)}

/* ── buttons ──────────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--s-2);
  height:36px;padding:0 14px;border-radius:var(--r);
  font-size:13.5px;font-weight:600;white-space:nowrap;
  background:var(--panel-2);color:var(--ink);
  border:1px solid var(--line);
  transition:background var(--dur) var(--ease),border-color var(--dur) var(--ease),color var(--dur) var(--ease);
}
.btn:hover{background:var(--hover);border-color:var(--line-strong)}
.btn:active{background:var(--active)}
.btn[disabled],.btn.is-disabled{opacity:.45;pointer-events:none}
.btn-primary{background:var(--accent);color:var(--accent-ink);border-color:transparent}
.btn-primary:hover{background:var(--accent-hover)}
.btn-primary:active{background:var(--accent-hover)}
.btn-ghost{background:transparent;border-color:transparent;color:var(--ink-2)}
.btn-ghost:hover{background:var(--hover);color:var(--ink);border-color:transparent}
.btn-danger{background:transparent;color:var(--crit-ink);border-color:var(--crit-line)}
.btn-danger:hover{background:var(--crit-bg);border-color:var(--crit)}
.btn-lg{height:44px;padding:0 20px;font-size:15px;border-radius:var(--r)}
.btn-sm{height:30px;padding:0 10px;font-size:12.5px;border-radius:var(--r-sm)}
.btn-icon{width:34px;height:34px;padding:0}
.btn-block{width:100%}
.btn-discord{background:var(--discord);color:#fff;border-color:transparent}
.btn-discord:hover{background:var(--discord-hover)}
.btn .i{opacity:.9}

/* loading: the label stays, so the button does not resize mid-click */
.btn.loading{position:relative;color:transparent;pointer-events:none}
.btn.loading::after{
  content:"";position:absolute;width:15px;height:15px;border-radius:50%;
  border:2px solid currentColor;border-top-color:transparent;color:var(--ink-2);
  animation:tm-spin .6s linear infinite;
}
.btn-primary.loading::after{color:var(--accent-ink)}
@keyframes tm-spin{to{transform:rotate(360deg)}}

/* ── fields ───────────────────────────────────────────────────────────────── */
.field{display:flex;flex-direction:column;gap:6px}
.field > label{font-size:12.5px;font-weight:600;color:var(--ink-2)}
.field .hint{font-size:12px;color:var(--ink-3)}
.input,.select,.textarea{
  width:100%;height:36px;padding:0 11px;border-radius:var(--r);
  background:var(--bg-sunken);color:var(--ink);
  border:1px solid var(--line);font-size:14px;
  transition:border-color var(--dur) var(--ease),background var(--dur) var(--ease);
}
.textarea{height:auto;min-height:88px;padding:9px 11px;line-height:1.55;resize:vertical}
.input::placeholder,.textarea::placeholder{color:var(--ink-3)}
.input:hover,.select:hover,.textarea:hover{border-color:var(--line-strong)}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--accent);background:var(--panel)}
.input[aria-invalid="true"]{border-color:var(--crit)}
.select{appearance:none;padding-right:30px;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 15px) 16px,calc(100% - 11px) 16px;
  background-size:4px 4px,4px 4px;background-repeat:no-repeat}
.search{position:relative;display:flex;align-items:center}
.search .i{position:absolute;left:10px;color:var(--ink-4);pointer-events:none}
.search .input{padding-left:33px}

.switch{position:relative;width:36px;height:20px;border-radius:var(--r-pill);
  background:var(--line-strong);border:0;cursor:pointer;transition:background var(--dur) var(--ease);flex:0 0 auto}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;
  background:#fff;transition:transform var(--dur) var(--ease);box-shadow:var(--sh-1)}
.switch[aria-checked="true"],.switch.on{background:var(--accent)}
.switch[aria-checked="true"]::after,.switch.on::after{transform:translateX(16px)}

/* ── surfaces ─────────────────────────────────────────────────────────────── */
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg)}
.card-pad{padding:var(--s-5)}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.panel-head{display:flex;align-items:center;gap:var(--s-3);padding:13px var(--s-5);border-bottom:1px solid var(--line)}
.panel-head h2,.panel-head h3{font-size:15px;font-weight:600}
.panel-head .spacer{margin-left:auto}
.panel-body{padding:var(--s-5)}
.divider{height:1px;background:var(--line);border:0}

/* ── badges ───────────────────────────────────────────────────────────────── */
.badge{display:inline-flex;align-items:center;gap:5px;height:21px;padding:0 8px;
  border-radius:var(--r-sm);font-size:11.5px;font-weight:600;letter-spacing:.005em;
  background:var(--panel-2);color:var(--ink-2);border:1px solid var(--line)}
.badge-ok{background:var(--ok-bg);color:var(--ok-ink);border-color:var(--ok-line)}
.badge-warn{background:var(--warn-bg);color:var(--warn-ink);border-color:var(--warn-line)}
.badge-crit{background:var(--crit-bg);color:var(--crit-ink);border-color:var(--crit-line)}
.badge-accent{background:var(--accent-bg);color:var(--accent-tint-ink);border-color:var(--accent-line)}
/* Severity is carried by weight and a leading dot as well as by hue, so the
   state survives a colour-blind reader and a greyscale screenshot. */
.badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.9}
.badge-plain::before{display:none}
.count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;
  padding:0 6px;border-radius:var(--r-pill);background:var(--panel-2);border:1px solid var(--line);
  font-size:11.5px;font-weight:600;color:var(--ink-3);font-variant-numeric:tabular-nums}
.count-crit{background:var(--crit-solid);border-color:transparent;color:#fff}

.dot{width:7px;height:7px;border-radius:50%;background:var(--ink-4);flex:0 0 auto}
.dot-ok{background:var(--ok)} .dot-warn{background:var(--warn)} .dot-crit{background:var(--crit)}
.dot-live{background:var(--ok);outline:3px solid var(--ok-bg)}

.avatar{width:28px;height:28px;border-radius:50%;background:var(--panel-2);border:1px solid var(--line);
  display:grid;place-items:center;font-size:11px;font-weight:600;color:var(--ink-2);flex:0 0 auto;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar-lg{width:40px;height:40px;font-size:14px}

kbd,.kbd{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;
  border-radius:var(--r-sm);background:var(--panel-2);border:1px solid var(--line);
  border-bottom-width:2px;font-size:11px;font-weight:600;color:var(--ink-2)}
.key{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:var(--r-sm);
  background:var(--bg-sunken);border:1px solid var(--line);font-size:12.5px;color:var(--ink-2);letter-spacing:.02em}

/* ── tables ───────────────────────────────────────────────────────────────── */
.table{width:100%;font-size:13.5px}
.table th{
  text-align:left;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink-3);padding:9px var(--s-4);background:var(--bg-sunken);
  border-bottom:1px solid var(--line);white-space:nowrap;position:sticky;top:0;z-index:1}
.table td{padding:11px var(--s-4);border-bottom:1px solid var(--line);vertical-align:middle}
.table tbody tr{transition:background var(--dur) var(--ease)}
.table tbody tr:hover{background:var(--hover)}
.table tbody tr:last-child td{border-bottom:0}
.table .num,.table .right{text-align:right}
.table .nowrap{white-space:nowrap}
.table .primary{font-weight:600;color:var(--ink)}
.table-fixed{table-layout:fixed}
.table td .sub{display:block;font-size:12px;color:var(--ink-3);margin-top:2px}
.row-actions{display:flex;gap:var(--s-1);justify-content:flex-end;opacity:0;transition:opacity var(--dur) var(--ease)}
tr:hover .row-actions,tr:focus-within .row-actions{opacity:1}

/* ── toolbar ──────────────────────────────────────────────────────────────── */
.toolbar{display:flex;align-items:center;gap:var(--s-2);flex-wrap:wrap;margin-bottom:var(--s-4)}
.toolbar .spacer{margin-left:auto}
.toolbar .search{width:min(290px,100%)}
.segmented{display:inline-flex;padding:2px;gap:2px;background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r)}
.segmented button{height:28px;padding:0 11px;border-radius:var(--r-sm);font-size:12.5px;font-weight:600;color:var(--ink-3);
  transition:background var(--dur) var(--ease),color var(--dur) var(--ease)}
.segmented button:hover{color:var(--ink)}
.segmented button.on{background:var(--bg);color:var(--ink);box-shadow:var(--sh-1)}

/* ── empty / loading ──────────────────────────────────────────────────────── */
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-3);
  padding:var(--s-10) var(--s-5);text-align:center;color:var(--ink-3)}
.empty .i{width:30px;height:30px;color:var(--ink-4);stroke-width:1.3}
.empty h3{font-size:15px;color:var(--ink-2)}
.empty p{font-size:13px;max-width:44ch}
.skeleton{background:var(--panel-2);border-radius:var(--r-sm);animation:tm-pulse 1.4s ease-in-out infinite}
@keyframes tm-pulse{0%,100%{opacity:1}50%{opacity:.55}}

/* ── modal ────────────────────────────────────────────────────────────────── */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;z-index:60;
  align-items:center;justify-content:center;padding:var(--s-5)}
.overlay.o{display:flex}
.modal{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--sh-3);width:min(560px,100%);max-height:86vh;display:flex;flex-direction:column;
  animation:tm-rise 160ms var(--ease)}
@keyframes tm-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.modal-head{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-4) var(--s-5);border-bottom:1px solid var(--line)}
.modal-head h2{font-size:16px}
.modal-body{padding:var(--s-5);overflow:auto}
.modal-foot{display:flex;gap:var(--s-2);justify-content:flex-end;padding:var(--s-4) var(--s-5);border-top:1px solid var(--line)}

/* ── toast ────────────────────────────────────────────────────────────────── */
.toasts{position:fixed;right:var(--s-5);bottom:var(--s-5);display:flex;flex-direction:column;gap:var(--s-2);z-index:80}
.toast{display:flex;align-items:center;gap:var(--s-3);padding:11px 14px;border-radius:var(--r);
  background:var(--panel);border:1px solid var(--line);box-shadow:var(--sh-2);font-size:13.5px;
  animation:tm-rise 160ms var(--ease)}
.toast-ok{border-color:var(--ok-line)} .toast-crit{border-color:var(--crit-line)}

/* ── public chrome ──────────────────────────────────────────────────────────
   The strip, the top bar and the footer that landing, store and login share.
   They live here rather than in one page's <style> because there is no build
   step: three copies of a nav is three places for it to drift apart. */
.pub-strip{background:var(--bg-sunken);border-bottom:1px solid var(--line);font-size:13px;
  padding:10px var(--s-4)}
.pub-strip-in{display:flex;align-items:center;justify-content:center;gap:9px;color:var(--ink-3)}
.pub-strip a{color:var(--accent-tint-ink);font-weight:600;text-decoration:none}
.pub-strip a:hover{text-decoration:underline;text-underline-offset:3px}
.pub-strip .i{width:16px;height:16px;color:var(--accent-tint-ink);flex:0 0 auto}

.pub-top{position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line)}
.pub-top-in{display:flex;align-items:center;gap:var(--s-5);height:64px;padding-inline:var(--s-4)}
.pub-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15.5px;
  letter-spacing:-.015em;color:var(--ink);text-decoration:none}
.pub-mark{width:30px;height:30px;border-radius:var(--r-sm);background:var(--accent);
  color:var(--accent-ink);display:grid;place-items:center;font-weight:800;font-size:14px}
/* The centred pill group is the navigation, not an ornament: the current page
   is the filled item and the others are plain links. */
.pub-nav{display:flex;gap:2px;padding:3px;margin:0 auto;background:var(--panel-2);
  border:1px solid var(--line);border-radius:var(--r-pill)}
.pub-nav a{display:inline-flex;align-items:center;height:30px;padding:0 15px;border-radius:var(--r-pill);
  font-size:13.5px;font-weight:600;color:var(--ink-3);text-decoration:none;
  transition:color var(--dur) var(--ease),background var(--dur) var(--ease)}
.pub-nav a:hover{color:var(--ink)}
.pub-nav a[aria-current="page"]{background:var(--bg);color:var(--ink)}
.pub-top-acts{display:flex;align-items:center;gap:var(--s-2)}

.pub-foot{border-top:1px solid var(--line);margin-top:var(--s-10);background:var(--bg-sunken)}
.pub-foot-in{display:flex;align-items:center;gap:var(--s-5);flex-wrap:wrap;
  padding:var(--s-7) var(--s-4);font-size:13px;color:var(--ink-3)}
.pub-foot-in .spacer{margin-left:auto}
.pub-foot a{color:var(--ink-3);text-decoration:none}
.pub-foot a:hover{color:var(--ink)}

/* Below 900px the pill group cannot sit between the brand and the actions, so
   it wraps to a row of its own rather than disappearing: hidden, it left
   Pricing and Panel unreachable from every header on the phone. */
@media (max-width:900px){
  .pub-top-in{height:auto;flex-wrap:wrap;padding-block:10px;gap:var(--s-3) var(--s-4)}
  .pub-nav{order:3;width:100%;margin:0;justify-content:flex-start;overflow-x:auto;
    scrollbar-width:none}
  .pub-nav::-webkit-scrollbar{display:none}
  .pub-top-acts{margin-left:auto}
}
@media (max-width:560px){
  .pub-strip-in{text-align:center;line-height:1.45}
}

/* The world's one piece of ornament, shared by the public pages: crimson
   hairlines in the top-right gutter. Drawn, never glowing, and clipped by the
   element that hosts it so it cannot widen the document. */
.pub-rays-host{position:relative;overflow:hidden}
.pub-rays{position:absolute;top:0;right:0;width:min(620px,64%);height:min(560px,100%);
  pointer-events:none;color:var(--accent);opacity:.42}

/* ── layout ───────────────────────────────────────────────────────────────── */
.app{display:grid;grid-template-columns:var(--rail-w) 1fr;min-height:100vh}
.wrap{width:min(1200px,100% - 48px);margin-inline:auto}
.stack-2{display:flex;flex-direction:column;gap:var(--s-2)}
.stack-4{display:flex;flex-direction:column;gap:var(--s-4)}
.row{display:flex;align-items:center;gap:var(--s-3)}
.row-tight{display:flex;align-items:center;gap:var(--s-2)}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s-4)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-4)}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--s-4)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

@media (max-width:1100px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:860px){
  .grid-3,.grid-2{grid-template-columns:1fr}
  .wrap{width:min(1200px,100% - 32px)}
}
@media (max-width:560px){
  .grid-4{grid-template-columns:repeat(2,1fr);gap:var(--s-3)}
  .toasts{left:var(--s-3);right:var(--s-3);bottom:var(--s-3)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important}
}
