/* wither — site styles
   VOICE: confident, quiet, technical. IDEA: a control room at night.
   COLOUR: taken from the logo — midnight indigo #0e0e0e, navy #242424, slate lavender #717171, periwinkle #969696, pale lilac #eeeeee.
   TYPE: Geist / Geist Mono. LAYOUT: centred 1180px column, pill nav, sidebar docs. */
:root {
  --bg: #0e0e0e;
  --bg-2: #131313;
  --panel: #161616;
  --panel-2: #1e1e1e;
  --line: rgba(185, 189, 240, .075);
  --line-2: rgba(185, 189, 240, .14);
  --text: #f2f2f2;
  --muted: #b2b2b2;
  --dim: #7c7c7c;
  --accent: #a8a8a8;
  --accent-2: #c3c6f5;
  --teal: #d6d9f6;
  --blurple: #828282;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --r: 14px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: rgba(168, 168, 168, .38); }
.ic { flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- atmosphere ---------- */
.nebula { position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background: radial-gradient(70vmax 46vmax at 50% -12%, rgba(168, 168, 168, .13), transparent 70%); }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gridlines { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; padding: 14px 0; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(9, 9, 11, .78); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.02em; justify-self: start; }
.brand svg { filter: drop-shadow(0 0 14px rgba(168, 168, 168, .45)); }
.pillnav { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(18, 18, 22, .7); backdrop-filter: blur(10px); }
.pillnav a { padding: 7px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); font-weight: 500; transition: color .15s, background .15s; }
.pillnav a:hover { color: var(--text); }
.pillnav a.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 8px rgba(0, 0, 0, .4); }
.nav-cta { justify-self: end; }
.nav .menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font: 600 14px var(--sans);
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; transition: transform .15s, border-color .15s, background .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { border-color: rgba(255, 255, 255, .22); background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: linear-gradient(180deg, #5a5fe0, #828282); border-color: rgba(255, 255, 255, .18); color: #fff; box-shadow: 0 0 0 1px rgba(168, 168, 168, .3), 0 8px 30px -8px rgba(168, 168, 168, .7); }
.btn-primary:hover { background: linear-gradient(180deg, #6469ea, #4a4fd6); box-shadow: 0 0 0 1px rgba(168, 168, 168, .5), 0 10px 40px -6px rgba(168, 168, 168, .85); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 56px; text-align: center; }
.tagline { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(18, 18, 22, .6); }
.tagline b { background: rgba(168, 168, 168, .16); color: var(--accent-2); font-weight: 600; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.hero h1 { margin: 26px auto 0; font-size: clamp(44px, 8vw, 92px); line-height: 1; letter-spacing: -.055em; font-weight: 700; max-width: 900px; text-wrap: balance; }
.shine { background: linear-gradient(100deg, #fff 20%, var(--accent-2) 40%, var(--teal) 55%, #fff 75%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: -250% 0; } }
.hero p.lead { margin: 22px auto 0; max-width: 600px; font-size: 18px; color: var(--muted); text-wrap: balance; }
.hero .cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stats { margin: 64px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: rgba(14, 14, 17, .7); backdrop-filter: blur(6px); max-width: 920px; }
.stat { padding: 20px 22px; text-align: left; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 28px; letter-spacing: -.04em; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--dim); }

/* ---------- discord mock ---------- */
.mock { background: #242424; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; overflow: hidden; text-align: left; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #bbbbbb; font-weight: 600; font-size: 14px; }
.mock-bar .dots { display: flex; gap: 6px; margin-right: 8px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3e3e3e; }
.mock-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 16px; font-size: 14.5px; }
.msg { display: flex; gap: 14px; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; overflow: hidden; }
.av.bot { background: radial-gradient(circle at 30% 30%, #a99dff, #5b4bd8); }
.av.user { background: linear-gradient(135deg, #484848, #282828); }
.who { font-weight: 600; color: #f2f3f5; display: flex; align-items: center; gap: 6px; }
.who time { color: #878787; font-size: 12px; font-weight: 400; }
.tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 700; letter-spacing: .02em; }
.txt { color: #dedede; }
.txt code { font-size: 13.5px; background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 4px; }
.mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; padding: 0 3px; border-radius: 3px; font-weight: 500; }
.dembed { margin-top: 6px; max-width: 460px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; background: #2e2e2e; border-left: 4px solid var(--accent); border-radius: 4px; padding: 12px 16px 14px; color: #dedede; font-size: 14px; }
.dembed .e-author { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dembed .e-author img { width: 22px; height: 22px; border-radius: 50%; }
.dembed .e-title { font-weight: 700; color: #f2f3f5; font-size: 15px; }
.dembed .e-desc { white-space: pre-wrap; line-height: 1.45; }
.dembed .e-thumb { grid-row: span 3; grid-column: 2; width: 72px; height: 72px; border-radius: 6px; object-fit: cover; background: #3e3e3e; }
.dembed .e-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.dembed .e-field { grid-column: 1 / -1; } .dembed .e-field.inline { grid-column: auto; }
.dembed .e-field > b { display: block; font-size: 13px; color: #f2f3f5; }
.dembed .e-image { grid-column: 1 / -1; width: 100%; max-height: 260px; object-fit: cover; border-radius: 6px; background: #3e3e3e; }
.dembed .e-footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #bbbbbb; }
.dembed .e-footer img { width: 18px; height: 18px; border-radius: 50%; }
.dbtns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dbtn { display: inline-flex; align-items: center; gap: 6px; background: #535353; color: #fff; font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 4px; }
.placeholder-img { display: grid; place-items: center; color: #878787; font-size: 11px; font-family: var(--mono); }

/* ---------- sections ---------- */
section.band { padding: 110px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.05; font-weight: 650; text-wrap: balance; }
.sub { color: var(--muted); font-size: 16.5px; max-width: 560px; margin-top: 14px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }

.spot { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(168, 168, 168, .16), transparent 45%); }
.spot:hover::before { opacity: 1; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), rgba(213, 213, 213, .55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::after { opacity: 1; }

.sections-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.sec-card { padding: 26px; grid-column: span var(--span, 4); display: flex; flex-direction: column; gap: 16px; }
.sec-card h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.sec-card p { color: var(--muted); font-size: 14.5px; }
.sec-card .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(168, 168, 168, .18), rgba(168, 168, 168, .04)); border: 1px solid rgba(168, 168, 168, .25); color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, .02); transition: color .15s, border-color .15s; }
a.chip:hover { color: var(--text); border-color: rgba(168, 168, 168, .5); }
.chip .n { font-family: var(--mono); font-size: 11px; color: var(--dim); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.editor { display: flex; flex-direction: column; }
.editor-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.editor-head .presets { display: flex; gap: 6px; flex-wrap: wrap; }
.editor-head button { font: 500 12.5px var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.editor-head button:hover, .editor-head button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
textarea.script { flex: 1; min-height: 300px; width: 100%; resize: vertical; border: 0; outline: none; background: transparent; color: #d6d3ff; font: 13.5px/1.65 var(--mono); padding: 16px; }
.preview-pane { padding: 18px; background: #242424; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .08); }
.errors { margin-top: 10px; font-size: 13px; color: var(--warn); font-family: var(--mono); }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-top: 28px; }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee code { font-size: 13px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--bg-2); white-space: nowrap; }

.cta-band { margin-top: 110px; padding: 56px; border-radius: 22px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(600px 200px at 50% 0%, rgba(168, 168, 168, .25), transparent 70%), var(--bg-2); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--dim); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- page header (commands / docs / status / faq) ---------- */
.page-head { padding: 56px 0 30px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.page-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); margin-bottom: 18px; color: var(--text); }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.04em; font-weight: 650; line-height: 1.1; }
.page-head p { color: var(--muted); margin-top: 6px; }

.searchbox { display: flex; align-items: center; gap: 10px; height: 46px; width: min(100%, 560px); padding: 0 6px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168, 168, 168, .14); }
.searchbox input { flex: 1; border: 0; outline: none; background: transparent; color: var(--text); font: 15px var(--sans); height: 100%; }
.searchbox input::placeholder { color: var(--dim); }
.searchbox kbd { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; }
.searchbox select { height: 34px; border: 0; border-left: 1px solid var(--line-2); background: transparent; color: var(--text); font: 500 13.5px var(--sans); padding: 0 10px; cursor: pointer; max-width: 170px; }
.searchbox select option { background: var(--panel); }

/* ---------- commands layout ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 28px 0 0; }
.sidebar { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #2e2e2e transparent; }
.side-label { font-size: 12.5px; color: var(--dim); font-weight: 500; margin: 18px 10px 6px; }
.side-label:first-child { margin-top: 4px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.side-link .ib { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s; }
.side-link .n { margin-left: auto; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.side-link:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.side-link.active { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.side-link.active .ib { color: var(--accent-2); border-color: rgba(168, 168, 168, .4); }
.side-link.hidden { display: none; }

.cat { margin-bottom: 44px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cat-head .ib { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); color: var(--accent-2); }
.cat-head h2 { font-size: 22px; letter-spacing: -.025em; }
.cat-head p { color: var(--muted); font-size: 14px; }
.notice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 30px; }
.notice .ib { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(251, 191, 36, .1); color: var(--warn); border: 1px solid rgba(251, 191, 36, .25); }
.notice b { display: block; font-size: 14.5px; } .notice span { color: var(--muted); font-size: 13.5px; }

.cmd { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 8px; transition: border-color .15s, background .15s; }
.cmd:hover { border-color: var(--line-2); background: #222222; }
.cmd-row { width: 100%; display: grid; grid-template-columns: minmax(150px, 260px) minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 18px; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.cmd-name { font: 600 14px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.cmd-name .pfx { color: var(--dim); }
.cmd-desc { color: #cecece; font-size: 14.5px; }
.cmd-meta { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.cmd-meta .ic { transition: transform .2s; }
.cmd.open .cmd-meta .ic { transform: rotate(90deg); }
.cmd-body { display: none; border-top: 1px solid var(--line); padding: 14px 18px 16px; }
.cmd.open .cmd-body { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }
.detail { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.usage { font: 13px var(--mono); color: var(--accent-2); background: var(--bg-2); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 8px; cursor: copy; transition: color .15s, border-color .15s; }
.usage.copied { color: var(--ok); border-color: rgba(74, 222, 128, .4); }
.perm { font-size: 12px; color: var(--warn); border: 1px solid rgba(251, 191, 36, .25); border-radius: 999px; padding: 3px 10px; }
.alias { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; font-family: var(--mono); }
.subs { margin-top: 12px; display: grid; gap: 6px; }
.sub-row { display: grid; grid-template-columns: minmax(150px, 280px) minmax(0, 1fr); gap: 16px; padding: 10px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); align-items: start; }
.sub-row .cmd-name { font-size: 13px; }
.sub-row .cmd-desc { font-size: 14px; }
.sub-row .detail { grid-column: 1 / -1; }
.empty { text-align: center; color: var(--dim); padding: 70px 0; }
mark { background: rgba(168, 168, 168, .28); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- docs ---------- */
.doc { max-width: 760px; }
.doc section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 28px; margin-bottom: 14px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; letter-spacing: -.015em; }
.doc p, .doc li { color: #cecece; font-size: 15.5px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.doc a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(213, 213, 213, .35); text-underline-offset: 3px; }
.doc code { font-size: 13.5px; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #e2dfff; overflow-wrap: anywhere; }
.codeblock { position: relative; margin: 14px 0; }
.codeblock pre { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: #dcd8ff; }
.codeblock pre code { background: none; border: 0; padding: 0; }
.codeblock .copy { position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 10px; font-size: 12.5px; }
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 500; font-size: 13px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #cecece; vertical-align: top; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(168, 168, 168, .3); background: rgba(168, 168, 168, .07); margin: 16px 0; }
.callout .ic { color: var(--accent-2); margin-top: 2px; }
.callout.warn { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .06); } .callout.warn .ic { color: var(--warn); }

/* ---------- status ---------- */
.status-hero { padding: 26px; display: flex; align-items: center; gap: 18px; margin: 28px 0 18px; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--dim); position: relative; flex: none; }
.pulse.ok { background: var(--ok); } .pulse.bad { background: var(--bad); }
.pulse.ok::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ok); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { opacity: .8; transform: scale(.5); } to { opacity: 0; transform: scale(1.6); } }
.status-hero h2 { font-size: 22px; } .status-hero p { color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 18px 20px; } .kpi span { color: var(--dim); font-size: 13px; } .kpi b { display: block; font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.shards { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.shard { padding: 14px 16px; display: grid; gap: 4px; font-size: 13.5px; }
.shard .top { display: flex; align-items: center; gap: 8px; font-weight: 600; } .shard .top i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.shard .top i.off { background: var(--bad); } .shard span { color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 30px auto 0; display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--dim); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--accent-2); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq .ans code { font-size: 13px; background: var(--panel-2); padding: 1px 6px; border-radius: 6px; color: #e2dfff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sections-grid .sec-card { grid-column: span 6; }
  .sections-grid .sec-card:last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .sidebar .side-label { display: none; }
  .sidebar .side-link { flex: none; } .sidebar .side-link .n { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav .wrap { grid-template-columns: auto 1fr auto; }
  .pillnav { display: none; position: absolute; top: 64px; left: 16px; right: 16px; flex-direction: column; border-radius: 16px; background: rgba(14, 14, 17, .97); }
  .pillnav.open { display: flex; }
  .pillnav a { padding: 12px 16px; border-radius: 10px; }
  .nav .menu-btn { display: inline-flex; justify-self: end; width: 40px; padding: 0; }
  .nav-cta { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sections-grid .sec-card { grid-column: 1 / -1; }
  .cmd-row { grid-template-columns: minmax(0, 1fr) auto; } .cmd-row .cmd-desc { grid-column: 1 / -1; grid-row: 2; }
  .sub-row { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 36px 22px; }
  .searchbox select { max-width: 120px; }
  .dembed .e-fields { grid-template-columns: minmax(0, 1fr); }
}

/* ================= bleed-style home ================= */
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 22px rgba(168, 168, 168, .35); }
.btn-blurple { background: linear-gradient(180deg, #959595, #757575); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 10px 30px -12px rgba(149, 149, 149, .9); }
.btn-blurple:hover { background: linear-gradient(180deg, #a0a0a0, #808080); }
.btn-dark { background: #222222; border-color: #353535; color: var(--text); height: 52px; padding: 0 22px; font-size: 15.5px; }
.btn-dark:hover { background: #212121; border-color: #404040; }
.hl { background: linear-gradient(90deg, #c9cdf6, #afafaf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-teal { color: #c4c4c4; }

.hero2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; min-height: calc(100vh - 160px); padding: 60px 0 30px; }
.hero2 h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.08; letter-spacing: -.045em; font-weight: 650; text-wrap: balance; }
.hero2 .lead { margin-top: 26px; color: #d4d4d4; font-size: 17.5px; line-height: 1.85; max-width: 560px; }
.hero2 .cta { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.orbit { position: relative; height: 520px; }
.orbit .art { position: absolute; inset: 20px 0 0 40px; display: grid; place-items: center; }
.orbit .art::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(168, 168, 168, .32), rgba(113, 113, 113, .18) 45%, transparent 70%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
.orbit .art::after { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(213, 213, 213, .16); animation: spin 60s linear infinite; }
.orbit .art img { position: relative; width: min(100%, 440px); height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .65)); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }
.float-pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 9px; border-radius: 14px; background: rgba(22, 22, 22, .85); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(8px); font: 600 14px var(--mono); color: #f2f2f2; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); animation: bob 6s ease-in-out infinite; }
.float-pill .ib { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #212121; border: 1px solid #3a3a3a; color: #d3d6f5; }
.float-pill:nth-of-type(2) { animation-delay: -1.5s; } .float-pill:nth-of-type(3) { animation-delay: -3s; } .float-pill:nth-of-type(4) { animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.powering { text-align: center; color: var(--muted); font-size: 17px; padding: 10px 0 20px; }
.powering b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

.feature-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 56px; }
.feature-head .orb { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #242424, #1b1b1b); border: 1px solid #353535; color: #dadada; margin-bottom: 26px; box-shadow: 0 0 40px rgba(168, 168, 168, .22); }
.feature-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.feature-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; max-width: 620px; }

.platforms { overflow: hidden; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.platform-track { display: flex; gap: 28px; width: max-content; animation: scroll 70s linear infinite; }
.platforms:hover .platform-track { animation-play-state: paused; }
.pcard { position: relative; width: 490px; min-height: 264px; flex: none; padding: 34px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .07); background: #1d1d1d; overflow: hidden; isolation: isolate; transition: transform .3s, border-color .3s; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 75% 40%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), radial-gradient(60% 70% at 0% 100%, color-mix(in srgb, var(--c2, var(--c)) 14%, transparent), transparent 70%); }
.pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.pcard .top { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.pcard .logo { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #101010); border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); box-shadow: 0 0 30px -6px color-mix(in srgb, var(--c) 60%, transparent); }
.pcard h3 { font-size: 23px; letter-spacing: -.02em; font-weight: 600; }
.pcard p { color: #eaeaea; font-size: 17px; line-height: 1.85; }
.pcard p em { font-style: normal; color: var(--c); }
.pcard p span { color: var(--muted); }

.vm-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 70px 60px; border-radius: 30px; background: #1d1d1d; border: 1px solid rgba(255, 255, 255, .07); }
.vm-card h3, .mini h3 { color: #d3d6f5; font-size: 23px; font-weight: 500; letter-spacing: -.02em; }
.vm-card p, .mini p { color: #dcdcdc; margin-top: 18px; font-size: 16.5px; line-height: 1.9; max-width: 420px; }
.vm-grid { display: grid; grid-template-columns: repeat(5, 74px); gap: 15px; justify-content: end; }
.vm-grid .k:nth-child(n+6) { transform: translateX(-44px); }
.k { width: 74px; height: 74px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #242424, #242424); border: 1px solid #4e4e4e; color: #d3d6f5; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 20px -10px rgba(0, 0, 0, .8); transition: transform .2s, border-color .2s, color .2s; cursor: default; }
.k:hover { border-color: #969696; color: #fff; }
.vm-grid .k:nth-child(n+6):hover { transform: translateX(-44px) translateY(-3px); }
.vm-grid .k:nth-child(-n+5):hover { transform: translateY(-3px); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mini { padding: 40px 36px; border-radius: 26px; background: #1d1d1d; border: 1px solid rgba(255, 255, 255, .07); }
.mini code { font-size: 13.5px; color: #dfe3ff; background: #1f1f1f; border: 1px solid #353535; padding: 2px 7px; border-radius: 6px; }
.mini .ib { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #1f1f1f; border: 1px solid #3a3a3a; color: #d3d6f5; margin-bottom: 22px; }

.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #252525; border: 1px solid #3a3a3a; color: var(--text); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #303030; }

@media (max-width: 980px) {
  .hero2 { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: center; }
  .hero2 .lead { margin-inline: auto; } .hero2 .cta { justify-content: center; }
  .orbit { height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
  .orbit .art { inset: 0; }
  .vm-card { grid-template-columns: minmax(0, 1fr); padding: 44px 30px; }
  .vm-grid { justify-content: start; }
  .trio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pcard { width: 310px; padding: 24px; min-height: 0; } .pcard p { font-size: 15.5px; } .pcard .logo { width: 54px; height: 54px; }
  .vm-grid { grid-template-columns: repeat(4, 60px); gap: 10px; } .k { width: 60px; height: 60px; }
  .vm-grid .k:nth-child(n+6) { transform: none; } .vm-grid .k:nth-child(n+6):hover { transform: translateY(-3px); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .float-pill { font-size: 12.5px; padding: 7px 12px 7px 7px; } .float-pill .ib { width: 26px; height: 26px; }
  .orbit { height: 360px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ================= footer ================= */
footer.site-footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 64px 0 0; color: var(--muted); font-size: 14.5px; overflow: hidden; }
footer.site-footer .wrap { display: block; }
.foot-cta { display: flex; align-items: center; gap: 22px; padding: 36px 40px; border-radius: 24px; background: linear-gradient(135deg, rgba(113, 113, 113, .22), rgba(22, 22, 22, .9) 60%); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.foot-cta img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2), 0 0 30px rgba(168, 168, 168, .45); }
.foot-cta .txt-block { flex: 1; }
.foot-cta h3 { color: var(--text); font-size: 24px; letter-spacing: -.03em; font-weight: 650; }
.foot-cta p { margin-top: 4px; }
.foot-cta .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.foot-cols h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 14px; }
.foot-cols a { display: block; color: #dedede; padding: 4px 0; } .foot-cols a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; position: relative; z-index: 1; }
.wordmark { font-size: clamp(110px, 22vw, 300px); font-weight: 800; letter-spacing: -.07em; line-height: .78; text-align: center; margin-top: -30px; user-select: none;
  background: linear-gradient(180deg, rgba(168, 168, 168, .16), rgba(168, 168, 168, 0) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) {
  .foot-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= discord message polish ================= */
.av { object-fit: cover; }
img.av { background: #242424; }
.msg-col { flex: 1; min-width: 0; }
.mock-body { background: #242424; }
.dembed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 520px; border-left-color: var(--accent); }
.dembed.has-thumb { grid-template-columns: minmax(0, 1fr) 80px; }
.dembed .e-main { display: grid; gap: 8px; min-width: 0; }
.dembed .e-thumb { grid-column: 2; grid-row: 1; width: 80px; height: 80px; border-radius: 6px; object-fit: cover; }
.dembed .e-image { grid-column: 1 / -1; width: 100%; max-height: 300px; object-fit: cover; border-radius: 6px; }
.dembed .e-author { gap: 8px; } .dembed .e-author a, .dembed .e-title a { color: inherit; text-decoration: none; } .dembed .e-title a { color: #00a8fc; }
.dembed .e-aicon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dembed .e-ficon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dembed .e-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dembed .e-field div { white-space: pre-wrap; }
.dembed code { font-size: 12.5px; background: #1e1f22; padding: 1px 4px; border-radius: 3px; }
.dembed a { color: #00a8fc; }
.spoiler { background: #1e1f22; color: transparent; border-radius: 3px; } .spoiler:hover { color: inherit; }
.placeholder-img { background: #404040; border-radius: 6px; }
.dembed .placeholder-img.e-image { height: 160px; }
.dbtn { text-decoration: none; } .dbtn.blurple { background: #5865f2; }
.dbtn .ic, .dbtn svg { width: 13px; height: 13px; }

/* ================= home showcase ================= */
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.show-card { border-radius: 22px; border: 1px solid var(--line); background: #1d1d1d; overflow: hidden; display: flex; flex-direction: column; }
.show-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.show-head .ib { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #212121; border: 1px solid #3a3a3a; color: #d3d6f5; }
.show-head code { margin-left: auto; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-card .mock-body { flex: 1; }

/* ================= toast & dialog ================= */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; padding: 10px 18px; border-radius: 999px; background: #212121; border: 1px solid var(--line-2); color: var(--text); font-size: 14px; transition: opacity .2s, transform .2s; pointer-events: none; box-shadow: 0 14px 40px -10px #000; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(9, 9, 9, .7); backdrop-filter: blur(4px); padding: 20px; }
.dialog[hidden] { display: none; }
.dialog-box { width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; box-shadow: 0 40px 100px -30px #000; }
.dialog-box h3 { font-size: 18px; } .dialog-box p { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.dialog-box textarea { width: 100%; min-height: 180px; }
.dialog-box .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ================= embed builder ================= */
.center-head { text-align: center; padding: 64px 0 26px; }
.center-head h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.045em; font-weight: 700; }
.center-head p { color: var(--muted); margin: 10px auto 0; max-width: 520px; font-size: 16px; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(22, 22, 22, .8); border: 1px solid var(--line-2); margin-top: 26px; }
.seg button { font: 600 14.5px var(--sans); color: var(--muted); background: transparent; border: 0; padding: 10px 22px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button:hover { color: var(--text); }
.toolbar2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.toolbar2 .seg { margin: 0; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tools .btn { height: 38px; font-size: 13.5px; border-radius: 10px; }
.b-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#builder.side .b-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
#builder.side .b-preview-wrap { position: sticky; top: 90px; align-self: start; }
.panel { border-radius: 20px; background: rgba(22, 22, 22, .82); border: 1px solid var(--line); overflow: hidden; }
.panel-title { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.acc { border-bottom: 1px solid var(--line); } .acc:last-child { border-bottom: 0; }
.acc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.acc-head .ib { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #212121; border: 1px solid #3a3a3a; color: #dadada; flex: none; }
.acc-head b { display: block; font-size: 15px; font-weight: 600; } .acc-head small { color: var(--dim); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-head .count { margin-left: auto; font: 12px var(--mono); color: var(--muted); background: #212121; border-radius: 999px; padding: 2px 9px; }
.acc-head > .ic:last-child { margin-left: 8px; color: var(--dim); transition: transform .2s; } .acc-head .count + .ic { margin-left: 8px; }
.acc-head > span:nth-child(2) { flex: 1; min-width: 0; }
.acc.open .acc-head > .ic:last-child { transform: rotate(180deg); }
.acc-body { display: none; padding: 4px 20px 22px; }
.acc.open .acc-body { display: grid; gap: 6px; animation: fade .2s ease; }
.f-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-top: 10px; }
.f-input { width: 100%; background: #101010; border: 1px solid #2d2d2d; border-radius: 10px; color: var(--text); font: 14.5px var(--sans); padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; resize: vertical; }
.f-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 168, 168, .2); }
textarea.f-input { min-height: 90px; line-height: 1.5; } .f-input.mono { font-family: var(--mono); font-size: 13.5px; }
.color-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.color-row .f-input { flex: 1; min-width: 160px; font-family: var(--mono); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 10px; border: 2px solid transparent; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.swatch.on { border-color: #fff; } .swatch.none { width: auto; padding: 0 12px; background: #212121; color: var(--text); font: 600 12.5px var(--sans); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 10px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.b-item { border: 1px solid #2d2d2d; border-radius: 12px; padding: 12px 14px; background: #1a1a1a; display: grid; gap: 4px; }
.b-item-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.b-item-head span { display: flex; gap: 4px; }
.mini-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #212121; border: 1px solid #353535; color: var(--muted); cursor: pointer; }
.mini-btn:hover { color: var(--text); } .mini-btn.danger:hover { color: var(--bad); border-color: rgba(248, 113, 113, .4); }
.add-btn { justify-self: start; margin-top: 8px; height: 36px; font-size: 13.5px; border-radius: 10px; }
.f-empty { color: var(--dim); font-size: 13.5px; padding: 6px 0; }
.b-preview { background: #343434; padding: 22px 18px 26px; }
.b-preview .who time { color: #9c9c9c; }
.b-script { padding: 16px 20px 20px; display: grid; gap: 12px; }
.b-script pre { background: #141414; border: 1px solid #2d2d2d; border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: #d9dcf7; white-space: pre-wrap; word-break: break-all; max-height: 240px; overflow: auto; }
.use-row { display: flex; gap: 8px; align-items: center; }
.use-row code { flex: 1; font-size: 12.5px; color: var(--muted); background: #141414; border: 1px solid #2d2d2d; border-radius: 10px; padding: 9px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.use-row .btn { height: 36px; border-radius: 10px; font-size: 13px; }
.save-row { display: flex; gap: 8px; } .save-row .f-input { padding: 8px 12px; }
.saved-item { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.saved-item:last-child { border-bottom: 0; }
.saved-item b { display: block; } .saved-item span { color: var(--dim); font-size: 12.5px; } .saved-item code { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 640px; }
.saved-item .acts { display: flex; gap: 6px; } .saved-item .btn { height: 34px; border-radius: 10px; }
.var-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.var-table td { padding: 11px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.var-table td.ex { color: var(--dim); font-family: var(--mono); font-size: 12.5px; }
.var-chip { font: 500 13px var(--mono); color: #d9dcf7; background: #212121; border: 1px solid #353535; border-radius: 8px; padding: 4px 9px; cursor: copy; }
.var-chip:hover, .var-chip.copied { border-color: var(--accent); color: #fff; }
.var-tools { display: flex; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
select.f-input { cursor: pointer; }

/* ================= docs app ================= */
.docs-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 40px; padding-top: 26px; }
.docs-side { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding: 0 6px 30px 0; scrollbar-width: thin; scrollbar-color: #353535 transparent; }
.docs-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(22, 22, 22, .8); margin-bottom: 18px; }
.docs-search input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: 14px var(--sans); }
.docs-search kbd { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.docs-search:focus-within { border-color: var(--accent); }
.dgroup { margin-bottom: 18px; }
.dgroup h5 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--text); padding: 0 10px 6px; }
.dlink { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.dlink .ic { color: var(--dim); }
.dlink:hover { color: var(--text); background: rgba(238, 238, 238, .04); }
.dlink.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; } .dlink.active .ic { color: var(--accent-2); }
.dlink.hidden { display: none; }
.docs-main { min-width: 0; padding-bottom: 40px; }
.docs-main .eyebrow2 { font-size: 13.5px; font-weight: 650; color: var(--accent-2); }
.docs-main h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.04em; font-weight: 700; margin-top: 6px; }
.docs-main .lead2 { color: var(--muted); font-size: 17px; margin-top: 8px; }
.docs-main h2 { font-size: 24px; letter-spacing: -.03em; margin: 46px 0 14px; scroll-margin-top: 96px; }
.docs-main h3 { font-size: 17px; margin: 26px 0 10px; }
.docs-main p, .docs-main li { color: #dcdcdc; font-size: 15.5px; line-height: 1.75; }
.docs-main p + p { margin-top: 12px; }
.docs-main ul, .docs-main ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.docs-main li::marker { color: var(--dim); }
.docs-main a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(213, 213, 213, .35); text-underline-offset: 3px; }
.docs-main code { font-size: 13.5px; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #e2e4fb; overflow-wrap: anywhere; }
.docs-main .codeblock pre code { background: none; border: 0; padding: 0; }
.dcard { display: block; position: relative; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(22, 22, 22, .8); margin: 18px 0; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.dcard:hover { border-color: rgba(213, 213, 213, .4); transform: translateY(-2px); }
.dcard .ib { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #e9ebfb; color: #0e0e0e; margin-bottom: 26px; }
.dcard b { display: block; color: var(--text); font-size: 16px; } .dcard span { color: var(--muted); font-size: 14.5px; }
.dcard .go { position: absolute; top: 18px; right: 18px; color: var(--dim); transform: rotate(-45deg); }
.dcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; } .dcards .dcard { margin: 0; }
.note { display: flex; gap: 12px; padding: 14px 18px; border-radius: 14px; margin: 18px 0; border: 1px solid rgba(96, 165, 250, .35); background: rgba(30, 58, 138, .22); color: #bfd5ff; font-size: 14.5px; }
.note .ic { flex: none; margin-top: 3px; } .note.warn { border-color: rgba(251, 191, 36, .35); background: rgba(120, 80, 10, .2); color: #fde7a7; }
.note p { color: inherit !important; font-size: 14.5px !important; } .note a { color: inherit; }
details.step { border: 1px solid var(--line-2); border-radius: 0; background: rgba(22, 22, 22, .6); }
details.step + details.step { border-top: 0; }
details.step:first-of-type { border-radius: 14px 14px 0 0; } details.step:last-of-type { border-radius: 0 0 14px 14px; }
details.step:only-of-type { border-radius: 14px; }
details.step summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 12px; }
details.step summary::-webkit-details-marker { display: none; }
details.step summary::before { content: ""; border: 5px solid transparent; border-left: 7px solid var(--muted); margin-right: -2px; transition: transform .2s; transform-origin: 3px 5px; }
details.step[open] summary::before { transform: rotate(90deg); }
details.step .step-body { padding: 0 22px 20px 44px; }
.cmd-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.cmd-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.cmd-table td { padding: 10px; border-bottom: 1px solid var(--line); color: #dcdcdc; vertical-align: top; }
.cmd-table td:first-child { white-space: nowrap; } .cmd-table td:first-child code { white-space: nowrap; }
.cmd-table .perm { white-space: nowrap; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.pager a { display: block; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line-2); text-decoration: none; background: rgba(22, 22, 22, .6); }
.pager a:hover { border-color: rgba(213, 213, 213, .4); }
.pager small { display: block; color: var(--dim); font-size: 12.5px; } .pager b { color: var(--text); }
.pager .next { text-align: right; grid-column: 2; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 13.5px; }
.toc h6 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); margin-bottom: 10px; font-weight: 650; }
.toc a { display: block; padding: 5px 0 5px 14px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--text); } .toc a.active { border-left-color: var(--accent-2); color: var(--text); font-weight: 600; }
.docs-mini-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); margin: 16px 0; }
.docs-mini-preview .mock-body { background: #343434; }

@media (max-width: 1100px) { .docs-shell { grid-template-columns: 230px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  #builder.side .b-grid { grid-template-columns: minmax(0, 1fr); } #builder.side .b-preview-wrap { position: static; }
  .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .docs-side { position: static; max-height: none; }
  .docs-side .dgroups { display: none; } .docs-side.open .dgroups { display: block; }
  .docs-toggle { display: inline-flex !important; margin-bottom: 12px; }
  .dcards { grid-template-columns: minmax(0, 1fr); }
  .docs-main table.cmd-table { display: block; overflow-x: auto; }
  .docs-main pre { max-width: 100%; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .dembed.has-thumb { grid-template-columns: minmax(0, 1fr) 64px; } .dembed .e-thumb { width: 64px; height: 64px; }
  .dembed .e-fields { grid-template-columns: minmax(0, 1fr); }
}
.docs-toggle { display: none; }

/* ================= v3: nav search, hero preview, stats, bento, palette, changelog ================= */
.nav .wrap { grid-template-columns: auto 1fr auto; }
.pillnav { justify-self: center; }
.nav-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.nav-search { height: 38px; padding: 0 10px 0 12px; gap: 8px; color: var(--muted); background: rgba(22, 22, 22, .7); font-weight: 500; }
.nav-search kbd, .kbd-hint kbd, .pal-foot kbd { font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; background: rgba(255, 255, 255, .03); }
.nav-search:hover { color: var(--text); }
@media (max-width: 1120px) { .nav-search .lbl, .nav-search kbd { display: none; } .nav-search { width: 38px; padding: 0; } }
@media (max-width: 760px) { .nav .wrap { grid-template-columns: auto 1fr; } .nav-right { gap: 6px; } .nav-cta { display: none; } }

.btn-ghost { height: 52px; padding: 0 20px; font-size: 15px; background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-2); }

.hero3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; min-height: calc(100vh - 150px); padding: 48px 0 36px; }
.hero3 h1 { margin-top: 22px; font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -.045em; font-weight: 650; text-wrap: balance; }
.hero3 .lead { margin-top: 22px; color: #d4d4d4; font-size: 17px; line-height: 1.8; max-width: 540px; }
.hero3 .cta { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.release-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(22, 22, 22, .7); font-size: 13.5px; color: var(--muted); transition: border-color .2s, color .2s; }
.release-pill b { background: #e9ebfb; color: #0e0e0e; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.release-pill:hover { border-color: rgba(213, 213, 213, .4); color: var(--text); }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--dim); font-size: 13.5px; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.kbd-hint kbd { margin-right: 2px; }

.sim { position: relative; }
.sim-glow { position: absolute; inset: -60px -40px -40px; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.sim-glow img { width: 86%; max-width: 560px; height: auto; opacity: .22; filter: blur(2px) saturate(.9); -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%); }
.sim-glow::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(168, 168, 168, .3), transparent 65%); filter: blur(30px); animation: breathe 7s ease-in-out infinite; }
.sim-window { display: flex; flex-direction: column; height: 560px; border-radius: 18px; overflow: hidden; background: rgba(36, 36, 36, .94); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 80px -30px rgba(168, 168, 168, .5); backdrop-filter: blur(6px); }
.sim-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(30, 30, 30, .9); color: #f2f3f5; font-weight: 600; font-size: 14.5px; }
.sim-bar .dots { display: flex; gap: 6px; margin-right: 4px; } .sim-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #424242; }
.sim-bar .chan { display: inline-flex; align-items: center; gap: 4px; } .sim-bar .chan .ic { color: #878787; }
.sim-bar .badge { margin-left: 4px; font: 600 11px var(--mono); color: #c9cdfb; background: rgba(168, 168, 168, .16); border: 1px solid rgba(168, 168, 168, .35); padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.sim-reset { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: #bbbbbb; cursor: pointer; }
.sim-reset:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); color: #fff; }
.sim-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 16px; font-size: 14.5px; scrollbar-width: thin; scrollbar-color: #424242 transparent; overscroll-behavior: contain; }
.sim-log .msg { animation: msgIn .28s ease-out both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sim-typing { display: flex; align-items: center; gap: 4px; color: #bbbbbb; font-size: 12.5px; padding-left: 54px; }
.sim-typing i { width: 6px; height: 6px; border-radius: 50%; background: #bbbbbb; animation: dot 1s infinite ease-in-out; }
.sim-typing i:nth-child(2) { animation-delay: .15s; } .sim-typing i:nth-child(3) { animation-delay: .3s; } .sim-typing span { margin-left: 6px; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sim-chips { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.sim-chips::-webkit-scrollbar { display: none; }
.sim-chip { flex: none; font: 500 12.5px var(--mono); color: #d4d4d4; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; padding: 5px 11px; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-chip:hover { color: #fff; border-color: rgba(213, 213, 213, .45); background: rgba(168, 168, 168, .12); }
.sim-input { position: relative; display: flex; align-items: center; gap: 8px; margin: 10px 14px 14px; padding: 0 6px 0 14px; height: 46px; border-radius: 10px; background: #3c3c3c; }
.sim-input input { flex: 1; height: 100%; background: none; border: 0; outline: none; color: #f2f3f5; font: 15px var(--sans); }
.sim-input input::placeholder { color: #929292; }
.sim-input:focus-within { box-shadow: 0 0 0 2px rgba(168, 168, 168, .55); }
.sim-send { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: transparent; border: 0; color: #bbbbbb; cursor: pointer; }
.sim-send:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sim-ac { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: #2e2e2e; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 6px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); z-index: 3; }
.ac-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #bbbbbb; }
.ac-row code { color: #f2f3f5; font-size: 12.5px; white-space: nowrap; }
.ac-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-row em { font-style: normal; font-size: 11.5px; color: #878787; white-space: nowrap; }
.ac-row.on, .ac-row:hover { background: rgba(168, 168, 168, .18); color: #e3e5ff; }

.stats-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: 20px; background: rgba(29, 29, 29, .7); overflow: hidden; }
.stat2 { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat2:last-child { border-right: 0; }
.stat2 b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #d0d0d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat2 span { color: var(--dim); font-size: 13.5px; }
.powering:empty { display: none; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento .mini { padding: 32px 30px; display: flex; flex-direction: column; }
.bento .mini p { max-width: none; font-size: 15.5px; line-height: 1.75; margin-top: 12px; }
.bento .mini .ib { margin-bottom: 18px; }
.bento .mini > code { align-self: flex-start; margin-top: auto; padding-top: 2px; }
.bento .mini p + code { margin-top: 18px; }
.bento .b-wide { grid-column: span 2; }

.feature-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.frow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; padding: 24px 26px; border-radius: 20px; background: #1d1d1d; border: 1px solid rgba(255, 255, 255, .07); transition: border-color .2s, transform .2s; }
.frow:hover { border-color: rgba(213, 213, 213, .28); transform: translateY(-2px); }
.frow .ib { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #1f1f1f; border: 1px solid #3a3a3a; color: #d3d6f5; }
.frow h3 { font-size: 17.5px; font-weight: 600; color: #eeeeee; letter-spacing: -.01em; }
.frow p { color: #cacaca; font-size: 14.5px; margin-top: 4px; line-height: 1.65; }
.frow > code { grid-column: 2; justify-self: start; margin-top: 8px; font-size: 12.5px; color: #dfe3ff; background: #1f1f1f; border: 1px solid #353535; padding: 2px 8px; border-radius: 6px; }

.news { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 44px; border-radius: 26px; border: 1px solid var(--line-2); background: radial-gradient(80% 140% at 0% 0%, rgba(168, 168, 168, .2), transparent 60%), #1d1d1d; }
.news h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin-top: 10px; }
.news p { color: var(--muted); margin-top: 10px; max-width: 640px; }
.eyebrow3 { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }

@media (max-width: 980px) {
  .hero3 { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; padding-top: 36px; }
  .sim-window { height: 520px; }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat2:nth-child(3) { border-right: 0; } .stat2:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-rows { grid-template-columns: minmax(0, 1fr); }
  .news { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .sections-grid .sec-card:last-child { grid-column: span 6; }
}
@media (max-width: 640px) {
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat2 { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat2:nth-child(2n) { border-right: 0; } .stat2:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); } .bento .b-wide { grid-column: auto; }
  .sim-window { height: 500px; }
  .ac-row { grid-template-columns: auto minmax(0, 1fr); } .ac-row em { display: none; }
  .hero-meta .kbd-hint { display: none; }
  .sections-grid .sec-card:last-child { grid-column: 1 / -1; }
}

/* palette */
html.pal-open { overflow: hidden; }
.palette { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.pal-backdrop { position: absolute; inset: 0; background: rgba(9, 9, 9, .66); backdrop-filter: blur(6px); animation: fadeIn .15s ease-out; }
.pal-box { position: relative; width: 100%; max-width: 640px; border-radius: 18px; background: #1f1f1f; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .95); overflow: hidden; animation: popIn .18s ease-out; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--line); color: var(--dim); }
.pal-input input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: 16px var(--sans); }
.pal-input input::-webkit-search-cancel-button { display: none; }
.pal-list { max-height: min(60vh, 460px); overflow-y: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: #353535 transparent; }
.pal-group { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 10px 10px 6px; }
.pal-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--muted); }
.pal-item .ib { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #212121; border: 1px solid #3a3a3a; color: #e1e1e1; }
.pal-item .tx { display: flex; flex-direction: column; min-width: 0; }
.pal-item b { color: var(--text); font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item small { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item > .ic { color: var(--dim); opacity: 0; }
.pal-item.on, .pal-item:hover { background: rgba(168, 168, 168, .14); } .pal-item.on > .ic { opacity: 1; }
.pal-item:focus-visible { outline-offset: -2px; }
.pal-empty { padding: 30px; text-align: center; color: var(--dim); }
.pal-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.pal-foot kbd { margin-right: 3px; }
@media (max-width: 640px) { .pal-foot { display: none; } .palette { padding-top: 70px; } }

/* docs: explore cards (getting started) */
.dexplore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.dexplore .dcard { margin: 0; min-height: 170px; display: flex; flex-direction: column; }
.dexplore .dcard.wide { grid-column: 1 / -1; min-height: 150px; }
.dexplore .dcard .ib { margin-bottom: auto; }
.dexplore .dcard b { margin-top: 26px; }
.dcard .go { transform: none; }
@media (max-width: 860px) { .dexplore { grid-template-columns: minmax(0, 1fr); } }
.docs-main .kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.docs-main .kv div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(22, 22, 22, .6); }
.docs-main .kv b { display: block; font-size: 22px; letter-spacing: -.03em; color: var(--text); } .docs-main .kv span { font-size: 13px; color: var(--dim); }
@media (max-width: 860px) { .docs-main .kv { grid-template-columns: minmax(0, 1fr); } }

/* changelog */
.cl { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 40px; padding-top: 40px; }
.cl-entry { display: contents; }
.cl-meta { position: sticky; top: 96px; align-self: start; padding-top: 6px; }
.cl-meta .ver { display: inline-flex; align-items: center; gap: 8px; font: 650 15px var(--mono); color: var(--text); }
.cl-meta .ver i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(168, 168, 168, .2); }
.cl-meta .when { display: block; color: var(--dim); font-size: 13px; margin-top: 6px; }
.cl-meta .cur { display: inline-block; margin-top: 10px; font: 600 11px var(--mono); color: #0e0e0e; background: #e9ebfb; border-radius: 999px; padding: 2px 8px; }
.cl-body { position: relative; padding: 0 0 64px 34px; border-left: 1px solid var(--line-2); }
.cl-body::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--accent); }
.cl-body h2 { font-size: 26px; letter-spacing: -.03em; }
.cl-body > p { color: var(--muted); margin-top: 8px; max-width: 720px; }
.cl-body h3 { display: flex; align-items: center; gap: 8px; margin: 28px 0 10px; font-size: 14px; font-weight: 650; color: var(--accent-2); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.cl-body ul { list-style: none; display: grid; gap: 8px; }
.cl-body li { position: relative; padding-left: 20px; color: #dcdcdc; font-size: 15px; line-height: 1.7; }
.cl-body li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: #404040; }
.cl-body code { font-size: 13px; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #e2e4fb; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cl-tags span { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 860px) { .cl { grid-template-columns: minmax(0, 1fr); } .cl-meta { position: static; margin-bottom: 14px; } .cl-body { padding-left: 22px; } }

.dembed pre.cb, .txt pre.cb { margin: 4px 0; padding: 8px 10px; background: #1e1f22; border: 1px solid #26272b; border-radius: 4px; overflow-x: auto; font-size: 12.5px; line-height: 1.45; white-space: pre; }
.dembed pre.cb code, .txt pre.cb code { background: none; padding: 0; font-size: inherit; }
@media (max-width: 980px) { .sim-glow { inset: -40px 0; } }
.bento .b-wide:last-child { grid-column: 1 / -1; }
@media (max-width: 980px) { .bento .b-wide:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bento .b-wide:last-child { grid-column: auto; } }

/* ================= v1.0 polish: setup steps, popular, commands drawer ================= */
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; font-size: 14.5px; background: none; border: 0; cursor: pointer; font-family: var(--sans); padding: 0; }
.link-arrow:hover { color: #fff; }

.steps3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step3 { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; border-radius: 24px; background: linear-gradient(180deg, rgba(195, 198, 245, .045), rgba(195, 198, 245, .012) 40%), #121212; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); overflow: hidden; }
.step3::after { display: none; content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 168, 168, .16), transparent 70%); pointer-events: none; }
.step3 .num { font: 700 13px var(--mono); color: var(--accent-2); letter-spacing: .08em; }
.step3 h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: #eeeeee; }
.step3 p { color: #cacaca; font-size: 15px; line-height: 1.7; }
.step3 .btn { align-self: flex-start; margin-top: auto; }
.cmdlines { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.cmdlines code { align-self: flex-start; font-size: 12.5px; color: #dfe3ff; background: #1f1f1f; border: 1px solid #353535; padding: 3px 9px; border-radius: 7px; }

.popular-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pop-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; transition: transform .2s, border-color .2s; }
.pop-card:hover { transform: translateY(-3px); border-color: rgba(213, 213, 213, .3); }
.pop-card .ib { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #1f1f1f; border: 1px solid #3a3a3a; color: #d3d6f5; margin-bottom: 4px; }
.pop-name { font: 600 16px var(--mono); color: var(--text); } .pop-name .pfx, .ccard-name .pfx { color: var(--dim); }
.pop-desc { color: #cacaca; font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-meta { margin-top: auto; padding-top: 6px; color: var(--dim); font-size: 12.5px; }
.builder-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 24px 28px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(168, 168, 168, .14), rgba(29, 29, 29, .9) 55%); }
.builder-cta > div { display: flex; gap: 16px; align-items: center; }
.builder-cta .ib { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #e9ebfb; color: #0e0e0e; }
.builder-cta h3 { font-size: 17px; font-weight: 600; } .builder-cta p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* help menu components inside the preview */
.dcomp { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-width: 520px; }
.dselect { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border-radius: 6px; background: #1e1f22; border: 1px solid #1e1f22; color: #bbbbbb; font-size: 14px; cursor: pointer; user-select: none; }
.dselect:hover { border-color: #000; } .dselect:focus-visible { outline: 2px solid var(--accent); }
.dmenu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 240px; overflow-y: auto; background: #2e2e2e; border: 1px solid #1e1f22; border-radius: 6px; padding: 4px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); }
.dmenu button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 7px 10px; border: 0; border-radius: 4px; background: none; color: #dedede; cursor: pointer; text-align: left; font: 14px var(--sans); }
.dmenu button:hover, .dmenu button:focus-visible { background: #383838; }
.dmenu small { color: #9c9c9c; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dcomp .dbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.dcomp .dbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 4px; background: #535353; color: #fff; font: 500 14px var(--sans); border: 0; cursor: pointer; }
.dcomp .dbtn:hover { background: #727272; }

/* commands page */
.cmd-hero { padding: 56px 0 26px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cmd-hero h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.04em; font-weight: 650; line-height: 1.1; }
.cmd-hero p { color: var(--muted); margin-top: 6px; max-width: 560px; }
.areabar { position: sticky; top: 68px; z-index: 12; display: flex; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.areabar::-webkit-scrollbar { display: none; }
.areabar button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(22, 22, 22, .7); color: var(--muted); font: 500 14px var(--sans); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.areabar button .n { font: 500 11.5px var(--mono); color: var(--dim); }
.areabar button:hover { color: var(--text); }
.areabar button[aria-selected="true"] { background: #e9ebfb; color: #0e0e0e; border-color: #e9ebfb; } .areabar button[aria-selected="true"] .n { color: #5c5c5c; }
.modchips { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 0 10px; }
.cmod { padding-top: 34px; scroll-margin-top: 130px; }
.cmod-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cmod-head .ib { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #1f1f1f; border: 1px solid #3a3a3a; color: #d3d6f5; }
.cmod-head h2 { font-size: 21px; letter-spacing: -.02em; } .cmod-head p { color: var(--muted); font-size: 14px; }
.cmod-n { margin-left: auto; font: 600 12.5px var(--mono); color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ccard { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.ccard:hover { border-color: rgba(213, 213, 213, .35); background: var(--panel-2); transform: translateY(-1px); }
.ccard-name { font: 600 15px var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard-desc { color: #cacaca; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-hits { display: flex; flex-wrap: wrap; gap: 4px; } .ccard-hits code { font-size: 11.5px; color: #dfe3ff; background: #1f1f1f; border-radius: 5px; padding: 1px 6px; }
.ccard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 11.5px; color: var(--dim); }
.ccard-meta > span { border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; }
.ccard-meta .free { color: #9fe7b9; border-color: rgba(74, 222, 128, .25); }
.ccard mark, .dr-sub mark { background: rgba(168, 168, 168, .4); color: #fff; border-radius: 3px; }

.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(9, 9, 9, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #1d1d1d; border-left: 1px solid var(--line-2); box-shadow: -40px 0 120px -40px rgba(0, 0, 0, .9); display: flex; flex-direction: column; transform: translateX(30px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.drawer.open .drawer-backdrop { opacity: 1; } .drawer.open .drawer-panel { transform: none; opacity: 1; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.drawer-head .ib { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #e9ebfb; color: #0e0e0e; }
.drawer-head small { color: var(--dim); font-size: 12.5px; } .drawer-head h2 { font: 650 22px var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.dr-close { margin-left: auto; width: 38px; padding: 0; flex: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 30px; display: flex; flex-direction: column; gap: 22px; }
.dr-desc { color: #e3e3e3; font-size: 15.5px; line-height: 1.7; }
.drawer-body h4 { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 8px; }
.usage-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px; background: #141414; border: 1px solid #2d2d2d; color: #e2e4fb; cursor: pointer; text-align: left; }
.usage-copy code { font-size: 13.5px; overflow-wrap: anywhere; } .usage-copy:hover { border-color: var(--accent); } .usage-copy.copied { border-color: var(--ok); }
.dr-block small { display: block; color: var(--dim); font-size: 12px; margin-top: 6px; }
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .dr-grid p { color: #dcdcdc; font-size: 14px; }
.dr-grid code { font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.dr-subs { display: flex; flex-direction: column; gap: 6px; }
.dr-sub { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.dr-sub:hover { border-color: rgba(213, 213, 213, .35); } .dr-sub code { font-size: 13px; color: var(--text); } .dr-sub span { font-size: 13px; color: var(--muted); }
.dr-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* changelog lists */
.cl-body h3 .cnt { font: 600 11px var(--mono); color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.cl-cmds { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-cmds.clamp { max-height: 120px; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); }
.cl-cmds a code:hover { border-color: var(--accent); color: #fff; }
.cl-more { margin-top: 10px; }
.foot-bottom .made { display: inline-flex; align-items: center; gap: 8px; } .foot-bottom .made img { border-radius: 50%; } .foot-bottom .made b { color: var(--text); font-weight: 600; }
.foot-bottom a { color: inherit; } .foot-bottom a:hover { color: #fff; }


@media (max-width: 1100px) { .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .steps3 { grid-template-columns: minmax(0, 1fr); }
  .popular-grid, .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .popular-grid, .cgrid { grid-template-columns: minmax(0, 1fr); }
  .areabar { top: 64px; }
  .dr-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-bottom { flex-direction: column; }
}
@media (min-width: 1000px) { .areabar { flex-wrap: wrap; overflow: visible; } }
.modchips[hidden] { display: none; }

/* ================= v1.1: one-colour background, ribbons, hero stage, animated tiles ================= */
body { background: var(--bg); }
.grain { opacity: .035; }
.ribbon { position: absolute; left: 0; top: 0; width: 100%; height: 280px; z-index: -1; pointer-events: none; }
.band4 > .ribbon { top: 30px; }
.ribbon-hero { height: 100%; }

.btn-glow { background: linear-gradient(180deg, #c0c0c0, #9c9c9c); color: #0e0e0e; border-color: rgba(255, 255, 255, .28); font-weight: 650;
  box-shadow: 0 0 0 1px rgba(168, 168, 168, .25), 0 10px 34px -10px rgba(168, 168, 168, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-glow:hover { background: linear-gradient(180deg, #cecece, #a8a8a8); border-color: rgba(255, 255, 255, .4); box-shadow: 0 0 0 1px rgba(168, 168, 168, .4), 0 12px 44px -8px rgba(168, 168, 168, .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.brand img { width: 46px; height: 46px; border-radius: 0; box-shadow: none; background: none; object-fit: contain; filter: none; }
.foot-cta img { object-fit: contain; border-radius: 0 !important; box-shadow: none !important; background: none !important; }

/* hero */
.hero4 { position: relative; isolation: isolate; padding: 18px 0 10px; }
.hero4-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; min-height: min(calc(100vh - 150px), 700px); }
.hero4 h1 { margin-top: 22px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.05em; font-weight: 700; text-wrap: balance; }
.hero4 h1 .dim { color: #9d9d9d; }
.grad { background: linear-gradient(100deg, #e4e6ff 10%, #c8c8c8 45%, #e4e6ff 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s linear infinite; }
.hero4 .lead { margin-top: 22px; color: #d0d0d0; font-size: 17px; line-height: 1.8; max-width: 560px; }
.hero4 .cta { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero4 .cta .btn-glow { height: 50px; padding: 0 24px; font-size: 15px; }
.hero4 .powering { margin-top: 8px; }

.stage { position: relative; width: 100%; max-width: 440px; justify-self: center; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.stage-art { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 9px 14px 9px 9px; border-radius: 14px;
  background: rgba(22, 22, 22, .78); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  transition: opacity .3s, transform .3s; }
.float-card.swap { opacity: 0; transform: translateY(6px) scale(.97); }
.float-card .ib { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(168, 168, 168, .16); border: 1px solid rgba(168, 168, 168, .3); color: #dfe1ff; }
.float-card b { display: block; font-size: 12.5px; color: var(--accent-2); font-weight: 600; letter-spacing: .01em; }
.float-card small { display: block; font-size: 12.5px; color: #e4e4e4; line-height: 1.35; }
.fc1 { left: -12%; top: 14%; }
.fc2 { right: -10%; top: 46%; }
.fc3 { left: -6%; bottom: 10%; }

/* section heads */
.band4 { position: relative; isolation: isolate; padding: 84px 0 0; }
.head4 { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 44px; padding-top: 70px; }
.orb4 { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #e9ebfb;
  background: radial-gradient(circle at 50% 30%, #242424, #141414); border: 1px solid rgba(195, 198, 245, .16); box-shadow: 0 0 40px -6px rgba(168, 168, 168, .4), inset 0 1px 0 rgba(255, 255, 255, .06); }
.orb4::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(195, 198, 245, .08); border-top-color: rgba(195, 198, 245, .55);
  background: radial-gradient(circle at 50% 0, #fff 0 2.5px, rgba(195, 198, 245, .5) 3.5px, transparent 7px); animation: spin2 6s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.head4 h2 { margin-top: 26px; display: flex; flex-direction: column; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; }
.head4 h2 .dim { color: #989898; }
.head4 h2 em { font-style: normal; }
.swoosh { position: relative; background: linear-gradient(180deg, #e8e9ff, #c6c6c6); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.swoosh::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C50 2 120 2 198 6' stroke='%238b90c4' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left; transform: scaleX(0); transition: transform .9s .25s cubic-bezier(.2, .7, .2, 1); }
.head4.in .swoosh::after, .reveal.in .swoosh::after { transform: scaleX(1); }
.head4 > p { margin-top: 16px; max-width: 580px; color: var(--muted); font-size: 16px; }

/* tiles */
.bento4 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 24px; border-radius: 26px; min-height: 300px;
  background: linear-gradient(180deg, rgba(195, 198, 245, .045), rgba(195, 198, 245, .012) 40%), #121212; border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .25s; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(195, 198, 245, .35), transparent); opacity: .6; }
.tile:hover { border-color: var(--line-2); }
.tile.t6 { grid-column: span 6; } .tile.t4 { grid-column: span 4; }
.tile header h3 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.tile header p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.tile header p b { color: #f6f6f6; font-weight: 600; }
.av4 { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); color: #e9ebfb; background: linear-gradient(135deg, #464646, #2e2e2e); border: 1px solid rgba(255, 255, 255, .08); }

/* antinuke radar */
.radar { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; color: #c8c8c8; }
.radar svg { width: 100%; height: 100%; }
.radar svg circle, .radar svg > path:not(.sweep) { fill: none; stroke: rgba(195, 198, 245, .24); stroke-dasharray: 2 5; }
.radar .sweep { transform-origin: 160px 160px; animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #b9b9b9; opacity: .7; }
.b1 { left: 70%; top: 24%; } .b2 { left: 22%; top: 62%; } .b3 { left: 64%; top: 70%; }
.lock-on { position: absolute; left: 36%; top: 34%; width: 40px; height: 40px; translate: -50% -50%; transition: transform .4s; }
.lock-on::before, .lock-on::after { content: ""; position: absolute; inset: 0; border: 2px solid #e9ebfb; clip-path: polygon(0 0, 30% 0, 30% 3px, 3px 3px, 3px 30%, 0 30%, 0 0, 70% 0, 100% 0, 100% 30%, calc(100% - 3px) 30%, calc(100% - 3px) 3px, 70% 3px); }
.lock-on::after { transform: rotate(180deg); }
.lock-on i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 4px rgba(195, 198, 245, .6); }
#tile-antinuke:not(.caught) .lock-on { animation: hunt 1.4s ease-in-out infinite; }
@keyframes hunt { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -4px); } }
#tile-antinuke.caught .lock-on i { background: #f87171; box-shadow: 0 0 18px 5px rgba(248, 113, 113, .55); }
.radar-chip { position: absolute; left: 36%; top: 34%; translate: 30px -50%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(22, 22, 22, .92); border: 1px solid var(--line-2); font-size: 12.5px; color: #e4e4e4; }
.radar-chip b { color: #fff; font-weight: 600; }
#tile-antinuke.caught .radar-chip { border-color: rgba(248, 113, 113, .45); }
#tile-antinuke.caught [data-an-what] { color: #fca5a5; }
.limits { display: grid; gap: 8px; margin-top: auto; }
.lim { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.lim-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.lim-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b8b8b, #c3c6f5); transition: width .4s; }
.lim code { font-size: 11.5px; color: var(--dim); }
.lim.hot span { color: var(--text); }
.lim.hit .lim-bar i { background: linear-gradient(90deg, #b45d68, #f87171); } .lim.hit code { color: #fca5a5; }

/* automod */
.am-feed { display: flex; flex-direction: column; gap: 8px; max-width: 460px; width: 100%; margin: 0 auto; }
.am-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: 13.5px; color: #e4e4e4; animation: msgIn .3s ease-out both; }
.am-row .am-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-row.bad { border-style: dashed; }
.am-row.bad .am-txt { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, .6); }
.am-tag { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.am-ok { flex: none; color: var(--dim); display: grid; }
.am-row.mine { border-color: rgba(168, 168, 168, .4); }
.am-try { display: flex; gap: 8px; max-width: 460px; width: 100%; margin: auto auto 0; }
.am-try input { flex: 1; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0f0f0f; color: var(--text); font: 13.5px var(--sans); }
.am-try input:focus { outline: none; border-color: rgba(168, 168, 168, .55); }

/* levels */
.ring-wrap { position: relative; width: 160px; height: 160px; margin: 4px auto 0; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-wrap circle { fill: none; stroke-width: 9; }
.ring-wrap .track { stroke: rgba(255, 255, 255, .06); }
.ring-wrap .fill { stroke: #e4e6ff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s ease; filter: drop-shadow(0 0 6px rgba(195, 198, 245, .5)); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-num small { color: var(--dim); font-size: 12px; }
#tile-levels.up .ring-num b { animation: pop .6s ease; }
@keyframes pop { 40% { transform: scale(1.18); color: var(--accent-2); } }
.lvl-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: auto; }

/* honeypot */
.trap { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.trap-chan { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 13px; font-weight: 600; }
.trap-msg { display: flex; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); transition: opacity .4s, filter .4s; }
.trap-msg b { display: block; font-size: 13px; } .trap-msg span:not(.av4) { font-size: 13px; color: var(--muted); }
.trap-verdict { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
#tile-honeypot.sprung .trap-verdict { opacity: 1; transform: none; }
#tile-honeypot.sprung .trap-msg { opacity: .45; filter: grayscale(1); }

/* verification */
.verify { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.verify-card { padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 4px; }
.verify-card b { font-size: 14px; } .verify-card small { color: var(--muted); font-size: 12.5px; }
.dbtn-ok { margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 8px; border: 0; cursor: pointer; font: 600 13px var(--sans); color: #fff; background: #248046; transition: background .15s; }
.dbtn-ok:hover { background: #1a6334; }
.dbtn-ok.done { background: #414141; }
.verify-state { font-size: 12.5px; color: var(--dim); }
.verify-state.ok { color: #86efac; }

/* tickets */
.tstack { position: relative; height: 150px; margin-top: auto; display: grid; place-items: end center; }
.tk { position: absolute; left: 50%; display: flex; align-items: center; gap: 10px; width: min(92%, 380px); padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line-2);
  background: #1a1a1a; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .9); font-size: 13px; translate: -50% 0; transition: transform .38s, opacity .38s; }
.tk:nth-child(1) { bottom: 36px; transform: scale(.9); opacity: .45; }
.tk:nth-child(2) { bottom: 18px; transform: scale(.95); opacity: .7; }
.tk:nth-child(3) { bottom: 0; }
.tk-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e4e4e4; } .tk-t b { color: #fff; }
.tk-s { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e9ebfb; color: #0e0e0e; }
.tk-s.claimed { background: rgba(168, 168, 168, .2); color: var(--accent-2); } .tk-s.closed { background: rgba(255, 255, 255, .06); color: var(--muted); }
.tstack.cycle .tk:nth-child(3) { transform: translateY(14px); opacity: 0; }

/* logging */
.logfeed { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #0f0f0f; height: 222px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.lg { padding: 6px 12px; border-left: 2px solid rgba(195, 198, 245, .35); font-size: 13px; color: #ebebeb; }
.lg code { font-size: 12px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .07); color: #fff; }
.lg small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.lg.new { animation: slideDown .45s ease-out both; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } }

/* voicemaster */
.vm4 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border-radius: 28px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(195, 198, 245, .045), rgba(195, 198, 245, .012) 50%), #121212; }
.vm4-side { padding: 34px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.vm4-side h3 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; } .vm4-side > p { color: var(--muted); font-size: 14.5px; }
.vchan { margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: #0f0f0f; border: 1px solid var(--line-2); transition: opacity .3s; }
.vchan-row { display: flex; align-items: center; gap: 8px; color: #e9ebfb; font-size: 14px; }
.vchan-ico { display: grid; color: var(--muted); }
.vchan-lim { margin-left: auto; font: 600 11.5px var(--mono); color: var(--muted); background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 1px 6px; }
.vchan-lim:empty { display: none; }
.vchan-people { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 2px 24px; }
.vp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); animation: msgIn .25s ease-out both; }
.vp i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 10px var(--sans); font-style: normal; color: #fff; background: linear-gradient(135deg, #595959, #353535); }
.vp em { display: grid; color: #f5d27a; }
.vm4.is-hidden .vchan { opacity: .5; }
.vm4.is-locked .vchan-ico { color: #fca5a5; }
.vm4-log { margin-top: auto; font-size: 13px; color: var(--accent-2); min-height: 20px; }
.vm4-log.flash { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } }
.vm4-keys { padding: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-content: center; }
.key { aspect-ratio: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; cursor: pointer;
  font: 600 12.5px var(--sans); color: #c5c5c5; background: linear-gradient(180deg, #242424, #181818); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 20px -10px rgba(0, 0, 0, .9); transition: transform .12s, border-color .2s, color .2s, box-shadow .2s; }
.key .ic { color: #e9ebfb; }
.key:hover { color: #fff; border-color: rgba(195, 198, 245, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 24px -6px rgba(168, 168, 168, .55); }
.key.pressed { animation: press .25s ease; }
@keyframes press { 50% { transform: scale(.93); } }
.duo4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.duo4 .tile { min-height: 0; }
.steps4 { display: flex; flex-direction: column; gap: 12px; align-items: center; margin: auto 0; }
.steps4-cmd { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #191919; color: #e4e4e4; cursor: pointer; font: inherit; }
.steps4-cmd code { font-size: 13.5px; }
.steps4-cmd .go { padding: 4px 12px; border-radius: 9px; background: #e9ebfb; color: #0e0e0e; font-size: 12.5px; font-weight: 650; }
.steps4-cmd:hover { border-color: rgba(195, 198, 245, .35); }
.steps4 ol { list-style: none; display: flex; flex-direction: column; gap: 9px; padding-left: 16px; border-left: 1px dashed var(--line-2); margin-left: 6px; }
.steps4 li { position: relative; font-size: 14px; color: var(--dim); transition: color .3s; }
.steps4 li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #464646; background: #121212; transition: background .3s, border-color .3s, box-shadow .3s; }
.steps4 li.done { color: var(--text); } .steps4 li.done::before { background: #e9ebfb; border-color: #e9ebfb; box-shadow: 0 0 10px 1px rgba(195, 198, 245, .55); }
.steps4 small { color: var(--dim); font-size: 12px; }
.owner-cmds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.owner-cmds button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #191919; color: var(--muted); font: 600 13px var(--mono); cursor: pointer; transition: all .15s; }
.owner-cmds button:hover { color: var(--text); border-color: rgba(195, 198, 245, .3); }
.owner-cmds button[aria-pressed="true"] { background: #e9ebfb; color: #0e0e0e; border-color: #e9ebfb; }
.oc-reply { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 14px; border-radius: 14px; background: #0f0f0f; border: 1px solid var(--line); }
.oc-in code { font-size: 13px; color: #e9ebfb; }
.oc-out { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #e4e4e4; animation: fadeIn .3s ease; }
.ok-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #248046; color: #fff; }

/* community */
.gw { margin: auto; width: min(100%, 360px); display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 1px solid var(--line-2); background: #191919; }
.gw-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #242424; border: 1px solid var(--line-2); margin-bottom: 8px; }
.gw b { font-size: 15.5px; } .gw small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pill-btn { margin-top: 10px; align-self: flex-start; height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid #e9ebfb; background: #e9ebfb; color: #0e0e0e; font: 650 13px var(--sans); cursor: pointer; transition: all .15s; }
.pill-btn:hover { background: #fff; } .pill-btn.on { background: transparent; color: #e9ebfb; }
.sb { margin: auto; width: min(100%, 380px); display: flex; flex-direction: column; gap: 8px; }
.sb-chan { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.sb-msg { display: flex; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); border-left: 3px solid #f5d27a; background: #191919; transition: opacity .3s; }
.sb-msg b { display: block; font-size: 13.5px; } .sb-msg > div > span { display: block; font-size: 13.5px; color: #e4e4e4; }
.sb-msg small { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.sb-msg small .ic { color: #f5d27a; }
#tile-star:not(.posted) .sb-msg { opacity: .45; border-left-color: var(--line-2); }
.sb-jump { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: #e9ebfb; background: #191919; }
.sb-jump:hover { border-color: rgba(195, 198, 245, .35); }
.np { margin-top: auto; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: #191919; display: flex; flex-direction: column; gap: 10px; }
.np-top { display: flex; align-items: center; gap: 12px; }
.np-top small { display: block; color: var(--dim); font-size: 11.5px; } .np-top b { display: block; font-size: 14px; } .np-top span:not(.np-cover) { display: block; color: var(--muted); font-size: 12.5px; }
.np-cover { position: relative; width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #505050, #212121); border: 1px solid var(--line-2); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8); }
.np-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.np-eq { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 9px; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .3s; }
.np-cover img + .np-eq { opacity: 0; }
.np-cover:not(:has(img)) .np-eq, .np.playing .np-eq { opacity: 1; }
.np-eq i { width: 4px; border-radius: 2px; background: #fff; animation: eq 1s ease-in-out infinite; animation-play-state: paused; }
.np-eq i:nth-child(1) { height: 12px; } .np-eq i:nth-child(2) { height: 20px; animation-delay: -.3s; } .np-eq i:nth-child(3) { height: 15px; animation-delay: -.6s; }
.np.playing .np-eq i { animation-play-state: running; }
.np-meta { min-width: 0; }
.np-meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.np-meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.np.playing [data-np-state] { color: #86efac; }
.np-bar { position: relative; overflow: visible !important; cursor: pointer; touch-action: none; height: 4px; }
.np-bar::before { content: ""; position: absolute; inset: -8px 0; }
.np-bar i { transition: none !important; border-radius: inherit; }
.np-bar b { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; translate: -50% -50%; opacity: 0; transition: opacity .15s; box-shadow: 0 0 10px rgba(195, 198, 245, .6); }
.np-bar:hover b, .np-bar:focus-visible b, .np.playing .np-bar b { opacity: 1; }
.np-missing { display: none; color: var(--dim); font-size: 11.5px; text-align: center; }
.np.missing .np-missing { display: block; }
.np.missing .np-ctl button { opacity: .45; cursor: not-allowed; }
.vp img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.vp { color: #e9ebfb !important; }
.np-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; } .np-bar i { display: block; height: 100%; background: #e9ebfb; transition: width .9s linear; }
.np-time { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--dim); }
.np-ctl { display: flex; justify-content: center; gap: 10px; }
.np-ctl button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; color: #e4e4e4; cursor: pointer; }
.np-ctl button.main { background: #e9ebfb; color: #0e0e0e; border-color: #e9ebfb; }
.np-ctl button:hover { border-color: rgba(195, 198, 245, .4); }
.rr { margin-top: auto; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: #191919; display: flex; flex-direction: column; gap: 10px; }
.rr > b { font-size: 14px; }
.rr-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-opts button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 600 12.5px var(--sans); cursor: pointer; transition: all .15s; }
.rr-opts button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rr-opts button[aria-pressed="true"] { background: rgba(168, 168, 168, .16); border-color: rgba(168, 168, 168, .5); color: #fff; }
.rr small { color: var(--dim); font-size: 12px; }
.counters { margin-top: auto; padding: 12px; border-radius: 16px; border: 1px solid var(--line-2); background: #191919; display: flex; flex-direction: column; gap: 4px; }
.cnt-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 2px 6px 6px; }
.cnt { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.cnt:hover { background: rgba(255, 255, 255, .03); }
.cnt b { color: #fff; font-variant-numeric: tabular-nums; }
.cnt b.bump { animation: pop .5s ease; }

/* embeds showcase */
.embed4 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; background: #121212; }
.embed4-side { padding: 28px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.seg4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: #0f0f0f; border: 1px solid var(--line); }
.seg4 button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.seg4 button:hover { color: var(--text); }
.seg4 button[aria-pressed="true"] { background: #242424; color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.script4 { flex: 1; min-height: 200px; resize: vertical; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #0f0f0f; color: #e4e4e4; font: 12.5px/1.65 var(--mono); }
.script4:focus { outline: none; border-color: rgba(168, 168, 168, .5); }
.embed4 .errors { min-height: 16px; font-size: 12.5px; color: #fca5a5; }
.embed4-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.embed4-preview { position: relative; padding: 34px; display: grid; align-items: center; background: radial-gradient(60% 60% at 60% 40%, rgba(168, 168, 168, .12), transparent 70%); }
.dwin { border-radius: 18px; overflow: hidden; background: #222222; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), 0 0 60px -24px rgba(168, 168, 168, .45); }
.dwin-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #f2f3f5; font-weight: 600; font-size: 14px; }
.dwin-bar .ic { color: #878787; }
.dwin .mock-body { min-height: 300px; }

/* nicer embeds everywhere */
.dembed { border-radius: 8px; background: #2e2e2e; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.dembed .e-title { font-size: 15.5px; }
.dbtn { border-radius: 8px; background: #535353; transition: background .15s; } .dbtn:hover { background: #636363; }

@media (max-width: 1020px) {
  .hero4-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .stage { max-width: 380px; }
  .tile.t6, .tile.t4 { grid-column: span 12; }
  .vm4, .embed4 { grid-template-columns: 1fr; }
  .vm4-side, .embed4-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .duo4 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .band4 { padding-top: 70px; }
  .head4 { padding-top: 20px; margin-bottom: 30px; }
  .tile { padding: 22px 18px; border-radius: 22px; min-height: 0; }
  .lim { grid-template-columns: 1fr auto; } .lim .lim-bar { grid-column: 1 / -1; grid-row: 2; }
  .vm4-keys { padding: 20px; gap: 10px; } .vm4-side { padding: 24px; }
  .key { border-radius: 14px; font-size: 11.5px; }
  .float-card { max-width: 200px; padding: 7px 10px 7px 7px; } .float-card small { font-size: 11.5px; }
  .fc1 { left: 0; top: 0; } .fc2 { right: 0; top: auto; bottom: 10%; } .fc3 { left: 0; bottom: 6%; }
  .seg4 { grid-template-columns: 1fr 1fr; }
  .embed4-preview { padding: 18px; }
  .radar-chip { translate: -50% 34px; }
}

/* ================= v1.1 commands page: sidebar + expandable rows ================= */
.cmdx { position: relative; isolation: isolate; padding: 40px 0 40px; }
.cmdx .ribbon { top: -70px; height: 200px; opacity: .55; }
.cmdx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 0 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cmdx-head h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.05em; font-weight: 700; line-height: 1; }
.cmdx-head p { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 560px; } .cmdx-head p b { color: var(--text); font-weight: 600; }
.cmdx-search { display: flex; align-items: center; gap: 10px; width: min(100%, 400px); height: 48px; padding: 0 8px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(22, 22, 22, .8); color: var(--dim); transition: border-color .2s, box-shadow .2s; }
.cmdx-search:focus-within { border-color: rgba(168, 168, 168, .55); box-shadow: 0 0 0 4px rgba(168, 168, 168, .12); }
.cmdx-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: 15px var(--sans); outline: none; }
.cmdx-search input::-webkit-search-cancel-button { filter: invert(.7); }
.cmdx-search kbd { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 12px var(--mono); color: var(--muted); }
.cmdx-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding-top: 30px; align-items: start; scroll-margin-top: 80px; }
.cmdx-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #353535 transparent; padding-right: 6px; display: flex; flex-direction: column; gap: 10px; }
.cmdx-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line-2); background: #121212; }
.cmdx-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.cmdx-toggle button .n { color: var(--dim); font: 500 11.5px var(--mono); }
.cmdx-toggle button[aria-pressed="true"] { background: #242424; color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.cmdx-perm { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #121212; color: var(--dim); }
.cmdx-perm select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--muted); font: 13px var(--sans); outline: none; cursor: pointer; }
.cmdx-perm select option, .cmdx-modsel option, .cmdx-modsel optgroup { background: #161616; color: var(--text); }
.cmdx-modsel { display: none; }
.cnav-sec { margin: 16px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cnav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; border: 1px solid transparent; transition: background .15s, color .15s; }
.cnav .ic { color: var(--dim); }
.cnav span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cnav .n { font: 12px var(--mono); color: var(--dim); }
.cnav:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.cnav.active { background: #1e1e1e; border-color: var(--line-2); color: #fff; } .cnav.active .ic { color: var(--accent-2); }
.cnav.empty { opacity: .4; }
.cmdx-mhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.mh-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #1e1e1e; border: 1px solid var(--line-2); color: #e9ebfb; }
.cmdx-mhead > div:nth-child(2) { flex: 1; min-width: 200px; }
.cmdx-mhead h2 { font-size: 22px; letter-spacing: -.03em; font-weight: 650; }
.cmdx-mhead p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.mh-right { display: flex; align-items: center; gap: 10px; }
.mh-n { font: 12.5px var(--mono); color: var(--dim); }
.cmdx-list { display: flex; flex-direction: column; gap: 8px; }
.cgroup { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; }
.cgroup + .cgroup { margin-top: 16px; }
.cgroup-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; font-size: 13px; font-weight: 650; color: var(--muted); }
.cgroup-h span { margin-left: auto; font: 12px var(--mono); color: var(--dim); }
.crow { border-radius: 14px; border: 1px solid var(--line); background: #121212; transition: border-color .2s, background .2s; scroll-margin-top: 100px; }
.crow:hover { border-color: var(--line-2); }
.crow.open { border-color: rgba(168, 168, 168, .32); background: #151515; }
.crow.flash { animation: rowflash 1.6s ease; }
@keyframes rowflash { 0%, 40% { box-shadow: 0 0 0 3px rgba(168, 168, 168, .35); } }
.crow-head { width: 100%; display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto 20px; align-items: center; gap: 18px; padding: 15px 18px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; border-radius: inherit; }
.crow-name { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--mono); color: #f6f6f6; min-width: 0; overflow: hidden; }
.crow-name .pfx { color: var(--dim); margin-right: -6px; }
.crow-name .star { display: grid; color: #f5d27a; }
.crow-desc { color: var(--muted); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-mod { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; color: var(--dim); vertical-align: 1px; }
.crow-meta { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.crow-meta.perm { color: #d9c79f; } .crow-meta.free { color: #86efac; opacity: .8; }
.crow-chev { display: grid; color: var(--dim); transition: transform .2s; }
.crow.open .crow-chev { transform: rotate(180deg); color: var(--accent-2); }
.crow-body { display: none; }
.crow.open .crow-body { display: block; }
.crow-inner { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; animation: fadeIn .25s ease; }
.crow-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.crow-grid h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.crow-grid p { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; }
.crow-grid code { font-size: 12.5px; padding: 2px 7px; border-radius: 6px; background: #1f1f1f; border: 1px solid #353535; color: #dfe3ff; }
.crow-grid .none { color: var(--dim); } .crow-grid .free { color: #86efac; }
.crow .perm { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(217, 199, 159, .1); border: 1px solid rgba(217, 199, 159, .28); color: #e8d9b6; }
.usage-copy { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #0f0f0f; color: #e9ebfb; cursor: pointer; text-align: left; }
.usage-copy code { background: none !important; border: 0 !important; padding: 0 !important; font-size: 13px; overflow-wrap: anywhere; }
.usage-copy .ic { color: var(--dim); flex: none; } .usage-copy:hover { border-color: rgba(168, 168, 168, .45); }
.usage-copy.copied, .sub4.copied { border-color: rgba(74, 222, 128, .5) !important; }
.subs4 { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.sub4 { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr) auto 16px; align-items: center; gap: 14px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; border-left: 2px solid transparent; }
.sub4:last-child { border-bottom: 0; }
.sub4:hover { background: rgba(255, 255, 255, .025); }
.sub4 code { font-size: 12.5px; color: #e9ebfb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub4 span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sub4 em { font-style: normal; font-size: 11.5px; color: #d9c79f; white-space: nowrap; }
.sub4 .ic { color: var(--dim); opacity: 0; transition: opacity .15s; } .sub4:hover .ic { opacity: 1; }
.sub4.hit { border-left-color: var(--accent); background: rgba(168, 168, 168, .06); }
.crow-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crow-note { margin-left: auto; font: 12px var(--mono); color: var(--dim); }
.cmdx mark { background: rgba(168, 168, 168, .3); color: #fff; border-radius: 3px; padding: 0 1px; }
@media (max-width: 900px) {
  .cmdx-body { grid-template-columns: 1fr; gap: 18px; }
  .cmdx-side { position: static; max-height: none; overflow: visible; padding: 0; }
  #cmdx-nav { display: none; }
  .cmdx-modsel { display: block; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #121212; color: var(--text); font: 14px var(--sans); }
  body.cmdx-searching .cmdx-modsel { display: none; }
}
@media (max-width: 640px) {
  .cmdx-search { width: 100%; }
  .crow-head { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; padding: 13px 14px; }
  .crow-desc { grid-column: 1 / -1; grid-row: 2; white-space: normal; font-size: 13.5px; }
  .crow-grid { grid-template-columns: 1fr; }
  .sub4 { grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 10px; } .sub4 span, .sub4 em { grid-column: 1; } .sub4 .ic { grid-row: 1; grid-column: 2; opacity: 1; }
  .crow-note { display: none; }
}

/* steps restyled as tiles */
.pop-card { border-radius: 20px; background: linear-gradient(180deg, rgba(195, 198, 245, .035), transparent 50%), #121212; }
.news { border-radius: 24px; background: linear-gradient(180deg, rgba(195, 198, 245, .05), rgba(195, 198, 245, .012)), #121212; }
@media (max-width: 640px) {
  .fc3 { display: none; }
  .hero4 h1 { font-size: 40px; }
  .stage { max-width: 290px; margin-top: 10px; }
}

/* Discord mark on "Add to Discord" buttons (taken from the supplied avatar, tinted with the text colour) */
.dc-mark { display: inline-block; flex: none; width: var(--s, 18px); height: var(--s, 18px); background: currentColor;
  -webkit-mask: url("discord-mark.png") center / contain no-repeat; mask: url("discord-mark.png") center / contain no-repeat; }
.site-footer .foot-bottom { padding-bottom: 36px; }

/* ================= containers (components v2) in previews and the builder ================= */
.md-h1 { font-size: 22px; font-weight: 700; color: #f2f3f5; line-height: 1.3; margin: 2px 0; }
.md-h2 { font-size: 19px; font-weight: 700; color: #f2f3f5; line-height: 1.3; margin: 2px 0; }
.md-h3 { font-size: 16px; font-weight: 700; color: #f2f3f5; line-height: 1.3; margin: 2px 0; }
.md-sub { font-size: 12.5px; color: #9c9c9c; line-height: 1.4; }
.dcontainer { margin-top: 6px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 8px;
  background: #2e2e2e; border: 1px solid rgba(255, 255, 255, .06); border-left: 4px solid var(--accent, #969696); color: #dedede; font-size: 14.5px; }
.c-text { line-height: 1.45; overflow-wrap: anywhere; }
.c-section { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.c-section .c-text { flex: 1; }
.c-section .dbtn { flex: none; margin-top: 2px; }
.c-thumb { width: 72px; height: 72px; flex: none; border-radius: 8px; object-fit: cover; background: #3e3e3e; }
.c-gallery { display: grid; gap: 4px; border-radius: 8px; overflow: hidden; }
.c-gallery.n2 { grid-template-columns: 1fr 1fr; } .c-gallery.n3, .c-gallery.n4 { grid-template-columns: 1fr 1fr; }
.c-gimg { width: 100%; max-height: 260px; aspect-ratio: 16 / 9; object-fit: cover; background: #3e3e3e; display: block; }
.c-gallery.n1 .c-gimg { aspect-ratio: auto; }
.c-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 2px 0; } .c-sep.large { margin: 10px 0; } .c-sep.invisible { background: none; height: 6px; } .c-sep.invisible.large { height: 18px; }
.c-menu { position: relative; display: flex; align-items: center; }
.c-menu select { width: 100%; height: 40px; appearance: none; padding: 0 36px 0 12px; border-radius: 6px; border: 1px solid #1e1f22; background: #1e1f22; color: #dedede; font: 14px var(--sans); cursor: pointer; }
.c-menu .ic { position: absolute; right: 12px; pointer-events: none; color: #bbbbbb; }
.c-empty { color: #878787; font-size: 13px; font-style: italic; }
.dcontainer .dbtns { margin-top: 0; }
.dcontainer .dbtn .ic, .c-section .dbtn .ic { opacity: .8; }

.cb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; margin-top: 18px; align-items: start; }
.cb-stage { display: flex; flex-direction: column; gap: 14px; }
.cb-stage .dwin { border-radius: 22px; }
.cb-stage .mock-body { min-height: 360px; padding: 22px; }
.cb-live { max-width: 560px; gap: 6px; padding: 10px 10px 10px 12px; }
.cblock { position: relative; padding: 6px 8px; border-radius: 8px; border: 1px dashed transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.cblock:hover { border-color: rgba(255, 255, 255, .22); }
.cblock.sel { border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .02); }
.cblock:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cb-tools { position: absolute; top: 50%; right: -46px; translate: 0 -50%; display: none; flex-direction: column; gap: 4px; padding: 4px; border-radius: 10px; background: #111214; border: 1px solid rgba(255, 255, 255, .1); z-index: 2; }
.cblock:hover .cb-tools, .cblock.sel .cb-tools { display: flex; }
.cb-tools button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: transparent; color: #dedede; cursor: pointer; }
.cb-tools button:hover { background: rgba(255, 255, 255, .08); }
.cb-live .cblock .dbtn, .cb-live .cblock select { pointer-events: none; }
.cb-add { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cb-add > span { color: var(--dim); font-size: 13px; margin-right: 4px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #161616; color: var(--text); font: 600 13.5px var(--sans); cursor: pointer; transition: border-color .15s, background .15s; }
.chip-btn:hover { border-color: rgba(195, 198, 245, .4); background: #1e1e1e; }
.cb-pad { padding: 4px 20px 16px; display: flex; flex-direction: column; }
.cb-edit-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.cb-edit-head span { color: var(--dim); font-size: 12.5px; }
.cb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.cb-row .mini-btn { margin-bottom: 6px; }
.mini-seg { display: inline-flex; align-self: flex-start; }
.mini-seg button { height: 32px; font-size: 12.5px; }
@media (max-width: 1020px) { .cb-grid { grid-template-columns: 1fr; } .cb-tools { right: 6px; top: 6px; translate: none; flex-direction: row; } }

/* slash mode on the commands page */
.opts4 { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.opt4 { display: grid; grid-template-columns: minmax(110px, 160px) 86px 76px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.opt4:last-child { border-bottom: 0; }
.opt4 code { font-size: 12.5px; color: #e9ebfb; }
.otype { font: 12px var(--mono); color: var(--accent-2); }
.oreq { font-size: 11.5px; font-weight: 600; color: #fca5a5; } .oopt { font-size: 11.5px; color: var(--dim); }
.odesc { color: var(--muted); overflow-wrap: anywhere; } .odesc em { color: var(--dim); font-style: normal; }
.none-note { color: var(--dim); font-size: 13px; }
.sub4.slash code small { color: var(--dim); font-size: 11.5px; margin-left: 4px; }
@media (max-width: 640px) { .opt4 { grid-template-columns: 1fr auto auto; } .opt4 .odesc { grid-column: 1 / -1; } }

/* legal pages */
.legal .doc { max-width: 760px; margin: 10px 0 0; }
.legal .doc h2 { font-size: 20px; margin-bottom: 10px; }
.legal .doc section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.legal-date { margin-top: 22px; color: var(--dim); font-size: 13px; }
.foot-cols a { display: flex; align-items: center; gap: 5px; }

/* voicemaster interface (two rows of five, like the bot's panel) */
.vm4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.vm4-side { justify-content: center; }
.vm-msg { gap: 12px; }
.vm-msg .who { font-size: 15px; }
.vm-embed { max-width: 460px; grid-template-columns: 1fr; padding: 14px 16px 16px; }
.vm-embed .e-title { font-size: 16px; }
.vm-embed .e-desc { white-space: normal; }
.vm-bound { margin: 8px 0 12px; padding-left: 10px; border-left: 3px solid #535353; color: #bbbbbb; font-size: 13.5px; }
.vm-bound .mention { display: inline-flex; align-items: center; gap: 4px; }
.vm-line { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.55; }
.vm-line .ic { color: #bbbbbb; }
.vm-verb { color: #c8c8c8; }
.vm-gap { height: 10px; }
.vm4-right { padding: 30px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.vm4-right .vm4-keys { padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.vm4-right .key { aspect-ratio: 1; border-radius: 16px; font-size: 12px; }
.vm4-state { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.vm4-state .vchan { margin-top: 0; }
.vm4-state .vm4-log { margin-top: 0; }
@media (max-width: 640px) { .vm4-right { padding: 18px; } .vm4-right .vm4-keys { gap: 6px; } .vm4-right .key { border-radius: 12px; font-size: 10.5px; gap: 5px; } .vm4-right .key .ic { width: 17px; height: 17px; } }

/* language picker */
.lang { position: relative; }
.lang-btn { height: 38px; padding: 0 12px; gap: 6px; color: var(--muted); background: rgba(22, 22, 22, .7); font-weight: 600; font-size: 12.5px; }
.lang-btn[aria-expanded="true"] { border-color: rgba(195, 198, 245, .4); color: var(--text); }
.lang-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 270px; padding: 8px; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(18, 18, 18, .97); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); animation: fadeIn .15s ease; }
.lang-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0f0f0f; color: var(--dim); margin-bottom: 6px; }
.lang-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 14px var(--sans); outline: none; }
.lang-list { max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #353535 transparent; display: flex; flex-direction: column; }
.lang-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--text); font: 500 14px var(--sans); cursor: pointer; text-align: left; }
.lang-item:hover, .lang-item:focus-visible { background: rgba(255, 255, 255, .05); outline: none; }
.lang-item .le { color: var(--dim); font-size: 12.5px; display: grid; }
.lang-item[aria-selected="true"] .le { color: var(--text); }
.lang-none { padding: 12px; color: var(--dim); font-size: 13px; }
@media (max-width: 900px) { .lang-pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }
.pillnav a { white-space: nowrap; }
.hero4 { overflow-x: clip; }
.cmdx-perm[hidden], .lang-pop[hidden] { display: none; }

/* now playing card */
.np2 { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.np2-top { display: flex; align-items: center; gap: 14px; }
.np2-cover { position: relative; width: 64px; height: 64px; flex: none; padding: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #505050, #212121); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9); }
.np2-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.np2-cover:hover img { transform: scale(1.06); }
.np2-ov { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.np2-cover:hover .np2-ov, .np2-cover:focus-visible .np2-ov, #tile-music.is-real .np2-ov { opacity: 1; }
#tile-music.is-real:not(.is-paused) .np2-ov { opacity: 0; } #tile-music.is-real:not(.is-paused) .np2-cover:hover .np2-ov { opacity: 1; }
.np2-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.np2-meta small { color: var(--muted); font-size: 13px; }
.np2-meta b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np2-meta > span { color: var(--muted); font-size: 13.5px; }
.np2-meta a { color: var(--muted); } .np2-meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.np2-bar { position: relative; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .12); cursor: pointer; touch-action: none; margin-top: 6px; }
.np2-bar::before { content: ""; position: absolute; inset: -8px 0; }
.np2-bar i { display: block; height: 100%; border-radius: inherit; background: #f6f6f6; transition: width .5s linear; }
.np2-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.np2-time { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.np2-fx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.np2-fx button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: #e4e4e4; font: 600 12.5px var(--sans); cursor: pointer; transition: all .15s; }
.np2-fx button:hover { border-color: rgba(195, 198, 245, .35); }
.np2-fx button[aria-pressed="true"] { background: #f6f6f6; color: #0e0e0e; border-color: #f6f6f6; }

/* changelog inside the docs */
.cl-docs { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 28px; margin-top: 26px; }
.cl-docs .cl-meta { top: 90px; }
.cl-docs .cl-body { padding-bottom: 48px; }
.cl-docs .cl-body h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 22px; }
.cl-docs .cl-body h3 { font-size: 13.5px; }
@media (max-width: 760px) { .cl-docs { grid-template-columns: 1fr; } .cl-docs .cl-meta { position: static; margin-bottom: 12px; } .cl-docs .cl-body { padding-left: 18px; } }

/* faq: sections with an accordion card each, everything closed */
.faq2 { padding-bottom: 40px; }
.fq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 48px 0 30px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fq-head .page-ico { margin-bottom: 22px; }
.fq-head h1 { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -.045em; font-weight: 700; line-height: 1.05; }
.fq-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.fq-ask { height: 42px; padding: 0 18px; border-radius: 999px; gap: 8px; }
.fq-sec { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; padding-top: 40px; }
.fq-side h2 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.fq-side p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 260px; }
.fq-card { border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(195, 198, 245, .035), rgba(195, 198, 245, .01) 40%), #121212; padding: 4px 22px; }
.fq { border-bottom: 1px solid var(--line); }
.fq:last-child { border-bottom: 0; }
.fq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 2px; font-size: 15.5px; font-weight: 600; color: #f6f6f6; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary:hover { color: #fff; }
.fq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.fq-chev { display: grid; flex: none; color: var(--dim); transition: transform .2s, color .2s; }
.fq[open] .fq-chev { transform: rotate(180deg); color: var(--accent-2); }
.fq-a { padding: 0 2px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 760px; animation: fadeIn .2s ease; }
.fq-a a { color: var(--accent-2); } .fq-a a:hover { text-decoration: underline; text-underline-offset: 2px; }
.fq-a code { font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: #dfe3ff; overflow-wrap: anywhere; }
.fq-a b { color: var(--text); }
@media (max-width: 860px) { .fq-sec { grid-template-columns: 1fr; gap: 16px; padding-top: 32px; } .fq-side p { max-width: none; } .fq-card { padding: 2px 16px; border-radius: 18px; } }

/* christmas lights (only shown 1 dec to 6 jan, see app.js) */
.garland { position: absolute; left: 0; right: 0; top: 70px; height: 40px; z-index: 6; pointer-events: none; overflow: hidden; }
.garland svg { position: absolute; left: 0; top: 0; }
.garland i { position: absolute; width: 7px; height: 11px; margin-left: -3.5px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: var(--c);
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--c) 70%, transparent), 0 0 18px 4px color-mix(in srgb, var(--c) 30%, transparent); animation: twinkle 2.4s ease-in-out infinite; animation-delay: var(--d); }
.garland i::before { content: ""; position: absolute; left: 1.5px; top: -3px; width: 4px; height: 4px; border-radius: 1px; background: #575757; }
@keyframes twinkle { 0%, 100% { opacity: 1; filter: brightness(1.1); } 50% { opacity: .35; filter: brightness(.7); } }
@media (prefers-reduced-motion: reduce) { .garland i { animation: none; } }
@media (max-width: 640px) { .garland { top: 62px; } }


/* ---------- footer ---------- */
.foot-cols, .foot-bottom { display: none; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; padding: 44px 0 56px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-logo img { width: 44px; height: 44px; object-fit: contain; display: block; }
.foot-copy { color: var(--muted); font-size: 14px; line-height: 1.55; }
.foot-status { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: #e4e4e4; font-size: 13.5px; font-weight: 500; transition: border-color .2s, background .2s; }
.foot-status:hover { border-color: rgba(185, 189, 240, .28); background: rgba(255, 255, 255, .04); }
.foot-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); position: relative; flex: none; }
.foot-status.ok i { background: var(--ok); box-shadow: 0 0 10px rgba(74, 222, 128, .7); }
.foot-status.ok i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ok); animation: ping 2.2s ease-out infinite; }
.foot-status.bad i { background: var(--bad); }
.foot-note { color: var(--dim); font-size: 12.5px; }
.foot-col h4 { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; text-transform: none; }
.foot-col a { display: block; width: fit-content; color: var(--muted); font-size: 15px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }

/* ---------- status: icon cards with live sparklines ---------- */
.st-banner { display: flex; align-items: center; gap: 16px; margin: 28px 0 16px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(90deg, rgba(168, 168, 168, .08), transparent 60%), var(--panel); }
.st-banner.ok { border-color: rgba(74, 222, 128, .22); background: linear-gradient(90deg, rgba(74, 222, 128, .09), transparent 55%), var(--panel); }
.st-banner.bad { border-color: rgba(248, 113, 113, .22); background: linear-gradient(90deg, rgba(248, 113, 113, .08), transparent 55%), var(--panel); }
.st-copy { flex: 1; } .st-banner h2 { font-size: 19px; letter-spacing: -.02em; } .st-banner p { color: var(--muted); font-size: 13.5px; }
.st-tag { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.st-banner.ok .st-tag { color: var(--ok); border-color: rgba(74, 222, 128, .3); }
.st-banner.bad .st-tag { color: var(--bad); border-color: rgba(248, 113, 113, .3); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { position: relative; display: flex; flex-direction: column; padding: 18px 18px 0; border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(168, 168, 168, .1), transparent 55%), linear-gradient(180deg, #1a1a1a, #121212);
  transition: border-color .2s, transform .2s; }
.stat:hover { border-color: rgba(185, 189, 240, .26); transform: translateY(-2px); }
.stat header { display: flex; align-items: center; gap: 10px; }
.stat-ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(168, 168, 168, .13); color: var(--accent-2); flex: none; }
.stat-lbl { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stat-val { margin-top: 12px; font-size: 28px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; color: #eef0ff; font-variant-numeric: tabular-nums; }
.stat-val small { font-size: 14px; font-weight: 500; color: var(--dim); margin-left: 2px; letter-spacing: 0; }
.stat-sub { margin-top: 4px; color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { position: relative; height: 58px; margin: 14px -18px 0; cursor: crosshair; }
.spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sp-line { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.sp-s0 { stop-color: var(--accent); stop-opacity: .3; } .sp-s1 { stop-color: var(--accent); stop-opacity: 0; }
.stat[data-stat="cpu"] .sp-line, .stat[data-stat="memory"] .sp-line { stroke: var(--teal); }
.stat[data-stat="cpu"] .sp-s0, .stat[data-stat="memory"] .sp-s0 { stop-color: var(--teal); stop-opacity: .18; }
.stat[data-stat="cpu"] .sp-s1, .stat[data-stat="memory"] .sp-s1 { stop-color: var(--teal); }
.sp-base { stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.spark-tip { position: absolute; top: calc(var(--y, 50%) - 34px); transform: translateX(-50%); padding: 3px 8px; border-radius: 7px; background: #262626; border: 1px solid var(--line-2);
  font: 500 11.5px var(--mono); color: var(--text); white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); z-index: 2; }
.st-section { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 12px; }
.st-section h3 { font-size: 16px; letter-spacing: -.01em; } .st-note { color: var(--dim); font-size: 13px; }
.shards2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.shards2:empty::before { content: "shard details appear here once the status api answers"; color: var(--dim); font-size: 13.5px; grid-column: 1 / -1; padding: 18px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; }
.shard2 { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); display: grid; gap: 8px; }
.sh-top { display: flex; align-items: center; gap: 8px; font-size: 14px; } .sh-top b { font-weight: 600; } .sh-top span { margin-left: auto; color: var(--muted); font: 12.5px var(--mono); }
.sh-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, .6); }
.shard2.off .sh-top i { background: var(--bad); box-shadow: none; }
.sh-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; } .sh-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.shard2 small { color: var(--dim); font-size: 12.5px; }
@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: 1fr; } .st-banner { flex-wrap: wrap; } }

/* ---------- voicemaster: copy on the left, the interface keypad on the right ---------- */
.logo-wrap { position: relative; display: inline-flex; flex: none; }
.vmx { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 56px; padding: 70px 0 56px; }
.vmx-eyebrow { font: 500 11.5px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.vmx-copy h2 { margin-top: 18px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -.045em; font-weight: 650; }
.vmx-copy h2 .dim { color: #989898; }
.vmx-copy p { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 520px; }
.vmx-copy p + p { margin-top: 12px; }
.vmx-copy code { font-size: .92em; color: var(--text); }
.vmx-copy b { color: var(--text); }
.vmx-card { position: relative; padding: 22px; border-radius: 28px; border: 1px solid var(--line-2);
  background: radial-gradient(90% 70% at 85% 0%, rgba(168, 168, 168, .12), transparent 60%), linear-gradient(180deg, #181818, #111111);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04); }
.vmx-chan { display: flex; align-items: center; gap: 10px; padding: 4px 4px 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.vmx-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(168, 168, 168, .14); color: var(--accent-2); flex: none; transition: color .2s, background .2s; }
.vmx.is-locked .vmx-ico { color: #fcd34d; background: rgba(251, 191, 36, .12); }
.vmx-chan b { font-size: 14.5px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vmx-chips { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font: 500 11.5px var(--mono); }
.vchip.on { color: #fcd34d; border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); }
.vmx-sound { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; flex: none; }
.vmx-sound:hover { color: var(--text); } .vmx-sound[aria-pressed="false"] { color: var(--bad); }
.vkeys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.vkey { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: 20px; cursor: pointer; color: #d6d6d6; font: inherit;
  border: 1px solid rgba(185, 189, 240, .1); background: linear-gradient(180deg, #222222, #181818);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .15s, border-color .2s, background .2s, color .2s, box-shadow .2s; }
.vkey small { font-size: 11.5px; font-weight: 600; color: var(--dim); transition: color .2s; }
.vkey:hover { transform: translateY(-2px); border-color: rgba(185, 189, 240, .24); color: #fff; }
.vkey:hover small { color: var(--muted); }
.vkey.on { border-color: rgba(195, 198, 245, .38); background: linear-gradient(180deg, #2f2f2f, #1f1f1f); color: #fff;
  box-shadow: 0 0 0 1px rgba(168, 168, 168, .18), 0 14px 30px -12px rgba(168, 168, 168, .45), inset 0 1px 0 rgba(255, 255, 255, .08); }
.vkey.on small { color: var(--text); }
.vkey.pressed { transform: scale(.94); }
.vkey:focus-visible, .vmx-sound:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.vmx-reply { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 11px 14px; border-radius: 12px; background: #161616; border: 1px solid var(--line); color: var(--dim); font-size: 13.5px; min-height: 44px; }
.vmx-reply i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.vmx-reply.ok { color: #e6e6e6; } .vmx-reply.ok i { background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, .6); }
.vmx-reply.warn { color: #e6e6e6; } .vmx-reply.warn i { background: var(--warn); box-shadow: 0 0 8px rgba(251, 191, 36, .5); }
.vmx-reply.pop { animation: rlIn .25s ease; }
@keyframes rlIn { from { opacity: 0; transform: translateY(-4px); } }
.vmx-reply b { color: var(--text); } .vmx-reply .mention { display: inline-flex; align-items: center; gap: 3px; }
.vmx-foot { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 0 4px; color: var(--dim); font-size: 12.5px; } .vmx-foot .ic { color: var(--accent-2); }
@media (max-width: 960px) { .vmx { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; } }
@media (max-width: 520px) { .vmx-card { padding: 14px; border-radius: 22px; } .vkeys { gap: 7px; } .vkey { border-radius: 14px; gap: 5px; } .vkey small { font-size: 9.5px; }
  .vkey .ic { width: 17px; height: 17px; } .vmx-chan { flex-wrap: wrap; } .vmx-chips { order: 3; width: 100%; justify-content: flex-start; margin-left: 0; } .vmx-sound { margin-left: auto; } }

/* ---------- 404 ---------- */
.nf { min-height: 56vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 80px 0 40px; }
.nf-code { font: 600 13px var(--mono); letter-spacing: .2em; color: var(--accent-2); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.nf h1 { margin-top: 22px; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.045em; line-height: 1.06; }
.nf p { margin-top: 12px; color: var(--muted); max-width: 460px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.nf-links .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- scanner ---------- */
.scanx { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 48px; padding: 56px 0; }
.scanx-copy h2 { margin-top: 18px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -.045em; font-weight: 650; }
.scanx-copy h2 .dim { color: #989898; }
.scanx-copy p { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.scanx-copy code { color: var(--text); }
.scanx-cmds { margin-top: 22px; display: grid; gap: 8px; justify-items: start; }
.scanx-cmds code { padding: 8px 12px; border-radius: 10px; background: #171717; border: 1px solid var(--line-2); font-size: 14px; }
.scanx-hint { color: var(--dim); font-size: 13px; margin: -2px 0 0 4px; }
.scanx-shot { margin: 0; padding: 10px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #1a1a1a, #121212);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); }
.scanx-shot img { display: block; width: 100%; height: auto; border-radius: 14px; }
.scanx-shot figcaption { margin: 10px 4px 2px; color: var(--dim); font-size: 12.5px; }
@media (max-width: 960px) { .scanx { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } }
