/* ── Variables ─────────────────────────────────────────────── */
:root {
  --brand:          #2563eb;
  --brand-dark:     #1d4ed8;
  --btn-dark:       #111827;
  --btn-dark-h:     #374151;
  --text-primary:   #111827;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;
  --danger:         #dc2626;
  --success:        #16a34a;
  --warning-color:  #d97706;
  --border:         #e5e7eb;
  --bg:             #f2f3ec;
  --white:          #ffffff;
  --radius:         14px;
  --shadow:         0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:      0 4px 20px rgba(0,0,0,.09);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: linear-gradient(to bottom left, rgb(237,229,156), rgb(234,228,240));
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Layout ────────────────────────────────────────────────── */
.app-wrap          { min-height: 100vh; display: flex; flex-direction: column; }
.container         { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 600px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: transparent;
  border-bottom: none;
  position: sticky; top: 0; z-index: 100;
  padding: .875rem 1.25rem;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: .5rem 1.125rem .5rem .875rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  max-width: 860px;
  margin: 0 auto;
  height: 60px;
  padding: 0 32px;
}
.logo {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; color: var(--text-primary);
  font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
.logo-mark { display: none; }
.header-nav { display: flex; gap: 1.125rem; align-items: center; }
.header-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  transition: color .15s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--text-primary); }

/* ── Hamburger & Mobile Nav ────────────────────────────────── */
.btn-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: .375rem .5rem;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  border-radius: 8px;
}
.btn-hamburger:hover { background: rgba(0,0,0,.06); }

.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  justify-content: flex-end;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-panel {
  background: var(--white);
  padding: 1.25rem;
  width: 240px;
  min-height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: -4px 0 20px rgba(0,0,0,.12);
}
.mobile-nav-close {
  align-self: flex-end;
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--text-secondary);
  padding: .25rem; margin-bottom: .75rem;
}
.mobile-nav-panel a {
  display: block;
  padding: .75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
}
.mobile-nav-panel a:hover { background: var(--bg); }

/* ── Screens ───────────────────────────────────────────────── */
.screen { display: none; }
.screen.active { display: block; }

/* ── Page sections ─────────────────────────────────────────── */
.page-hero    { padding: 2rem 0; }
.page-section { padding: 2rem 0; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }

/* ── Home page ─────────────────────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.home-hero h1 {
  font-size: 32px; font-weight: 700; line-height: 1.2;
  margin-bottom: .75rem;
}
.home-hero p {
  color: var(--text-secondary); font-size: 15px; line-height: 1.7;
  max-width: 600px; margin: 0 auto;
}

.learn-cards-grid {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .learn-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.home-cta-section {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem; margin-bottom: 0;
  text-align: center;
}
.home-cta-title  { font-size: 16px; font-weight: 600; margin-bottom: .375rem; }
.home-cta-sub    { font-size: 13px; color: var(--text-secondary); margin-bottom: 1.25rem; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card-surface { border: 1px solid var(--border); }

/* Question section card */
.q-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
  margin-bottom: .875rem;
  box-shadow: var(--shadow);
}
.q-card .form-label { font-size: 14px; font-weight: 600; margin-bottom: .75rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: .625rem 1.375rem;
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1.5px solid transparent;
  text-decoration: none; line-height: 1.4;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-block    { display: flex; width: 100%; border-radius: 100px; margin-left: auto; margin-right: auto; }
.btn-lg       { padding: .8rem 1.5rem; font-size: 15px; }
.btn-sm       { padding: .35rem .875rem; font-size: 13px; border-radius: 100px; }

.btn-primary  { background: var(--btn-dark); color: #fff; border-color: var(--btn-dark); }
.btn-primary:hover:not(:disabled) { background: var(--btn-dark-h); border-color: var(--btn-dark-h); }

.btn-outline  { background: rgba(255,255,255,.7); color: var(--text-primary); border-color: var(--border); }
.btn-outline:hover:not(:disabled) { background: var(--white); border-color: #d1d5db; }

.btn-ghost    { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: rgba(0,0,0,.04); }

.btn-danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

/* ── Option cards ──────────────────────────────────────────── */
.option-list  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.25rem; }
.option-card {
  display: flex; align-items: center; gap: 14px;
  padding: .875rem 1.125rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s, background .15s;
  box-shadow: var(--shadow);
}
.option-card:hover    { border-color: var(--btn-dark); }
.option-card.selected { border-color: var(--btn-dark); background: #f8f9fa; }

.oc-icon  { font-size: 22px; color: var(--text-secondary); flex-shrink: 0; }
.oc-title { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.oc-desc  { display: block; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* ── Progress bar ──────────────────────────────────────────── */
.progress-wrap {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.progress-track {
  flex: 1; height: 4px; background: rgba(0,0,0,.08);
  border-radius: 100px; overflow: hidden; margin-right: .75rem;
}
.progress-fill { height: 100%; background: var(--btn-dark); border-radius: 100px; transition: width .4s; }
.progress-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group   { margin-bottom: 1.25rem; }
.form-label   { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; padding: .625rem .875rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; background: var(--white); color: var(--text-primary);
  transition: border-color .15s; outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--btn-dark); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }

/* ── Severity selector ─────────────────────────────────────── */
.severity-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.sev-btn {
  padding: .45rem 1rem; border-radius: 8px; font-size: 13px;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.sev-btn:hover  { border-color: var(--btn-dark); }
.sev-btn.active { border-color: var(--btn-dark); background: #f3f4f6; font-weight: 600; color: var(--btn-dark); }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: .875rem 1rem; border-radius: var(--radius);
  font-size: 13px; line-height: 1.55; margin-bottom: 1rem;
}
.alert i { flex-shrink: 0; font-size: 16px; margin-top: 1px; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-danger  { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-hidden  { display: none !important; }

/* ── Code display ──────────────────────────────────────────── */
.code-display {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}
.code-label {
  font-size: 12px; color: var(--text-muted); margin-bottom: .5rem; letter-spacing: .03em;
}
.code-value {
  font-family: 'Courier New', monospace;
  font-size: 28px; font-weight: 700;
  letter-spacing: .07em;
  color: #0891b2;
  margin-bottom: 1rem;
}
.code-actions { display: flex; justify-content: center; gap: 8px; }

/* ── Tabs ──────────────────────────────────────────────────── */
.tab-bar {
  display: flex; border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}
.tab-btn {
  padding: .6rem 1.25rem; font-size: 14px; font-weight: 500;
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; color: var(--text-secondary);
  transition: color .15s;
}
.tab-btn.active { color: var(--btn-dark); border-bottom-color: var(--btn-dark); }
.tab-panel         { display: none; }
.tab-panel.active  { display: block; }

/* ── Stats grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  box-shadow: var(--shadow);
}
.stat-card.urgent { border-color: #fecaca; background: #fef2f2; }
.stat-value       { font-size: 28px; font-weight: 700; color: var(--btn-dark); }
.stat-card.urgent .stat-value { color: var(--danger); }
.stat-label       { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Divider ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── Text utilities ────────────────────────────────────────── */
.text-muted    { color: var(--text-muted); }
.text-small    { font-size: 13px; }
.text-center   { text-align: center; }

/* ── Monospace ─────────────────────────────────────────────── */
.mono, .code-input {
  font-family: 'Courier New', monospace;
  letter-spacing: .05em;
}

/* ── Spinner ───────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .6s linear infinite;
  vertical-align: middle;
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 300; padding: 0;
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 1.25rem; }
}
.modal-hidden { display: none !important; }
.modal-box {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 1.75rem; width: 100%;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  max-height: 90vh; overflow-y: auto;
}
@media (min-width: 600px) {
  .modal-box {
    border-radius: 16px; max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
  }
}

/* ── Learn cards ───────────────────────────────────────────── */
.learn-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.learn-card-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem 1.125rem;
  background: none; border: none; cursor: pointer; text-align: left;
  transition: background .15s;
}
.learn-card-header:hover { background: rgba(0,0,0,.025); }
.learn-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.learn-chevron { color: var(--text-muted); transition: transform .25s; font-size: 16px; }
.learn-card.learn-open .learn-chevron { transform: rotate(180deg); }
.learn-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  padding: 0 1.125rem;
}
.learn-card.learn-open .learn-body {
  max-height: 700px;
  padding: 0 1.125rem 1.125rem;
}
.learn-list {
  font-size: 13px; color: var(--text-secondary);
  padding-left: 1.25rem; line-height: 1.85; margin-bottom: .75rem;
}
.learn-key {
  display: flex; gap: 8px; align-items: flex-start;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px;
  padding: .625rem .875rem; font-size: 12px; color: #0c4a6e; line-height: 1.55;
}
.learn-key i { flex-shrink: 0; margin-top: 1px; }

/* ── Precheck form ─────────────────────────────────────────── */
.pc-check, .pc-radio {
  display: flex; align-items: flex-start; gap: 10px;
  padding: .625rem .875rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; font-size: 13px;
  transition: border-color .15s, background .15s;
  background: var(--white);
}
.pc-check:hover, .pc-radio:hover { border-color: var(--btn-dark); }
.pc-check input, .pc-radio input { margin-top: 2px; flex-shrink: 0; accent-color: var(--btn-dark); }

/* ── Precheck result ───────────────────────────────────────── */
.precheck-result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.375rem;
  margin-bottom: .875rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.precheck-result-label {
  font-size: 11px; color: var(--text-muted); letter-spacing: .03em;
  margin-bottom: .25rem;
}
.score-corner {
  position: absolute; top: 1.25rem; right: 1.25rem;
}
.pc-score-ring {
  display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  border: 7px solid var(--border);
  transition: border-color .3s;
  background: var(--white);
}
.pc-ring-high { border-color: #fca5a5; }
.pc-ring-mid  { border-color: #fcd34d; }
.pc-ring-low  { border-color: #86efac; }
.pc-score-num { font-size: 20px; font-weight: 700; line-height: 1; }
.pc-score-max { font-size: 10px; color: var(--text-muted); }

/* Override alert inside precheck result card */
#pc-result-alert.alert {
  background: transparent; border: none; padding: 0 80px 0 0;
  margin-bottom: .625rem; font-size: 20px; font-weight: 700; line-height: 1.25;
  align-items: flex-start; gap: 0;
}
#pc-result-alert.alert i { display: none; }
#pc-result-alert.alert-danger  { color: var(--danger); }
#pc-result-alert.alert-warning { color: var(--warning-color); }
#pc-result-alert.alert-info    { color: var(--success); }
#pc-result-alert.alert span    { font-size: 20px; font-weight: 700; }

#pc-result-detail { font-size: 14px; }

/* ── Result page ───────────────────────────────────────────── */
.result-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  margin-bottom: .875rem;
  box-shadow: var(--shadow);
}
.result-section-label {
  font-size: 11px; color: var(--text-muted); letter-spacing: .03em;
  margin-bottom: .25rem;
}

/* ── Record lookup ─────────────────────────────────────────── */
.lookup-input-row {
  display: flex; gap: 8px; margin-bottom: 1rem;
}
.lookup-btn-search {
  border-radius: 10px; flex-shrink: 0;
}

/* ── Record card in lookup ─────────────────────────────────── */
.record-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: .875rem;
  box-shadow: var(--shadow);
}
.record-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 8px; margin-bottom: 1rem;
}
.record-code {
  font-family: 'Courier New', monospace;
  color: #0891b2; font-weight: 700; font-size: 15px;
  letter-spacing: .04em;
}
.record-time { font-size: 12px; color: var(--text-muted); }
.record-field {
  font-size: 13px; margin-bottom: 4px; display: flex; gap: 6px;
}
.record-field-label { color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.tag {
  display: inline-block; background: #f3f4f6; border-radius: 6px;
  padding: 2px 10px; font-size: 12px; margin: 2px 3px 2px 0;
  color: var(--text-primary);
}
.record-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem;
}

/* ── Timeline ──────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 4px; }
.tl-item  { position: relative; padding-left: 22px; padding-bottom: 1rem; }
.tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 5px; top: 14px; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-dot {
  position: absolute; left: 0; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--btn-dark); border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--btn-dark);
}
.tl-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: .75rem .875rem;
}
.tl-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 4px;
  font-size: 12px; color: var(--text-secondary); margin-bottom: .5rem;
}
.tl-date    { color: var(--text-muted); }
.tl-medical { color: var(--brand); font-weight: 600; }
.tl-behavior {
  font-size: 13px; line-height: 1.65; color: var(--text-primary);
  margin-bottom: .5rem; white-space: pre-wrap;
}
.tl-meta {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 3px; display: flex; align-items: center; gap: 5px;
}
.tl-meta i { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.tl-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .5rem; }
.tl-att {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0f9ff; color: #0c4a6e; border-radius: 6px;
  padding: 2px 8px; font-size: 11px;
}
.tl-att-link { cursor: pointer; }
.tl-att-link:hover, .tl-att-link:focus-visible { background: #e0f2fe; }
.tl-hash {
  font-family: monospace; font-size: 10px; color: var(--text-muted);
  margin-top: .5rem; word-break: break-all;
}

/* ── HR dashboard specific ─────────────────────────────────── */
.page-section .stats-grid { margin-top: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 601px) {
  .btn-block { width: 300px; }
}
/* ── 後台主分頁與自評統計圖 ───────────────────────────────── */
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.as-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: #eef0f2; }
.as-bar > span { display: block; height: 100%; min-width: 0; }
.as-row { display: grid; grid-template-columns: 8.5em 1fr 4.5em; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.as-track { height: 12px; background: #eef0f2; border-radius: 100px; overflow: hidden; }
.as-fill { height: 100%; background: var(--btn-dark); border-radius: 100px; }
.as-cols { display: flex; align-items: flex-end; gap: 6px; height: 130px; }
.as-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; }
.as-col-lab { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-seg { width: 100%; }
.as-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin-bottom: .5rem; }
.as-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* ── AnSafe 2.0 分流流程 ──────────────────────────────────── */
.v2-list { margin: .35rem 0 .5rem 1.1rem; padding: 0; line-height: 1.8; }
.v2-scale { justify-content: center; text-align: center; }
.v2-light { display: flex; gap: 14px; align-items: flex-start; padding: 1.25rem 1.375rem; border-radius: var(--radius); border: 1.5px solid; margin-bottom: 1rem; }
.v2-light p { font-size: 14px; line-height: 1.75; margin-top: .375rem; }
.v2-light-name { font-size: 17px; font-weight: 600; }
.v2-light-dot { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; margin-top: 4px; }
.v2-light-green  { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.v2-light-green  .v2-light-dot { background: #16a34a; }
.v2-light-yellow { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.v2-light-yellow .v2-light-dot { background: #f59e0b; }
.v2-light-red    { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.v2-light-red    .v2-light-dot { background: #dc2626; }

@media (max-width: 600px) {
  .stats-grid     { grid-template-columns: 1fr; }
  .severity-row   { flex-direction: column; }
  .code-value     { font-size: 22px; }
  .home-hero h1   { font-size: 26px; }
  .btn-hamburger  { display: flex; }
  .header-nav     { display: none; }
  .container--narrow { padding: 0 1rem; }
  .pc-score-ring  { width: 60px; height: 60px; border-width: 6px; }
  .pc-score-num   { font-size: 18px; }
  #pc-result-alert.alert { font-size: 18px; }
  #pc-result-alert.alert span { font-size: 18px; }
}
