:root {
  --bg: #080b14;
  --bg-soft: #0e1320;
  --panel: rgba(17, 23, 36, .88);
  --panel-strong: #151d2d;
  --line: rgba(152, 170, 198, .14);
  --line-strong: rgba(152, 170, 198, .24);
  --text: #f5f7fb;
  --muted: #8c99ad;
  --muted-2: #5d6a7f;
  --primary: #7c6cff;
  --primary-2: #9b8cff;
  --cyan: #47d7d1;
  --green: #55d69b;
  --orange: #ffb464;
  --red: #ff6c7d;
  --blue: #61a8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .22);
  --radius: 18px;
  --radius-sm: 11px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 85% -15%, rgba(124, 108, 255, .13), transparent 36rem), var(--bg); color: var(--text); font-family: "Cairo", system-ui, sans-serif; font-size: 14px; line-height: 1.6; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button:not(:disabled), a, select, input[type="checkbox"] { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.mobile-only { display: none; }

/* Authentication */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .9fr) minmax(420px, 1.1fr); overflow: hidden; background: var(--bg); }
.auth-panel { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; width: min(520px, calc(100% - 80px)); margin: 0 auto; padding: 60px 0; }
.auth-side { position: relative; display: flex; align-items: flex-end; min-height: 100vh; padding: 10%; overflow: hidden; background: linear-gradient(140deg, #0c1120, #11162a 48%, #171634); }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(124, 108, 255, .38), transparent 22rem), radial-gradient(circle at 5% 95%, rgba(71, 215, 209, .16), transparent 25rem); }
.side-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(148, 160, 190, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 160, 190, .13) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(135deg, black 0%, transparent 74%); }
.side-grid::after { content: ""; position: absolute; width: 460px; height: 460px; right: 8%; top: 12%; border: 1px solid rgba(124, 108, 255, .24); border-radius: 50%; box-shadow: 0 0 0 50px rgba(124, 108, 255, .04), 0 0 0 100px rgba(124, 108, 255, .03), inset 0 0 50px rgba(124, 108, 255, .08); }
.side-content { position: relative; z-index: 1; max-width: 460px; padding-bottom: 110px; }
.side-content h2 { margin: 20px 0 14px; font-family: "Space Grotesk", sans-serif; font-size: clamp(48px, 7vw, 94px); line-height: .95; letter-spacing: -.06em; }
.side-content p { max-width: 340px; margin: 0; color: #aab5c8; font-size: 15px; }
.side-status { position: absolute; z-index: 1; right: 10%; bottom: 44px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; color: #d8def0; }
.side-status small { grid-column: 2; color: var(--muted); }
.auth-orbit { position: absolute; width: 440px; height: 440px; left: 16%; top: 10%; opacity: .17; border: 1px solid var(--primary); border-radius: 50%; }
.auth-orbit::before, .auth-orbit::after { content: ""; position: absolute; inset: 48px; border: 1px solid var(--cyan); border-radius: 50%; }
.auth-orbit::after { inset: 116px; border-color: var(--primary-2); }
.auth-orbit span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.auth-orbit span:nth-child(1) { top: 14%; left: 20%; }
.auth-orbit span:nth-child(2) { top: 73%; right: 7%; background: var(--primary-2); box-shadow: 0 0 20px var(--primary-2); }
.auth-orbit span:nth-child(3) { bottom: 4%; left: 33%; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(155, 140, 255, .55); border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--primary), #5145bd); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: -.05em; box-shadow: 0 8px 25px rgba(124, 108, 255, .24); }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-family: "Space Grotesk", sans-serif; font-size: 14px; letter-spacing: -.03em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.brand-large { margin-bottom: 84px; }
.brand-large .brand-mark { width: 48px; height: 48px; border-radius: 15px; font-size: 14px; }
.brand-large strong { font-size: 17px; }
.auth-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: "Space Grotesk", "Cairo", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-kicker { color: var(--cyan); }
.auth-panel h1 { margin: 18px 0 18px; font-family: "Space Grotesk", "Cairo", sans-serif; font-size: clamp(42px, 5vw, 62px); line-height: 1.02; letter-spacing: -.07em; }
em { color: var(--primary-2); font-style: normal; }
.auth-copy { max-width: 410px; margin: 0 0 30px; color: var(--muted); font-size: 15px; }
.discord-login { display: flex; align-items: center; gap: 12px; width: min(410px, 100%); min-height: 58px; padding: 0 18px; border: 1px solid rgba(124, 108, 255, .7); border-radius: 14px; color: white; background: linear-gradient(110deg, #6757df, #7c6cff); box-shadow: 0 18px 40px rgba(98, 82, 222, .25); transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease); }
.discord-login:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 22px 50px rgba(98, 82, 222, .35); }
.discord-login:active { transform: scale(.98); }
.discord-login > span:nth-child(2) { flex: 1; text-align: right; font-weight: 700; }
.discord-login b { font-size: 18px; font-weight: 400; }
.discord-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .18); }
.auth-error { min-height: 24px; margin: 12px 0 0; color: var(--red); font-size: 12px; }
.auth-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted-2); font-size: 11px; }
.auth-trust span::before { content: "✓"; margin-left: 6px; color: var(--green); }
.live-dot, .status-light { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(85, 214, 155, .1), 0 0 16px rgba(85, 214, 155, .8); }

