/* CLEEP — holographic lab UI.
   Near-black void, gold dust, mono HUD labels and settle easing, pushed into a high-energy holographic
   workshop: cyan light, glass panels, bracket corners, scan lines. */

@font-face { font-family: 'Oxanium'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/oxanium-latin.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); }

/* ---------- 1. tokens ---------- */
:root {
  --void: #05060a;
  --void-2: #090c13;
  --void-3: #0e131d;
  --glass: rgba(13, 19, 31, 0.66);
  --glass-hi: rgba(22, 32, 50, 0.72);
  --ink: #eef6ff;
  --ink-2: #bccadd;
  --ash: #8494aa;
  --ash-2: #5d6b80;
  --holo: #5de4ff;
  --ice: #9cc4ff;
  --gold: #e8b65c;
  --gold-hot: #ffd48a;
  --white-hot: #fff3dc;
  --ember: #ff8a3d;
  --live: #ff4d6d;
  --mint: #7cffb2;
  --violet: #b48cff;
  --line: rgba(93, 228, 255, 0.14);
  --line-2: rgba(93, 228, 255, 0.3);
  --line-gold: rgba(232, 182, 92, 0.32);
  --glow: 0 0 0 1px rgba(93, 228, 255, 0.35), 0 0 24px rgba(93, 228, 255, 0.28);
  --glow-gold: 0 0 0 1px rgba(255, 212, 138, 0.5), 0 0 28px rgba(232, 182, 92, 0.38);
  --settle: cubic-bezier(0.22, 1, 0.36, 1);
  --snap: cubic-bezier(0.3, 1.4, 0.5, 1);
  --f-display: 'Oxanium', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --rail: 248px;
  --gutter: clamp(16px, 2.2vw, 40px);
  color-scheme: dark;
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; scrollbar-color: #24344d var(--void); }
body { margin: 0; min-height: 100svh; background: var(--void); color: var(--ink); font: 400 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--holo); text-decoration: none; }
a:hover { color: var(--white-hot); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(93, 228, 255, 0.3); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--holo); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--void-2); border: 1px solid var(--holo); color: var(--ink); }
.skip:focus-visible { top: 14px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------- 3. the lab backdrop: grid floor, scan lines, dust ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop::before { /* ambient glow pools */
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 78% 8%, rgba(93, 228, 255, 0.10), transparent 70%),
    radial-gradient(35% 30% at 12% 90%, rgba(232, 182, 92, 0.08), transparent 70%),
    radial-gradient(30% 30% at 50% 50%, rgba(156, 196, 255, 0.04), transparent 70%);
}
.grid-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 62%; transform-origin: 50% 100%;
  transform: perspective(600px) rotateX(64deg);
  background-image: linear-gradient(rgba(93, 228, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(93, 228, 255, 0.16) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  opacity: .38; animation: floor 14s linear infinite; }
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.backdrop .art { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .16; }
canvas.dust { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 4. type ---------- */
.eyebrow { font: 500 11px/1.2 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--holo); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.ash { color: var(--ash); }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: .01em; }
h1.title { font: 600 clamp(26px, 2.2vw, 40px)/1.08 var(--f-display); letter-spacing: .01em; }
h2.section { font: 600 18px/1.2 var(--f-display); letter-spacing: .03em; }
.muted { color: var(--ash); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; }

/* ---------- 5. buttons ---------- */
.btn { --c: var(--holo); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(93, 228, 255, 0.06);
  color: var(--ink); font: 600 13px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--settle), box-shadow .25s var(--settle), border-color .25s, background-color .25s, color .25s; user-select: none; }
