/* ==========================================================================
   squirtle.zip — dark editorial pop
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0a0a0b;
  --ink-raised: #0f0f11;
  --ink-soft: #141417;
  --paper: #ece7dc;
  --paper-dim: #a8a195;
  --paper-faint: rgba(236, 231, 220, 0.55);
  --cyan: #5ce1ff;
  --cyan-deep: #18b8dc;
  --orange: #ff5a2b;
  --acid: #d8ff4d;
  --red: #ff4f64;
  --line: rgba(236, 231, 220, 0.16);
  --line-strong: rgba(236, 231, 220, 0.4);
  --accent: var(--cyan);
  --font-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
  --page-max: 1360px;
  --pad: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 82% -8%, rgba(92, 225, 255, 0.13), transparent 62%),
    radial-gradient(900px 700px at 4% 108%, rgba(255, 90, 43, 0.09), transparent 62%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body[data-view='login'] { overflow-y: auto; }
::selection { background: var(--cyan); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
input, textarea, select { font: inherit; }
svg { display: block; }
img { max-width: 100%; }
::placeholder { color: rgba(236, 231, 220, 0.38); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-deep); }

#app { position: relative; z-index: 1; min-height: 100vh; }
.fx-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.95; }
/* The bubbles are a login-screen flourish only. Logged-in pages remove the canvas entirely. */
body[data-view='app'] .fx-canvas { display: none; }
.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.noscript { position: fixed; inset: auto 20px 20px 20px; z-index: 999; background: var(--orange); color: var(--ink); padding: 16px; font-family: var(--font-mono); }

.mono { font-family: var(--font-mono); }
.dim { color: var(--paper-dim); }
.muted { color: var(--paper-dim); }
.pad { padding: 16px 0; }
.accent-text { color: var(--cyan); }
.danger-text { color: var(--orange); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---- shared chrome ------------------------------------------------------ */

.marquee {
  background: var(--acid);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  padding: 10px 0;
  position: relative;
  z-index: 6;
}
.marquee-track { display: inline-flex; animation: marquee 34s linear infinite; will-change: transform; }
.marquee-track span { display: inline-block; padding-right: 24px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 24px var(--pad);
  position: relative; z-index: 5;
}
.app-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px);
  padding-top: 18px; padding-bottom: 18px;
}
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.065em; line-height: 0.9; white-space: nowrap;
}
.brand-suffix { color: var(--orange); }
.app-header .brand { font-size: 27px; }
.login-header { padding-top: 26px; padding-bottom: 22px; }
.login-header .brand { font-size: clamp(28px, 3vw, 38px); }
.login-header-right { display: flex; align-items: center; gap: 18px; }
.header-note { font-size: 10px; letter-spacing: 0.13em; color: var(--paper-dim); }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-strong); padding: 7px 10px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.12em;
  white-space: nowrap; text-transform: uppercase;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; box-shadow: 0 0 9px currentColor; }
.status-live { color: var(--acid); }
.status-muted { color: var(--paper-dim); }
.status-warn { color: var(--orange); }
.status-danger { color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 8px; }
.nav-link {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 10px 13px; border: 1px solid transparent; color: var(--paper-dim);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--paper); border-color: var(--line); }
.nav-link.active { color: var(--paper); border-color: var(--line-strong); background: rgba(236, 231, 220, 0.04); }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  background: rgba(236, 231, 220, 0.03); padding: 6px 10px 6px 6px; color: var(--paper);
  transition: border-color 0.15s, background 0.15s;
}
.user-chip:hover { border-color: var(--line-strong); background: rgba(236, 231, 220, 0.06); }
.user-chip-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.user-chip-copy strong { font-size: 12px; font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-copy span { color: var(--paper-dim); font-size: 8.5px; letter-spacing: 0.1em; }
.user-chip > svg { color: var(--paper-dim); }
.avatar {
  width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--cyan); color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  border: 1px solid var(--paper);
}
.avatar-lg { width: 52px; height: 52px; font-size: 16px; }
.signout-btn { color: var(--paper-dim); }

.page-shell {
  width: 100%; max-width: var(--page-max); margin: 0 auto;
  padding: clamp(30px, 4.5vw, 56px) var(--pad) 110px;
  position: relative;
}
.site-footer {
  width: 100%; max-width: var(--page-max); margin: 0 auto;
  padding: 24px var(--pad) 34px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; position: relative; z-index: 2;
}
.footer-brand { display: flex; align-items: center; gap: 4px; }
.footer-brand .brand { font-size: 19px; }
.footer-brand .mono { font-size: 9px; letter-spacing: 0.12em; }
.footer-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 9px; letter-spacing: 0.1em; }
.footer-dot { color: var(--orange); }

