/* ══════════════════════════════════════════════════════════
   AutoTest Dashboard — Shared Styles
   ══════════════════════════════════════════════════════════ */

/* ── Reset & Vars ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:          #111827;
  --bg-surface:  #1e293b;
  --bg-card:     rgba(30, 41, 59, 0.85);
  --bg-card-h:   rgba(40, 54, 78, 0.9);
  --border:      rgba(255,255,255,0.12);
  --text:        #f1f5f9;
  --text2:       #cbd5e1;
  --text3:       #94a3b8;
  --accent:      #22d3ee;
  --accent-g:    rgba(34,211,238,0.25);
  --ok:          #34d399;
  --ok-g:        rgba(52,211,153,0.25);
  --fail:        #f87171;
  --fail-g:      rgba(248,113,113,0.25);
  --warn:        #fbbf24;
  --warn-g:      rgba(251,191,36,0.25);
  --purple:      #a78bfa;
  --purple-g:    rgba(167,139,250,0.25);
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,0.35);
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:        'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
html { font-size: 15px; }
body { font-family: var(--font); color: var(--text); background: var(--bg);
       min-height: 100vh; overflow-x: hidden; }

/* ── Animated background ──────────────────────────────── */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(34,211,238,.1), transparent),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(167,139,250,.08), transparent),
              radial-gradient(ellipse 50% 40% at 50% 50%, rgba(52,211,153,.06), transparent);
  animation: bgShift 20s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0%   { opacity: .6; transform: scale(1); }
  100% { opacity: 1;  transform: scale(1.08); }
}

/* ── Header ───────────────────────────────────────────── */
header {
  background: linear-gradient(135deg, #1a2235 0%, #1e3050 40%, #1a2540 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; gap: .75rem; }
.logo a { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 0 20px var(--accent-g);
}
.logo h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.live-badge {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--ok); font-weight: 600;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2);
  padding: .3rem .75rem; border-radius: 20px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--ok-g); } 50% { box-shadow: 0 0 0 8px transparent; } }
.refresh-label { font-size: .8rem; color: var(--text3); }

/* ── Navigation ───────────────────────────────────────── */
nav#main-nav {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky; top: 57px; z-index: 99;
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; gap: .25rem; padding: .45rem 2rem;
}
.nav-link {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600; color: var(--text3);
  text-decoration: none; transition: var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,.06); color: var(--text); }
.nav-link.active { background: rgba(34,211,238,.12); color: var(--accent); }
.nav-icon { font-size: 1rem; }

/* ── Main layout ──────────────────────────────────────── */
main { max-width: 1440px; margin: 0 auto; padding: 1.5rem 2rem 4rem; }

