/* s1d design system: the 2023 zinc/terminal look, tightened. Tokens first, then components. */
:root {
  --bg: #09090b; --bg-2: #0f0f12; --surface: #18181b; --surface-2: #1f1f23; --surface-3: #27272a;
  --line: #2e2e33; --line-2: #3f3f46; --text: #e4e4e7; --text-2: #a1a1aa; --text-3: #71717a; --text-inv: #09090b;
  --blue: #3b82f6; --blue-2: #60a5fa; --red: #ef4444; --red-2: #f87171; --lime: #84cc16; --lime-2: #a3e635;
  --amber: #f59e0b; --violet: #8b5cf6; --cyan: #06b6d4; --pink: #ec4899; --green: #22c55e;
  --accent: var(--blue-2); --danger: var(--red-2); --ok: var(--lime-2); --warn: var(--amber);
  --dot: rgba(255,255,255,.045); --glass: rgba(10,10,10,.55); --shadow: 0 12px 32px -12px rgba(0,0,0,.6);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "LXGW WenKai Mono TC", "Space Mono", ui-monospace, monospace;
  --fun: "Comic Neue", "Comic Sans MS", cursive;
  --r: 6px; --r-lg: 12px; --gap: 16px;
  --ease: cubic-bezier(.25,1,.5,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --fs-xs: .72rem; --fs-sm: .82rem; --fs: .92rem; --fs-lg: 1.1rem; --fs-xl: 1.5rem; --fs-2xl: 2.2rem;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafaf9; --bg-2: #f4f4f5; --surface: #ffffff; --surface-2: #f4f4f5; --surface-3: #e4e4e7;
  --line: #e4e4e7; --line-2: #d4d4d8; --text: #18181b; --text-2: #52525b; --text-3: #71717a; --text-inv: #fafafa;
  --blue: #2563eb; --blue-2: #2563eb; --red: #dc2626; --red-2: #dc2626; --lime: #4d7c0f; --lime-2: #4d7c0f;
  --accent: #2563eb; --danger: #dc2626; --ok: #3f6212; --warn: #b45309;
  --dot: rgba(0,0,0,.06); --glass: rgba(255,255,255,.7); --shadow: 0 12px 32px -14px rgba(0,0,0,.25);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg: #fafaf9; --bg-2: #f4f4f5; --surface: #ffffff; --surface-2: #f4f4f5; --surface-3: #e4e4e7;
    --line: #e4e4e7; --line-2: #d4d4d8; --text: #18181b; --text-2: #52525b; --text-3: #71717a; --text-inv: #fafafa;
    --blue: #2563eb; --blue-2: #2563eb; --red: #dc2626; --red-2: #dc2626; --lime: #4d7c0f; --lime-2: #4d7c0f;
    --accent: #2563eb; --danger: #dc2626; --ok: #3f6212; --warn: #b45309;
    --dot: rgba(0,0,0,.06); --glass: rgba(255,255,255,.7); --shadow: 0 12px 32px -14px rgba(0,0,0,.25);
    color-scheme: light;
  }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.vt-nav { view-transition-name: nav; }
.vt-title { view-transition-name: page-title; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: var(--fs);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 16px 16px;
}
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.link:hover, .prose a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: var(--fs-2xl); line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: var(--fs-xl); line-height: 1.2; }
h3 { font-size: var(--fs-lg); }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; border: 2px solid var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ layout */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
.wrap-wide { max-width: 1480px; }
main.page { flex: 1; padding: 28px 0 64px; }
.row { display: flex; gap: var(--gap); align-items: center; flex-wrap: wrap; }
.row-tight { gap: 8px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.side-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .side-layout { grid-template-columns: minmax(0, 1fr); } }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.mono { font-family: var(--mono); }
.fun { font-family: var(--fun); font-weight: 700; }
.display { font-family: var(--display); font-weight: 700; }
.upper { text-transform: uppercase; letter-spacing: .12em; }
.nowrap { white-space: nowrap; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { word-break: break-word; overflow-wrap: anywhere; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: var(--gap); } .mt-lg { margin-top: 32px; } .mb { margin-bottom: var(--gap); }
.c-blue { color: var(--blue-2); } .c-red { color: var(--red-2); } .c-lime { color: var(--lime-2); } .c-amber { color: var(--amber); }
.c-violet { color: var(--violet); } .c-cyan { color: var(--cyan); } .c-pink { color: var(--pink); }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 54px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.brand .sub { color: var(--text-3); font-size: .95rem; }
.brand:hover .logo-s1d { text-shadow: 0 0 14px var(--blue-2); }
.bnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; position: relative; min-width: 0; }
.bnav::-webkit-scrollbar { display: none; }
.bnav a {
  position: relative; padding: 6px 9px; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; border-radius: var(--r);
  transition: color .2s, background .2s;
}
.bnav a::before, .bnav a::after { color: var(--text-3); transition: color .2s, transform .25s var(--spring); display: inline-block; }
.bnav a::before { content: "["; margin-right: 2px; transform: translateX(3px); opacity: 0; }
.bnav a::after { content: "]"; margin-left: 2px; transform: translateX(-3px); opacity: 0; }
.bnav a:hover, .bnav a.on { color: var(--text); }
.bnav a:hover::before, .bnav a:hover::after, .bnav a.on::before, .bnav a.on::after { opacity: 1; transform: none; color: var(--accent); }
.topbar .who { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer; position: relative; transition: background .2s, color .2s, transform .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-3); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text); flex: none; border: 1px solid var(--line-2); }
.avatar-lg { width: 96px; height: 96px; font-size: 36px; }
.avatar-md { width: 44px; height: 44px; font-size: 18px; }
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60;
  transform-origin: top right; animation: pop .18s var(--spring);
}
.menu.open .menu-pop { display: block; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; gap: 8px; padding: 8px 10px; border-radius: var(--r); font-size: var(--fs-sm); color: var(--text-2); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--text); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.banner { background: color-mix(in srgb, var(--amber) 18%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); color: var(--text); font-size: var(--fs-sm); padding: 6px 0; text-align: center; }

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--text-3); font-size: var(--fs-xs); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.foot a { text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.foot a:hover { color: var(--text); border-color: currentColor; }

/* ------------------------------------------------------------------ surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; position: relative; }
.card-flat { background: transparent; }
.card-pad-0 { padding: 0; overflow: hidden; }
.card h3 { margin-bottom: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); font-weight: 700; }
.card.hover { transition: border-color .2s, transform .25s var(--spring), box-shadow .25s; }
.card.hover:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.corners::before, .corners::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--line-2); transition: border-color .3s; pointer-events: none; }
.corners::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: var(--r-lg); }
.corners::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: var(--r-lg); }
.corners:hover::before, .corners:hover::after { border-color: var(--accent); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-family: var(--display); }
.page-head h1 .br { color: var(--text-3); }
.page-head p { color: var(--text-2); margin-top: 6px; }
.section-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .16em; color: var(--text-3); margin: 26px 0 10px; font-weight: 700; }
hr.sep { border: 0; border-top: 1px dashed var(--line-2); margin: 20px 0; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 34px 20px; text-align: center; color: var(--text-2); }
.empty .big { font-family: var(--display); font-size: 2rem; color: var(--text-3); margin-bottom: 6px; }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: var(--fs-xs); color: var(--text-2); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.hint { font-size: var(--fs-xs); color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 11px; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: var(--fs);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.textarea.code { font-size: 13px; min-height: 320px; white-space: pre; tab-size: 4; }
.input-lg { font-size: 1.05rem; padding: 13px 14px; }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
details.more > summary { cursor: pointer; color: var(--text-2); font-size: var(--fs-sm); list-style: none; display: inline-flex; gap: 6px; align-items: center; user-select: none; }
details.more > summary::before { content: "+"; display: inline-block; width: 14px; transition: transform .2s; color: var(--accent); }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary::-webkit-details-marker { display: none; }
.err { color: var(--danger); font-size: var(--fs-sm); }
.alert { border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--surface); padding: 10px 14px; border-radius: var(--r); font-size: var(--fs-sm); }
.alert-ok { border-left-color: var(--ok); } .alert-err { border-left-color: var(--danger); } .alert-warn { border-left-color: var(--warn); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: var(--fs-sm); font-weight: 700;
  transition: background .2s, border-color .2s, transform .18s var(--spring), box-shadow .2s, color .2s; white-space: nowrap; user-select: none;
}
.btn:hover { border-color: var(--text-3); background: var(--surface-3); }
.btn:active { transform: scale(.96); }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--text); color: var(--text-inv); border-color: var(--text); }
.btn-primary:hover { background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 18%, transparent); border-color: var(--text); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 28%, transparent); border-color: var(--blue); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface-2)); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: var(--fs-xs); }
.btn-lg { padding: 12px 22px; font-size: var(--fs); }
.btn-bracket { background: transparent; border: 2px solid var(--text); padding: 11px 34px; font-size: 1rem; letter-spacing: .06em; }
.btn-bracket:hover { background: var(--text); color: var(--text-inv); transform: scale(1.04); }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }

/* ------------------------------------------------------------------ chips, tags, tabs, tables */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--text-2); background: var(--bg-2); white-space: nowrap; }
.chip-blue { color: var(--blue-2); border-color: color-mix(in srgb, var(--blue-2) 45%, transparent); }
.chip-red { color: var(--red-2); border-color: color-mix(in srgb, var(--red-2) 45%, transparent); }
.chip-lime { color: var(--lime-2); border-color: color-mix(in srgb, var(--lime-2) 45%, transparent); }
.chip-amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.chip-violet { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; position: relative; scrollbar-width: none; }
.tabs a, .tabs button { padding: 8px 12px; font-size: var(--fs-sm); color: var(--text-2); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a.on, .tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.t { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.t th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-weight: 700; white-space: nowrap; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--fs-sm); }
.kv dt { color: var(--text-3); text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: .1em; padding-top: 2px; }
.kv dd { margin: 0; word-break: break-word; }

