/* ew — one stylesheet for every page.
   Minimal: near-black, hairlines, lots of space. Motion is slow, eased and
   quiet — things settle into place rather than bounce. */

:root {
  --accent: #f4f4f5;
  --accent-ink: #09090b;
  --bg: #09090b;
  --surface: rgba(255, 255, 255, .025);
  --raise: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #63636b;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --r: 14px;
  --w: 1040px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 14.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  animation: page-in .7s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(255, 255, 255, .16); }
code, kbd, pre, .mono { font-family: var(--mono); }
kbd { font-size: 10.5px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.03); }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12.5px; }
.code { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
:focus-visible { outline: 1px solid rgba(255, 255, 255, .5); outline-offset: 2px; }

/* ── background: one soft light from above, a faint dot grid ───────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.bg::before { content: ""; position: absolute; left: 50%; top: -38vh; width: 120vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .075), transparent); animation: breathe 14s var(--ease-io) infinite alternate; }
.bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000, transparent 75%); }
@keyframes breathe { to { opacity: .55; transform: translateX(-50%) scale(1.08); } }
.bg-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 0; top: 0; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .045), transparent);
  transform: translate3d(calc(var(--gx, 50vw) - 260px), calc(var(--gy, 30vh) - 260px), 0); transition: opacity 1.2s var(--ease); }
.bg-glow.on { opacity: 1; }

/* ── nav ──────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s; }
.nav.scrolled { background: rgba(9, 9, 11, .7); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav-in { max-width: var(--w); margin: 0 auto; height: 60px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 15px; }
.brand img { width: 24px; height: 24px; border-radius: 50%; background: var(--raise); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand img:not([src]) { display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 6px 10px; color: var(--muted); font-size: 13.5px; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px;
  color: var(--muted); background: transparent; border: 1px solid var(--line); cursor: pointer; font-family: var(--mono);
  transition: color .3s, border-color .3s, background .3s; }
.pill:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.pill kbd { border: 0; background: none; padding: 0; }
.dot { position: relative; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.dot.ok::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* ── layout ───────────────────────────────────────────────────────── */
main { flex: 1; width: 100%; max-width: var(--w); margin: 0 auto; padding: 64px 24px 110px; }
.page-head { margin-bottom: 36px; }
.page-head h1 { margin: 10px 0 0; font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -.04em; font-weight: 600; line-height: 1.1; }
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 600px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.section { margin-top: 120px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.035em; font-weight: 600; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.grid { display: grid; gap: 12px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Scroll reveal: fade up out of a slight blur. Children with [data-stagger] cascade. */
.reveal, [data-stagger] > * { opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in, [data-stagger].in > * { opacity: 1; transform: none; filter: none; }

/* Spotlight: cards light up under the cursor (motion.ts sets --mx/--my). */
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .06), transparent 60%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ── controls ─────────────────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 999px; font: 500 13.5px var(--sans); color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2);
  cursor: pointer; white-space: nowrap; transition: background .3s, border-color .3s, transform .5s var(--ease), color .3s; }
.btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn.solid, .btn.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.solid:hover, .btn.accent:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .07), 0 10px 40px -10px rgba(255, 255, 255, .35); }
/* A sheen sweeps across the primary button on hover. */
.btn.accent::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); }
.btn.accent:hover::after { transform: translateX(120%) skewX(-20deg); transition: transform .9s var(--ease); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 14.5px; font-weight: 500; gap: 10px; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.btn.glass { background: rgba(255, 255, 255, .03); border-color: var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: .4; cursor: default; }
.icon-btn { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 7px; border: 1px solid var(--line);
  background: none; color: var(--muted); cursor: pointer; font-size: 12px; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.input, input:not([type]), input[type=text], input[type=search], textarea, select {
  width: 100%; font: 13.5px var(--sans); color: var(--text); background: rgba(255, 255, 255, .02); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 9px 12px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; }
textarea { min-height: 76px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
.input:focus, input:focus, textarea:focus, select:focus { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .04); }
input[type=checkbox] { accent-color: #d4d4d8; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px;
  color: var(--muted); background: none; border: 1px solid var(--line); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.chip:hover { color: var(--text); }
.chip.active { color: var(--text); background: rgba(255, 255, 255, .07); border-color: var(--line-2); }

/* ── stats strip ──────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.stats > div { padding: 22px 4px; min-width: 0; }
.stats dt { font-size: 11px; color: var(--dim); font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.stats dd { margin: 8px 0 0; font-size: 28px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dd small { font-size: 13px; color: var(--dim); font-weight: 400; margin-left: 3px; letter-spacing: 0; }

/* ── home ─────────────────────────────────────────────────────────── */
body.landing .nav:not(.scrolled) .brand { opacity: 0; pointer-events: none; transform: translateY(-4px); }
body.landing .brand { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.landing-hero { position: relative; min-height: calc(100vh - 60px); margin-top: -64px; padding: 40px 0 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-art { width: 88px; height: 88px; border-radius: 26px; object-fit: cover; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2); box-shadow: 0 0 0 8px rgba(255, 255, 255, .02), 0 30px 80px -20px rgba(0, 0, 0, .9);
  animation: rise 1.4s var(--ease) both, float 7s var(--ease-io) 1.4s infinite alternate; }
.hero-art:not([src]) { visibility: hidden; }
@keyframes float { to { transform: translateY(-6px); } }
.announce { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 12.5px;
  color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); animation: rise 1.2s var(--ease) .15s both; }
.announce b { color: var(--text); font-weight: 500; font-family: var(--mono); font-size: 12px; }
.announce .i { height: 20px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font: 600 10.5px var(--sans); letter-spacing: .02em; }
.hero-title { margin: 22px 0 0; font-size: clamp(44px, 8vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -.055em; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero-title .w > span { display: inline-block; animation: word 1.3s var(--ease) both; animation-delay: calc(.25s + var(--i) * .08s); }
.hero-title .soft { color: var(--dim); }
@keyframes word { from { transform: translateY(105%); filter: blur(8px); opacity: 0; } }
.hero-sub { margin: 22px auto 0; max-width: 460px; color: var(--muted); font-size: 16px; line-height: 1.7; animation: rise 1.3s var(--ease) .55s both; }
.hero-actions { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; justify-content: center; animation: rise 1.3s var(--ease) .7s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; width: 1px; height: 44px; background: linear-gradient(var(--line-2), transparent); overflow: hidden;
  animation: rise 1s var(--ease) 1.2s both; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { to { top: 110%; } }

.cat-table { width: 100%; border-collapse: collapse; }
.cat-table tr { border-top: 1px solid var(--line); transition: background .3s; }
.cat-table tr:first-child { border-top: 0; }
.cat-table td { padding: 16px 20px; vertical-align: top; transition: transform .5s var(--ease), color .3s; }
.cat-table td:first-child { width: 190px; font-weight: 500; white-space: nowrap; }
.cat-table td:nth-child(2) { color: var(--muted); }
.cat-table td:last-child { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.cat-table tr[data-href]:hover { background: rgba(255, 255, 255, .02); }
.cat-table tr[data-href]:hover td:first-child { transform: translateX(4px); }
.cat-table .ex { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.feature { padding: 24px; transition: border-color .4s, transform .6s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature h3 { margin: 0; font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.feature p { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.feature code { display: inline-block; margin-top: 16px; font-size: 11.5px; color: var(--dim); }
.feature svg { width: 16px; height: 16px; color: var(--muted); transition: color .3s, transform .6s var(--ease); }
.feature:hover svg { color: var(--text); transform: scale(1.12) rotate(-6deg); }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 500 11px var(--mono); color: var(--dim); }
.step b { font-weight: 500; } .step p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.copyable { cursor: pointer; font-family: var(--mono); font-size: 12px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02); color: var(--text); white-space: nowrap; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.copyable:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.copyable:active { transform: scale(.96); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; transition: transform .5s var(--ease);
  background: linear-gradient(var(--dim), var(--dim)) center / 10px 1px no-repeat, linear-gradient(var(--dim), var(--dim)) center / 1px 10px no-repeat; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--muted); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); animation: rise .6s var(--ease); }
.cta { margin-top: 130px; text-align: center; }
.cta h2 { margin: 0; font-size: clamp(28px, 4.5vw, 44px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.cta p { margin: 14px 0 28px; color: var(--muted); }

/* ── commands ─────────────────────────────────────────────────────── */
.cmds { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.cmds-side { position: sticky; top: 84px; display: grid; gap: 2px; }
.cmds-side button { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: 9px; border: 0; background: none;
  color: var(--muted); font: 13.5px var(--sans); cursor: pointer; text-align: left; transition: color .25s, background .25s; }
.cmds-side button:hover { color: var(--text); }
.cmds-side button.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.cmds-side button span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.cmds-bar { position: sticky; top: 60px; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 14px 0;
  background: rgba(9, 9, 11, .75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cmd-group { margin-bottom: 36px; animation: rise .8s var(--ease) both; }
.cmd-group > h2 { margin: 8px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 11px; font-family: var(--mono);
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.cmd { border-bottom: 1px solid var(--line); padding: 13px 8px; cursor: pointer; transition: background .25s; }
.cmd:hover { background: rgba(255, 255, 255, .02); }
.cmd-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cmd-name { font-family: var(--mono); font-weight: 500; font-size: 13.5px; }
.cmd-usage { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.cmd-tags { margin-left: auto; display: flex; gap: 6px; }
.tag { font-size: 10.5px; font-family: var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.cmd-desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.cmd-more { display: none; margin-top: 12px; }
.cmd.open .cmd-more { display: block; animation: rise .5s var(--ease); }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--dim); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.cmd.flash { animation: flash 1.8s var(--ease); }
@keyframes flash { 0%, 30% { background: rgba(255, 255, 255, .07); } }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.skeleton { height: 54px; border-radius: 10px; margin-bottom: 8px; background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.05), rgba(255,255,255,.02));
  background-size: 200% 100%; animation: shimmer 1.6s var(--ease-io) infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── status ───────────────────────────────────────────────────────── */
.banner { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.banner .dot { width: 9px; height: 9px; }
.banner h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.banner .meta { margin-left: auto; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--muted); border-radius: 2px; transform-origin: left; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.history { display: flex; gap: 3px; align-items: end; height: 44px; padding: 0 20px 16px; }
.history i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--line-2); transform-origin: bottom; animation: grow-y .8s var(--ease) both; }
@keyframes grow-y { from { transform: scaleY(0); } }
.history i.ok { background: rgba(161, 161, 170, .5); } .history i.bad { background: var(--bad); }

/* ── embed builder ────────────────────────────────────────────────── */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 13px; font-weight: 500; }
.panel-body { padding: 16px; }
.tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.tab { height: 26px; padding: 0 12px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: 500 12.5px var(--sans); cursor: pointer;
  transition: background .3s var(--ease), color .3s; }
.tab.active { background: rgba(255, 255, 255, .1); color: var(--text); }
.field { display: grid; gap: 6px; margin-bottom: 12px; flex: 1; min-width: 0; }
.field label { font-size: 11px; color: var(--dim); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.block { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: rgba(255, 255, 255, .015); animation: rise .5s var(--ease); }
.block-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.block-head .kind { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.block-head .tools { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.block-body { padding: 12px 12px 2px; }
.add-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.color-input { display: flex; gap: 8px; }
.color-input input[type=color] { width: 40px; height: 38px; padding: 2px; border-radius: 10px; border: 1px solid var(--line-2); background: none; flex: none; }
.check { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); margin-right: 14px; cursor: pointer; }
.output { margin: 0; padding: 14px; max-height: 260px; overflow: auto; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
  font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.validity { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.vars { display: flex; flex-wrap: wrap; gap: 5px; }
.var { font: 11.5px var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.var:hover { color: var(--text); border-color: var(--line-2); }
.side-stack { display: grid; gap: 16px; position: sticky; top: 80px; }

/* discord preview */
.discord { background: #313338; border-radius: 10px; padding: 14px 14px 16px; color: #dbdee1; font-size: 15px; line-height: 1.375; }
.dmsg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.dmsg > img { width: 40px; height: 40px; border-radius: 50%; }
.dname { font-weight: 600; color: #f2f3f5; } .dapp { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; margin: 0 4px; }
.dtime { font-size: 12px; color: #949ba4; }
.md p { margin: 0; } .md h1 { font-size: 1.5em; margin: 6px 0 2px; } .md h2 { font-size: 1.25em; margin: 6px 0 2px; } .md h3 { font-size: 1.05em; margin: 4px 0 2px; }
.md .sub { font-size: 12px; color: #949ba4; } .md blockquote { margin: 0; padding-left: 10px; border-left: 4px solid #4e5058; }
.md code { background: #2b2d31; padding: 1px 4px; border-radius: 4px; font-size: .85em; }
.md pre { background: #2b2d31; padding: 8px; border-radius: 6px; } .md a { color: #00a8fc; }
.mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.v2 { margin-top: 6px; max-width: 520px; background: #393a41; border: 1px solid #44464e; border-left-width: 4px; border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; }
.v2-sep { border: 0; border-top: 1px solid #4e5058; margin: 2px 0; width: 100%; } .v2-sep.large { margin: 10px 0; } .v2-sep.hidden { border-color: transparent; }
.v2-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.v2-thumb { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.v2-gallery { display: grid; gap: 4px; border-radius: 8px; overflow: hidden; } .v2-gallery img { width: 100%; max-height: 260px; object-fit: cover; }
.v2-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-button { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.embed { margin-top: 6px; max-width: 520px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; background: #2b2d31;
  border-left: 4px solid #1e1f22; border-radius: 4px; padding: 10px 14px 12px 12px; }
.embed-author { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: #f2f3f5; margin-bottom: 4px; }
.embed-author img { width: 24px; height: 24px; border-radius: 50%; }
.embed-title { font-weight: 600; color: #f2f3f5; margin-bottom: 4px; }
.embed-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.embed-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.embed-field { grid-column: 1 / -1; font-size: 14px; } .embed-field.inline { grid-column: auto; }
.embed-image { grid-column: 1 / -1; max-width: 100%; border-radius: 4px; }
.embed-footer { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 12px; color: #b5bac1; }
.embed-footer img { width: 20px; height: 20px; border-radius: 50%; }

/* ── footer ───────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); }
.footer-in { max-width: var(--w); margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px 30px; align-items: start; }
.footer-in b { font-weight: 600; letter-spacing: -.02em; }
.footer-in p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.footer-in nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-in nav a { transition: color .3s; }
.footer-in nav a:hover { color: var(--text); }
.footer-in > p.small { grid-column: 1 / -1; color: var(--dim); }

/* ── palette, toast ───────────────────────────────────────────────── */
.palette { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .5); display: flex; justify-content: center; padding: 14vh 16px 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.palette[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.palette-box { width: min(580px, 100%); align-self: flex-start; background: rgba(17, 17, 19, .96); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette-box > input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 17px 18px; font-size: 15px; background: none; box-shadow: none; }
.palette-list { max-height: 50vh; overflow: auto; padding: 6px; }
.palette-item { display: grid; grid-template-columns: 78px auto minmax(0, 1fr); gap: 12px; width: 100%; align-items: baseline; padding: 10px 12px;
  border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background .2s; }
.palette-item.active { background: rgba(255, 255, 255, .06); }
.palette-item .kind { font: 10.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.palette-item .label { font-weight: 500; white-space: nowrap; }
.palette-item .hint { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-empty { padding: 28px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 16px) scale(.96); opacity: 0; z-index: 120; padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 500; pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ── navigation menu ──────────────────────────────────────────────── */
.menu { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0); display: flex; justify-content: flex-end;
  transition: background .5s var(--ease), backdrop-filter .5s; }
.menu.open { background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.menu[hidden] { display: none; }
.menu-panel { width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; padding: 22px 30px 30px;
  background: rgba(10, 10, 12, .97); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .7s var(--ease); }
.menu.open .menu-panel { transform: none; }
.menu-close { align-self: flex-end; display: inline-flex; gap: 8px; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: none; color: var(--muted); font: 13px var(--sans); cursor: pointer; transition: color .3s; }
.menu-close:hover { color: var(--text); }
.menu-close kbd { border: 0; padding: 0; }
.menu-links { margin-top: 56px; display: grid; }
.menu-links a { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); outline: none;
  opacity: 0; transform: translateX(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(1) { transition-delay: .08s; } .menu.open .menu-links a:nth-child(2) { transition-delay: .13s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: .18s; } .menu.open .menu-links a:nth-child(4) { transition-delay: .23s; }
.menu.open .menu-links a:nth-child(5) { transition-delay: .28s; }
.menu-links .n { font: 11px var(--mono); color: var(--dim); }
.menu-links .l { font-size: 24px; font-weight: 500; letter-spacing: -.035em; color: var(--muted); transition: color .3s, transform .5s var(--ease); display: inline-block; }
.menu-links .h { grid-column: 2; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.menu-links a:hover .l, .menu-links a:focus-visible .l, .menu-links a[aria-current] .l { color: var(--text); }
.menu-links a:hover .l, .menu-links a:focus-visible .l { transform: translateX(6px); }
.menu-links a[aria-current] .n { color: var(--text); }
.menu-foot { margin-top: auto; display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.menu-foot a:hover { color: var(--text); }

/* ── server ticker ────────────────────────────────────────────────── */
.ticker { width: 100%; max-width: 980px; min-width: 0; overflow: hidden; text-align: center; margin-top: 72px; animation: rise 1.3s var(--ease) .9s both; }
.ticker[hidden] { display: none; }
.ticker-line { margin: 0 0 22px; color: var(--dim); font-size: 13px; }
.ticker-line b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.ticker-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.ticker-rail { display: flex; width: max-content; gap: 48px; animation: ticker var(--dur, 40s) linear infinite; }
.ticker-track:hover .ticker-rail { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 24px)); } }
.t-server { display: flex; align-items: center; gap: 12px; text-align: left; flex: none; opacity: .7; transition: opacity .4s; }
.t-server:hover { opacity: 1; }
.t-server img, .t-initial { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; filter: grayscale(1); transition: filter .5s; }
.t-server:hover img { filter: none; }
.t-initial { display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--muted); font-weight: 500; }
.t-server b { font-size: 13.5px; font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.t-badge { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 5px; border-radius: 50%; background: rgba(255, 255, 255, .15);
  color: var(--text); font: normal 9px var(--sans); vertical-align: 2px; }
.t-server small { display: block; color: var(--dim); font-size: 12px; }

/* ── responsive & motion ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .builder, .cmds { grid-template-columns: minmax(0, 1fr); }
  .side-stack { position: static; }
  .cmds-side { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .cmds-side button { flex: none; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { margin-top: 90px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-in { padding: 0 16px; }
  main { padding: 40px 16px 80px; }
  .pill.search kbd { display: none; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats dd { font-size: 24px; }
  .cat-table td:first-child { width: auto; }
  .cat-table td:nth-child(2) { display: none; }
  .step { grid-template-columns: 28px minmax(0, 1fr); }
  .step .copyable { grid-column: 2; justify-self: start; }
  .footer-in { grid-template-columns: 1fr; padding: 30px 16px; }
  .embed-fields { grid-template-columns: minmax(0, 1fr); }
  .table .hide-sm { display: none; }
  .announce { font-size: 11.5px; }
}
@media (hover: none) { .spot::before, .spot::after, .bg-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, [data-stagger] > * { opacity: 1; transform: none; filter: none; }
}

/* ── landing v2: left copy, floating chips, pill nav, stars ───────── */
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; border-radius: 50%; background: #d4d4d8; opacity: var(--o); animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: calc(var(--o) * .2); } }
.bg::before { left: 15%; top: -10vh; width: 90vw; height: 110vh;
  background: radial-gradient(closest-side, rgba(180, 180, 190, .07), transparent); }
.bg::after { display: none; }

.nav-in { max-width: 1120px; display: grid; grid-template-columns: 1fr auto 1fr; }
.nav-center { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.nav-center a { padding: 7px 15px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .3s, background .3s; }
.nav-center a:hover, .nav-center a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-in .nav-right { justify-self: end; }
.brand img { border-radius: 8px; }

body.landing .nav:not(.scrolled) .brand { opacity: 1; pointer-events: auto; transform: none; }
.landing-hero { align-items: stretch; text-align: left; justify-content: space-between; padding: 0 0 44px; }
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.hero-title { margin: 0; font-size: clamp(36px, 4.8vw, 54px); line-height: 1.2; letter-spacing: -.04em; font-weight: 600; max-width: 560px; }
.hero-title .bot-name { color: #d4d4d8; }
.hero-title .soft { color: #8f8f98; }
.hero-sub { margin: 26px 0 0; max-width: 470px; font-size: 15px; line-height: 1.75; }
.hero-actions { justify-content: flex-start; gap: 10px; margin-top: 40px; }
.hero-actions .btn { height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 500;
  background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid rgba(255, 255, 255, .1); }
.hero-actions .btn:hover { background: rgba(255, 255, 255, .11); box-shadow: none; }
.hero-actions .btn.accent { background: rgba(255, 255, 255, .09); }
.hero-actions .btn.accent::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); }

.chips { display: grid; gap: 34px; justify-items: start; padding-left: 40px; }
.chip-float { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; margin-left: var(--x);
  border-radius: 12px; font: 500 12.5px var(--mono); color: var(--text); background: rgba(20, 20, 23, .7);
  border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); backdrop-filter: blur(10px);
  animation: rise 1.2s var(--ease) both, bob 6s var(--ease-io) infinite alternate; animation-delay: .5s, var(--t); }
.chip-float:nth-child(2) { animation-delay: .62s, var(--t); } .chip-float:nth-child(3) { animation-delay: .74s, var(--t); }
.chip-float:nth-child(4) { animation-delay: .86s, var(--t); }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
.chip-float i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.chip-float svg { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ticker { margin: 0 auto; max-width: 900px; }
.ticker-line { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.ticker-line b { font-weight: 600; }
.t-server { opacity: 1; gap: 14px; }
.t-server img, .t-initial { width: 48px; height: 48px; filter: none; }
.t-server b { font-size: 14.5px; font-weight: 600; }
.t-badge { width: 16px; height: 16px; margin-left: 7px; background: #a1a1aa; vertical-align: 1px; }
.t-badge svg { width: 10px; height: 10px; fill: none; stroke: #09090b; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 860px) {
  .nav-center { display: none; }
  .nav-in { display: flex; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .chips { display: none; }
}

/* ── page header (commands, status) ───────────────────────────────── */
.ph { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; animation: rise .9s var(--ease) both; }
.ph-title { display: flex; align-items: center; gap: 16px; }
.ph-title h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.ph-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ph-icon svg, .ph-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-count { font-size: 11.5px; color: var(--dim); }
.ph-search { display: flex; gap: 8px; align-items: center; }
.ph-search .input { width: 0; padding-left: 0; padding-right: 0; border-color: transparent; opacity: 0;
  transition: width .6s var(--ease), opacity .4s, padding .6s var(--ease), border-color .4s; }
.ph-search.open .input { width: min(220px, 55vw); padding: 9px 12px; opacity: 1; border-color: var(--line-2); }
.ph-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.ph-btn:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-2); }
.ph-btn:hover svg { stroke: var(--text); }

/* ── command cards ─────────────────────────────────────────────────── */
.cat-tabs-wrap { position: relative; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02);
  animation: rise .9s var(--ease) .1s both; }
.cat-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding-right: 50px; scroll-behavior: smooth; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 500 13.5px var(--sans); transition: color .3s, background .3s; }
.cat-tabs button:first-child { border-radius: 13px 0 0 13px; }
.cat-tabs button:hover { color: var(--text); }
.cat-tabs button.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.cat-tabs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-tabs span { font: 500 10.5px var(--mono); padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.cat-tabs button.active span { background: rgba(255, 255, 255, .12); color: var(--text); }
.tabs-arrow { position: absolute; right: 0; top: 0; bottom: 0; width: 56px; border: 0; cursor: pointer; display: grid; place-items: center;
  border-radius: 0 13px 13px 0; background: linear-gradient(90deg, transparent, var(--bg) 45%); }
.tabs-arrow svg { width: 17px; height: 17px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.tabs-arrow:hover svg { transform: translateX(3px); }

.cmd-grid, .shard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ccard, .scard { position: relative; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .022); overflow: hidden;
  animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); transition: border-color .4s, transform .6s var(--ease); }
.ccard:hover, .scard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ccard header, .scard header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 18px; border-bottom: 1px solid var(--line); }
.ccard h3, .scard h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.ccard header p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ccopy { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 7px; transition: background .3s; }
.ccopy svg { width: 15px; height: 15px; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.ccopy:hover { background: rgba(255, 255, 255, .06); }
.ccopy:hover svg { stroke: var(--text); }
.ccard dl { margin: 0; padding: 16px 20px 20px; display: grid; gap: 8px; }
.ccard dt { font-size: 12px; color: var(--dim); }
.ccard dd { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.arg { font-style: italic; font-size: 12px; padding: 3px 9px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: #d4d4d8; }
.arg.opt { background: none; border: 1px dashed var(--line-2); color: var(--muted); }
.perm { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 7px; background: rgba(255, 255, 255, .09); color: var(--text); }
.none { color: var(--muted); font-size: 12.5px; }
.ccard dd.aliases { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.ccard.flash { animation: rise .8s var(--ease) both, flash 1.8s var(--ease); }
.skeleton.tall { height: 230px; border-radius: 16px; }
.cmd-grid > .empty, .shard-grid > .empty { grid-column: 1 / -1; }

/* ── shard cards ───────────────────────────────────────────────────── */
.scard header { align-items: center; }
.ago { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--dim); font-size: 11.5px; }
.ago svg, .scard dd svg { width: 12px; height: 12px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.state { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); }
.state.ok { color: #86efac; background: rgba(74, 222, 128, .06); }
.state.warn { color: #fcd34d; background: rgba(251, 191, 36, .06); }
.state.bad { color: #fca5a5; background: rgba(248, 113, 113, .06); }
.scard dl { margin: 0; padding: 18px 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scard dt { font-size: 12px; color: var(--dim); }
.scard dd { margin: 5px 0 0; display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.scard.found { border-color: rgba(255, 255, 255, .35); box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); }
.lookup-result { margin: -14px 0 24px; color: var(--muted); font-size: 13.5px; animation: rise .5s var(--ease); }
.lookup-result b { color: var(--text); font-weight: 500; }

/* ── docs ──────────────────────────────────────────────────────────── */
body.docs-page main { max-width: 1240px; padding-top: 36px; }
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr) 190px; gap: 48px; align-items: start; }
.docs-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; padding-right: 14px; border-right: 1px solid var(--line); }
.dgroup { margin-bottom: 26px; }
.dgroup h4 { margin: 0 0 8px; padding-left: 12px; font-size: 13px; font-weight: 600; }
.dgroup a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 13.5px;
  transition: color .25s, background .25s, transform .4s var(--ease); }
.dgroup a:hover { color: var(--text); transform: translateX(2px); }
.dgroup a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .06); }
.dgroup svg, .docs-toc svg, .dnote svg, .dcard svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.docs-body { min-width: 0; max-width: 680px; opacity: 0; transform: translateY(10px); }
.docs-body.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.docs-body h1 { margin: 8px 0 0; font-size: 38px; font-weight: 600; letter-spacing: -.04em; }
.dlead { margin: 10px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.docs-body h2 { margin: 44px 0 16px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; scroll-margin-top: 90px; }
.docs-body p { color: var(--muted); line-height: 1.75; }
.docs-body a:not(.dcard) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.docs-body code { font-size: .86em; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--text); }
.dnote { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; margin: 18px 0; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-2); }
.dnote svg { margin-top: 3px; color: var(--muted); }
.dnote p { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.65; }
.dcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.dcard { position: relative; display: grid; gap: 8px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease); }
.dcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.dcard svg { width: 22px; height: 22px; color: var(--muted); margin-bottom: 14px; transition: color .3s, transform .6s var(--ease); }
.dcard:hover svg { color: var(--text); transform: rotate(-8deg) scale(1.08); }
.dcard b { font-weight: 600; font-size: 15px; }
.dcard span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.dcmds { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 14px 0; }
.dcmd { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 13px 18px; text-align: left; cursor: pointer;
  border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; transition: background .25s; }
.dcmd:first-child { border-top: 0; }
.dcmd:hover { background: rgba(255, 255, 255, .03); }
.docs-body .dcmd code { justify-self: start; background: none; padding: 0; font-size: 12.5px; }
.dcmd span { color: var(--muted); font-size: 13px; }
.dsteps { margin: 16px 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.dsteps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; color: var(--muted); line-height: 1.65; }
.dsteps li::before { content: counter(s, decimal-leading-zero); font: 500 11px/2.2 var(--mono); color: var(--dim); }
.docs-toc { position: sticky; top: 84px; display: grid; gap: 8px; }
.docs-toc h4 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.docs-toc a { color: var(--muted); font-size: 13px; padding-left: 24px; transition: color .25s; }
.docs-toc a:hover { color: var(--text); }
.menu.open .menu-links a:nth-child(6) { transition-delay: .33s; }

@media (max-width: 1100px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 900px) { .cmd-grid, .shard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .docs-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; display: flex; overflow-x: auto; gap: 4px; }
  .dgroup { margin: 0; display: contents; }
  .dgroup h4 { display: none; }
  .dgroup a { flex: none; }
  .dcards { grid-template-columns: 1fr; }
  .dcmd { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) { .cmd-grid, .shard-grid { grid-template-columns: 1fr; } }

/* ── nav dashboard button ─────────────────────────────────────────── */
.pill.dash-btn { font-family: var(--sans); font-weight: 500; color: var(--text); background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
.pill.dash-btn:hover { background: rgba(255, 255, 255, .11); }
@media (max-width: 640px) { .pill.dash-btn { display: none; } }

/* ── changelog ────────────────────────────────────────────────────── */
.cl-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-filter .chip { text-transform: capitalize; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 130px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.release { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 0; animation: rise .8s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.release-meta { position: relative; padding: 22px 26px 0 0; display: grid; gap: 4px; justify-items: end; text-align: right; }
.release-meta::after { content: ""; position: absolute; right: -4px; top: 28px; width: 7px; height: 7px; border-radius: 50%; background: var(--text);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line-2); }
.ver { font-size: 12px; color: var(--text); padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.release-meta time { font-size: 12px; color: var(--dim); }
.release-body { margin-left: 26px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .022);
  transition: border-color .4s; }
.release-body:hover { border-color: var(--line-2); }
.release-body h2 { margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.release-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.release-body li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.kind { justify-self: start; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: var(--muted); }
.kind.new { color: #f4f4f5; background: rgba(255, 255, 255, .12); }
.kind.fixed { color: #86efac; background: rgba(74, 222, 128, .07); }
.kind.removed { color: #fca5a5; background: rgba(248, 113, 113, .07); }
@media (max-width: 700px) {
  .timeline::before { display: none; }
  .release { grid-template-columns: 1fr; }
  .release-meta { justify-items: start; flex-direction: row; display: flex; gap: 10px; padding: 0 0 10px; }
  .release-meta::after { display: none; }
  .release-body { margin-left: 0; }
  .release-body li { grid-template-columns: 1fr; gap: 4px; }
}

/* ── dashboard ────────────────────────────────────────────────────── */
.dash-hero { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; animation: rise 1s var(--ease) both; }
.dash-hero h1 { margin: 6px 0 0; font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.dash-hero p { margin: 0; color: var(--muted); max-width: 380px; }
.dash-hero .btn { margin-top: 12px; }
.dash-error { color: #fca5a5 !important; }
.ph-icon.lg { width: 60px; height: 60px; }
.ph-icon.lg svg { width: 24px; height: 24px; }
.dash-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; animation: rise .7s var(--ease) both; }
.dash-user { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; }
.dash-user img { width: 28px; height: 28px; border-radius: 50%; }
.dash-sub { margin: 34px 0 14px; font-size: 13px; font-weight: 500; color: var(--dim); font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gcard { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022); overflow: hidden; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 40ms);
  transition: border-color .4s, transform .6s var(--ease); }
.gcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.gcard.invite { opacity: .65; } .gcard.invite:hover { opacity: 1; }
.gicon, .ph-gicon { width: 46px; height: 46px; border-radius: 14px; flex: none; object-fit: cover; }
.ph-gicon { width: 44px; height: 44px; border-radius: 50%; }
.gi-initial { display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--muted); font-weight: 600; }
.gcard div { min-width: 0; flex: 1; }
.gcard b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard small { color: var(--dim); font-size: 12.5px; }
.garrow { color: var(--dim); font-size: 18px; transition: transform .5s var(--ease), color .3s; }
.gcard:hover .garrow { transform: translateX(3px); color: var(--text); }

.dash-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; }
.dash-side { position: sticky; top: 84px; display: grid; gap: 2px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.dash-side a { padding: 7px 12px; border-radius: 9px; color: var(--muted); font-size: 13.5px; transition: color .25s, background .25s; }
.dash-side a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.dash-main .dash-sub:first-child { margin-top: 0; }
.mcard { position: relative; margin-bottom: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .022); overflow: hidden;
  scroll-margin-top: 90px; animation: rise .7s var(--ease) both; animation-delay: calc(min(var(--i), 10) * 40ms); transition: border-color .4s; }
.mcard:hover { border-color: var(--line-2); }
.mcard header { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mcard h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
.mcard header p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.mfields { display: grid; }
.mfield { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 20px; border-top: 1px solid var(--line); transition: background .4s; }
.mfield:first-child { border-top: 0; }
.mfield > span { font-size: 13.5px; }
.mfield select, .mfield .input { width: min(260px, 50%); }
.mfield.saving { opacity: .6; }
.mfield.saved { background: rgba(74, 222, 128, .05); }
.mover { border-top: 1px solid var(--line); }
.mover summary { cursor: pointer; padding: 12px 20px; font-size: 12.5px; color: var(--dim); list-style: none; transition: color .25s; }
.mover summary::-webkit-details-marker { display: none; }
.mover summary:hover { color: var(--text); }
.mover > div { padding: 0 20px 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.mover code { font-size: .9em; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.mover .mention { color: var(--text); background: rgba(255, 255, 255, .08); border-radius: 4px; padding: 0 4px; }

.switch { position: relative; width: 40px; height: 22px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2); transition: background .35s var(--ease); }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted);
  transition: transform .45s var(--ease), background .3s; }
.switch input:checked + i { background: rgba(255, 255, 255, .85); }
.switch input:checked + i::after { transform: translateX(18px); background: #09090b; }
.switch input:focus-visible + i { outline: 1px solid rgba(255, 255, 255, .5); outline-offset: 2px; }

@media (max-width: 900px) { .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-grid { grid-template-columns: 1fr; } .dash-side { display: none; } }
@media (max-width: 600px) { .gcards { grid-template-columns: 1fr; } .mfield { flex-direction: column; align-items: stretch; gap: 8px; } .mfield select, .mfield .input { width: 100%; } }

/* ── template gallery ─────────────────────────────────────────────── */
.tgallery { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; padding: 6vh 16px 16px; background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.tgallery[hidden] { display: none; }
.tg-box { width: min(1080px, 100%); max-height: 88vh; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line-2);
  background: rgba(14, 14, 16, .97); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); animation: pop .5s var(--ease); overflow: hidden; }
.tg-box header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 0; }
.tg-box h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.tg-box header p { margin: 4px 0 0; }
.tg-tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.tg-tags .chip { text-transform: capitalize; }
.tg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 14px; padding: 20px 24px 24px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.tg-card { position: relative; display: flex; flex-direction: column; padding: 0; text-align: left; cursor: pointer; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02); color: inherit; font: inherit; overflow: hidden; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 35ms);
  transition: border-color .4s, transform .6s var(--ease); }
.tg-card[hidden] { display: none; }
.tg-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tg-preview { height: 170px; overflow: hidden; border-radius: 0; padding: 12px; font-size: 12px; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.tg-preview .v2, .tg-preview .embed { margin: 0; max-width: none; transform-origin: top left; }
.tg-preview .v2-thumb, .tg-preview .embed-thumb { width: 48px; height: 48px; }
.tg-meta { display: grid; gap: 3px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.tg-meta b { font-weight: 600; font-size: 14px; }
.tg-meta span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 860px) { .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tg-grid { grid-template-columns: 1fr; } }
.menu.open .menu-links a:nth-child(7) { transition-delay: .38s; } .menu.open .menu-links a:nth-child(8) { transition-delay: .43s; }

/* ── layout consistency pass ──────────────────────────────────────── */
/* One width for the nav, pages and footer so every edge lines up. */
:root { --w: 1120px; }
.nav-in, .footer-in { max-width: var(--w); padding-left: 24px; padding-right: 24px; }
main { max-width: var(--w); }
body.docs-page .nav-in, body.docs-page .footer-in, body.docs-page main { max-width: 1280px; }
.nav-in { gap: 16px; }
.nav-right { gap: 6px; flex-wrap: nowrap; min-width: 0; }
.pill { white-space: nowrap; flex: none; }
.pill kbd { white-space: nowrap; }
.nav-center a { white-space: nowrap; }
@media (max-width: 1000px) { .pill.search kbd { display: none; } .pill.search { padding: 0 10px; } }
@media (max-width: 860px) {
  .nav-in { display: flex; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 420px) { .pill[href="/status"] span { display: none; } }

/* Page header: icon, title, optional sub line. */
.ph-title > div { min-width: 0; }
.ph-sub { margin: 6px 0 0; max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ph-title:has(.ph-sub) { align-items: flex-start; }
.ph-title:has(.ph-sub) .ph-icon { margin-top: 2px; }

/* Embed builder toolbar: tabs left, tools right, wraps cleanly. */
.panel-head { justify-content: space-between; gap: 10px; }
.panel-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.builder > * { min-width: 0; }
.builder .card { overflow: visible; }

/* Status: offline state. */
.empty-card { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .022); animation: rise .7s var(--ease) both; }
.empty-card .dot { margin-top: 7px; }
.empty-card b { font-weight: 600; }
.empty-card p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

/* 404 */
.nf { min-height: 55vh; display: grid; align-content: center; justify-items: start; gap: 12px; animation: rise 1s var(--ease) both; }
.nf-code { font-size: 12px; color: var(--dim); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.nf h1 { margin: 6px 0 0; font-size: clamp(32px, 5vw, 46px); font-weight: 600; letter-spacing: -.045em; }
.nf p { margin: 0; color: var(--muted); }
.nf-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Footer: tidy columns. */
.footer-in nav { justify-content: flex-end; }
@media (max-width: 640px) { .footer-in nav { justify-content: flex-start; gap: 14px 18px; } }

/* Command cards: keep equal heights tidy and long names from overflowing. */
.ccard h3, .scard h3 { overflow-wrap: anywhere; }
.cmd-grid { align-items: start; }

/* ── hand-drawn accents (Caveat) ──────────────────────────────────── */
:root { --hand: "Caveat", "Segoe Print", cursive; }
.eyebrow { font-family: var(--hand); font-size: 19px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ph-count { font-family: var(--hand); font-size: 18px; color: var(--muted); }
.hero-title .scribble { position: relative; display: inline-block; font-family: var(--hand); font-weight: 700; font-size: 1.28em; line-height: .8;
  color: #d4d4d8; letter-spacing: -.01em; transform: rotate(-2deg); padding: 0 .06em; }
.hero-title .scribble .w { overflow: visible; }
.scribble svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: #a1a1aa; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: draw 1.1s var(--ease) 1.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chips { position: relative; }
.hand-note { position: absolute; top: -58px; right: 8%; display: inline-flex; align-items: flex-start; gap: 2px; font-family: var(--hand);
  font-size: 24px; color: var(--muted); transform: rotate(-4deg); animation: rise 1.2s var(--ease) 1.3s both; }
.hand-note svg { width: 46px; height: 34px; margin-top: 10px; }
.hand-note path { fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120;
  stroke-dashoffset: 120; animation: draw 1s var(--ease) 1.6s forwards; }
.docs-body .eyebrow { font-size: 20px; }
.dlead { font-size: 17px; }
.release-meta time { font-family: var(--hand); font-size: 18px; color: var(--muted); }
.dash-sub { font-family: var(--hand); font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.ticker-line { font-family: var(--hand); font-size: 22px; }
.ticker-line b { font-family: var(--sans); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .scribble path, .hand-note path { stroke-dashoffset: 0; } }

/* ── changelog: pills sized to their text, dates on one line ──────── */
.release-meta { align-content: start; grid-auto-rows: max-content; }
.ver { justify-self: end; align-self: start; height: auto; line-height: 1.6; }
.release-meta time { white-space: nowrap; }
@media (max-width: 700px) { .ver { justify-self: start; } }

/* ── docs: richer blocks ──────────────────────────────────────────── */
.dsteps li > span { min-width: 0; }
.dsteps li code, .dlist li code, .dtable code { white-space: normal; }
.dnote.tip { background: rgba(255, 255, 255, .03); border-style: dashed; }
.dnote.warn { background: rgba(251, 191, 36, .05); border-color: rgba(251, 191, 36, .22); }
.dnote.warn svg { color: #fcd34d; }
.dlabel { display: inline-block; margin-right: 8px; font-family: var(--hand); font-size: 19px; line-height: 1; color: var(--text); transform: rotate(-3deg); }
.dlist { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dlist li { position: relative; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.dlist li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--muted); }
.dlist b, .docs-body p b { color: var(--text); font-weight: 600; }
.dtable { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dtr { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.6fr); gap: 16px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.dtr:first-child { border-top: 0; }
.dtr.head { background: rgba(255, 255, 255, .03); font-family: var(--hand); font-size: 18px; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.dtr > span:last-child { color: var(--muted); line-height: 1.6; }
.docs-body .dtr code { background: none; padding: 0; font-size: 12.5px; }
.dfaq { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dfaq details { border-top: 1px solid var(--line); }
.dfaq details:first-child { border-top: 0; }
.dfaq summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 500; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.dfaq summary::-webkit-details-marker { display: none; }
.dfaq summary::after { content: "+"; color: var(--dim); font-family: var(--mono); transition: transform .4s var(--ease); }
.dfaq details[open] summary::after { transform: rotate(45deg); }
.dfaq details p { margin: 0; padding: 0 18px 16px; font-size: 13.5px; animation: rise .5s var(--ease); }
.dref { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 10px; }
.dref.loading { padding: 16px 18px; }
.dref-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: baseline; padding: 10px 18px; text-align: left; cursor: pointer;
  border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; transition: background .25s; }
.dref-row:first-child { border-top: 0; }
.dref-row:hover { background: rgba(255, 255, 255, .03); }
.docs-body .dref-row code { background: none; padding: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.dref-row > span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.dref-perm { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--text); }
.dpager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.dpager a { display: grid; gap: 4px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none !important; min-width: 160px;
  transition: border-color .3s, transform .5s var(--ease); }
.dpager a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.dpager a.next { text-align: right; margin-left: auto; }
.dpager b { font-weight: 600; color: var(--text); }
.docs-body > p, .docs-body > .dlead { max-width: 660px; }
.docs-body { max-width: 760px; }
@media (max-width: 760px) { .dtr, .dref-row { grid-template-columns: 1fr; gap: 4px; } .dpager a { min-width: 0; flex: 1; } }
@media (max-width: 1100px) { .nav-center { display: none; } .nav-in { display: flex; } .nav-right { margin-left: auto; } }

/* ── nav: flexible row, compact right cluster ─────────────────────── */
.nav-in { display: flex !important; align-items: center; }
.nav-center { margin: 0 auto; }
.nav-right { margin-left: 0; flex: none; }
.nav-center + .nav-right { margin-left: 0; }
.brand { flex: none; min-width: 90px; }
/* The status pill shrinks to its dot and the search pill to its icon until there's room. */
.pill[href="/status"] { padding: 0 11px; }
.pill[href="/status"] span, .pill.search kbd { display: none; }
@media (min-width: 1360px) { .pill[href="/status"] span, .pill.search kbd { display: inline; } }
@media (max-width: 1100px) { .nav-center { display: none; } .nav-right { margin-left: auto; } }
/* Equal-width sides keep the centre pill truly centred. */
.brand { flex: 1 1 0; }
.nav-right { flex: 1 1 0; justify-content: flex-end; }
.nav-center { margin: 0; flex: none; }

/* ── hero collage: layered, slightly overlapping, all on one grey palette ── */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.collage { position: relative; height: 470px; }
.collage > * { position: absolute; left: var(--x, 0); top: var(--y, 0); translate: var(--px, 0) var(--py, 0); }
.collage .chip-float { margin: 0; z-index: 3; }
.collage .hand-note { left: auto; right: 0; top: -54px; z-index: 4; }
.cl { z-index: 2; transform: rotate(var(--r, 0)); animation: rise 1.2s var(--ease) both; border: 1px solid var(--line-2);
  background: rgba(18, 18, 21, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); transition: border-color .4s; }
.cl:hover { border-color: rgba(255, 255, 255, .22); z-index: 5; }
.collage > :nth-child(2) { animation-delay: .45s; } .collage > :nth-child(3) { animation-delay: .6s; }
.collage > .log { animation-delay: .95s; } .collage > .sticky { animation-delay: 1.1s; } .collage > .stamp { animation-delay: 1.25s; }

/* now playing */
.np { display: flex; gap: 12px; width: 240px; padding: 12px; border-radius: 16px; }
.np-art { width: 56px; height: 56px; flex: none; border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #e4e4e7, #52525b 55%, #18181b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.np-body { min-width: 0; flex: 1; display: grid; gap: 2px; }
.np-body b { font-size: 13px; font-weight: 600; }
.np-body small { font-size: 11.5px; color: var(--dim); }
.np-bar { height: 3px; margin-top: 7px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 30%; background: var(--text); border-radius: 2px; animation: np 14s linear infinite; }
@keyframes np { from { width: 8%; } to { width: 96%; } }
.np-ctl { display: flex; gap: 10px; margin-top: 6px; font-size: 11px; opacity: .55; }
.np-ctl .on { opacity: 1; }

/* terminal */
.term { width: 228px; padding: 10px 14px 14px; border-radius: 14px; display: grid; gap: 6px; }
.term-top { display: flex; gap: 5px; margin-bottom: 4px; }
.term-top i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.term code { font-size: 12px; color: var(--text); min-height: 1.3em; }
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--muted); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-out { color: var(--muted) !important; opacity: 0; transform: translateY(4px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.term-out.show { opacity: 1; transform: none; }

/* log entry */
.log { display: flex; gap: 10px; align-items: flex-start; width: 232px; padding: 11px 13px; border-radius: 12px; }
.log-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #fca5a5; box-shadow: 0 0 0 3px rgba(248, 113, 113, .15); flex: none; }
.log b { display: block; font-size: 12.5px; font-weight: 600; }
.log small { font-size: 11.5px; color: var(--dim); line-height: 1.5; }
.log u { text-decoration: none; color: var(--muted); }
.log em { font-style: normal; color: var(--muted); }

/* sticky note */
.sticky { padding: 16px 18px 14px; border-radius: 4px 4px 14px 4px; font-family: var(--hand); font-size: 21px; line-height: 1.15; color: #18181b;
  background: linear-gradient(170deg, #e4e4e7, #c9c9cf); border-color: transparent; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .8); z-index: 1; }
.tape { position: absolute; top: -9px; left: 50%; width: 54px; height: 18px; translate: -50% 0; rotate: 4deg;
  background: rgba(255, 255, 255, .35); backdrop-filter: blur(2px); border-left: 1px dashed rgba(0,0,0,.1); border-right: 1px dashed rgba(0,0,0,.1); }

/* stamp */
.stamp { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .03); box-shadow: none; text-align: center; line-height: 1; }
.stamp b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.stamp span { font-family: var(--hand); font-size: 17px; color: var(--muted); margin-top: -18px; }

/* doodles */
.doodle { fill: none; stroke: rgba(212, 212, 216, .5); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; z-index: 0; pointer-events: none; }
.doodle path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease) 1.4s forwards; }
.doodle.star { width: 26px; height: 26px; animation: spin 18s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.doodle.swirl { width: 46px; height: 46px; }
.doodle.spark { width: 28px; height: 28px; }
.doodle.dash { width: 200px; height: 80px; stroke-dasharray: 4 6; opacity: .5; }
.doodle.dash path { stroke-dasharray: 4 7; stroke-dashoffset: 0; animation: march 3s linear infinite; }
@keyframes march { to { stroke-dashoffset: -44; } }

/* command marquee under the hero */
.cmd-marquee { display: grid; gap: 10px; margin: 36px 0 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); animation: rise 1.2s var(--ease) 1s both; }
.mq-row { overflow: hidden; }
.mq-rail { display: flex; gap: 10px; width: max-content; animation: ticker 60s linear infinite; }
.mq-row.rev .mq-rail { animation-direction: reverse; animation-duration: 70s; }
.cmd-marquee:hover .mq-rail { animation-play-state: paused; }
.mq-chip { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  font: 12px var(--mono); color: var(--muted); transition: color .3s, border-color .3s; }
.mq-chip:hover { color: var(--text); border-color: var(--line-2); }
.mq-row.rev .mq-chip { color: var(--dim); }

@media (max-width: 1100px) { .collage { height: 420px; } .collage .term, .collage .doodle.dash { display: none; } }
@media (max-width: 860px) { .collage { display: none; } .hero-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .doodle path { stroke-dashoffset: 0; } .np-bar i { width: 40%; } }

/* ── collage drifts on its own (no cursor tracking) ───────────────── */
.collage > * { translate: none; animation-name: rise, drift; animation-duration: 1.2s, var(--dd, 9s); animation-timing-function: var(--ease), ease-in-out;
  animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-fill-mode: both, none; }
.collage > .doodle.star { animation-name: rise, drift, spin; animation-duration: 1.2s, 11s, 18s; animation-iteration-count: 1, infinite, infinite;
  animation-timing-function: var(--ease), ease-in-out, linear; animation-direction: normal, alternate, normal; }
@keyframes drift {
  0%   { translate: 0 0; }
  33%  { translate: var(--ax, 6px) var(--ay, -8px); }
  66%  { translate: calc(var(--ax, 6px) * -.6) var(--ay2, 5px); }
  100% { translate: calc(var(--ax, 6px) * .4) calc(var(--ay, -8px) * -.7); }
}
.collage > :nth-child(1)  { --dd: 8s;  --ax: 4px;  --ay: -6px; }
.collage > :nth-child(2)  { --dd: 11s; --ax: -7px; --ay: -9px; --ay2: 6px; animation-delay: .45s, -2s; }
.collage > :nth-child(3)  { --dd: 9s;  --ax: 6px;  --ay: 8px;  animation-delay: .6s, -4s; }
.collage > :nth-child(4)  { --dd: 7s;  --ax: -5px; --ay: -10px; animation-delay: .7s, -1s; }
.collage > :nth-child(5)  { --dd: 10s; --ax: 8px;  --ay: 6px;  animation-delay: .75s, -3s; }
.collage > :nth-child(6)  { --dd: 8.5s; --ax: -6px; --ay: 9px; animation-delay: .8s, -5s; }
.collage > :nth-child(7)  { --dd: 12s; --ax: 7px;  --ay: -7px; animation-delay: .85s, -2.5s; }
.collage > :nth-child(8)  { --dd: 9.5s; --ax: -8px; --ay: -5px; animation-delay: .9s, -6s; }
.collage > :nth-child(9)  { --dd: 7.5s; --ax: 5px;  --ay: 10px; animation-delay: .95s, -1.5s; }
.collage > :nth-child(10) { --dd: 10.5s; --ax: -4px; --ay: -8px; animation-delay: 1s, -3.5s; }
.collage > :nth-child(11) { --dd: 13s; --ax: 6px;  --ay: 7px;  animation-delay: 1.05s, -4.5s; }
.collage > :nth-child(12) { --dd: 11.5s; --ax: -5px; --ay: 6px; animation-delay: 1.1s, -2s; }
.collage > :nth-child(13) { --dd: 9s;  --ax: 9px;  --ay: -6px; animation-delay: 1.25s, -5.5s; }
.collage > :nth-child(n+14) { --dd: 14s; --ax: 5px; --ay: -5px; animation-delay: 1.3s, -3s; }
/* chips keep their own little bob on top of the drift */
.collage .chip-float { animation-name: rise, drift; }
.collage .chip-float i { animation: bob 5s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .collage > * { animation: none !important; } }

/* ── margin doodles ───────────────────────────────────────────────── */
body { position: relative; }
.doodle-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
main, .footer { position: relative; z-index: 1; }
.margin-doodle { position: absolute; height: auto; overflow: visible; fill: none; stroke: rgba(212, 212, 216, .28); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; rotate: var(--rot); animation: drift var(--dd) ease-in-out var(--delay) infinite alternate; }
.margin-doodle path { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s var(--ease); }
.margin-doodle.in path { stroke-dashoffset: 0; }
.margin-doodle.d-dots { stroke-width: 4; }
.margin-doodle.d-star, .margin-doodle.d-sun { stroke: rgba(228, 228, 231, .34); }
.margin-doodle.d-heart { stroke: rgba(252, 165, 165, .3); }
.margin-doodle.d-star { animation: drift var(--dd) ease-in-out var(--delay) infinite alternate, spin 30s linear infinite; }
@media (max-width: 1180px) { .margin-doodle { opacity: .55; } }
@media (max-width: 760px) { .doodle-layer { display: none; } }

/* ── hand-drawn title underline ───────────────────────────────────── */
h1.has-scribble { position: relative; display: inline-block; }
.title-scribble { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .28em; overflow: visible; pointer-events: none; }
.title-scribble path { fill: none; stroke: rgba(161, 161, 170, .7); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: draw 1s var(--ease) .5s forwards; }
@media (prefers-reduced-motion: reduce) { .margin-doodle path, .title-scribble path { stroke-dashoffset: 0; transition: none; } }
/* Underlined titles stay on their own line, only as wide as their text. */
h1.has-scribble { display: block; width: fit-content; max-width: 100%; }

/* Code inside docs tables, lists and steps wraps instead of running into the next column. */
.dsteps li code, .dlist li code, .dtable code { white-space: normal; }
.dtr > span, .dcmd > *, .dref-row > * { min-width: 0; }
.docs-body .dtr code, .docs-body .dcmd code { overflow-wrap: anywhere; word-break: normal; }
.dtr { column-gap: 24px; }
@media (max-width: 760px) { .dtr.head { display: none; } }

/* ── scrollbars ───────────────────────────────────────────────────── */
/* Inner scroll areas: thin, rounded, no arrows, brighter on hover. */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .26); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }

/* The page itself: native bar hidden, replaced by the overlay below. */
html.custom-scroll { scrollbar-width: none; }
html.custom-scroll::-webkit-scrollbar { display: none; width: 0; }
.sb { position: fixed; top: 8px; right: 3px; bottom: 8px; width: 12px; z-index: 80; opacity: 0; transition: opacity .5s var(--ease); }
.sb.on, .sb:hover, .sb.drag { opacity: 1; }
.sb.none { display: none; }
.sb-thumb { position: absolute; top: 0; right: 2px; width: 4px; border-radius: 999px; background: rgba(255, 255, 255, .28); cursor: grab;
  transition: width .35s var(--ease), background .3s, right .35s var(--ease); will-change: transform; }
.sb:hover .sb-thumb, .sb.drag .sb-thumb { width: 7px; right: 1px; background: rgba(255, 255, 255, .5); }
.sb.drag .sb-thumb { cursor: grabbing; background: rgba(255, 255, 255, .65); }
body.no-scroll .sb { opacity: 0; pointer-events: none; }

/* ── brand: logo + hand-drawn "ew" ────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #f4f4f5, #d4d4d8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px -6px rgba(0, 0, 0, .8);
  transition: transform .6s var(--ease), box-shadow .4s; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.35) translateY(8%); }
.brand:hover .logo { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 22px -6px rgba(0, 0, 0, .8); }
.bot-name.drawn { position: relative; display: inline-block; font-family: var(--hand); font-weight: 700; letter-spacing: 0; line-height: 1;
  transform: rotate(-4deg); }
.brand .bot-name.drawn { font-size: 30px; margin-top: -4px; }
.brand .bot-name.drawn::after { content: ""; position: absolute; left: -2px; right: -6px; bottom: -3px; height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' preserveAspectRatio='none'><path d='M2 5 C 14 1, 28 7, 40 4 S 54 2, 58 5' fill='none' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  transform-origin: left; transform: scaleX(0); animation: grow .9s var(--ease) .4s forwards; }
.brand:hover .bot-name.drawn { transform: rotate(-7deg); transition: transform .5s var(--ease); }
.foot-brand .logo { width: 28px; height: 28px; }
.foot-brand .bot-name.drawn { font-size: 26px; }
.footer-in > div > .foot-brand { margin-bottom: 4px; }
/* Hero: "ew" in the headline gets the same hand. */
.hero-title .bot-name.drawn { font-size: 1.22em; color: #e4e4e7; transform: rotate(-5deg); margin-right: .06em; }
.hero-title .bot-name.drawn .w { overflow: visible; }
@keyframes grow { to { transform: scaleX(1); } }

/* ── logo without a backdrop ──────────────────────────────────────── */
.logo { background: none; box-shadow: none; border-radius: 0; overflow: visible; width: 38px; height: 38px; }
.logo img { position: static; width: 100%; height: 100%; object-fit: contain; transform: none;
  /* A soft light halo keeps the dark line art readable on the dark page. */
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 0 6px rgba(255, 255, 255, .08)); }
.brand:hover .logo { box-shadow: none; }
.foot-brand .logo { width: 32px; height: 32px; }

/* In the headline, right after "ew". */
.hero-logo { display: inline-block; height: 1.15em; width: auto; margin: 0 .22em 0 .02em; vertical-align: -.2em;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 0 10px rgba(255, 255, 255, .08));
  transform: rotate(6deg); animation: rise 1.2s var(--ease) .35s both, logo-bob 4.5s ease-in-out 1.6s infinite alternate; }
@keyframes logo-bob { from { transform: rotate(6deg) translateY(0); } to { transform: rotate(2deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.hero-logo { margin: 0 .02em 0 .04em; }

/* Nav: the right group never shrinks below its content, so it can't slide under the centre pill. */
.nav-right { flex: 1 0 auto; }
.brand { flex: 1 0 auto; }
@media (min-width: 1360px) { .pill[href="/status"] span, .pill.search kbd { display: none; } }
.pill[href="/status"], .pill.search { width: 32px; padding: 0; justify-content: center; }
.pill[href="/status"] { title: attr(title); }
/* Centre pill pinned to the true middle of the nav (there's room for it above 1100px). */
@media (min-width: 1101px) {
  .nav-in { position: relative; }
  .nav-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}

/* ── footer ───────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer .footer-in { display: block; padding-top: 64px; padding-bottom: 28px; }
.footer a[hidden] { display: none !important; }
.ft-top { display: grid; grid-template-columns: 76px repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.ft-logo { display: block; width: 46px; height: 46px; transition: transform .6s var(--ease); }
.ft-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)); }
.ft-logo:hover { transform: rotate(-8deg) scale(1.06); }
.ft-col { display: grid; gap: 11px; justify-items: start; }
.ft-col h4 { margin: 0 0 6px; font-size: 13.5px; font-weight: 500; color: var(--dim); }
.ft-col a { position: relative; font-size: 14px; color: var(--muted); transition: color .3s; display: inline-flex; align-items: center; gap: 6px; }
.ft-col a:not(.ft-discord):not(.ft-invite)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.ft-col a:hover { color: var(--text); }
.ft-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.ext { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.ft-discord { gap: 9px !important; padding: 9px 16px; border-radius: 12px; font-weight: 600; color: var(--text) !important;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .5s var(--ease) !important; }
.ft-discord svg { width: 18px; height: 18px; }
.ft-discord:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.ft-invite { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); font-size: 13.5px !important; }
.ft-invite:hover { border-color: var(--line-2); }
.ft-invite .bot-name { font-family: var(--hand); font-size: 18px; font-weight: 700; margin: 0 2px; }

/* The giant watermark. */
.ft-mark { margin: 64px 0 -28px; text-align: center; line-height: .8; pointer-events: none; user-select: none; }
.ft-mark .bot-name { display: inline-block; font-family: var(--hand); font-weight: 700; font-size: clamp(160px, 26vw, 360px); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text;
  transform: rotate(-4deg); }
.ft-legal { position: relative; margin: 0; max-width: 860px; font-size: 13px; line-height: 1.7; color: var(--dim); }
.ft-legal .bot-name { color: var(--muted); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.ft-bottom nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ft-bottom a { color: var(--muted); transition: color .3s; }
.ft-bottom a:hover { color: var(--text); }

@media (max-width: 900px) { .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft-logo { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft-top { grid-template-columns: 1fr 1fr; gap: 26px 16px; } .ft-bottom { flex-direction: column; align-items: flex-start; } }
.ft-col:not(:has(a:not([hidden]))) { display: none; }

/* ── home: feature showcase ───────────────────────────────────────── */
.feat { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; margin-top: 150px; }
.feat.flip .feat-copy { order: 2; }
.feat-copy h2 { margin: 10px 0 0; font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; }
.feat-copy .hl { font-family: var(--hand); font-weight: 700; font-size: 1.2em; color: #e4e4e7; letter-spacing: 0; position: relative; white-space: nowrap; }
.feat-copy .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.05em; height: .22em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M3 9 C 40 3, 90 12, 130 7 S 185 5, 197 8' fill='none' stroke='%23a1a1aa' stroke-width='2.4' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .4s; }
.feat.in .hl::after { transform: scaleX(1); }
.feat-copy p { margin: 18px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 440px; }
.feat-link { display: inline-flex; gap: 6px; margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--text); }
.feat-link .arrow { transition: transform .5s var(--ease); }
.feat-link:hover .arrow { transform: translateX(4px); }

/* Discord-style mock */
.dc { position: relative; display: grid; gap: 16px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .018);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.dc::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at 80% 0%, rgba(255, 255, 255, .05), transparent 60%); }
.dc-msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.dc-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: block; }
.dc-av.user { background: linear-gradient(135deg, #52525b, #27272a); }
.dc-av.bot img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255,255,255,.5)); }
.dc-name { font-size: 14px; font-weight: 600; }
.dc-app { margin: 0 6px; padding: 1px 5px; border-radius: 4px; font-size: 9.5px; font-weight: 700; background: rgba(255, 255, 255, .14); vertical-align: 1px; }
.dc-time { margin-left: 6px; font-size: 11.5px; color: var(--dim); }
.dc-msg p { margin: 2px 0 0; font-size: 14px; color: var(--muted); font-family: var(--mono); }
.dc-card { margin-top: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); border-left: 3px solid #a1a1aa; background: rgba(255, 255, 255, .03); }
.dc-title { display: block; font-size: 14px; font-weight: 600; }
.dc-sub { font-size: 12px; color: var(--dim); }
.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dc-grid span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-size: 12px; }
.dc-grid em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.dc-grid i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, .12); }
.dc-foot { margin-top: 12px; font-size: 11.5px; color: var(--dim); }
.dc-foot b { color: var(--muted); font-weight: 500; }
.dc-btns { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dc-btns span { padding: 7px 12px; border-radius: 8px; font-size: 12px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.dc-btns span.on { background: rgba(255, 255, 255, .85); color: #09090b; font-weight: 600; }

/* music mock */
.np-big { border-left-color: #e4e4e7; }
.npb-head { display: flex; justify-content: space-between; gap: 14px; }
.npb-head > div { display: grid; gap: 3px; }
.npb-live { font-size: 11.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 3px; }
.npb-live i { width: 2px; height: 8px; background: var(--muted); border-radius: 1px; animation: eq .9s ease-in-out infinite alternate; }
.npb-live i:nth-child(2) { animation-delay: -.3s; } .npb-live i:nth-child(3) { animation-delay: -.6s; margin-right: 4px; }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1.2); } }
.npb-live u { text-decoration: none; color: var(--muted); }
.npb-head b { font-size: 17px; font-weight: 600; }
.npb-head span:not(.npb-live):not(.npb-art) { font-size: 13px; color: var(--muted); }
.npb-art { width: 64px; height: 64px; flex: none; border-radius: 10px; background: radial-gradient(circle at 35% 30%, #f4f4f5, #71717a 50%, #18181b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.npb-time { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 14px; font: 11px var(--mono); color: var(--dim); }
.npb-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.npb-bar i { display: block; height: 100%; width: 39%; border-radius: 2px; background: var(--text); animation: np 30s linear infinite; }
.npb-ctl { display: flex; gap: 6px; margin-top: 12px; }
.npb-ctl span { flex: 1; text-align: center; padding: 7px 0; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 12px; }
.npb-ctl span.on { background: rgba(255, 255, 255, .85); color: #09090b; }
.npb-next { margin-top: 12px; font-size: 12px; color: var(--dim); }
.npb-next b { color: var(--muted); font-weight: 500; }
.npb-next em { float: right; font-style: normal; font-family: var(--hand); font-size: 16px; color: var(--muted); }
.mini-lyric { margin: -4px 0 0 40px; transform: rotate(-1.5deg); }
.mini-lyric p { margin: 6px 0 0; font-size: 13.5px; }
.ly-now { color: var(--text); font-weight: 500; }
.ly-next { color: var(--dim); }

/* fight mock */
.hp { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; margin-top: 10px; font-size: 12.5px; }
.hp em { font-style: normal; font: 11px var(--mono); color: var(--dim); }
.hp-bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hp-bar i { display: block; height: 100%; border-radius: 4px; background: #d4d4d8; }
.hp-bar.foe i { background: #fca5a5; }
.dc-log { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.dc-log b { color: var(--text); }

/* logging mock */
.dc.stack { gap: 10px; }
.lg { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  transition: transform .5s var(--ease), border-color .3s; }
.lg:nth-child(2) { margin-left: 28px; } .lg:nth-child(3) { margin-left: 10px; } .lg:nth-child(4) { margin-left: 40px; }
.lg:hover { transform: translateX(-4px); border-color: var(--line-2); }
.lg i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; flex: none; background: var(--muted); }
.lg i.r { background: #fca5a5; } .lg i.y { background: #fcd34d; } .lg i.g { background: #86efac; }
.lg b { display: block; font-size: 13px; font-weight: 600; }
.lg small { font-size: 12px; color: var(--dim); }
.lg u { text-decoration: none; color: var(--muted); }

/* "and more" */
.more { display: grid; justify-items: center; gap: 14px; margin-top: 130px; }
.more-hand { font-family: var(--hand); font-size: 26px; color: var(--muted); transform: rotate(-3deg); }

/* CTA card */
.cta-card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 12px; margin-top: 110px; padding: 90px 24px 110px; text-align: center;
  border-radius: 32px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .005)); }
.cta-glow { position: absolute; left: 50%; top: -40%; width: 120%; height: 90%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .08), transparent); }
.cta-hand { position: relative; font-family: var(--hand); font-size: 26px; color: var(--muted); }
.cta-card h2 { position: relative; margin: 0 0 22px; font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: -.04em; }
.cta-card .bot-name.drawn { font-size: 1.2em; color: #e4e4e7; }
.cta-logo { display: inline-block; vertical-align: -.25em; }
.cta-logo img { height: 1.25em; width: auto; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)); animation: logo-bob 4.5s ease-in-out infinite alternate; }
.cta-card .invite:not([hidden]) ~ .cta-fallback { display: none; }
.cta-arc { position: absolute; left: 10%; bottom: 0; width: 80%; height: 90px; overflow: visible; pointer-events: none; }
.cta-arc path { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1; }

@media (max-width: 900px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 32px; margin-top: 100px; }
  .feat.flip .feat-copy { order: 0; }
  .mini-lyric { margin-left: 0; }
  .lg:nth-child(n) { margin-left: 0; }
}
@media (max-width: 520px) { .dc-grid { grid-template-columns: 1fr; } .hp { grid-template-columns: 1fr; gap: 4px; } .dc { padding: 16px; } }

/* ── footer: shorter ──────────────────────────────────────────────── */
.footer .footer-in { padding-top: 40px; padding-bottom: 18px; }
.ft-top { gap: 24px; }
.ft-col { gap: 8px; }
.ft-col h4 { margin-bottom: 2px; }
.ft-col a { font-size: 13.5px; }
.ft-mark { margin: 8px 0 -14px; }
.ft-mark .bot-name { font-size: clamp(90px, 12vw, 160px); }
.ft-legal { font-size: 12px; line-height: 1.6; }
.ft-bottom { margin-top: 18px; padding-top: 14px; }

/* "hidden" always wins, even over button display styles. */
[hidden] { display: none !important; }
.cta-card .btn { display: inline-flex; align-items: center; }

/* Footer: tighter still. */
.footer .footer-in { padding-top: 32px; padding-bottom: 14px; }
.ft-top { grid-template-columns: 60px repeat(4, minmax(0, 1fr)); }
.ft-col { gap: 6px; }
.ft-col a { font-size: 13px; }
.ft-logo { width: 38px; height: 38px; }
.ft-mark { margin: 0 0 -10px; }
.ft-mark .bot-name { font-size: clamp(64px, 8vw, 110px); }
.ft-bottom { margin-top: 12px; padding-top: 12px; }
/* Watermark sits behind the footer instead of taking its own row. */
.footer .footer-in { position: relative; }
.ft-mark { position: absolute; right: 24px; bottom: 34px; margin: 0; z-index: 0; }
.ft-mark .bot-name { font-size: clamp(110px, 14vw, 190px); }
.ft-top, .ft-legal, .ft-bottom { position: relative; z-index: 1; }
.ft-legal { margin-top: 26px; max-width: 640px; }
.ft-legal { margin-top: 30px; }

/* ── home previews: rendered like Discord, floating ───────────────── */
.dc.discord { background: #313338; border: 1px solid rgba(255, 255, 255, .06); color: #dbdee1; font-size: 15px; line-height: 1.375;
  padding: 18px 18px 20px; gap: 18px; border-radius: 16px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .3); }
.dc.discord::before { display: none; }
.dc.discord .dmsg { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.dav { width: 40px; height: 40px; border-radius: 50%; display: block; }
.dav.user { background: linear-gradient(135deg, #a1a1aa, #3f3f46); }
.dav.bot { object-fit: contain; background: #1e1f22; padding: 2px; }
.dc.discord .md p { margin: 0; }
.dc.discord .md h3 { margin: 0 0 2px; font-size: 1.05em; }
.dc.discord .md a { color: #00a8fc; text-decoration: none; }
.dc.discord .md blockquote { margin: 1px 0; padding-left: 10px; border-left: 4px solid #4e5058; }
.dc.discord .md code { background: #2b2d31; }
.dc.discord .md .sub { margin-top: 4px; font-size: 12px; color: #949ba4; }
.demoji { width: 1.25em; height: 1.25em; vertical-align: -.3em; object-fit: contain; }
/* The bot's containers have no accent colour, so no thick left bar. */
.v2.bare { border-left-width: 1px; margin-top: 6px; max-width: none; }
.v2.bare + .v2.bare { margin-top: 8px; }
.v2-sep { border-top-color: #4e5058; }
.v2-button { font-size: 13.5px; min-width: 40px; justify-content: center; }
.v2-button.primary { background: #5865f2; }
.v2-button.danger { background: #da373c; }
.v2-button.success { background: #248046; }
.v2-thumb.av-a, .v2-thumb.av-b { width: 64px; height: 64px; border-radius: 50%; display: block; }
.v2-thumb.av-a { background: linear-gradient(135deg, #f87171, #7f1d1d); }
.v2-thumb.av-b { background: linear-gradient(135deg, #a1a1aa, #3f3f46); }

/* Floating: each preview drifts on its own clock. */
.dc.float { animation: float-card 7s ease-in-out infinite alternate; will-change: transform; }
.feat:nth-of-type(2n) .dc.float { animation-duration: 8.5s; animation-delay: -3s; }
.feat:nth-of-type(3n) .dc.float { animation-duration: 6.5s; animation-delay: -1.5s; }
@keyframes float-card {
  0%   { transform: translateY(0) rotate(-.4deg); }
  50%  { transform: translateY(-12px) rotate(.3deg); }
  100% { transform: translateY(-4px) rotate(-.2deg); }
}
.feat .dc.float::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -34px; height: 26px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); animation: float-shadow 7s ease-in-out infinite alternate; }
@keyframes float-shadow { 50% { transform: scaleX(.86); opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .dc.float, .dc.float::after { animation: none; } }
@media (max-width: 520px) { .dc.discord { font-size: 13.5px; padding: 14px; } .v2-thumb.av-a, .v2-thumb.av-b, .dc.discord .v2-thumb { width: 52px; height: 52px; } }
.dc.discord .dname { margin-right: 6px; }
.dc.discord .dtime { margin-left: 0; }
.dc.discord .md p { overflow-wrap: anywhere; }
.dc.discord .dlink { color: #00a8fc; }
.dc.discord .bar-line { white-space: nowrap; font-size: 13px; letter-spacing: -.5px; }
.v2-button.emo { font-size: 16px; padding: 0 12px; }
/* On flipped rows the preview sits on the left, so it gets the wider column. */
.feat.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 900px) { .feat.flip { grid-template-columns: 1fr; } }

/* ── Phosphor icons ───────────────────────────────────────────────── */
/* Phosphor draws with fills, so undo the stroke styles the old line icons used. */
svg.phi { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em;
  fill: currentColor !important; stroke: none !important; }
.pill svg.phi { width: 16px; height: 16px; }
.btn svg.phi { width: 17px; height: 17px; }
.btn.lg svg.phi { width: 19px; height: 19px; }
.ph-icon svg.phi, .ph-btn svg.phi { width: 19px; height: 19px; color: var(--muted); }
.ph-icon.lg svg.phi { width: 28px; height: 28px; }
.ph-btn:hover svg.phi { color: var(--text); }
.chip-float i svg.phi { width: 15px; height: 15px; color: var(--muted); }
.cat-tabs svg.phi { width: 17px; height: 17px; }
.ccopy svg.phi { width: 17px; height: 17px; color: var(--dim); transition: color .3s; }
.ccopy:hover svg.phi { color: var(--text); }
.ago svg.phi, .scard dd svg.phi { width: 13px; height: 13px; color: var(--dim); }
.dgroup svg.phi { width: 18px; height: 18px; }
.docs-toc svg.phi { width: 16px; height: 16px; }
.dnote svg.phi { width: 18px; height: 18px; margin-top: 2px; }
.dcard svg.phi { width: 26px; height: 26px; }
.ft-discord svg.phi { width: 19px; height: 19px; }
.ext.phi { width: 13px; height: 13px; opacity: .6; }
.tabs-arrow svg.phi { width: 18px; height: 18px; color: var(--text); }
.t-badge svg.phi { width: 16px; height: 16px; }
.t-badge { background: none !important; width: auto; height: auto; color: #a1a1aa; }
