/* Satleo / Leo-Intel: design system for the sign-in pages and the admin console.
   Brand: #B2058C intelligence, #FF4E00 thermal, #F8C031 insight, on #01001A; electric cyan as the AI accent
   (the same cyan as the Leo-Intel map page). Glass surfaces over a slow aurora. */

:root {
  --bg: #01001A;
  --surface: rgba(16, 14, 52, 0.62);
  --solid: #0d0b33;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #F3F4FF;
  --text-2: #C2C5E6;
  --text-3: #8489B4;
  --magenta-soft: #F04FC6;
  --cyan: #22E4FF;
  --orange: #FF4E00;
  --gold: #F8C031;
  --ok: #34F5B0;
  --bad: #FF5D7A;
  --thermal: linear-gradient(120deg, #B2058C 0%, #E5283F 42%, #FF4E00 68%, #F8C031 100%);
  --ai: linear-gradient(120deg, #22E4FF 0%, #8B5CF6 45%, #F04FC6 75%, #FF4E00 100%);
  --edge: linear-gradient(135deg, rgba(34,228,255,.55), rgba(139,92,246,.35) 35%, rgba(240,79,198,.45) 70%, rgba(255,78,0,.5));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  --ring: 0 0 0 3px rgba(34, 228, 255, 0.28), 0 0 22px -2px rgba(240, 79, 198, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; position: relative; overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-xs); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 16px; }
p { margin: 0; }
b { font-weight: 650; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }

/* ---------- the aurora behind every page ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: #B2058C; }
.aurora i:nth-child(2) { width: 42vw; height: 42vw; right: -10vw; top: -8vw; background: #5B2BE0; animation-duration: 32s;
  animation-delay: -8s; }
.aurora i:nth-child(3) { width: 38vw; height: 38vw; right: 8vw; bottom: -20vw; background: #FF4E00; opacity: .35;
  animation-duration: 36s; animation-delay: -14s; }
.aurora i:nth-child(4) { width: 30vw; height: 30vw; left: 18vw; bottom: -16vw; background: #0BB8D6; opacity: .32;
  animation-duration: 30s; animation-delay: -4s; }
.aurora::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 26px 26px;
  mask-image: radial-gradient(90% 80% at 50% 40%, #000 0%, transparent 85%); opacity: .5; }
.aurora::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(1,0,26,.75) 100%); }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.95); }
}

/* glass: a translucent panel with a glowing gradient edge */
.glass { position: relative; border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.07), transparent 45%),
              var(--surface);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--shadow); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.04) 40%, rgba(255,255,255,.03) 60%, rgba(240,79,198,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
/* the lit edge turns slowly: a ring of the AI colours */
@property --edge-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.glass.lit::before { padding: 1.5px; animation: edge-turn 7s linear infinite;
  background: conic-gradient(from var(--edge-a), #22E4FF, #8B5CF6, #F04FC6, #FF4E00, #F8C031, #22E4FF); }
.glass.lit { box-shadow: var(--shadow), 0 0 50px -22px rgba(139,92,246,.9); }
@keyframes edge-turn { to { --edge-a: 360deg; } }

/* pages open with their panels rising in, one after another */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.main .page-head, .main .stats .glass, .main .card, .main .items .glass, .main .tabs, .main .filters, .auth-card,
.auth-pitch > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.main .stats .glass:nth-child(2) { animation-delay: .06s; } .main .stats .glass:nth-child(3) { animation-delay: .12s; }
.main .stats .glass:nth-child(4) { animation-delay: .18s; } .main .stats .glass:nth-child(5) { animation-delay: .24s; }
.main .stats .glass:nth-child(6) { animation-delay: .3s; }
.main .card { animation-delay: .2s; }
.main .items .glass:nth-child(1) { animation-delay: .2s; }
.main .items .glass:nth-child(2) { animation-delay: .27s; } .main .items .glass:nth-child(3) { animation-delay: .34s; }
.main .items .glass:nth-child(n+4) { animation-delay: .4s; }
.auth-pitch > :nth-child(2) { animation-delay: .08s; } .auth-pitch > :nth-child(3) { animation-delay: .16s; }
.auth-pitch > :nth-child(4) { animation-delay: .24s; } .auth-pitch > :nth-child(5) { animation-delay: .32s; }
.auth-card { animation-delay: .15s; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 600 14px/1 var(--font); color: var(--text); background: rgba(255,255,255,.06); cursor: pointer;
  white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .2s, transform .06s, opacity .2s;
  text-decoration: none !important;
}
.btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { border: 0; color: #fff; background: var(--thermal); background-size: 160% 100%;
  box-shadow: 0 10px 34px -10px rgba(255,78,0,.7), 0 0 0 1px rgba(255,255,255,.12) inset; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
  animation: sheen 4.5s ease-in-out infinite; }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 14px 44px -10px rgba(240,79,198,.8), 0 0 0 1px rgba(255,255,255,.2) inset; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn.ghost { background: rgba(255,255,255,.03); color: var(--text-2); }
.btn.ghost:hover { color: var(--text); border-color: rgba(34,228,255,.45); box-shadow: 0 0 18px -6px rgba(34,228,255,.6); }
.btn.approve { background: rgba(52,245,176,.12); border-color: rgba(52,245,176,.4); color: #b7ffe4; }
.btn.approve:hover { background: rgba(52,245,176,.2); box-shadow: 0 0 22px -6px rgba(52,245,176,.75); }
.btn.danger { background: rgba(255,93,122,.1); border-color: rgba(255,93,122,.38); color: #ffc0cc; }
.btn.danger:hover { background: rgba(255,93,122,.18); box-shadow: 0 0 22px -6px rgba(255,93,122,.7); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: var(--radius-xs); }
.btn.block { width: 100%; height: 48px; font-size: 15px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span, .field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 12.5px; color: var(--text-3); }
.input, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: rgba(4, 3, 26, .55); color: var(--text); font: 14.5px var(--font);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: rgba(255,255,255,.26); }
.input:focus, .select:focus { outline: none; border-color: rgba(34,228,255,.7); background: rgba(4, 3, 26, .75);
  box-shadow: var(--ring); }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322E4FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.select option { background: var(--solid); }
.select.sm { height: 32px; font-size: 13px; padding-left: 10px; border-radius: var(--radius-xs); width: auto; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 7px; top: 7px; width: 32px; height: 32px; border: 0; border-radius: var(--radius-xs);
  background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--cyan); background: rgba(34,228,255,.08); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.check input { width: 17px; height: 17px; accent-color: var(--magenta-soft); cursor: pointer; }

/* ---------- alerts, badges, chips ---------- */
.alert { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid; font-size: 14px; margin-bottom: 18px; backdrop-filter: blur(12px); }
.alert .icon { margin-top: 1px; }
.alert.ok { background: rgba(52,245,176,.08); border-color: rgba(52,245,176,.35); color: #d2fff0;
  box-shadow: 0 0 30px -14px rgba(52,245,176,.8); }
.alert.bad { background: rgba(255,93,122,.08); border-color: rgba(255,93,122,.38); color: #ffd6de;
  box-shadow: 0 0 30px -14px rgba(255,93,122,.8); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 650; border: 1px solid transparent; white-space: nowrap; }
.badge.admin { color: #ffe08a; background: rgba(248,192,49,.13); border-color: rgba(248,192,49,.4);
  box-shadow: 0 0 14px -6px rgba(248,192,49,.8); }
.badge.internal { color: #9eeeff; background: rgba(34,228,255,.1); border-color: rgba(34,228,255,.38);
  box-shadow: 0 0 14px -6px rgba(34,228,255,.8); }
.badge.external { color: #ffa8e6; background: rgba(240,79,198,.12); border-color: rgba(240,79,198,.4);
  box-shadow: 0 0 14px -6px rgba(240,79,198,.8); }
.badge.active, .badge.up, .badge.approved, .badge.live { color: var(--ok); background: rgba(52,245,176,.1); border-color: rgba(52,245,176,.35); }
.badge.invited, .badge.pending, .badge.fix { color: #ffd76a; background: rgba(248,192,49,.1); border-color: rgba(248,192,49,.35); }
.badge.disabled, .badge.rejected { color: var(--text-3); background: rgba(255,255,255,.04); border-color: var(--line-strong); }
.badge.down, .badge.problem { color: #ff9fb2; background: rgba(255,93,122,.1); border-color: rgba(255,93,122,.38); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--radius-xs);
  background: rgba(34,228,255,.08); border: 1px solid rgba(34,228,255,.22); color: #aef2ff; font: 12px var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ok);
  letter-spacing: .04em; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,245,176,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,245,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,245,176,0); } }

/* ---------- avatar ---------- */
.avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 12.5px; font-weight: 750; color: #fff; background: var(--thermal); letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--solid), 0 0 0 3.5px rgba(34,228,255,.55), 0 0 18px -4px rgba(240,79,198,.8); }
.avatar.sm { width: 27px; height: 27px; font-size: 10.5px;
  box-shadow: 0 0 0 2px var(--solid), 0 0 0 3px rgba(34,228,255,.45); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .sub { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= sign-in pages (split screen) ================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column; }
.auth-brand > * { position: relative; }
.logo { height: 34px; width: auto; display: block; }
.auth-pitch { margin: auto 0; max-width: 520px; padding: 40px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px 0 12px; border-radius: 99px;
  font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #bdf6ff;
  background: rgba(34,228,255,.08); border: 1px solid rgba(34,228,255,.3); margin-bottom: 22px;
  box-shadow: 0 0 24px -8px rgba(34,228,255,.7); }
.auth-pitch h1 { font-size: 46px; line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.auth-pitch h1 em { font-style: normal; background: var(--ai); background-size: 200% 100%; -webkit-background-clip: text;
  background-clip: text; color: transparent; animation: flow 8s ease-in-out infinite alternate; }
@keyframes flow { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.auth-pitch > p { margin-top: 18px; color: var(--text-2); font-size: 16.5px; line-height: 1.6; max-width: 470px; }

.orb-row { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.orb { position: relative; width: 74px; height: 74px; flex: none; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #22E4FF, #8B5CF6, #F04FC6, #FF4E00, #F8C031, #22E4FF);
  filter: blur(10px); opacity: .9; animation: spin 7s linear infinite; }
.orb::after { content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #c9f7ff 10%, #5b39d6 45%, #1a0a4a 75%);
  box-shadow: inset 0 0 18px rgba(255,255,255,.35), 0 0 30px rgba(139,92,246,.7); animation: breathe 3.6s ease-in-out infinite; }
.orb span { position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(34,228,255,.35);
  animation: ripple 3.6s ease-out infinite; }
.orb span:nth-child(2) { animation-delay: 1.8s; border-color: rgba(240,79,198,.35); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.02); } }
@keyframes ripple { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.ask { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 14px; font-size: 15px; color: var(--text);
  background: rgba(10, 8, 40, .55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px);
  box-shadow: 0 0 34px -14px rgba(139,92,246,.9); }
.ask .k { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  font-weight: 650; margin-bottom: 4px; }
.ask .line { display: flex; align-items: center; min-height: 1.5em; }
.ask .typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask .caret { flex: none; width: 2px; height: 1.1em; margin-left: 2px; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.features { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.features li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.features .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff;
  background: var(--thermal); box-shadow: 0 8px 22px -8px rgba(255,78,0,.8); }
.features li:nth-child(2) .fi { background: linear-gradient(135deg, #8B5CF6, #F04FC6); box-shadow: 0 8px 22px -8px rgba(139,92,246,.9); }
.features li:nth-child(3) .fi { background: linear-gradient(135deg, #0BB8D6, #8B5CF6); box-shadow: 0 8px 22px -8px rgba(34,228,255,.8); }
.features b { display: block; font-weight: 650; }
.features span { color: var(--text-3); font-size: 13.5px; }
.auth-foot { color: var(--text-3); font-size: 12.5px; }
.auth-main { display: grid; place-items: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 430px; padding: 36px 34px; }
.auth-card .head { margin-bottom: 26px; }
.auth-card .head h1 { font-size: 28px; }
.auth-card .head p { margin-top: 8px; color: var(--text-2); }
.auth-card .mobile-brand { display: none; margin-bottom: 26px; }
.notice { display: flex; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.notice .icon { color: var(--cyan); }
.rules { list-style: none; padding: 0; margin: -4px 0 18px; display: grid; gap: 6px; font-size: 13px; color: var(--text-3); }
.rules li { display: flex; align-items: center; gap: 8px; transition: color .2s; }
.rules li.met { color: var(--ok); text-shadow: 0 0 12px rgba(52,245,176,.5); }
.profile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); margin-bottom: 26px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.profile .avatar { width: 48px; height: 48px; font-size: 15px; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }

/* ================= admin console ================= */
.shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 14px;
  background: rgba(6, 4, 30, .58); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-right: 1px solid rgba(255,255,255,.07); }
.side .brand { display: flex; flex-direction: column; gap: 10px; padding: 4px 10px 22px; }
.side .brand .logo { align-self: flex-start; width: auto; }
.nav-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 8px 12px 6px; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 600; text-decoration: none; position: relative; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s; }
.nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav a.on { color: #fff; border-color: rgba(34,228,255,.25);
  background: linear-gradient(90deg, rgba(139,92,246,.35), rgba(240,79,198,.18) 60%, rgba(255,78,0,.08));
  box-shadow: 0 0 26px -10px rgba(240,79,198,.9), inset 0 1px 0 rgba(255,255,255,.08); }
.nav a.on .icon { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(34,228,255,.8)); }
.nav .count { margin-left: auto; min-width: 22px; height: 21px; padding: 0 7px; border-radius: 99px; display: grid;
  place-items: center; font-size: 11.5px; font-weight: 750; background: var(--thermal); color: #fff;
  box-shadow: 0 0 16px -2px rgba(255,78,0,.9); }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-foot .person { padding: 4px 6px; }
.side-foot .row2 { display: flex; gap: 8px; }
.side-foot .row2 > * { flex: 1; }
.main { padding: 36px 44px 64px; max-width: 1200px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px;
  flex-wrap: wrap; }
.page-head h1 { font-size: 30px; background: linear-gradient(90deg, #fff 30%, #c8bdff 70%, #ffb3e6);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--text-2); margin-top: 8px; max-width: 660px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px 20px; overflow: hidden; }
.stat .k { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; font-weight: 550; }
.stat .k .icon { color: var(--cyan); filter: drop-shadow(0 0 5px rgba(34,228,255,.7)); }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 24px rgba(139,92,246,.45); }
.stat .v small { font-size: 13px; font-weight: 550; color: var(--text-3); margin-left: 4px; text-shadow: none; }
.stat.accent { background: linear-gradient(140deg, rgba(139,92,246,.34), rgba(240,79,198,.22) 55%, rgba(255,78,0,.16)),
  var(--surface); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,228,255,.18), transparent 70%); pointer-events: none; }

.card { overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--cyan); opacity: .8; }
.search .input { padding-left: 38px; height: 38px; font-size: 13.5px; width: 270px; max-width: 100%; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-sm); background: rgba(4,3,26,.55);
  border: 1px solid var(--line-strong); flex-wrap: wrap; }
.seg label { display: inline-flex; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.75), rgba(240,79,198,.6));
  box-shadow: 0 0 18px -6px rgba(240,79,198,.9), inset 0 1px 0 rgba(255,255,255,.18); }
.seg input:focus-visible + span { box-shadow: var(--ring); }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase;
  letter-spacing: .09em; padding: 13px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: linear-gradient(90deg, rgba(34,228,255,.05), rgba(240,79,198,.04)); }
.table tr.off td > * { opacity: .5; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; padding: 4px; border-radius: 14px; width: max-content;
  max-width: 100%; background: rgba(4,3,26,.5); border: 1px solid var(--line-strong); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; color: var(--text-2);
  font-weight: 650; border-radius: 10px; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.tabs a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tabs a.on { color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.6), rgba(240,79,198,.45));
  box-shadow: 0 0 22px -8px rgba(240,79,198,.9), inset 0 1px 0 rgba(255,255,255,.15); }
.tabs .n { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; font-size: 11.5px; font-weight: 750;
  display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--text-2); }
