:root {
  --bg: #03070c; --panel: rgba(10, 28, 42, 0.72); --line: rgba(34, 211, 238, 0.22); --glow: rgba(34, 211, 238, 0.35);
  --cyan: #22d3ee; --amber: #f59e0b; --text: #d8f6ff; --muted: #6f93a4; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { min-height: 100vh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
a { color: var(--cyan); }
.hq {
  max-width: 1280px; margin: 0 auto; padding: clamp(14px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; min-height: 100vh;
  background: radial-gradient(1200px 500px at 10% -10%, rgba(34, 211, 238, 0.10), transparent 60%), radial-gradient(900px 400px at 110% 10%, rgba(59, 130, 246, 0.10), transparent 60%), linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px) 0 0 / 100% 28px;
}
.hq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
h1 { margin: 0; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: clamp(18px, 3.4vw, 26px); color: var(--cyan); text-shadow: 0 0 18px var(--glow); }
.online { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid var(--glow); border-radius: 999px; padding: 9px 16px; cursor: pointer; text-decoration: none; box-shadow: 0 0 14px rgba(34, 211, 238, 0.12); }
.btn:hover { background: rgba(34, 211, 238, 0.16); }
.btn.ghost { color: var(--muted); border-color: var(--line); box-shadow: none; }
.btn.big { font-size: 14px; padding: 14px 26px; display: inline-block; }
.btn.mic.listening { background: rgba(248, 113, 113, 0.18); color: #fff; border-color: var(--bad); box-shadow: 0 0 18px rgba(248, 113, 113, 0.4); }
.heard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; background: rgba(3, 12, 20, 0.7); }
.heard b { color: var(--cyan); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tabs button, .seg button { font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.tabs button[aria-selected='true'], .seg button[aria-selected='true'] { color: var(--cyan); border-color: var(--glow); background: rgba(34, 211, 238, 0.10); box-shadow: 0 0 16px rgba(34, 211, 238, 0.18); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sec { display: flex; flex-direction: column; gap: 18px; }
.sub { font-size: 12px; color: var(--cyan); opacity: .8; text-transform: uppercase; letter-spacing: .14em; margin: 6px 0 -6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; position: relative; backdrop-filter: blur(6px); }
.card::before { content: ''; position: absolute; top: -1px; left: 16px; width: 42px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); border-radius: 2px; }
.card h3 { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--cyan); font-weight: 600; }
.signin { text-align: center; padding: 48px 20px; }
.signin h2 { color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kpi .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.kpi .value { font-family: var(--mono); font-size: clamp(20px, 3vw, 26px); color: #fff; text-shadow: 0 0 14px var(--glow); margin-top: 6px; }
.kpi .subv { color: var(--muted); font-size: 12px; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover td { background: rgba(34, 211, 238, 0.05); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.unread td { font-weight: 600; color: #fff; }
.empty td { color: var(--muted); font-style: italic; }
.note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.pill { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 12px; border: 1px solid currentColor; white-space: nowrap; }
.good { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alerts li { border-left: 3px solid var(--bad); padding-left: 12px; }
.alerts li.ok { border-color: var(--ok); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.bar-row .lbl { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .trk { height: 18px; border-radius: 4px; background: rgba(34, 211, 238, 0.06); overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--cyan); box-shadow: 0 0 10px var(--glow); border-radius: 4px; }
.bar-row .fill.amber { background: var(--amber); box-shadow: none; }
.bar-row .v { font-family: var(--mono); }
.months { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.month { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: 11px; color: var(--muted); }
.month .pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.month .b { width: 40%; min-height: 1px; border-radius: 3px 3px 0 0; }
.month .b.in { background: var(--cyan); box-shadow: 0 0 8px var(--glow); }
.month .b.out { background: var(--amber); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ccard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(3, 12, 20, 0.6); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ccard h4 { margin: 0; font-size: 15px; color: #fff; }
.ccard .row { display: flex; justify-content: space-between; gap: 8px; }
.ccard .row span:first-child { color: var(--muted); }
.prog { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ok); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.filters input, .filters select { font: inherit; color: var(--text); background: rgba(3, 7, 12, 0.85); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; flex: 1 1 160px; min-width: 0; }
.big-kpi .value { font-size: clamp(30px, 6vw, 44px); }
ul.roster { columns: 2 240px; font-size: 13px; margin: 0; padding-left: 1.1em; }
ul.roster li { margin-bottom: 6px; break-inside: avoid; }
.err { color: var(--bad); font-size: 12px; }
