:root {
  --bg: #070a0d;
  --surface: #0c1218;
  --surface2: #111a22;
  --surface3: #162130;
  --border: #1b2a35;
  --border2: #273d4c;
  --text: #e8e4dc;
  --muted: #8fa0ac;
  --quiet: #4e6070;
  --gold: #d4a84e;
  --gold-glow: rgba(212,168,78,.14);
  --gold-border: rgba(212,168,78,.28);
  --green: #52c47a;
  --cyan: #45c2d8;
  --red: #d96760;
  --amber: #e0a42e;
  --blue: #5b98d4;
  --purple: #9b7de8;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, 'Courier New', monospace;
  --r: 8px;
  --r-sm: 5px;
  --r-lg: 12px;
  --ease: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(212,168,78,.055) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(69,194,216,.03) 0%, transparent 55%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ─── Shell & Topbar ─────────────────────────────── */
.shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,10,13,.88);
  backdrop-filter: blur(24px) saturate(160%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold-border);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(212,168,78,.12);
}

.brand-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-text span {
  display: block;
  margin-top: 2px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.top-actions { display: flex; gap: 8px; align-items: center; }

/* ─── Layout ─────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 222px minmax(0,1fr);
}

/* ─── Navigation ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  padding: 18px 10px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: rgba(9,13,18,.75);
}

.nav-group { margin-bottom: 4px; }

.nav-group-label {
  display: block;
  padding: 10px 12px 5px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 1px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  transition: background var(--ease), color var(--ease);
}

.nav-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  opacity: .45;
  transition: opacity var(--ease);
}

.nav button:hover {
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.nav button:hover .nav-icon { opacity: .7; }

.nav button.active {
  background: var(--gold-glow);
  color: var(--gold);
  font-weight: 500;
}

.nav button.active .nav-icon { opacity: 1; }

.nav-divider {
  margin: 10px 12px;
  border: 0;
  border-top: 1px solid var(--border);
}

/* ─── Content ────────────────────────────────────── */
.content { min-width: 0; padding: 30px 32px; }

.view { display: none; }
.view.active { display: block; }

/* ─── Page Head ──────────────────────────────────── */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.eyebrow {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 7px 0 0;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.page-head p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 0 14px;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.btn.primary {
  border-color: var(--gold-border);
  background: var(--gold);
  color: #0a0600;
  font-weight: 700;
}

.btn.primary:hover {
  background: #deb85c;
  border-color: #deb85c;
  color: #0a0600;
}

/* ─── Stat Grid ──────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
}

.stat {
  padding: 18px 18px 16px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  cursor: default;
}

.stat:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}

.stat span {
  display: block;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 18px;
  font: 700 26px/1 var(--mono);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.stat small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* ─── Sections ───────────────────────────────────── */
.section { margin-top: 30px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.section-note {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
}

/* ─── Service Cards ──────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}

.service {
  padding: 16px 18px 18px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  border-top-width: 2px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.service:hover { box-shadow: 0 4px 16px rgba(0,0,0,.24); }

.service.up { border-top-color: var(--green); }
.service.degraded { border-top-color: var(--amber); }
.service.down { border-top-color: var(--red); }

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.service h3 { margin: 0; font-size: 13px; font-weight: 600; }

.service p {
  margin: 0 0 5px;
  color: var(--muted);
  font: 11px/1.4 var(--mono);
}

.service small {
  display: block;
  color: var(--quiet);
  font-size: 11px;
}

/* ─── Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge.up, .badge.active, .badge.live {
  color: var(--green);
  background: rgba(82,196,122,.1);
  border-color: rgba(82,196,122,.22);
}
.badge.down, .badge.error, .badge.past_due, .badge.high {
  color: var(--red);
  background: rgba(217,103,96,.1);
  border-color: rgba(217,103,96,.22);
}
.badge.degraded, .badge.in_review, .badge.normal, .badge.warning {
  color: var(--amber);
  background: rgba(224,164,46,.1);
  border-color: rgba(224,164,46,.22);
}
.badge.owner, .badge.max {
  color: var(--gold);
  background: rgba(212,168,78,.12);
  border-color: var(--gold-border);
}
.badge.pro {
  color: var(--cyan);
  background: rgba(69,194,216,.1);
  border-color: rgba(69,194,216,.22);
}
.badge.open {
  color: var(--blue);
  background: rgba(91,152,212,.1);
  border-color: rgba(91,152,212,.22);
}
.badge.free, .badge.cancelled, .badge.low {
  color: var(--quiet);
  background: rgba(78,96,112,.1);
  border-color: rgba(78,96,112,.22);
}
.badge.resolved {
  color: var(--quiet);
  background: transparent;
  border-color: var(--border2);
}

/* ─── Tables ─────────────────────────────────────── */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

thead { position: sticky; top: 0; z-index: 1; }

th, td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  text-align: left;
}

th {
  background: rgba(9,13,18,.98);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

td { color: var(--muted); }
td strong { color: var(--text); font-weight: 600; }

tbody tr { transition: background var(--ease); }
tbody tr:hover { background: rgba(255,255,255,.022); }
tr:last-child td { border-bottom: 0; }

.email {
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
}

.empty {
  padding: 44px 24px;
  text-align: center;
  color: var(--quiet);
  font-size: 13px;
}

/* ─── Subscription bars ──────────────────────────── */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }

.bars {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}

.bar-row {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) 44px;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.bar-row:hover { background: rgba(255,255,255,.022); }
.bar-row:last-child { border-bottom: 0; }

.bar-row span, .bar-row b { font: 11.5px var(--mono); }
.bar-row span { color: var(--muted); }

.bar {
  height: 5px;
  border-radius: 3px;
  background: var(--surface3);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--gold);
  transition: width .7s cubic-bezier(.4,0,.2,1);
}

.bar-row b { text-align: right; color: var(--text); }

/* ─── Mix strip ──────────────────────────────────── */
.mix-strip {
  padding: 17px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

.mix-track {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface3);
}

.mix-segment { display: block; height: 100%; }
.mix-segment.free { background: var(--quiet); }
.mix-segment.pro { background: var(--cyan); }
.mix-segment.max { background: var(--gold); }

.mix-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 15px;
}