/* ---- shared type -------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-dim); display: flex; align-items: center; gap: 7px;
}
.eyebrow-slash { color: var(--orange); font-weight: 500; }
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-bottom: 26px; border-bottom: 1.5px solid var(--paper); margin-bottom: 8px;
}
.page-head-main { max-width: 820px; }
.page-title {
  font-weight: 800; font-size: clamp(58px, 9vw, 116px); line-height: 0.82;
  letter-spacing: -0.075em; margin: 10px 0 18px;
}
.page-sub { color: var(--paper-dim); font-size: 15px; line-height: 1.5; max-width: 570px; }
.page-head-side { flex-shrink: 0; padding-bottom: 6px; }
.head-stat { display: flex; align-items: flex-end; gap: 10px; }
.head-stat strong { font-size: 54px; font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; color: var(--cyan); }
.head-stat span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--paper-dim); max-width: 90px; line-height: 1.5; text-transform: uppercase; }
.outline-text { color: transparent; -webkit-text-stroke: 2px var(--paper); text-stroke: 2px var(--paper); }
.channel-tag {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.09em;
  border: 1px solid currentColor; padding: 4px 6px; text-transform: uppercase; white-space: nowrap;
  color: var(--acid);
}
.channel-stable { color: var(--acid); }
.channel-beta { color: var(--cyan); }
.channel-alpha { color: var(--orange); }
.channel-mini { font-size: 8px; padding: 3px 5px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 1.5px solid var(--paper); padding-top: 15px; margin-bottom: 13px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.045em; line-height: 1; font-weight: 800; }
.section-head-lg { align-items: flex-end; border-top: none; padding-top: 0; margin: 0 0 20px; }
.section-title { font-size: clamp(38px, 5vw, 62px); letter-spacing: -0.06em; line-height: 0.9; margin-top: 8px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color 0.15s, border-color 0.15s;
}
.text-link:hover { color: var(--cyan); border-color: var(--cyan); }
.subhead { font-size: 18px; font-weight: 800; letter-spacing: -0.035em; margin: 8px 0 2px; }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border: 1.5px solid var(--paper);
  background: transparent; color: var(--paper); font-family: var(--font-display);
  font-weight: 800; font-size: 15px; letter-spacing: -0.02em; line-height: 1;
  text-align: center; transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  box-shadow: 4px 4px 0 transparent; white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(1px, 1px); }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--cyan); color: var(--ink); border-color: var(--paper); box-shadow: 5px 5px 0 var(--paper); }
.btn-primary:hover { box-shadow: 7px 7px 0 var(--paper); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(236, 231, 220, 0.06); }
.btn-danger { background: var(--orange); color: var(--ink); border-color: var(--paper); box-shadow: 5px 5px 0 var(--paper); }
.btn-acid { background: var(--acid); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 12px; gap: 7px; box-shadow: 3px 3px 0 transparent; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 10px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.btn-tall { min-height: 80px; padding: 0 26px; gap: 13px; font-size: 24px; letter-spacing: -0.045em; position: relative; }
.btn-tall .btn-kicker { position: absolute; left: 28px; bottom: 10px; font-family: var(--font-mono); font-size: 8.5px; font-weight: 400; letter-spacing: 0.08em; opacity: 0.65; text-transform: uppercase; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid transparent; background: transparent; color: var(--paper-dim);
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.icon-btn:hover { color: var(--paper); background: rgba(236, 231, 220, 0.07); }
.icon-btn-bordered { border-color: var(--line); color: var(--paper); }
.icon-btn-bordered:hover { border-color: var(--paper); background: transparent; }
.icon-btn-solid { background: var(--cyan); color: var(--ink); border-color: var(--paper); }
.icon-btn-solid:hover { background: var(--acid); color: var(--ink); }
.icon-btn.danger:hover { color: var(--orange); border-color: var(--orange); background: rgba(255, 90, 43, 0.08); }
.row-actions { display: flex; align-items: center; gap: 3px; }

/* ---- forms -------------------------------------------------------------- */

