/* Aegis Vault — website. Same tokens as the app. No external fonts or trackers. */
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-024F; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-024F; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --bg: #0c1120; --bg-2: #0f1526; --card: #151d32; --raised: #1d2741;
  --line: rgba(148,168,214,.12); --line-2: rgba(148,168,214,.22);
  --text: #e7ebf3; --muted: #9aa4b9; --faint: #67728a;
  --accent: #d4b072; --accent-ink: #1b1508; --accent-soft: rgba(212,176,114,.12);
  --ok: #6cc79a; --danger: #e8707a; --warn: #e3b55c;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --wrap: 1120px; --gut: 24px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.65 'Manrope', 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 6px 12px; z-index: 100; }

/* ── Header ───────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(12,17,32,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.nav a:hover, .nav a[aria-current=page] { color: var(--text); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 15px;
  border: 1px solid var(--line-2); background: var(--raised); color: var(--text); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); width: 40px; height: 40px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; background: radial-gradient(900px 480px at 78% 10%, rgba(212,176,114,.07), transparent 65%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; max-width: 20ch; }
.hero .lede { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 46ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.meta { margin-top: 18px; color: var(--faint); font-size: 13.5px; }
.shot { position: relative; border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: var(--bg-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 8px rgba(212,176,114,.05); }
.shot img { width: 100%; height: auto; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* What you see vs what we see */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.compare > div { padding: 26px 28px 28px; }
.compare > div + div { border-left: 1px solid var(--line-2); background: #0a0e1a; }
.compare h3 { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.compare h3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.compare > div + div h3 i { background: var(--accent); }
.plain { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plain li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; border-radius: 9px; background: var(--card); font-size: 15px; }
.plain li span { font-family: var(--mono); font-size: 13.5px; color: var(--accent); }
.cipher { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #6f7b95; word-break: break-all; height: 172px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.compare-foot { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 70ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 52px; counter-reset: s; }
.steps li { list-style: none; padding: 0 28px 0 0; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 44px; right: 12px; height: 1px; background: var(--line-2); }
.steps b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.feature svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 15px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.gallery figure { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.gallery figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); background: var(--card); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; }
.plan { border: 1px solid var(--line-2); border-radius: 16px; padding: 28px; background: var(--card); display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.plan h3 { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.plan h3 small { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 20px; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.closed { padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); max-width: 680px; }

/* FAQ */
.faq { max-width: 780px; display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 27px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }
.faq details > div p + p { margin-top: 10px; }

/* Download band */
.band { border: 1px solid var(--line-2); border-radius: 18px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: radial-gradient(600px 200px at 0% 0%, rgba(212,176,114,.08), transparent 70%), var(--card); }
.band h2 { font-size: 28px; letter-spacing: -.02em; }
.band p { color: var(--muted); margin-top: 6px; }

/* Article pages (download, buy, terms, privacy, faq) */
.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.025em; line-height: 1.15; }
.page .intro { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 60ch; }
.prose { max-width: 72ch; margin-top: 36px; }
.prose h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 10px 0 0 22px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.draft { margin-top: 24px; padding: 12px 16px; border-left: 3px solid var(--warn); background: rgba(227,181,92,.07); color: var(--muted); font-size: 14px; max-width: 72ch; }

.dl-card { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; max-width: 920px; }
.dl-card > div { padding: 28px; }
.dl-card > div + div { border-left: 1px solid var(--line-2); background: var(--bg-2); }
.dl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; margin-top: 18px; }
.dl-card dt { color: var(--faint); }
.dl-card dd { overflow-wrap: anywhere; }
.dl-card .hash { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.howto { list-style: none; counter-reset: h; display: flex; flex-direction: column; gap: 16px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--muted); font-size: 15px; }
.howto li::before { content: counter(h); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.howto b { color: var(--text); font-weight: 600; }

/* Buy */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin-top: 36px; align-items: start; max-width: 1000px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { position: relative; border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 18px 16px; cursor: pointer; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.choice input { position: absolute; opacity: 0; }
.choice b { font-size: 16px; }
.choice .p { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.choice small { color: var(--muted); font-size: 13.5px; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; font-weight: 600; font-size: 14px; color: var(--muted); }
.field input { height: 48px; padding: 0 14px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 16px; outline: none; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small { font-weight: 400; color: var(--faint); }
.agree { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: 20px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.summary { border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; background: var(--card); position: sticky; top: 88px; }
.summary h2 { font-size: 16px; margin-bottom: 14px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14.5px; color: var(--muted); }
.summary dd { color: var(--text); text-align: right; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; color: var(--text); font-size: 17px; }
#paypal-buttons { margin-top: 20px; min-height: 52px; }
.err { color: var(--danger); font-size: 14px; margin-top: 12px; }
.err:empty { display: none; }
.testmode { margin-bottom: 14px; padding: 8px 12px; border-radius: 8px; background: rgba(227,181,92,.12); color: var(--warn); font-size: 13px; font-weight: 700; }
.success { margin-top: 36px; max-width: 640px; border: 1px solid var(--ok); border-radius: 16px; padding: 32px; background: rgba(108,199,154,.05); }
.success h2 { font-size: 24px; }
.keybox { margin: 18px 0 8px; font-family: var(--mono); font-size: clamp(16px, 2.6vw, 22px); letter-spacing: .05em; padding: 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); text-align: center; user-select: all; overflow-wrap: anywhere; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 18ch; }
  .compare, .gallery, .dl-card, .buy { grid-template-columns: 1fr; }
  .compare > div + div, .dl-card > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li::after { display: none; }
  .summary { position: static; }
}
@media (max-width: 720px) {
  :root { --gut: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 44px 0 24px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; }
  .nav .btn { margin-top: 8px; }
  .features, .plans, .choose { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 28px; }
  .compare > div { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.gap-top { margin-top: 28px; }

/* Visitor counter (footer) */
footer .visits { flex-basis: 100%; display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
footer .visits svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
footer .visits b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
footer .visits[hidden] { display: none; }

/* Demo video (front page) */
.demo { margin-top: 56px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0b1020; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1172; background: #0b1020; }
.demo figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); background: var(--card); }
.demo figcaption b { color: var(--text); font-weight: 600; }

/* Gallery: keep the picture's own proportions (the height attribute must never stretch it) */
.gallery img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }

/* ── Admin padlock in the menu ────────────────────────────────────────── */
.nav .nav-lock { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); }
.nav .nav-lock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav .nav-lock:hover, .nav .nav-lock[aria-current=page] { color: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) { .nav .nav-lock { width: auto; height: auto; border: 0; justify-content: start; padding: 12px 0; } }

/* ── Admin portal ─────────────────────────────────────────────────────── */
.admin { padding: 40px 0 80px; min-height: 70vh; }
.admin h1 { font-size: 28px; letter-spacing: -.02em; }
.admin h2 { font-size: 15px; margin-bottom: 14px; }
.admin h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 22px 0 8px; }
.admin input, .admin select { font: inherit; font-size: 14.5px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; height: 40px; padding: 0 12px; }
.admin input:focus, .admin select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin code, .admin .mono { font-family: var(--mono); font-size: 13px; }
.adm-small { color: var(--faint); font-size: 13px; margin-top: 10px; }
.adm-err { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 8px; }
.adm-login { display: grid; place-items: center; padding: 30px 0; }
.adm-login-card { width: 100%; max-width: 420px; padding: 34px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); text-align: center; }
.adm-lock { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.adm-lock svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.adm-login-card p { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.adm-login-card form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.adm-login-card label { font-size: 13px; font-weight: 600; color: var(--muted); }
.adm-login-card input { width: 100%; font-family: var(--mono); }
.adm-login-card .btn { height: 44px; }
.adm-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.adm-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); margin-right: auto; }
.adm-tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 7px 16px; cursor: pointer; }
.adm-tabs button[aria-selected=true] { background: var(--raised); color: var(--text); }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.adm-card { padding: 16px 18px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.adm-card span { font-size: 13px; color: var(--muted); }
.adm-card b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adm-card small { font-size: 12.5px; color: var(--faint); }
.adm-grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.adm-box { padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.adm-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; border-bottom: 1px solid var(--line-2); }
.adm-chart .bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.adm-chart .bar i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .85; }
.adm-chart .bar:hover i { opacity: 1; }
.adm-chart .bar i.zero { background: var(--line-2); }
.adm-login[hidden], .adm-app[hidden], .adm-pane[hidden], .adm-create[hidden] { display: none; }
.adm-err:empty { min-height: 0; margin: 0; }
.adm-list { list-style: none; display: flex; flex-direction: column; }
.adm-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.adm-list li:first-child { border-top: 0; }
.adm-list small { display: block; color: var(--faint); font-size: 12.5px; }
.adm-list .r { text-align: right; white-space: nowrap; }
.adm-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-toolbar input { flex: 1; min-width: 220px; }
.adm-create { margin-bottom: 16px; }
.adm-fields { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: 12px; }
.adm-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.adm-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.adm-keys { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.adm-keys p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.adm-key { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-top: 6px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); }
.adm-key code { flex: 1; color: var(--accent); }
.adm-key.big { margin: 12px 0 4px; } .adm-key.big code { font-size: 15px; }
.adm-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.adm-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.adm-table td small { display: block; color: var(--faint); font-size: 12.5px; }
.adm-table tr[data-key] { cursor: pointer; }
.adm-table tr[data-key]:hover td, .adm-table tr[data-key]:focus td { background: var(--raised); outline: none; }
.adm-table td.mono { white-space: nowrap; color: var(--accent); }
.adm-empty { text-align: center; color: var(--faint); padding: 30px !important; }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.st-active { background: rgba(108,199,154,.14); color: var(--ok); }
.st-unused { background: var(--accent-soft); color: var(--accent); }
.st-expired { background: rgba(227,181,92,.14); color: var(--warn); }
.st-revoked { background: rgba(232,112,122,.14); color: var(--danger); }
.adm-drawer { position: fixed; inset: 0; z-index: 50; background: rgba(5,8,16,.6); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; }
.adm-drawer[hidden] { display: none; }
.adm-drawer-card { position: relative; width: min(520px, 100%); height: 100%; overflow-y: auto; padding: 28px 28px 40px; background: var(--bg-2); border-left: 1px solid var(--line-2); }
.adm-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.adm-dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; margin-top: 14px; }
.adm-dl dt { color: var(--faint); } .adm-dl dd { overflow-wrap: anywhere; }
.adm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-row input[type=text] { flex: 1; min-width: 180px; }
.adm-row input[type=number] { width: 80px; }
.adm-row label.inline { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.adm-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 14px); opacity: 0; z-index: 60; padding: 10px 18px; border-radius: 20px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; transition: opacity .2s, transform .2s; pointer-events: none; }
.adm-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .adm-grid2 { grid-template-columns: 1fr; } .adm-fields { grid-template-columns: 1fr 1fr; } .adm-fields .wide { grid-column: 1 / -1; } }
.page.admin { padding-top: 36px; }
