/* AxoraStudios website. One sheet for the main site, the client portal, the docs, the status page
   and the legal pages. Apple-style, dark only: the visitor's system font, black and graphite surfaces,
   the brand's red for everything you can press, generous type, and blur only on the bars that float
   over content. Contrast of every text colour is checked against its surface (noted beside it). */

:root{
  --bg:#000000; --bg-2:#1C1C1E; --bg-3:#2C2C2E; --solid:#2C2C2E; --elev:#2C2C2E;   /* --solid sits one step above the --bg-2 tiles */
  --ink:#F5F5F7;            /* 19.3:1 on black */
  --ink-2:#C7C7CC;          /* 12.5:1 on black, 8.3:1 on --solid */
  --ink-3:#98989D;          /* 7.3:1 on black, 5.9:1 on --bg-2, 4.9:1 on --solid */
  --line:rgba(255,255,255,.12); --line-2:rgba(255,255,255,.2); --line-3:#98989D;
  --a:#E11D48; --a-hover:#BE123C; --a-ink:#FFFFFF;   /* white on red 4.7:1, on hover 6.3:1 */
  --link:#FF6B7D;           /* 7.7:1 on black, 6.2:1 on --bg-2, 5.1:1 on --bg-3 */
  --focus:#FF6B7D;          /* 7.7:1 against black */
  --grad:linear-gradient(100deg,#FF4D6D 0%,#FF8FA3 100%);  /* 6.5:1 and 9.7:1 on black */
  --glow:rgba(255,77,109,.4);
  --danger-bg:#3A1219; --danger-ink:#FF8A9A;               /* 7.3:1 */
  --ok:#30D158; --warn:#FFD60A; --bad:#FF6961;      /* 8.4, 12.0 and 6.0:1 on --bg-2 */
  --tint-ok:rgba(48,209,88,.14); --tint-warn:rgba(255,214,10,.12); --tint-bad:rgba(255,105,97,.14); --tint-a:rgba(255,77,109,.16);
  --bar:rgba(22,22,23,.72); --side:#161617;
  --shadow:0 4px 24px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.06);
  --shadow-lg:0 30px 80px -20px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.08);
  --r-xs:8px; --r-sm:12px; --r:18px; --r-lg:22px; --r-xl:28px;
  --ease:cubic-bezier(.25,.1,.25,1);
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  color-scheme:dark;
}

/* ── base ─────────────────────────────────────────── */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.47 var(--font);letter-spacing:-.022em;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
p a:not(.btn),li a:not(.btn),td a,.chat a{text-decoration:underline;text-underline-offset:3px}
button,input,select,textarea{font:inherit;letter-spacing:inherit;color:inherit}
img{max-width:100%}
::placeholder{color:var(--ink-3);opacity:1}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:var(--r-xs)}
::selection{background:var(--tint-a)}
[hidden],.hide{display:none!important}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:fixed;left:12px;top:-60px;z-index:100;padding:10px 18px;border-radius:999px;background:var(--a);color:var(--a-ink);font-weight:600;transition:top .15s}
.skip:focus{top:12px;text-decoration:none}
.wrap{width:min(1080px,100%);margin:0 auto;padding:0 max(24px,env(safe-area-inset-right)) 0 max(24px,env(safe-area-inset-left))}
.muted{color:var(--ink-2)} .faint{color:var(--ink-3)}
.tnum{font-variant-numeric:tabular-nums}
code,kbd,pre{font-family:var(--mono);letter-spacing:0}

/* ── type ─────────────────────────────────────────── */
h1,h2,h3,h4{margin:0;font-weight:600;letter-spacing:-.015em;line-height:1.1}
.h-hero{font-size:clamp(44px,7.2vw,88px);font-weight:700;line-height:1.04;letter-spacing:-.025em}
.h-section{font-size:clamp(32px,4.6vw,56px);font-weight:700;letter-spacing:-.02em;line-height:1.07}
.h-page{font-size:clamp(32px,4vw,48px);font-weight:700;letter-spacing:-.02em}
.h-sub{font-size:28px}
.lede{font-size:clamp(19px,1.6vw,21px);line-height:1.38;color:var(--ink-2);max-width:38em;margin:14px 0 0}
.more{display:inline-flex;align-items:center;min-height:44px;font-size:17px;color:var(--link)}
.fine{font-size:14px;color:var(--ink-3)}

/* ── buttons and fields (every target 44px or more) ─ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 22px;border:0;border-radius:980px;background:var(--bg-2);color:var(--ink);font-weight:500;font-size:17px;line-height:1;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background-color .2s,transform .15s var(--ease),filter .2s}
.btn{background:var(--bg-3)}
.btn:hover{text-decoration:none;filter:brightness(.96)}
.btn:hover{filter:brightness(1.18)}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;filter:none}
.btn svg{width:18px;height:18px;flex:none}
.btn.go{background:var(--a);color:var(--a-ink)}
.btn.go:hover{background:var(--a-hover);filter:none;box-shadow:0 10px 30px -8px var(--glow)}
.btn.go{box-shadow:0 6px 18px -8px var(--glow);transition:background-color .2s,transform .15s var(--ease),box-shadow .3s}
.btn.danger{background:var(--danger-bg);color:var(--danger-ink);font-weight:600}
.btn.line-danger{background:transparent;color:var(--bad);box-shadow:inset 0 0 0 1px currentColor}
.btn.line-danger:hover{background:var(--tint-bad)}
.btn.quiet{background:transparent}
.btn.discord{background:#5865F2;color:#fff}                 /* 4.6:1 */
.btn.discord:hover{background:#4752C4;filter:none}
.btn.lg{min-height:52px;padding:0 28px;font-size:17px}
.btn.sm{min-height:44px;padding:0 18px;font-size:15px}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--ink-2);cursor:pointer;padding:0;font-size:17px;transition:background-color .2s,color .2s}
.icon-btn:hover{background:var(--bg-2);color:var(--ink)}
.icon-btn:hover{background:var(--bg-3)}
.icon-btn svg{width:20px;height:20px}
.input{width:100%;min-height:48px;padding:0 16px;background:var(--solid);border:1px solid var(--line-3);border-radius:var(--r-sm);color:var(--ink);font-size:17px;transition:border-color .2s,box-shadow .2s}
.input:focus{outline:none;border-color:var(--focus);box-shadow:0 0 0 4px var(--tint-a)}
.input:disabled{opacity:.55}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:var(--ink-2)}
kbd{font-size:12px;border:1px solid var(--line-2);border-radius:6px;padding:3px 7px;color:var(--ink-3);background:var(--solid)}