.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-2-1 { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper);
}
.field-hint { font-size: 11px; line-height: 1.45; color: var(--paper-dim); }
.input {
  width: 100%; height: 50px; border: 1.5px solid var(--line-strong);
  background: var(--ink); color: var(--paper); padding: 0 14px;
  font-family: var(--font-mono); font-size: 13px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  border-radius: 0;
}
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 4px 4px 0 rgba(92, 225, 255, 0.22); background: var(--ink-raised); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.select {
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper-dim) 50%), linear-gradient(135deg, var(--paper-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.input-with-action { position: relative; }
.input-with-action .input { padding-right: 52px; height: 54px; }
.reveal-btn { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border: none; background: transparent; color: var(--paper-dim); }
.reveal-btn:hover { color: var(--cyan); }
.check-line { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 12.5px; color: var(--paper); line-height: 1.45; position: relative; }
.check-line:focus-within .check-box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check-box { width: 20px; height: 20px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; transition: background 0.15s, border-color 0.15s; }
.check-box svg { opacity: 0; color: var(--ink); transition: opacity 0.1s; }
.check-line:has(input:checked) .check-box { background: var(--cyan); border-color: var(--cyan); }
.check-line:has(input:checked) .check-box svg { opacity: 1; }
.form-error {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
  color: var(--orange); border-left: 2px solid var(--orange); padding-left: 10px;
}
.form-error[hidden] { display: none; }
.form-stack .form-error { margin: 0; }
.color-row { display: flex; align-items: center; gap: 12px; }
.color-input { width: 52px; height: 42px; padding: 3px; border: 1.5px solid var(--line-strong); background: var(--ink); cursor: pointer; }
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0;
}
.is-busy { opacity: 0.8; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- login -------------------------------------------------------------- */

.login-main {
  max-width: var(--page-max); width: 100%; margin: 0 auto;
  padding: clamp(30px, 5vw, 70px) var(--pad) 80px;
  position: relative; z-index: 2;
}
.login-grid {
  display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(360px, 0.72fr);
  gap: clamp(40px, 7vw, 100px); align-items: center;
  min-height: min(650px, calc(100svh - 300px));
}
.login-hero { position: relative; padding: 10px 0 20px; }
.hero-display {
  font-weight: 800; font-size: clamp(84px, 13.4vw, 200px); line-height: 0.78;
  letter-spacing: -0.085em; margin: 18px 0 22px; text-transform: none;
}
.hero-line { display: block; }
.hero-line:nth-child(1) { animation: slam 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.hero-line:nth-child(2) { animation: slam 0.8s 0.08s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.hero-line:nth-child(3) { animation: slam 0.8s 0.16s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.hero-display .outline-text { -webkit-text-stroke-width: 2.5px; }
.drop-word {
  color: var(--orange); display: inline-block; position: relative;
  text-shadow: 6px 6px 0 rgba(92, 225, 255, 0.24), 12px 12px 0 rgba(236, 231, 220, 0.06);
  animation: drop-wobble 6s ease-in-out infinite !important; transform-origin: 20% 80%;
}
.hero-sub { max-width: 535px; color: var(--paper-dim); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; }
.hero-rail { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-top: 32px; max-width: 590px; }
.rail-item { display: flex; align-items: baseline; gap: 8px; }
.rail-index { font-size: 9px; color: var(--orange); letter-spacing: 0.04em; }
.rail-label { font-size: 12px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
.hero-sticker {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 24px;
  background: var(--orange); color: var(--ink); font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em; padding: 8px 12px;
  border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--paper);
  transform: rotate(-2.5deg);
}
.hero-sticker-alt { color: rgba(10, 10, 11, 0.65); font-size: 8px; letter-spacing: 0.2em; }
.hero-footnote { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 0.1em; color: var(--paper-dim); margin-top: 26px; }
.hero-footnote .status-dot { color: var(--acid); }

.login-card-wrap { position: relative; animation: slam 0.9s 0.18s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.login-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-raised); border: 1.5px solid var(--paper);
  box-shadow: 12px 12px 0 var(--cyan);
  width: 100%;
}
.login-card::before {
  content: 'PRIVATE BUILD // 001';
  position: absolute; top: -15px; left: 20px; background: var(--ink); color: var(--orange);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.15em; padding: 2px 8px;
  border: 1px solid var(--orange);
}
.login-card-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(236, 231, 220, 0.035); font-size: 9.5px; letter-spacing: 0.12em; }
.login-card-inner { padding: 30px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.login-card-title { font-size: 27px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; }
.login-card-copy { font-size: 12.5px; line-height: 1.5; color: var(--paper-dim); margin-top: -5px; margin-bottom: 4px; }
.login-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }
.login-options .mono { font-size: 8px; letter-spacing: 0.1em; }
.login-submit { min-height: 58px; margin-top: 2px; justify-content: space-between; padding: 0 20px; font-size: 21px; letter-spacing: -0.035em; }
.login-card-foot { display: flex; align-items: center; gap: 7px; color: var(--paper-dim); font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.02em; margin-top: 3px; }
.login-card-bar { border-top: 1px solid var(--line); padding: 10px 18px; font-size: 8px; letter-spacing: 0.08em; color: var(--paper-dim); text-align: center; }
.login-card-note { text-align: center; margin-top: 20px; font-size: 8px; letter-spacing: 0.1em; color: var(--paper-dim); }
.float-badge { position: absolute; top: -74px; right: -30px; z-index: 2; transform: rotate(9deg); }
.float-badge svg { animation: spin 20s linear infinite; }

.login-meta-strip {
  display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: clamp(46px, 8vw, 95px); padding-top: 16px;
  font-size: 11px; color: var(--paper-dim);
}
.login-meta-strip .mono { font-size: 9px; letter-spacing: 0.1em; color: var(--paper); }
.login-meta-strip .mono:last-child { margin-left: auto; color: var(--paper-dim); }
.login-footer {
  max-width: var(--page-max); width: 100%; margin: 0 auto;
  padding: 18px var(--pad) 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); flex-wrap: wrap; position: relative; z-index: 2;
  font-size: 8.5px; letter-spacing: 0.1em;
}
.login-footer .brand { font-size: 20px; }
.login-footer-mark { opacity: 0.7; }

@keyframes drop-wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes slam { 0% { opacity: 0; transform: translateY(45px) rotate(1.5deg); } 100% { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- spin badge --------------------------------------------------------- */

.spin-badge svg { width: 140px; height: 140px; overflow: visible; }
.spin-badge-fill { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.spin-badge-line { fill: none; stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 2 7; opacity: 0.7; }
.spin-badge-text { font-family: var(--font-mono); font-size: 11px; font-weight: 500; fill: var(--paper); letter-spacing: 2px; }
.spin-badge-mark { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: square; }
.float-badge .spin-badge-text { font-size: 10px; }

/* ---- member home -------------------------------------------------------- */

.member-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 28px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.member-title { font-size: clamp(52px, 8.6vw, 116px); line-height: 0.84; letter-spacing: -0.075em; font-weight: 800; margin: 12px 0 16px; overflow-wrap: anywhere; }
.member-head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.meta-date { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--paper-dim); }
.meta-role { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--paper-dim); }
.meta { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--paper-dim); }

.latest-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px; padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(236, 231, 220, 0.055), rgba(236, 231, 220, 0.01) 55%, rgba(92, 225, 255, 0.055));
  box-shadow: 10px 10px 0 rgba(92, 225, 255, 0.12);
}
.latest-hero::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--accent); }
.latest-main { min-width: 0; }
.latest-version {
  font-size: clamp(94px, 15vw, 230px); font-weight: 800; line-height: 0.7;
  letter-spacing: -0.09em; margin: 24px 0 18px; overflow-wrap: anywhere;
}
.version-v { font-family: var(--font-mono); font-size: 0.22em; letter-spacing: 0; vertical-align: top; color: var(--paper-dim); margin-right: 0.08em; font-weight: 500; }
.latest-product { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.latest-product-name { font-size: clamp(21px, 2vw, 28px); font-weight: 800; letter-spacing: -0.04em; border-bottom: 3px solid var(--accent); }
.latest-tagline { color: var(--paper-dim); font-size: 13.5px; margin-top: 10px; max-width: 500px; }
.latest-side { border-left: 1px dashed var(--line-strong); padding-left: 30px; display: flex; flex-direction: column; justify-content: center; gap: 24px; min-width: 0; }
.file-meta { border: 1px solid var(--line); background: rgba(10, 10, 11, 0.36); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.file-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; word-break: break-all; }
.file-name svg { flex-shrink: 0; color: var(--cyan); }
.file-detail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 9px; color: var(--paper-dim); }
.meta-sep { color: var(--orange); }
.meta-copy { border: none; background: transparent; color: var(--paper-dim); padding: 2px; display: inline-grid; place-items: center; }
.meta-copy:hover { color: var(--cyan); }
.latest-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.latest-actions .spin-badge { flex-shrink: 0; opacity: 0.92; }
.latest-actions .spin-badge svg { width: 118px; height: 118px; }
.latest-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; gap: 10px; }
.latest-foot .mono { font-size: 8.5px; }