/* ------------------------------------------------------------------ toasts, modal */
.toasts { position: fixed; bottom: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: var(--r); box-shadow: var(--shadow); font-size: var(--fs-sm); animation: toast-in .35s var(--spring); max-width: 360px; }
.toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--danger); }
.toast.out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
dialog.modal { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--text); padding: 22px; max-width: min(560px, calc(100vw - 32px)); width: 100%; box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .25s var(--spring); }

/* ------------------------------------------------------------------ confetti */
.confetti { position: fixed; pointer-events: none; z-index: 200; width: 6px; height: 6px; border-radius: 1px; }

/* ------------------------------------------------------------------ stats + charts */
.stat { padding: 14px 16px; }
.stat .k { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); font-weight: 700; }
.stat .v { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.1; }
.stat .d { font-size: var(--fs-xs); color: var(--text-2); margin-top: 4px; }
.odo { display: inline-flex; overflow: hidden; height: 1.15em; line-height: 1.15em; vertical-align: bottom; }
.odo span { display: inline-block; transition: transform 1.1s var(--ease); }
.odo .col { display: flex; flex-direction: column; }
.chart { width: 100%; height: 180px; }
.chart > svg.chart { height: 100%; display: block; } /* a chart drawn into a sized .chart box fills it instead of spilling out */
.chart text { fill: var(--text-3); font-size: 10px; font-family: var(--mono); }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 2 3; }
.chart .area { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.chart .line-2 { fill: none; stroke: var(--lime-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .bar { fill: var(--accent); opacity: .85; }
.chart .bar:hover { opacity: 1; }
.chart .cursor { stroke: var(--text-3); }
.bars { display: flex; flex-direction: column; gap: 7px; }
.bars .b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: var(--fs-sm); position: relative; padding: 4px 8px; border-radius: 4px; z-index: 0; }
.bars .b::before { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); border-radius: 4px; z-index: -1; transition: width .8s var(--ease); }
.bars .b .n { font-variant-numeric: tabular-nums; color: var(--text-2); }
.heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; font-size: 9px; color: var(--text-3); }
.heat .c { aspect-ratio: 1; border-radius: 2px; background: color-mix(in srgb, var(--accent) calc(var(--v, 0) * 100%), var(--surface-2)); }
.tip { position: fixed; z-index: 120; pointer-events: none; background: var(--surface); border: 1px solid var(--line-2); padding: 6px 9px; border-radius: var(--r); font-size: var(--fs-xs); box-shadow: var(--shadow); white-space: nowrap; }
.live-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.live-item { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); padding: 6px 8px; border-radius: var(--r); background: var(--bg-2); animation: slide-in .5s var(--spring); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px) scale(.98); background: color-mix(in srgb, var(--accent) 25%, var(--bg-2)); } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-2); box-shadow: 0 0 0 0 var(--lime-2); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime-2) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.flag { font-size: 1.05em; }