/* Application shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 276px; padding: 25px 18px 18px; border-left: 1px solid var(--line); background: rgba(10, 14, 24, .94); backdrop-filter: blur(20px); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 24px; }
.workspace-card { display: flex; align-items: center; gap: 10px; margin: 0 2px 26px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); }
.workspace-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--cyan); background: rgba(71, 215, 209, .1); }
.workspace-card span:nth-child(2) { flex: 1; }
.workspace-card small, .workspace-card strong { display: block; line-height: 1.4; }
.workspace-card small { color: var(--muted); font-size: 10px; }
.workspace-card strong { color: #dae1ef; font-size: 12px; }
.workspace-card .status-light { width: 6px; height: 6px; }
.main-nav { flex: 1; }
.nav-label { margin: 0 10px 8px; color: var(--muted-2); font-family: "Space Grotesk", "Cairo", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-spacer { margin-top: 25px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; margin: 3px 0; padding: 0 11px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; text-align: right; transition: color .18s, background .18s, border .18s, transform .18s; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.nav-item.active { border-color: rgba(124, 108, 255, .2); color: #fff; background: linear-gradient(90deg, rgba(124, 108, 255, .18), rgba(124, 108, 255, .05)); box-shadow: inset -3px 0 var(--primary); }
.nav-item:active { transform: scale(.985); }
.nav-icon { display: grid; place-items: center; width: 24px; color: var(--muted-2); font-size: 16px; }
.nav-item.active .nav-icon { color: var(--primary-2); }
.nav-item > span:nth-child(2) { flex: 1; font-size: 12px; font-weight: 600; }
.nav-item kbd, .nav-count { display: inline-grid; place-items: center; min-width: 23px; height: 20px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); background: rgba(0, 0, 0, .14); font-family: "Space Grotesk", sans-serif; font-size: 9px; }
.nav-count { border-color: rgba(255, 108, 125, .25); color: var(--red); background: rgba(255, 108, 125, .08); }
.sidebar-bottom { padding-top: 18px; border-top: 1px solid var(--line); }
.system-status { display: flex; align-items: center; gap: 9px; padding: 9px 10px 14px; }
.system-status small, .system-status strong { display: block; line-height: 1.4; }
.system-status small { color: var(--muted); font-size: 10px; }
.system-status strong { color: var(--green); font-size: 11px; }
.logout-button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; border-radius: 10px; color: var(--muted); background: transparent; text-align: right; transition: color .18s, background .18s; }
.logout-button:hover { color: var(--red); background: rgba(255, 108, 125, .08); }
.main-content { width: calc(100% - 276px); min-width: 0; margin-right: 276px; }
.topbar { position: sticky; z-index: 8; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 18px clamp(20px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(8, 11, 20, .76); backdrop-filter: blur(20px); }
.topbar-leading, .topbar-actions, .breadcrumbs, .live-status, .owner-chip { display: flex; align-items: center; }
.topbar-leading { gap: 15px; }
.breadcrumbs { gap: 9px; margin: 0 0 3px; color: var(--muted); font-size: 10px; }
.breadcrumbs i { color: var(--muted-2); font-style: normal; }
.breadcrumbs strong { color: var(--primary-2); }
.topbar h2 { margin: 0; font-size: 19px; line-height: 1.2; }
.topbar-actions { gap: 12px; }
.live-status { gap: 8px; padding-left: 13px; border-left: 1px solid var(--line); color: var(--green); font-size: 11px; }
.live-status small { margin-right: 4px; color: var(--muted-2); font-size: 10px; }
.owner-chip { gap: 9px; min-width: 120px; padding-right: 8px; }
.owner-chip > span:first-child { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--primary), #4d40b5); font-weight: 700; }
.owner-chip small, .owner-chip strong { display: block; line-height: 1.3; }
.owner-chip small { color: var(--muted); font-size: 9px; }
.owner-chip strong { max-width: 100px; overflow: hidden; color: #dbe1ef; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.view { width: 100%; max-width: 1480px; margin: 0 auto; padding: clamp(26px, 4vw, 58px) clamp(20px, 4vw, 58px) 80px; animation: page-in .35s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.page-heading h1 { margin: 12px 0 10px; font-family: "Space Grotesk", "Cairo", sans-serif; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.065em; }
.page-heading p { max-width: 500px; margin: 0; color: var(--muted); font-size: 13px; }
.page-heading-overview { align-items: center; }
.section-index { color: rgba(124, 108, 255, .25); font-family: "Space Grotesk", sans-serif; font-size: 86px; font-weight: 700; letter-spacing: -.1em; line-height: .8; }
.accent { color: var(--primary-2); }
.clock-card { min-width: 220px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(140deg, rgba(124, 108, 255, .11), rgba(255, 255, 255, .025)); text-align: left; }
.clock-card small, .clock-card strong, .clock-card span { display: block; }
.clock-card small { color: var(--muted); font-size: 11px; }
.clock-card strong { margin: 5px 0; font-family: "Space Grotesk", sans-serif; font-size: 29px; letter-spacing: -.04em; }
.clock-card span { color: var(--muted-2); font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 145px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.metric-card:hover { border-color: var(--line-strong); }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.metric-label i { color: var(--muted-2); font-size: 15px; font-style: normal; }
.metric-card-status .metric-label i { color: var(--green); }
.metric-card-alert .metric-label i { color: var(--orange); }
.metric-card > strong { display: block; margin: 7px 0 0; font-family: "Space Grotesk", sans-serif; font-size: 34px; letter-spacing: -.07em; }
.metric-card > small { display: block; color: var(--muted-2); font-size: 10px; }
.metric-progress { height: 3px; margin-top: 15px; overflow: hidden; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.metric-progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--green); transition: width .4s var(--ease); }
.metric-progress.blue span { background: var(--blue); }
.metric-progress.purple span { background: var(--primary); }
.metric-progress.orange span { background: var(--orange); }
.notice-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid rgba(255, 180, 100, .2); border-radius: 14px; background: rgba(255, 180, 100, .06); }
.notice-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--orange); background: rgba(255, 180, 100, .12); font-weight: 800; }
.notice-banner > div { flex: 1; }
.notice-banner strong { display: block; font-size: 12px; }
.notice-banner p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.content-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { min-width: 0; margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.panel-heading h3 { margin: 5px 0 0; font-size: 17px; line-height: 1.25; }
.panel-heading > div { min-width: 0; }
.panel-live-label, .state-pill, .hint-chip, .count-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255, 255, 255, .025); font-size: 10px; white-space: nowrap; }
.state-pill { border-color: rgba(85, 214, 155, .2); color: var(--green); background: rgba(85, 214, 155, .08); }
.state-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.coverage-summary { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; margin-bottom: 21px; }
.coverage-summary strong { grid-row: span 2; font-family: "Space Grotesk", sans-serif; color: var(--cyan); font-size: 32px; letter-spacing: -.06em; }
.coverage-summary span { color: var(--muted); font-size: 11px; }
.coverage-track { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.coverage-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--primary)); transition: width .5s var(--ease); }
.data-list { display: grid; gap: 8px; min-height: 70px; }
.data-row { display: flex; align-items: center; gap: 12px; padding: 10px 11px; border: 1px solid transparent; border-radius: 11px; background: rgba(255, 255, 255, .025); }
.data-row:hover { border-color: var(--line); background: rgba(255, 255, 255, .045); }
.data-row-main { flex: 1; min-width: 0; }
.data-row strong, .data-row small { display: block; line-height: 1.45; }
.data-row strong { overflow: hidden; color: #dbe1ee; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.data-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.data-row-metric { color: var(--cyan); font-family: "Space Grotesk", sans-serif; font-size: 12px; }
.row-avatar { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--primary-2); background: rgba(124, 108, 255, .12); font-weight: 700; }
.empty-state, .empty { display: grid; place-items: center; min-height: 80px; padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted-2); font-size: 12px; text-align: center; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; }
.text-button { padding: 0; color: var(--primary-2); background: transparent; font-size: 11px; font-weight: 700; }
.text-button:hover { color: #fff; }
.voice-summary { display: flex; align-items: center; gap: 15px; min-height: 115px; margin: -2px 0 8px; }
.voice-summary > div:last-child strong, .voice-summary > div:last-child span, .voice-summary > div:last-child small { display: block; }
.voice-summary > div:last-child strong { font-family: "Space Grotesk", sans-serif; font-size: 35px; line-height: 1; }
.voice-summary > div:last-child span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.voice-summary > div:last-child small { margin-top: 4px; color: var(--muted-2); font-size: 10px; }
.radar-visual { position: relative; flex: 0 0 116px; height: 116px; overflow: hidden; border: 1px solid rgba(71, 215, 209, .16); border-radius: 50%; background: radial-gradient(circle, rgba(71, 215, 209, .12), transparent 67%); }
.radar-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(45deg, transparent 49.5%, rgba(71, 215, 209, .18) 50%, transparent 50.5%), linear-gradient(-45deg, transparent 49.5%, rgba(71, 215, 209, .1) 50%, transparent 50.5%); }
.radar-ring { position: absolute; inset: 25%; border: 1px solid rgba(71, 215, 209, .18); border-radius: 50%; }
.ring-two { inset: 9%; }
.radar-center { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cyan); text-shadow: 0 0 16px var(--cyan); }
.radar-sweep { position: absolute; z-index: 2; top: 50%; left: 50%; width: 50%; height: 1px; transform-origin: left center; background: linear-gradient(90deg, rgba(71, 215, 209, .9), transparent); animation: sweep 3s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.alert-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.alert-item { min-height: 97px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.alert-item.critical { border-color: rgba(255, 108, 125, .3); }
.alert-item strong, .alert-item small, .alert-item p { display: block; }
.alert-item strong { color: #dfe6f3; font-size: 11px; }
.alert-item small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.alert-item p { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: var(--muted); font-size: 11px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Controls and tables */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 700; transition: transform .16s var(--ease), border .16s, background .16s, filter .16s; }
.button:hover { filter: brightness(1.08); }
.button:active { transform: scale(.97); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { background: linear-gradient(120deg, var(--primary), #5c4bd1); box-shadow: 0 8px 20px rgba(124, 108, 255, .18); }
.button-ghost { border-color: var(--line); color: var(--muted); background: rgba(255, 255, 255, .025); }
.button-ghost:hover { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .06); }
.button-danger { background: linear-gradient(120deg, #d95068, #a83d55); box-shadow: 0 8px 20px rgba(217, 80, 104, .18); }
.button-small { min-height: 30px; padding: 0 10px; font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255, 255, 255, .04); font-size: 17px; }
.table-actions, .schedule-tools, .export-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.search-input, .compact-select, input, select { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: #111827; font-size: 11px; }
.search-input { width: 210px; }
input::placeholder { color: var(--muted-2); }
input:focus, select:focus { border-color: rgba(124, 108, 255, .7); box-shadow: 0 0 0 3px rgba(124, 108, 255, .1); }
select option { color: var(--text); background: #111827; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 10px; font-weight: 600; text-align: right; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid rgba(152, 170, 198, .08); color: #cfd7e7; font-size: 11px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: rgba(255, 255, 255, .03); }
.mono { color: var(--muted); font-family: "Space Grotesk", monospace; font-size: 10px; }
.table-badge, .points-badge, .staff-state { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; background: rgba(255, 255, 255, .05); font-size: 10px; white-space: nowrap; }
.points-badge { color: var(--cyan); background: rgba(71, 215, 209, .08); }
.points-badge small { color: var(--muted); }
.staff-state.active { color: var(--green); background: rgba(85, 214, 155, .08); }
.staff-state.frozen { color: var(--orange); background: rgba(255, 180, 100, .08); }
.staff-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.table-button { min-height: 27px; margin-left: 4px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; }
.table-button:hover { color: #fff; border-color: var(--primary); }
.table-button.danger:hover { color: var(--red); border-color: var(--red); }
.inline-select { min-height: 29px; padding: 0 7px; font-size: 10px; }

/* Shift editor */
.schedule-panel { overflow: hidden; }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 17px; margin: -4px 0 16px; color: var(--muted); font-size: 10px; }
.schedule-legend i { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.schedule-legend .legend-selected { background: var(--primary); }
.schedule-legend .legend-shift { background: rgba(71, 215, 209, .7); }
.shift-grid { display: grid; grid-template-columns: 86px repeat(24, minmax(28px, 1fr)); overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .12); }
.grid-label, .grid-hour, .grid-cell { min-height: 40px; border-left: 1px solid rgba(152, 170, 198, .07); border-bottom: 1px solid rgba(152, 170, 198, .07); }
.grid-label { display: flex; align-items: center; padding: 0 11px; color: var(--muted); font-size: 10px; font-weight: 700; }
.grid-hour { display: grid; place-items: center; color: var(--muted-2); font-family: "Space Grotesk", sans-serif; font-size: 9px; }
.grid-cell { position: relative; min-width: 28px; padding: 0; background: rgba(255, 255, 255, .01); transition: background .12s; }
.grid-cell:hover { background: rgba(124, 108, 255, .19); }
.grid-cell.selected { background: rgba(124, 108, 255, .75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.grid-cell.occupied { background: rgba(71, 215, 209, .25); box-shadow: inset 0 0 0 1px rgba(71, 215, 209, .18); }
.grid-cell.occupied.selected { background: rgba(124, 108, 255, .85); }
.form-panel { padding: 22px; }
.form-grid { display: grid; gap: 13px; }
.form-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
label input, label select { width: 100%; }
.full-span { grid-column: 1 / -1; }
.days-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.days-row strong { margin-left: 8px; color: var(--muted); font-size: 11px; }
.days-row label { display: flex; align-items: center; gap: 5px; grid-template-columns: auto auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); font-size: 10px; }
.days-row input, .toggle-field input { width: auto; accent-color: var(--primary); }
.form-status { min-height: 18px; margin: 13px 0 0; color: var(--green); font-size: 11px; }
.form-status.error { color: var(--red); }
.form-section-title { margin: 28px 0 15px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--primary-2); font-size: 12px; }
.toggle-field { display: flex; align-items: center; align-content: center; grid-template-columns: auto auto; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); }

/* Profiles, insights, moderation */
.profile-output { min-height: 170px; }
.profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.profile-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--primary), #4d40b5); font-size: 19px; font-weight: 700; }
.profile-header h4 { margin: 0; font-size: 15px; }
.profile-header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 17px; }
.profile-stat { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.profile-stat strong, .profile-stat small { display: block; }
.profile-stat strong { font-family: "Space Grotesk", sans-serif; font-size: 19px; }
.profile-stat small { color: var(--muted); font-size: 9px; }
.profile-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.profile-section h5 { margin: 0 0 7px; color: var(--muted); font-size: 10px; }
.profile-section ul { margin: 0; padding: 0; list-style: none; }
.profile-section li { padding: 7px 0; border-bottom: 1px solid var(--line); color: #cfd7e7; font-size: 10px; }
.heatmap-grid { display: grid; grid-template-columns: 86px repeat(7, 1fr); gap: 5px; min-width: 400px; }
.heatmap-cell { min-height: 35px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); background: rgba(255, 255, 255, .04); font-family: "Space Grotesk", sans-serif; font-size: 9px; }
.heatmap-cell.label { justify-content: start; padding: 0 7px; background: transparent; font-family: "Cairo", sans-serif; }
.heatmap-cell.level-1 { background: rgba(255, 108, 125, .16); }
.heatmap-cell.level-2 { background: rgba(255, 180, 100, .19); }
.heatmap-cell.level-3 { background: rgba(85, 214, 155, .2); }
.insights-list { display: grid; gap: 8px; }
.insight-item { display: flex; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .025); }
.insight-icon { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--orange); background: rgba(255, 180, 100, .1); }
.insight-item strong, .insight-item p { display: block; }
.insight-item strong { font-size: 11px; }
.insight-item p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.inline-form { display: flex; gap: 9px; min-width: min(470px, 100%); }
.inline-form input { flex: 1; }
.panic-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: rgba(255, 108, 125, .22); background: linear-gradient(110deg, rgba(255, 108, 125, .08), rgba(255, 255, 255, .025)); }
.panic-panel h3 { margin: 4px 0; }
.panic-panel p { max-width: 570px; margin: 0; color: var(--muted); font-size: 11px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: rgba(255, 108, 125, .2); }
.danger-zone h3 { margin: 5px 0; }
.danger-zone p { margin: 0; color: var(--muted); font-size: 11px; }
.code-block { max-height: 300px; overflow: auto; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: #a7e6df; background: #090d16; font-family: "Space Grotesk", monospace; font-size: 10px; direction: ltr; text-align: left; }

/* Toast and responsive */
.toast { position: fixed; z-index: 30; right: 30px; bottom: 28px; max-width: min(360px, calc(100% - 40px)); padding: 12px 16px; border: 1px solid rgba(124, 108, 255, .4); border-radius: 11px; color: #fff; background: #1b2140; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s var(--ease), transform .2s var(--ease); font-size: 11px; }
.toast.show { opacity: 1; transform: translateY(0); }
.sidebar-backdrop { display: none; }
@media (max-width: 1200px) { .sidebar { width: 230px; } .main-content { width: calc(100% - 230px); margin-right: 230px; } .metric-grid { grid-template-columns: repeat(2, 1fr); } .form-grid-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .auth-screen { display: block; } .auth-side { display: none; } .auth-panel { width: min(520px, calc(100% - 46px)); min-height: 100vh; padding: 34px 0; } .brand-large { margin-bottom: 80px; } .sidebar { width: 276px; transform: translateX(110%); transition: transform .25s var(--ease); } .sidebar.open { transform: translateX(0); } .sidebar-backdrop { position: fixed; z-index: 9; inset: 0; display: block; background: rgba(0, 0, 0, .58); opacity: 0; pointer-events: none; transition: opacity .2s; } .sidebar-backdrop.open { opacity: 1; pointer-events: auto; } .main-content { width: 100%; margin-right: 0; } .mobile-only { display: grid; } .topbar { min-height: 76px; padding: 13px 20px; } .topbar-actions { gap: 7px; } .owner-chip { display: none; } .live-status { padding-left: 8px; } .page-heading { align-items: flex-start; } .section-index { display: none; } }
@media (max-width: 680px) { body { font-size: 13px; } .topbar h2 { font-size: 16px; } .hide-mobile { display: none; } .view { padding: 28px 15px 55px; } .page-heading, .page-heading-overview { display: block; margin-bottom: 25px; } .page-heading h1 { font-size: 38px; } .clock-card { margin-top: 22px; text-align: right; } .metric-grid, .two-columns, .alert-feed, .profile-sections { grid-template-columns: 1fr; } .panel { padding: 16px; border-radius: 14px; } .panel-heading { align-items: flex-start; flex-wrap: wrap; } .form-grid-four, .form-grid-two { grid-template-columns: 1fr; } .full-span { grid-column: auto; } .inline-form, .panic-panel, .danger-zone { display: block; min-width: 0; } .inline-form { margin-top: 14px; } .inline-form .button { width: 100%; margin-top: 8px; } .danger-zone .button { width: 100%; margin-top: 15px; } .table-actions { width: 100%; } .search-input { flex: 1; width: auto; } .profile-stat-grid { grid-template-columns: repeat(2, 1fr); } .schedule-tools { width: 100%; justify-content: space-between; } .auth-panel h1 { font-size: 44px; } .brand-large { margin-bottom: 62px; } .auth-trust { gap: 8px 14px; } .toast { right: 20px; bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.participant-details { min-width: 230px; }
.participant-details summary { cursor: pointer; color: var(--primary-2); font-weight: 700; }
.participant-list { display: grid; gap: 8px; margin-top: 10px; max-width: 360px; }
.participant-detail { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(15, 23, 42, .55); font-size: 12px; }
.participant-detail span, .participant-detail small { color: var(--muted); }
.participant-detail .mono { color: var(--text); word-break: break-all; }
.muted { color: var(--muted); font-size: 12px; }


/* TrackerBot UI refresh — operations-first archive experience */
:root {
  --bg: #070a12;
  --bg-soft: #0c1220;
  --panel: rgba(15, 22, 36, .9);
  --panel-strong: #141d30;
  --line: rgba(164, 184, 214, .14);
  --line-strong: rgba(164, 184, 214, .28);
  --primary: #8b7cff;
  --primary-2: #b4a9ff;
  --cyan: #5de4dd;
  --shadow: 0 22px 65px rgba(0, 0, 0, .28);
}
body { background: radial-gradient(circle at 76% -10%, rgba(139, 124, 255, .16), transparent 31rem), radial-gradient(circle at 14% 100%, rgba(93, 228, 221, .07), transparent 30rem), var(--bg); }
.sidebar { width: 292px; padding: 28px 20px 20px; background: linear-gradient(180deg, rgba(10, 15, 28, .97), rgba(8, 12, 22, .94)); }
.main-content { width: calc(100% - 292px); margin-right: 292px; }
.workspace-card { margin-bottom: 20px; border-color: rgba(139, 124, 255, .18); background: linear-gradient(135deg, rgba(139, 124, 255, .1), rgba(255, 255, 255, .025)); }
.nav-item { min-height: 47px; border-radius: 13px; }
.nav-item.active { background: linear-gradient(90deg, rgba(139, 124, 255, .23), rgba(139, 124, 255, .06)); box-shadow: inset -3px 0 var(--primary), 0 8px 24px rgba(0, 0, 0, .12); }
.nav-count-cyan { border-color: rgba(93, 228, 221, .25); color: var(--cyan); background: rgba(93, 228, 221, .08); }
.topbar { min-height: 94px; background: rgba(7, 10, 18, .82); }
.view { padding-top: clamp(30px, 4.5vw, 64px); }
.page-heading h1 { font-size: clamp(38px, 4.6vw, 62px); }
.panel { border-color: rgba(164, 184, 214, .15); background: linear-gradient(145deg, rgba(19, 28, 46, .9), rgba(12, 18, 31, .88)); box-shadow: 0 22px 55px rgba(0, 0, 0, .18); }
.panel:hover { border-color: rgba(164, 184, 214, .22); }
.panel-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 11px; font-weight: 400; }
.one-column { grid-template-columns: minmax(0, 1fr); }
.recording-command { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.recording-command .state-pill { padding: 8px 12px; }
.recording-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.recording-stat { position: relative; min-height: 125px; overflow: hidden; padding: 19px 20px; border: 1px solid rgba(164, 184, 214, .14); border-radius: var(--radius); background: linear-gradient(145deg, rgba(25, 36, 58, .92), rgba(12, 18, 31, .88)); box-shadow: 0 18px 42px rgba(0, 0, 0, .17); }
.recording-stat::after { content: ""; position: absolute; width: 100px; height: 100px; left: -35px; bottom: -48px; border: 1px solid rgba(93, 228, 221, .18); border-radius: 50%; box-shadow: 0 0 0 16px rgba(93, 228, 221, .035), 0 0 0 33px rgba(93, 228, 221, .02); }
.recording-stat > span, .recording-stat > small { display: block; color: var(--muted); font-size: 10px; }
.recording-stat > strong { display: block; margin: 9px 0 2px; color: #f7f9ff; font-family: "Space Grotesk", sans-serif; font-size: 34px; line-height: 1; letter-spacing: -.06em; }
.recording-stat:nth-child(2) > strong { color: var(--green); }
.recording-stat:nth-child(3) > strong { color: var(--cyan); }
.recording-stat-alert { border-color: rgba(255, 180, 100, .2); }
.recording-stat-alert > strong { color: var(--orange); }
.archive-panel { padding: 24px; }
.archive-heading { align-items: flex-end; margin-bottom: 24px; }
.archive-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.archive-search { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-width: min(350px, 100%); min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted-2); background: rgba(0, 0, 0, .18); }
.archive-search:focus-within { border-color: rgba(139, 124, 255, .72); box-shadow: 0 0 0 3px rgba(139, 124, 255, .1); }
.archive-search input { min-height: 36px; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; }
.archive-search input:focus { border: 0; box-shadow: none; }
.recordings-table { min-width: 900px; }
.recordings-table td:first-child strong, .recordings-table td:first-child small, .recordings-table td:nth-child(2) strong, .recordings-table td:nth-child(2) small { display: block; }
.recordings-table td:first-child strong, .recordings-table td:nth-child(2) strong { color: #e8edfa; }
.recordings-table td:first-child small, .recordings-table td:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.recordings-table tbody tr { transition: background .18s var(--ease), transform .18s var(--ease); }
.recordings-table tbody tr:hover { background: rgba(139, 124, 255, .065); }
.recordings-table .table-button { color: var(--cyan); border-color: rgba(93, 228, 221, .2); background: rgba(93, 228, 221, .05); }
.recordings-table .table-button:hover { color: #071014; border-color: var(--cyan); background: var(--cyan); }
.staff-state.recording-open { color: var(--cyan); background: rgba(93, 228, 221, .08); }
.archive-empty { min-height: 260px; border-style: solid; background: radial-gradient(circle at 50% 30%, rgba(139, 124, 255, .1), transparent 15rem); }
.archive-empty .empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px; border: 1px solid rgba(93, 228, 221, .25); border-radius: 18px; color: var(--cyan); background: rgba(93, 228, 221, .08); font-size: 23px; box-shadow: 0 0 0 10px rgba(93, 228, 221, .035); }
.archive-empty strong { color: #dbe4f5; font-size: 13px; }
.archive-empty small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.participant-details summary { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; border: 1px solid rgba(139, 124, 255, .25); border-radius: 8px; background: rgba(139, 124, 255, .08); }
.participant-details summary:hover { color: #fff; border-color: var(--primary); }
@media (max-width: 1200px) { .sidebar { width: 250px; } .main-content { width: calc(100% - 250px); margin-right: 250px; } .recording-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .sidebar { width: 292px; } .main-content { width: 100%; margin-right: 0; } }
@media (max-width: 680px) { .recording-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } .recording-stat { min-height: 108px; padding: 14px; } .recording-stat > strong { font-size: 28px; } .archive-heading { align-items: stretch; } .archive-tools, .archive-search { width: 100%; min-width: 0; } .archive-tools .compact-select { flex: 1; } .recording-command { margin-top: 20px; } .recording-command .button { flex: 1; } }
