.aifs-page {
  color-scheme: light;
  --aifs-navy: #123a55;
  --aifs-blue: #1676a5;
  --aifs-cyan: #54b8d0;
  --aifs-orange: #df7b24;
  --aifs-red: #bd3b32;
  --aifs-purple: #7356a5;
  --aifs-green: #29876e;
  --aifs-grid: #dce6eb;
  --aifs-muted: #62727d;
  --aifs-bg: #f4f8fa;
}

.aifs-page, .aifs-page * { box-sizing: border-box; }
.aifs-page { max-width: 1380px; margin: 0 auto; padding: 28px 20px 44px; background: var(--aifs-bg); color: #172a35; font-family: Inter, system-ui, -apple-system, sans-serif; }
.aifs-header { display: flex; gap: 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.aifs-eyebrow { margin: 0 0 4px; color: var(--aifs-blue); font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.aifs-title { margin: 0; color: var(--aifs-navy); font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.1; }
.aifs-location-label { display: grid; gap: 5px; color: var(--aifs-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.aifs-page select { min-width: 250px; padding: 9px 34px 9px 11px; border: 1px solid #b8cad3; border-radius: 7px; background: white; color: #173348; font: inherit; font-size: .95rem; text-transform: none; letter-spacing: normal; }
.aifs-meta { margin: 9px 0 18px; color: var(--aifs-muted); font-size: .9rem; }
.aifs-summary-intro { display: flex; align-items: baseline; gap: 10px 16px; margin: 0 0 7px; flex-wrap: wrap; }
.aifs-summary-intro h2, .aifs-summary-intro h3 { margin: 0; color: var(--aifs-navy); font-size: 1rem; }
.aifs-summary-intro p { margin: 0; color: var(--aifs-muted); font-size: .82rem; }
.aifs-summary { display: grid; grid-template-columns: repeat(3, minmax(145px, 1fr)); gap: 10px; margin-bottom: 12px; }
.aifs-stat { padding: 12px 14px; border: 1px solid #d4e0e5; border-radius: 9px; background: white; box-shadow: 0 2px 8px #173b5210; }
.aifs-stat-label { display: block; color: var(--aifs-muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.aifs-stat-value { display: block; margin-top: 2px; color: var(--aifs-navy); font-size: 1.3rem; font-weight: 760; }
.aifs-stat-time { display: block; margin-top: 4px; color: var(--aifs-muted); font-size: .74rem; line-height: 1.25; }
.aifs-chart-card { border: 1px solid #d4e0e5; border-radius: 10px; background: white; box-shadow: 0 3px 14px #173b5212; overflow: hidden; }
.aifs-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px 10px; border-bottom: 1px solid #e2eaee; font-size: .78rem; color: #425865; }
.aifs-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.aifs-swatch { width: 19px; height: 3px; border-radius: 2px; }
.aifs-swatch.band { height: 9px; opacity: .28; }
.aifs-swatch.risk-wave { height: 4px; background: repeating-linear-gradient(90deg, var(--aifs-purple) 0 5px, transparent 5px 8px) !important; }
.aifs-chart { overflow-x: auto; overflow-y: hidden; padding: 0 4px 7px; }
.aifs-chart svg { display: block; min-width: 100%; }
.aifs-panel-title { fill: var(--aifs-navy); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.aifs-threshold-status { fill: var(--aifs-muted); font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.aifs-series-label { font-size: 11px; font-weight: 750; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.aifs-probability-marker { pointer-events: none; }
.aifs-axis-label { fill: #657983; font-size: 10px; }
.aifs-time-label { fill: #526b78; font-size: 10px; }
.aifs-day-label { fill: var(--aifs-navy); font-size: 11px; font-weight: 700; }
.aifs-grid-line { stroke: var(--aifs-grid); stroke-width: 1; }
.aifs-day-line { stroke: #aec3cc; stroke-width: 1; }
.aifs-day-band { fill: #edf5f8; opacity: .55; }
.aifs-threshold { stroke: #cf8d86; stroke-width: 1; stroke-dasharray: 4 4; }
.aifs-hover-line { stroke: #395b6e; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.aifs-hover-zone { fill: transparent; cursor: crosshair; }
.aifs-tooltip { position: fixed; z-index: 20; display: none; max-width: 245px; padding: 9px 11px; border: 1px solid #aac0ca; border-radius: 7px; background: #fff; color: #1d3440; box-shadow: 0 6px 22px #173b5233; font-size: .78rem; line-height: 1.5; pointer-events: none; }
.aifs-tooltip strong { color: var(--aifs-navy); }
.aifs-guide { margin-top: 10px; border: 1px solid #c9d9e0; border-radius: 8px; background: white; }
.aifs-guide summary { padding: 11px 14px; color: var(--aifs-navy); cursor: pointer; font-size: .9rem; font-weight: 750; }
.aifs-guide summary:hover { background: #edf5f8; }
.aifs-guide-content { padding: 2px 16px 15px; color: #344d5a; font-size: .84rem; line-height: 1.5; }
.aifs-guide-content dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 7px 0 12px; }
.aifs-guide-content dl > div { border-top: 1px solid #e2eaee; padding-top: 9px; }
.aifs-guide-content dt { color: var(--aifs-navy); font-weight: 750; }
.aifs-guide-content dd { margin: 2px 0 0; }
.aifs-guide-content p { margin: 10px 0 0; padding: 9px 11px; background: #edf5f8; border-radius: 6px; }
.aifs-notice { margin: 12px 0; padding: 9px 12px; border-left: 4px solid #dfa827; background: #fff7dc; color: #5c4b18; font-size: .82rem; }
.aifs-details { margin-top: 10px; border: 1px solid #d4e0e5; border-radius: 8px; background: white; }
.aifs-details summary { padding: 11px 14px; color: var(--aifs-navy); cursor: pointer; font-weight: 700; }
.aifs-table-wrap { overflow: auto; padding: 0 12px 12px; }
.aifs-page table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.aifs-page th, .aifs-page td { padding: 7px 8px; border-bottom: 1px solid #e2eaee; text-align: right; white-space: nowrap; }
.aifs-page th:first-child, .aifs-page td:first-child { text-align: left; }
.aifs-page th { color: var(--aifs-navy); }
.aifs-error { padding: 28px; color: var(--aifs-red); white-space: pre-wrap; }

@media (max-width: 720px) {
  .aifs-page { padding: 20px 10px 34px; }
  .aifs-summary { grid-template-columns: repeat(2, 1fr); }
  .aifs-guide-content dl { grid-template-columns: 1fr; }
  .aifs-chart-card { border-radius: 7px; }
}

.aifs-briefing-card {margin:16px 0;padding:18px;border:1px solid #cbdde6;border-radius:12px;background:#f5fafc;color:#183a4b;}
.aifs-briefing-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
.aifs-briefing-heading h3 {margin:0;}
.aifs-briefing-heading select {color:#183a4b;background:white;}
.aifs-briefing-card h4 {margin:16px 0 8px;}
.aifs-briefing-card p {margin:8px 0;}
.aifs-briefing-card ul {padding-left:22px;margin:8px 0;}
.aifs-briefing-note {font-size:.9em;}