/* ------------------------------------------------------------------ dropzone */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 38px 20px; text-align: center; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--spring); position: relative; }
.dropzone:hover { border-color: var(--text-3); }
.dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); transform: scale(1.01); }
.dropzone.idle { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); } }
.dropzone .big { font-family: var(--display); font-size: 1.6rem; }
.progress { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s var(--ease); }

/* ------------------------------------------------------------------ code / prose */
pre.code, .codebox { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; font-size: 13px; line-height: 1.6; margin: 0; }
.codebox table { border-collapse: collapse; width: 100%; }
.codebox td.ln { user-select: none; text-align: right; color: var(--text-3); padding: 0 12px 0 14px; vertical-align: top; width: 1%; white-space: nowrap; border-right: 1px solid var(--line); }
.codebox td.ln a { color: inherit; display: block; }
.codebox td.ln a:hover { color: var(--accent); }
.codebox td.src { padding: 0 16px; white-space: pre; }
.codebox.wrap td.src { white-space: pre-wrap; word-break: break-word; }
.codebox tr.hl td { background: color-mix(in srgb, var(--amber) 14%, transparent); }
.codebox tr.hl td.ln { color: var(--amber); }
.codebox tr:first-child td { padding-top: 12px; } .codebox tr:last-child td { padding-bottom: 12px; }
code.inline, .prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; border: 1px solid var(--line); }
.prose { line-height: 1.7; word-break: break-word; }
.prose > * + * { margin-top: .9em; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.4em; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; overflow: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { border-left: 3px solid var(--line-2); margin-left: 0; padding-left: 14px; color: var(--text-2); }
.prose img { border-radius: var(--r); }
.prose table { border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line); padding: 5px 9px; }
.diff { font-size: 13px; }
.diff .add { background: color-mix(in srgb, var(--green) 16%, transparent); }
.diff .del { background: color-mix(in srgb, var(--red) 16%, transparent); }
.diff .hunk { color: var(--cyan); }
.hljs { background: transparent !important; color: var(--text); }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in { color: #c084fc; }
.hljs-string, .hljs-attr-value, .hljs-template-tag { color: #a3e635; }
.hljs-number, .hljs-literal { color: #fb923c; }
.hljs-comment, .hljs-quote { color: var(--text-3); font-style: italic; }
.hljs-title, .hljs-function .hljs-title, .hljs-title.function_ { color: #60a5fa; }
.hljs-attr, .hljs-attribute, .hljs-property { color: #22d3ee; }
.hljs-type, .hljs-class .hljs-title, .hljs-title.class_ { color: #fbbf24; }
.hljs-meta, .hljs-variable { color: #f472b6; }
:root[data-theme="light"] .hljs-string { color: #4d7c0f; }
:root[data-theme="light"] .hljs-keyword { color: #7c3aed; }
:root[data-theme="light"] .hljs-title { color: #1d4ed8; }

/* ------------------------------------------------------------------ front door (2023 layout, restyled) */
.door { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); min-height: calc(100vh - 54px); }
@media (max-width: 1100px) { .door { grid-template-columns: minmax(0, 1fr); } }
.door-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; overflow: hidden; }
.giant { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.giant h1 { font-family: var(--mono); font-weight: 700; font-size: clamp(6rem, 17vw, 14rem); line-height: 1; color: #fff; mix-blend-mode: difference; animation: glow 4s ease-in-out infinite; letter-spacing: -.02em; }
@keyframes glow { 0%, 100% { text-shadow: 0 0 22px color-mix(in srgb, var(--text) 35%, transparent), 0 0 60px color-mix(in srgb, var(--blue) 25%, transparent); } 50% { text-shadow: 0 0 34px color-mix(in srgb, var(--text) 55%, transparent), 0 0 90px color-mix(in srgb, var(--blue) 45%, transparent); } }
.door-grid { position: relative; z-index: 1; width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 64px); margin-top: 40px; }
@media (max-width: 1100px) { .giant { display: none; } .door-grid { margin-top: 0; } }
@media (max-width: 640px) { .door-grid { grid-template-columns: minmax(0, 1fr); } }
.panel {
  --pc: var(--blue); position: relative; height: clamp(170px, 22vw, 280px); border: 2px solid transparent; display: grid; place-items: center;
  color: var(--text-3); cursor: pointer; overflow: hidden; isolation: isolate; border-radius: 4px;
  border-image: conic-gradient(from var(--angle), transparent 50%, var(--pc), transparent) 1;
  animation: spin-border 6s linear infinite; transition: transform .5s var(--ease);
}
.panel:hover, .panel:focus-within { transform: scale(1.03); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 70%, transparent) 0, transparent 55%); background-size: 200% 200%; animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.panel-blue { --pc: var(--blue); } .panel-red { --pc: var(--red); } .panel-lime { --pc: var(--lime); }
.panel .main { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.8rem); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.panel .main b { color: var(--pc); }
.panel .opts { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; transform: scale(.92); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
@media (hover: hover) {
  .panel:hover .opts, .panel:focus-within .opts { opacity: 1; transform: none; pointer-events: auto; }
  .panel:hover .main, .panel:focus-within .main { opacity: 0; transform: scale(.95); }
}
.panel.active .opts { opacity: 1; transform: none; pointer-events: auto; }
.panel.active .main { opacity: 0; transform: scale(.95); }
.panel .opts a { display: grid; place-items: center; font-family: var(--fun); font-weight: 700; font-size: 1.45rem; color: var(--pc); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); background: var(--glass); backdrop-filter: blur(4px); transition: background .2s; }
.panel .opts a:hover, .panel .opts a:focus-visible { background: color-mix(in srgb, var(--pc) 28%, transparent); outline: none; }
.panel .opts.six { grid-template-columns: 1fr 1fr 1fr; }
.panel .opts.six a { font-size: 1.15rem; }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; border: 1px solid var(--line-2); background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent), transparent); height: clamp(170px, 22vw, 280px); }
.hero .t1 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-style: italic; }
.hero .t1 u { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hero .t2 { color: var(--text-2); }
.hero .mobile-logo { display: none; font-size: 5.5rem; font-weight: 700; line-height: 1; animation: glow 4s ease-in-out infinite; }
@media (max-width: 1100px) { .hero { order: -1; height: auto; } .hero .mobile-logo { display: block; } }
.door-links { margin-top: 42px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; position: relative; z-index: 3; }
.door-links a { color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); padding: 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.door-links a:hover { color: var(--text); border-color: currentColor; }
.ebar { border-left: 1px solid var(--line); background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 60%); padding: 26px 22px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1101px) { .ebar { position: sticky; top: 54px; height: calc(100vh - 54px); overflow-y: auto; } }
.ebar header h2 { font-weight: 700; font-size: 1.7rem; letter-spacing: .2em; }
.ebar header p { color: var(--text-3); font-size: var(--fs-xs); }
.ebar > * { flex-shrink: 0; }
.ebar section { background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.ebar h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; font-weight: 700; }

/* passport */
.passport { position: relative; border: 1px solid var(--line-2); background-color: var(--surface); padding: 14px; overflow: hidden; perspective: 900px;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--line-2) 50%, transparent) 1px, transparent 0), repeating-linear-gradient(to right, color-mix(in srgb, var(--line-2) 20%, transparent) 0 1px, transparent 1px 20px), repeating-linear-gradient(to bottom, color-mix(in srgb, var(--line-2) 20%, transparent) 0 1px, transparent 1px 20px);
  background-size: 10px 10px, 100% 100%, 100% 100%; transition: border-color .3s; box-shadow: var(--shadow); }
.passport:hover { border-color: var(--blue-2); }
.passport.corners::before, .passport.corners::after { border-radius: 0; }
.passport .wm { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 6rem; font-weight: 700; color: color-mix(in srgb, var(--text-3) 10%, transparent); pointer-events: none; }
.passport .holo { position: absolute; bottom: 44px; right: 16px; width: 50px; height: 50px; border-radius: 50%; opacity: .7; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.35), transparent 50%), conic-gradient(from 0deg, #60a5fa55, #a3e63555, #f472b655, #60a5fa55); background-size: 300% 100%, 100% 100%; animation: holo 6s linear infinite; }
@keyframes holo { from { background-position: 150% 0, 0 0; } to { background-position: -150% 0, 0 0; } }
.passport .ph { width: 64px; height: 80px; border: 2px solid var(--blue-2); background: color-mix(in srgb, var(--blue) 18%, transparent); display: grid; place-items: center; box-shadow: 0 0 15px color-mix(in srgb, var(--blue) 30%, transparent); overflow: hidden; font-size: 30px; font-weight: 700; }
.passport .ph img { width: 100%; height: 100%; object-fit: cover; }
.passport .barcode { width: 64px; height: 18px; opacity: .8; background: repeating-linear-gradient(to right, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 10px, transparent 10px 11px, var(--text) 11px 12px, transparent 12px 15px); }
.passport .f { font-size: var(--fs-xs); }
.passport .f span { display: block; color: var(--text-3); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; }
.passport .f b { font-weight: 700; }
.passport .stamp { font-weight: 700; color: color-mix(in srgb, var(--blue-2) 75%, transparent); border: 2px solid currentColor; padding: 2px 8px; border-radius: 4px; transform: rotate(-10deg); font-size: 12px; letter-spacing: .08em; }
.passport .stamp.thunk { animation: thunk .5s var(--spring) both; }
@keyframes thunk { 0% { opacity: 0; transform: rotate(-10deg) scale(2.4); } 60% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { transform: rotate(-10deg) scale(1); } }
.passport.shake { animation: shake .35s ease; }
@keyframes shake { 30% { transform: translate(-2px, 1px); } 60% { transform: translate(2px, -1px); } }
.passport .mrz { font-size: 10px; letter-spacing: 2.5px; color: var(--text-3); word-break: break-all; line-height: 1.4; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.passport.issue { animation: issue .9s var(--spring) both; }
@keyframes issue { from { opacity: 0; transform: translateY(40px) rotateX(25deg) scale(.95); clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.typing::after { content: "▌"; animation: blink 1s steps(1) infinite; margin-left: 1px; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.uptime { display: flex; gap: 2px; height: 30px; align-items: stretch; }
.uptime i { flex: 1; background: var(--lime); border-radius: 1px; transform-origin: bottom; animation: rise .5s var(--ease) both; opacity: .9; }
.uptime i.warn { background: var(--amber); } .uptime i.down { background: var(--red); } .uptime i.none { background: var(--surface-3); }
.uptime i:hover { opacity: 1; filter: brightness(1.25); }
@keyframes rise { from { transform: scaleY(0); } }
.graph-box { aspect-ratio: 1.1; width: 100%; position: relative; border-radius: var(--r); overflow: hidden; }
.graph-box svg { width: 100%; height: 100%; }
.graph-box .node-label { font-size: 10px; fill: var(--text-2); pointer-events: none; text-anchor: middle; }
.graph-box .zoom { position: absolute; top: 4px; right: 4px; display: flex; flex-direction: column; gap: 4px; }
.bulletin li { list-style: none; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); animation: slide-in .5s var(--spring) both; }
.bulletin { margin: 0; padding: 0; }
.bulletin li:last-child { border-bottom: 0; }
.bulletin .pin { display: inline-block; animation: pin-drop .6s var(--spring) both; }
@keyframes pin-drop { from { transform: translateY(-20px) rotate(-30deg); opacity: 0; } }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 9px; }
.mini-stats span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.mini-stats b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cursors { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.cursor-peer { position: absolute; transition: transform .12s linear; will-change: transform; }
.cursor-peer svg { width: 16px; height: 16px; }
.cursor-peer span { position: absolute; left: 14px; top: 12px; font-size: 10px; padding: 1px 5px; border-radius: 4px; color: #fff; white-space: nowrap; }
.sudo-term { position: fixed; inset: auto 16px 16px auto; width: min(480px, calc(100vw - 32px)); background: #000; color: #a3e635; border: 1px solid #3f3f46; border-radius: 8px; padding: 12px; font-size: 12px; z-index: 150; box-shadow: var(--shadow); animation: pop .3s var(--spring); }

/* ------------------------------------------------------------------ feed / social */
.feed-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: slide-in .45s var(--spring) both; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .body { flex: 1; min-width: 0; }
.feed-item .meta { font-size: var(--fs-xs); color: var(--text-3); }
.reactions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.react { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; background: var(--bg-2); cursor: pointer; transition: transform .2s var(--spring), border-color .2s; }
.react:hover { transform: scale(1.08); }
.react.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg-2)); }
.react.pop { animation: react-pop .4s var(--spring); }
@keyframes react-pop { 40% { transform: scale(1.35); } }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment + .comment { border-top: 1px dashed var(--line); }
.comment .replies { margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--line); }
.wall-grid { columns: 3 260px; column-gap: 16px; }
.wall-note { break-inside: avoid; margin-bottom: 16px; padding: 14px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); transform: rotate(var(--rot, 0deg)); transition: transform .3s var(--spring), box-shadow .3s; box-shadow: var(--shadow); animation: slide-in .5s var(--spring) both; }
.wall-note:hover { transform: rotate(0deg) scale(1.02); z-index: 2; position: relative; }
.wall-note .tape { width: 70px; height: 18px; background: color-mix(in srgb, var(--note, var(--amber)) 45%, transparent); margin: -24px auto 8px; transform: rotate(-3deg); opacity: .8; }
.doodle-pad { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); touch-action: none; cursor: crosshair; width: 100%; height: 180px; }