/* ── brand, items, slots ──────────────────────────── */
.mark{width:28px;height:28px;flex:none;border-radius:8px;object-fit:cover}
.brand{display:flex;align-items:center;gap:10px;min-height:44px;color:var(--ink);font-weight:600;font-size:19px;letter-spacing:-.02em;white-space:nowrap}
.brand:hover{text-decoration:none;color:var(--ink)}
.item{width:34px;height:34px;flex:none;border-radius:9px;display:grid;place-items:center;font-weight:700;font-size:13px;line-height:1;color:#fff;letter-spacing:0;user-select:none;overflow:hidden}
.item img{width:100%;height:100%;object-fit:cover}
.item.bundle{background-color:#F59E0B;color:#2A1600}
.item.lg{width:46px;height:46px;font-size:16px;border-radius:12px}
.item.ic svg{width:58%;height:58%;color:#fff}
/* plugin colours (views/items.js): white letters 4.9:1 or more on each */
.c0{background-color:#1E7B34}.c1{background-color:#C2410C}.c2{background-color:#1D4ED8}.c3{background-color:#B91C1C}.c4{background-color:#0E7490}
.c5{background-color:#0F766E}.c6{background-color:#A16207}.c7{background-color:#475569}.c8{background-color:#BE185D}.c9{background-color:#047857}
.gui{background:var(--solid);border-radius:var(--r-lg);box-shadow:var(--shadow)}
.slots{display:grid;grid-template-columns:repeat(5,64px);gap:10px}
.slot{width:64px;height:64px;padding:0;margin:0;background:var(--bg-2);border:1px dashed var(--line-2);border-radius:var(--r-sm);display:grid;place-items:center;position:relative;color:var(--ink-3)}
button.slot{cursor:pointer;transition:transform .2s var(--ease),border-color .2s,box-shadow .2s}
button.slot:hover{transform:translateY(-2px)}
button.slot[aria-pressed="true"]{border:2px solid var(--a);box-shadow:0 0 0 4px var(--tint-a)}
.slot .item{width:44px;height:44px;font-size:15px;border-radius:11px}
.slot .plus{width:20px;height:20px}

/* ── top bar (the one translucent layer on the main site) ── */
.topbar{position:sticky;top:0;z-index:30;background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--line)}
.topbar .wrap{display:flex;align-items:center;gap:20px;min-height:56px}
.topbar .brand{font-size:17px}
.topbar nav{display:flex;gap:4px}
.topbar nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:var(--ink-2);font-size:14px}
.topbar nav a:hover{color:var(--ink);text-decoration:none}
.topbar nav a[aria-current]{color:var(--ink);font-weight:600}
.topbar .end{margin-left:auto;display:flex;gap:4px;align-items:center}
.topbar .end .btn{margin-left:8px}
.menu-btn{display:none}
.lbl-sm{color:var(--ink-3);font-weight:400}

/* ── home page ────────────────────────────────────── */
.hero3{padding-top:clamp(28px,4.5vw,64px);overflow:hidden}
.hero3-in{text-align:center;display:flex;flex-direction:column;align-items:center}
.hero3-sub{font-size:clamp(19px,2vw,24px);line-height:1.3;color:var(--ink-2);max-width:30em;margin:20px 0 28px}
.hero3-cta{display:flex;gap:28px;align-items:center;justify-content:center;flex-wrap:wrap}
.announce,.sale{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px;font-size:15px;color:var(--link)}
.sale{color:var(--warn);font-weight:600}
.h-hero,.hero3-sub,.hero3-cta,.announce,.sale{animation:enter .9s var(--ease) both}
.hero3-sub{animation-delay:.08s}.hero3-cta{animation-delay:.16s}
@keyframes enter{from{opacity:0;transform:translateY(14px)}}

/* the portal still: a browser window fading out at its foot instead of floating on a plate */
.shot-wrap{margin:64px 0 0;-webkit-mask-image:linear-gradient(#000 62%,transparent 98%);mask-image:linear-gradient(#000 62%,transparent 98%);animation:enter 1s .24s var(--ease) both}
.shot{border-radius:16px 16px 0 0;background:var(--solid);box-shadow:var(--shadow-lg);overflow:hidden;border:1px solid var(--line);border-bottom:0;font-size:14px;letter-spacing:-.01em}
.shot-bar{display:flex;align-items:center;gap:7px;height:42px;padding:0 16px;background:var(--bg-2);border-bottom:1px solid var(--line)}
.shot-bar>i{width:11px;height:11px;border-radius:50%;background:var(--bg-3)}
.shot-bar>i{background:#3A3A3C}
.shot-url{display:flex;align-items:center;gap:6px;margin:0 auto;padding:4px 14px;border-radius:8px;background:var(--solid);color:var(--ink-3);font-size:13px}
.shot-url svg{width:13px;height:13px}
.shot-app{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:440px}
.shot-side{display:flex;flex-direction:column;gap:2px;padding:18px 12px;border-right:1px solid var(--line);background:var(--bg-2)}
.shot-side{background:#161617}
.shot-side .brand{font-size:15px;min-height:0;margin:0 8px 16px}
.shot-side .mark{width:22px;height:22px;border-radius:6px}
.shot-side b{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-weight:500;color:var(--ink-2)}
.shot-side b.on{background:var(--solid);color:var(--ink);box-shadow:var(--shadow)}
.shot-side svg{width:16px;height:16px}
.shot-main{padding:28px 32px}
.shot-h{font-size:26px;font-weight:700;letter-spacing:-.02em;margin-bottom:18px}
.shot-key{display:flex;align-items:center;gap:16px;padding:16px 18px;border-radius:14px;background:var(--bg-2)}
.shot-key small{color:var(--ink-3);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.shot-key code{font-size:20px;font-weight:600;letter-spacing:.04em;flex:1;white-space:nowrap}
.shot-btn{padding:7px 14px;border-radius:980px;background:var(--a);color:#fff;font-size:13px;font-weight:500}
.shot-chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 26px}
.shot-chips>span{display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border-radius:980px;background:var(--bg-2);font-weight:500}
.shot-chips .item{width:24px;height:24px;font-size:10px;border-radius:50%}
.shot-chips .bar{width:110px;height:32px;padding:0}
.shot-sub{font-size:17px;font-weight:600;margin-bottom:12px}
.shot-sub small{font-weight:400;color:var(--ink-3);font-size:14px;margin-left:8px}
.shot-slots{display:grid;grid-template-columns:repeat(5,54px);gap:10px;margin-bottom:18px}
.shot-slots>span{width:54px;height:54px;border-radius:12px;display:grid;place-items:center;font-weight:700;color:#fff;border:1px dashed var(--line-2)}
.shot-slots>span.item{border:0}
.shot-list{display:grid;border-radius:14px;background:var(--bg-2);overflow:hidden}
.shot-list>div{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line)}
.shot-list>div:first-child{border-top:0}
.shot-list .item{width:28px;height:28px;font-size:12px;border-radius:8px}
.shot-list b{font-weight:600;min-width:90px}
.shot-list small{color:var(--ink-3);font-family:var(--mono);font-size:13px}
.shot-list em{margin-left:auto;font-style:normal;font-weight:500;color:var(--ink-3)}
.shot-list em.up{color:var(--ok)}

.block{padding-top:clamp(72px,10vw,128px)}
.block-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-bottom:32px}
.page-pad{padding-top:56px;padding-bottom:40px}
.page-intro{margin-bottom:40px}

/* products */
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px}
.prod{display:flex;flex-direction:column;border-radius:var(--r-xl);background:var(--bg-2);overflow:hidden;color:var(--ink)}
.prod-art{height:150px;display:grid;place-items:center}
.prod-art span{font-size:52px;font-weight:700;letter-spacing:-.03em;color:#fff}
.prod-body{display:flex;flex-direction:column;gap:6px;padding:22px 24px 18px;flex:1}
.prod-top{display:flex;align-items:center;gap:12px}
.prod-top h2,.prod-top h3{font-size:24px;flex:1}
.pill-price{padding:4px 12px;border-radius:980px;background:var(--solid);font-weight:600;font-size:15px}
.prod p{margin:0;color:var(--ink-2);font-size:17px}
.prod-meta{font-size:14px;color:var(--ink-3)}
.prod-acts{display:flex;gap:4px 20px;flex-wrap:wrap;align-items:center;margin-top:auto;padding-top:14px}
.prod-acts .btn{margin-right:4px}
.soon-tag{font-size:15px;color:var(--ink-3)}
.prod-docs{margin:32px 0 0;color:var(--ink-3);font-size:15px;max-width:52em}
.empty-line{padding:28px 8px;color:var(--ink-3);text-align:center}

/* feature tiles */
.bento{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tile{display:flex;flex-direction:column;justify-content:space-between;gap:28px;min-height:300px;padding:32px;border-radius:var(--r-xl);background:var(--bg-2);overflow:hidden}
.tile.wide{grid-column:span 2}
.tile h3{font-size:24px;margin-bottom:8px}
.tile p{margin:0;color:var(--ink-2);max-width:30em}
.keyviz{display:flex;flex-direction:column;gap:16px}
.keyviz code{font-size:clamp(22px,3vw,36px);font-weight:600;letter-spacing:.05em;color:var(--ink)}
.keychips{display:flex;flex-wrap:wrap;gap:8px}
.keychips>span{display:inline-flex;align-items:center;gap:8px;padding:4px 14px 4px 4px;border-radius:980px;background:var(--solid);font-size:15px;font-weight:500}
.keychips .item{width:26px;height:26px;font-size:10px;border-radius:50%}
.mini-slots{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.mini-slots span{aspect-ratio:1;border-radius:12px;border:1px dashed var(--line-2);display:grid;place-items:center;font-size:15px;font-weight:700;color:#fff}
.mini-slots span[class]{border:0}
.badges{display:flex;flex-wrap:wrap;gap:8px}
.badges span{padding:8px 14px;border-radius:980px;background:var(--solid);font-size:15px;font-weight:500}
.stat{margin:0;font-size:96px;font-weight:700;line-height:1;letter-spacing:-.04em;color:var(--ink)}
.stat small{font-size:24px;font-weight:600;letter-spacing:-.01em;margin-left:6px;color:var(--ink-2)}
.mini-search{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 18px;border-radius:980px;background:var(--solid);color:var(--ink-3)}
.mini-search:hover{text-decoration:none;color:var(--ink-2);box-shadow:0 0 0 2px var(--a)}
.mini-search svg{width:18px;height:18px}
.mini-search kbd{margin-left:auto}

/* purchase to running */
.split2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.timeline{list-style:none;margin:32px 0 0;padding:0;counter-reset:s;display:grid;gap:22px}
.timeline li{position:relative;padding-left:52px;counter-increment:s}
.timeline li::before{content:counter(s);position:absolute;left:0;top:0;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--a);color:#fff;font-weight:600;font-size:15px;box-shadow:0 6px 16px -6px var(--glow)}
.timeline b{display:block;font-size:19px;font-weight:600;margin:3px 0 2px}
.timeline span{color:var(--ink-2)}
.codecard{border-radius:var(--r-xl);background:#1C1C1E;overflow:hidden;box-shadow:var(--shadow-lg)}
.codebar{display:flex;align-items:center;gap:7px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.1);color:#98989D;font:500 13px var(--mono)}
.codebar i{width:11px;height:11px;border-radius:50%;background:#3A3A3C}
.codebar span{margin-left:8px}
.codecard pre{margin:0;padding:26px 28px 32px;font-size:16px;line-height:1.75;color:#E6E9F2;min-height:180px}   /* 14.0:1 */
.codecard .k{color:#FF9F9A}.codecard .s{color:#7CC7FF}.codecard .c{color:#8E8E93}                               /* 8.3, 9.2, 5.2:1 on #1C1C1E */

/* questions */
.finale{display:flex;flex-direction:column;align-items:center;text-align:center;padding:clamp(48px,7vw,80px) 24px;border-radius:var(--r-xl);background:var(--bg-2)}
.finale .lede{margin:14px auto 28px}
.askbox{width:min(640px,100%);text-align:left;border-radius:var(--r-lg);background:var(--solid);box-shadow:var(--shadow);border:1px solid var(--line);transition:box-shadow .2s,border-color .2s}
.askbox:focus-within{border-color:var(--focus);box-shadow:0 0 0 4px var(--tint-a)}
.askbox textarea{display:block;width:100%;resize:none;border:0;outline:none;background:transparent;padding:18px 20px 6px;font-size:17px;line-height:1.47;color:var(--ink)}
.askbox-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 8px 8px 20px}
.askbox-hint{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-3)}
.askbox-hint svg{width:16px;height:16px;flex:none}
.askbox-send{width:44px;height:44px;flex:none;border:0;border-radius:50%;display:grid;place-items:center;background:var(--a);color:#fff;cursor:pointer}
.askbox-send:hover{background:var(--a-hover)}
.askbox-send svg{width:18px;height:18px}
.chips-q{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:16px 0 8px}
.chip-q{min-height:44px;padding:0 18px;border:0;border-radius:980px;background:var(--solid);color:var(--ink-2);font-size:15px;cursor:pointer;box-shadow:inset 0 0 0 1px var(--line)}
.chip-q:hover{color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-3)}
.finale .fine{margin:6px 0 24px}

/* footer */
.foot2{margin-top:clamp(72px,10vw,128px);background:var(--bg-2);font-size:14px;color:var(--ink-3)}
.foot2 .wrap{padding-top:40px;padding-bottom:32px}
.foot-cols{display:grid;grid-template-columns:repeat(3,minmax(0,200px));gap:24px;padding-bottom:28px;border-bottom:1px solid var(--line)}
.foot-cols h2{font-size:14px;font-weight:600;color:var(--ink);margin-bottom:6px}
.foot-cols a{display:flex;align-items:center;min-height:36px;color:var(--ink-3)}
.foot-cols a:hover{color:var(--ink)}
.foot-legal{margin:20px 0 0;line-height:1.6}
.legal-foot{padding:28px 24px 36px;text-align:center;font-size:13px;color:var(--ink-3)}
.legal-foot nav{display:flex;justify-content:center;gap:4px 20px;flex-wrap:wrap}
.legal-foot a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink-3)}
.legal-foot a:hover{color:var(--ink)}
.legal-foot p{margin:4px 0 0}

/* legal pages */
.legal{padding-top:48px;display:grid;grid-template-columns:200px minmax(0,1fr);gap:48px;align-items:start}
.legal-nav{position:sticky;top:80px;display:flex;flex-direction:column;font-size:15px}
.legal-nav a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;color:var(--ink-2)}
.legal-nav a:hover{text-decoration:none;background:var(--bg-2)}
.legal-nav a[aria-current]{background:var(--bg-2);color:var(--ink);font-weight:600}
.legal-doc{max-width:760px}
.legal-date{color:var(--ink-3);margin:10px 0 32px}

/* ── dialogs ──────────────────────────────────────── */
dialog{border:0;border-radius:var(--r-xl);padding:0;background:var(--elev);color:var(--ink);width:min(520px,calc(100% - 32px));box-shadow:var(--shadow-lg)}
dialog::backdrop{background:rgba(0,0,0,.4)}
dialog[open]{animation:pop .25s var(--ease)}
@keyframes pop{from{opacity:0;transform:scale(.96)}}
.dlg{padding:28px}
.dlg h3{font-size:24px}
.dlg.confirm p{color:var(--ink-2);margin:10px 0 0}
.dlg .field{margin-top:16px}
.dlg .acts{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:24px}

/* ── AI Assistance ────────────────────────────────── */
.ask-launch{position:fixed;right:20px;bottom:20px;z-index:40;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 20px 0 16px;border:0;border-radius:980px;background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:var(--shadow-lg);color:var(--ink);font-weight:500;font-size:15px;cursor:pointer}
.ask-launch:hover{color:var(--link)}
.ask-launch svg{width:18px;height:18px;color:var(--link)}
.ask-panel{position:fixed;right:20px;bottom:20px;z-index:50;width:min(400px,calc(100% - 40px));height:min(620px,calc(100vh - 40px));display:flex;flex-direction:column;background:var(--elev);border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow-lg);animation:pop .25s var(--ease)}
.ask-head{display:flex;align-items:center;gap:12px;padding:14px 10px 14px 18px;border-bottom:1px solid var(--line)}
.ask-head .badge{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--a)}
.ask-head .badge svg{width:17px;height:17px;color:#fff}
.ask-head>div{flex:1;min-width:0}
.ask-head b{display:block;font-weight:600;font-size:16px}
.ask-head small{display:block;color:var(--ink-3);font-size:13px;line-height:1.3}
.ask-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.chat{align-self:flex-start;max-width:88%;background:var(--bg-2);border-radius:20px 20px 20px 6px;padding:10px 14px;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.chat{background:var(--bg-3)}
.chat.mine{align-self:flex-end;border-radius:20px 20px 6px 20px;background:var(--a);color:#fff}
.chat.mine .who{color:#fff}   /* 4.7:1 on the red bubble */
.chat .who{display:block;font-weight:600;font-size:12px;margin-bottom:2px;color:var(--ink-3)}
.chat p{margin:6px 0 0}.chat>p:first-of-type{margin-top:0}
.chat ul{margin:6px 0 0;padding-left:18px}
.chat code{font-size:.9em;padding:1px 5px;border-radius:5px;background:var(--solid)}
.think{color:var(--ink-3);font-weight:500}
.think i{display:inline-block;width:5px;height:5px;margin-left:3px;border-radius:50%;background:currentColor;animation:hop 1s infinite}
.think i:nth-of-type(2){animation-delay:.15s}.think i:nth-of-type(3){animation-delay:.3s}
@keyframes hop{0%,60%,100%{opacity:.3}30%{opacity:1}}
.starters{display:flex;flex-wrap:wrap;gap:8px}
.starters button{min-height:44px;padding:8px 14px;border:0;border-radius:980px;background:transparent;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--link);text-align:left;font-size:14px;cursor:pointer}
.starters button:hover{background:var(--tint-a)}
.ask-note{font-size:13px;color:var(--ink-3);line-height:1.45;margin:4px 0 0}
.ask-form{display:flex;gap:8px;padding:10px 12px 14px;border-top:1px solid var(--line)}
.ask-form label{flex:1;display:flex;align-items:center;min-height:44px;padding:0 16px;background:var(--bg-2);border-radius:980px;border:1px solid transparent}
.ask-form label{background:var(--bg-3)}
.ask-form label:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px var(--tint-a)}
.ask-form label span{display:none}
.ask-form input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-size:16px;color:var(--ink)}
.ask-form .btn{width:44px;padding:0}

/* ── client portal ────────────────────────────────── */
.app{display:flex;min-height:100vh;background:linear-gradient(90deg,var(--side) 260px,var(--bg) 260px)}
.side{flex:0 0 260px;background:var(--side);padding:20px 12px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh;overflow-y:auto}
.side .brand{padding:0 10px;margin-bottom:16px;font-size:17px}
.side nav{display:flex;flex-direction:column;gap:2px}
.side nav a,.side nav button{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:10px;color:var(--ink-2);background:none;border:0;text-align:left;cursor:pointer;font-size:15px;width:100%}
.side nav a:hover,.side nav button:hover{text-decoration:none;color:var(--ink);background:var(--bg-3)}
.side nav a[aria-current]{background:var(--solid);color:var(--ink);font-weight:600;box-shadow:var(--shadow)}
.side nav svg{width:18px;height:18px;flex:none}
.side-tools{display:flex;gap:4px;padding:12px 4px 0}
.me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 10px;border-radius:var(--r);background:var(--solid)}
.me .av{width:36px;height:36px;flex:none;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-weight:600;font-size:14px;color:#fff;background:#475569}
.me>div{min-width:0}
.me b{display:block;font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me small{font-size:13px;color:var(--ink-3)}
.me a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;margin-left:auto}
.main{flex:1 1 640px;min-width:0}
.main .bar{display:none}
.main .bar .end{margin-left:auto;display:flex;gap:4px}
.content{padding:48px 56px 64px;max-width:1120px}
.page-head{display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:32px}
.page-head>div{flex:1 1 360px}
.page-head p{margin:8px 0 0;color:var(--ink-2)}
.tabs{display:inline-flex;gap:2px;padding:3px;margin:-8px 0 28px;border-radius:12px;background:var(--bg-2)}
.tabs button{min-height:44px;padding:0 18px;border:0;border-radius:9px;background:transparent;cursor:pointer;font-weight:500;font-size:15px;color:var(--ink-2)}
.tabs button[aria-pressed="true"]{background:var(--solid);color:var(--ink);box-shadow:var(--shadow)}
.duo{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:48px}
.panel{background:var(--bg-2);border-radius:var(--r-lg);padding:24px 26px}
.panel.key{flex:1 1 420px}
.panel .label{font-size:13px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--ink-3);margin-bottom:12px}
.keyline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.keyline code{font-size:24px;font-weight:600;letter-spacing:.04em;flex:1;min-width:220px;overflow-wrap:anywhere}
.panel .btn:not(.go):not(.danger):not(.line-danger){background:var(--bg-3)}
.panel .btn:not(.go):not(.danger):not(.line-danger){background:var(--solid)}
.facts{flex:1 1 300px;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.facts div{background:var(--bg-2);border-radius:var(--r);padding:16px 18px}
.facts dt{font-size:14px;color:var(--ink-3)}
.facts dd{margin:4px 0 0;font-weight:600;font-size:19px}
.facts .good{color:var(--ok)} .facts .bad{color:var(--bad)} .facts .meh{color:var(--warn)}
.plugins-on{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.plugins-on a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:4px 14px 4px 6px;border-radius:980px;background:var(--solid);color:var(--ink);font-size:15px;font-weight:500}
.plugins-on a:hover{text-decoration:none;box-shadow:inset 0 0 0 1px var(--line-3)}
.plugins-on .item{width:28px;height:28px;font-size:11px;border-radius:50%}
.block-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.content .block{padding-top:0;margin-bottom:48px}
.content .h-sub{font-size:24px}
.content .lede{font-size:17px;margin:6px 0 20px}
.ipgrid{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start}
.ipgrid .gui{padding:16px}
.ipgrid .detail{flex:1 1 360px;min-width:0}
.detail .panel{display:flex;flex-direction:column;gap:14px}
.detail .panel.free{background:transparent;border:1px dashed var(--line-2)}
.detail h3{font-size:19px}
.detail .meta{display:flex;gap:6px 20px;flex-wrap:wrap;font-size:14px;color:var(--ink-2)}
.detail .meta b{color:var(--ink);font-weight:600}
.btns{display:flex;gap:10px;flex-wrap:wrap}
.note{margin-top:14px;font-size:14px;color:var(--ink-3)}
.icon-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:8px;margin-top:4px}
.icon-pick button{aspect-ratio:1;min-height:44px;padding:0;border:0;border-radius:var(--r-sm);background:var(--solid);display:grid;place-items:center;color:var(--ink-2);cursor:pointer}
.icon-pick button:hover{color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-3)}
.icon-pick button[aria-pressed="true"]{color:var(--ink);box-shadow:inset 0 0 0 2px var(--a),0 0 0 3px var(--tint-a)}
.icon-pick button:disabled{opacity:.45;cursor:not-allowed}
.icon-pick svg{width:22px;height:22px}
.icon-pick .mono{font-weight:700;font-size:13px}
.servers{display:flex;flex-direction:column;border-radius:var(--r-lg);background:var(--bg-2);overflow:hidden;max-width:880px}
.server{display:flex;gap:14px;align-items:center;padding:14px 18px;border-top:1px solid var(--line)}
.server:first-child{border-top:0}
.server .icon{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:12px;font-weight:700;font-size:15px;color:#fff}
.server .icon svg{width:50%;height:50%;color:#fff}
.server .txt{flex:1;min-width:0;line-height:1.35}
.server .txt>div:first-child{font-weight:600}
.server .grey{color:var(--ink-3);font-size:14px}
.server .state{text-align:right;font-size:15px;font-weight:600}
.state.online{color:var(--ok)} .state.offline{color:var(--ink-3)} .state.stopped{color:var(--bad)}
.servers>p{margin:0;padding:18px}
.upd{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:980px;font-size:12px;font-weight:600;background:var(--tint-warn);color:var(--warn);vertical-align:middle}
.empty{text-align:center;padding:48px 24px;border-radius:var(--r-xl);background:var(--bg-2);margin-bottom:24px}
.empty h2{font-size:28px;margin:20px 0 10px}
.empty p{color:var(--ink-2);max-width:42ch;margin:0 auto 24px}
.empty .slot{width:76px;height:76px;margin:0 auto;border-radius:22px;border:0;background:var(--solid);color:var(--link)}
.empty .slot svg{width:34px;height:34px}
.offline-bar{padding:12px 16px;margin-bottom:22px;border-radius:var(--r-sm);background:var(--tint-bad);color:var(--bad);font-weight:600}
.toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:70;display:flex;flex-direction:column;gap:8px;width:min(420px,calc(100% - 32px))}
.toast{background:var(--elev);border-radius:var(--r);box-shadow:var(--shadow-lg);padding:13px 16px 13px 42px;position:relative;font-size:15px;line-height:1.4;color:var(--ink-2);animation:pop .25s var(--ease)}
.toast::before{content:"";position:absolute;left:16px;top:17px;width:12px;height:12px;border-radius:50%;background:var(--ok)}
.toast.bad::before{background:var(--bad)}
.toast b{display:block;font-weight:600;color:var(--ink)}
.claim{margin-top:24px;text-align:left}
.claim h3{margin:0 0 6px;font-size:19px}
.claim p{margin:0 0 12px;color:var(--ink-2)}
.claim .field{margin-bottom:6px}
.claim-row{display:flex;gap:8px;flex-wrap:wrap}
.claim-row .input{flex:1;min-width:200px;font-family:var(--mono);letter-spacing:.02em}
.claim-msg{min-height:1.4em;margin:10px 0 0;font-size:15px}

/* ── sign-in and message pages ────────────────────── */
.gate{min-height:calc(100vh - 140px);display:grid;place-items:center;padding:48px 20px 24px}
.gate-in{width:min(440px,100%)}
.gate .brand{justify-content:center;margin-bottom:24px}
.gate .gui{padding:36px 32px 32px;text-align:center}
.gate .gui .claim{text-align:left}
.gate h1{font-size:30px}
.gate p{color:var(--ink-2);margin:12px 0 24px}
.gate .btn{width:100%}
.gate .btn+.btn{margin-top:10px}
.gate .claim-row .btn{width:auto}
.gate .under{text-align:center;margin-top:20px;font-size:15px;color:var(--ink-3)}
.gate .under a{display:inline-flex;align-items:center;min-height:44px}
.gate .err{padding:12px 14px;margin:0 0 16px;border-radius:var(--r-sm);background:var(--tint-bad);font-size:15px;color:var(--bad);text-align:left}
.btn.discord svg{width:20px;height:20px}

/* ── docs ─────────────────────────────────────────── */
.docs{display:flex;align-items:flex-start}
.docs-side{flex:0 0 260px;position:sticky;top:57px;max-height:calc(100vh - 57px);overflow-y:auto;padding:24px 12px 32px;font-size:15px}
.docs-side h6{margin:22px 12px 6px;font-size:13px;font-weight:600;color:var(--ink-3)}
.docs-side h6:first-child{margin-top:0}
.docs-side a{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border-radius:10px;color:var(--ink-2)}
.docs-side a:hover{text-decoration:none;background:var(--bg-2);color:var(--ink)}
.docs-side a[aria-current]{background:var(--bg-2);color:var(--ink);font-weight:600}
.docs-side .side-report{display:flex;align-items:center;min-height:44px;margin:0 0 18px;padding:0 12px;border-radius:10px;color:var(--link);font-weight:600}
.docs-side .side-report:hover{background:var(--bg-2);text-decoration:none}
.article{flex:1 1 560px;min-width:0;padding:48px 56px 64px}
.article-in{max-width:740px}
.crumbs{font-size:14px;color:var(--ink-3);margin-bottom:12px}
.crumbs a{color:var(--ink-3)}
.article .lede{margin:14px 0 18px}
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:36px}
.chip{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:980px;background:var(--bg-2);font-size:14px;color:var(--ink-2)}
.prose{font-size:17px;line-height:1.6}
.prose h2{font-size:28px;margin:48px 0 14px;position:relative}
.prose h3{font-size:21px;margin:32px 0 10px;position:relative}
.prose h4{font-size:17px;margin:24px 0 8px}
.prose .anchor{position:absolute;left:-22px;color:var(--ink-3);opacity:0}
.prose h2:hover .anchor,.prose h3:hover .anchor,.prose .anchor:focus{opacity:1}
.prose p,.prose ul,.prose ol{margin:0 0 18px;color:var(--ink-2)}
.prose li{margin:4px 0}
.prose strong{color:var(--ink);font-weight:600}
.prose a{text-decoration:underline;text-underline-offset:3px}
.prose code{font-size:.88em;padding:2px 6px;border-radius:6px;background:var(--bg-2)}
.prose .code{position:relative;margin:0 0 20px}
.prose .code pre{margin:0;padding:20px 22px;background:#1C1C1E;border-radius:var(--r);overflow-x:auto;font-size:14.5px;line-height:1.65;color:#E6E9F2}
.prose .code pre code{padding:0;background:none;font-size:inherit}
.prose .code[data-lang]::before{content:attr(data-lang);position:absolute;top:14px;right:84px;font:500 12px/1 var(--mono);color:#98989D}
.prose .code .copy{position:absolute;top:6px;right:6px;min-height:36px;padding:0 14px;font-size:13px;border:0;border-radius:980px;background:rgba(255,255,255,.12);color:#F5F5F7;cursor:pointer}
.prose .code .copy:hover{background:rgba(255,255,255,.2)}
.prose .table{overflow-x:auto;margin:0 0 24px;border-radius:var(--r);background:var(--bg-2)}
.prose table{width:100%;border-collapse:collapse;font-size:15px}
.prose th{text-align:left;font-weight:600;padding:12px 16px;color:var(--ink);vertical-align:bottom}
.prose td{padding:12px 16px;border-top:1px solid var(--line);color:var(--ink-2);vertical-align:top}
.prose .center{text-align:center} .prose .right{text-align:right}
.prose blockquote{margin:0 0 20px;padding:2px 18px;border-left:3px solid var(--line-2);color:var(--ink-2)}
.prose .callout{display:block;margin:0 0 22px;padding:16px 18px;border-radius:var(--r);background:var(--tint-a)}
.prose .callout>b{display:block;font-size:14px;font-weight:600;color:var(--link);margin-bottom:4px}
.prose .callout.warning,.prose .callout.caution{background:var(--tint-warn)}
.prose .callout.warning>b,.prose .callout.caution>b{color:var(--warn)}
.prose .callout.important{background:var(--tint-bad)}
.prose .callout.important>b{color:var(--bad)}
.prose .callout p{color:var(--ink);margin:0}
.prose .callout p+p{margin-top:8px}
.prose hr{border:0;border-top:1px solid var(--line);margin:40px 0}
.prose img{border-radius:var(--r)}
.prose .task{display:inline-block;width:16px;height:16px;border:2px solid var(--line-3);border-radius:5px;margin-right:8px;vertical-align:-3px}
.prose .task.done{background:var(--a);border-color:var(--a)}
.toc{flex:0 0 220px;position:sticky;top:57px;padding:52px 24px 24px 0;font-size:14px}
.toc b{display:block;margin-bottom:8px;font-size:13px;font-weight:600;color:var(--ink-3)}
.toc a{display:block;padding:5px 0 5px 12px;border-left:2px solid var(--line);color:var(--ink-3)}
.toc a.l3{padding-left:24px}
.toc a:hover,.toc a.on{text-decoration:none;color:var(--ink);border-left-color:var(--a)}
.docs-home{flex:1 1 560px;min-width:0;padding:56px 56px 64px}
.docs-home-in{max-width:980px}
.docs-home .lede{margin-bottom:32px}
.bigsearch{display:flex;align-items:center;gap:10px;width:min(640px,100%);min-height:56px;padding:0 20px;border:0;border-radius:980px;background:var(--bg-2);color:var(--ink-3);font-size:17px;cursor:pointer;margin-bottom:56px;text-align:left}
.bigsearch:hover{box-shadow:0 0 0 2px var(--a)}
.bigsearch svg{width:18px;height:18px}
.bigsearch kbd{margin-left:auto}
.cat{margin-bottom:48px}
.cat-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.cat-head h2{font-size:24px}
.cat-head span{color:var(--ink-3);font-size:15px}
.dgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:12px}
.dcard{display:flex;gap:14px;padding:18px 20px;border-radius:var(--r-lg);background:var(--bg-2);color:var(--ink);transition:transform .2s var(--ease)}
.dcard:hover{text-decoration:none;transform:translateY(-2px)}
.dcard b{display:block;font-size:17px;font-weight:600}
.dcard span span{display:block;color:var(--ink-3);font-size:15px;margin-top:2px}
.ask-box{display:flex;gap:16px 24px;align-items:center;flex-wrap:wrap;margin-top:56px;padding:26px 28px;border-radius:var(--r-xl);background:var(--bg-2)}
.ask-box div{flex:1 1 300px}
.ask-box h3{font-size:22px}
.ask-box p{margin:6px 0 0;color:var(--ink-2)}
.ask-box .btn:not(.discord){background:var(--solid)}
.pager{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:36px}
.pager a{padding:16px 20px;border-radius:var(--r);background:var(--bg-2);color:var(--ink);font-weight:600}
.pager a:hover{text-decoration:none;box-shadow:inset 0 0 0 1px var(--line-3)}
.pager a span{display:block;font-size:14px;color:var(--ink-3);font-weight:400}
.pager .next{grid-column:2;text-align:right}
.finder{width:min(640px,calc(100% - 32px));margin-top:12vh;overflow:hidden}
.finder .q{display:flex;align-items:center;gap:10px;padding:0 20px;min-height:60px;border-bottom:1px solid var(--line)}
.finder .q svg{width:18px;height:18px;color:var(--ink-3)}
.finder .q input{flex:1;border:0;background:transparent;outline:none;font-size:19px;min-height:58px}
.finder .res{max-height:min(440px,60vh);overflow-y:auto;padding:8px}
.finder .res a{display:block;padding:11px 14px;border-radius:var(--r-sm);color:var(--ink)}
.finder .res a span{display:block;font-size:14px;color:var(--ink-3)}
.finder .res a.on,.finder .res a:hover{text-decoration:none;background:var(--bg-2)}
.finder .none{padding:26px;text-align:center;color:var(--ink-3)}

/* ── status page ──────────────────────────────────── */
.status-page{max-width:820px;padding-top:56px;padding-bottom:48px}
.verdict{display:flex;align-items:center;gap:16px;padding:24px 26px;border-radius:var(--r-xl);background:var(--bg-2);margin-bottom:20px}
.verdict h1{font-size:26px}
.verdict p{margin:4px 0 0;color:var(--ink-2);font-size:15px}
.verdict .bars{margin-left:auto}
.vdot{width:14px;height:14px;border-radius:50%;flex:none;background:var(--ok)}
.verdict.meh .vdot{background:var(--warn)}
.verdict.bad .vdot{background:var(--bad)}
.verdict.ok{background:var(--tint-ok)} .verdict.bad{background:var(--tint-bad)} .verdict.meh{background:var(--tint-warn)}
.syslist{border-radius:var(--r-xl);background:var(--bg-2);overflow:hidden}
.sys{display:flex;align-items:center;gap:12px;padding:16px 22px;border-top:1px solid var(--line)}
.sys:first-child{border-top:0}
.sys b{font-weight:600}
.sys small{color:var(--ink-3);font-size:14px}
.sys em{margin-left:auto;font-style:normal;font-size:15px;font-weight:600}
.sys em.up{color:var(--ok)} .sys em.down{color:var(--bad)}
.pip{width:9px;height:9px;flex:none;border-radius:50%;background:var(--ok)}
.pip.off{background:var(--bad)}
.status-note{margin-top:18px;color:var(--ink-3);font-size:15px}
.bars{display:flex;gap:3px;align-items:flex-end}
.bars i{width:5px;border-radius:2px;background:var(--line-2)}
.bars i:nth-child(1){height:6px}.bars i:nth-child(2){height:10px}.bars i:nth-child(3){height:14px}.bars i:nth-child(4){height:18px}.bars i:nth-child(5){height:22px}
.bars i.on{background:var(--ok)}
.bars.bad i.on{background:var(--bad)}

/* ── narrower screens ─────────────────────────────── */
@media (max-width:1080px){.toc{display:none}}
@media (max-width:900px){
  .bento{grid-template-columns:1fr 1fr}.tile.wide{grid-column:1/-1}
  .split2{grid-template-columns:1fr}
  .legal{grid-template-columns:minmax(0,1fr);gap:16px}.legal-nav{position:static;flex-direction:row;flex-wrap:wrap;gap:4px}
  .shot-app{grid-template-columns:1fr}.shot-side{display:none}
}
@media (max-width:860px){
  .wrap{padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left))}
  .topbar .wrap{flex-wrap:wrap;gap:0 8px;padding-top:4px}
  .topbar nav{order:3;width:100%;overflow-x:auto;margin:0 -12px 4px}
  .app{background:var(--bg)}
  .main .bar{display:flex;align-items:center;gap:8px;min-height:56px;padding:0 12px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
  .content{padding:24px 20px 120px}
  .ipgrid .gui{width:100%}
  .slots{grid-template-columns:repeat(5,minmax(0,1fr))}
  .slot{width:auto;height:auto;aspect-ratio:1}
  .menu-btn{display:grid}
  .article,.docs-home{padding:28px 20px 64px}
  .ask-panel{right:0;bottom:0;width:100%;height:100%;border-radius:0}
  .ask-launch{right:16px;bottom:16px}
}
@media (max-width:600px){
  .bento{grid-template-columns:1fr}
  .tile{min-height:0;padding:26px}
  .foot-cols{grid-template-columns:1fr 1fr}
  .topbar .end .btn .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.topbar .end .btn{padding:0 14px}
  .brand .lbl-sm{display:none}
  .shot-main{padding:20px 18px}.shot-key{flex-wrap:wrap;gap:6px 12px}.shot-key small{width:100%}.shot-key code{font-size:16px;letter-spacing:.02em}
  .ask-launch{width:52px;min-height:52px;padding:0;justify-content:center;font-size:0}.ask-launch svg{width:22px;height:22px}
  .shot-slots{grid-template-columns:repeat(5,minmax(0,1fr))}.shot-slots>span{width:auto;height:auto;aspect-ratio:1}
  .shot-list small{display:none}
  .facts{grid-template-columns:1fr 1fr}
  .icon-pick{grid-template-columns:repeat(5,minmax(0,1fr))}
  .detail .btns .btn{flex:1}
  .pager{grid-template-columns:1fr}.pager .next{grid-column:auto}
  .hero3-cta{flex-direction:column;gap:8px}
  .legal-foot,.foot2 .wrap{padding-bottom:96px}   /* room for the round AI button */
}
/* Still: the Animations button set to off, or the device asks for reduced motion and the visitor has not turned animations on. */
html.calm *,html.calm *::before,html.calm *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){html:not(.motion) *,html:not(.motion) *::before,html:not(.motion) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media (prefers-reduced-transparency:reduce){.topbar,.ask-launch,.main .bar{background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none}}
@media (prefers-contrast:more){:root{--ink-3:#C7C7CC;--line:rgba(255,255,255,.35)}}

/* page to page: a short cross-fade (browsers without it just navigate) */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.18s}

/* ═════ red and motion ═════
   Everything here is decoration on top of a page that already works without it. html.motion is set by
   theme.js only when the visitor has not asked for reduced motion; the rule further up stops the rest. */

/* red gradient type */
.grad{background:var(--grad);background-size:200% 100%;background-position:0 0;-webkit-background-clip:text;background-clip:text;color:transparent}
.motion .h-hero .grad{animation:sheen 1.8s .35s var(--ease) both}
@keyframes sheen{from{background-position:100% 0}}

/* reading progress under the top bar (browsers with scroll timelines) */
.progress{display:none}
@supports (animation-timeline:scroll()){
  .motion .progress{display:block;position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--grad);transform-origin:0 50%;animation:grow linear both;animation-timeline:scroll(root)}
  @keyframes grow{from{transform:scaleX(0)}}
}
.topbar{position:sticky}

/* nav links: a red line draws in under the hovered and current link */
.topbar nav a{position:relative}
.topbar nav a::after{content:"";position:absolute;left:12px;right:12px;bottom:8px;height:2px;border-radius:2px;background:var(--a);transform:scaleX(0);transition:transform .3s var(--ease)}
.topbar nav a:hover::after,.topbar nav a[aria-current]::after{transform:scaleX(1)}

/* hero: a red glow that leans toward the pointer */
.hero3{position:relative;isolation:isolate}
/* the hero light is its own element, moved with a GPU transform, so following the mouse never restyles the hero */
.hero-light{position:absolute;left:50%;top:20%;width:1120px;height:840px;margin:-420px 0 0 -560px;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,var(--glow),transparent 70%);opacity:.8;will-change:transform}

.shot{box-shadow:var(--shadow-lg),0 -30px 120px -30px var(--glow)}
@supports (animation-timeline:view()){
  .motion .shot{transform-origin:50% 0;animation:flatten linear both;animation-timeline:view();animation-range:entry 20% cover 45%}
  @keyframes flatten{from{transform:perspective(1600px) rotateX(16deg) scale(.95)}}
}

/* the portal still tells one short story when it comes into view (landing.js adds s1, s2, s3):
   Copy is pressed, a third server takes a slot, then comes online. Without motion it shows the end. */
.shot-btn .b,.shot-list .row3 em .off,.shot-sub .n2{display:none}
.motion .shot:not(.s3) .row3 em .on,.motion .shot:not(.s2) .shot-sub .n3{display:none}
.motion .shot:not(.s3) .row3 em .off,.motion .shot:not(.s2) .shot-sub .n2{display:inline}
.motion .shot.s1:not(.s2) .shot-btn .a{display:none}
.motion .shot.s1:not(.s2) .shot-btn .b{display:inline}
.shot-btn{transition:transform .15s var(--ease),background-color .2s}
.motion .shot.s1:not(.s2) .shot-btn{background:#BE123C;transform:scale(.94)}
.motion .shot:not(.s2) .shot-slots .slot3{background:transparent;color:transparent;border:1px dashed var(--line-2)}
.motion .shot.s2 .shot-slots .slot3{animation:pop .45s var(--ease)}
.motion .shot .row3{transition:opacity .45s var(--ease),transform .45s var(--ease)}
.motion .shot:not(.s2) .row3{opacity:0;transform:translateY(-10px)}
.motion .shot.s3 .row3 em{animation:pop .45s var(--ease)}
.motion .shot:not(.s3) .row3 em{color:var(--ink-3)}
.shot-list em.up::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:1px}
.motion .shot.s3 .row3 em.up::before{animation:ring 1.2s var(--ease) 2}
@keyframes ring{from{box-shadow:0 0 0 0 rgba(48,209,88,.6)}to{box-shadow:0 0 0 8px rgba(48,209,88,0)}}
@keyframes pop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08)}100%{transform:none;opacity:1}}

/* sections slide up once as they arrive (motion.js adds .in) */
.motion [data-reveal]:not(.in){opacity:0}
.motion [data-reveal].in{animation:rise .8s var(--ease) var(--d,0s) backwards}   /* backwards: hover transforms stay free afterwards */
@keyframes rise{from{opacity:0;transform:translateY(28px)}}

/* cards: lift on hover, and a red light that follows the pointer (motion.js sets --mx/--my) */
.spot{position:relative;isolation:isolate;transition:transform .35s var(--ease),translate .35s var(--ease),box-shadow .35s var(--ease)}
.spot::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(420px circle at var(--mx,50%) var(--my,0%),var(--tint-a),transparent 60%)}
.spot:hover::before{opacity:1}
.spot:hover{translate:0 -3px;box-shadow:0 22px 50px -28px var(--glow)}
.tile.spot,.prod.spot{overflow:hidden}
.prod-art span{transition:transform .5s var(--ease)}
.prod:hover .prod-art span{transform:scale(1.1) rotate(-3deg)}
.prod-art{position:relative;overflow:hidden}
.prod-art::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.28) 50%,transparent 65%);transform:translateX(-100%);transition:transform .9s var(--ease)}
.prod:hover .prod-art::after{transform:translateX(100%)}