.tabs .n.hot { background: var(--thermal); color: #fff; box-shadow: 0 0 14px -2px rgba(255,78,0,.9); }

.bulk { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px;
  position: sticky; top: 12px; z-index: 5; flex-wrap: wrap; }
.bulk .sel { color: var(--text-3); font-size: 13px; margin-right: auto; }

.items { display: grid; gap: 14px; }
.item { padding: 20px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px;
  transition: transform .2s, box-shadow .2s; }
.item:hover { transform: translateY(-1px); box-shadow: var(--shadow), 0 0 40px -18px rgba(139,92,246,.8); }
.item.is-checked::before { background: var(--edge); }
.item.is-checked { box-shadow: var(--shadow), 0 0 40px -14px rgba(240,79,198,.8); }
.item > .pick { padding-top: 3px; }
.item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-top .when { color: var(--text-3); font-size: 12.5px; }
.item-top .spacer { flex: 1; }
.question { font-size: 17px; font-weight: 600; margin: 12px 0 8px; line-height: 1.45; }
.question::before { content: "“"; color: var(--cyan); margin-right: 2px; }
.question::after { content: "”"; color: var(--cyan); margin-left: 2px; }
.meta-line { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--text-2); margin-top: 7px; flex-wrap: wrap; }
.meta-line .k { color: var(--text-3); min-width: 74px; font-size: 12.5px; }
.callout { margin-top: 12px; padding: 12px 15px; border-radius: var(--radius-sm); border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(248,192,49,.1), rgba(248,192,49,.02)); font-size: 14px; }
.callout .k { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 3px; font-weight: 700; }
.callout.bad { border-color: var(--bad); background: linear-gradient(90deg, rgba(255,93,122,.12), rgba(255,93,122,.02)); }
.callout.bad .k { color: #ff9fb2; }
.fb-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
details.answer { margin-top: 12px; }
details.answer summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan); font-size: 13px; font-weight: 600; }
details.answer summary::-webkit-details-marker { display: none; }
details.answer summary .icon { transition: transform .2s; }
details.answer[open] summary .icon { transform: rotate(90deg); }
details.answer summary:hover { text-shadow: 0 0 12px rgba(34,228,255,.7); }
.answer-text { margin-top: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(4,3,26,.6);
  border: 1px solid rgba(34,228,255,.15); white-space: pre-wrap; font-size: 13.5px; line-height: 1.65; color: var(--text-2);
  max-height: 320px; overflow: auto; }