/* ------------------------------------------------------------------ media grids */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.media-tile { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.media-tile:hover img { transform: scale(1.05); }
.media-tile .cap { position: absolute; inset: auto 0 0 0; padding: 6px 8px; font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.viewer-img { max-height: 78vh; margin: 0 auto; border-radius: var(--r); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; }
.swatches { display: flex; gap: 4px; } .swatches i { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line-2); }

/* ------------------------------------------------------------------ devtools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tool-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s, transform .25s var(--spring); display: block; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card b { display: block; margin-bottom: 4px; }
.tool-card p { font-size: var(--fs-xs); color: var(--text-2); }
.out { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font-size: 13px; white-space: pre-wrap; word-break: break-all; min-height: 42px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.req-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; }
@media (max-width: 600px) { .req-line { grid-template-columns: minmax(0, 1fr); } }
.method { font-weight: 700; font-size: var(--fs-xs); padding: 2px 6px; border-radius: 4px; background: var(--surface-3); }
.method.GET { color: var(--lime-2); } .method.POST { color: var(--amber); } .method.PUT, .method.PATCH { color: var(--cyan); } .method.DELETE { color: var(--red-2); }
.req-list { display: flex; flex-direction: column; max-height: 70vh; overflow: auto; }
.req-list a { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.req-list a:hover, .req-list a.on { background: var(--surface-2); }

/* ------------------------------------------------------------------ member page themes */
.mp { max-width: 640px; margin: 0 auto; padding: 40px 16px 60px; }
.mp-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: issue .8s var(--spring) both; }
.mp-banner { height: 160px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--mp-accent, var(--accent)), color-mix(in srgb, var(--mp-accent, var(--accent)) 30%, var(--bg))); margin-bottom: -60px; background-size: cover; background-position: center; }
.mp-links { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.mp-link { display: block; text-align: center; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); font-weight: 700; transition: transform .25s var(--spring), border-color .2s, background .2s; }
.mp-link:hover { transform: scale(1.02); border-color: var(--mp-accent, var(--accent)); background: color-mix(in srgb, var(--mp-accent, var(--accent)) 10%, var(--surface)); }
.mp-block { margin-top: 22px; }

