:root {
  --bg: #070b0f;
  --bg2: #0b1117;
  --panel: #0f171e;
  --panel2: #131d25;
  --line: #1d2a34;
  --line2: #263742;
  --text: #e8f1f5;
  --muted: #8ba0ac;
  --dim: #5e7482;
  --green: #20d16b;
  --green-d: #0d3d24;
  --green-soft: #0f2c1e;
  --red: #ff5f6d;
  --amber: #f5b942;
  --blue: #4aa8ff;
  --violet: #a98bff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --mono: "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(32,209,107,.09), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(74,168,255,.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow: hidden;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #22323d; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.app { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
  background: linear-gradient(180deg, #0b1218, #080d12);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 12px; min-height: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(145deg, var(--green), #0e9b4d);
  color: #04240f; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(32,209,107,.25);
}
.brand-mark .i { width: 22px; height: 22px; stroke-width: 2; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 15px; letter-spacing: .2px; }
.brand-text small { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.1px; }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px;
  color: var(--muted); font-weight: 500; border: 1px solid transparent; position: relative;
}
.nav a:hover { background: #101b22; color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(32,209,107,.14), rgba(32,209,107,.03)); color: #b8ffd4; border-color: #173a27; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--green); }
.nav em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--dim); background: #101a21; border: 1px solid var(--line); padding: 1px 7px; border-radius: 20px; }
.nav a.active em { color: #9dffc4; border-color: #1e4930; background: #0d2a1c; }
.side-foot { margin-top: auto; padding: 12px 4px 2px; display: flex; flex-direction: column; gap: 8px; }
.mode-badge { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); padding: 7px 10px; border-radius: 10px; background: #0c141a; }
.mode-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px currentColor; }
.mode-badge.live i { background: var(--green); }
.mode-badge.sim i { background: var(--amber); }
.side-version { font-size: 10.5px; color: var(--dim); padding-left: 4px; }

