/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #e8edf2;
  --white:        #ffffff;
  --navy-1:       #1565c0;
  --navy-2:       #0d47a1;
  --navy-3:       #062057;
  --navy-4:       #0a1f40;
  --hero:         #1e3a5f;
  --dark:         #010d1f;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-dim:     #94a3b8;
  --border:       #e2e8f0;
  --border-2:     #cbd5e1;
  --blue-light:   #93c5fd;
  --blue-lighter: #bfdbfe;
  --teal:         #90caf9;

  /* semantic — used by JS-generated elements */
  --accent:       #1565c0;
  --accent-dim:   rgba(21,101,192,0.10);
  --accent-hover: #0d47a1;
  --accent-glow:  rgba(21,101,192,0.20);
  --surface:      #ffffff;
  --surface-2:    #f8fafc;
  --surface-3:    #f1f5f9;
  --border-focus: #1565c0;

  --green:        #166534;
  --green-dim:    rgba(22,101,52,0.09);
  --green-border: rgba(22,101,52,0.22);
  --red:          #991b1b;
  --red-dim:      rgba(153,27,27,0.09);
  --red-border:   rgba(153,27,27,0.22);
  --yellow:       #92400e;
  --yellow-dim:   rgba(146,64,14,0.09);
  --yellow-border:rgba(146,64,14,0.22);

  --radius:    2px;
  --radius-lg: 4px;
  --radius-xl: 6px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
main { padding: 28px 0 80px; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; max-width: 960px; margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name {
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text);
}
.header-nav { display: flex; align-items: center; gap: 0; }
.nav-link {
  font-size: 15px; font-weight: 400; color: var(--text-muted);
  text-decoration: none; padding: 16px 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: #fff; background: var(--navy-1);
  border-bottom-color: transparent; border-radius: var(--radius);
}
.nav-link.active:hover { color: #fff; }

/* ── Tagline strip ─────────────────────────────────────────────────────────── */
.tagline-strip {
  background: var(--hero);
  padding: 7px 24px;
  text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* ── Icon bar ──────────────────────────────────────────────────────────────── */
.icon-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.icon-bar-inner {
  display: flex; align-items: center; justify-content: space-around;
  max-width: 480px; margin: 0 auto; padding: 0 16px;
}
.icon-link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; padding: 4px 12px;
  border-bottom: 3px solid transparent;
  position: relative;
}
.icon-link.active { border-bottom-color: var(--hero); }
.icon-link svg { color: var(--text-muted); }
.icon-link.active svg { color: var(--hero); }
.icon-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
}
.icon-link.active .icon-label { color: var(--hero); }
.icon-badge {
  position: absolute; top: 0; right: 4px;
  background: #f59e0b; color: #000;
  font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 1px 4px; min-width: 14px;
  text-align: center; line-height: 1.4;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--hero); border: none;
  border-radius: var(--radius); cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600;
  height: 38px; padding: 0 18px; text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary--navy {
  background: var(--navy-1); color: var(--white);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  color: var(--text-muted); background: var(--white); padding: 7px 14px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--navy-1); color: var(--text); }
.btn-ghost-sm {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  color: var(--text-muted); background: var(--white); padding: 5px 12px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.btn-ghost-sm:hover { border-color: var(--navy-1); color: var(--text); }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 2px 7px; border-radius: var(--radius);
  display: inline-flex; align-items: center; flex-shrink: 0;
}
.badge-error   { background: var(--red-dim);    color: var(--red);    border: 1px solid var(--red-border); }
.badge-warning { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-info    { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(21,101,192,0.2); }
.badge-success { background: var(--green-dim);  color: var(--green);  border: 1px solid var(--green-border); }

.sev-badge {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius); text-transform: uppercase; letter-spacing: 0.4px;
  white-space: nowrap;
}
.sev-critical { background: var(--red-dim);    color: var(--red); }
.sev-warning  { background: var(--yellow-dim); color: var(--yellow); }
.sev-info     { background: var(--accent-dim); color: var(--accent); }

/* ── Tile system (home page) ───────────────────────────────────────────────── */
.home-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 12px; margin-bottom: 12px;
}
.tile {
  display: flex; flex-direction: column;
  padding: 20px 22px; text-decoration: none;
  transition: opacity 0.15s;
}
.tile:hover { opacity: 0.93; }
.tile--hero {
  background: var(--hero); min-height: 280px;
  justify-content: space-between;
}
.tile--hero-tight {
  min-height: 0;
  justify-content: flex-start;
  gap: 14px;
}
.tile--hero-tight .hero-stats { margin-bottom: 0; }
.tile--hero-tight .hero-cta-block { margin-top: 4px; }
.tile--compare  { background: var(--navy-1); }
.tile--build    { background: var(--navy-2); }
.tile--scan     { background: var(--navy-3); }
.tile--monitor  { background: var(--navy-4); border-left: 2px solid var(--teal); }
.tile-label {
  font-size: 13px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-lighter);
  margin-bottom: 6px;
}
.tile-title {
  font-size: 14px; font-weight: 700; color: var(--white);
  line-height: 1.4; margin-bottom: 4px;
}
.tile-sub {
  font-size: 12px; color: var(--blue-lighter); line-height: 1.5; opacity: 0.8;
}
.tile-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 12px;
}
.hero-title {
  font-size: 20px; font-weight: 800; color: var(--white);
  line-height: 1.3; margin-bottom: 16px;
}
.hero-stats {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 12px 0; margin-bottom: 16px;
}
.hero-stat {
  flex: 1; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val {
  font-size: 18px; font-weight: 800; color: var(--white); display: block;
}
.hero-stat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue-lighter); opacity: 0.8;
}
.hero-tagline {
  font-size: 13px; font-weight: 700; color: #7dd3fc; margin-bottom: 14px;
}
.tile-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--hero);
  font-size: 14px; font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius);
  text-decoration: none; align-self: flex-start;
}

/* ── Home hero polish (above-the-fold) ─────────────────────────────────────── */
.hero-eyebrow {
  font-size: 14px; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: #7dd3fc; line-height: 1.3;
}
.hero-flow {
  font-size: 13px; color: var(--blue-lighter); opacity: 0.85; line-height: 1.5;
}
.tile--hero-tight .hero-title { margin-bottom: 0; }
.tile--hero-tight .hero-tagline { margin-bottom: 0; }