.home-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(30px, 5vw, 64px); margin: 58px 0 0; }
.home-panel { min-width: 0; }
.notes-preview { border-top: 1px solid var(--line); padding-top: 15px; }
.notes-preview .notes-p, .notes-list li, .log-notes .notes-p { font-size: 15px; line-height: 1.6; color: rgba(236, 231, 220, 0.86); }
.notes-preview .notes-p + .notes-p { margin-top: 8px; }
.notes-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.notes-list li { position: relative; padding-left: 19px; }
.notes-list li::before { content: '◆'; position: absolute; left: 0; top: 2px; color: var(--orange); font-size: 7px; }
.notes-heading { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; margin: 9px 0 2px; }
.notes-quote { border-left: 2px solid var(--cyan); padding-left: 12px; color: var(--paper-dim); font-size: 14px; }
.notes-code { background: var(--ink); border: 1px solid var(--line); padding: 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; }
.notes-empty, .notes-more { color: var(--paper-dim); font-size: 13px; font-family: var(--font-mono); }
.older-list { border-top: 1px solid var(--line); }
.older-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px 12px 8px; border-bottom: 1px solid var(--line); transition: background 0.15s, transform 0.15s; }
.older-row:hover { background: rgba(236, 231, 220, 0.035); transform: translateX(4px); }
.older-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.older-version { font-size: 30px; font-weight: 800; letter-spacing: -0.055em; line-height: 0.9; overflow-wrap: anywhere; }
.older-product { font-family: var(--font-mono); font-size: 9px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.older-date { font-size: 8.5px; }
.rack-section { margin-top: clamp(58px, 8vw, 100px); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; }
.product-card {
  position: relative; display: flex; flex-direction: column; min-height: 226px; padding: 20px;
  border: 1px solid var(--line); background: rgba(236, 231, 220, 0.022);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s, background 0.18s; overflow: hidden;
}
.product-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); opacity: 0.8; }
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 7px 7px 0 rgba(236, 231, 220, 0.1); background: rgba(236, 231, 220, 0.04); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.product-index { font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim); letter-spacing: 0.06em; }
.product-count { font-size: 8px; color: var(--paper-dim); letter-spacing: 0.05em; text-transform: uppercase; }
.product-name { font-size: 28px; font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; overflow-wrap: anywhere; }
.product-tagline { color: var(--paper-dim); font-size: 12.5px; line-height: 1.45; margin-top: 8px; }
.product-card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.product-current { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.product-version { font-size: 26px; font-weight: 800; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.product-actions { display: flex; gap: 5px; }
.product-actions .icon-btn { width: 34px; height: 34px; }

/* ---- empty + errors ----------------------------------------------------- */

.empty-state {
  border: 1px dashed var(--line-strong); padding: clamp(34px, 6vw, 70px) 24px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(236, 231, 220, 0.02); margin: 24px 0;
}
.empty-mark { font-family: var(--font-mono); font-size: 38px; line-height: 1; color: var(--orange); opacity: 0.8; }
.empty-state h3 { font-size: 27px; font-weight: 800; letter-spacing: -0.045em; }
.empty-state p { color: var(--paper-dim); max-width: 460px; font-size: 13.5px; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.panel-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 20px 0; color: var(--paper-dim); }
.panel-empty h3 { color: var(--paper); font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.panel-empty p { max-width: 480px; font-size: 13px; }
.panel-empty-lg { border: 1px dashed var(--line-strong); padding: 42px 24px; align-items: center; text-align: center; }
.route-loading { display: flex; align-items: center; gap: 12px; padding: 90px 0; color: var(--paper-dim); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-error {
  display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--orange);
  background: rgba(255, 90, 43, 0.06); padding: 18px; margin: 18px 0; flex-wrap: wrap;
}
.panel-error-mark { color: var(--orange); }
.panel-error h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.panel-error p { font-size: 12px; color: var(--paper-dim); margin-top: 3px; }
.panel-error button { margin-left: auto; }
.route-error { max-width: 600px; margin: 60px auto; }

/* ---- builds ------------------------------------------------------------- */

.product-block {
  border: 1px solid var(--line); background: rgba(236, 231, 220, 0.018);
  margin-top: 20px; position: relative;
}
.product-block::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.product-block-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.product-block-title { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.product-block-title .product-index { padding-top: 7px; }
.product-name-lg { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.95; overflow-wrap: anywhere; }
.product-description { color: var(--paper-dim); font-size: 13.5px; line-height: 1.55; padding: 14px 24px 0; max-width: 800px; }
.release-list { padding: 6px 24px 14px; }
.release-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px;
  align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line);
}
.release-row:last-child { border-bottom: 0; }
.release-version { font-size: 42px; font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; overflow-wrap: anywhere; }
.release-info { min-width: 0; }
.release-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.release-file { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; word-break: break-all; }
.release-file svg { color: var(--paper-dim); flex-shrink: 0; }
.release-sha { font-size: 8.5px; letter-spacing: 0.04em; margin-top: 4px; }
.release-actions { display: flex; gap: 8px; }
.release-notes { grid-column: 1 / -1; border-top: 1px dashed var(--line); margin-top: 1px; padding-top: 0; }
.release-notes summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px;
  padding: 10px 0 2px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-dim); user-select: none;
}
.release-notes summary::-webkit-details-marker { display: none; }
.release-notes summary:hover { color: var(--cyan); }
.summary-mark { color: var(--orange); font-size: 13px; transition: transform 0.15s; display: inline-block; }
.release-notes[open] .summary-mark { transform: rotate(45deg); }
.release-notes-body { padding: 10px 0 8px; max-width: 900px; display: flex; flex-direction: column; gap: 7px; }
.release-notes-body .notes-p, .release-notes-body .notes-list li { font-size: 13.5px; color: rgba(236, 231, 220, 0.82); }
.no-releases { padding: 24px; color: var(--paper-dim); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; }