.btn:hover { border-color: var(--holo); box-shadow: var(--glow); background: rgba(93, 228, 255, 0.12); color: #fff; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.primary { border: 0; color: #031018; background: linear-gradient(135deg, #8ff0ff, var(--holo) 45%, var(--ice)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 8px 28px -10px rgba(93, 228, 255, .7); }
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 0 32px rgba(93, 228, 255, .55); color: #000; }
.btn.gold { border: 0; color: #1a0f00; background: linear-gradient(135deg, var(--white-hot), var(--gold-hot) 40%, var(--gold)); box-shadow: 0 8px 28px -10px rgba(232, 182, 92, .8); }
.btn.gold:hover { box-shadow: var(--glow-gold); color: #000; }
.btn.danger { --c: var(--live); border-color: rgba(255, 77, 109, .4); background: rgba(255, 77, 109, .07); }
.btn.danger:hover { border-color: var(--live); box-shadow: 0 0 0 1px rgba(255, 77, 109, .45), 0 0 22px rgba(255, 77, 109, .3); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { border-color: var(--line-2); background: rgba(93, 228, 255, .06); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 11.5px; border-radius: 8px; }
.btn.icon { padding: 0; width: 40px; }
.btn.sm.icon { width: 32px; }
.btn.block { width: 100%; }
/* press ripple + charge sweep */
.btn::after { content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: 10px; height: 10px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0); background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); opacity: 0; }
.btn.ripple::after { animation: ripple .6s var(--settle); }
@keyframes ripple { 0% { opacity: .9; transform: translate(-50%, -50%) scale(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(40); } }
.btn::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%); }
.btn:hover::before { transform: translateX(120%); transition: transform .8s var(--settle); }
.btn.busy { pointer-events: none; }
.btn.busy > * { opacity: .25; }
.btn.busy::before { transform: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: charge 1s linear infinite; }
@keyframes charge { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ---------- 6. form controls ---------- */
.field { display: grid; gap: 7px; }
.field > span, .label { font: 500 11px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.input, .field input, .field select, .field textarea, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(132, 148, 170, .26); background: rgba(5, 8, 14, .7);
  color: var(--ink); transition: border-color .2s, box-shadow .25s, background-color .2s; }
.field textarea, textarea.input { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(93, 228, 255, .35); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--holo); box-shadow: 0 0 0 3px rgba(93, 228, 255, .14), 0 0 22px rgba(93, 228, 255, .12); background: rgba(8, 14, 24, .9); }
.field input::placeholder, .field textarea::placeholder { color: var(--ash-2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--holo) 50%), linear-gradient(135deg, var(--holo) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--void-2); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; color: var(--ink-2); }
.check input { appearance: none; width: 40px; height: 22px; flex: none; border-radius: 999px; background: rgba(132, 148, 170, .25); position: relative; cursor: pointer; transition: background-color .25s; }
.check input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); transition: transform .3s var(--snap), background-color .25s, box-shadow .25s; }
.check input:checked { background: rgba(93, 228, 255, .35); }
.check input:checked::after { transform: translateX(18px); background: var(--holo); box-shadow: 0 0 12px var(--holo); }
.form-error { min-height: 1.4em; color: #ffb3a1; font-size: 13.5px; }
.form-error:empty { min-height: 0; }
.form-ok { color: var(--mint); font-size: 13.5px; }
.shake { animation: shake .42s var(--settle); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--void) inset; transition: transform .2s var(--snap), box-shadow .2s; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--void) inset, 0 0 18px var(--c); transform: scale(1.12); }

/* ---------- 7. panels: glass + bracket corners + assembly ---------- */
.panel { position: relative; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); min-width: 0; }
.panel.pad { padding: 20px; }
.brackets::before, .brackets::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 1.5px solid var(--holo); opacity: .75; transition: all .4s var(--settle); }
.brackets::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.brackets::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.assemble { animation: assemble .7s var(--settle) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes assemble {
  0% { opacity: 0; transform: translateY(14px) scale(.985); clip-path: inset(48% 0 48% 0 round var(--radius)); filter: brightness(1.8); }
  55% { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--radius)); filter: none; }
}
.scan { overflow: hidden; }
.scan > .scanbar { position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, transparent, rgba(93, 228, 255, .12) 70%, rgba(93, 228, 255, .5) 99%, transparent);
  transform: translateY(-110%); animation: scanpass 1.3s var(--settle) .15s 1 both; }
