/* Editorial Casebook Theme — 何林桐 · 运营实习作品集 */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-subtle: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --primary: #1E3A8A;
  --primary-accent: #2563EB;
  --primary-soft: #EFF6FF;
  --emerald: #059669;
  --emerald-soft: #ECFDF5;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --rose: #E11D48;
  --rose-soft: #FFF1F2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.brand-title {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(5, 150, 105, 0.2);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-accent);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12.5px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 32px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-accent);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 860px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item strong {
  color: var(--text);
  font-weight: 600;
}

/* 4 KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.kpi-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Perspective Filter Bar ---------- */
.perspective-section {
  padding: 12px 0 28px;
}

.perspective-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.perspective-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.perspective-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.filter-tab:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.perspective-summary {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--primary-soft);
  border-left: 3px solid var(--primary-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--text);
}

/* ---------- Section Headings ---------- */
.section {
  padding: 28px 0;
}

.section-header {
  margin-bottom: 20px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-accent);
  margin-bottom: 4px;
}

.section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.section-desc {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---------- Case Study Cards ---------- */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.case-card.is-highlighted {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), var(--shadow-md);
}

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.case-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-accent);
  margin-bottom: 4px;
}

.case-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
}

.case-role-meta {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}

.tag-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.2);
}

.tag-blue {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.match-badge {
  display: none;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.case-card.is-highlighted .match-badge {
  display: inline-block;
}

/* STAR / SOP grid */
.case-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.case-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.sub-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.sub-panel h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.sub-panel p,
.sub-panel ul {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.sub-panel ul {
  padding-left: 18px;
}

.sub-panel li + li {
  margin-top: 5px;
}

/* 5-step flow */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.flow-step {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  position: relative;
}

.flow-step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-accent);
  margin-bottom: 4px;
}

.flow-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.flow-step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- AI QA Interactive Workbench ---------- */
.workbench {
  margin-top: 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}

.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.workbench-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.workbench-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.wb-tab {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
}

.wb-tab.active {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: #FFFFFF;
}

.workbench-body {
  padding: 20px;
}

.wb-prompt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
}

.wb-prompt-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.wb-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wb-col {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
}

.wb-col-bad {
  background: var(--rose-soft);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.wb-col-good {
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.wb-col-title {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wb-col-bad .wb-col-title {
  color: var(--rose);
}

.wb-col-good .wb-col-title {
  color: var(--emerald);
}

.wb-rationale {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Evidence Gallery ---------- */
.evidence-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.evidence-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.evidence-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.evidence-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

.evidence-thumb-wrap {
  height: 200px;
  background: #E2E8F0;
  overflow: hidden;
  position: relative;
}

.evidence-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.evidence-zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #FFFFFF;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.evidence-caption {
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.evidence-caption strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

/* ---------- Skills & Multi-background ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.skill-card-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-accent);
  background: var(--primary-soft);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skill-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
}

.skill-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.skill-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.skill-list li + li {
  margin-top: 4px;
}

/* ---------- Download & Contact CTA ---------- */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.download-btn:hover {
  border-color: var(--primary-accent);
  background: var(--primary-soft);
  color: var(--primary);
}

.download-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  color: var(--text-muted);
  font-weight: 600;
}

.contact-val {
  font-weight: 700;
  color: var(--text);
}

.contact-btns {
  display: flex;
  gap: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0 40px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.lightbox-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.lightbox-close {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}

.lightbox-body {
  padding: 16px;
  overflow-y: auto;
  background: #0F172A;
  text-align: center;
}

.lightbox-body img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.lightbox-note {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-grid-2,
  .case-grid-3,
  .skills-grid,
  .evidence-grid,
  .wb-compare,
  .cta-card {
    grid-template-columns: 1fr;
  }
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-card,
  .case-card,
  .cta-card {
    padding: 20px;
  }
  .hero-title {
    font-size: 24px;
  }
  .kpi-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Print / Export Portfolio PDF ---------- */
@media print {
  .site-header,
  .perspective-section,
  .workbench-tabs,
  .evidence-zoom-hint,
  .lightbox,
  .toast,
  .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF;
    font-size: 12.5px;
  }
  .hero {
    padding-top: 0;
  }
  .case-card,
  .hero-card,
  .kpi-card,
  .skill-card,
  .cta-card,
  .ai-hero-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* ---------- AI Native Engineering Lab ---------- */
.ai-stack-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.ai-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.ai-hero-card.is-highlighted,
.skill-card.is-highlighted {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), var(--shadow-md);
}

.ai-hero-card.is-highlighted .match-badge {
  display: inline-block;
}

.ai-arch-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.ai-arch-list li + li {
  margin-top: 7px;
}

.panel-shot-btn {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0F172A;
  padding: 0;
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.panel-shot-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

.panel-shot-btn img {
  width: 100%;
  height: auto;
}

.panel-shot-caption {
  padding: 9px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.ai-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ai-sub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.ai-sub-card h4 {
  margin: 6px 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
}

.ai-sub-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- Weekly Metric Mini Grid & Survey Charts ---------- */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric-mini {
  background: var(--primary-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.metric-mini-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.metric-mini-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.survey-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.chart-card h4 {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.bar-row {
  margin-bottom: 10px;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.bar-meta strong {
  color: var(--text);
}

.bar-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary-accent);
  border-radius: 999px;
}

.bar-fill-emerald {
  background: var(--emerald);
}

.evidence-grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 14px;
}

@media (max-width: 960px) {
  .ai-hero-card,
  .ai-sub-grid,
  .survey-charts-grid,
  .evidence-grid-2 {
    grid-template-columns: 1fr;
  }
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
