@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#0A1020;--sidebar:#0D1525;--surface:#111A2D;--border:#253149;--muted:#8B9BB4;--white:#EDF2FE;--purple:#AB94FF;--green:#57D5C4}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font-family:Inter,Arial,sans-serif;font-size:13px}h1,h2,p{margin:0}.layout{display:flex;min-height:100vh}.sidebar{width:290px;flex-shrink:0;background:var(--sidebar);border-right:1px solid #243049;padding:32px 25px;display:flex;flex-direction:column;gap:0;min-height:100vh}.brand{display:flex;align-items:center;gap:11px;margin-bottom:54px}.brand-mark{width:39px;height:39px;background:#7D61DD;border-radius:12px;display:grid;place-items:center;font-size:27px;color:white}.brand-name{display:flex;flex-direction:column;letter-spacing:2.3px;font-size:14px;line-height:1.4}.brand-name span{color:#9EAABF;letter-spacing:4.9px;font-size:10px}.sidebar-kicker,.eyebrow,.group-title{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#A58CFF}.sidebar-title{font-size:20px;line-height:1.4;margin:12px 0 32px;font-weight:700}.group-title{color:#7284A2;font-size:10px;margin-bottom:18px}.field-label{display:block;color:#CCD6E6;font-size:12px;font-weight:600;margin-bottom:9px}.field-label.spaced{margin-top:21px}.spaced-section{margin-top:38px}.dash-dropdown{font-size:12px}.dash-dropdown .Select-control,.dash-dropdown .select__control{background:#18243A!important;border:1px solid #34415A!important;border-radius:8px!important;color:#F2F4FC!important;min-height:40px}.dash-dropdown .Select-value-label,.dash-dropdown .Select-placeholder,.dash-dropdown .Select-input input{color:#ECF2FF!important}.dash-dropdown .Select-menu-outer{background:#18243A!important;border-color:#354359!important;color:#EAF0FE!important}.dash-dropdown .Select-option{background:#18243A!important;color:#EAF0FE!important}.dash-dropdown .Select-option.is-focused{background:#334166!important}.dash-dropdown .Select--multi .Select-value{background:#364268!important;border:0!important;color:white!important}.dash-dropdown .Select--multi .Select-value-label{color:white!important}.dash-dropdown .Select-arrow{border-top-color:#99A9C2!important}.sidebar-bottom{margin-top:auto;padding-top:60px}.source-name{font-size:13px;color:#E5ECFF;margin-top:5px}.source-meta{font-size:12px;color:#8293AF;margin-top:8px}.main-content{min-width:0;flex:1;padding:37px 42px 25px;max-width:1700px;margin:0 auto}.page-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:26px}.eyebrow{color:#A58CFF;letter-spacing:1.75px}.page-header h1{font-size:31px;letter-spacing:-.9px;font-weight:800;margin:9px 0 9px}.page-header p{font-size:12px;color:#9EABC0}.data-pill{border:1px solid #283951;background:#13243A;border-radius:99px;color:#74DCC9;white-space:nowrap;padding:11px 16px;font-weight:700;font-size:10px;letter-spacing:1px}.stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.metric-card,.year-section,.chart-card{background:var(--surface);border:1px solid var(--border);border-radius:14px}.metric-card{padding:20px 24px;min-height:125px}.metric-label{font-size:10px;font-weight:700;color:#8192AD;letter-spacing:1.05px}.metric-value{font-size:29px;font-weight:800;letter-spacing:-.7px;margin:12px 0 5px}.metric-value.purple{color:#AC9AFF}.metric-value.green{color:#5BE0D0}.metric-value.orange{color:#FEBB8E}.metric-note{font-size:11px;color:#7E8EA8}.year-section{padding:22px 26px 12px;margin-bottom:19px}.year-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.year-header .group-title{margin:0 0 7px}.year-header p,.year-hint{font-size:11px;color:#8393AD}.year-badge{padding:8px 15px;background:#2C2650;color:#C4B5FD;border:1px solid #554487;border-radius:8px;font-size:19px;font-weight:800}.year-hint{margin:20px 0 4px}.rc-slider-track{background:#8C77E7!important}.rc-slider-handle{border:3px solid #9F88FF!important;background:#E7E0FF!important;width:17px!important;height:17px!important;margin-top:-7px!important}.rc-slider-dot{border-color:#596882!important;background:#29354D!important}.rc-slider-mark-text{color:#8495AF!important;font-size:10px!important}.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.chart-card{min-width:0;padding:22px 20px 4px}.chart-heading h2{font-size:16px;font-weight:700;letter-spacing:-.2px}.chart-heading p{margin-top:7px;color:#8293AD;font-size:11px}.chart-plot{width:100%}.footer{text-align:center;font-size:10px;color:#60738E;letter-spacing:.5px;margin-top:22px}@media(max-width:1200px){.main-content{padding:30px 25px}.sidebar{width:250px;padding:26px 18px}.chart-grid{gap:12px}}@media(max-width:900px){.layout{display:block}.sidebar{width:100%;min-height:auto;padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.brand{margin:0;grid-column:1/-1}.sidebar-kicker,.sidebar-title,.sidebar-bottom,.sidebar>.group-title{grid-column:1/-1;margin:4px 0}.main-content{padding:24px 15px}.chart-grid{grid-template-columns:1fr}.page-header h1{font-size:26px}}@media(max-width:560px){.sidebar{display:flex}.stats-row{grid-template-columns:1fr}.page-header{align-items:flex-start}.data-pill{display:none}.year-section{padding:19px}.metric-card{min-height:auto}}


