:root {
  color-scheme: dark;
  --bg: #09090b;
  --side: #070708;
  --card: #141416;
  --card-2: #101012;
  --line: #2a2a30;
  --text: #f4f4f5;
  --muted: #8d8d98;
  --purple: #b07cff;
  --green: #3ddc84;
  --blue: #3b82f6;
  --red: #fb7185;
  --shadow: 0 0 0 1px #ffffff0d;
  font-family: "Segoe UI", "Liberation Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid #16161a; padding: 18px 12px 32px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .14em; padding: 6px 10px 18px; }
.mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(160deg, #ff4d5a, #8b1e2d); letter-spacing: 0; font-size: 14px; }
.group { color: #6d6d78; font-size: 11px; letter-spacing: .12em; margin: 18px 10px 8px; }
.nav { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #c6c6ce; border-radius: 10px; padding: 9px 10px; margin: 2px 0; font-size: 14px; }
.nav svg { width: 16px; height: 16px; stroke: #8d8d98; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav.on { background: linear-gradient(90deg, #3a1218, #14080c 70%); color: #ffd0d6; }
.nav.on svg { stroke: #fb7185; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid #16161a; position: sticky; top: 0; background: rgba(9,9,11,.92); backdrop-filter: blur(8px); z-index: 5; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #121214; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; max-width: 520px; }
.search svg { width: 16px; height: 16px; stroke: #8d8d98; fill: none; stroke-width: 2; }
.search input { border: 0; background: transparent; outline: none; width: 100%; }
.chips { margin-left: auto; display: flex; gap: 14px; color: #d6d6dc; font-variant-numeric: tabular-nums; }
.chips b { color: var(--green); font-weight: 600; margin-right: 4px; }
.avatar { width: 36px; height: 36px; border-radius: 999px; border: 0; background: #e11d48; color: white; cursor: pointer; }
.page { padding: 22px 26px 60px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
h2 { margin: 0 0 8px; font-size: 15px; }
.sub { margin: 6px 0 0; color: var(--muted); }
.section-label { margin: 22px 0 10px; font-size: 14px; color: #ddd; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stats article, .bar, .panel-card, .pcard, .empty, .reveal { background: var(--card); box-shadow: var(--shadow); border-radius: 16px; }
.stats article { padding: 16px 18px 14px; min-height: 108px; display: flex; flex-direction: column; }
.stats span { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.stats strong { margin-top: auto; font-size: 34px; font-weight: 650; letter-spacing: -.04em; }
.stats em { color: var(--muted); font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.purple { color: var(--purple); }
.green { color: var(--green); }
.bar { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 18px; margin-bottom: 12px; }
.bar h2 { margin: 0 0 4px; }
.bar p, .panel-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 640px; }
.bar-form, .filters, .form-grid { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.bar-form select, .bar-form input, .filters input, .filters select, .form-grid input, .form-grid select, .login-card input, .menu input, dialog input {
  background: #0c0c0e; border: 1px solid #34343c; border-radius: 10px; padding: 9px 10px; min-width: 0;
}
.mini { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.btn { border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; background: #27272a; }
.btn.blue { background: #2563eb; color: white; }
.btn.green { background: #16a34a; color: white; }
.btn.ghost { background: #1c1c20; color: #e4e4e7; border: 1px solid #34343c; }
.btn.tiny { padding: 6px 10px; border-radius: 8px; }
.link { background: none; border: 0; color: var(--purple); cursor: pointer; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.pcard { padding: 14px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; position: relative; }
.picon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #111; font-weight: 750; }
.prow { display: flex; gap: 8px; align-items: center; }
.pmeta { display: flex; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.rtp { color: var(--purple); }
.pill { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 2px 6px; }
.pill.ok { color: #86efac; background: #14532d55; }
.pill.live { color: #93c5fd; background: #1e3a8a55; }
.pill.off { color: #a1a1aa; background: #27272a; }
.more { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: #a1a1aa; cursor: pointer; }
.menu { display: none; position: absolute; right: 12px; top: 48px; z-index: 4; background: #1b1b1f; border: 1px solid #34343c; border-radius: 12px; padding: 10px; width: 220px; }
.menu.open { display: grid; gap: 8px; }
.menu form { display: grid; gap: 6px; }
.menu button, dialog button { cursor: pointer; }
.empty, .panel-card, .reveal { padding: 16px 18px; }
.split { display: grid; grid-template-columns: 280px 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.form-grid label, .login-card label, .panel-card label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.table-wrap { overflow: auto; border-radius: 16px; box-shadow: var(--shadow); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #222228; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .04em; }
.muted { color: var(--muted); }
.gname { display: flex; gap: 8px; align-items: center; }
.gname img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; background: #222; }
.clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.flash { border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.flash.ok { background: #052e16; color: #86efac; }
.flash.warn { background: #422006; color: #fcd34d; }
.flash.bad { background: #450a0a; color: #fecaca; }
.reveal { margin-bottom: 14px; border: 1px solid #14532d; }
.reveal code { display: inline-block; margin-left: 8px; color: #bbf7d0; }
.plain { margin: 0 0 12px; padding-left: 18px; }
dialog { border: 0; border-radius: 16px; background: #16161a; color: var(--text); padding: 18px; width: min(420px, calc(100% - 24px)); }
dialog::backdrop { background: #000a; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.login-body, .docs-body { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: min(420px, calc(100% - 32px)); background: var(--card); padding: 28px; border-radius: 18px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 24px; }
.docs { width: min(760px, calc(100% - 32px)); padding: 32px 0 64px; }
.docs a { color: var(--purple); }
@media (max-width: 1100px) {
  .stats, .grid, .form-grid { grid-template-columns: 1fr 1fr; }
  .split, .bar { grid-template-columns: 1fr; display: grid; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; display: flex; gap: 6px; overflow: auto; }
  .group, .brand { display: none; }
  .nav { white-space: nowrap; }
  .stats, .grid, .form-grid { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; }
  .chips { margin-left: 0; }
}
