:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #d9dfea;
  --ink: #111827;
  --muted: #596578;
  --accent: #0f62fe;
  --soft: #eef4ff;
  --good: #18794e;
  --warn: #b7791f;
  --bad: #c53d58;
  --shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, rgba(15,98,254,0.05), transparent 220px), var(--bg); color: var(--ink); }
.shell { max-width: 1500px; margin: 0 auto; padding: 22px; }
.topbar,.band,.panel,.metric,.evidence-card,.video-card,.decision-card { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.topbar { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; border-radius:10px; padding:20px 22px; }
.eyebrow { margin:0 0 8px; color:var(--accent); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; }
h1,h2,h3 { margin:0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height:1.04; }
.intro { margin:10px 0 0; color:var(--muted); line-height:1.5; max-width: 900px; }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.button { border:0; background:var(--accent); color:#fff; border-radius:8px; padding:11px 14px; font:inherit; font-weight:700; text-decoration:none; }
.button.muted { background:#edf1f7; color:var(--ink); }
.summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:16px; }
.metric { border-radius:8px; padding:16px; }
.metric strong { display:block; font-size:1.75rem; margin-bottom:6px; }
.metric span,.metric p,.band-header p,.evidence-card p,.video-card p,.decision-card p,.bullet-list li,.source-list li { color:var(--muted); line-height:1.45; }
.layout { display:grid; grid-template-columns:minmax(0,1.5fr) 360px; gap:16px; margin-top:16px; }
.main-column,.side-column { display:flex; flex-direction:column; gap:16px; }
.band,.panel { border-radius:10px; padding:18px; }
.visit-takeaways { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.visit-takeaways article { border:1px solid var(--line); background:#f8fbff; border-radius:8px; padding:14px; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:8px; }
table { width:100%; border-collapse:collapse; }
th,td { text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#f3f7ff; position:sticky; top:0; }
.model-media { width:150px; display:grid; gap:8px; }
.model-media img { width:150px; height:86px; object-fit:cover; border:1px solid var(--line); border-radius:8px; background:#eef2f7; display:block; }
.model-fallback { display:none; width:150px; min-height:86px; place-items:center; border:1px solid var(--line); border-radius:8px; background:linear-gradient(135deg,#eef4ff,#f8fbff); color:var(--muted); font-size:.78rem; font-weight:800; text-transform:uppercase; text-align:center; padding:10px; }
.model-media.image-failed .model-fallback { display:grid; }
.model-link { display:inline-flex; justify-content:center; align-items:center; min-height:34px; border-radius:8px; background:var(--ink); color:#fff; text-decoration:none; font-size:.78rem; font-weight:800; padding:7px 9px; }
.tag { display:inline-flex; align-items:center; border-radius:999px; padding:4px 9px; font-size:.78rem; font-weight:700; }
.tag.good { background:rgba(24,121,78,0.12); color:var(--good); }
.tag.warn { background:rgba(183,121,31,0.12); color:var(--warn); }
.tag.bad { background:rgba(197,61,88,0.12); color:var(--bad); }
.evidence-grid,.video-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.decision-matrix { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.evidence-card,.video-card,.decision-card { border-radius:8px; padding:14px; }
.video-links, .source-list, .bullet-list { margin:10px 0 0; padding-left:18px; }
.decision-boxes { display:flex; flex-direction:column; gap:12px; }
a { color:var(--accent); }
@media (max-width: 1180px) { .layout { grid-template-columns:1fr; } .side-column { order:-1; } }
@media (max-width: 860px) { .summary-grid,.visit-takeaways,.evidence-grid,.video-grid,.decision-matrix { grid-template-columns:1fr; } .topbar { flex-direction:column; } .model-media,.model-media img,.model-fallback { width:128px; } .model-media img,.model-fallback { height:74px; min-height:74px; } }