@keyframes scanpass { to { transform: translateY(260%); opacity: 0; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { font: 600 15px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 8. chips & status ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(5, 8, 14, .6); font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.live { color: #fff; border-color: rgba(255, 77, 109, .6); background: rgba(255, 77, 109, .18); }
.chip.live .dot { background: var(--live); box-shadow: 0 0 0 0 rgba(255, 77, 109, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } }
.chip.rec { color: var(--ember); border-color: rgba(255, 138, 61, .5); }
.chip.rec .dot { background: var(--ember); animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.chip.wait { color: var(--gold-hot); border-color: var(--line-gold); }
.chip.wait .dot { animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .3; transform: scale(.7); } }
.chip.off { color: var(--ash); border-color: rgba(132, 148, 170, .3); }
.chip.fail { color: #ffb3a1; border-color: rgba(255, 77, 109, .45); }
.chip.ok { color: var(--mint); border-color: rgba(124, 255, 178, .4); }
.chip.holo { color: var(--holo); }
.chip.gold { color: var(--gold-hot); border-color: var(--line-gold); }
.chip.violet { color: var(--violet); border-color: rgba(180, 140, 255, .4); }
.connecting .dot { animation: breathe 1s ease-in-out infinite; }

/* ---------- 9. app shell ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100svh; }
.rail { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px 18px;
  background: linear-gradient(180deg, rgba(9, 12, 19, .86), rgba(5, 6, 10, .9)); border-right: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); z-index: 20; }
.logo { display: flex; align-items: center; gap: 12px; padding: 4px 8px; color: var(--ink); }
.logo img.mark { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(93, 228, 255, .45)); }
.logo img.word { width: 112px; height: auto; }
.logo:hover img.mark { animation: wobble .6s var(--snap); }
@keyframes wobble { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(5deg); } }
.nav { display: grid; gap: 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink-2);
  font: 600 13.5px/1 var(--f-display); letter-spacing: .05em; transition: background-color .2s, color .2s; }
.nav a:hover { background: rgba(93, 228, 255, .07); color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(93, 228, 255, .18), rgba(93, 228, 255, .02)); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--holo); box-shadow: 0 0 14px var(--holo); }
.nav a[aria-current="page"] svg { color: var(--holo); filter: drop-shadow(0 0 6px rgba(93, 228, 255, .7)); }
.nav .badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: #1a0f00; font: 700 11px/1 var(--f-display); box-shadow: 0 0 12px rgba(232, 182, 92, .6); }
.nav-label { padding: 10px 14px 2px; font: 500 10px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ash-2); }
.rail-foot { margin-top: auto; display: grid; gap: 10px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 19, 31, .6); color: var(--ink); }
.me-card:hover { border-color: var(--line-2); color: var(--ink); }
.me-card .who { min-width: 0; display: grid; }
.me-card .who strong { font: 600 13.5px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .who small { font: 500 10px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.avatar { --c: var(--holo); position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, #fff 0%), color-mix(in srgb, var(--c) 35%, #05060a)); color: #05060a;
  font: 700 14px/1 var(--f-display); box-shadow: 0 0 0 2px rgba(5, 6, 10, .9), 0 0 0 3px color-mix(in srgb, var(--c) 70%, transparent), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.avatar.lg { width: 76px; height: 76px; font-size: 28px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.main { min-width: 0; padding: 22px var(--gutter) 60px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.topbar .titles { display: grid; gap: 8px; }
.topbar .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clock { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--ash); padding: 0 6px; }
.view { animation: viewin .5s var(--settle) both; }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 8, 14, .6); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; white-space: nowrap; height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--ash); font: 600 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: rgba(93, 228, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.mobile-bar { display: none; }

/* ---------- 10. stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; display: grid; gap: 6px; overflow: hidden; }
.stat .value { font: 600 38px/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.stat .value.live { color: #fff; text-shadow: 0 0 22px rgba(255, 77, 109, .45); }
.stat .value.holo { color: var(--holo); text-shadow: 0 0 24px rgba(93, 228, 255, .45); }
.stat .value.gold { color: var(--gold-hot); text-shadow: 0 0 24px rgba(232, 182, 92, .45); }
.stat .value.mint { color: var(--mint); text-shadow: 0 0 22px rgba(124, 255, 178, .35); }
.stat svg.spark { position: absolute; right: 0; bottom: 0; width: 55%; height: 52%; opacity: .55; }

/* ---------- 11. monitor cards ---------- */
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.mcard { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; transition: transform .35s var(--settle), border-color .3s, box-shadow .35s; text-align: left; color: inherit; padding: 0; }
.mcard:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 60px -24px rgba(93, 228, 255, .35); }
.mcard:hover .thumb img { transform: scale(1.05); }
.mcard.selected { border-color: var(--holo); box-shadow: var(--glow); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #070a11; border-bottom: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--settle), opacity .5s; }
.thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(60% 80% at 50% 120%, color-mix(in srgb, var(--c, var(--holo)) 30%, transparent), transparent 70%),
  repeating-linear-gradient(90deg, rgba(93, 228, 255, .05) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(93, 228, 255, .05) 0 1px, transparent 1px 28px), #070a11; }
.thumb .placeholder span { font: 700 46px/1 var(--f-display); color: color-mix(in srgb, var(--c, var(--holo)) 70%, #fff); text-shadow: 0 0 30px var(--c, var(--holo)); opacity: .85; }
.thumb .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, .55), transparent 35%, transparent 60%, rgba(5, 6, 10, .85)); }
.thumb .tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.thumb .tr { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.thumb .bl { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.thumb.dim img { filter: grayscale(.8) brightness(.45); }
.thumb .scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(93, 228, 255, .8), transparent); top: 0; opacity: 0; }
.mcard.is-live .thumb .scanline { animation: sweep 3.6s linear infinite; opacity: .7; }
@keyframes sweep { from { top: -2%; } to { top: 102%; } }
.mbody { padding: 14px 16px 16px; display: grid; gap: 10px; }
.mtitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mtitle strong { font: 600 17px/1.2 var(--f-display); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmeta { display: flex; align-items: center; gap: 14px; font: 500 11.5px/1 var(--f-mono); color: var(--ash); letter-spacing: .06em; }
.mmeta b { color: var(--ink-2); font-weight: 600; }
.wave { height: 44px; width: 100%; }
.wave path.fill { fill: url(#wave-fill); opacity: .55; }
.wave path.line { fill: none; stroke: var(--holo); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(93, 228, 255, .7)); }
.wave line.threshold { stroke: var(--ember); stroke-dasharray: 3 4; stroke-width: 1; opacity: .7; }
.wave.flat path.line { stroke: var(--ash-2); filter: none; }
.add-card { display: grid; place-items: center; gap: 12px; min-height: 280px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--ash); cursor: pointer;
  background: rgba(93, 228, 255, .025); transition: all .3s var(--settle); }
.add-card:hover { color: var(--holo); border-color: var(--holo); background: rgba(93, 228, 255, .06); box-shadow: inset 0 0 40px rgba(93, 228, 255, .08); }
.add-card .plus { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; }

.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px 18px; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(5, 8, 14, .45); border: 1px solid rgba(93, 228, 255, .07); font-size: 13.5px; color: var(--ink-2); animation: logIn .5s var(--settle); min-width: 0; }
.feed-item > div { min-width: 0; overflow-wrap: anywhere; }
.feed-item b { color: var(--ink); font-weight: 600; }
.feed-item time { display: block; font: 500 10.5px/1.6 var(--f-mono); color: var(--ash-2); letter-spacing: .08em; }
.feed-icon { width: 30px; height: 30px; padding: 0; justify-content: center; flex: none; }
.feed-icon svg { width: 15px; height: 15px; }

/* ---------- 12. drawer (channel deck) & dialogs ---------- */
.drawer { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(820px, 100vw); display: flex; flex-direction: column; background: rgba(7, 10, 17, .92);
  border-left: 1px solid var(--line-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: -40px 0 80px rgba(0, 0, 0, .6);
  transform: translateX(105%); transition: transform .5s var(--settle); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 600 22px/1.15 var(--f-display); }
.drawer-body { flex: 1; overflow: auto; padding: 20px 22px 40px; display: grid; gap: 16px; align-content: start; }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(2, 3, 6, .55); opacity: 0; pointer-events: none; transition: opacity .4s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.deck-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.deck-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.preview-box { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #04060b; }
.preview-box img, .preview-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.preview-box .center { position: absolute; inset: 0; display: grid; place-items: center; }
.bars { height: 120px; display: flex; align-items: flex-end; gap: 3px; padding: 10px; border-radius: 12px; background: rgba(4, 6, 11, .8); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bars span { flex: 1; min-width: 2px; max-width: 14px; border-radius: 2px 2px 0 0; background: linear-gradient(to top, rgba(93, 228, 255, .35), var(--holo)); transition: height .4s var(--settle); }
.bars span.spike { background: linear-gradient(to top, rgba(255, 138, 61, .4), var(--gold-hot)); box-shadow: 0 0 10px rgba(255, 212, 138, .6); }
.bars .thr { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 138, 61, .7); }
.log { max-height: 340px; overflow: auto; padding: 8px 12px; margin: 0; list-style: none; border-radius: 12px; background: rgba(4, 6, 11, .8); border: 1px solid var(--line); font-size: 13.5px; }
.log li { padding: 5px 0; border-bottom: 1px solid rgba(93, 228, 255, .05); overflow-wrap: anywhere; animation: logIn .4s var(--settle); }
.log li time { font: 500 10.5px/1 var(--f-mono); color: var(--ash-2); margin-right: 8px; }
.log li b { color: var(--holo); font-weight: 600; margin-right: 6px; }
.log:empty::after { content: attr(data-empty); display: block; padding: 18px 0; color: var(--ash); text-align: center; font-size: 13px; }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { font: 500 10.5px/1.6 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.kv dd { margin: 0; color: var(--ink-2); }
dialog.modal { position: fixed; padding: 0; border: 0; background: transparent; color: var(--ink); width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: visible; }
dialog.modal::backdrop { background: rgba(2, 3, 6, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.modal[open] .panel { animation: assemble .55s var(--settle) both; }
dialog.modal .panel { padding: 24px; max-height: calc(100svh - 32px); overflow: auto; }
dialog.modal h2 { font: 600 22px/1.2 var(--f-display); margin: 6px 0 16px; }
dialog.modal form { display: grid; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.linkbox { display: flex; gap: 8px; align-items: stretch; }
.linkbox input { flex: 1; font: 500 12.5px/1 var(--f-mono); color: var(--holo); }

/* ---------- 13. studio (clip workspace) ---------- */
.studio { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) minmax(300px, 400px); gap: 16px; align-items: start; }
.queue { display: grid; gap: 10px; max-height: calc(100svh - 170px); overflow: auto; padding: 2px; }
.qitem { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 19, 31, .55);
  cursor: pointer; text-align: left; color: inherit; transition: border-color .2s, background-color .2s, transform .25s var(--settle); }
.qitem:hover { border-color: var(--line-2); transform: translateX(3px); }
.qitem[aria-current="true"] { border-color: var(--gold); background: rgba(232, 182, 92, .08); box-shadow: 0 0 0 1px rgba(232, 182, 92, .25), 0 0 24px rgba(232, 182, 92, .12); }
.qitem .qthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #070a11; }
.qitem .qthumb video, .qitem .qthumb img { width: 100%; height: 100%; object-fit: cover; }
.qitem strong { display: block; font: 600 14px/1.25 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem small { display: block; color: var(--ash); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor { padding: 16px; display: grid; gap: 14px; }
.player { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line);
  width: min(100%, calc((100svh - 400px) * 16 / 9)); min-width: min(100%, 320px); margin-inline: auto; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .hud { position: absolute; inset: 0; pointer-events: none; }
.player .hud .corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(93, 228, 255, .7); }
.player .hud .c1 { top: 10px; left: 10px; border-right: 0; border-bottom: 0; } .player .hud .c2 { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.player .hud .c3 { bottom: 10px; left: 10px; border-right: 0; border-top: 0; } .player .hud .c4 { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.player .hud .tc { position: absolute; top: 14px; left: 42px; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--holo); text-shadow: 0 0 8px rgba(93, 228, 255, .8); }
.player .bigplay { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.player .bigplay span { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 6, 10, .55); border: 1px solid var(--line-2); box-shadow: var(--glow); transition: transform .3s var(--snap), opacity .3s; }
.player.playing .bigplay span { opacity: 0; transform: scale(.7); }
.timeline { position: relative; height: 64px; border-radius: 10px; background: rgba(4, 6, 11, .85); border: 1px solid var(--line); cursor: pointer; touch-action: none; overflow: hidden; user-select: none; }
.timeline .ticks { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(93, 228, 255, .12) 0 1px, transparent 1px 10%); }
.timeline .wavebg { position: absolute; inset: 14px 0 14px 0; width: 100%; height: calc(100% - 28px); opacity: .7; }
.timeline .sel { position: absolute; top: 0; bottom: 0; background: rgba(232, 182, 92, .14); border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); box-shadow: inset 0 0 30px rgba(232, 182, 92, .15); }
.timeline .sel::before, .timeline .sel::after { content: ""; position: absolute; top: 50%; width: 10px; height: 26px; margin-top: -13px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 12px rgba(232, 182, 92, .8); }
.timeline .sel::before { left: -6px; } .timeline .sel::after { right: -6px; }
.timeline .head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--holo); box-shadow: 0 0 10px var(--holo); }
.timeline .head::before { content: ""; position: absolute; top: -1px; left: -5px; border: 6px solid transparent; border-top-color: var(--holo); }
.timeline .payoff { position: absolute; top: 4px; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-top: 9px solid var(--mint); filter: drop-shadow(0 0 6px var(--mint)); }
.tl-labels { display: flex; justify-content: space-between; font: 500 11px/1 var(--f-mono); color: var(--ash); letter-spacing: .08em; }
.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.controls .spacer { flex: 1; }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px;
  font: 600 10.5px/1 var(--f-mono); color: var(--ink-2); background: rgba(5, 8, 14, .8); }
.btn .kbd { min-width: 18px; height: 18px; font-size: 9.5px; margin-left: 2px; border-color: currentColor; background: transparent; color: inherit; opacity: .65; }
.keys { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ash); font-size: 12.5px; }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
.verdict { display: grid; gap: 14px; padding: 18px; }
.verdict .evidence { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(124, 255, 178, .25); background: rgba(124, 255, 178, .05); font-size: 13.5px; color: var(--ink-2); }
.verdict .evidence b { color: var(--mint); font: 600 10.5px/1.6 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; display: block; }
.transcript-box { max-height: 160px; overflow: auto; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(4, 6, 11, .7); font-size: 13.5px; color: var(--ink-2); }
.verdict-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stamp { position: fixed; z-index: 90; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-8deg); pointer-events: none;
  font: 800 clamp(48px, 7vw, 110px)/1 var(--f-display); letter-spacing: .08em; color: var(--gold-hot); text-shadow: 0 0 40px rgba(232, 182, 92, .9), 0 0 80px rgba(232, 182, 92, .5);
  -webkit-text-stroke: 1px rgba(255, 243, 220, .7); animation: stamp 1.3s var(--settle) both; }
.stamp.cyan { color: var(--holo); text-shadow: 0 0 40px rgba(93, 228, 255, .9), 0 0 80px rgba(93, 228, 255, .5); }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(2.2); } 18% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(.95); }
  28% { transform: translate(-50%, -50%) rotate(-8deg) scale(1.04); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) rotate(-8deg) scale(1); } }
