:root {
  color-scheme: dark;
  --bg: #050914;
  --surface: #0b1220;
  --surface-2: #111b2e;
  --card: rgba(17, 27, 46, 0.86);
  --line: rgba(148, 163, 184, 0.18);
  --text: #eef6ff;
  --muted: #91a4bd;
  --accent: #8b5cf6;
  --accent-2: #2563eb;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 0 0, #172554 0, #091426 36%, var(--bg) 70%); color: var(--text); font: 14px/1.55 Inter, ui-sans-serif, system-ui, Segoe UI, Arial, sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 20; transform: translateY(-160%); padding: 10px 12px; border-radius: 12px; background: #111827; color: #fff; border: 1px solid var(--line); }
.skip-link:focus { transform: translateY(0); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; width: 280px; min-width: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; padding: 24px; border-right: 1px solid var(--line); background: rgba(5, 9, 20, 0.74); backdrop-filter: blur(18px); z-index: 10; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900; box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35); }
.brand strong { display: block; font-size: 15px; }
.brand small, .subhead, .panel p, .filter-panel p, .eyebrow, .muted { color: var(--muted); }
.side-nav { display: grid; gap: 7px; }
.side-nav a, .ghost-button { border: 1px solid transparent; border-radius: 14px; padding: 11px 13px; color: #cbd5e1; background: transparent; text-align: left; cursor: pointer; }
.side-nav a:hover, .ghost-button:hover { border-color: var(--line); background: rgba(148, 163, 184, 0.08); }
.ghost-button { width: 100%; margin-top: auto; }
.content { flex: 1; min-width: 0; padding: 30px clamp(18px, 4vw, 46px); display: flex; flex-direction: column; gap: 22px; }
.content:focus { outline: none; }
.content > * { width: 100%; min-width: 0; box-sizing: border-box; }
.insight-section { display: grid; gap: 16px; width: 100%; }
.topbar, .filter-panel, .panel, .stat-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 27, 46, 0.92), rgba(10, 18, 31, 0.92)); border-radius: 26px; box-shadow: var(--shadow); }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: clamp(22px, 4vw, 34px); }
.eyebrow { margin: 0 0 6px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 900; color: #c4b5fd; }
h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 54px); line-height: 0.95; letter-spacing: -0.04em; }
h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.015em; }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.primary-button, .secondary-button { border: 0; border-radius: 14px; padding: 11px 15px; color: #fff; font-weight: 850; cursor: pointer; }
.primary-button { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.secondary-button { background: rgba(148, 163, 184, 0.12); border: 1px solid var(--line); }
.primary-button:disabled, .secondary-button:disabled { opacity: 0.55; cursor: wait; }

.status-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(15, 23, 42, 0.7); color: #cbd5e1; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 14px var(--warn); }

.filter-panel { display: grid; grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr); gap: 20px; padding: 20px; }
.filter-intro { display: grid; align-content: start; gap: 12px; }
.quick-ranges { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-ranges button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: #cbd5e1; background: rgba(148, 163, 184, 0.1); cursor: pointer; font-weight: 800; }
.quick-ranges button:hover, .quick-ranges button.active { border-color: rgba(139, 92, 246, 0.75); background: rgba(139, 92, 246, 0.18); color: #fff; }
.filter-summary { padding: 12px; border: 1px dashed rgba(96, 165, 250, 0.35); border-radius: 16px; background: rgba(37, 99, 235, 0.08); color: #bfdbfe; font-size: 12px; }
.filters { display: grid; grid-template-columns: 1.1fr 0.95fr 0.95fr; gap: 12px; align-items: stretch; }
.filter-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 17, 31, 0.52); }
.filter-group.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-group h3 { grid-column: 1 / -1; margin: 0; color: #dbeafe; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.filters label { color: var(--muted); font-size: 12px; }
.filters input, .filters select { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: #08111f; color: var(--text); outline: none; }
.filters input:focus, .filters select:focus { border-color: rgba(139, 92, 246, 0.9); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14); }
.filters .checkbox-label { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: #08111f; color: #cbd5e1; }
.filters .checkbox-label input { width: auto; margin: 0; }
.filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; align-self: end; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat-card { padding: 20px; position: relative; overflow: hidden; word-break: break-word; overflow-wrap: anywhere; }
.stat-card:after { content: ''; position: absolute; inset: auto -30px -38px auto; width: 110px; height: 110px; border-radius: 50%; background: rgba(139, 92, 246, 0.16); }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 850; }
.stat-value { display: block; margin-top: 10px; font-size: clamp(22px, 3vw, 36px); font-weight: 950; line-height: 1.1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.stat-value.compact { font-size: clamp(18px, 2.5vw, 28px); line-height: 1.1; }
.stat-caption { color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.insight-card { min-height: 172px; }
.insight-foot { margin-top: 12px; color: #bfdbfe; font-size: 12px; }

.panel-grid { display: grid; gap: 16px; width: 100%; }
.panel-grid.two { grid-template-columns: 1fr 1fr; }
.panel-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-grid.wide-left { grid-template-columns: 1.35fr 0.65fr; }
.panel-grid.wide-right { grid-template-columns: 0.75fr 1.25fr; }
.panel { padding: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.stack-panel { display: grid; gap: 16px; align-content: start; }

.ai-panel { display: grid; gap: 16px; padding: 20px; border: 1px solid rgba(139, 92, 246, 0.28); border-radius: 26px; background: linear-gradient(135deg, rgba(88, 28, 135, 0.25), rgba(8, 17, 31, 0.92)); box-shadow: var(--shadow); }
.ai-section-head { align-items: flex-start; margin-bottom: 0; }
.ai-action-row { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ai-card { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(8, 17, 31, 0.72); }
.ai-result { display: grid; gap: 12px; }
.ai-result-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ai-band, .ai-source-chip { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.ai-band.low, .ai-band.healthy { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.ai-band.medium, .ai-band.moderate, .ai-band.stable { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
.ai-band.high, .ai-band.watch { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.ai-band.critical, .ai-band.high-risk { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.ai-band.disabled, .ai-band.unavailable, .ai-band.unknown { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }
.ai-source-chip { min-width: 0; max-width: 100%; background: rgba(148, 163, 184, 0.1); color: #dbeafe; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.ai-summary { margin: 0; color: #e5eefc; }
.confidence-wrap { display: grid; gap: 7px; }
.confidence-row { display: flex; justify-content: space-between; color: var(--muted); }
.confidence-bar { height: 10px; border-radius: 999px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.confidence-bar span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #8b5cf6); }
.ai-list-block { display: grid; gap: 7px; }
.ai-list-block h3 { margin: 0; color: #cbd5e1; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.risk-list, .recommendation-list { margin: 0; padding-left: 18px; color: #dbeafe; }
.risk-list li + li, .recommendation-list li + li { margin-top: 6px; }
.risk-list li::marker { color: var(--warn); }
.recommendation-list li::marker { color: var(--ok); }
.ai-disclaimer { margin: 0; padding: 11px 12px; border-radius: 14px; border: 1px dashed rgba(96, 165, 250, 0.42); background: rgba(37, 99, 235, 0.1); color: #bfdbfe; font-size: 12px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 17, 31, 0.8); color: #cbd5e1; }
.chip strong { color: #fff; }
.metric-stack { display: grid; gap: 10px; }
.metric-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 17, 31, 0.76); }
.metric-row span { color: var(--muted); }
.metric-row strong { font-size: 18px; }
.benchmark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.benchmark-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 17, 31, 0.78); }
.benchmark-card span { display: block; color: var(--muted); }
.benchmark-card strong { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -0.04em; }

.bar-chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) 48px; gap: 10px; align-items: center; color: var(--muted); }
.bar-track { height: 12px; border-radius: 999px; background: rgba(148, 163, 184, 0.12); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); min-width: 2px; }
.signal-stack { display: grid; gap: 12px; }
.signal-panel { display: grid; gap: 14px; }
.signal-list { margin: 0; padding-left: 18px; color: #dbeafe; }
.signal-list li + li { margin-top: 8px; }
.pressure-row, .band-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 17, 31, 0.64); }
.pressure-head, .band-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pressure-meta, .band-row small, .quality-note { color: var(--muted); font-size: 12px; }
.quality-note { padding: 11px 12px; border: 1px dashed rgba(245, 158, 11, 0.35); border-radius: 14px; background: rgba(245, 158, 11, 0.08); color: #fcd34d; }
.status-chip { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.12); color: #dbeafe; font-size: 12px; font-weight: 850; }
.mini-bar { height: 9px; border-radius: 999px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.mini-bar-fill { height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.mini-bar-fill.trend-up { background: linear-gradient(90deg, #f97316, #ef4444); }
.mini-bar-fill.trend-down { background: linear-gradient(90deg, #22c55e, #14b8a6); }
.status-chip.trend-up { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.status-chip.trend-down { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.status-chip.trend-stable { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 13px; text-align: left; border-bottom: 1px solid rgba(148, 163, 184, 0.13); vertical-align: top; }
th { color: #cbd5e1; background: #08111f; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
td { color: #e5eefc; }
tbody tr:hover { background: rgba(148, 163, 184, 0.06); }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 850; }
.badge.ok { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.badge.warn { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.trend-up { color: #f87171; }
.trend-down { color: #86efac; }
.trend-stable { color: #cbd5e1; }
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); background: rgba(8, 17, 31, 0.55); }
.leaderboard { display: grid; gap: 8px; }
.leader-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.leader-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e5eefc; }
.leader-count { color: var(--muted); }
.toast { position: fixed; right: 20px; bottom: 20px; transform: translateY(18px); opacity: 0; pointer-events: none; transition: 0.2s ease; padding: 12px 14px; border-radius: 14px; background: #111827; border: 1px solid var(--line); box-shadow: var(--shadow); }
.toast.show { transform: translateY(0); opacity: 1; }

.directory-section { grid-column: 1 / -1; }
.directory-section .panel { border: 1px solid rgba(96, 165, 250, 0.18); }
.directory-section .panel-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.directory-meta { display: flex; align-items: center; gap: 10px; }
.dir-count-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(139, 92, 246, 0.18)); color: #bfdbfe; font-size: 13px; font-weight: 850; letter-spacing: 0.02em; border: 1px solid rgba(96, 165, 250, 0.22); }
.load-more-wrap { display: flex; justify-content: center; padding: 16px 0 4px; }
.load-more-btn { border: 1px solid var(--line); border-radius: 14px; padding: 10px 22px; background: rgba(8, 17, 31, 0.7); color: #bfdbfe; font-weight: 800; cursor: pointer; transition: 0.15s ease; }
.load-more-btn:hover { background: rgba(37, 99, 235, 0.16); border-color: rgba(96, 165, 250, 0.4); }

.login-body { display: grid; place-items: center; padding: 24px; }
.login-shell { width: min(100%, 460px); }
.login-card { border: 1px solid var(--line); border-radius: 30px; padding: 28px; background: linear-gradient(180deg, rgba(17, 27, 46, 0.94), rgba(8, 17, 31, 0.94)); box-shadow: var(--shadow); }
.login-card h1 { font-size: 42px; }
.login-form { display: grid; gap: 12px; margin-top: 22px; }
.login-form label { color: var(--muted); }
.login-form input { width: 100%; margin-top: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #08111f; color: var(--text); }
.login-form button { border: 0; border-radius: 14px; padding: 13px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900; cursor: pointer; }
.login-error { color: #fca5a5; min-height: 20px; }
.login-note { color: var(--muted); font-size: 12px; }
code { color: #bfdbfe; }

/* A. Skeleton loader shimmer */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(148,163,184,0.06) 25%, rgba(148,163,184,0.14) 50%, rgba(148,163,184,0.06) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 14px;
  min-height: 28px;
}
.skeleton-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  min-height: 140px;
}
.skeleton-card .skeleton { margin-bottom: 12px; }
.skeleton-card .skeleton:first-child { width: 40%; height: 12px; }
.skeleton-card .skeleton:nth-child(2) { width: 60%; height: 36px; }
.skeleton-card .skeleton:nth-child(3) { width: 80%; height: 14px; }
.skeleton-bar { height: 12px; border-radius: 999px; }
.skeleton-row { display: grid; grid-template-columns: 80px 1fr 48px; gap: 10px; align-items: center; }
.skeleton-panel { padding: 20px; border: 1px solid var(--line); border-radius: 26px; min-height: 200px; display: grid; gap: 12px; align-content: start; }

/* B. AI loading spinner */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(139,92,246,0); }
  50% { opacity: 1; box-shadow: 0 0 24px 4px rgba(139,92,246,0.25); }
}
.ai-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px dashed rgba(139,92,246,0.4);
  border-radius: 18px;
  background: rgba(88,28,135,0.12);
  color: #c4b5fd;
  animation: pulse-glow 2s ease-in-out infinite;
}
.ai-loading::before {
  content: '';
  width: 22px;
  height: 22px;
  border: 3px solid rgba(139,92,246,0.25);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* D. Focus-visible for sidebar nav + all interactive elements */
.side-nav a:focus-visible, .ghost-button:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.12);
}
.primary-button:focus-visible, .secondary-button:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}
.quick-ranges button:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* E. Sortable table headers */
th.sortable { cursor: pointer; user-select: none; position: relative; padding-right: 22px; }
th.sortable:hover { background: rgba(139,92,246,0.1); color: #fff; }
th.sortable::after { content: '⇅'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 11px; opacity: 0.4; }
th.sortable.sort-asc::after { content: '↑'; opacity: 0.9; color: #8b5cf6; }
th.sortable.sort-desc::after { content: '↓'; opacity: 0.9; color: #8b5cf6; }

/* F. Mobile hamburger toggle */
.hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5,9,20,0.92);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.hamburger:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }

/* G. Auto-refresh indicator */
.freshness { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(15,23,42,0.7); color: var(--muted); font-size: 12px; white-space: nowrap; }
.freshness-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex-shrink: 0; }
.freshness-dot.stale { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

/* H. Load more button */
.load-more-wrap { display: flex; justify-content: center; padding: 14px 0 4px; }
.load-more-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 20px;
  background: rgba(148,163,184,0.08);
  color: #cbd5e1;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}
.load-more-btn:hover { background: rgba(139,92,246,0.14); border-color: rgba(139,92,246,0.5); color: #fff; }
.load-more-btn:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }

/* I. Logout confirmation modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(90vw, 400px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17,27,46,0.96), rgba(10,18,31,0.96));
  box-shadow: var(--shadow);
  text-align: center;
}
.modal-card h2 { margin-bottom: 10px; }
.modal-card p { color: var(--muted); margin: 0 0 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.modal-actions button { min-width: 110px; }

/* J. Keyboard shortcut hint badges */
.kbd-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 6px;
  background: rgba(148,163,184,0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  font-family: monospace;
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .hamburger { display: grid; place-items: center; }
  .app-shell { flex-direction: column; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; z-index: 25; transform: translateX(-100%); transition: transform 0.25s ease; height: 100vh; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 24; background: rgba(0,0,0,0.45); }
  .sidebar.open ~ .sidebar-backdrop { display: block; }
  .side-nav { grid-template-columns: 1fr; }
  .filter-panel, .filters, .panel-grid.two, .panel-grid.three, .panel-grid.wide-left, .panel-grid.wide-right { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .content { padding: 18px; } .topbar, .filter-group, .filter-group.wide { display: grid; grid-template-columns: 1fr; } .cards-grid, .benchmark-grid { grid-template-columns: 1fr; } .sidebar.open { width: 100vw; } .filter-actions, .ai-action-row { justify-content: stretch; } .filter-actions button, .ai-action-row button { width: 100%; } .kbd-hint { display: none; } }