/* ---- changelog ---------------------------------------------------------- */

.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 30px; }
.filter-pill {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: transparent;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-dim); transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--line-strong); color: var(--paper); }
.filter-pill.active { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.log-list { border-top: 1.5px solid var(--paper); }
.log-item { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); padding: 29px 0 33px; border-bottom: 1px solid var(--line); }
.log-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.log-date { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--paper); }
.log-downloads { font-size: 8px; }
.log-main { min-width: 0; }
.log-title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 11px; }
.log-version { font-size: clamp(38px, 4.5vw, 56px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.85; overflow-wrap: anywhere; }
.log-product { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.log-notes { display: flex; flex-direction: column; gap: 7px; max-width: 780px; }
.log-notes .notes-p, .log-notes .notes-list li { font-size: 14px; color: rgba(236, 231, 220, 0.82); }
.log-notes .notes-heading { font-size: 16px; }
.log-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.log-actions .mono { font-size: 8.5px; }

/* ---- admin -------------------------------------------------------------- */

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-title { font-size: clamp(50px, 8vw, 102px); line-height: 0.82; letter-spacing: -0.075em; font-weight: 800; margin: 12px 0 15px; }
.admin-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 4px; }
.admin-tabs { display: flex; gap: 3px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 28px 0 30px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid transparent; border-bottom: none;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-dim); white-space: nowrap; transition: all 0.15s;
}
.admin-tab:hover { color: var(--paper); border-color: var(--line); }
.admin-tab.active { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.admin-content { min-height: 320px; }
.admin-loading { display: flex; align-items: center; gap: 12px; padding: 70px 0; color: var(--paper-dim); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 22px; }
.stat-card {
  position: relative; border: 1px solid var(--line); padding: 18px; min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  background: rgba(236, 231, 220, 0.025); overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 40%; background: currentColor; }
.stat-card.tone-cyan { color: var(--cyan); }
.stat-card.tone-acid { color: var(--acid); }
.stat-card.tone-orange { color: var(--orange); }
.stat-card.tone-paper { color: var(--paper); }
.stat-label { font-size: 8.5px; letter-spacing: 0.1em; color: var(--paper-dim); }
.stat-value { font-size: clamp(32px, 3.3vw, 48px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--paper); }
.stat-sub { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.04em; color: var(--paper-dim); }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 12px; }
.admin-panel { border: 1px solid var(--line); background: rgba(236, 231, 220, 0.02); padding: 20px; min-width: 0; }
.latest-admin { display: flex; flex-direction: column; gap: 9px; padding-top: 12px; }
.latest-admin-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.latest-admin-version { font-size: 60px; font-weight: 800; letter-spacing: -0.075em; line-height: 0.8; margin-right: 4px; overflow-wrap: anywhere; }
.latest-admin-product { font-size: 22px; font-weight: 800; letter-spacing: -0.045em; }
.latest-admin-file { font-size: 9px; color: var(--paper-dim); word-break: break-all; }
.latest-admin-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 5px; flex-wrap: wrap; }
.latest-admin-foot .mono { font-size: 8.5px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding-top: 5px; }
.quick-action { display: flex; align-items: center; gap: 10px; border: none; border-top: 1px solid var(--line); background: transparent; padding: 13px 0; text-align: left; color: var(--paper); transition: color 0.15s, transform 0.15s; }
.quick-action:hover { color: var(--cyan); transform: translateX(3px); }
.quick-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--orange); flex-shrink: 0; }
.quick-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.quick-copy strong { font-size: 12px; font-weight: 700; }
.quick-copy span { font-size: 9px; color: var(--paper-dim); }
.quick-action > svg { color: var(--paper-dim); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.activity-panel { padding: 18px; }
.activity-list { display: flex; flex-direction: column; }
.activity-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 11px; line-height: 1.4; }
.activity-row-top { align-items: flex-start; }
.activity-main { min-width: 0; overflow-wrap: anywhere; }
.activity-main strong { color: var(--cyan); font-weight: 700; }
.activity-time { font-size: 8px; color: var(--paper-dim); white-space: nowrap; flex-shrink: 0; }
.activity-notify { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.activity-notify .activity-main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.activity-error { font-family: var(--font-mono); font-size: 8px; color: var(--orange); max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.release-toolbar .mono { font-size: 9px; letter-spacing: 0.06em; }
.section-copy { color: var(--paper-dim); font-size: 12.5px; line-height: 1.55; margin: 4px 0 14px; max-width: 750px; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: rgba(236, 231, 220, 0.015); }
.data-table { width: 100%; border-collapse: collapse; min-width: 840px; font-size: 12px; }
.data-table th {
  text-align: left; padding: 11px 12px; font-family: var(--font-mono); font-size: 8px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim);
  background: rgba(236, 231, 220, 0.04); border-bottom: 1px solid var(--line-strong);
}
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(236, 231, 220, 0.025); }
.data-table .num { text-align: right; }
.data-table .actions-col { width: 124px; text-align: right; }
.data-table .actions-col + th, .data-table td:last-child .row-actions { justify-content: flex-end; }
.table-primary { display: flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 800; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.table-primary .version-v { font-size: 10px; }
.table-sub { font-size: 8.5px; color: var(--paper-dim); margin-top: 2px; overflow-wrap: anywhere; }
.table-date { font-size: 8.5px; color: var(--paper-dim); white-space: nowrap; }
.self-row { background: rgba(216, 255, 77, 0.035); }
.member-cell { display: flex; align-items: center; gap: 10px; }
.member-cell .avatar { width: 34px; height: 34px; }
.you-tag { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.08em; background: var(--acid); color: var(--ink); padding: 2px 4px; margin-left: 6px; }
.role-select {
  appearance: none; border: 1px solid var(--line); background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.06em; padding: 6px 8px; min-width: 82px;
}
.role-select:disabled { opacity: 0.6; }
.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.admin-product-card {
  border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 18px;
  background: rgba(236, 231, 220, 0.02); display: flex; flex-direction: column; min-height: 210px; gap: 8px;
}
.admin-product-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-product-top .product-index { text-transform: lowercase; }
.admin-product-card h3 { font-size: 25px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.admin-product-desc { font-size: 11.5px; color: var(--paper-dim); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.admin-product-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.accent-chip { font-family: var(--font-mono); font-size: 8px; color: var(--ink); padding: 3px 6px; }

/* settings */
.settings-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 1040px; }
.settings-form { display: flex; flex-direction: column; gap: 14px; }
.settings-section { padding: 22px; }
.settings-section .section-head { margin-bottom: 4px; border-top: none; padding-top: 0; align-items: center; }
.settings-section .section-head h2 { font-size: 23px; }
.settings-section > .form-grid, .settings-section > .field { margin-top: 14px; }
.settings-section > .check-line { margin-top: 14px; }
.settings-savebar {
  position: sticky; bottom: 12px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: rgba(15, 15, 17, 0.96); backdrop-filter: blur(12px); border: 1px solid var(--line-strong);
  padding: 12px 14px 12px 18px; margin-top: 4px;
}
.settings-savebar .mono { font-size: 8px; }
.token-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 6px; }
.token-row .mono { font-size: 8.5px; letter-spacing: 0.04em; }
.endpoint-list { border: 1px solid var(--line); margin-top: 14px; }
.endpoint-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; }
.endpoint-row:last-child { border-bottom: 0; }
.method-tag { background: var(--acid); color: var(--ink); font-size: 7.5px; padding: 3px 5px; letter-spacing: 0.05em; }
.method-get { background: var(--cyan); }
.runtime-grid { display: grid; grid-template-columns: 0.6fr 1.2fr 1.4fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.runtime-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.runtime-value { font-size: 9.5px; overflow-wrap: anywhere; }
.settings-wrap .field-hint { font-size: 10px; }

/* ---- modals ------------------------------------------------------------- */

.modal {
  width: min(620px, calc(100vw - 32px)); padding: 0; border: none; background: transparent; color: var(--paper);
  max-height: calc(100dvh - 40px); overflow: visible; margin: auto;
}
.modal::backdrop { background: rgba(3, 3, 4, 0.78); backdrop-filter: blur(5px); }
.modal[open] { animation: modal-in 0.22s cubic-bezier(0.2, 0.9, 0.2, 1); }
.modal-wide { width: min(780px, calc(100vw - 32px)); }
.modal-narrow { width: min(530px, calc(100vw - 32px)); }
.modal-frame { background: var(--ink-raised); border: 1.5px solid var(--paper); box-shadow: 12px 12px 0 var(--cyan); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal-eyebrow { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 5px; }
.modal-title { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; }
.modal-close { margin-top: -4px; margin-right: -4px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-copy { color: var(--paper-dim); font-size: 13px; line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.modal-actions-split { justify-content: space-between; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.credential-box { border: 1.5px solid var(--paper); background: var(--ink); }
.credential-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px dashed var(--line); min-width: 0; }
.credential-row:last-child { border-bottom: 0; }
.credential-label { font-size: 8px; letter-spacing: 0.08em; color: var(--paper-dim); width: 70px; flex-shrink: 0; }
.credential-value { flex: 1; font-size: 15px; overflow-wrap: anywhere; }
.credential-value.wrap { font-size: 11px; }
.callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(92, 225, 255, 0.055); font-size: 11.5px; line-height: 1.5; color: var(--paper-dim); }
.callout svg { color: var(--cyan); flex-shrink: 0; margin-top: 1px; }
.callout-warn { border-color: rgba(255, 90, 43, 0.5); background: rgba(255, 90, 43, 0.06); }
.callout-warn svg { color: var(--orange); }
.code-block { position: relative; border: 1px solid var(--line); background: var(--ink); }
.code-block pre { padding: 14px; overflow-x: auto; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.6; }
.code-copy { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--ink-raised); color: var(--paper-dim); }
.code-copy:hover { color: var(--cyan); border-color: var(--line-strong); }
.account-identity { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 14px; }
.account-identity h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.account-identity .mono { font-size: 8.5px; letter-spacing: 0.06em; }
.account-identity .btn { margin-left: auto; }
.account-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.account-fact { display: flex; flex-direction: column; gap: 4px; }
.account-fact .mono { font-size: 7.5px; letter-spacing: 0.09em; }
.account-fact span:last-child { font-size: 12px; }
.subhead { border-top: 1px solid var(--line); padding-top: 17px; }

/* ---- upload ------------------------------------------------------------- */

.drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-height: 112px; padding: 16px; border: 1.5px dashed var(--line-strong); background: rgba(236, 231, 220, 0.02);
  cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s;
}
.drop-zone:hover, .drop-zone.dragging { border-color: var(--cyan); background: rgba(92, 225, 255, 0.05); }
.drop-zone.has-file { border-style: solid; border-color: var(--cyan); background: rgba(92, 225, 255, 0.045); }
.drop-icon { color: var(--orange); }
.drop-copy { display: flex; flex-direction: column; gap: 2px; }
.drop-title { font-size: 12px; font-weight: 700; word-break: break-word; }
.drop-hint { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.04em; color: var(--paper-dim); }
.upload-progress { border: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(92, 225, 255, 0.03); }
.upload-progress[hidden] { display: none; }
.upload-progress-top { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 0.08em; color: var(--paper-dim); }
.progress-track { height: 5px; background: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--cyan); transition: width 0.2s; }