.mix-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mix-cell span, .mix-cell b { font: 11.5px var(--mono); }

.mix-cell span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.mix-cell span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--quiet);
}

.mix-cell.pro span::before { background: var(--cyan); }
.mix-cell.max span::before { background: var(--gold); }
.mix-cell b { color: var(--text); }
.mix-cell small { margin-left: 5px; color: var(--quiet); font: 10px var(--mono); }

/* ─── Feedback tickets ───────────────────────────── */
.ticket-list { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }

.ticket {
  display: grid;
  grid-template-columns: 156px minmax(0,1fr) 218px;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--ease);
}

.ticket:hover { border-color: var(--border2); }

.ticket-meta {
  color: var(--quiet);
  font: 10.5px/1.85 var(--mono);
  text-transform: uppercase;
}

.ticket h3 { margin: 0 0 7px; font-size: 15px; font-weight: 600; }
.ticket p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; white-space: pre-wrap; }

.ticket-side { display: grid; gap: 7px; align-content: start; }

.ticket-side select, .ticket-side textarea {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  background: var(--surface2);
  color: var(--muted);
  font-size: 12px;
  transition: border-color var(--ease);
}

.ticket-side select:focus, .ticket-side textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.ticket-side select { height: 33px; padding: 0 9px; }
.ticket-side textarea { min-height: 66px; padding: 8px; resize: vertical; }

/* ─── Login / Feedback pages ─────────────────────── */
.login-page, .feedback-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(212,168,78,.07) 0%, transparent 65%),
    var(--bg);
}

.auth-panel {
  width: min(100%, 430px);
  padding: 30px 32px 32px;
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface2) 100%);
  box-shadow: 0 32px 60px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}

.auth-panel .brand { margin-bottom: 6px; }

.auth-panel h1 {
  margin: 20px 0 9px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.auth-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.field { display: grid; gap: 7px; margin-top: 15px; }

.field label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  background: rgba(7,10,13,.8);
  color: var(--text);
  padding: 11px 13px;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(7,10,13,1);
  box-shadow: 0 0 0 3px rgba(212,168,78,.1);
}

.field textarea { min-height: 128px; resize: vertical; }
.field select { height: 42px; padding: 0 13px; }

.auth-panel .btn { width: 100%; margin-top: 20px; justify-content: center; min-height: 42px; font-size: 11px; }

.notice { margin-top: 14px; color: var(--quiet); font-size: 12px; line-height: 1.55; }
.error { color: var(--red); }
.success { color: var(--green); }
.honeypot { position: absolute; left: -9999px; }

/* ─── Loading ─────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 52px 32px;
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.loading::before {
  content: '';
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--border2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Asset Management ───────────────────────────── */
.asset-intro {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  background: var(--gold-glow);
  margin-bottom: 28px;
}

.asset-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.asset-intro strong { color: var(--gold); }

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.protocol-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px dashed var(--border2);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--ease), background var(--ease);
}

.protocol-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  border-style: solid;
}

.protocol-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.protocol-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.protocol-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
}

.protocol-name h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.protocol-name span { font-size: 11px; color: var(--quiet); font-family: var(--mono); }