/* ── KPI Cards ────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.kpi-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  backdrop-filter: blur(12px); position: relative; overflow: hidden;
  transition: var(--transition);
  animation: fadeUp .6s ease-out both;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.kpi-card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent), var(--purple)); }
.kpi-card:nth-child(2)::before { background: linear-gradient(90deg, var(--ok), #34d399); }
.kpi-card:nth-child(3)::before { background: linear-gradient(90deg, var(--fail), #f97316); }
.kpi-card:nth-child(4)::before { background: linear-gradient(90deg, var(--warn), #fbbf24); }
.kpi-card:nth-child(5)::before { background: linear-gradient(90deg, var(--ok), var(--fail)); }
.kpi-card:nth-child(1) { animation-delay: 0s; }
.kpi-card:nth-child(2) { animation-delay: .08s; }
.kpi-card:nth-child(3) { animation-delay: .16s; }
.kpi-card:nth-child(4) { animation-delay: .24s; }
.kpi-card:nth-child(5) { animation-delay: .32s; }
.kpi-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.1);
  box-shadow: var(--shadow); }
.kpi-label { font-size: .78rem; color: var(--text2); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.kpi-value { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi-sub { font-size: .78rem; color: var(--text3); margin-top: .4rem; }
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ── Charts ───────────────────────────────────────────── */
.charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.chart-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px); animation: fadeUp .6s ease-out .3s both;
}
.chart-card h3 { font-size: .9rem; color: var(--text2); font-weight: 600;
  margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.chart-wrap { position: relative; height: 240px; }

/* ── Runs Section ─────────────────────────────────────── */
.runs-section { animation: fadeUp .6s ease-out .4s both; }
.runs-header { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; }
.runs-header h2 { font-size: 1.1rem; font-weight: 700; }
.runs-header .run-count { color: var(--text3); font-size: .85rem; }

/* ── Runs Filter Bar ─────────────────────────────────── */
.runs-filter-bar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-bottom: 1rem; padding: .85rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(12px);
}
.filter-search {
  flex: 1; min-width: 200px; max-width: 340px;
  padding: .45rem .75rem; font-size: .82rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(0,0,0,.2); color: var(--text);
  font-family: var(--font); outline: none; transition: var(--transition);
}
.filter-search::placeholder { color: var(--text3); }
.filter-search:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-g); }
.filter-sep { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.filter-group { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.filter-group-label {
  font-size: .7rem; color: var(--text3); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin-right: .25rem;
}
.tag-pill {
  font-size: .68rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 12px; border: 1px solid rgba(99,102,241,.25);
  background: rgba(99,102,241,.08); color: #818cf8;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font); user-select: none;
}
.tag-pill:hover { background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.4); }
.tag-pill.active { background: rgba(99,102,241,.3); border-color: #818cf8; color: #a5b4fc; }
.status-chip {
  font-size: .72rem; font-weight: 600; padding: .25rem .6rem;
  border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text3);
  cursor: pointer; transition: var(--transition); font-family: var(--font);
}
.status-chip:hover { background: rgba(255,255,255,.1); color: var(--text); }
.status-chip.active { background: rgba(255,255,255,.12); color: var(--text); border-color: rgba(255,255,255,.25); }
.filter-clear {
  font-size: .72rem; color: var(--accent); cursor: pointer;
  font-weight: 600; margin-left: auto; opacity: 0; pointer-events: none;
  transition: var(--transition); font-family: var(--font);
  background: none; border: none;
}
.filter-clear.visible { opacity: 1; pointer-events: auto; }
.filter-clear:hover { text-decoration: underline; }
.runs-filter-summary {
  font-size: .78rem; color: var(--text3); margin-bottom: .5rem; display: none;
}
.runs-filter-summary.visible { display: block; }

.runs-table { width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(12px); }
.runs-table th {
  text-align: left; padding: .85rem 1rem; font-size: .75rem;
  color: var(--text2); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.15);
}
.runs-table td { padding: .75rem 1rem; font-size: .85rem;
  border-bottom: 1px solid var(--border); vertical-align: middle; }
.runs-table tbody tr { cursor: pointer; transition: var(--transition); }
.runs-table tbody tr:hover { background: var(--bg-card-h); }
.runs-table tbody tr:last-child td { border-bottom: none; }

