:root {
  --bg: #f5f6f7;
  --panel: #ffffff;
  --text: #101820;
  --muted: #68737e;
  --line: #dde2e6;
  --line-dark: #cbd2d8;
  --accent: #205e91;
  --cut: #2d6f9f;
  --hold: #77818a;
  --hike: #9a594a;
  --cut50: #174b73;
  --cut25: #4b89b5;
  --hike25: #b97865;
  --hike50: #7e3f35;
  --positive: #17714a;
  --negative: #9b3937;
  --shadow: 0 7px 22px rgba(16, 24, 32, .045);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 64px; }
.masthead, .meeting-header, .section-head, .chart-head, .card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead { align-items: flex-start; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2.15rem, 5vw, 3.55rem); line-height: 1; letter-spacing: -.045em; }
h2 { margin-bottom: 8px; letter-spacing: -.027em; }
h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.015em; }
.subtitle { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }
.kicker, .metric-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .69rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.button { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); padding: 9px 13px; cursor: pointer; box-shadow: var(--shadow); color: var(--text); }
.button:hover { border-color: var(--line-dark); }
.button:disabled { opacity: .55; cursor: wait; }
.status { display: flex; align-items: center; gap: 10px; margin: 23px 0 34px; color: var(--muted); font-size: .86rem; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #c08b26; box-shadow: 0 0 0 4px rgba(192,139,38,.11); }
.status-dot.ok { background: #24805a; box-shadow: 0 0 0 4px rgba(36,128,90,.11); }
.status-dot.error { background: #b44843; box-shadow: 0 0 0 4px rgba(180,72,67,.11); }
.section-head { margin-bottom: 11px; }
.section-head h2 { margin: 0; font-size: 1.1rem; }
.muted { color: var(--muted); }
.monitor-card, .headline-card, .chart-card, .table-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.monitor-card { width: fit-content; max-width: 100%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th { color: var(--muted); font-size: .7rem; font-weight: 720; letter-spacing: .075em; text-transform: uppercase; }
th:first-child, td:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
.meeting-table { width: auto; min-width: 650px; }
.meeting-table th, .meeting-table td { padding: 11px 9px; }
.meeting-table th:first-child, .meeting-table td:first-child { min-width: 140px; padding-left: 14px; }
.meeting-table th:last-child, .meeting-table td:last-child { padding-right: 14px; }
.meeting-row { cursor: pointer; transition: background .12s ease; }
.meeting-row:hover { background: #fafbfc; }
.meeting-row[aria-selected="true"] { background: #f4f8fb; box-shadow: inset 3px 0 var(--accent); }
.meeting-row:focus { outline: 2px solid rgba(32,94,145,.25); outline-offset: -2px; }
.meeting-row strong { font-size: .91rem; }
.row-sub { display: block; margin-top: 2px; color: var(--muted); font-size: .74rem; font-weight: 400; }
.num { text-align: right; }
.strong-num { font-weight: 760; }
.distribution { display: flex; width: 170px; height: 8px; overflow: hidden; border-radius: 99px; background: #edf0f2; }
.distribution span { display: block; height: 100%; }
.dist-cut { background: var(--cut); }
.dist-hold { background: var(--hold); }
.dist-hike { background: var(--hike); }
.delta-cell.up, .delta.up { color: var(--positive); }
.delta-cell.down, .delta.down { color: var(--negative); }
.dashboard { display: grid; gap: 14px; margin-top: 34px; }
.meeting-header { align-items: flex-end; padding-top: 2px; }
.meeting-header h2 { margin-bottom: 4px; font-size: clamp(1.55rem, 3.5vw, 2.2rem); }
.gap-box { min-width: 150px; text-align: right; }
.gap-box strong { font-size: 1.45rem; }
.headline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.headline-card { position: relative; overflow: hidden; padding: 16px 17px; }
.headline-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.cut-card::before { background: var(--cut); }
.hold-card::before { background: var(--hold); }
.hike-card::before { background: var(--hike); }
.headline-card > strong { display: block; font-size: 2.05rem; letter-spacing: -.04em; line-height: 1.05; }
.delta { display: none; }
.chart-card { padding: 16px 18px 12px; }
.chart-head { margin-bottom: 10px; }
.range-controls { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: #f8f9fa; }
.range-controls button { border: 0; border-radius: 6px; background: transparent; color: var(--muted); padding: 5px 9px; font-size: .74rem; font-weight: 720; cursor: pointer; }
.range-controls button:hover { color: var(--text); }
.range-controls button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(16,24,32,.12); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-bottom: 4px; color: var(--muted); font-size: .76rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 2px; display: inline-block; border-radius: 2px; }
.legend-cut50 { background: var(--cut50); }
.legend-cut25 { background: var(--cut25); }
.legend-hold { background: var(--hold); }
.legend-hike25 { background: var(--hike25); }
.legend-hike50 { background: var(--hike50); }
.history-chart { width: 100%; min-height: 220px; }
.history-chart svg { display: block; width: 100%; height: auto; max-height: 285px; }
.grid-line { stroke: #e8ebee; stroke-width: 1; vector-effect: non-scaling-stroke; }
.axis-label { fill: #68737e; font-size: 13px; font-weight: 500; }
.history-line { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.history-cut50 { stroke: var(--cut50); }
.history-cut25 { stroke: var(--cut25); }
.history-hold { stroke: var(--hold); }
.history-hike25 { stroke: var(--hike25); }
.history-hike50 { stroke: var(--hike50); }
.history-meta { min-height: 20px; padding: 2px 2px 0; font-size: .74rem; }
.chart-empty { display: grid; place-items: center; min-height: 205px; color: var(--muted); font-size: .88rem; text-align: center; padding: 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.table-card { overflow: hidden; }
.card-title-row { padding: 15px 16px 9px; }
.detail-table { min-width: 520px; }
.detail-table th:last-child, .detail-table td:last-child { display: none; }
.venue-table { min-width: 720px; }
td.composite { font-weight: 760; }
.pill { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line); border-radius: 99px; padding: 5px 9px; color: var(--muted); background: #fafbfb; font-size: .72rem; white-space: nowrap; }
.error-panel { margin-top: 16px; border: 1px solid #dfb7b4; border-radius: 12px; background: #fff8f7; padding: 17px; color: #7b302d; }
.error-panel p { margin: 5px 0 0; }
footer { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
footer h2 { color: var(--text); font-size: .98rem; }
footer p { max-width: 1000px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 27px; }
  .masthead, .meeting-header { flex-direction: column; align-items: flex-start; }
  .button { align-self: stretch; }
  .status { align-items: flex-start; }
  .headline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .headline-card { padding: 14px 12px; }
  .headline-card > strong { font-size: 1.65rem; }
  .gap-box { text-align: left; }
  .chart-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .range-controls { width: 100%; justify-content: space-between; }
  .range-controls button { flex: 1; padding-left: 5px; padding-right: 5px; }
  .chart-legend { font-size: .71rem; gap: 6px 11px; }
  .history-chart { min-height: 175px; }
  .axis-label { font-size: 20px; }
  .meeting-table { min-width: 610px; }
  .meeting-table th, .meeting-table td { padding: 10px 7px; }
  .meeting-table th:first-child, .meeting-table td:first-child { min-width: 128px; padding-left: 10px; }
  .meeting-table th:last-child, .meeting-table td:last-child { padding-right: 10px; }
}

@media (max-width: 430px) {
  .headline-card > strong { font-size: 1.45rem; }
  .headline-card .metric-label { font-size: .62rem; }
}