.item-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .ring { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.5), rgba(240,79,198,.4));
  box-shadow: 0 0 0 8px rgba(139,92,246,.08), 0 0 40px -6px rgba(240,79,198,.8); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

.secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.secret code { font: 650 18px var(--mono); color: #ffe08a; padding: 8px 14px; border-radius: var(--radius-xs);
  background: rgba(0,0,0,.35); border: 1px dashed rgba(248,192,49,.5); letter-spacing: .03em;
  text-shadow: 0 0 14px rgba(248,192,49,.6); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.turn { border-bottom: 1px solid var(--line); }
.turn:last-child { border-bottom: 0; }
.turn > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 16px; align-items: center; padding: 15px 20px; transition: background .2s; }
.turn > summary::-webkit-details-marker { display: none; }
.turn > summary:hover, .turn[open] > summary { background: linear-gradient(90deg, rgba(34,228,255,.05), rgba(240,79,198,.04)); }
.turn > summary > .flags > .icon { color: var(--text-3); transition: transform .2s; }
.turn[open] > summary > .flags > .icon { transform: rotate(90deg); color: var(--cyan); }
.turn .q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.turn .flags { display: flex; gap: 6px; align-items: center; }
.turn .who-col { min-width: 0; }
.turn-body { padding: 4px 20px 20px 196px; }