/* LAYOUT FIX: Dash/Plotly must not calculate plot height from an empty grid cell. */
.chart-grid { align-items: stretch; grid-auto-flow: row; }
.chart-card {
  display: flex;
  flex-direction: column;
  min-height: 465px;
  overflow: hidden;
  padding-bottom: 14px;
}
.chart-card--tall { min-height: 545px; }
.chart-heading { flex: 0 0 auto; min-height: 55px; }
.chart-plot { flex: 1 0 370px; min-width: 0; min-height: 370px; }
.chart-card--tall .chart-plot { flex-basis: 450px; min-height: 450px; }
.chart-plot .js-plotly-plot,
.chart-plot .plot-container,
.chart-plot .svg-container { width: 100% !important; }

/* Dash 4 redesigned dcc.Dropdown and its styling variables. */
.layout {
  --Dash-Fill-Primary: #18243A;
  --Dash-Fill-Secondary: #18243A;
  --Dash-Fill-Tertiary: #22334d;
  --Dash-Fill-Interactive-Strong: #9B82FF;
  --Dash-Fill-Interactive-Weak: #263957;
  --Dash-Fill-Inverse-Strong: #EDF2FE;
  --Dash-Stroke-Strong: #425573;
  --Dash-Stroke-Weak: #34415A;
  --Dash-Text-Primary: #EDF2FE;
  --Dash-Text-Strong: #FFFFFF;
  --Dash-Text-Weak: #9EABC0;
  --Dash-Text-Disabled: #64748b;
  --Dash-Fill-Primary-Hover: #263957;
  --Dash-Fill-Primary-Active: #33466a;
}
.dash-dropdown { width: 100%; min-width: 0; color: #EDF2FE; }
.dash-dropdown input { color: #EDF2FE !important; }
.dash-dropdown [role='combobox'],
.dash-dropdown .Select-control {
  background-color: #18243A !important;
  color: #EDF2FE !important;
  border: 1px solid #34415A !important;
  border-radius: 8px !important;
  min-height: 40px;
}
.dash-dropdown [role='listbox'],
.dash-dropdown [role='option'] { background-color: #18243A; color: #EDF2FE; }
.dash-dropdown [aria-selected='true'] { background-color: #334166 !important; }
.dash-dropdown .Select-value-label,
.dash-dropdown .Select-placeholder,
.dash-dropdown .Select-value,
.dash-dropdown .Select-input input { color: #EDF2FE !important; }
.dash-dropdown .Select-menu-outer { z-index: 50 !important; }
.sidebar { position: relative; z-index: 2; }
.main-content { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .chart-card { min-height: 450px; }
  .chart-card--tall { min-height: 535px; }
}