/* ------------------------------------------------------------------ misc */
.qr svg { width: 100%; height: auto; background: #fff; border-radius: var(--r); padding: 8px; }
.kbd, kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: .85em; background: var(--surface-2); }
.dot-sep::before { content: "·"; margin: 0 6px; color: var(--text-3); }
.big-input-row { display: flex; gap: 8px; }
@media (max-width: 600px) { .big-input-row { flex-direction: column; } }
.result-pop { animation: pop .4s var(--spring); }
.short-url { font-size: 1.4rem; font-weight: 700; word-break: break-all; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.spark { width: 90px; height: 26px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-family: var(--display); font-size: clamp(5rem, 16vw, 10rem); font-weight: 700; line-height: 1; color: var(--text-3); animation: glow 4s ease-in-out infinite; }
.konami { animation: rainbow 2s linear infinite; }
@keyframes rainbow { to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .panel { animation: none; border-image: none; border-color: var(--pc); }
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------------ member page themes */
body.mp-paper { --text-inv: #fffdf8; --bg: #f7f3ea; --bg-2: #efe9dc; --surface: #fffdf8; --surface-2: #f3eee2; --surface-3: #e7e0cf; --line: #e2d9c5; --line-2: #d3c7ad; --text: #2b2620; --text-2: #5d544a; --text-3: #8a7f70; --accent: #b4572e; --dot: rgba(0,0,0,.05); color-scheme: light; }
body.mp-terminal { --text-inv: #050805; --bg: #050805; --bg-2: #0a120a; --surface: #0b140b; --surface-2: #102010; --surface-3: #183018; --line: #1d3a1d; --line-2: #285028; --text: #b6f7a6; --text-2: #7fd36d; --text-3: #4f8f45; --accent: #a3e635; --dot: rgba(163,230,53,.06); font-family: var(--mono); }
body.mp-sunset { --text-inv: #1a0f1f; --bg: #1a0f1f; --bg-2: #22132a; --surface: #2a1733; --surface-2: #341c3f; --surface-3: #44244f; --line: #4a2a55; --line-2: #5d3569; --text: #ffe9dc; --text-2: #f5b8a0; --text-3: #c08a8a; --accent: #fb7185; --dot: rgba(251,113,133,.07); }
body.mp-ocean { --text-inv: #04131d; --bg: #04131d; --bg-2: #071c2a; --surface: #0a2435; --surface-2: #0e2e44; --surface-3: #143b57; --line: #17425f; --line-2: #1f5577; --text: #dff4ff; --text-2: #9fd0ea; --text-3: #6aa3c0; --accent: #22d3ee; --dot: rgba(34,211,238,.06); }
body.mp-mono { --text-inv: #ffffff; --bg: #ffffff; --bg-2: #f4f4f4; --surface: #ffffff; --surface-2: #f0f0f0; --surface-3: #e0e0e0; --line: #dddddd; --line-2: #bbbbbb; --text: #111111; --text-2: #444444; --text-3: #777777; --accent: #111111; --dot: transparent; color-scheme: light; }
body.mp-candy { --text-inv: #ffffff; --bg: #fff0f7; --bg-2: #ffe4f1; --surface: #ffffff; --surface-2: #fff0f7; --surface-3: #ffd6ea; --line: #ffc7e0; --line-2: #ff9ec9; --text: #4a1236; --text-2: #8a3b6a; --text-3: #b06b93; --accent: #ec4899; --dot: rgba(236,72,153,.08); color-scheme: light; font-family: var(--fun); }
body[class*="mp-"] { background: var(--bg); color: var(--text); }
.mp-name { font-size: 2rem; font-family: var(--display); }
.mp-status { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px; font-size: var(--fs-sm); background: var(--surface); }
.mp-visitors { display: flex; justify-content: center; gap: -6px; }
.mp-visitors a { margin-left: -6px; transition: transform .2s var(--spring); } .mp-visitors a:hover { transform: translateY(-3px) scale(1.1); z-index: 2; }
.mp-embed { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r-lg); }
.block-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.block-row[draggable="true"] { cursor: grab; }
.block-row.dragging { opacity: .4; }

.mp-follow { background: var(--mp-accent, var(--accent)); border-color: var(--mp-accent, var(--accent)); color: var(--text-inv); }
.mp-follow:hover { background: var(--mp-accent, var(--accent)); filter: brightness(1.08); }
body[class*="mp-"] .btn-primary { background: var(--mp-accent, var(--accent)); border-color: var(--mp-accent, var(--accent)); color: var(--text-inv); }
/* monitors: one fixed-width cell per signal */
.uptime.cells { justify-content: flex-start; }
.uptime.cells i { flex: 0 0 7px; }
/* wall doodle hint */
.doodle-wrap { position: relative; }
.doodle-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); pointer-events: none; font-family: var(--fun); font-size: 1.1rem; transition: opacity .3s; }
.doodle-wrap.drawn .doodle-hint { opacity: 0; }
.pen { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--spring); }
.pen.on, .pen:hover { transform: scale(1.18); border-color: var(--text); }
.speed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.side-layout.left-nav { grid-template-columns: var(--nav-w, 200px) minmax(0, 1fr); }
.docs-nav { position: sticky; top: 70px; }
@media (max-width: 900px) { .side-layout.left-nav { grid-template-columns: minmax(0, 1fr); } .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; } }
/* phone: titles wrap above their action buttons instead of being squeezed to "fizzbuz…" */
.page-head > .grow { flex: 1 1 260px; }
.tools-nav { max-height: calc(100vh - 90px); overflow: auto; }
@media (max-width: 900px) { .tools-nav { max-height: none; } .tools-nav > :not(:first-child) { display: none; } }
@media (max-width: 640px) {
  .bnav { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); }
}
@media (max-width: 420px) { .brand .sub { display: none; } }
/* phone: rows with several chips (burn · unlisted · views) wrap instead of running off the screen */
@media (max-width: 640px) { .list-row { flex-wrap: wrap; row-gap: 4px; } .list-row > .grow { flex-basis: 45%; } }