.protocol-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.protocol-stat span {
  display: block;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.protocol-stat b {
  font: 600 18px var(--mono);
  color: var(--border2);
  letter-spacing: -.01em;
}

.asset-coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 52px 24px;
  text-align: center;
  border: 1px dashed var(--border2);
  border-radius: var(--r);
  background: var(--surface);
}

.asset-coming-icon {
  width: 40px;
  height: 40px;
  color: var(--quiet);
}

.asset-coming h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.asset-coming p {
  margin: 0;
  max-width: 320px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ─── Width classes for bar charts ───────────────── */
.pct-0{width:0%}.pct-1{width:1%}.pct-2{width:2%}.pct-3{width:3%}.pct-4{width:4%}.pct-5{width:5%}.pct-6{width:6%}.pct-7{width:7%}.pct-8{width:8%}.pct-9{width:9%}.pct-10{width:10%}.pct-11{width:11%}.pct-12{width:12%}.pct-13{width:13%}.pct-14{width:14%}.pct-15{width:15%}.pct-16{width:16%}.pct-17{width:17%}.pct-18{width:18%}.pct-19{width:19%}.pct-20{width:20%}.pct-21{width:21%}.pct-22{width:22%}.pct-23{width:23%}.pct-24{width:24%}.pct-25{width:25%}.pct-26{width:26%}.pct-27{width:27%}.pct-28{width:28%}.pct-29{width:29%}.pct-30{width:30%}.pct-31{width:31%}.pct-32{width:32%}.pct-33{width:33%}.pct-34{width:34%}.pct-35{width:35%}.pct-36{width:36%}.pct-37{width:37%}.pct-38{width:38%}.pct-39{width:39%}.pct-40{width:40%}.pct-41{width:41%}.pct-42{width:42%}.pct-43{width:43%}.pct-44{width:44%}.pct-45{width:45%}.pct-46{width:46%}.pct-47{width:47%}.pct-48{width:48%}.pct-49{width:49%}.pct-50{width:50%}.pct-51{width:51%}.pct-52{width:52%}.pct-53{width:53%}.pct-54{width:54%}.pct-55{width:55%}.pct-56{width:56%}.pct-57{width:57%}.pct-58{width:58%}.pct-59{width:59%}.pct-60{width:60%}.pct-61{width:61%}.pct-62{width:62%}.pct-63{width:63%}.pct-64{width:64%}.pct-65{width:65%}.pct-66{width:66%}.pct-67{width:67%}.pct-68{width:68%}.pct-69{width:69%}.pct-70{width:70%}.pct-71{width:71%}.pct-72{width:72%}.pct-73{width:73%}.pct-74{width:74%}.pct-75{width:75%}.pct-76{width:76%}.pct-77{width:77%}.pct-78{width:78%}.pct-79{width:79%}.pct-80{width:80%}.pct-81{width:81%}.pct-82{width:82%}.pct-83{width:83%}.pct-84{width:84%}.pct-85{width:85%}.pct-86{width:86%}.pct-87{width:87%}.pct-88{width:88%}.pct-89{width:89%}.pct-90{width:90%}.pct-91{width:91%}.pct-92{width:92%}.pct-93{width:93%}.pct-94{width:94%}.pct-95{width:95%}.pct-96{width:96%}.pct-97{width:97%}.pct-98{width:98%}.pct-99{width:99%}.pct-100{width:100%}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .protocol-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 140px minmax(0,1fr); }
  .ticket-side { grid-column: 2; }
}

@media (max-width: 760px) {
  .topbar { min-height: 54px; padding: 0 14px; }
  .brand-text span { display: none; }
  .layout { display: block; }
  .nav {
    position: sticky;
    top: 54px;
    z-index: 2;
    display: flex;
    height: auto;
    gap: 2px;
    overflow-x: auto;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(9,13,18,.95);
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-group { display: contents; }
  .nav-group-label, .nav-divider { display: none; }
  .nav button {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 0;
  }
  .nav-icon { display: none; }
  .nav button.active { background: var(--gold-glow); }
  .content { padding: 20px 16px; }
  .page-head { display: block; }
  .page-head p { margin-top: 9px; }
  .page-head h1 { font-size: 26px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat { padding: 15px 16px 14px; }
  .stat strong { margin-top: 16px; font-size: 23px; }
  .service-grid { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: 1fr; }
  .mix-legend { gap: 10px; }
  .mix-cell { display: grid; gap: 4px; }
  .ticket { display: block; }
  .ticket h3 { margin-top: 10px; }
  .ticket-side { margin-top: 14px; }
  .top-actions .btn:first-child { display: none; }
  .auth-panel { padding: 24px 22px 26px; }
}