/* 92-rules hover/tap tooltip */
.hero-stat--tip { position: relative; cursor: help; outline: none; }
.rules-tooltip {
  display: none; position: absolute; bottom: calc(100% + 10px); left: 0;
  width: 300px; max-width: 78vw; text-align: left;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 14px 16px; z-index: 60; cursor: default;
}
.hero-stat--tip:hover .rules-tooltip,
.hero-stat--tip:focus .rules-tooltip,
.hero-stat--tip:focus-within .rules-tooltip,
.hero-stat--tip.tip-open .rules-tooltip { display: block; }
.rules-tooltip-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rules-tooltip-intro { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.rules-tooltip-list { list-style: none; margin: 0 0 8px; padding: 0; }
.rules-tooltip-list li { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; padding-left: 13px; position: relative; }
.rules-tooltip-list li::before { content: '·'; position: absolute; left: 3px; color: var(--navy-1); font-weight: 700; }
.rules-tooltip-foot { font-size: 12.5px; color: var(--text); line-height: 1.5; font-weight: 500; border-top: 1px solid var(--border); padding-top: 8px; }

/* Module card action links (Scan / Monitor) */
.tile-action {
  margin-top: 8px; font-size: 13px; font-weight: 700;
  color: #7dd3fc; display: inline-flex; align-items: center; gap: 4px;
}

/* Compact home grid — keeps all four module cards above the fold on a laptop */
.home-grid--compact .tile-stack .tile { padding: 13px 18px; }
.home-grid--compact .tile-arrow { height: 13px; font-size: 13px; }
.home-grid--compact .tile-title { margin-bottom: 3px; }
.home-grid--compact .tile-label { margin-bottom: 4px; }
.home-grid--compact .tile--hero-tight { gap: 11px; }

.tile-stack { display: flex; flex-direction: column; background: #ffffff; }
.tile-arrow {
  display: flex; align-items: center; justify-content: center;
  height: 18px; color: var(--navy-1); font-size: 16px; font-weight: 800;
  background: #ffffff;
  opacity: 1;
}
.how-it-works {
  font-size: 13px; color: var(--text-muted);
  background: #ffffff;
  padding: 10px 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

/* ── Inner page 2-column grid ─────────────────────────────────────────────── */
.page-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; align-items: start;
}
.page-main { min-width: 0; }
.page-aside {
  position: sticky; top: 72px;
  display: flex; flex-direction: column; gap: 8px;
}

/* ── Pricing bar ───────────────────────────────────────────────────────────── */
.pricing-bar {
  background: var(--dark); display: flex;
  align-items: center; justify-content: space-between;
  padding: 12px 20px; margin-bottom: 28px;
  flex-wrap: wrap; gap: 8px;
}
.pricing-bar-left {
  font-size: 13px; color: var(--blue-light); font-weight: 500;
}
.pricing-bar-right {
  font-size: 13px; font-weight: 700; color: var(--white);
  text-decoration: none;
}
.pricing-bar-right:hover { color: var(--blue-light); }

/* ── Flywheel ──────────────────────────────────────────────────────────────── */
.flywheel { margin-bottom: 20px; }
.flywheel-hd { margin-bottom: 16px; }
.flywheel-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.flywheel-sub { font-size: 13px; color: var(--text-muted); }
.flywheel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.flywheel-card { padding: 18px 18px 14px; cursor: pointer; }
.flywheel-step { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-lighter); margin-bottom: 8px; }
.flywheel-headline { font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.35; margin-bottom: 4px; }
.flywheel-tagline { font-size: 12px; color: var(--blue-lighter); opacity: 0.8; margin-bottom: 10px; }
.flywheel-learn { font-size: 12px; font-weight: 700; color: var(--blue-light); }
.flywheel-detail {
  display: none; margin-top: 12px; padding: 12px 14px;
  font-size: 13px; color: var(--blue-lighter); line-height: 1.6;
}
.flywheel-detail.open { display: block; background: rgba(0,0,0,0.15); }
.flywheel-stat-box {
  margin-top: 10px; padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  font-size: 12px; font-weight: 700; color: var(--blue-light);
}
.flywheel-card--border { border-left: 2px solid var(--teal); }

/* ── Privacy bar ───────────────────────────────────────────────────────────── */
.privacy-bar {
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; flex-wrap: wrap; gap: 8px;
}
.privacy-bar-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.privacy-bar-link { font-size: 13px; font-weight: 600; color: var(--navy-1); text-decoration: none; white-space: nowrap; }

/* ── Page header ───────────────────────────────────────────────────────────── */
.page-hd { margin-bottom: 20px; }
.page-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.page-sub { font-size: 16px; color: var(--text-muted); line-height: 1.6; max-width: 600px; }

/* ── Info banner ───────────────────────────────────────────────────────────── */
.info-banner {
  background: var(--white); border-left: 3px solid var(--navy-1);
  padding: 12px 16px; font-size: 15px; color: var(--text-muted);
  margin-bottom: 20px; line-height: 1.55;
}

/* ── Question tiles (compare) ──────────────────────────────────────────────── */
.question-list { display: flex; flex-direction: column; gap: 8px; }
.question-tile {
  background: var(--navy-2); cursor: pointer;
}
.question-tile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
}
.question-tile-num {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue-lighter); margin-bottom: 3px;
}
.question-tile-text {
  font-size: 15px; font-weight: 600; color: var(--white);
}
.question-tile-chevron { color: var(--blue-lighter); font-size: 16px; transition: transform 0.2s; }
.question-tile.open .question-tile-chevron { transform: rotate(90deg); }
.question-tile-body { display: none; padding: 0 18px 16px; }
.question-tile.open .question-tile-body { display: block; }
.option-cards { display: flex; flex-direction: column; gap: 6px; }
.option-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 14px; cursor: pointer;
  font-size: 14px; color: var(--white); line-height: 1.4;
  transition: background 0.15s, border-color 0.15s;
}
.option-card:hover { background: rgba(255,255,255,0.14); }
.option-card.selected { border-color: var(--blue-light); background: rgba(147,197,253,0.15); }
.option-card-label { font-weight: 600; display: block; }
.option-card-sub { font-size: 12px; color: var(--blue-lighter); display: block; margin-top: 2px; opacity: 0.85; }

