/* Solar Cloud — landing and account pages (same look as the app) */
:root {
  --bg: #0b0f1a;
  --bg2: #10162a;
  --panel: rgba(22, 28, 45, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf5;
  --muted: #8b93a7;
  --accent: #f5a524;
  --accent-2: #ff6b3d;
  --ink: 255, 255, 255;
  --field: #0d1220;
  --ok: #34d399;
  --err: #ffb49c;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg2: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.1);
  --text: #141b2d;
  --muted: #5d6779;
  --accent: #e8900c;
  --ink: 15, 23, 42;
  --field: #ffffff;
  --ok: #059669;
  --err: #c2410c;
  --shadow: 0 24px 60px rgba(15, 23, 42, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden elements stay hidden, whatever their display style */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
code { font-family: "JetBrains Mono", monospace; font-size: .88em; padding: 1px 5px; border-radius: 5px; background: rgba(var(--ink), .07); }
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% -5%, rgba(245, 165, 36, .22), transparent 60%),
    radial-gradient(800px 600px at 105% 15%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(700px 700px at 50% 115%, rgba(232, 121, 249, .10), transparent 60%);
}
:root[data-theme="light"] .glow { opacity: .55; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font: 600 .95rem Inter, sans-serif; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn.primary { color: #1a1204; background: linear-gradient(135deg, #ffd27a, var(--accent) 45%, var(--accent-2)); box-shadow: 0 8px 28px rgba(245, 165, 36, .35); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(245, 165, 36, .5); }
.btn.ghost { color: var(--text); background: rgba(var(--ink), .05); border-color: var(--border); }
.btn.ghost:hover { border-color: rgba(var(--ink), .25); }
.btn.big { padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* navigation */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2)); padding-top: calc(14px + env(safe-area-inset-top, 0px));
  backdrop-filter: blur(14px); background: rgba(11, 15, 26, .55); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
:root[data-theme="light"] .nav { background: rgba(244, 246, 251, .7); }
.nav.scrolled { border-bottom-color: var(--border); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.logo b { background: linear-gradient(90deg, #ffd27a, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.small { font-size: .95rem; }
.sun {
  width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 35% 35%, #fff3c4, var(--accent) 55%, var(--accent-2));
  box-shadow: 0 0 22px rgba(245, 165, 36, .6);
}
.sun::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed rgba(245, 165, 36, .55); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .who { color: var(--muted); font-size: .9rem; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 72px 24px 96px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(245, 165, 36, .1); border: 1px solid rgba(245, 165, 36, .35); color: var(--accent); font-size: .85rem; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 18px; font-weight: 800; }
.grad { background: linear-gradient(90deg, #ffd27a, var(--accent) 40%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--muted); font-size: .92rem; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 7px; }

.hero-demo { position: relative; }
.demo-card {
  position: relative; border-radius: 20px; border: 1px solid var(--border); background: var(--panel);
  box-shadow: var(--shadow); backdrop-filter: blur(12px); overflow: hidden;
}
.demo-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .85rem; }
.demo-dots { display: inline-flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--ink), .15); }
.demo-dots i:first-child { background: #f87171; } .demo-dots i:nth-child(2) { background: #fbbf24; } .demo-dots i:nth-child(3) { background: #4ade80; }
.demo-title { font-weight: 600; }
.demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.demo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 4px; }
.tile { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(var(--ink), .03); min-width: 0; }
.tile span { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.tile span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.tile b { display: block; margin-top: 2px; font: 700 1.45rem "JetBrains Mono", monospace; color: var(--c); letter-spacing: -.02em; white-space: nowrap; }
.tile small { font-size: .7rem; margin-left: 3px; opacity: .8; }
.tile em { font-style: normal; }
.demo-chart { position: relative; height: 250px; padding: 6px 10px 4px; }
.demo-chart.tall { height: 330px; }
.demo-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px 14px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.demo-foot b { color: var(--text); font-family: "JetBrains Mono", monospace; margin-left: 4px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg2); box-shadow: var(--shadow); font-size: .82rem; animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .85rem; }
.float-card small { color: var(--muted); }
.fc-ico { font-size: 1.3rem; }
.fc1 { left: -28px; bottom: -58px; }
.fc2 { right: -18px; bottom: -58px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* numbers band */
.band {
  max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 18px; background: var(--panel); overflow: hidden;
}
.band > div { padding: 22px 24px; display: grid; gap: 2px; }
.band > div + div { border-left: 1px solid var(--border); }
.band b { font: 700 2.1rem "JetBrains Mono", monospace; letter-spacing: -.03em; background: linear-gradient(90deg, #ffd27a, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band span { color: var(--muted); font-size: .9rem; }

/* sections */
.section { max-width: 1180px; margin: 0 auto; padding: 96px 24px 0; }
.section.narrow { max-width: 820px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.kicker { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; margin: 10px 0 14px; font-weight: 800; }
.section-head p, .split-text p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(245, 165, 36, .35); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.f-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.f-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--text); }
.checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #1a1204; background: var(--accent); }
.demo-card.slim .demo-top { justify-content: center; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 14px;
  font: 800 1.1rem "JetBrains Mono", monospace; color: #1a1204; background: linear-gradient(135deg, #ffd27a, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(245, 165, 36, .35);
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* video tour */
.watch-btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: inherit; }
.play-ico { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--accent); }
.tour { max-width: 980px; margin: 0 auto; }
.tour-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #05070d;
  border: 1px solid var(--border); box-shadow: var(--shadow), 0 0 80px rgba(245, 165, 36, .12); }
.tour-frame video, .tour-dialog-frame video { display: block; width: 100%; height: 100%; background: #000; }
.tour-facade { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.tour-facade img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); transition: filter .25s; }
.tour-facade:hover img, .tour-facade:focus-visible img { filter: brightness(.95); }
.tour-play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd27a, var(--accent) 45%, var(--accent-2)); box-shadow: 0 12px 40px rgba(245, 165, 36, .55);
  transition: transform .2s; }
.tour-play::after { content: ""; position: absolute; left: 36px; top: 28px; border-style: solid; border-width: 18px 0 18px 28px;
  border-color: transparent transparent transparent #1a1204; }
.tour-facade:hover .tour-play, .tour-facade:focus-visible .tour-play { transform: scale(1.08); }
.tour-len { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 8px; background: rgba(5, 7, 13, .78);
  color: #fff; font: 600 .85rem "JetBrains Mono", monospace; }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.chapters button { border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 999px;
  padding: 7px 13px; font: 500 .88rem Inter, sans-serif; cursor: pointer; transition: border-color .2s; }
.chapters button:hover { border-color: rgba(245, 165, 36, .6); }
.chapters button b { color: var(--accent); font: 700 .8rem "JetBrains Mono", monospace; margin-right: 4px; }
.tour-tip { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .85rem; }
.transcript { margin-top: 18px; }
.transcript-text { padding: 0 0 8px; }
.transcript-text h4 { margin: 14px 0 4px; font-size: .95rem; }
.transcript-text p { margin: 0 0 8px; color: var(--muted); }
/* as large as the window allows (16:9, room for the close button above), up to the video's own 1920 x 1080 */
.tour-dialog { width: min(96vw, calc((100vh - 110px) * 16 / 9), 1920px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.tour-dialog::backdrop { background: rgba(5, 8, 15, .82); backdrop-filter: blur(4px); }
.tour-dialog-frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.tour-close { position: absolute; right: 0; top: -46px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(20, 26, 40, .85); color: #fff; font-size: 1rem; cursor: pointer; }
.tour-close:hover { border-color: var(--accent); }
/* a window wider than 16:9 (the usual desktop case): the video uses almost the full height, the close button sits beside it */
@media (min-aspect-ratio: 16/9) {
  .tour-dialog { width: min(calc(100vw - 130px), calc((100vh - 24px) * 16 / 9), 1920px); }
  .tour-close { top: 0; right: -52px; }
}
@media (max-width: 720px) {
  .tour-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .tour-play::after { left: 27px; top: 21px; border-width: 13px 0 13px 20px; }
  .chapters button { padding: 6px 10px; font-size: .8rem; }
}

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.final {
  max-width: 1180px; margin: 110px auto 0; padding: 56px 24px; text-align: center; border-radius: 24px;
  border: 1px solid rgba(245, 165, 36, .35);
  background: radial-gradient(600px 240px at 50% 0%, rgba(245, 165, 36, .2), transparent), var(--panel);
}
.final h2 { margin-top: 0; }
.final p { color: var(--muted); margin: 0 0 24px; font-size: 1.05rem; }
.foot {
  max-width: 1180px; margin: 0 auto; padding: 40px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: .88rem;
}
.foot a { color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .sun::after, .float-card, .dot { animation: none; } }

/* account pages */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 32px 18px 60px; }
.auth-card {
  width: min(440px, 100%); padding: 30px 28px; border-radius: 22px; border: 1px solid var(--border);
  background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.auth-card.wide { width: min(620px, 100%); }
.auth-card h1 { font-size: 1.8rem; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(var(--ink), .05); margin-bottom: 22px; }
.auth-tabs a { text-align: center; padding: 8px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; }
.auth-tabs a.active { background: rgba(245, 165, 36, .16); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(245, 165, 36, .45); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--field);
  color: var(--text); font: 1rem Inter, sans-serif;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-card .btn.primary { width: 100%; margin-top: 6px; }
.msg { margin: 14px 0 0; font-size: .9rem; min-height: 1.2em; }
.msg.error { color: var(--err); }
.msg.ok { color: var(--ok); }
.auth-alt { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.auth-alt a { color: var(--accent); text-decoration: none; font-weight: 600; }
.acct-section { padding: 20px 0; border-top: 1px solid var(--border); }
.acct-section:first-of-type { border-top: none; padding-top: 4px; }
.acct-section h2 { font-size: 1.1rem; margin: 0 0 12px; letter-spacing: -.01em; }
.acct-section p { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.acct-row .field { flex: 1 1 200px; margin-bottom: 0; }
.acct-row .btn { width: auto !important; margin-top: 0 !important; }
.btn.danger { color: var(--err); border-color: rgba(255, 107, 61, .5); background: rgba(255, 107, 61, .1); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #1a1204; background: var(--accent); margin-left: 8px; vertical-align: middle; }

/* responsive */
@media (max-width: 1020px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-top: 48px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc1 { left: 8px; bottom: -56px; } .fc2 { right: 8px; bottom: -56px; }
}
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-cta .btn { padding: 8px 12px; font-size: .88rem; }
  .band { grid-template-columns: 1fr 1fr; margin: 0 16px; }
  .band > div:nth-child(3) { border-left: none; }
  .band > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .features, .steps { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 72px; }
  .demo-tiles { gap: 6px; padding: 10px 10px 2px; }
  .tile { padding: 8px; } .tile b { font-size: 1.05rem; }
  .demo-chart { height: 210px; }
  .float-card { display: none; }
  .final { margin: 80px 16px 0; padding: 40px 20px; }
}

/* administration */
.nav-title { color: var(--muted); font-weight: 600; font-size: .95rem; padding-left: 14px; border-left: 1px solid var(--border); }
.admin { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; display: grid; gap: 18px; }
.admin-card { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.admin-card h2 { font-size: 1.2rem; margin: 0 0 16px; }
.admin-card .hint { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.admin-card .count { color: var(--muted); font-weight: 500; font-size: .95rem; margin-left: 6px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, .6fr); gap: 16px 20px; align-items: start; }
.admin-actions { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.admin-actions .msg { margin: 0; }
.seg { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
.seg legend { padding: 0 6px; color: var(--muted); font-size: .85rem; }
.seg label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: .92rem; }
.seg label span { color: var(--muted); } .seg label b { color: var(--text); margin-right: 6px; }
.seg input { accent-color: var(--accent); }
.inv-new { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245, 165, 36, .4); background: rgba(245, 165, 36, .07); }
.inv-new p { margin: 0 0 8px; font-size: .9rem; }
.inv-new code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 8px 10px; }
.inv-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.inv-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: rgba(var(--ink), .03); font-size: .9rem; }
.inv-list li span:first-child { flex: 1; min-width: 0; }
.inv-list small { color: var(--muted); margin-left: 6px; }
.inv-list .note { color: var(--muted); }
.inv-state { color: var(--ok); font-size: .82rem; } .inv-state.used { color: var(--muted); }
.btn.small { padding: 6px 10px; font-size: .8rem; border-radius: 9px; }
.table-wrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: collapse; font-size: .88rem; }
.users th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.users td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.users tr.disabled td { opacity: .55; }
.users .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 260px; }
.users .you { font-size: .7rem; color: var(--accent); border: 1px solid rgba(245, 165, 36, .5); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.users .off { font-size: .72rem; color: var(--err); margin-left: 4px; }
.usage { display: grid; gap: 4px; min-width: 120px; font-family: "JetBrains Mono", monospace; font-size: .78rem; }
.usage i { display: block; height: 5px; border-radius: 3px; background: rgba(var(--ink), .1); position: relative; overflow: hidden; }
.usage i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--ok); border-radius: 3px; }
.usage i.full::after { background: var(--err); }
.inline-quota { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); }
.inline-quota input { width: 90px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--field); color: var(--text); }
.btn.danger.armed { background: rgba(255, 107, 61, .25); }
.auth-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: .88rem; border: 1px solid rgba(245, 165, 36, .4); background: rgba(245, 165, 36, .08); }
@media (max-width: 820px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } .nav-title { display: none; } }
