/* ════════════════════════════════════════════════════════════════════════════
   SEO Analyzer — Main Stylesheet
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:          #0f0f1a;
  --bg-card:     #1a1a2e;
  --bg-card2:    #16213e;
  --bg-input:    #0d0d1a;
  --border:      #2a2a4a;
  --border-light:#333366;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --accent:      #6366f1;
  --accent-glow: rgba(99,102,241,0.25);
  --pass:        #22c55e;
  --pass-bg:     rgba(34,197,94,0.1);
  --warn:        #eab308;
  --warn-bg:     rgba(234,179,8,0.1);
  --fail:        #ef4444;
  --fail-bg:     rgba(239,68,68,0.1);
  --ai-accent:   #a855f7;
  --ai-bg:       rgba(168,85,247,0.1);
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --transition:  0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a5b4fc;
}
pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  overflow-x: auto;
  font-size: 12px;
  color: #a5b4fc;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header ──────────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,26,0.95);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.logo svg { color: var(--accent); }
.logo span { color: var(--accent); }

/* ── Tab navigation ──────────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}
.tab-btn {
  padding: 7px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); background: var(--bg-card2); }
.tab-btn.active { background: var(--accent); color: white; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Hero / input section ────────────────────────────────────────────────────── */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  background: linear-gradient(135deg, #e2e8f0, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ── Input card ──────────────────────────────────────────────────────────────── */
.input-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.input-row input, .input-card input, .input-card textarea {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.input-card input::placeholder, .input-card textarea::placeholder { color: var(--text-dim); }
.input-card input:focus, .input-card textarea:focus { border-color: var(--accent); }
.input-card textarea { resize: vertical; min-height: 100px; }

.input-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.input-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.input-options input[type="checkbox"] { accent-color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #5558e8; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg-card2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-light); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: var(--fail); color: white; }
.btn-ai { background: var(--ai-accent); color: white; }
.btn-ai:hover { background: #9333ea; }

/* ── Progress / loading ──────────────────────────────────────────────────────── */
.loading-overlay {
  display: none;
  text-align: center;
  padding: 48px 0;
}
.loading-overlay.visible { display: block; }

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-bar-wrap {
  width: 100%;
  max-width: 400px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 12px auto 0;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  transition: color var(--transition);
}
.progress-step.active { color: var(--accent); }
.progress-step.done   { color: var(--pass); }
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
}
.progress-step.active .step-dot { background: var(--accent); }
.progress-step.done   .step-dot { background: var(--pass); }

/* ── Score display ───────────────────────────────────────────────────────────── */
.score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid currentColor;
  flex-shrink: 0;
}
.score-circle .score-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}
.score-circle .score-label {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}

.stars { color: var(--warn); font-size: 18px; letter-spacing: 2px; }
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

/* ── Report header ───────────────────────────────────────────────────────────── */
.report-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 640px) {
  .report-header { grid-template-columns: 1fr; text-align: center; }
  .score-circle  { margin: 0 auto; }
}
.report-meta { display: flex; flex-direction: column; gap: 6px; }
.report-url  { font-size: 18px; font-weight: 600; word-break: break-all; }
.report-sub  { color: var(--text-muted); font-size: 13px; }
.report-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── Top issues ──────────────────────────────────────────────────────────────── */
.top-issues-card {
  background: var(--fail-bg);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.top-issues-card h3 {
  color: var(--fail);
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-issue-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(239,68,68,0.15);
}
.top-issue-item:last-child { border-bottom: none; padding-bottom: 0; }
.top-issue-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(239,68,68,0.2);
  color: var(--fail);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 1px;
}
.top-issue-text { flex: 1; }
.top-issue-label { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.top-issue-fix   { font-size: 12px; color: var(--text-muted); }

/* ── Category cards ──────────────────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.category-card:hover { border-color: var(--border-light); }

.category-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.category-info { flex: 1; min-width: 0; }
.category-name { font-size: 14px; font-weight: 600; }
.category-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.category-score-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cat-score-num { font-size: 22px; font-weight: 700; }
.cat-score-bar-wrap {
  width: 60px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.cat-score-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }

.chevron {
  color: var(--text-dim);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.category-card.open .chevron { transform: rotate(180deg); }

.category-findings {
  display: none;
  border-top: 1px solid var(--border);
}
.category-card.open .category-findings { display: block; }

.finding-item {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
}
.finding-item:last-child { border-bottom: none; }
.finding-item:hover { background: rgba(255,255,255,0.02); }

.finding-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.finding-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.finding-icon.pass { background: var(--pass-bg); color: var(--pass); }
.finding-icon.warn { background: var(--warn-bg); color: var(--warn); }
.finding-icon.fail { background: var(--fail-bg); color: var(--fail); }

.finding-label { font-size: 13px; flex: 1; }

.finding-detail {
  display: none;
  margin: 8px 0 4px 28px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.finding-item.expanded .finding-detail { display: block; }

.finding-fix {
  display: none;
  margin: 6px 0 0 28px;
  font-size: 12px;
  color: #60a5fa;
  background: rgba(96,165,250,0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  border-left: 3px solid #60a5fa;
}
.finding-item.expanded .finding-fix { display: block; }

.finding-rewrite {
  margin: 8px 0 4px 28px;
}

/* ── AI card ──────────────────────────────────────────────────────────────────── */
.ai-card {
  background: var(--ai-bg);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.ai-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ai-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ai-accent);
}
.ai-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(168,85,247,0.2);
  color: var(--ai-accent);
}