/* feature tiles in red */
.keyviz code.grad{color:transparent}
.tile .stat{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.stat small{-webkit-text-fill-color:var(--ink-2)}
.badges span{transition:box-shadow .2s,color .2s}
.badges span:hover{color:var(--link);box-shadow:inset 0 0 0 1px var(--a)}
.keychips>span{transition:transform .25s var(--ease)}
.keychips>span:hover{transform:translateY(-2px)}

/* the "try it" IP slots in the tile */
.mini-slots button{aspect-ratio:1;min-height:44px;padding:0;border-radius:12px;border:1px dashed var(--line-3);display:grid;place-items:center;font:700 15px/1 var(--font);color:#fff;cursor:pointer;transition:transform .2s var(--ease),box-shadow .2s}
.mini-slots button[aria-pressed="true"]{border-color:transparent}
.mini-slots button[aria-pressed="false"]{background:transparent}
.mini-slots button:hover{transform:translateY(-2px);box-shadow:0 0 0 2px var(--a)}
.mini-slots button.popped{animation:pop .4s var(--ease)}
.try{margin:14px 0 0;font-size:14px;color:var(--ink-3)}

/* purchase steps: the line between the numbers draws in red */
.timeline li:not(:last-child)::after{content:"";position:absolute;left:16.5px;top:40px;bottom:-18px;width:1px;background:linear-gradient(var(--a),transparent);transform-origin:0 0;transition:transform .9s .3s var(--ease)}
.motion .timeline li:not(.in)::after{transform:scaleY(0)}
.codecard pre .caret{display:inline-block;width:.55em;height:1.1em;margin-left:1px;vertical-align:-.15em;background:#FF6B7D;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* questions panel: a red glow rising from below */
.finale{position:relative;isolation:isolate;overflow:hidden}
.finale::before{content:"";position:absolute;inset:auto -10% -40% -10%;height:80%;z-index:-1;background:radial-gradient(50% 60% at 50% 100%,var(--glow),transparent 70%);opacity:.5}
.chip-q{transition:color .2s,box-shadow .2s,transform .2s var(--ease)}
.chip-q:hover{color:var(--link);box-shadow:inset 0 0 0 1px var(--a);transform:translateY(-2px)}
.foot-cols a:hover,.legal-foot a:hover{color:var(--link)}

/* portal: the selected slot and key panel get a touch of red */
.panel.key{background:linear-gradient(135deg,var(--tint-a),transparent 55%),var(--bg-2)}
.plugins-on a{transition:transform .2s var(--ease),box-shadow .2s}
.plugins-on a:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--a)}
button.slot:hover{box-shadow:0 8px 20px -10px var(--glow)}


/* ═════ phones and tablets ═════ */
a,button,summary,label,[role="button"]{-webkit-tap-highlight-color:transparent}
button,.btn,.chip-q,.slot{touch-action:manipulation}
body.drawer-open{overflow:hidden}
/* Heights follow the visible screen, not the one behind the mobile browser's toolbars. */
.app{min-height:100dvh}
.side{height:100dvh}
.gate{min-height:calc(100dvh - 140px)}
.ask-panel{height:min(620px,calc(100dvh - 40px))}
.docs-side{max-height:calc(100dvh - 57px)}
/* Clear of notches and the home indicator. */
.topbar{padding-top:env(safe-area-inset-top)}
.ask-launch{right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom))}
.toasts{bottom:calc(24px + env(safe-area-inset-bottom))}
.legal-foot{padding-bottom:calc(36px + env(safe-area-inset-bottom))}
.topbar nav{scrollbar-width:none}
.topbar nav::-webkit-scrollbar{display:none}