/* ---------- topbar ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(8,13,18,.72); backdrop-filter: blur(10px); }
.burger { display: none; }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 9px; background: #0d151b; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; color: var(--dim); }
.search:focus-within { border-color: #2a6c45; box-shadow: 0 0 0 3px rgba(32,209,107,.08); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); }
.search input::placeholder { color: var(--dim); }
kbd { font: 10px var(--mono); color: var(--dim); border: 1px solid var(--line2); border-radius: 5px; padding: 2px 5px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.user-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.user-chip .avatar { width: 28px; height: 28px; font-size: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; border: 1px solid var(--line);
  background: #111b22; color: var(--text); padding: 9px 13px; font-weight: 600; font-size: 13px; white-space: nowrap;
}
.btn:hover { background: #16232c; border-color: var(--line2); }
.btn.primary { background: linear-gradient(180deg, #25d873, #15ab58); border-color: #25d873; color: #03240f; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.danger { background: #2a1216; border-color: #56232b; color: #ffb3ba; }
.btn.danger:hover { background: #38171d; }
.btn.sm { padding: 6px 9px; font-size: 12px; border-radius: 8px; }
.btn.wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #0e171d; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: #17242c; }
.icon-btn.sm { width: 29px; height: 29px; }
.icon-btn.danger:hover { color: var(--red); border-color: #5a2830; }

/* ---------- view ---------- */
.view { padding: 22px; overflow-y: auto; flex: 1; min-height: 0; }
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 23px; letter-spacing: -.4px; }
.page-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.page-head .spacer { flex: 1; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 14px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: linear-gradient(180deg, #0f181f, #0c141a); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.tight { padding: 12px; }
.card h3 { margin: 0 0 2px; font-size: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head .spacer { flex: 1; }
.stat { display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.stat .stat-label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.stat .stat-value { font-size: 30px; font-weight: 750; letter-spacing: -.9px; line-height: 1; }
.stat .stat-sub { color: var(--dim); font-size: 11.5px; }
.stat.green .stat-value { color: #74f2a8; }
.stat.amber .stat-value { color: var(--amber); }
.stat.red .stat-value { color: #ff8c96; }
.stat .spark { position: absolute; right: 12px; bottom: 10px; opacity: .18; }
.stat .spark .i { width: 42px; height: 42px; }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding-top: 6px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: flex-end; height: 100%; }
.bars .bar i { width: 100%; background: linear-gradient(180deg, #2ce27d, #11603a); border-radius: 5px 5px 2px 2px; min-height: 4px; opacity: .85; }
.bars .bar small { color: var(--dim); font-size: 9.5px; }

.dist { display: flex; flex-direction: column; gap: 9px; }
.dist-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.dist-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.dist-row .num { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.dist-row .track { flex: 1; height: 5px; background: #16232b; border-radius: 4px; overflow: hidden; max-width: 150px; }
.dist-row .track i { display: block; height: 100%; border-radius: 4px; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 3px 9px; font-size: 11px; font-weight: 650; border: 1px solid var(--line2); background: #121c23; color: var(--muted); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.green { color: #7ff3b0; border-color: #1b5034; background: #0c2919; }
.pill.amber { color: #ffd483; border-color: #5a4520; background: #2a2010; }
.pill.red { color: #ff9da6; border-color: #5a2830; background: #2a1115; }
.pill.blue { color: #9ed2ff; border-color: #234968; background: #0f2333; }
.pill.violet { color: #c9b6ff; border-color: #3f3266; background: #1a1530; }
.pill.gray { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: #12202a; border: 1px solid #1e3442; color: #a3c4d4; font-size: 10.5px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------- table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0c141a; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--dim); padding: 11px 12px; background: #0a1218; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 650; }
.table td { padding: 11px 12px; border-bottom: 1px solid #14212a; vertical-align: middle; }
.table tbody tr { transition: background .12s; cursor: pointer; }
.table tbody tr:hover { background: #101c24; }
.table tbody tr.selected { background: #0d2418; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; color: var(--muted); }
.phone-cell { display: flex; align-items: center; gap: 10px; min-width: 165px; }
.avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #14262f; color: #8dd9b2; border: 1px solid #1c3a2c; flex: none; }
.avatar.round { border-radius: 50%; }
.phone-cell b { display: block; font-size: 13px; letter-spacing: .2px; }
.phone-cell small { color: var(--dim); font-size: 11px; display: block; }
.health { display: flex; align-items: center; gap: 8px; min-width: 92px; }
.health .track { flex: 1; height: 5px; background: #17242c; border-radius: 4px; overflow: hidden; }
.health .track i { display: block; height: 100%; border-radius: 4px; }
.health b { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 24px; }
.risk { font-weight: 700; font-variant-numeric: tabular-nums; }
.risk.low { color: #7ff3b0; }
.risk.mid { color: var(--amber); }
.risk.high { color: #ff8c96; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.check { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .i { width: 38px; height: 38px; color: var(--dim); margin-bottom: 8px; }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }
.empty p { margin: 0 0 14px; font-size: 12.5px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 13px; }
.toolbar .field { min-width: 130px; }
.toolbar .spacer { flex: 1; }
.input, .select, .textarea {
  background: #0d161c; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; outline: 0; color: var(--text); width: 100%;
}
.input:focus, .select:focus, .textarea:focus { border-color: #2a6c45; box-shadow: 0 0 0 3px rgba(32,209,107,.08); }
.textarea { min-height: 92px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.hint { color: var(--dim); font-size: 11.5px; }
.bulkbar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #0e2a1c; border: 1px solid #1d4c31; border-radius: 10px; margin-bottom: 11px; flex-wrap: wrap; }
.bulkbar b { color: #a9ffcb; }

/* ---------- fields ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field > label { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
.field .hint { margin-top: -1px; }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.switch-row .spacer { flex: 1; }
.switch { position: relative; width: 38px; height: 21px; border-radius: 20px; background: #1b2b34; border: 1px solid #263b47; transition: .15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #7f95a1; transition: .15s; }
.switch.on { background: #0f5a32; border-color: #1d8c51; }
.switch.on::after { left: 19px; background: #8effbc; }
.switch-row > div b { font-size: 13px; display: block; }
.switch-row > div small { color: var(--dim); font-size: 11px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(2,6,9,.6); backdrop-filter: blur(2px); z-index: 40; animation: fade .16s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 94vw); background: #0b1319; border-left: 1px solid var(--line2);
  z-index: 41; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: slide .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes slide { from { transform: translateX(30px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.drawer-head .who { flex: 1; min-width: 0; }
.drawer-head h2 { margin: 0; font-size: 19px; letter-spacing: -.2px; }
.drawer-head .sub { color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; background: #0a1218; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 11px 11px; font-size: 12.5px; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: #9dffc4; border-color: var(--green); }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: #0a1218; }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: var(--dim); margin: 18px 0 9px; font-weight: 700; }
.section-title:first-child { margin-top: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 7px 12px; font-size: 12.5px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--text); word-break: break-word; }
.mono { font-family: var(--mono); font-size: 11.5px; }

/* ---------- code / security ---------- */
.code-panel { border: 1px dashed #27553b; background: linear-gradient(180deg, #0d2a1b, #0b1d14); border-radius: 14px; padding: 18px; text-align: center; }
.code-panel .code { font: 700 32px/1.2 var(--mono); letter-spacing: 5px; color: #b5ffd2; text-shadow: 0 0 22px rgba(32,209,107,.35); }
.code-panel .meta { color: var(--muted); font-size: 12px; margin: 7px 0 12px; }
.code-panel .actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.code-note { font-size: 11.5px; color: var(--dim); margin-top: 10px; }
.timer { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--amber); }

.banner { display: flex; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 12.5px; border: 1px solid; align-items: flex-start; }
.banner .i { margin-top: 1px; }
.banner.warn { background: #241c0e; border-color: #57431d; color: #ffd894; }
.banner.bad { background: #261215; border-color: #57242c; color: #ffb0b8; }
.banner.good { background: #0d2418; border-color: #1f4d33; color: #a6f5c6; }
.banner.info { background: #0f1f2c; border-color: #21455f; color: #a9d7ff; }

/* ---------- device card ---------- */
.dev-card { border: 1px solid var(--line); background: #0d161c; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dev-top { display: flex; gap: 9px; align-items: center; }
.dev-top .i { width: 26px; height: 26px; color: #86d9ff; }
.dev-top b { font-size: 13px; display: block; }
.dev-top small { color: var(--dim); font-size: 10.5px; }
.dev-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.dev-ua { font: 10px/1.4 var(--mono); color: var(--dim); max-height: 44px; overflow: hidden; word-break: break-all; }
.score-ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 3px solid; margin-left: auto; flex: none; }
.score-ring.s100 { border-color: #22c26a; color: #8bffb9; }
.score-ring.s80 { border-color: #a6b93c; color: #e6f18d; }
.score-ring.s60 { border-color: #d79a35; color: #ffd08a; }
.score-ring.s40 { border-color: #d1613a; color: #ffb298; }
.score-ring.s0 { border-color: #b93a45; color: #ff9aa2; }

/* ---------- modal ---------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(2,6,9,.68); z-index: 50; display: grid; place-items: center; padding: 18px; animation: fade .14s; }
.modal { width: min(560px, 96vw); max-height: 90vh; overflow: auto; background: #0d151c; border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); animation: pop .16s; }
.modal.wide { width: min(820px, 96vw); }
@keyframes pop { from { transform: scale(.97); opacity: .5; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; flex: 1; }
.modal-body { padding: 17px; }
.modal-foot { padding: 13px 17px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.modal-note { font-size: 12px; color: var(--muted); margin: 0 0 12px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 80; max-width: 380px; }
.toast { display: flex; gap: 10px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line2); background: #111d25; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 12.5px; animation: pop .15s; align-items: flex-start; }
.toast .i { margin-top: 1px; }
.toast.success { border-color: #1f5638; background: #0e2418; color: #b6ffd2; }
.toast.error { border-color: #5a2830; background: #241115; color: #ffb9c0; }
.toast.warning { border-color: #5a4520; background: #231a0c; color: #ffd99a; }
.toast .close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; padding: 0; }
.toast .close:hover { opacity: 1; }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4,8,11,.92); backdrop-filter: blur(6px); }
.gate.hidden { display: none; }
.gate-card { width: min(370px, 92vw); background: #0d151c; border: 1px solid var(--line2); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.gate-card h2 { margin: 0; font-size: 19px; }
.gate-card p { margin: 0; color: var(--muted); font-size: 12.5px; }
.gate-card small { color: var(--dim); font-size: 11px; text-align: center; }
.gate-mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #12241a; border: 1px solid #1f4a31; color: #8dffb8; }

/* ---------- misc ---------- */
.progress { height: 6px; border-radius: 4px; background: #16232b; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #23c96b, #7cedaa); border-radius: 4px; }
.event { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #131f27; font-size: 12.5px; align-items: flex-start; }
.event:last-child { border-bottom: 0; }
.event .ico { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; flex: none; background: #12202a; color: var(--muted); }
.event.error .ico { background: #2a1216; color: #ff9aa2; }
.event.warning .ico { background: #2a2010; color: #ffd08a; }
.event.success .ico { background: #0d2a1b; color: #8dffb8; }
.event .body { flex: 1; min-width: 0; }
.event .body b { font-weight: 600; }
.event time { color: var(--dim); font-size: 10.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.event .meta { color: var(--dim); font-size: 10.5px; }
.attn { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid #131f27; align-items: center; font-size: 12.5px; }
.attn:last-child { border-bottom: 0; }
.attn .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.attn .spacer { flex: 1; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--dim); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.skel { background: linear-gradient(90deg, #101a21, #17242c, #101a21); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 8px; }
@keyframes sh { to { background-position: -200% 0; } }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.list-clean { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.hidden { display: none !important; }
.mt { margin-top: 12px; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

@media (max-width: 1150px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; z-index: 45; transform: translateX(-102%); transition: transform .18s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .burger { display: grid; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .top-actions span { display: none; }
  .search kbd { display: none; }
  .view { padding: 14px; }
  .table-wrap { overflow-x: auto; }
  .table { min-width: 900px; }
}