.ai-section { margin-bottom: 20px; }
.ai-section h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.ai-section p { font-size: 14px; line-height: 1.7; }

.suggestion-chips { display: flex; flex-direction: column; gap: 8px; }
.suggestion-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color var(--transition);
}
.suggestion-chip:hover { border-color: var(--ai-accent); }
.suggestion-chip .chip-text { flex: 1; }
.suggestion-chip .chip-meta { font-size: 11px; color: var(--text-dim); }
.suggestion-chip .btn-copy { padding: 4px 10px; font-size: 11px; }

.gap-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gap-list li {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gap-list li::before { content: '→'; color: var(--ai-accent); flex-shrink: 0; }

/* ── Schema generator card ───────────────────────────────────────────────────── */
.schema-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.schema-card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.schema-select-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.schema-select-row select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  flex: 1;
  min-width: 160px;
}
.schema-output { position: relative; }
.copy-schema-btn { position: absolute; top: 8px; right: 8px; }

/* ── Core Web Vitals ────────────────────────────────────────────────────────── */
.cwv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.cwv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.cwv-value { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.cwv-name  { font-size: 12px; color: var(--text-muted); }
.cwv-status { font-size: 11px; margin-top: 4px; padding: 2px 8px; border-radius: 20px; display: inline-block; }

/* ── History / chart ─────────────────────────────────────────────────────────── */
.history-section { margin-bottom: 20px; }
.history-chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.history-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; vertical-align: middle; }
.history-table tr:hover td { background: rgba(255,255,255,0.02); }
.history-table .url-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Competitor comparison ───────────────────────────────────────────────────── */
.competitor-inputs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.competitor-inputs .input-row label {
  width: 80px;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.comparison-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.comparison-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comparison-table td { padding: 10px 14px; border: 1px solid var(--border); font-size: 13px; vertical-align: top; }
.comparison-table .win  { color: var(--pass); font-weight: 600; }
.comparison-table .loss { color: var(--fail); }

/* ── Bulk scan ───────────────────────────────────────────────────────────────── */
.bulk-results-table { width: 100%; border-collapse: collapse; }
.bulk-results-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
}
.bulk-results-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; vertical-align: middle; }
.bulk-results-table tr:hover td { background: rgba(255,255,255,0.02); }
.bulk-url-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Rewrite modal / inline ──────────────────────────────────────────────────── */
.rewrite-box {
  background: var(--bg-card2);
  border: 1px solid var(--ai-accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  min-height: 48px;
  position: relative;
}
.rewrite-box .rewrite-output { white-space: pre-wrap; word-break: break-word; }
.rewrite-box .rewrite-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.rewrite-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--ai-accent);
  animation: blink 0.8s steps(1) infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Toast notifications ─────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: var(--shadow);
  pointer-events: all;
  animation: slideIn 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.toast.success { border-color: var(--pass); }
.toast.error   { border-color: var(--fail); }
.toast.info    { border-color: var(--accent); }
@keyframes slideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Share modal ─────────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.modal h3 { margin-bottom: 16px; }
.modal input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  font-family: inherit;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.flex     { display: flex; }
.flex-col { flex-direction: column; }
.gap-8    { gap: 8px; }
.gap-12   { gap: 12px; }
.gap-16   { gap: 16px; }
.mt-8     { margin-top: 8px; }
.mt-12    { margin-top: 12px; }
.mt-16    { margin-top: 16px; }
.mt-20    { margin-top: 20px; }
.mb-20    { margin-bottom: 20px; }
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.fw-600     { font-weight: 600; }
.truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Scrollbar ───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tab-nav { overflow-x: auto; flex-wrap: nowrap; }
  .tab-btn { font-size: 12px; padding: 6px 12px; }
  .categories-grid { grid-template-columns: 1fr; }
  .cwv-grid { grid-template-columns: repeat(2, 1fr); }
  .input-row { flex-direction: column; }
  .report-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero { padding: 32px 0 24px; }
  .input-card { padding: 18px; }
  .cwv-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 20px; }
}