canvas.burst { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 89; }

/* ---------- 14. library ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; min-width: min(320px, 100%); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ash); }
.search input { padding-left: 40px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.lcard { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--settle), box-shadow .35s, border-color .3s; }
.lcard:hover { transform: translateY(-5px) rotate(-.3deg); border-color: var(--line-gold); box-shadow: 0 26px 60px -26px rgba(232, 182, 92, .45); }
.lcard .vframe { position: relative; aspect-ratio: 9 / 16; background: #04060b; overflow: hidden; }
.lcard .vframe video, .lcard .vframe img { width: 100%; height: 100%; object-fit: cover; }
.lcard .vframe .tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.lcard .vframe .glare { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 45%, transparent 60%); transform: translateX(-100%); transition: transform .9s var(--settle); pointer-events: none; }
.lcard:hover .vframe .glare { transform: translateX(100%); }
.lcard .vframe .rendering { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; background: rgba(4, 6, 11, .7); color: var(--holo); font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.ring { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(93, 228, 255, .2); border-top-color: var(--holo); animation: spin 1s linear infinite; box-shadow: 0 0 20px rgba(93, 228, 255, .3); }
@keyframes spin { to { transform: rotate(360deg); } }
.lcard .lbody { padding: 12px 14px 14px; display: grid; gap: 8px; }
.lcard .lbody strong { font: 600 15px/1.25 var(--f-display); }
.lcard .lbody p { font-size: 12.5px; color: var(--ash); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .lactions { display: flex; gap: 8px; }

/* ---------- 15. lab, admin, account ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.two.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.topic { display: grid; gap: 10px; }
.topic h3 { font: 600 16px/1.2 var(--f-display); }
.meter { height: 8px; border-radius: 999px; background: rgba(93, 228, 255, .1); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--holo), var(--gold-hot)); box-shadow: 0 0 12px rgba(93, 228, 255, .6); transition: width 1.2s var(--settle); }
.notes { display: grid; gap: 8px; }
.notes a { font-weight: 600; }
.notes p { font-size: 13px; color: var(--ash); }
.guide li { margin-bottom: 10px; color: var(--ink-2); }
.guide li strong { color: var(--ink); }
.guide ul, .guide ol { padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: separate; border-spacing: 0 8px; min-width: 760px; }
table.users th { text-align: left; font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); padding: 4px 12px; }
table.users td { padding: 10px 12px; background: rgba(13, 19, 31, .55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
table.users td:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; }
table.users td:last-child { border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; }
table.users tr { animation: assemble .6s var(--settle) both; animation-delay: calc(var(--i, 0) * 45ms); }
table.users tr.me td { background: rgba(93, 228, 255, .06); }
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-cell strong { font: 600 14.5px/1.2 var(--f-display); display: block; }
.who-cell small { color: var(--ash); font: 500 11.5px/1.3 var(--f-mono); }
.role-select { min-height: 34px; padding: 4px 30px 4px 10px; border-radius: 8px; font: 600 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; color: var(--ink-2); }
.matrix th { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.matrix .yes { color: var(--mint); text-shadow: 0 0 8px rgba(124, 255, 178, .6); font-weight: 700; }
.matrix .no { color: var(--ash-2); }
.timeline-list { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 12px; border-left: 1px solid var(--line-2); max-height: 520px; overflow: auto; }
.timeline-list li { position: relative; font-size: 13.5px; color: var(--ink-2); }
.timeline-list li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--void); border: 2px solid var(--holo); box-shadow: 0 0 8px var(--holo); }
.timeline-list li.warn::before { border-color: var(--ember); box-shadow: 0 0 8px var(--ember); }
.timeline-list li time { display: block; font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .1em; color: var(--ash-2); }
.timeline-list li b { color: var(--ink); font-weight: 600; }
.abilities { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.abilities li { display: flex; align-items: center; gap: 8px; }
.abilities svg { color: var(--mint); width: 15px; height: 15px; }
.reel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.reel-stat { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 8, 14, .5); display: grid; gap: 6px; }
.reel-stat .value { font: 600 34px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.reel-stat .value.gold { color: var(--gold-hot); text-shadow: 0 0 22px rgba(232, 182, 92, .45); }
.reel-stat .value.holo { color: var(--holo); text-shadow: 0 0 22px rgba(93, 228, 255, .45); }
.reel-stat .value.mint { color: var(--mint); text-shadow: 0 0 22px rgba(124, 255, 178, .35); }
.profile { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }

/* ---------- 16. empty / loading / error states ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 20px; color: var(--ash); }
.empty img { width: min(240px, 60vw); mix-blend-mode: screen; filter: drop-shadow(0 0 30px rgba(93, 228, 255, .2)); animation: float 6s ease-in-out infinite; }
.empty h3 { font: 600 20px/1.2 var(--f-display); color: var(--ink); }
.empty p { max-width: 42ch; }
@keyframes float { 50% { transform: translateY(-10px); } }
.skeleton { position: relative; overflow: hidden; background: rgba(93, 228, 255, .05); border-radius: var(--radius); min-height: 280px; border: 1px solid var(--line); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(93, 228, 255, .1) 50%, transparent 70%); animation: shimmer 1.4s linear infinite; transform: translateX(-100%); }
@keyframes shimmer { to { transform: translateX(100%); } }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 138, 61, .4); background: rgba(255, 138, 61, .08); color: #ffd9bf; margin-bottom: 16px; font-size: 14px; }
.banner.info { border-color: var(--line-2); background: rgba(93, 228, 255, .06); color: var(--ink-2); }

/* ---------- 17. toasts ---------- */
.toasts { position: fixed; z-index: 95; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(9, 13, 22, .94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), var(--glow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: toastIn .45s var(--snap) both; font-size: 14px; }
.toast.err { border-color: rgba(255, 77, 109, .5); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 22px rgba(255, 77, 109, .25); }
.toast.gold { border-color: var(--line-gold); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), var(--glow-gold); }
.toast.out { animation: toastOut .35s var(--settle) both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- 18. sign-in / invite pages ---------- */
.gate { position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: clamp(16px, 4vw, 64px); gap: clamp(24px, 4vw, 72px); }
.gate-art { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: 62% center; opacity: .62; }
.gate-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 10, .96) 0%, rgba(5, 6, 10, .72) 38%, rgba(5, 6, 10, .2) 70%, rgba(5, 6, 10, .55) 100%), linear-gradient(0deg, rgba(5, 6, 10, .9), transparent 40%); }
.gate-brand { display: grid; gap: 22px; align-content: center; justify-items: start; }
canvas.wordmark { width: min(620px, 100%); aspect-ratio: 620 / 170; }
.boot { display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ash); }
.boot b { color: var(--gold-hot); font-weight: 600; min-width: 3ch; }
.boot .bar { width: 160px; height: 1px; background: rgba(93, 228, 255, .2); position: relative; overflow: hidden; }
.boot .bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--holo), var(--gold)); box-shadow: 0 0 8px var(--holo); }
.tagline { font: 500 clamp(18px, 1.6vw, 24px)/1.35 var(--f-display); color: var(--ink-2); max-width: 26ch; }
.tagline em { font-style: normal; color: var(--holo); text-shadow: 0 0 18px rgba(93, 228, 255, .5); }
.gate-card { width: min(440px, 100%); justify-self: center; padding: 30px; }
.gate-card h1 { font: 600 28px/1.15 var(--f-display); margin: 8px 0 6px; }
.gate-card > p { color: var(--ash); margin-bottom: 22px; }
.gate-card form { display: grid; gap: 16px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-wrap .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.gate-foot { margin-top: 18px; display: flex; justify-content: space-between; color: var(--ash-2); font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.strength { height: 4px; border-radius: 999px; background: rgba(132, 148, 170, .2); overflow: hidden; }
.strength i { display: block; height: 100%; width: var(--s, 0%); background: var(--c, var(--live)); transition: width .4s var(--settle), background-color .3s; }
.invite-who { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 8, 14, .5); margin-bottom: 18px; }

/* ---------- 19. responsive ---------- */
@media (min-width: 3200px) {
  :root { --rail: 300px; --gutter: 56px; }
  body { font-size: 16px; }
  h1.title { font-size: 48px; }
  .stats { gap: 20px; margin-bottom: 24px; }
  .stat { padding: 22px 26px; }
  .stat .value { font-size: 54px; }
  .monitor-grid { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 22px; }
  .mtitle strong { font-size: 21px; }
  .mmeta { font-size: 13px; }
  .wave { height: 64px; }
  .studio { grid-template-columns: 420px minmax(0, 1fr) 560px; gap: 22px; }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
  .three { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 22px; }
  .drawer { width: min(1180px, 100vw); }
  .nav a { height: 50px; font-size: 15px; }
}
@media (min-width: 2400px) and (max-width: 3199px) {
  :root { --rail: 272px; }
  .monitor-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
  .studio { grid-template-columns: 380px minmax(0, 1fr) 460px; }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
@media (max-width: 1500px) { .studio { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); } .studio .verdict { grid-column: 2; } }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: 14px var(--gutter) 96px; }
  .mobile-bar { display: grid; position: fixed; z-index: 30; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); grid-auto-flow: column; grid-auto-columns: 1fr;
    gap: 2px; padding: 6px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(7, 10, 17, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
  .mobile-bar a { display: grid; justify-items: center; gap: 4px; padding: 7px 2px; border-radius: 12px; color: var(--ash); font: 600 10px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; position: relative; }
  .mobile-bar a[aria-current="page"] { color: #fff; background: rgba(93, 228, 255, .14); }
  .mobile-bar a[aria-current="page"] svg { color: var(--holo); filter: drop-shadow(0 0 6px var(--holo)); }
  .mobile-bar .badge { position: absolute; top: 2px; right: 16%; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: #1a0f00; font: 700 9.5px/1 var(--f-display); }
  .mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .studio, .studio .verdict { grid-template-columns: 1fr; grid-column: auto; }
  .queue { max-height: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .queue > * { scroll-snap-align: start; }
  .deck-grid, .two, .two.wide-left { grid-template-columns: 1fr; }
  .gate { grid-template-columns: 1fr; align-content: start; padding-top: 28px; }
  .gate-brand { justify-items: center; text-align: center; }
  .gate-art { background-position: 50% 20%; }
  .gate-art::after { background: linear-gradient(0deg, rgba(5, 6, 10, .97) 32%, rgba(5, 6, 10, .55) 70%, rgba(5, 6, 10, .3)); }
}
@media (min-width: 1101px) { .mobile-head { display: none; } }
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topbar { margin-bottom: 14px; }
  .topbar .actions .btn:not(.keep) { display: none; }
  .clock { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat .value { font-size: 30px; }
  .monitor-grid { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lcard .lbody { padding: 10px; }
  .lcard .lactions .btn span.lbl { display: none; }
  .verdict-actions { grid-template-columns: 1fr; }
  .gate-card { padding: 22px; }
  .drawer-body { padding: 16px; }
  .keys { display: none; }
  .profile { grid-template-columns: 1fr; justify-items: start; }
  table.users, table.users tbody, table.users tr, table.users td { display: block; }
  table.users { min-width: 0; border-spacing: 0; }
  table.users thead { display: none; }
  table.users tr { margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 19, 31, .55); }
  table.users tr.me { background: rgba(93, 228, 255, .06); }
  table.users td, table.users td:first-child, table.users td:last-child, table.users tr.me td { border: 0; border-radius: 0; background: transparent; padding: 5px 0; }
  table.users td:nth-child(2), table.users td:nth-child(3), table.users td:nth-child(4) { display: inline-block; margin-right: 8px; }
  .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .deck-actions .btn.ghost { min-height: 34px; padding: 0 10px; font-size: 11.5px; }
}

/* ---------- 20. motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grid-floor { animation: none; }
  .mcard.is-live .thumb .scanline { display: none; }
}