/* ── Status badges ────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem; border-radius: 20px; font-size: .72rem;
  font-weight: 700; letter-spacing: .02em;
}
.badge-pass  { background: var(--ok-g);   color: var(--ok); }
.badge-diff  { background: var(--fail-g); color: var(--fail); }
.badge-error { background: var(--warn-g); color: var(--warn); }
.badge-master{ background: var(--purple-g); color: var(--purple); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-pass  .badge-dot { background: var(--ok); }
.badge-diff  .badge-dot { background: var(--fail); }
.badge-error .badge-dot { background: var(--warn); }
.badge-master .badge-dot{ background: var(--purple); }

/* ── Expanded run row ─────────────────────────────────── */
.run-detail { display: none; }
.run-detail.open { display: table-row; }
.run-detail td { padding: 0; background: rgba(0,0,0,.1); }
.detail-inner { padding: 1rem 1.5rem; }
/* ── Test results table ──────────────────────────────── */
.test-table-wrap { overflow-x: auto; }
.test-filters { display: flex; gap: .5rem; margin-bottom: .75rem; align-items: center; flex-wrap: wrap; }
.test-filters .filter-btn {
  font-size: .72rem; font-weight: 600; padding: .28rem .65rem;
  border-radius: 6px; border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--text3); cursor: pointer; transition: var(--transition);
  font-family: var(--font);
}
.test-filters .filter-btn:hover { background: rgba(255,255,255,.1); color: var(--text); }
.test-filters .filter-btn.active { background: rgba(255,255,255,.12); color: var(--text); border-color: rgba(255,255,255,.25); }
.test-filters .filter-count { font-size: .72rem; color: var(--text3); margin-left: auto; }
.test-table {
  width: 100%; border-collapse: collapse; font-size: .82rem;
}
.test-table th {
  text-align: left; font-weight: 600; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text3); padding: .45rem .6rem;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.test-table td {
  padding: .4rem .6rem; border-bottom: 1px solid rgba(255,255,255,.04);
  white-space: nowrap; color: var(--text2);
}
.test-table tr:hover td { background: rgba(255,255,255,.04); }
.test-table .status-cell { width: 80px; }
.test-table .status-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; padding: .18rem .55rem;
  border-radius: 4px;
}
.status-pill.s-pass  { color: var(--ok);     background: var(--ok-g); }
.status-pill.s-diff  { color: var(--fail);   background: var(--fail-g); }
.status-pill.s-error { color: var(--warn);   background: var(--warn-g); }
.status-pill.s-master{ color: var(--purple); background: var(--purple-g); }
.test-table .name-cell { font-weight: 600; color: var(--text); }
.test-table .dur-cell { color: var(--text3); font-variant-numeric: tabular-nums; }
.test-table .actions-cell { display: flex; gap: .4rem; }
.test-table .err-row td { padding-top:0; border-bottom: 1px solid rgba(255,255,255,.04); }
.test-table .err-msg { font-size: .72rem; color: var(--fail); max-width: 600px; overflow: hidden; text-overflow: ellipsis; }
.test-table .notes-row td { padding-top:0; border-bottom: 1px solid rgba(255,255,255,.04); }
.test-table .notes-msg { font-size: .72rem; color: var(--text3); font-style: italic; max-width: 600px; overflow: hidden; text-overflow: ellipsis; }
.tag {
  display: inline-block; font-size: .65rem; font-weight: 600;
  padding: .12rem .45rem; border-radius: 4px; margin-right: .3rem;
  background: rgba(99,102,241,.15); color: #818cf8;
  letter-spacing: .02em;
}
.btn-sm {
  font-size: .72rem; font-weight: 600; padding: .3rem .7rem;
  border-radius: 6px; border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--text2); cursor: pointer; transition: var(--transition);
  font-family: var(--font);
}
.btn-sm:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: var(--text); }