/* ── Compare 2-col layout ──────────────────────────────────────────────────── */
.compare-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; align-items: start;
}
.compare-right-hd {
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.proc-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 14px 16px; margin-bottom: 8px;
}
.proc-card--top { border-left: 3px solid var(--navy-1); }
.proc-card-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.proc-card-name { font-size: 16px; font-weight: 700; color: var(--text); }
.proc-card-score {
  font-size: 22px; font-weight: 800; color: var(--navy-1);
}
.proc-card-bar-wrap { background: var(--surface-3); height: 3px; margin-bottom: 8px; }
.proc-card-bar { height: 3px; background: var(--navy-1); transition: width 0.4s; }
.proc-card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.proc-tag {
  font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 2px;
}
.proc-tag--good { background: #d1fae5; color: #166534; }
.proc-tag--warn { background: #fef3c7; color: #92400e; }
.proc-tag--info { background: #dbeafe; color: #1565c0; }
.proc-card--placeholder {
  background: var(--surface-2); border-style: dashed;
  padding: 12px 16px; text-align: center;
  font-size: 13px; color: var(--text-muted);
}
.best-fit-badge {
  display: inline-flex; align-items: center;
  background: var(--navy-1); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 8px; margin-bottom: 8px;
}

/* ── Contract upload tile (compare) ────────────────────────────────────────── */
.contract-tile {
  background: var(--navy-3);
  border: 1px dashed rgba(144,202,249,0.3);
  padding: 20px 22px; margin-top: 10px;
}
.contract-tile-label {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 8px;
}
.contract-tile-title {
  font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 4px;
}
.contract-tile-sub { font-size: 13px; color: var(--blue-lighter); margin-bottom: 14px; }

/* ── Build / Checklist ─────────────────────────────────────────────────────── */
.build-layout {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 12px; align-items: start;
}
.phase-menu { background: var(--surface-2); }
.phase-menu-item {
  padding: 10px 14px; font-size: 14px; color: var(--text-muted);
  cursor: pointer; border-left: 3px solid transparent;
  transition: all 0.15s;
}
.phase-menu-item:hover { color: var(--text); }
.phase-menu-item.active {
  background: var(--white); color: var(--text);
  border-left-color: var(--navy-1);
  box-shadow: 1px 0 3px rgba(0,0,0,0.05);
}
.saq-indicator {
  margin-top: 12px; background: #dbeafe; padding: 12px 14px;
}
.saq-indicator-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--navy-2); margin-bottom: 4px;
}
.saq-indicator-val { font-size: 22px; font-weight: 800; color: var(--navy-1); display: block; }
.saq-indicator-count { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.saq-indicator-link { font-size: 13px; color: var(--navy-1); text-decoration: none; font-weight: 600; }

.checklist-panel { background: var(--white); border: 1px solid var(--border); }
.panel-hd { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.panel-meta { font-size: 13px; color: var(--text-muted); }
.panel-progress { height: 4px; background: var(--surface-3); }
.panel-progress-fill { height: 4px; background: var(--navy-1); transition: width 0.3s; }
.panel-body { padding: 20px; }

/* JS-created step card elements */
.step-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 0; padding: 12px 14px;
  margin-bottom: 6px; display: flex; gap: 10px; align-items: flex-start;
  transition: border-color 0.15s;
}
.step-card:hover { border-color: var(--border-2); }
.step-card.completed { opacity: 0.55; }
.step-card.completed .step-title { text-decoration: line-through; color: var(--text-muted); }
.step-check-wrap { flex-shrink: 0; margin-top: 2px; }
.step-check {
  width: 18px; height: 18px; border-radius: 2px;
  border: 2px solid var(--border-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); transition: all 0.15s;
}
.step-check:hover { border-color: var(--navy-1); }
.step-card.completed .step-check { background: var(--navy-1); border-color: var(--navy-1); }
.step-check-icon { display: none; color: var(--white); font-size: 13px; font-weight: 700; }
.step-card.completed .step-check-icon { display: block; }
.step-body { flex: 1; min-width: 0; }
.step-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.step-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
.step-time { font-size: 12px; color: var(--text-dim); white-space: nowrap; flex-shrink: 0; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.pci-badge {
  display: inline-flex; align-items: center;
  background: #dbeafe; border: 1px solid #93c5fd;
  color: var(--navy-2); font-size: 11px; font-weight: 700;
  padding: 1px 5px; letter-spacing: 0.2px; flex-shrink: 0;
}
.step-warning {
  margin-top: 7px; padding: 7px 10px;
  background: var(--yellow-dim); border: 1px solid var(--yellow-border);
  display: flex; gap: 7px; align-items: flex-start;
}
.step-warning-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.step-warning-text { font-size: 13px; color: var(--yellow); line-height: 1.45; }
.step-action { margin-top: 8px; }
.btn-step-action {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.25);
  color: var(--accent); font-family: inherit; font-size: 13px; font-weight: 600;
  height: 28px; padding: 0 12px; text-decoration: none; transition: all 0.15s;
}
.btn-step-action:hover { background: rgba(21,101,192,0.15); }
.cmd-multi { margin-top: 3px; }
.cmd-primary-code {
  display: block; font-family: 'Fira Code','Courier New',monospace;
  font-size: 14px; background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 10px; color: var(--text); margin: 4px 0 2px; white-space: pre-wrap; word-break: break-all;
}
.cmd-others { font-size: 12px; color: var(--text-dim); margin-top: 4px; line-height: 1.7; }
.cmd-secondary-code { font-family: 'Fira Code','Courier New',monospace; font-size: 12px; }
.cmd-sep { margin: 0 4px; opacity: 0.4; }
.cmd-multi-all { display: flex; flex-direction: column; gap: 2px; }
.cmd-multi-all .cmd-all-item { font-size: 13px; color: var(--text-muted); }
.cmd-multi-all .cmd-secondary-code { font-size: 13px; }

.phase-section { margin-bottom: 28px; }
.phase-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.phase-name { font-size: 16px; font-weight: 700; color: var(--text); }
.phase-est {
  font-size: 13px; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 2px 8px;
}
.phase-progress { font-size: 12px; color: var(--text-dim); margin-left: 8px; }
.phase-progress.done { color: var(--green); }
.phase-divider { height: 1px; background: var(--border); margin-bottom: 12px; }

.progress-bar-wrap {
  background: var(--white); border: 1px solid var(--border);
  padding: 12px 16px; margin-bottom: 20px;
  position: sticky; top: 88px; z-index: 50;
}
.progress-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.progress-label { font-size: 14px; font-weight: 600; color: var(--text); }
.progress-count { font-size: 13px; color: var(--text-muted); }
.progress-track { background: var(--surface-3); height: 4px; }
.progress-fill { height: 4px; background: var(--navy-1); transition: width 0.4s; }

.estimate-banner { background: var(--white); border: 1px solid var(--border); padding: 16px 18px; margin-bottom: 20px; }
.estimate-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.estimate-time { font-size: 20px; font-weight: 700; color: var(--text); }
.estimate-label { font-size: 14px; color: var(--text-muted); }
.sticking-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.sticking-item { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-bottom: 3px; }
.sticking-num {
  width: 15px; height: 15px; border-radius: 99px;
  background: var(--yellow-dim); border: 1px solid var(--yellow-border);
  color: var(--yellow); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}

.saq-filter-banner {
  background: var(--white); border: 1px solid rgba(21,101,192,0.25);
  padding: 10px 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.saq-filter-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.saq-filter-badge {
  background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.3);
  color: var(--accent); font-size: 13px; font-weight: 700;
  padding: 3px 9px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s;
}
.saq-filter-badge:hover { background: rgba(21,101,192,0.15); }
.saq-filter-text { font-size: 14px; color: var(--text-muted); }
.saq-filter-text strong { color: var(--text); }
.saq-filter-toggle {
  font-size: 13px; font-weight: 500; color: var(--navy-1);
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 0; white-space: nowrap; flex-shrink: 0;
}
.saq-noscan-banner {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 10px 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; margin-bottom: 16px;
  font-size: 14px; color: var(--text-muted); flex-wrap: wrap;
}
.saq-noscan-link { color: var(--navy-1); text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap; }
.saq-header-badge {
  background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.3);
  color: var(--accent); font-size: 12px; font-weight: 700;
  padding: 2px 8px; text-decoration: none; transition: background 0.15s;
}
.saq-header-badge:hover { background: rgba(21,101,192,0.15); }
.cl-badges-row { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.cl-processor-badge {
  font-size: 12px; font-weight: 600; color: var(--navy-1);
  background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.2);
  padding: 2px 9px; text-transform: uppercase; letter-spacing: 0.4px; display: inline-block;
}
.cl-headline { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cl-context { font-size: 15px; color: var(--text-muted); }
.cl-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cl-meta-left {}

.pci-disclaimer-banner {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 12px 16px; display: flex; align-items: flex-start;
  gap: 10px; margin-bottom: 16px;
}
.pci-disclaimer-banner.hidden { display: none; }
.pci-disclaimer-icon { font-size: 14px; color: var(--text-muted); flex-shrink: 0; margin-top: 1px; }
.pci-disclaimer-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.pci-disclaimer-text strong { color: var(--text); font-weight: 600; }
.pci-disclaimer-dismiss {
  font-size: 12px; color: var(--text-dim); cursor: pointer; flex-shrink: 0;
  background: none; border: none; font-family: inherit; padding: 2px;
}
.pci-disclaimer-dismiss:hover { color: var(--text-muted); }
.reset-bar { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reset-note { font-size: 13px; color: var(--text-dim); }
.btn-reset {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border-2); color: var(--text-dim); background: var(--white);
  padding: 5px 12px; font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.btn-reset:hover { border-color: var(--red); color: var(--red); }

/* ── Checklist form (build page) ───────────────────────────────────────────── */
.form-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 24px; margin-bottom: 16px;
}
.form-card.visible { display: block; animation: fadeUp 0.2s ease; }
.prefill-banner {
  background: #dbeafe; color: var(--navy-2);
  font-size: 14px; padding: 10px 14px; margin-bottom: 14px; display: none;
}
.prefill-banner.visible { display: block; }
.field-group { margin-bottom: 20px; }
.field-label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block;
}
.select-wrap { position: relative; }
.field-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text); font-family: inherit; font-size: 15px;
  padding: 9px 32px 9px 11px; cursor: pointer;
  transition: border-color 0.15s; outline: none;
}
.field-select:focus { border-color: var(--border-focus); }
.select-chevron { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.radio-grid.cols-1 { grid-template-columns: 1fr; }
.radio-option {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 9px 12px; cursor: pointer; font-size: 15px; color: var(--text-muted);
  transition: all 0.15s;
}
.radio-option input[type="radio"] { display: none; }
.radio-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border-2); flex-shrink: 0;
  transition: all 0.15s;
}
.radio-option.selected { border-color: var(--navy-1); color: var(--text); background: #dbeafe; }
.radio-option.selected .radio-dot { border-color: var(--navy-1); background: var(--navy-1); }
.radio-text { font-size: 14px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.btn-primary-navy {
  background: var(--navy-1); color: var(--white); border: none;
  font-family: inherit; font-size: 15px; font-weight: 600;
  height: 40px; padding: 0 22px; cursor: pointer; transition: background 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary-navy:hover { background: var(--navy-2); }
.btn-primary-navy:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Scan page ─────────────────────────────────────────────────────────────── */
.scan-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.intake-card {
  background: var(--navy-2); padding: 22px; margin-bottom: 10px;
}
.intake-q { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.intake-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.intake-opt {
  flex: 1; min-width: 130px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 10px 14px; cursor: pointer; text-align: left; line-height: 1.35;
  transition: border-color 0.15s, background 0.15s;
}
.intake-opt:hover { border-color: var(--blue-light); background: rgba(255,255,255,0.12); }
.intake-opt.selected { border-color: var(--blue-light); background: rgba(147,197,253,0.2); }
.opt-label { display: block; font-weight: 700; margin-bottom: 2px; }
.opt-sub { display: block; font-size: 12px; color: var(--blue-lighter); opacity: 0.8; }
.intake-opt.selected .opt-sub { color: var(--blue-light); }
.intake-redirect { margin-top: 16px; padding: 14px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); display: none; }
.intake-redirect.visible { display: block; }
.intake-redirect p { font-size: 14px; color: var(--blue-lighter); line-height: 1.55; margin-bottom: 12px; }
.intake-redirect p strong { color: var(--white); }
.btn-redirect {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--white); color: var(--navy-2); border: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 8px 16px; cursor: pointer; text-decoration: none; transition: opacity 0.15s;
}
.btn-redirect:hover { opacity: 0.9; }

.saq-card { display: none; }
.saq-card.visible { display: block; animation: fadeUp 0.2s ease; margin-bottom: 10px; }
.saq-card .intake-card { margin-bottom: 0; }
.saq-q-step {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 8px;
}

.saq-result { display: none; }
.saq-result.visible {
  display: block; animation: fadeUp 0.2s ease;
  background: var(--white); border: 1px solid rgba(21,101,192,0.25);
  padding: 20px 22px; margin-bottom: 10px;
}
.saq-result.visible.saq-d { border-color: var(--red-border); }
.saq-result-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.saq-level-badge {
  background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.3);
  color: var(--navy-1); font-size: 17px; font-weight: 700;
  padding: 7px 14px; white-space: nowrap; flex-shrink: 0;
}
.saq-level-badge.saq-d { background: var(--red-dim); border-color: var(--red-border); color: var(--red); }
.saq-level-info {}
.saq-level-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.saq-level-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.saq-disclaimer {
  font-size: 12px; color: var(--text-dim); line-height: 1.6;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.saq-form-link { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.saq-form-link a { font-size: 14px; font-weight: 500; color: var(--navy-1); text-decoration: none; }
.saq-form-link a:hover { text-decoration: underline; }
.saq-form-source { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.scan-form-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 22px; display: none;
}
.scan-form-card.visible { display: block; animation: fadeUp 0.2s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.tab-bar {
  display: flex; gap: 0; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--border); padding: 3px;
}
.tab-btn {
  flex: 1; padding: 6px 12px; border: none;
  background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; text-align: center;
}
.tab-btn.active { background: var(--white); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.drop-zone {
  border: 2px dashed var(--border-2); padding: 32px 20px; text-align: center;
  cursor: pointer; transition: border-color 0.15s, background 0.15s; position: relative;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--navy-1); background: #dbeafe; }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon { width: 44px; height: 44px; margin: 0 auto 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.drop-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.drop-sub { font-size: 13px; color: var(--text-muted); }
.drop-sub span { color: var(--navy-1); }
.drop-file-name { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--green); display: none; align-items: center; justify-content: center; gap: 5px; }
.drop-file-name.visible { display: flex; }
.drop-ext-note { margin-top: 10px; font-size: 12px; color: var(--text-dim); }
.paste-row { display: flex; flex-direction: column; gap: 12px; }
.paste-filename-row { display: flex; gap: 8px; align-items: flex-start; }
.field-input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text); font-family: inherit; font-size: 15px;
  padding: 8px 11px; transition: border-color 0.15s; outline: none;
}
.field-input:focus { border-color: var(--border-focus); }
.field-input::placeholder { color: var(--text-dim); }
.code-area { font-family: 'Fira Code','Courier New',monospace; font-size: 14px; line-height: 1.65; resize: vertical; min-height: 200px; }
.filename-input { width: 200px; flex-shrink: 0; }
.section-divider { height: 1px; background: var(--border); margin: 20px 0; }
.select-wrapper { position: relative; }
.processor-note { margin-top: 5px; font-size: 12px; color: var(--text-dim); display: none; }
.processor-note.visible { display: block; }
.btn-scan {
  background: var(--navy-1); color: var(--white); border: none;
  font-family: inherit; font-size: 15px; font-weight: 600;
  height: 42px; padding: 0 24px; display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; transition: background 0.15s;
}
.btn-scan:hover { background: var(--navy-2); }
.btn-scan:disabled { opacity: 0.5; cursor: not-allowed; }
.scan-time-note { font-size: 13px; color: var(--text-dim); }
.form-error { background: var(--red-dim); border: 1px solid var(--red-border); padding: 9px 12px; font-size: 14px; color: var(--red); margin-top: 12px; display: none; }
.form-error.visible { display: block; }
.info-strip { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 24px; }
.info-item { display: flex; align-items: flex-start; gap: 7px; }
.info-icon { width: 18px; height: 18px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.info-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.info-text strong { color: var(--text); font-weight: 600; }

/* ── Monitor / Alerts ──────────────────────────────────────────────────────── */
.monitor-summary-strip {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.monitor-chip {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px;
}
.monitor-chip strong { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.monitor-chip span { font-size: 14px; color: var(--text-muted); }
.monitor-chip--red { border-color: var(--red-border); }
.monitor-chip--red strong { color: var(--red); }
.monitor-chip--amber { border-color: var(--yellow-border); }
.monitor-chip--amber strong { color: var(--yellow); }
.monitor-filter-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.monitor-select {
  background: var(--white); border: 1px solid var(--border-2);
  color: var(--text); font-family: inherit; font-size: 14px;
  padding: 6px 10px; cursor: pointer; outline: none; min-width: 160px;
  border-radius: var(--radius);
}
.monitor-select:focus { border-color: var(--border-focus); }
.monitor-filter-count { font-size: 13px; color: var(--text-dim); margin-right: auto; }
.monitor-mark-all-btn {
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 6px 14px; cursor: pointer; transition: all 0.15s; border-radius: var(--radius);
}
.monitor-mark-all-btn:hover { color: var(--text); border-color: var(--navy-1); }
.monitor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.monitor-panel { background: var(--white); border: 1px solid var(--border); margin-bottom: 10px; }
.monitor-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.monitor-panel-label {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
}
.unread-badge {
  background: var(--red); color: var(--white);
  font-size: 12px; font-weight: 700; border-radius: 99px;
  padding: 1px 6px; min-width: 16px; text-align: center;
}
.mark-all-btn {
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 5px 12px; cursor: pointer; transition: all 0.15s;
}
.mark-all-btn:hover { color: var(--text); border-color: var(--navy-1); }
.alerts-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.alert-card {
  background: var(--white); border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  padding: 14px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.alert-card.unread { border-left-color: var(--text-dim); }
.alert-card.unread.sev-critical { border-left-color: var(--red); }
.alert-card.unread.sev-warning { border-left-color: var(--yellow); }
.alert-card.unread.sev-info { border-left-color: var(--navy-1); }
.alert-card:hover { background: var(--surface-2); }
.card-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.proc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  padding: 2px 7px; white-space: nowrap;
}
.proc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--navy-1); }
.cls-badge {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 500;
  padding: 2px 7px; background: var(--surface-2); color: var(--text-muted); white-space: nowrap;
}
.card-date { font-size: 12px; color: var(--text-dim); margin-left: auto; white-space: nowrap; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.card-summary { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 6px; }
.card-pci-reason { font-size: 13px; color: var(--green); margin-bottom: 6px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-link { font-size: 13px; color: var(--navy-1); text-decoration: none; font-weight: 500; }
.card-link:hover { text-decoration: underline; }
.read-indicator { font-size: 12px; color: var(--text-dim); }

.empty-state { text-align: center; padding: 40px 20px; background: var(--surface-2); border: 1px solid var(--border); display: none; }
.empty-state.visible { display: block; }
.empty-icon { font-size: 26px; margin-bottom: 12px; opacity: 0.4; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.empty-desc { font-size: 14px; color: var(--text-dim); }

.status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 14px 16px; }
.status-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot--green { background: #16a34a; }
.status-dot--amber { background: #d97706; }
.status-dot--blue  { background: var(--navy-1); }

.rescan-tile { background: var(--navy-2); padding: 18px 18px; }
.rescan-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-lighter); margin-bottom: 8px; }
.rescan-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.rescan-sub { font-size: 13px; color: var(--blue-lighter); margin-bottom: 14px; }
.btn-rescan {
  background: var(--white); color: var(--navy-2); border: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 8px 16px; cursor: pointer; text-decoration: none;
  display: inline-block; transition: opacity 0.15s;
}
.btn-rescan:hover { opacity: 0.9; }

.filter-tile { background: var(--white); border: 1px solid var(--border); padding: 14px 16px; }
.filter-tile-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.filter-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  font-size: 13px; font-weight: 600; padding: 5px 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.filter-btn.active { background: var(--navy-1); border-color: var(--navy-1); color: var(--white); }
.filter-btn:hover:not(.active) { border-color: var(--navy-1); color: var(--text); }

.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-select {
  background: var(--white); border: 1px solid var(--border-2);
  color: var(--text); font-family: inherit; font-size: 14px;
  padding: 6px 10px; cursor: pointer; outline: none; min-width: 150px;
}
.filter-select:focus { border-color: var(--border-focus); }
.filter-count { font-size: 13px; color: var(--text-dim); }

/* ── Scan results ──────────────────────────────────────────────────────────── */
#loading-state { display: block; }
#results-state { display: none; }
#error-state   { display: none; }

.loading-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 48px 40px; text-align: center;
}
.loading-icon {
  width: 60px; height: 60px; background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 28px;
}
.loading-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.loading-msg { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; min-height: 18px; }
.progress-track { background: var(--surface-3); height: 5px; margin-bottom: 8px; }
.progress-pct { font-size: 13px; color: var(--text-dim); text-align: right; }
.steps-row { display: flex; justify-content: center; gap: 24px; margin-top: 28px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; border: 2px solid var(--border-2);
  color: var(--text-dim); background: var(--surface-2); transition: all 0.3s;
}
.step-dot.done  { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.step-dot.active { background: var(--accent-dim); border-color: var(--navy-1); color: var(--navy-1); animation: pulse-ring 1.5s ease-in-out infinite; }
@keyframes pulse-ring { 0%,100% { box-shadow: 0 0 0 0 rgba(21,101,192,0.3); } 50% { box-shadow: 0 0 0 5px rgba(21,101,192,0); } }
.step-label { font-size: 12px; color: var(--text-dim); text-align: center; max-width: 68px; }
.step-item.done .step-label  { color: var(--green); }
.step-item.active .step-label { color: var(--text-muted); }

.error-card { background: var(--red-dim); border: 1px solid var(--red-border); padding: 28px; text-align: center; }
.error-card h2 { color: var(--red); margin-bottom: 6px; }
.error-card p  { color: var(--text-muted); margin-bottom: 16px; }

.scan-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.scan-file { font-size: 14px; color: var(--text-muted); }
.scan-file strong { color: var(--text); font-weight: 600; }
.scan-processor-badge { font-size: 12px; font-weight: 600; color: var(--navy-1); background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.2); padding: 3px 9px; text-transform: uppercase; letter-spacing: 0.4px; }
.summary-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 16px; }
.summary-cell { background: var(--white); padding: 14px 16px; text-align: center; }
.summary-val { font-size: 26px; font-weight: 700; line-height: 1; margin-bottom: 3px; }
.summary-val.red    { color: var(--red); }
.summary-val.yellow { color: var(--yellow); }
.summary-val.green  { color: var(--green); }
.summary-val.blue   { color: var(--navy-1); }
.summary-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.gauge-cell { background: var(--white); padding: 12px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-wrap { position: relative; width: 76px; height: 44px; }
.gauge-svg  { width: 76px; height: 44px; overflow: visible; }
.gauge-number { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; }
.gauge-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 3px; }
.result-banner { padding: 12px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 15px; font-weight: 500; }
.result-banner.green  { background: #f0fdf4; border: 1px solid var(--green-border); color: var(--green); }
.result-banner.yellow { background: #fffbeb; border: 1px solid var(--yellow-border); color: var(--yellow); }
.result-banner.red    { background: #fef2f2; border: 1px solid var(--red-border); color: var(--red); }
.banner-icon { font-size: 18px; flex-shrink: 0; }
.saq-info-banner { background: var(--white); border: 1px solid rgba(21,101,192,0.25); padding: 12px 16px 12px 14px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.saq-info-banner.saq-d { border-color: var(--red-border); background: var(--red-dim); }
.saq-info-badge { background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.3); color: var(--navy-1); font-size: 14px; font-weight: 700; padding: 4px 10px; white-space: nowrap; flex-shrink: 0; }
.saq-info-badge.saq-d { background: var(--red-dim); border-color: var(--red-border); color: var(--red); }
.saq-info-body { flex: 1; }
.saq-info-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.saq-info-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.findings-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.finding-card { background: var(--white); border: 1px solid var(--border); }
.finding-card.error-card-border   { border-left: 3px solid var(--red); }
.finding-card.warning-card-border { border-left: 3px solid var(--yellow); }
.finding-header { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.finding-rule { font-size: 15px; font-weight: 600; color: var(--text); }
.finding-location { padding: 0 14px 8px; font-family: 'Fira Code','Courier New',monospace; font-size: 12px; color: var(--text-muted); }
.finding-code { margin: 0 14px 10px; background: var(--surface-2); border: 1px solid var(--border-2); padding: 8px 10px; overflow-x: auto; }
.finding-code pre { font-family: 'Fira Code','Courier New',monospace; font-size: 13px; color: var(--text); white-space: pre; line-height: 1.6; margin: 0; }
.finding-body { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.field-label-sm { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 3px; }
.field-value { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.field-code { background: var(--surface-2); border: 1px solid var(--border); padding: 8px 10px; overflow-x: auto; font-family: 'Fira Code','Courier New',monospace; font-size: 13px; color: var(--text); white-space: pre; line-height: 1.6; margin: 0; max-height: 160px; }
.pci-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--border-2); padding: 2px 7px; font-size: 13px; color: var(--text-muted); }
.locked-card { background: var(--white); border: 1px solid var(--border-2); padding: 24px 18px; text-align: center; position: relative; overflow: hidden; }
.locked-blur-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; opacity: 0.15; filter: blur(3px); pointer-events: none; user-select: none; }
.blur-line { height: 10px; background: var(--border-2); }
.lock-overlay-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lock-icon-wrap { width: 38px; height: 38px; background: var(--surface-2); border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.lock-count { font-size: 16px; font-weight: 700; color: var(--text); }
.lock-subtext { font-size: 13px; color: var(--text-muted); }
.gate-section { display: block; }
.gate-section.hidden { display: none; }
.gate-price-card { background: var(--white); border: 1px solid var(--border-2); padding: 28px 24px; text-align: center; margin-bottom: 20px; }
.gate-price-badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--navy-1); background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.2); padding: 2px 9px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.gate-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.gate-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 0; }
.gate-price-row { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 14px 0 18px; }
.gate-price { font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.gate-price-note { font-size: 14px; color: var(--text-muted); }
.btn-pay { background: var(--navy-1); color: var(--white); border: none; font-family: inherit; font-size: 16px; font-weight: 600; height: 46px; padding: 0 28px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: background 0.15s; margin-bottom: 10px; }
.btn-pay:hover { background: var(--navy-2); }
.gate-trust { font-size: 13px; color: var(--text-dim); }
.pdf-locked-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: var(--white); border: 1px solid var(--border); padding: 10px 16px; margin-bottom: 16px; }
.pdf-locked-label { font-size: 14px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.btn-pdf-locked { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); font-family: inherit; font-size: 14px; font-weight: 600; height: 34px; padding: 0 12px; cursor: not-allowed; opacity: 0.4; pointer-events: none; }
.pdf-unlocked-row { display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cta-strip { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.cta-strip-title { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 3px; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-cta-primary { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-dim); border: 1px solid rgba(21,101,192,0.25); color: var(--navy-1); font-family: inherit; font-size: 14px; font-weight: 600; height: 36px; padding: 0 14px; text-decoration: none; transition: all 0.15s; }
.btn-cta-primary:hover { background: rgba(21,101,192,0.15); }
.btn-cta { display: inline-flex; align-items: center; gap: 5px; background: var(--white); border: 1px solid var(--border-2); color: var(--text-muted); font-family: inherit; font-size: 14px; font-weight: 500; height: 36px; padding: 0 12px; text-decoration: none; transition: all 0.15s; }
.btn-cta:hover { border-color: var(--navy-1); color: var(--text); }
.btn-cta.pdf-action { border-color: rgba(21,101,192,0.25); color: var(--navy-1); }
.btn-cta.pdf-action:hover { background: var(--accent-dim); }
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-card { background: var(--white); border: 1px solid var(--border-2); padding: 28px; max-width: 420px; width: 100%; }
.modal-title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.modal-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.55; }
.modal-input { width: 100%; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); font-family: inherit; font-size: 15px; padding: 10px 12px; outline: none; transition: border-color 0.15s; margin-bottom: 10px; }
.modal-input:focus { border-color: var(--border-focus); }
.modal-input::placeholder { color: var(--text-dim); }
.modal-btn { width: 100%; height: 42px; background: var(--navy-1); color: var(--white); border: none; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.modal-btn:hover { background: var(--navy-2); }
.modal-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.modal-skip { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-dim); cursor: pointer; text-decoration: underline; }
.modal-skip:hover { color: var(--text-muted); }
.modal-error { font-size: 13px; color: var(--red); margin-bottom: 8px; display: none; }
.modal-error.visible { display: block; }
.modal-beta-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--yellow); background: var(--yellow-dim); border: 1px solid var(--yellow-border); padding: 2px 7px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.roi-banner { background: var(--hero); display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.roi-banner-left { font-size: 14px; color: var(--blue-lighter); line-height: 1.55; max-width: 520px; }
.roi-banner-right { font-size: 14px; font-weight: 700; color: var(--white); white-space: nowrap; }
.billing-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.toggle-label { font-size: 14px; color: var(--text-muted); }
.toggle-switch { width: 36px; height: 20px; background: var(--border-2); border-radius: 10px; position: relative; cursor: pointer; transition: background 0.2s; }
.toggle-switch.on { background: var(--navy-1); }
.toggle-knob { width: 16px; height: 16px; background: var(--white); border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle-switch.on .toggle-knob { left: 18px; }
.save-badge { background: #d1fae5; color: #166534; font-size: 12px; font-weight: 700; padding: 2px 8px; }
.pricing-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-bottom: 24px; }
.pricing-tier { background: var(--white); border: 1px solid var(--border); padding: 18px 16px; display: flex; flex-direction: column; }
.pricing-tier--featured { border-top: 4px solid var(--navy-1); }
.tier-name { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.tier-badge { background: var(--navy-1); color: var(--white); font-size: 10px; font-weight: 700; padding: 2px 6px; display: inline-block; margin-bottom: 4px; }
.tier-price { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 3px; }
.tier-price-note { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.tier-annual { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.tier-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 12px; flex: 1; }
.tier-features { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.tier-feature { font-size: 13px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 5px; }
.tier-feature--yes { color: var(--text); }
.tier-feature--no { color: var(--text-dim); }
.tier-feature-check { flex-shrink: 0; font-size: 13px; margin-top: 1px; }
.btn-tier {
  display: block; text-align: center; padding: 9px 12px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none; transition: opacity 0.15s;
}
.btn-tier--paid { background: var(--navy-1); color: var(--white); }
.btn-tier--free { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.btn-tier--enterprise { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.btn-tier:hover { opacity: 0.85; }
.roi-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 24px; }
.roi-card { background: var(--hero); padding: 20px 18px; }
.roi-card-val { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.roi-card-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-lighter); margin-bottom: 8px; }
.roi-card-desc { font-size: 13px; color: var(--blue-lighter); line-height: 1.55; }
.faq-section { background: var(--white); border: 1px solid var(--border); margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); gap: 10px; }
.faq-chevron { color: var(--text-muted); font-size: 16px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(90deg); }
.faq-a { display: none; padding: 0 18px 14px; font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }
.pricing-disclaimer { font-size: 12px; text-align: center; color: var(--text-dim); line-height: 1.65; padding: 16px 0; }

/* ── Persistent page-bottom CTA ────────────────────────────────────────────── */
.page-cta-bottom-shared {
  margin-top: 32px; padding: 22px 26px;
  background: var(--navy-1); color: #fff;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.page-cta-bottom-shared .pcb-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.page-cta-bottom-shared .pcb-sub { font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.5; max-width: 480px; }
.page-cta-bottom-shared .pcb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--navy-1);
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.15s;
}
.page-cta-bottom-shared .pcb-btn:hover { background: rgba(255,255,255,0.92); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .page-aside { position: static; order: -1; }
  .compare-layout { grid-template-columns: 1fr; }
  .build-layout { grid-template-columns: 1fr; }
  .scan-layout { grid-template-columns: 1fr; }
  .monitor-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .flywheel-grid { grid-template-columns: 1fr; }
  .roi-cards { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .summary-strip { grid-template-columns: repeat(2,1fr); }
  .steps-row { gap: 14px; }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .radio-grid { grid-template-columns: 1fr; }
}

/* ── Header auth controls ──────────────────────────────────────────────────── */
.header-right { display: flex; align-items: center; gap: 4px; }
.header-auth { display: flex; align-items: center; gap: 8px; padding-left: 10px; }
.header-signin {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; padding: 6px 8px; transition: color 0.15s;
}
.header-signin:hover { color: var(--text); }
.header-getstarted {
  font-size: 14px; font-weight: 600; color: var(--white);
  background: var(--navy-1); text-decoration: none;
  padding: 7px 14px; border-radius: var(--radius); transition: background 0.15s;
}
.header-getstarted:hover { background: var(--navy-2); }
.header-user {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; max-width: 200px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  border-bottom: 2px solid transparent; padding: 16px 4px; transition: color 0.15s;
}
.header-user:hover { color: var(--text); }
.header-user.active { color: var(--text); border-bottom-color: var(--hero); }
.header-logout-form { margin: 0; }
.header-signout {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 6px 8px; transition: color 0.15s;
}
.header-signout:hover { color: var(--red); }

/* ── Flash messages ────────────────────────────────────────────────────────── */
.flash-wrap { max-width: 960px; margin: 12px auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 10px 14px; font-size: 14px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.flash--success { background: var(--green-dim); border-color: var(--green-border); color: var(--green); }
.flash--error   { background: var(--red-dim);   border-color: var(--red-border);   color: var(--red); }
.flash--message { background: var(--accent-dim); border-color: rgba(21,101,192,0.2); color: var(--accent); }

/* ── Auth pages (login / register / forgot / reset) ────────────────────────── */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 8px 24px 0; }
.auth-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 28px 28px 24px; margin-bottom: 16px;
}
.auth-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--navy-1); margin-bottom: 8px;
}
.auth-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 20px; }
.auth-field { margin-bottom: 16px; }
.auth-label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block;
}
.auth-input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text); font-family: inherit; font-size: 15px;
  padding: 10px 12px; transition: border-color 0.15s; outline: none;
}
.auth-input:focus { border-color: var(--border-focus); }
.auth-input::placeholder { color: var(--text-dim); }
.auth-submit {
  width: 100%; background: var(--navy-1); color: var(--white); border: none;
  font-family: inherit; font-size: 15px; font-weight: 600;
  height: 44px; cursor: pointer; transition: background 0.15s; margin-top: 4px;
}
.auth-submit:hover { background: var(--navy-2); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-error {
  background: var(--red-dim); border: 1px solid var(--red-border);
  color: var(--red); font-size: 14px; padding: 9px 12px; margin-bottom: 16px; display: none;
}
.auth-error.visible { display: block; }
.auth-success {
  background: var(--green-dim); border: 1px solid var(--green-border);
  color: var(--green); font-size: 14px; padding: 11px 14px; line-height: 1.5;
}
.auth-meta { font-size: 14px; color: var(--text-muted); text-align: center; }
.auth-meta a { color: var(--navy-1); text-decoration: none; font-weight: 600; }
.auth-meta a:hover { text-decoration: underline; }
.auth-forgot { text-align: right; margin-top: -8px; margin-bottom: 16px; }
.auth-forgot a { font-size: 13px; color: var(--navy-1); text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }
.auth-terms {
  font-size: 12px; color: var(--text-dim); line-height: 1.55; margin: 4px 0 16px;
}
.auth-terms a { color: var(--navy-1); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

/* ── Account page ──────────────────────────────────────────────────────────── */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 12px; align-items: start; }
.account-card { background: var(--white); border: 1px solid var(--border); padding: 22px; }
.account-card-label {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.account-row { margin-bottom: 14px; }
.account-row-label { font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.account-row-val { font-size: 15px; color: var(--text); font-weight: 500; word-break: break-all; }
.account-plan-badge {
  display: inline-flex; align-items: center; background: var(--accent-dim);
  border: 1px solid rgba(21,101,192,0.25); color: var(--navy-1);
  font-size: 14px; font-weight: 700; padding: 3px 10px;
}
.account-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.account-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 600; padding: 9px 14px; text-decoration: none;
  border-radius: var(--radius); transition: all 0.15s; cursor: pointer;
  font-family: inherit; border: 1px solid var(--border-2);
}
.account-btn--primary { background: var(--navy-1); color: var(--white); border-color: var(--navy-1); }
.account-btn--primary:hover { background: var(--navy-2); }
.account-btn--ghost { background: var(--white); color: var(--text-muted); }
.account-btn--ghost:hover { border-color: var(--navy-1); color: var(--text); }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left; font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.history-table td {
  font-size: 14px; color: var(--text); padding: 10px;
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.history-table tr:last-child td { border-bottom: none; }
.history-file { font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-score { font-weight: 700; }
.history-score--good { color: var(--green); }
.history-score--warn { color: var(--yellow); }
.history-score--bad  { color: var(--red); }
.history-empty { padding: 28px 16px; text-align: center; color: var(--text-muted); font-size: 14px; }
.history-empty a { color: var(--navy-1); text-decoration: none; font-weight: 600; }

@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; }
}