/* ---- toasts ------------------------------------------------------------- */

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 11px 11px 13px;
  border: 1px solid var(--line-strong); background: rgba(15, 15, 17, 0.98);
  box-shadow: 5px 5px 0 rgba(92, 225, 255, 0.22); pointer-events: auto;
  animation: toast-in 0.2s ease-out; font-size: 12px; line-height: 1.4;
}
.toast-icon { flex-shrink: 0; color: var(--paper-dim); margin-top: 1px; }
.toast-text { flex: 1; }
.toast-close { background: transparent; border: none; color: var(--paper-dim); padding: 1px; display: grid; place-items: center; }
.toast-close:hover { color: var(--paper); }
.toast-success { border-color: var(--acid); box-shadow: 5px 5px 0 rgba(216, 255, 77, 0.16); }
.toast-success .toast-icon { color: var(--acid); }
.toast-error { border-color: var(--orange); box-shadow: 5px 5px 0 rgba(255, 90, 43, 0.2); }
.toast-error .toast-icon { color: var(--orange); }
.toast-warn { border-color: var(--orange); }
.toast-warn .toast-icon { color: var(--orange); }
.toast-info .toast-icon { color: var(--cyan); }
.toast-out { opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- boot + fatal ------------------------------------------------------- */

.boot-screen {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.boot-mark { font-size: clamp(42px, 8vw, 90px); font-weight: 800; letter-spacing: -0.08em; animation: boot-pulse 1.2s ease-in-out infinite alternate; }
.boot-mark span { color: var(--orange); }
.boot-line { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--paper-dim); }
.boot-pip { width: 7px; height: 7px; background: var(--cyan); animation: boot-pip 0.8s steps(2) infinite; }
@keyframes boot-pulse { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes boot-pip { 50% { opacity: 0.15; } }
.fatal-error { max-width: 640px; margin: 16vh auto; padding: 30px; border: 1px solid var(--orange); background: rgba(255, 90, 43, 0.04); }
.fatal-error h1 { font-size: 42px; line-height: 0.95; letter-spacing: -0.055em; margin-bottom: 14px; }
.fatal-error p { color: var(--paper-dim); margin-bottom: 20px; }

/* ---- animation helpers -------------------------------------------------- */

.shake { animation: shake 0.35s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px) rotate(-0.4deg); }
  40% { transform: translateX(6px) rotate(0.3deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .latest-hero { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr); }
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .activity-panel:last-child { grid-column: 1 / -1; }
  .float-badge { right: -10px; }
}

@media (max-width: 980px) {
  .login-grid { grid-template-columns: 1fr; gap: 55px; align-items: start; min-height: 0; }
  .login-hero { max-width: 720px; }
  .hero-display { font-size: clamp(84px, 16vw, 160px); }
  .login-card-wrap { max-width: 520px; width: 100%; justify-self: end; }
  .login-meta-strip { margin-top: 65px; }
  .member-head { flex-wrap: wrap; }
  .member-head-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .latest-hero { grid-template-columns: 1fr; }
  .latest-side { border-left: none; border-top: 1px dashed var(--line-strong); padding-left: 0; padding-top: 24px; }
  .home-columns { grid-template-columns: 1fr; gap: 42px; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-block-head { flex-wrap: wrap; }
  .release-row { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .runtime-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-note { display: none; }
  .app-header { flex-wrap: wrap; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; padding-top: 8px; border-top: 1px solid var(--line); scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 8px 10px; }
  .header-right { margin-left: auto; }
  .user-chip-copy { display: none; }
  .signout-btn { width: 34px; height: 34px; }
  .page-title, .member-title { font-size: clamp(48px, 15vw, 78px); }
  .page-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-head-side { padding: 0; }
  .head-stat strong { font-size: 42px; }
  .latest-version { font-size: clamp(78px, 23vw, 150px); white-space: normal; }
  .latest-actions .spin-badge { display: none; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 112px; padding: 14px; }
  .stat-value { font-size: 32px; }
  .quick-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-panel:last-child { grid-column: auto; }
  .admin-tabs { margin-top: 20px; }
  .admin-title { font-size: clamp(46px, 14vw, 78px); }
  .section-head h2 { font-size: 22px; }
  .log-item { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .log-side { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
  .release-row { grid-template-columns: 1fr; gap: 10px; padding: 17px 0; }
  .release-version { font-size: 36px; }
  .release-actions { justify-content: flex-start; }
  .release-notes { margin-top: 4px; }
  .release-list { padding: 4px 16px 10px; }
  .product-block-head { padding: 18px 16px; }
  .product-description { padding: 12px 16px 0; }
  .product-block-title { gap: 10px; }
  .login-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .login-card-wrap { justify-self: stretch; }
  .float-badge { display: none; }
  .login-header-right { gap: 10px; }
  .form-grid, .form-grid-2-1 { grid-template-columns: 1fr; }
  .account-facts { grid-template-columns: 1fr 1fr; }
  .settings-savebar { position: static; flex-wrap: wrap; }
  .runtime-grid { grid-template-columns: 1fr; }
  .toast-root { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .modal { width: calc(100vw - 24px); }
  .modal-frame { box-shadow: 6px 6px 0 var(--cyan); }
  .modal-body { padding: 16px; }
  .modal-head { padding: 15px 16px; }
}

@media (max-width: 520px) {
  :root { --pad: 17px; }
  .marquee { font-size: 9.5px; padding: 8px 0; }
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .login-header-right .status-pill { display: none; }
  .hero-display { font-size: clamp(74px, 22vw, 112px); margin-top: 14px; }
  .hero-sub { font-size: 14px; }
  .hero-rail { gap: 14px 22px; }
  .login-card { box-shadow: 7px 7px 0 var(--cyan); }
  .login-card-inner { padding: 24px 19px 20px; }
  .login-card-title { font-size: 24px; }
  .login-card-bar { font-size: 7px; }
  .login-meta-strip { gap: 10px 16px; font-size: 10px; }
  .login-meta-strip .mono:last-child { margin-left: 0; }
  .latest-hero { padding: 20px 17px; box-shadow: 6px 6px 0 rgba(92, 225, 255, 0.12); }
  .latest-version { font-size: clamp(70px, 25vw, 110px); }
  .latest-product-name { font-size: 20px; }
  .latest-foot { flex-direction: column; align-items: flex-start; }
  .btn-tall { min-height: 68px; font-size: 21px; }
  .btn-tall .btn-kicker { left: 24px; bottom: 8px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 100px; }
  .stat-value { font-size: 27px; }
  .account-facts { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .page-shell { padding-bottom: 70px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 24px; }
  .footer-meta { gap: 9px; }
  .product-block-head { align-items: flex-start; }
  .product-block-head .btn { width: 100%; }
  .member-head-meta { flex-direction: row; }
  .hero-rail .rail-label { font-size: 10px; }
  .hero-sticker { margin-top: 20px; }
}

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