dialog { border: 0; border-radius: 22px; color: var(--text); padding: 0; width: min(540px, calc(100vw - 32px));
  background: rgba(14, 11, 48, .86); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 60px -18px rgba(139,92,246,.9), 0 40px 90px -30px rgba(0,0,0,.9); }
dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(1,0,26,.6); backdrop-filter: blur(6px); }
.dialog-head { padding: 24px 26px 4px; }
.dialog-head h2 { font-size: 20px; }
.dialog-head p { color: var(--text-2); margin-top: 6px; }
.dialog-body { padding: 18px 26px 6px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 26px 24px; }
.role-pick { display: grid; gap: 8px; }
.role-pick label { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); cursor: pointer; background: rgba(4,3,26,.5); transition: all .2s; }
.role-pick label:hover { border-color: rgba(34,228,255,.4); }
.role-pick input { margin-top: 3px; accent-color: var(--magenta-soft); }
.role-pick label:has(input:checked) { border-color: rgba(240,79,198,.7);
  background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(240,79,198,.12));
  box-shadow: 0 0 26px -10px rgba(240,79,198,.9); }
.role-pick b { display: block; text-transform: capitalize; }
.role-pick span { color: var(--text-3); font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-page .code { font-size: 120px; font-weight: 900; line-height: 1; background: var(--ai); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.05em;
  animation: flow 6s ease-in-out infinite alternate; filter: drop-shadow(0 0 30px rgba(139,92,246,.5)); }
.error-page h1 { margin-top: 10px; font-size: 28px; }
.error-page p { color: var(--text-2); margin: 10px 0 28px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; transition: all .25s;
  background: rgba(14,11,48,.9); border: 1px solid rgba(34,228,255,.4); padding: 10px 18px; border-radius: 99px;
  font-size: 13.5px; z-index: 100; pointer-events: none; box-shadow: 0 0 30px -8px rgba(34,228,255,.8); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card .mobile-brand { display: flex; align-items: center; gap: 10px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap;
    padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .side .brand { padding: 0 8px 0 0; flex-direction: row; align-items: center; }
  .side .brand .live-dot, .nav-label { display: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { height: 38px; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; }
  .side-foot .person { display: none; }
  .main { padding: 24px 16px 48px; }
  .turn > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .turn .who-col { display: none; }
  .turn-body { padding: 0 16px 16px; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .table thead { display: none; }
  .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px 16px;
    border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table tbody tr[hidden] { display: none; }
  .table td { padding: 0; border: 0; }
  .table td:first-child, .table td:last-child { grid-column: 1 / -1; }
  .actions { justify-content: flex-start; }
  .card-head .hint { width: 100%; }
  .auth-card { padding: 28px 22px; }
  .page-head h1 { font-size: 26px; }
}
@media (max-width: 560px) {
  .nav a .lbl, .side-foot .lbl { display: none; }
  .search .input { width: 100%; }
  .page-head .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