/* ── Download files modal ─────────────────────────────── */
.download-list {
  list-style: none; padding: 0; margin: 0;
}
.download-list li {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem; border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.download-list li:last-child { border-bottom: none; }
.download-list a {
  color: var(--accent); text-decoration: none; font-family: var(--mono);
  font-size: .78rem; word-break: break-all;
}
.download-list a:hover { text-decoration: underline; }
.download-list .dl-icon { font-size: 1rem; flex-shrink: 0; }
.btn-download {
  font-size: .72rem; font-weight: 600; padding: .3rem .7rem;
  border-radius: 6px; border: 1px solid rgba(34,211,238,.3);
  background: rgba(34,211,238,.08); color: var(--accent);
  cursor: pointer; transition: var(--transition); font-family: var(--font);
}
.btn-download:hover { background: rgba(34,211,238,.18); border-color: rgba(34,211,238,.5); }

/* ── Modal (Diff / Log viewer) ────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  animation: fadeIn .2s ease-out;
}
.modal-overlay.open { display: flex; justify-content: center; align-items: flex-start; padding: 3vh 2vw; }
.modal-box {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 1100px;
  height: 90vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.6); animation: slideUp .3s ease-out;
}
/* Wide modal variant for diff viewer */
.modal-box.modal-wide {
  max-width: 95vw;
  width: 95vw;
  height: 92vh;
  resize: both;
  overflow: auto;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.12);
}
.modal-head h3 { font-size: 1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text2); font-size: 1.1rem;
  cursor: pointer; transition: var(--transition); display: flex;
  align-items: center; justify-content: center; font-family: var(--font);
}
.modal-close:hover { background: rgba(239,68,68,.15); color: var(--fail); border-color: rgba(239,68,68,.3); }
.modal-body { overflow-y: auto; padding: 1.5rem; flex: 1; min-height: 0; }
.modal-body.modal-body-diff { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.modal-body.modal-body-diff .diff-viewer { flex: 1; min-height: 0; }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── Custom diff viewer (text-compare style) ─────────── */
.diff-viewer {
  display: flex; width: 100%; background: #f8fafc;
  border-radius: var(--radius-sm); overflow: hidden;
  font-family: var(--mono); font-size: .82rem; line-height: 1.65;
  color: #1e293b;
  height: 100%;
}
.diff-side { flex: 1; min-width: 0; overflow-x: auto; overflow-y: auto; }
.diff-source-side {
  flex: 0 0 30%; max-width: 30%; min-width: 200px;
  overflow-x: auto; overflow-y: auto;
  border-right: 3px solid #94a3b8;
}
.diff-side-header {
  position: sticky; top: 0; z-index: 2;
  background: #e2e8f0; padding: .5rem .75rem;
  font-weight: 700; font-size: .75rem; color: #475569;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid #cbd5e1;
}
.diff-gutter {
  width: 1px; background: #cbd5e1; flex-shrink: 0;
}
.diff-separator {
  width: 8px; min-width: 8px; background: #cbd5e1; flex-shrink: 0;
}
.diff-line {
  display: flex; min-height: 1.65em; border-bottom: 1px solid #f1f5f9;
}
.diff-line:last-child { border-bottom: none; }
.diff-line-num {
  width: 40px; min-width: 40px; text-align: right;
  padding: 0 8px 0 4px; color: #94a3b8; user-select: none;
  background: #f1f5f9; border-right: 1px solid #e2e8f0;
  font-size: .75rem;
}
.diff-line-text {
  flex: 1; padding: 0 10px; white-space: pre;
}
/* Highlight changed lines — master (expected) = green, output (actual) = red */
.diff-line.diff-ins { background: #d1fae5; }
.diff-line.diff-ins .diff-line-num { background: #a7f3d0; color: #047857; }
.diff-line.diff-del { background: #fee2e2; }
.diff-line.diff-del .diff-line-num { background: #fecaca; color: #b91c1c; }
/* Word-level highlight */
.diff-word-ins { background: #6ee7b7; border-radius: 2px; padding: 0 1px; }
.diff-word-del { background: #fca5a5; border-radius: 2px; padding: 0 1px; }

/* ── Log viewer ───────────────────────────────────────── */
.log-content {
  font-family: var(--mono); font-size: .78rem; color: var(--text);
  white-space: pre-wrap; word-break: break-all; line-height: 1.6;
  background: rgba(0,0,0,.2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; max-height: 70vh; overflow-y: auto;
}

/* ── Empty / loading / error states ───────────────────── */
.state-box { text-align: center; padding: 4rem 2rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(12px); }
.state-box .icon { font-size: 3rem; margin-bottom: 1rem; }
.state-box h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.state-box p { color: var(--text3); font-size: .85rem; }
.spinner { display: inline-block; width: 28px; height: 28px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Suite Cards (overview page) ──────────────────────── */
.page-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: .35rem;
}
.page-subtitle {
  font-size: .88rem; color: var(--text3); margin-bottom: 1.5rem;
}
.suite-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem; margin-bottom: 2rem;
}
.suite-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  backdrop-filter: blur(12px); cursor: pointer;
  transition: var(--transition); text-decoration: none; color: var(--text);
  display: block; position: relative; overflow: hidden;
  animation: fadeUp .6s ease-out both;
}
.suite-card:nth-child(1) { animation-delay: 0s; }
.suite-card:nth-child(2) { animation-delay: .1s; }
.suite-card:nth-child(3) { animation-delay: .2s; }
.suite-card:nth-child(4) { animation-delay: .3s; }
.suite-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.suite-card:nth-child(odd)::before  { background: linear-gradient(90deg, var(--accent), var(--purple)); }
.suite-card:nth-child(even)::before { background: linear-gradient(90deg, var(--ok), var(--warn)); }
.suite-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.15); box-shadow: var(--shadow); }
.suite-card-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.suite-card-icon { font-size: 2.2rem; }
.suite-card-title { font-size: 1.15rem; font-weight: 700; }
.suite-card-desc { font-size: .85rem; color: var(--text2); margin-bottom: 1.25rem; line-height: 1.5; }
.suite-card-stats { display: flex; gap: 1.5rem; }
.suite-stat { text-align: center; }
.suite-stat-value { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.suite-stat-label { font-size: .68rem; color: var(--text3); text-transform: uppercase;
  letter-spacing: .04em; margin-top: .25rem; }
.suite-card-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .68rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.suite-card-badge.live { background: var(--ok-g); color: var(--ok); }
.suite-card-badge.coming { background: rgba(255,255,255,.06); color: var(--text3); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .suite-grid { grid-template-columns: 1fr; }
  main { padding: 1rem; }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  header { flex-direction: column; gap: .75rem; }
  .nav-inner { padding: .45rem 1rem; overflow-x: auto; }
}