/* Drawers (ui.js): the portal menu and the docs page list, over the page on phones. */
.side-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.side-top b{font-size:17px;padding-left:12px}
.drawer-x,.drawer-only{display:none!important}
.scrim{position:fixed;inset:0;z-index:55;background:rgba(0,0,0,.55);animation:fade .2s var(--ease)}
@keyframes fade{from{opacity:0}}
@media (max-width:860px){
  .drawer-x{display:grid!important}.drawer-only{display:flex!important;margin-bottom:8px}
  .side,.docs-side{position:fixed;top:0;bottom:0;left:0;z-index:56;width:min(300px,86vw);height:auto;max-height:none;padding:calc(16px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));overflow-y:auto;background:var(--side);transform:translateX(-100%);transition:transform .3s var(--ease),visibility 0s .3s;visibility:hidden}
  .side.open,.docs-side.open{transform:none;visibility:visible;transition:transform .3s var(--ease);box-shadow:var(--shadow-lg)}
  .side .brand{margin-bottom:0}
  .side-top{margin-bottom:12px}
  .ask-panel{height:100dvh}
  .ask-head{padding-top:calc(14px + env(safe-area-inset-top))}
  .ask-form{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .ask-launch{right:calc(16px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}
  .main .bar{padding-top:env(safe-area-inset-top);min-height:calc(56px + env(safe-area-inset-top))}
  .content{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
}
@media (max-width:600px){
  .keyline code{min-width:0;font-size:20px}
  .page-head .btn{width:100%}
  .finale{padding:44px 18px}
  .askbox-hint{font-size:13px}
  .legal-nav a{padding:0 10px;font-size:14px}
}
@media (max-width:360px){
  .gate .gui{padding:28px 20px 24px}
  .ipgrid .gui{padding:10px}.ipgrid .slots{gap:6px}
  .wrap{padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
  .h-hero{font-size:40px}
  .h-section{font-size:30px}
  .tile,.prod-body{padding-left:20px;padding-right:20px}
  .foot-cols{grid-template-columns:1fr}
  .facts{grid-template-columns:1fr}
  .shot-chips>span:nth-child(3){display:none}
}
/* Phones turned sideways: less vertical padding so the content starts sooner. */
@media (max-height:500px) and (orientation:landscape){
  .topbar .wrap{flex-wrap:nowrap;padding-top:0}.topbar nav{order:0;width:auto;margin:0;overflow:visible}
  .ask-launch{width:52px;min-height:52px;padding:0;justify-content:center;font-size:0}.ask-launch svg{width:22px;height:22px}
  .hero3{padding-top:32px}
  .hero3-sub{margin:12px 0 18px}
  .shot-wrap{margin-top:32px}
  .gate{padding-top:24px}
  .block{padding-top:64px}
}
/* Touch screens: hover lifts can stick after a tap, so they only happen with a real pointer; a press gives feedback instead. */
@media (hover:none){
  .spot:hover,.dcard:hover,.keychips>span:hover,.plugins-on a:hover,.chip-q:hover,.mini-slots button:hover,button.slot:hover,.icon-pick button:hover{transform:none;translate:none;box-shadow:none}
  .spot:hover::before{opacity:0}
  .prod:hover .prod-art span{transform:none}
  .prod:hover .prod-art::after{transform:translateX(-100%)}
  .spot:active,.dcard:active{transform:scale(.985)}
  .chip-q:active,.mini-slots button:active,.icon-pick button:active{transform:scale(.94)}
}
/* Fingers: every link outside running text is at least 44px tall. */
@media (pointer:coarse){
  .foot-cols a,.docs-side a,.toc a,.crumbs a{min-height:44px;display:flex;align-items:center}
  .crumbs a{display:inline-flex}
  .more{min-height:48px}
}

/* Narrow screens never scroll sideways: the sign-in card shrinks with the screen, long button text wraps,
   and inline code (file paths) breaks where it must. */
.gate-in{min-width:0}
.gate .btn{white-space:normal;text-align:center;line-height:1.2;padding-top:8px;padding-bottom:8px}
.prose :not(pre)>code,.chat code{overflow-wrap:anywhere}

/* ═════ report form (/report) ═════ */
.rwrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}
.rform,.rdone{padding:32px;border-radius:var(--r-xl);background:var(--bg-2)}
.rform{display:flex;flex-direction:column;gap:20px}
.rfield{display:flex;flex-direction:column;gap:8px;min-width:0}
.rfield label,.rmore summary{font-weight:600;font-size:15px;color:var(--ink)}
.opt{margin-left:6px;font-weight:400;font-size:13px;color:var(--ink-3)}
.rhint{margin:-2px 0 0;font-size:14px;color:var(--ink-3)}
.rrow{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.rform textarea.input{min-height:auto;padding:12px 16px;line-height:1.47;resize:vertical}
.rform select.input{appearance:none;cursor:pointer;padding-right:44px;background:var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C7C7CC' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center}
.rform .input[aria-invalid="true"]{border-color:var(--bad);box-shadow:0 0 0 4px var(--tint-bad)}
.rmore{border-radius:var(--r);background:var(--solid);padding:0 16px}
.rmore summary{display:flex;align-items:center;gap:8px;min-height:52px;cursor:pointer;list-style:none}
.rmore summary::-webkit-details-marker{display:none}
.rmore summary::before{content:"";width:8px;height:8px;border-right:2px solid var(--ink-2);border-bottom:2px solid var(--ink-2);transform:rotate(-45deg);transition:transform .2s var(--ease)}
.rmore[open] summary::before{transform:rotate(45deg)}
.rmore[open]{padding-bottom:16px}
.rmore .rfield+.rfield{margin-top:16px}
.rmore .input{background:var(--bg-2)}
.rnote{margin:0;font-size:14px;color:var(--ink-3)}
.rmsg{margin:0;min-height:1.4em;font-size:15px;color:var(--bad)}
.rmsg:empty{min-height:0}
.rform .btn{align-self:flex-start}
.rdone{text-align:center}
.rdone h2{font-size:26px;margin-bottom:10px}
.rdone p{color:var(--ink-2);margin:0 0 22px}
.rdone:focus{outline:none}
.rside{padding:24px 26px;border-radius:var(--r-xl);background:var(--bg-2)}
.rside h2{font-size:19px;margin-bottom:10px}
.rside ul{margin:0;padding-left:18px;color:var(--ink-2);font-size:15px}
.rside li+li{margin-top:8px}
/* the field only bots fill in: off screen for people, out of the tab order */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media (max-width:900px){.rwrap{grid-template-columns:minmax(0,1fr)}}
@media (max-width:600px){.rrow{grid-template-columns:1fr}.rform,.rdone{padding:22px 18px}.rform .btn{align-self:stretch}}

/* ═════ reviews (reviews.json) ═════ */
.rv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:20px}
.rv{margin:0;display:flex;flex-direction:column;gap:16px;padding:28px;border-radius:var(--r-xl);background:var(--bg-2)}
.rv-head{display:flex;align-items:center;gap:12px}
.rv-head .item{width:40px;height:40px;border-radius:50%;font-size:14px}
.rv-head b{display:block;font-weight:600}
.stars{display:block;color:#FFB340;letter-spacing:2px;font-size:15px;line-height:1.2}   /* 9.5:1 on --bg-2 */
.rv blockquote{margin:0;font-size:19px;line-height:1.4;color:var(--ink);flex:1}
.rv figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--ink-3)}
.rv-tag{padding:3px 10px;border-radius:980px;background:var(--solid);color:var(--ink-2);font-size:13px;font-weight:500}
.rv-tag.partner{background:var(--tint-a);color:var(--ink)}
.rv-tag.partner a{color:var(--link);text-decoration:underline;text-underline-offset:2px;display:inline-flex;align-items:center;min-height:24px}
.rv-note{margin:16px 0 0}

/* ═════ staff reports inbox (portal /reports) ═════ */
.rep-count{margin:0 0 16px;color:var(--ink-3);font-size:15px}
.reps{display:flex;flex-direction:column;gap:16px;max-width:880px}
.rep{padding:24px 26px;border-radius:var(--r-xl);background:var(--bg-2);display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.rep-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;width:100%}
.rep-head h2{font-size:20px}
.rep-head time{margin-left:auto;font-size:14px;color:var(--ink-3)}
.rep-type{padding:3px 10px;border-radius:980px;font-size:13px;font-weight:600;background:var(--tint-a);color:var(--ink)}
.rep-type.compat{background:var(--tint-warn)}.rep-type.idea{background:var(--tint-ok)}
.rep-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.rep-meta{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px 20px;width:100%;font-size:15px}
.rep-meta dt{color:var(--ink-3);font-size:13px}
.rep-meta dd{margin:2px 0 0;color:var(--ink-2);overflow-wrap:anywhere}
.rep-meta a{display:inline-flex;min-height:24px;align-items:center}
.rref{font-size:15px}
.rref code{padding:2px 8px;border-radius:6px;background:var(--solid);color:var(--ink)}
.content:focus{outline:none}

/* ═════ glass ═════
   Liquid-glass: a translucent fill, a bright top edge and a soft inner shadow on controls; a real blur of
   what is behind only on layers that float over moving content (a blur re-renders every frame there). Content (text, tiles, chat bubbles) stays solid.
   Red buttons never get lighter than #E11D48 under their text (white 4.7:1); the light lives in the edge. */
:root{
  --glass-edge:inset 0 1px 0 rgba(255,255,255,.26),inset 0 -1px 0 rgba(255,255,255,.05),inset 0 0 0 1px rgba(255,255,255,.07);
  --glass-blur:blur(22px) saturate(180%);
  --glass-float:rgba(30,30,32,.82);   /* thick enough that nav text keeps 5.3:1 even over white text scrolling behind */
}
.btn{background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.05)),rgba(44,44,46,.55);box-shadow:var(--glass-edge),0 8px 22px -12px rgba(0,0,0,.7)}
.btn:hover{filter:brightness(1.15)}
.btn.go,.btn.go:hover{background:radial-gradient(130% 160% at var(--gx,30%) 0%,#E11D48 0%,#D11743 45%,#A3123C 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -3px 10px rgba(80,0,20,.45),inset 2px 0 8px rgba(255,90,120,.18),0 10px 28px -10px var(--glow);filter:none}
.btn.go:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -3px 10px rgba(80,0,20,.4),inset 2px 0 10px rgba(255,90,120,.28),0 14px 36px -10px var(--glow)}
.btn.discord{box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -3px 10px rgba(20,20,90,.35),0 10px 28px -12px rgba(88,101,242,.6)}
.btn.danger{box-shadow:var(--glass-edge)}
.icon-btn:hover{background:rgba(255,255,255,.1);box-shadow:var(--glass-edge)}
.chip-q,.starters button{background:rgba(255,255,255,.06);box-shadow:var(--glass-edge)}
.chip-q:hover,.starters button:hover{box-shadow:var(--glass-edge),inset 0 0 0 1px var(--a)}
/* floating layers */
.topbar{background:var(--glass-float);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:inset 0 -1px 0 rgba(255,255,255,.08),0 1px 0 rgba(0,0,0,.4);border-bottom:0}
.ask-launch{background:var(--glass-float);box-shadow:var(--glass-edge),0 18px 40px -16px rgba(0,0,0,.8)}
dialog,.toast{background:rgba(36,36,38,.86);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge),var(--shadow-lg)}
.ask-panel{background:rgba(36,36,38,.94);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge),var(--shadow-lg)}
dialog::backdrop{background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.main .bar{box-shadow:inset 0 -1px 0 rgba(255,255,255,.08)}
.tabs{background:rgba(255,255,255,.06);box-shadow:var(--glass-edge)}
.tabs button[aria-pressed="true"]{background:rgba(255,255,255,.14);box-shadow:var(--glass-edge)}
@media (max-width:860px){
  .side,.docs-side{background:rgba(22,22,23,.84);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--glass-edge)}
  .scrim{background:rgba(0,0,0,.35);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
}
/* Settings → Accessibility → Reduce transparency: every glass layer turns solid. */
@media (prefers-reduced-transparency:reduce){
  .btn,.chip-q,.starters button,.topbar,.ask-launch,.ask-panel,dialog,.toast,.side,.docs-side,.main .bar{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .btn{background:var(--bg-3)}
  .topbar,.ask-launch,.main .bar{background:#161617}
  .ask-panel,dialog,.toast{background:var(--elev)}
  .side,.docs-side{background:var(--side)}
  .chip-q,.starters button{background:var(--solid)}
}
@media (prefers-contrast:more){.btn{box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}}

/* ═════ motion like a chat app ═════ */
/* things arrive from a soft blur */
@keyframes enter{from{opacity:0;transform:translateY(16px);filter:blur(10px)}}
@keyframes rise{from{opacity:0;transform:translateY(28px);filter:blur(8px)}}
/* the chat panel grows out of its button */
.ask-panel{transform-origin:100% 100%;animation:panel-in .38s cubic-bezier(.2,.9,.25,1.08)}
@keyframes panel-in{from{opacity:0;transform:scale(.92) translateY(12px);filter:blur(6px)}}
/* each message slides up; answers stream in word by word (assistant.js wraps words in .w) */
.chat{animation:msg-in .32s cubic-bezier(.2,.9,.25,1)}
@keyframes msg-in{from{opacity:0;transform:translateY(10px) scale(.98);filter:blur(3px)}}
.chat .w{animation:word .45s var(--ease) calc(var(--i,0) * 22ms) backwards}
@keyframes word{from{opacity:0;filter:blur(6px)}}
/* "Thinking": a light sweeps across the word while the answer is on its way */
.think{display:inline-block;font-weight:500;color:var(--ink-3);background:linear-gradient(100deg,var(--ink-3) 35%,var(--ink) 50%,var(--ink-3) 65%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:sweep 1.6s linear infinite}
.think i{display:none}
@keyframes sweep{from{background-position:100% 0}to{background-position:-150% 0}}
/* the send button turns into a spinning ring while it waits */
.ask-form .btn{position:relative;transition:transform .25s cubic-bezier(.2,.9,.25,1.2)}
.ask-form .btn.busy{transform:scale(.92)}
.ask-form .btn.busy svg{opacity:0}
.ask-form .btn.busy::after{content:"";position:absolute;inset:13px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.ask-form label{transition:box-shadow .25s,border-color .25s}
html:not(.motion) .think{-webkit-text-fill-color:var(--ink-3);background:none}
html:not(.motion) .ask-form .btn.busy::after{border-top-color:rgba(255,255,255,.35)}

/* the "New" link above the hero: a glass pill with a red badge */
.announce{gap:10px;padding:5px 16px 5px 5px;margin-bottom:18px;border-radius:980px;background:rgba(255,255,255,.06);box-shadow:var(--glass-edge),0 0 0 1px rgba(255,77,109,.3),0 10px 30px -12px var(--glow);color:var(--ink);transition:box-shadow .25s,transform .25s var(--ease)}
.announce b{padding:4px 10px;border-radius:980px;background:var(--a);color:#fff;font-size:12px;font-weight:700;letter-spacing:.02em}   /* white on red 4.7:1 */
.announce:hover{text-decoration:none;box-shadow:var(--glass-edge),0 0 0 1px var(--link),0 12px 34px -10px var(--glow)}
.announce span{transition:transform .25s var(--ease)}
.announce:hover span{transform:translateX(3px)}

/* ═════ moving backgrounds ═════
   Only transform is animated, so the graphics card moves ready-made layers and nothing repaints.
   html.calm (Animations off, or reduced motion) holds them still. */
body::before,body::after{content:"";position:fixed;z-index:-1;pointer-events:none;border-radius:50%;will-change:transform}
body::before{width:72vmax;height:72vmax;left:-24vmax;top:-26vmax;background:radial-gradient(closest-side,rgba(225,29,72,.22),transparent);animation:drift-a 38s ease-in-out infinite alternate}
body::after{width:62vmax;height:62vmax;right:-24vmax;bottom:-30vmax;background:radial-gradient(closest-side,rgba(159,18,57,.26),transparent);animation:drift-b 46s ease-in-out infinite alternate}
@keyframes drift-a{to{transform:translate3d(20vmax,24vmax,0) scale(1.15)}}
@keyframes drift-b{to{transform:translate3d(-22vmax,-20vmax,0) scale(1.1)}}

/* "Questions before you buy?": a slow swirl of red and amber behind the panel.
   Kept to about a third of full strength so its text keeps 4.5:1. */
.finale::after{content:"";position:absolute;inset:-60%;z-index:-1;pointer-events:none;background:conic-gradient(from 0deg,rgba(225,29,72,.75),rgba(255,138,76,.35),rgba(159,18,57,.7),rgba(255,77,109,.5),rgba(225,29,72,.75));filter:blur(60px);opacity:.45;animation:swirl 28s linear infinite;will-change:transform}   /* the blur makes the browser render this once as a GPU texture and only rotate it; without it Chrome redoes work on the main thread every frame (measured 5x more) */
@keyframes swirl{to{transform:rotate(360deg)}}
.finale .fine{color:var(--ink-2)}
.finale .fine a{color:#fff}

/* ═════ pointer effects (motion.js, mouse only) ═════ */
.btn,.icon-btn{position:relative;overflow:hidden}
.fx-ripple{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:rgba(255,255,255,.45);pointer-events:none;animation:ripple .6s var(--ease) forwards}
@keyframes ripple{to{transform:scale(28);opacity:0}}
.btn.go.lg,.ask-launch,.announce{transition:translate .35s var(--ease),transform .15s var(--ease),box-shadow .3s,background-color .2s}
@media (hover:hover){.motion .prod,.motion .tile,.motion .rv{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}}

/* ═════ big screens: use the room ═════ */
@media (min-width:1280px){
  .wrap{width:min(1200px,100%)}
  .h-hero{font-size:clamp(88px,6.6vw,108px)}
  .hero3-sub{font-size:24px;max-width:32em}
  .shot-app{min-height:500px}
  .tile{min-height:340px;padding:36px}
  .tile h3,.rv blockquote{font-size:24px}
  .prod-art{height:170px}
  .topbar nav a{font-size:15px;padding:0 14px}
  .finale{padding:96px 48px}
  .askbox{width:min(720px,100%)}
}
@media (min-width:1600px){
  .wrap{width:min(1320px,100%)}
  .h-section{font-size:64px}
  .block{padding-top:144px}
}
/* ═════ phones: breathing room ═════ */
@media (max-width:600px){
  .block{padding-top:84px}
  .block-head{margin-bottom:24px}
  .tile{padding:28px 24px;gap:24px}
  .prod-body{padding:24px 22px 20px}
  .rv{padding:26px 22px}
  .finale{padding:52px 22px}
  .finale .lede{margin:12px auto 24px}
  .chips-q{flex-direction:column;align-items:stretch;width:100%;gap:10px}
  .chip-q{width:100%}
  .askbox textarea{min-height:96px}
  .timeline{gap:26px}
  .hero3-sub{margin:18px 0 26px}
  .shot-wrap{margin-top:48px}
}
@media (min-width:1500px){.content{max-width:1240px;margin:0 auto}}

/* ═════ effects adapted from React Bits (github.com/DavidHDev/react-bits, MIT + Commons Clause, see THIRD-PARTY-NOTICES.md) ═════
   Rewritten in plain CSS and JS for this site; all of it rests with Animations off. */

/* Aurora (aurora.js): fades in once WebGL2 has drawn; without it the CSS glow below shows instead */
canvas.aurora{position:absolute;inset:0;width:100%;height:100%;z-index:-1;opacity:0;transition:opacity 1.4s var(--ease);pointer-events:none}
canvas.aurora.on{opacity:1}
/* a soft dark wash behind the hero text, so every line keeps its contrast over the brightest aurora
   (measured on the rendered page); the aurora stays vivid round the edges */
.hero3-in{position:relative;isolation:isolate}
.hero3-in::before{content:"";position:absolute;inset:-12% -18% -18%;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(0,0,0,.72),rgba(0,0,0,.5) 55%,transparent)}

/* BlurText: the headline arrives word by word out of a blur */
.motion .h-hero{animation:none}
.motion .h-hero .bw{display:inline-block;animation:blur-in .95s cubic-bezier(.2,.8,.2,1) both}
.motion .h-hero .b2{animation-delay:.12s}
.motion .h-hero .b3{animation:blur-in .95s cubic-bezier(.2,.8,.2,1) .26s both,sheen 1.8s .7s var(--ease) both}
@keyframes blur-in{from{opacity:0;filter:blur(14px);transform:translateY(18px)}}

/* ScrollReveal: section headings arrive word by word as they scroll in (motion.js splits the words) */
.motion .sw{display:inline-block}
.motion [data-reveal]:not(.in) .sw{opacity:0}
.motion .in .sw{animation:blur-in .7s cubic-bezier(.2,.8,.2,1) calc(var(--i,0) * 70ms + .1s) both}

/* ShinyText: a light sweeps across the name in the "New" pill (white to off-white, always readable) */
.shine{background:linear-gradient(110deg,#F5F5F7 40%,#FFFFFF 50%,#F5F5F7 60%) 100% 0/250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.motion .shine{background-image:linear-gradient(110deg,#C7C7CC 38%,#FFFFFF 50%,#C7C7CC 62%);animation:shine 3.6s linear infinite}   /* #C7C7CC on the pill 8:1 */
@keyframes shine{from{background-position:100% 0}to{background-position:-150% 0}}

/* StarBorder: a light travels round the edge of the main button. Only a rotation animates (GPU);
   the button's own colour covers the middle, so the text keeps its 4.7:1. */
.hero3-cta .btn.go{isolation:isolate}
.hero3-cta .btn.go::before{content:"";position:absolute;inset:-160%;z-index:-2;background:conic-gradient(from 0deg,transparent 0 68%,rgba(255,190,205,.95) 82%,transparent 95%);animation:spin 3.4s linear infinite;pointer-events:none}
.hero3-cta .btn.go::after{content:"";position:absolute;inset:2px;z-index:-1;border-radius:inherit;background:radial-gradient(130% 160% at var(--gx,30%) 0%,#E11D48 0%,#D11743 45%,#A3123C 100%);pointer-events:none}
html:not(.motion) .hero3-cta .btn.go::before{display:none}

/* ClickSpark (motion.js): the canvas it draws on */
canvas.sparks{position:fixed;inset:0;width:100%;height:100%;z-index:90;pointer-events:none}
.hero3-cta .more{color:#FF8A9A}   /* lighter link over the aurora: 6.5:1 at its brightest */

/* ═════ Apple pass ═════
   Measured on apple.com (Nov 2026) and applied here on black: a thin bar with small evenly spread links,
   semibold headlines (80px hero, 48px sections), a filled + outlined pill pair, promo tiles two across
   with 12px gaps, centred product cards, 12px footer print. */

/* type: Apple's sizes and weight 600 */
.h-hero{font-size:clamp(44px,6.4vw,80px);font-weight:600;line-height:1.05;letter-spacing:-.015em}
.h-section{font-size:clamp(32px,4vw,48px);font-weight:600;line-height:1.08;letter-spacing:-.003em}
.h-page{font-weight:600;letter-spacing:-.003em}
.hero3-sub{font-size:clamp(21px,2vw,28px);line-height:1.14;font-weight:400;letter-spacing:.007em;color:var(--ink);max-width:26em;margin:14px 0 26px}
.lede{font-size:21px;line-height:1.38;letter-spacing:.011em}
@media (min-width:1280px){.h-hero{font-size:80px}.hero3-sub{font-size:28px}}
@media (min-width:1600px){.h-hero{font-size:96px}.h-section{font-size:56px}}

/* the bar: thin, small links spread evenly across the middle */
.topbar .wrap{min-height:48px;gap:12px}
.topbar .brand{font-size:15px;gap:8px}
.topbar .brand .mark{width:22px;height:22px;border-radius:6px}
.topbar nav{flex:1;justify-content:center;gap:clamp(4px,3vw,36px)}
.topbar nav a{font-size:12px;letter-spacing:-.01em;color:var(--ink-2);padding:0 8px}
.topbar nav a::after{display:none}
.topbar nav a[aria-current]{color:var(--ink);font-weight:400}
.topbar .end{margin-left:0}
/* a small 32px pill drawn inside a 44px-tall link, so it looks light but is still easy to tap */
.topbar .end .btn.go,.topbar .end .btn.go:hover{min-height:44px;padding:0 14px;font-size:12px;margin-left:6px;isolation:isolate;background:none;box-shadow:none}
.topbar .end .btn.go::before{content:"";position:absolute;inset:6px 0;z-index:-1;border-radius:980px;background:linear-gradient(180deg,#E11D48,#B5143F);box-shadow:inset 0 1px 0 rgba(255,255,255,.34)}
.topbar .end .btn svg{width:14px;height:14px}
.topbar .icon-btn svg{width:17px;height:17px}
.progress{display:none!important}

/* the pill pair: filled, and outlined in the link colour (7.7:1 on black, 6.2:1 on a tile) */
.btn{font-weight:400;letter-spacing:-.022em}
.btn.line,.btn.line:hover{background:transparent;box-shadow:inset 0 0 0 1px var(--link);color:var(--link);filter:none}
.btn.line:hover{background:var(--tint-a)}
.btn.go,.btn.go:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.34),inset 0 -3px 10px rgba(80,0,20,.4)}   /* flat pill: the glass edge, no outer glow */
.hero3-cta{gap:14px}
.hero3-cta .btn.go::before,.hero3-cta .btn.go::after{display:none}
.btn.lg{min-height:44px;padding:0 22px}

/* promo tiles */
.promos{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.promo{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:580px;padding:56px 28px 0;border-radius:var(--r-xl);background:#161617;overflow:hidden}
.promo:first-child{grid-column:1/-1;min-height:624px}
.promo h3{font-size:clamp(32px,3.4vw,48px);font-weight:600;letter-spacing:-.003em;line-height:1.08}
.promo:first-child h3{font-size:clamp(40px,4.4vw,56px)}
.promo-sub{margin:6px 0 0;font-size:clamp(19px,1.7vw,24px);line-height:1.17;color:var(--ink);max-width:22em}
.promo-meta{margin:10px 0 0;font-size:14px;color:var(--ink-3)}
.promo-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.promo-cta .btn{min-height:44px;font-size:17px;padding:0 21px}
.promo-art{flex:1;display:grid;place-items:center;width:100%;padding:36px 0 56px}
.item.xl{width:clamp(132px,16vw,196px);height:clamp(132px,16vw,196px);border-radius:22.5%;font-size:clamp(44px,5.4vw,68px);font-weight:600;letter-spacing:-.02em;background-image:linear-gradient(160deg,rgba(255,255,255,.3),rgba(255,255,255,0) 46%,rgba(0,0,0,.28));box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 0 0 1px rgba(255,255,255,.08),0 40px 70px -28px rgba(0,0,0,.9);transition:transform .6s var(--ease)}
.promo:hover .item.xl{transform:scale(1.04)}

/* product cards: centred like a line-up (name, one line, fine print, actions) */
.prod{background:#161617}
.prod-art{height:190px;background-image:linear-gradient(160deg,rgba(255,255,255,.22),rgba(255,255,255,0) 50%,rgba(0,0,0,.25))}
.prod-body{align-items:center;text-align:center;padding:26px 24px 26px;gap:8px}
.prod-top{flex-direction:column;gap:8px}
.prod-top h2,.prod-top h3{font-size:28px;flex:none}
.pill-price{order:-1;padding:0;background:none;font-size:12px;font-weight:600;color:var(--link)}
.prod p{font-weight:600;color:var(--ink);max-width:20em}
.prod-acts{justify-content:center;gap:6px 22px;padding-top:18px}

/* tiles and panels: Apple's graphite, flat */
.tile,.rv,.rform,.rdone,.rside,.rep,.finale,.panel,.facts div,.servers,.empty,.syslist,.dcard,.ask-box,.pager a{background-color:#161617}
.tile h3{font-size:28px;font-weight:600;letter-spacing:.007em}
.tile p{font-size:17px}
.block{padding-top:clamp(88px,11vw,150px)}
.block-head{margin-bottom:44px}

/* footer: 12px print on graphite */
.foot2{background:#161617;font-size:12px}
.foot-cols h2{font-size:12px}
.foot-cols a{font-size:12px}
.foot-legal{font-size:12px}

@media (max-width:860px){
  .topbar nav{flex:0 0 100%;justify-content:space-between;gap:0;margin:0 0 2px}
  .topbar nav a{padding:0 4px}
  .topbar .end{margin-left:auto}
  .promos{grid-template-columns:1fr}
  .promo,.promo:first-child{min-height:500px;padding-top:44px}
}
@media (max-width:600px){
  .hero3-cta{flex-direction:row;gap:12px}
  .promo-art{padding:28px 0 44px}
}

/* Liquid Glass lens (glass.js, Chromium): the chat button turns clearer so the bending rim shows.
   66% fill keeps its label 5.0:1 even with white text passing behind; the icon goes white for the same reason. */
.ask-launch.lens{background:rgba(28,28,30,.66);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 -1px 0 rgba(255,255,255,.12),inset 0 0 0 1px rgba(255,255,255,.1),inset 0 0 14px rgba(255,255,255,.07),0 18px 40px -16px rgba(0,0,0,.8)}
.ask-launch.lens svg{color:var(--ink)}
.lens-defs{position:absolute}
.hero3-cta .btn.line,.hero3-cta .btn.line:hover{color:#FF8A9A;box-shadow:inset 0 0 0 1px #FF8A9A}   /* over the aurora: 5.5:1 at its brightest (measured), where the normal link pink was 4.48 on phones */
/* a phone turned sideways keeps the bar on one row: the nav shares it instead of taking a row of its own */
@media (max-height:500px) and (orientation:landscape){.topbar nav{flex:1 1 auto;justify-content:center;gap:12px;margin:0}}

/* ═════ plugin panels (portal /plugin-panels) ═════
   A server card: a dark red frame around a graphite glass tile. With a mouse it lifts, tilts toward the
   pointer (motion.js TILT), carries the red .spot light, and a sheen sweeps across; still under html.calm. */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:24px}
.pcard{display:block;padding:clamp(14px,2.2vw,22px);border-radius:var(--r-xl);color:var(--ink);background:linear-gradient(160deg,#2A070C 0%,#160407 100%);box-shadow:0 0 0 1px rgba(255,77,109,.10)}
.pcard:hover{text-decoration:none}
.pcard:hover,.pcard:focus-visible{box-shadow:0 0 0 1px rgba(255,77,109,.30),0 26px 60px -26px var(--glow)}
.pcard-in{position:relative;overflow:hidden;border-radius:calc(var(--r-xl) - 8px);padding:clamp(20px,3vw,32px);background:linear-gradient(155deg,#1D1D1F 0%,#0B0B0C 42%,#0F0F11 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 0 1px rgba(255,255,255,.07),0 18px 40px -20px rgba(0,0,0,.9)}
.pcard-in::after{content:"";position:absolute;inset:-50%;pointer-events:none;background:linear-gradient(115deg,transparent 42%,rgba(255,255,255,.07) 50%,transparent 58%);translate:-35% 0;transition:translate .9s var(--ease)}
.pcard:hover .pcard-in::after{translate:35% 0}
.motion .pcard{transition:transform .35s var(--ease),translate .35s var(--ease),box-shadow .35s var(--ease)}
@media (hover:hover){.motion .pcard{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}}
.pcard-title{margin:0;text-align:center;font-size:clamp(24px,2.6vw,32px);font-weight:600;letter-spacing:-.01em}
.pcard-sub{margin:6px 0 0;text-align:center;color:var(--ink-3);font-size:14px}
.dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--ink-3);vertical-align:1px}
.dot.on{background:var(--ok);box-shadow:0 0 0 3px var(--tint-ok)}
.pcard hr{height:1px;margin:22px 0;border:0;background:linear-gradient(90deg,transparent,var(--line),transparent)}
.pcard-big{padding:6px 0;text-align:center}
.pcard-big b{display:block;font-size:clamp(72px,9vw,104px);font-weight:500;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.pcard-big span{display:block;margin-top:14px;color:var(--ink-2);font-size:17px}
.pcard-foot{display:grid;grid-template-columns:1fr 1fr}
.pcard-foot>div{min-width:0;padding:0 18px}
.pcard-foot>div:first-child{padding-left:0;border-right:1px solid var(--line)}
.pcard-foot>div:last-child{padding-right:0}
.pcard-k{display:block;margin-bottom:6px;color:var(--ink-3);font-size:13px}
.pcard-v{display:block;margin-bottom:18px;font-size:21px;font-weight:600}
.pcard-wait{margin:0;color:var(--ink-3);font-size:13px}
.pbar{display:block;width:100%;height:6px;border:0;border-radius:6px;overflow:hidden;background:rgba(255,255,255,.09);-webkit-appearance:none;appearance:none}
.pbar::-webkit-progress-bar{background:rgba(255,255,255,.09);border-radius:6px}
.pbar::-webkit-progress-value{background:linear-gradient(90deg,#7A1426,#C4163F);border-radius:6px}
.pbar::-moz-progress-bar{background:linear-gradient(90deg,#7A1426,#C4163F);border-radius:6px}
.pbar-row{display:flex;justify-content:space-between;gap:8px;margin-top:8px;color:var(--ink-2);font-size:13px;font-variant-numeric:tabular-nums}
.pempty{padding:clamp(28px,5vw,48px);border-radius:var(--r-xl);text-align:center}
.pempty p{max-width:34em;margin:10px auto 22px;color:var(--ink-2)}
.wip b{display:block;font-size:clamp(56px,10vw,96px);font-weight:600;letter-spacing:-.03em;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.calm .pcard,.calm .pcard:hover{transform:none;translate:none}
.calm .pcard-in::after{display:none}
@media (max-width:420px){
  .pcard-foot{grid-template-columns:1fr}
  .pcard-foot>div,.pcard-foot>div:first-child,.pcard-foot>div:last-child{padding:0}
  .pcard-foot>div:first-child{border-right:0;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:16px}
}

/* ═════ plugin panel pages (portal /plugin-panels/<id>/…) ═════ */
.pside-back{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:10px;color:var(--ink-2);font-size:15px}
.pside-back svg{flex:0 0 auto;width:20px;height:20px}
.pside-back:hover{text-decoration:none;color:var(--ink);background:var(--bg-3)}
.pside-server{margin:14px 12px 10px;padding:14px;border-radius:var(--r);background:linear-gradient(160deg,#2A070C,#160407);box-shadow:0 0 0 1px rgba(255,77,109,.14)}
.pside-server small{display:block;color:var(--ink-3);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.pside-server b{display:block;margin-top:2px;font-size:17px;overflow-wrap:anywhere}
.pname{display:inline-flex;align-items:center;gap:12px;padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;text-align:left}
.pname svg{width:22px;height:22px;color:var(--ink-3);transition:color .2s}
.pname:hover svg,.pname:focus-visible svg{color:var(--link)}
.pname-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:4px 0 6px}
.pname-form .input{flex:1 1 240px;max-width:420px;font-size:22px;font-weight:600}
.rlist{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.rrow{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:12px 16px;border-radius:var(--r);background:#161617;color:var(--ink);box-shadow:0 0 0 1px var(--line);transition:background .2s,box-shadow .2s}
.rlist a.rrow,.rp-people button,.rp-events button{text-decoration:none}
.rrow:hover,.rrow:focus-visible{text-decoration:none;background:#1F1F21;box-shadow:0 0 0 1px rgba(255,77,109,.35)}
.rhead{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:var(--bg-3);font-size:14px;font-weight:600;image-rendering:pixelated}
.rwho{min-width:0}.rwho b{display:block}.rwho small{display:block;color:var(--ink-3);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rcheck{display:inline-block;padding:3px 10px;border-radius:980px;background:var(--tint-a);color:var(--link);font-size:13px;font-weight:600;white-space:nowrap;vertical-align:middle}
.rmeta{display:grid;justify-items:end;color:var(--ink-2);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:640px){.rrow{grid-template-columns:40px minmax(0,1fr) auto}.rmeta{grid-column:2/-1;justify-items:start}}
/* the replay player */
.rp-head .h-page{font-size:clamp(26px,3vw,36px)}
.rp-back{font-size:15px}
.rp{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"stage side" "bar side";gap:14px}
.rp-stage{grid-area:stage;position:relative;overflow:hidden;min-height:clamp(320px,62vh,720px);border-radius:var(--r-lg);background:#171C26;box-shadow:0 0 0 1px var(--line)}
.rp-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab;touch-action:none}
.rp-stage canvas:active{cursor:grabbing}
.rp-tags{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.rp-tag{position:absolute;left:0;top:0;padding:2px 7px;border-radius:5px;background:rgba(0,0,0,.6);color:#fff;font:600 12px var(--mono);white-space:nowrap}
.rp-tag.self{color:#00E5FF}
.rp-load{position:absolute;left:50%;top:50%;translate:-50% -50%;margin:0;padding:10px 16px;border-radius:12px;background:rgba(0,0,0,.65);color:var(--ink-2);text-align:center;max-width:90%}
.rp-hint{position:absolute;left:12px;bottom:10px;margin:0;padding:4px 10px;border-radius:8px;background:rgba(0,0,0,.5);color:var(--ink-3);font-size:12px;pointer-events:none}
.rp-bar{grid-area:bar;display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:10px 14px;border-radius:var(--r);background:#161617;box-shadow:0 0 0 1px var(--line)}
.rp-play{width:44px;height:44px;padding:0;display:grid;place-items:center}
.rp-play svg{width:20px;height:20px}
.rp-time{min-width:96px;color:var(--ink-2);font:500 14px var(--mono)}
.rp-track{position:relative;flex:1 1 220px;display:flex;align-items:center;min-height:44px}
.rp-track input{width:100%;accent-color:var(--a)}
.rp-marks{position:absolute;left:0;right:0;top:50%;height:0;pointer-events:none}
.rp-marks i{position:absolute;top:-9px;width:3px;height:18px;margin-left:-1px;border-radius:2px;background:#FF3B3B;box-shadow:0 0 6px rgba(255,59,59,.7)}
.rp-speed{display:flex;gap:4px;padding:3px;border-radius:980px;background:var(--bg-2)}
.rp-speed button{min-width:44px;min-height:36px;padding:0 10px;border:0;border-radius:980px;background:none;color:var(--ink-2);font:600 13px var(--font);cursor:pointer}
.rp-speed button[aria-pressed="true"]{background:var(--a);color:#fff}
.rp-side{grid-area:side;display:grid;gap:14px;align-content:start;min-width:0}
.rp-card{padding:16px;border-radius:var(--r);background:#161617;box-shadow:0 0 0 1px var(--line)}
.rp-card .h-sub{margin:0 0 8px;font-size:19px}
.rp-card p{margin:0 0 10px;font-size:14px}
.rp-people,.rp-events{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.rp-people button,.rp-events button{display:flex;gap:10px;align-items:baseline;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:10px;background:var(--bg-2);color:var(--ink);text-align:left;font-size:14px;cursor:pointer}
.rp-people button:hover,.rp-events button:hover{background:var(--bg-3)}
.rp-events{max-height:340px;overflow-y:auto}
.rp-events time{flex:0 0 auto;color:var(--ink-3);font:500 12px var(--mono)}
.rp-events span{min-width:0;overflow-wrap:anywhere}
.rp-flag{color:var(--link)}
.rp-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.rp-stats div{padding:8px 10px;border-radius:10px;background:var(--bg-2)}
.rp-stats dt{color:var(--ink-3);font-size:12px}.rp-stats dd{margin:2px 0 0;font-weight:600;font-size:15px}
.rp-k{margin:10px 0 6px!important;color:var(--ink-3);font-size:12px!important;text-transform:uppercase;letter-spacing:.06em}
.rp-fx{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.rp-fx li{padding:3px 9px;border-radius:980px;background:var(--tint-ok);color:var(--ok);font-size:12px;font-weight:600}
.rp-inv{list-style:none;margin:0 0 4px;padding:0;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px}
.rp-inv-gear{grid-template-columns:repeat(5,minmax(0,1fr))}
.rp-slot{display:grid;place-items:center;aspect-ratio:1;border-radius:5px;background:#2A2A2D;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);font:700 9px var(--mono);color:var(--ink);overflow:hidden}
.rp-slot.none{background:#1E1E20}
.rp-slot{position:relative}.rp-slot img{width:78%;height:78%;image-rendering:pixelated}
.rp-count{position:absolute;right:2px;bottom:0;font:700 10px var(--mono);color:#fff;text-shadow:1px 1px 0 #3f3f3f}
.rp-stage,.rp-stage canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.rp-stage canvas{touch-action:none}
.rp-card .btn.sm{margin-top:10px}
@media (max-width:1100px){.rp{grid-template-columns:1fr;grid-template-areas:"stage" "bar" "side"}.rp-stage{min-height:56vh}}
@media (max-width:640px){.rp-hint{display:none}.rp-speed{flex:1 1 100%;justify-content:space-between}}
.rp-assets{position:absolute;inset:0;z-index:2;display:grid;align-content:center;justify-items:start;gap:10px;padding:clamp(18px,4vw,40px);overflow-y:auto;background:rgba(10,10,12,.92)}
.rp-assets[hidden]{display:none}
.rp-assets .h-sub{margin:0}
.rp-assets p{margin:0;max-width:40em;color:var(--ink-2)}
.rp-paths{margin:0;padding:0;list-style:none;display:grid;gap:6px;font-size:14px}
.rp-paths b{display:inline-block;min-width:76px;color:var(--ink)}
.rp-paths code{font:13px var(--mono);color:var(--ink-2);overflow-wrap:anywhere}
.rp-note{font-size:14px;color:var(--ink-3)!important}
.rp-assets-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.rp-assets-acts label{position:relative;cursor:pointer}
.rp-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.rp-file:focus-visible+*{outline:3px solid var(--focus)}
.rp-assets-acts label:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.rp-assets-msg{min-height:1.4em;font-size:14px}
.rp-tex{min-height:36px}

/* ═════ panel tabs: Live View, Profiles, Ban Queue, Graphs, Settings, Alerts, Staff ═════ */
.lv-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.lv-stat{padding:14px 16px;border-radius:var(--r);background:#161617;box-shadow:0 0 0 1px var(--line)}
.lv-stat span{display:block;color:var(--ink-3);font-size:13px}.lv-stat b{display:block;margin-top:4px;font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
.lv-stat b.ok{color:var(--ok)}
.lv-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:1000px){.lv-grid{grid-template-columns:1fr}}
.lv-table{width:100%;border-collapse:collapse;font-size:14px}
.lv-table th,.lv-table td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;font-weight:400;vertical-align:middle}
.lv-table thead th{color:var(--ink-3);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.lv-table td:nth-child(2),.lv-table td:nth-child(3){white-space:nowrap}
.lv-who{display:flex;align-items:center;gap:10px;color:var(--ink)}.lv-who:hover{text-decoration:none}.lv-who .rhead{width:32px;height:32px}
.sus{display:inline-block;min-width:34px;padding:2px 8px;border-radius:980px;background:var(--bg-3);text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
.sus.warm{background:var(--tint-warn);color:var(--warn)}.sus.hot{background:var(--tint-bad);color:var(--bad)}
.lv-feed{list-style:none;margin:0;padding:0;display:grid;gap:4px;max-height:560px;overflow-y:auto;font-size:14px}
.lv-feed li{display:flex;gap:10px;align-items:baseline;padding:7px 8px;border-radius:10px;background:var(--bg-2)}
.lv-feed li.bad{box-shadow:inset 3px 0 0 var(--bad)}
.lv-feed time{flex:0 0 auto;color:var(--ink-3);font:500 12px var(--mono)}
.lv-feed span{min-width:0;overflow-wrap:anywhere}.lv-feed .rhead{display:inline-grid;width:20px;height:20px;vertical-align:-5px;border-radius:4px;font-size:9px}
.psearch{display:flex;gap:10px;align-items:center;margin-bottom:16px;max-width:520px}.psearch .input{flex:1}
.plist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:10px}
.prow{display:flex;align-items:center;gap:12px;padding:12px;border-radius:var(--r);background:#161617;color:var(--ink);box-shadow:0 0 0 1px var(--line)}
.plist a.prow{text-decoration:none}.prow:hover,.prow:focus-visible{background:#1F1F21;box-shadow:0 0 0 1px rgba(255,77,109,.35)}
.prow .rhead{width:48px;height:48px;flex:0 0 auto}.prow .rcheck{margin-left:auto}
.prof-head{align-items:center}.prof-head>div:first-child{flex:0 0 auto}.prof-head .rhead{width:96px;height:96px;border-radius:14px;font-size:28px}
.prof-acts{flex:0 0 auto!important;display:flex;gap:10px}
.prof-sub{margin-top:20px!important}
.bars-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bars-list li{position:relative;display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:8px;background:var(--bg-2);font-size:14px;overflow:hidden;isolation:isolate}
.bars-list li i{position:absolute;inset:0 auto 0 0;z-index:-1;background:rgba(255,107,125,.22);border-radius:8px 4px 4px 8px}
.bars-list b{font-variant-numeric:tabular-nums}
.pnote{display:grid;gap:8px;margin-bottom:10px}.pnote .btn{justify-self:start}
.pnotes{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:14px}
.pnotes li{padding:8px 10px;border-radius:10px;background:var(--bg-2)}.pnotes p{margin:4px 0 0;color:var(--ink-2);overflow-wrap:anywhere}
.verdict{display:inline-block;padding:2px 9px;border-radius:980px;font-size:12px;font-weight:600}
.verdict.ok{background:var(--tint-ok);color:var(--ok)}.verdict.bad{background:var(--tint-bad);color:var(--bad)}
.rp-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.qrow{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto auto;gap:14px;align-items:center;padding:12px 16px;border-radius:var(--r);background:#161617;box-shadow:0 0 0 1px var(--line)}
.qacts{display:flex;gap:6px}
@media (max-width:760px){.qrow{grid-template-columns:40px minmax(0,1fr)}.qrow>:nth-child(n+3){grid-column:2}}
.grange{display:inline-flex;gap:4px;padding:3px;margin-bottom:14px;border-radius:980px;background:var(--bg-2)}
.grange button{min-height:40px;padding:0 16px;border:0;border-radius:980px;background:none;color:var(--ink-2);font:600 14px var(--font);cursor:pointer}
.grange button[aria-pressed="true"]{background:var(--a);color:#fff}
.ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:14px}
.gplot{position:relative;min-height:190px}
.gsvg{display:block;max-width:100%;height:auto}
.ggrid-line{stroke:rgba(255,255,255,.08);stroke-width:1}
.gaxis{fill:var(--ink-3);font:11px var(--font)}
.gline{fill:none;stroke:#FF6B7D;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.gcross{stroke:rgba(255,255,255,.35);stroke-width:1}
.gdot{fill:#FF6B7D;stroke:#161617;stroke-width:2}
.ghit{fill:transparent;cursor:crosshair}
.gtip{position:absolute;pointer-events:none;padding:6px 10px;border-radius:8px;background:rgba(10,10,12,.92);box-shadow:var(--shadow);font-size:13px;white-space:nowrap}
.gtip b{display:block}.gtip span{color:var(--ink-3)}
.gempty{padding:60px 0;text-align:center}
.gtable summary{margin-top:8px;color:var(--link);font-size:13px;cursor:pointer}.gtable table{margin-top:8px}
.sfam{margin-bottom:14px;overflow-x:auto}
.stable{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
.stable{table-layout:fixed}.stable th:nth-child(2),.stable td:nth-child(2),.stable th:nth-child(4),.stable td:nth-child(4){width:84px}.stable th:nth-child(3),.stable td:nth-child(3){width:130px}.stable th:nth-child(5),.stable td:nth-child(5){width:190px}
.stable th,.stable td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.stable thead th{color:var(--ink-3);font-size:12px;font-weight:400;text-transform:uppercase;letter-spacing:.05em}
.stable tbody th{font-weight:400;max-width:420px}.stable tbody th b{display:block}.stable tbody th small{display:block;color:var(--ink-3)}
.stable .hint{color:var(--warn)!important;margin-top:4px}
.stable summary{color:var(--link);cursor:pointer}
.tune{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:6px;color:var(--ink-2);font-size:13px}
.input.sm{width:96px;min-height:36px;padding:4px 10px;font-size:14px}
.switch input{width:22px;height:22px;accent-color:var(--a);cursor:pointer}
.aform{display:grid;gap:8px;max-width:620px}.aform .acts{display:flex;gap:10px;margin-top:8px}
.check{display:flex;gap:10px;align-items:center;margin-top:6px}.check input{width:20px;height:20px;accent-color:var(--a)}
.invite-link{margin:10px 0 0;overflow-wrap:anywhere}.invite-link code{font:13px var(--mono)}
.pform{display:grid;gap:8px;min-width:min(420px,86vw)}
.pkinds{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;border:0}.pkinds legend{margin-bottom:6px;color:var(--ink-3);font-size:13px}
.pkinds label{display:flex;gap:6px;align-items:center;min-height:36px}
.facts+.lv-grid{margin-top:12px}

/* Reports tab */
.verdict.warn{background:var(--tint-warn);color:var(--warn)}
.rep .rwho small{display:block}
.rchat{margin-top:6px}.rchat summary{color:var(--link);cursor:pointer;font-size:13px}
.rchat pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;padding:8px 10px;border-radius:8px;background:var(--bg-2);font:12px/1.5 var(--mono);max-height:220px;overflow:auto}
.grange a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:980px;color:var(--ink-2);font:600 14px var(--font);text-decoration:none}.grange a[aria-pressed="true"]{background:var(--a);color:#fff}
