/* ═══════════════════════════════════════════════════════════════
   SiteScope v4 — Dashboard
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #020617;
  --bg-secondary: #0f172a;
  --card: #111827;
  --card-hover: #1e293b;
  --border: #334155;
  --border-light: #475569;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-light: #2dd4bf;
  --teal-glow: rgba(20, 184, 166, 0.2);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --yellow: #eab308;
  --yellow-bg: rgba(234, 179, 8, 0.1);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.1);
  --orange: #f97316;
  --orange-bg: rgba(249, 115, 22, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── Nav ── */
.topnav {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand-icon { font-size: 20px; }
.nav-brand-text { font-size: 18px; font-weight: 800; color: var(--teal); letter-spacing: -0.5px; }
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--teal); border-bottom-color: var(--teal); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-user { color: var(--text-muted); font-size: 13px; }
.btn-logout {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); }

/* ── Main ── */
.main { max-width: 1200px; margin: 0 auto; padding: 24px 24px 80px; }

/* ── Audit Input ── */
.audit-input-section { padding: 80px 0; text-align: center; }
.audit-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.audit-hero > p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.audit-form { max-width: 600px; margin: 0 auto; }
.audit-input-group {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 5px 5px 5px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.audit-input-group:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.input-prefix { color: var(--text-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
#urlInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  padding: 12px 8px;
  font-family: inherit;
  min-width: 0;
}
#urlInput::placeholder { color: var(--text-muted); }

.btn-audit {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-audit:hover { box-shadow: 0 4px 16px var(--teal-glow); transform: translateY(-1px); }
.btn-audit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-audit.loading .btn-label { display: none; }
.btn-audit.loading .btn-spinner { display: block; }
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.audit-error {
  display: none;
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--red-bg);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  color: var(--red);
  font-size: 13px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.audit-error.visible { display: block; }

/* ── Loading ── */
.loading-section { text-align: center; padding: 80px 0; }
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
.loading-content h2 { font-size: 18px; margin-bottom: 28px; font-weight: 700; }
.loading-steps { max-width: 280px; margin: 0 auto; }
.loading-steps .step {
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.3s;
}
.loading-steps .step.active { color: var(--teal-light); background: var(--teal-glow); }
.loading-steps .step.done { color: var(--green); }
.loading-steps .step.done::before { content: '✓ '; font-weight: bold; }

/* ── Results Header ── */
.results-section { animation: fadeIn 0.3s ease; }
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}
.btn-new-audit, .btn-download-pdf, .btn-preview-pdf {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-new-audit {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-new-audit:hover { border-color: var(--teal); color: var(--teal); }
.btn-download-pdf {
  background: var(--teal);
  border: none;
  color: #fff;
}
.btn-download-pdf:hover { box-shadow: 0 4px 16px var(--teal-glow); }
.btn-preview-pdf {
  background: var(--card);
  border: 1px solid var(--teal);
  color: var(--teal);
}
.btn-preview-pdf:hover { background: var(--teal); color: #fff; }
.results-header-right { display: flex; gap: 8px; }

/* ── Score Row ── */
.score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.score-card { text-align: center; flex: 1; min-width: 90px; }
.score-card.overall { flex: 0 0 120px; }
.score-ring { position: relative; width: 100px; height: 100px; margin: 0 auto 6px; }
.score-ring.small { width: 64px; height: 64px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-bg { fill: none; stroke: var(--border); stroke-width: 5; }
.score-fill { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1); }
.score-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 26px; font-weight: 800; }
.score-ring.small .score-num { font-size: 17px; }
.score-label { color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.score-fill.green { stroke: var(--green); }
.score-fill.yellow { stroke: var(--yellow); }
.score-fill.red { stroke: var(--red); }

/* ── Info Bar ── */
.info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
.info-url { color: var(--teal-light); font-weight: 600; word-break: break-all; max-width: 60%; }
.info-meta { color: var(--text-muted); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.tab {
  flex: 1;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}
.tab:hover { color: var(--text); background: var(--card); }
.tab.active { color: #fff; background: var(--teal); }
.tab-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  font-weight: 700;
  display: none;
}
.tab.active .tab-badge { background: rgba(255,255,255,0.2); display: inline; }

/* ── Tab Panels ── */
.tab-panel { display: none; animation: fadeIn 0.2s; }
.tab-panel.active { display: block; }

/* ── Overview ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.summary-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.summary-icon { font-size: 24px; margin-bottom: 10px; }
.summary-title { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.summary-score { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.summary-count { color: var(--text-muted); font-size: 12px; }

/* ── Module Sections ── */
.module-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.module-header h2 { font-size: 18px; font-weight: 700; }
.module-badge {
  padding: 3px 12px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 12px;
}

/* ── Meta Grid ── */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.meta-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
  overflow: hidden;
}
.meta-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; font-weight: 600; }
.meta-value {
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.4;
  color: var(--text);
}
.meta-value.url-value {
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--teal-light);
  word-break: break-all;
  line-height: 1.3;
}
.meta-value.short-value {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.meta-value.number-value { font-variant-numeric: tabular-nums; }
.meta-value.null-value { color: var(--text-muted); font-style: italic; font-size: 12px; }
.meta-value.url-value a { color: var(--teal-light); text-decoration: none; }
.meta-value.url-value a:hover { text-decoration: underline; }

/* ── Issues ── */
.section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.section-title .count {
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.issue-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.issue-card:hover { border-color: var(--border-light); }
.issue-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.severity {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.sev-critical { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.sev-warning { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.sev-info { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.sev-pass { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.issue-rule { font-weight: 600; font-size: 13px; }
.issue-detail { color: var(--text-secondary); font-size: 12px; line-height: 1.5; margin-top: 4px; word-break: break-word; }
.issue-impact { font-size: 10px; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; letter-spacing: 0.3px; }
/* New: Business impact & fix */
.issue-business-impact {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.issue-fix {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid var(--green);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.issue-priority {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.priority-high { background: var(--red-bg); color: var(--red); }
.priority-medium { background: var(--yellow-bg); color: var(--yellow); }
.priority-low { background: var(--blue-bg); color: var(--blue); }

/* ── Passed ── */
.passed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 6px;
}
.passed-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: var(--green-bg);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 6px;
  font-size: 12px;
}
.passed-check { color: var(--green); font-weight: bold; flex-shrink: 0; margin-top: 1px; }
.passed-rule { font-weight: 600; color: var(--green); white-space: nowrap; }
.passed-detail { color: var(--text-secondary); word-break: break-word; }

/* ── Suggestions ── */
.suggestions { margin-top: 28px; }
.suggestions h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.suggestion-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
}
.suggestion-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.suggestion-priority {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.p-high { background: var(--red-bg); color: var(--red); }
.p-medium { background: var(--yellow-bg); color: var(--yellow); }
.p-info { background: var(--blue-bg); color: var(--blue); }
.suggestion-title { font-weight: 600; font-size: 13px; }
.suggestion-items { list-style: none; }
.suggestion-items li {
  color: var(--text-secondary);
  font-size: 12px;
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.5;
}
.suggestion-items li::before { content: '→'; position: absolute; left: 0; color: var(--teal); }

/* ── Report ── */
.report-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.report-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.report-body { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.report-body h4 { color: var(--text); margin: 18px 0 8px; font-size: 14px; }
.report-body table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.report-body th, .report-body td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: 12px; }
.report-body th { color: var(--text); font-weight: 600; }

/* ── PDF Preview Modal ── */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
}
.pdf-modal-overlay.visible { display: flex; }
.pdf-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  animation: modalIn 0.2s ease;
}
.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 10;
}
.pdf-modal-header h3 { font-size: 16px; font-weight: 700; }
.pdf-modal-actions { display: flex; gap: 8px; }
.btn-modal-close {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-modal-close:hover { border-color: var(--red); color: var(--red); }
.btn-modal-download {
  padding: 6px 14px;
  background: var(--teal);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-modal-download:hover { box-shadow: 0 2px 12px var(--teal-glow); }

/* PDF Preview Content */
.pdf-preview-content {
  padding: 32px;
  background: #fff;
  color: #1a1a2e;
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
}
.pdf-preview-content .pdf-header {
  background: #0c1628;
  padding: 24px 32px;
  margin: -32px -32px 24px -32px;
  color: #fff;
}
.pdf-preview-content .pdf-header h1 { font-size: 22px; color: #14b8a6; font-weight: 700; font-family: system-ui, sans-serif; margin-bottom: 4px; }
.pdf-preview-content .pdf-header p { font-size: 12px; color: #94a3b8; font-family: system-ui, sans-serif; }
.pdf-preview-content .pdf-score { font-size: 32px; font-weight: 700; margin: 16px 0; }
.pdf-preview-content .pdf-section { margin-bottom: 20px; }
.pdf-preview-content .pdf-section h2 { font-size: 15px; font-weight: 700; color: #0c1628; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #14b8a6; font-family: system-ui, sans-serif; }
.pdf-preview-content .pdf-section h3 { font-size: 13px; font-weight: 700; color: #14b8a6; margin: 12px 0 6px; font-family: system-ui, sans-serif; }
.pdf-preview-content table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 12px; font-family: system-ui, sans-serif; }
.pdf-preview-content th { background: #0c1628; color: #fff; padding: 8px 10px; text-align: left; font-weight: 600; }
.pdf-preview-content td { padding: 6px 10px; border-bottom: 1px solid #e2e8f0; }
.pdf-preview-content .pdf-issue { margin-bottom: 8px; padding: 8px 12px; background: #f8fafc; border-left: 3px solid #e2e8f0; border-radius: 0 4px 4px 0; font-size: 12px; font-family: system-ui, sans-serif; }
.pdf-preview-content .pdf-issue.sev-critical { border-left-color: var(--red); }
.pdf-preview-content .pdf-issue.sev-warning { border-left-color: var(--yellow); }
.pdf-preview-content .pdf-issue.sev-pass { border-left-color: var(--green); }
.pdf-preview-content .pdf-issue .pdf-issue-rule { font-weight: 700; margin-bottom: 2px; }
.pdf-preview-content .pdf-issue .pdf-issue-detail { color: #475569; }
.pdf-preview-content .pdf-issue .pdf-business-impact { color: #3b82f6; margin-top: 4px; font-style: italic; }
.pdf-preview-content .pdf-issue .pdf-fix { color: #16a34a; margin-top: 4px; }
.pdf-preview-content .pdf-suggestion { margin-bottom: 10px; font-size: 12px; font-family: system-ui, sans-serif; }
.pdf-preview-content .pdf-suggestion strong { color: #0c1628; }
.pdf-preview-content .pdf-suggestion li { color: #475569; margin: 2px 0 2px 16px; }
.pdf-preview-content .pdf-footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid #e2e8f0; text-align: center; font-size: 11px; color: #94a3b8; font-family: system-ui, sans-serif; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  animation: slideUp 0.3s ease;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .score-row { flex-wrap: wrap; gap: 12px; padding: 20px; }
  .score-card { flex: 1 1 calc(33% - 12px); }
  .score-card.overall { flex: 1 1 100%; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .issues-grid, .passed-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .main { padding: 16px 16px 60px; }
  .audit-hero h1 { font-size: 24px; }
  .audit-input-group { flex-direction: column; border-radius: 10px; padding: 10px; }
  .input-prefix { display: none; }
  #urlInput { width: 100%; text-align: center; padding: 10px; }
  .btn-audit { width: 100%; justify-content: center; border-radius: 8px; }
  .tabs { gap: 1px; }
  .tab { padding: 8px 6px; font-size: 11px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .score-row { flex-direction: column; }
  .score-card { flex: 1 1 100%; }
  .results-header { flex-direction: column; align-items: stretch; }
  .results-header-right { justify-content: flex-end; }
  .meta-grid { grid-template-columns: 1fr; }
  .pdf-modal { margin: 8px; }
  .pdf-preview-content { padding: 20px; }
  .pdf-preview-content .pdf-header { margin: -20px -20px 16px -20px; padding: 16px 20px; }
}
