:root{--bg:#f5efe2;--bg-deep:#eadbc3;--panel:#fff9eee6;--panel-strong:#fcf5e8f7;--border:#4c361c24;--border-strong:#4c361c3d;--text:#221a11;--muted:#665a49;--accent:#9f5724;--accent-soft:#9f57241f;--good:#2f6a46;--good-soft:#2f6a461f;--watch:#a16a18;--watch-soft:#a16a1821;--risk:#9d2c2a;--risk-soft:#9d2c2a1f;--muted-soft:#665a491f;--shadow:0 18px 54px #4c361c1a}*{box-sizing:border-box}html{background:radial-gradient(circle at 12% 12%,#e1a95d47,#0000 26%),radial-gradient(circle at 88% 18%,#ab542b24,#0000 24%),linear-gradient(#f9f4ea 0%,#efe3cf 100%);min-height:100%}body{min-height:100vh;color:var(--text);margin:0;font-family:Iowan Old Style,Palatino Linotype,Book Antiqua,serif}a{color:inherit;text-decoration:none}.app-shell{grid-template-columns:280px 1fr;min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:linear-gradient(#fff9eef5,#f5e9d6d1);align-content:start;gap:28px;padding:30px 22px 24px;display:grid}.brand-block h1{margin:0 0 14px;font-size:1.9rem;line-height:1.05}.brand-block p{color:var(--muted);margin:0;line-height:1.55}.sidebar-kicker{color:var(--accent);letter-spacing:.16em;text-transform:uppercase;margin:0 0 12px;font-family:Segoe UI Variable Text,Segoe UI,sans-serif;font-size:.78rem;font-weight:700}.nav-list{gap:10px;display:grid}.nav-link{color:var(--muted);border:1px solid #0000;border-radius:16px;padding:12px 14px;font-family:Segoe UI Variable Text,Segoe UI,sans-serif;transition:transform .16s,border-color .16s,background .16s,color .16s;display:block}.nav-link:hover{border-color:var(--border-strong);color:var(--text);background:#ffffffa3;transform:translate(2px)}.sidebar-footnote{color:var(--muted);flex-wrap:wrap;gap:10px;font-family:Segoe UI Variable Text,Segoe UI,sans-serif;font-size:.8rem;display:flex}.sidebar-footnote span{border:1px solid var(--border);background:#ffffff85;border-radius:999px;padding:7px 10px}.content{padding:34px}.page-stack{gap:24px;display:grid}.hero,.page-card,.chart-card,.stat-card{border:1px solid var(--border);background:var(--panel);box-shadow:var(--shadow);border-radius:24px}.hero{padding:30px}.hero-wide{background:radial-gradient(circle at 100% 0,#9f57241f,#0000 30%),linear-gradient(#fff9eefa,#f7efe1eb)}.hero h2{margin:0 0 12px;font-size:clamp(2rem,3.2vw,3.2rem);line-height:1.06}.hero p{color:var(--muted);max-width:70ch;margin:0;line-height:1.65}.eyebrow,.card-kicker,.stat-eyebrow{color:var(--accent);letter-spacing:.16em;text-transform:uppercase;margin:0 0 12px;font-family:Segoe UI Variable Text,Segoe UI,sans-serif;font-size:.78rem;font-weight:700}.metric-grid,.card-grid,.detail-grid{gap:18px;display:grid}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.card-grid,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-card,.stat-card,.chart-card{padding:24px}.mini-card{box-shadow:none;padding:20px}.stat-card{gap:8px;display:grid}.stat-value,.hero-number{margin:0;font-size:clamp(1.7rem,2.2vw,2.8rem);line-height:1}.stat-title,.stat-meta,.page-card p,.chart-header p,.chart-empty p{color:var(--muted);line-height:1.55}.tone-good{background:linear-gradient(180deg,var(--panel-strong),#e9f7efe0)}.tone-watch{background:linear-gradient(180deg,var(--panel-strong),#fbf2dfe6)}.tone-risk{background:linear-gradient(180deg,var(--panel-strong),#fae8e4eb)}.tone-muted{background:var(--panel-strong)}.pill-row,.legend-row{flex-wrap:wrap;gap:10px;display:flex}.compact-row{margin:12px 0}.pill,.status-badge,.legend-chip{border:1px solid var(--border);border-radius:999px;padding:8px 12px;font-family:Segoe UI Variable Text,Segoe UI,sans-serif;font-size:.82rem}.status-badge{align-self:start}.tone-good.pill,.tone-good.status-badge,.legend-chip.series-a{background:var(--good-soft);color:var(--good)}.tone-watch.pill,.tone-watch.status-badge,.legend-chip.series-b{background:var(--watch-soft);color:var(--watch)}.tone-risk.pill,.tone-risk.status-badge,.legend-chip.series-c{background:var(--risk-soft);color:var(--risk)}.legend-chip.series-d,.legend-chip.series-e,.pill{color:var(--muted);background:#ffffff9e}.section-heading,.family-heading,.chart-header{justify-content:space-between;align-items:start;gap:16px;display:flex}.section-heading h3,.family-heading h3,.chart-header h3{margin:0}.family-section{gap:18px;display:grid}.change-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;font-family:Segoe UI Variable Text,Segoe UI,sans-serif;display:grid}.change-grid.single-column{grid-template-columns:1fr}.change-grid span{color:var(--muted);font-size:.82rem;display:block}.change-grid strong{font-size:1rem}.chart-card,.chart-empty{gap:18px;display:grid}.chart-svg{width:100%;height:auto}.chart-line{stroke:var(--accent);stroke-width:2.8px;stroke-linecap:round;stroke-linejoin:round}.chart-line.series-a{stroke:#9f5724}.chart-line.series-b{stroke:#2f6a46}.chart-line.series-c{stroke:#9d2c2a}.chart-line.series-d{stroke:#516a94}.chart-line.series-e{stroke:#7c5c9f}.chart-threshold{stroke:#665a4959;stroke-dasharray:5 8}.threshold-list,.note-list,.source-list{gap:12px;display:grid}.threshold-row,.source-row{border-top:1px solid var(--border);gap:6px;padding-top:10px;display:grid}.formula-block{background:#ffffff9e;border-radius:16px;padding:14px 16px;font-family:Segoe UI Variable Text,Segoe UI,sans-serif;font-size:.92rem}.table-shell{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;font-family:Segoe UI Variable Text,Segoe UI,sans-serif}.data-table th,.data-table td{border-bottom:1px solid var(--border);text-align:left;padding:12px 10px}.data-table th{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:.78rem}.empty-card{text-align:center}@media (max-width:1100px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--border)}.content{padding:22px}}@media (max-width:820px){.metric-grid,.card-grid,.detail-grid{grid-template-columns:1fr}.change-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:560px){.hero,.page-card,.chart-card,.stat-card{border-radius:20px}.content,.hero,.page-card,.chart-card,.stat-card{padding:18px}.change-grid{grid-template-columns:1fr}}
