:root {
  --bg: #000;
  --surface: #0f0f11;
  --surface-2: #161618;
  --elevated: rgba(28, 28, 30, .62);
  --hairline: rgba(255, 255, 255, .09);
  --hairline-2: rgba(255, 255, 255, .14);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --blue: #2997ff;
  --blue-hover: #47a6ff;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --mint: #3ddc84;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --grad: linear-gradient(100deg, #3ddc84 0%, #2ee6b0 22%, #22d3ee 50%, #38bdf8 75%, #2997ff 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(41, 151, 255, .35); }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #000; }
.ambient .orb { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.ambient .o1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .34), rgba(34, 211, 238, 0) 70%);
  animation: drift1 28s var(--ease) infinite alternate; }
.ambient .o2 { width: 60vmax; height: 60vmax; right: -24vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(61, 220, 132, .22), rgba(61, 220, 132, 0) 70%);
  animation: drift2 34s var(--ease) infinite alternate; }
.ambient .o3 { width: 55vmax; height: 55vmax; left: 20vmax; bottom: -34vmax;
  background: radial-gradient(closest-side, rgba(41, 151, 255, .26), rgba(41, 151, 255, 0) 70%);
  animation: drift3 40s var(--ease) infinite alternate; }
.ambient .grid { position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  animation: gridpan 60s linear infinite; }
.ambient .streaks { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.ambient .streaks path { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 90 1400; animation: streak 9s linear infinite; }
.ambient .streaks path:nth-child(2) { animation-duration: 12s; animation-delay: -3s; }
.ambient .streaks path:nth-child(3) { animation-duration: 10s; animation-delay: -6s; }
.ambient .streaks path:nth-child(4) { animation-duration: 14s; animation-delay: -1s; }
.ambient .streaks path:nth-child(5) { animation-duration: 11s; animation-delay: -8s; }
.ambient .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.9), transparent 60%); }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 16vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-16vmax, -12vmax) scale(1.2); } }
@keyframes gridpan { to { background-position: 64px 64px; } }
@keyframes streak { from { stroke-dashoffset: 1490; } to { stroke-dashoffset: 0; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: 52px;
  background: rgba(22, 22, 23, .72); border-bottom: 1px solid var(--hairline);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav .in { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 26px; height: 26px; flex: none; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 2px 10px -2px rgba(34,211,238,.45); }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 13px; letter-spacing: -.01em; }
.nav .links a, .nav .links .who { color: rgba(245,245,247,.82); }
.nav .links a:hover { color: #fff; text-decoration: none; }
.nav .links form { margin: 0; display: inline; }
.nav .links button.textlink { font-size: 13px; color: rgba(245,245,247,.82); }
.nav .links .pill-btn { padding: 6px 14px; font-size: 13px; }

/* ---------- layout ---------- */
main { position: relative; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 460px; margin: 0 auto; padding: 72px 22px 96px; }
section { padding: 96px 0; }
.eyebrow { font-size: 19px; font-weight: 600; letter-spacing: .01em; margin: 0 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.headline { font-size: clamp(40px, 7.4vw, 88px); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; margin: 0; }
.headline .grad, .grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 12s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.subhead { font-size: clamp(19px, 2.3vw, 26px); line-height: 1.32; color: var(--text-2); font-weight: 500; letter-spacing: -.02em; margin: 22px auto 0; max-width: 720px; }
.h2 { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.04em; margin: 0; }
.h3 { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -.03em; margin: 0 0 8px; }
.lede { font-size: 21px; color: var(--text-2); line-height: 1.38; margin: 16px 0 0; letter-spacing: -.02em; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); font-size: 14px; }
.linkinfo { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; margin: 0 0 16px; font-size: 15px; }
.linkinfo dt { color: var(--text-3); }
.linkinfo dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.check { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 14px; margin: 0 0 16px; color: var(--text-2, var(--text)); }
.check input { margin-top: 3px; }
p { margin: 0 0 14px; }

/* ---------- buttons ---------- */
button { font: inherit; letter-spacing: inherit; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 24px; border-radius: 980px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 500; line-height: 1.18;
  transition: background .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.pill-btn:hover { background: var(--blue-hover); text-decoration: none; }
.pill-btn:active { transform: scale(.98); }
.pill-btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pill-btn.ghost:hover { background: rgba(41,151,255,.1); }
.pill-btn.light { background: #f5f5f7; color: #000; }
.pill-btn.light:hover { background: #fff; }
.pill-btn.big { padding: 15px 30px; font-size: 18px; }
.pill-btn.full { width: 100%; padding: 15px 24px; margin-top: 26px; }
.pill-btn.sm { padding: 7px 15px; font-size: 14px; }
.pill-btn.green { background: var(--green); color: #000; }
.pill-btn.green:hover { background: #4fe070; }
.pill-btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px rgba(255,69,58,.5); }
.pill-btn.danger:hover { background: rgba(255,69,58,.12); }
.pill-btn.quiet { background: rgba(255,255,255,.08); color: var(--text); }
.pill-btn.quiet:hover { background: rgba(255,255,255,.14); }
.chev { color: var(--blue); font-size: 19px; }
.chev::after { content: " ›"; }
.chev:hover { text-decoration: underline; }
.textlink { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; }
.textlink:hover { text-decoration: underline; }
.ctas { display: flex; gap: 18px 30px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- app icon ---------- */
.appicon { display: block; margin: 0 auto 28px; width: 120px; height: 120px; border-radius: 27px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 70px -12px rgba(34,211,238,.45), 0 10px 40px -10px rgba(61,220,132,.35);
  animation: rise 1s var(--ease) both, float 7s ease-in-out 1s infinite; }
.appicon.sm { width: 76px; height: 76px; border-radius: 17px; margin: 0 0 20px; animation: none; }
.appicon.md { width: 92px; height: 92px; border-radius: 21px; margin: 0 auto 22px; animation: rise .8s var(--ease) both; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero { padding: 112px 0 40px; text-align: center; }
.hero .headline { animation: rise 1s var(--ease) both; }
.hero .subhead { animation: rise 1s .12s var(--ease) both; }
.hero .ctas { animation: rise 1s .24s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.stage { margin: 72px auto 0; max-width: 900px; animation: rise 1.2s .36s var(--ease) both; }
.window { border-radius: 22px; background: linear-gradient(180deg, rgba(30,30,34,.85), rgba(14,14,16,.92));
  box-shadow: 0 0 0 1px var(--hairline-2), 0 40px 120px -20px rgba(34,211,238,.25), 0 30px 80px -30px rgba(61,220,132,.28);
  overflow: hidden; text-align: left; }
.window .bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--hairline); }
.window .bar i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3c; }
.window .bar span { margin-left: auto; margin-right: auto; font-size: 13px; color: var(--text-3); padding-right: 52px; }
.window .body { padding: 26px 28px 30px; }
.statusline { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.route-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 980px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--cyan); background: rgba(34,211,238,.1); box-shadow: inset 0 0 0 1px rgba(34,211,238,.3); }
.route-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.metric { display: flex; flex-direction: column; }
.metric b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.metric small { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.metric b.ok { color: var(--green); }
.chain { width: 100%; height: auto; margin-top: 22px; display: block; }
.chain .wire { stroke: rgba(255,255,255,.12); stroke-width: 2; fill: none; }
.chain .glow { stroke: url(#wireGrad); stroke-width: 2; fill: none; stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.chain .node { fill: #1c1c1e; stroke: var(--hairline-2); }
.chain .node.hub { stroke: rgba(34,211,238,.55); }
.chain text { font-family: var(--font); fill: var(--text); font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.chain text.sub { fill: var(--text-3); font-size: 12px; font-weight: 500; }
.chain .pkt { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.chain .pkt.b { fill: var(--mint); filter: drop-shadow(0 0 6px var(--mint)); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile { grid-column: span 2; position: relative; border-radius: 28px; padding: 34px 30px 32px; overflow: hidden;
  background: linear-gradient(180deg, rgba(28,28,30,.72), rgba(16,16,18,.72));
  box-shadow: inset 0 0 0 1px var(--hairline);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hairline-2), 0 24px 60px -30px rgba(41,151,255,.45); }
.tile.wide { grid-column: span 3; }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hairline); }
.tile .icon svg { width: 24px; height: 24px; }
.tile p { color: var(--text-2); font-size: 17px; margin: 0; }
.tile .big { font-size: 64px; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: step; }
.step { padding: 30px 28px; border-radius: 24px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--hairline); }
.step::before { counter-increment: step; content: counter(step); display: block; font-size: 52px; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--text-2); margin: 0; }

.band { text-align: center; padding: 120px 0 140px; }
.footer { border-top: 1px solid var(--hairline); padding: 22px 0 36px; font-size: 12px; color: var(--text-3); }
.footer .in { max-width: 1024px; margin: 0 auto; padding: 0 22px; display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- glass cards, forms ---------- */
.card { border-radius: 24px; padding: 30px; margin-bottom: 20px;
  background: var(--elevated); box-shadow: inset 0 0 0 1px var(--hairline), 0 30px 80px -40px rgba(0,0,0,.8);
  -webkit-backdrop-filter: saturate(160%) blur(24px); backdrop-filter: saturate(160%) blur(24px); }
.card h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 6px; }
.card .h2sub { color: var(--text-2); margin: 0 0 20px; }
.auth-title { font-size: 44px; font-weight: 700; letter-spacing: -.045em; line-height: 1.08; margin: 0 0 10px; text-align: center; }
.auth-sub { text-align: center; color: var(--text-2); font-size: 19px; margin: 0 0 34px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 7px 4px; }
.field input { width: 100%; height: 54px; padding: 0 18px; border-radius: 14px; font: inherit; font-size: 17px; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid var(--hairline-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(41,151,255,.25); background: rgba(255,255,255,.08); }
.hint { font-size: 13px; color: var(--text-3); margin: 7px 0 0 4px; }
.below { text-align: center; color: var(--text-2); font-size: 15px; margin-top: 24px; }
.below .faint { display: block; margin-top: 8px; }

.alert { border-radius: 16px; padding: 14px 18px; margin: 0 auto 22px; font-size: 15px; max-width: 1024px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: rise .5s var(--ease) both; }
.alert.err { background: rgba(255,69,58,.12); color: #ffb4ae; box-shadow: inset 0 0 0 1px rgba(255,69,58,.35); }
.alert.ok { background: rgba(48,209,88,.11); color: #a6f0b9; box-shadow: inset 0 0 0 1px rgba(48,209,88,.32); }
.alerts { padding: 22px 22px 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 980px; letter-spacing: .02em; text-transform: capitalize; vertical-align: middle; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending { color: var(--orange); background: rgba(255,159,10,.12); }
.pill.approved { color: var(--green); background: rgba(48,209,88,.12); }
.pill.rejected, .pill.revoked { color: var(--red); background: rgba(255,69,58,.12); }
.pill.admin { color: var(--cyan); background: rgba(34,211,238,.12); }
.pill.admin::before { display: none; }
.pill.live { text-transform: none; white-space: nowrap; }
.pill.live.relay { color: var(--cyan); background: rgba(34,211,238,.12); }
.pill.live.relay::before { box-shadow: 0 0 8px var(--cyan); animation: pulse 2s ease-in-out infinite; }
.pill.live.direct { color: var(--green); background: rgba(48,209,88,.12); }
.pill.live.idle { color: var(--text-2); background: rgba(255,255,255,.08); }
.pill.live.off { color: var(--text-3); background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-2); }
.pill.live.off::before { background: var(--text-3); }

/* ---------- signed-in home ---------- */
.dash-hero { padding: 88px 0 36px; text-align: center; }
.dash-hero .headline { font-size: clamp(40px, 6vw, 72px); }
.dl { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: stretch; }
.dl .card { margin: 0; }
.dl-main { position: relative; overflow: hidden; padding: 40px; }
.dl-main::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41,151,255,.35), transparent); pointer-events: none; }
.dl-main h2 { font-size: 32px; }
.dl-main .meta { color: var(--text-3); font-size: 14px; margin-top: 14px; }
ol.howto { list-style: none; padding: 0; margin: 0; counter-reset: h; }
ol.howto li { position: relative; padding: 0 0 18px 44px; color: var(--text-2); font-size: 16px; }
ol.howto li:last-child { padding-bottom: 0; }
ol.howto li::before { counter-increment: h; content: counter(h); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--hairline-2); }
ol.howto b { color: var(--text); font-weight: 600; }
.section-title { font-size: 28px; font-weight: 700; letter-spacing: -.035em; margin: 56px 0 18px; }

/* ---------- tables ---------- */
.list { width: 100%; border-collapse: collapse; font-size: 15px; }
.list th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; padding: 0 14px 12px 0; }
.list td { padding: 16px 14px 16px 0; border-top: 1px solid var(--hairline); vertical-align: top; }
.list tr:hover td { background: rgba(255,255,255,.015); }
.list td form { display: inline; margin: 0; }
.list .who { font-weight: 600; font-size: 16px; }
.list .note { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; margin-top: 2px; }
.list .when { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.empty { color: var(--text-3); padding: 8px 0 2px; }

details.fold summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--text-2); transition: transform .3s var(--ease); }
details.fold[open] summary::after { transform: rotate(45deg); }
details.fold form { max-width: 420px; margin-top: 8px; }

@media (max-width: 860px) {
  .tile, .tile.wide { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 76px 0 24px; }
  .nav .links { gap: 16px; }
  .nav .links .who { display: none; }
  .window .body { padding: 20px 18px 22px; }
  .metric b { font-size: 26px; }
  .card, .dl-main { padding: 24px 20px; }
  .auth-title { font-size: 36px; }
  .list.acc thead { display: none; }
  .list.acc tr { display: block; border-top: 1px solid var(--hairline); padding: 14px 0; }
  .list.acc td { display: block; border: 0; padding: 3px 0; }
  .list.acc .actions { justify-content: flex-start; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chain .pkt { display: none; }
}

/* Formerly inline style attributes: the CSP allows no inline styles. */
th.right { text-align: right; }
.when.stack { margin: 0 0 3px; }
.card.last { margin-bottom: 96px; }
.who.mono.small { font-size: 15px; }
b.strong { color: var(--text); }
svg.link-art { display: block; margin: 4px auto 18px; }
.alert.left { text-align: left; }

/* Reports from the app (2.3+): something to act on, and number columns. */
.bad, .list .when.bad { color: var(--red); }
.list.nums td b { font-weight: 600; }

/* ---------- admin dashboard: compact header, tabs, two-column overview ---------- */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 44px 0 24px; }
.admin-head .eyebrow { font-size: 15px; margin-bottom: 4px; }
.admin-title { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi { min-width: 108px; padding: 12px 16px; border-radius: 16px; color: var(--text); background: var(--elevated); box-shadow: inset 0 0 0 1px var(--hairline);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: box-shadow .2s var(--ease); }
.kpi:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--hairline-2); }
.kpi b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.kpi span { font-size: 12px; color: var(--text-3); }
.kpi.hot b { color: var(--orange); }

.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 14px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hairline); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 10px;
  color: var(--text-2); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.tabs a:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.tabs a.on { color: var(--text); background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.badge { min-width: 20px; padding: 1px 7px; border-radius: 980px; font-size: 12px; font-weight: 600; text-align: center; color: var(--text-2); background: rgba(255,255,255,.1); }
.badge.hot { color: #000; background: var(--orange); }

.admin .card { padding: 24px 26px; margin-bottom: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.card .card-head h2 { font-size: 20px; margin: 0; }
.card .h2sub.small { font-size: 14px; margin: -6px 0 14px; }
.chev.small { font-size: 14px; }
.board { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.board .card { margin: 0; }
.board + .card { margin-top: 18px; }
.admin .list td { padding: 12px 14px 12px 0; }
.admin .list .who { font-size: 15px; }
.admin-end { height: 78px; }

ul.todo { list-style: none; margin: 0; padding: 0; }
ul.todo li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
ul.todo li:first-child { border-top: 0; padding-top: 2px; }
ul.todo .note { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
ul.todo .when { color: var(--text-3); font-size: 13px; margin-top: 2px; }
ul.todo .actions { flex-wrap: nowrap; }

details.menu { position: relative; display: inline-block; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu summary::after { content: "▾"; font-size: 10px; opacity: .7; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px; padding: 6px; border-radius: 14px;
  background: rgba(30,30,32,.97); box-shadow: inset 0 0 0 1px var(--hairline-2), 0 20px 50px -10px rgba(0,0,0,.8); }
.list .menu-list form { display: block; }
.menu-list button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font-size: 14px; cursor: pointer; }
.menu-list button:hover { background: rgba(255,255,255,.08); }
.menu-list button.danger { color: var(--red); }

@media (max-width: 860px) {
  .board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .admin-head { padding-top: 28px; }
  .admin-title { font-size: 32px; }
  .kpis { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
  .admin .card { padding: 20px 18px; }
  .tabs a { padding: 8px 12px; font-size: 14px; }
  .list.acc .menu-list { left: 0; right: auto; }
  .list.acc td:first-child { min-width: 0; }
}
.list.acc .actions { flex-wrap: nowrap; }
.list.acc td:first-child { min-width: 210px; }
.tscroll { overflow-x: auto; }
.tscroll .list { min-width: 520px; }
.tscroll .list td:last-child, .tscroll .list th:last-child { padding-right: 0; }
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .kpi { min-width: 0; padding: 10px 10px; border-radius: 13px; }
  .kpi b { font-size: 21px; }
  .kpi span { font-size: 11px; }
  .tabs a { padding: 8px 10px; gap: 6px; }
  ul.todo li { flex-wrap: wrap; }
  .list.acc td:nth-child(2), .list.acc td:nth-child(3) { display: inline-block; margin: 6px 6px 4px 0; }
}
