.ai-forecast { border-top: 1px solid #305276; border-bottom: 1px solid #305276; margin-bottom: 24px; }
.ai-forecast [hidden] { display: none !important; }
.ai-forecast button, .ai-forecast select { font-family: inherit; letter-spacing: 0; }
.ai-forecast > summary { padding: 20px 4px; cursor: pointer; color: #7dd3fc; }
.ai-forecast > summary:hover { color: #bae6fd; }
.ai-forecast > summary h2 { display: inline; font-size: 20px; margin-left: 8px; }
.ai-forecast summary:focus-visible, .forecast-table-scroll:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
.forecast-content { padding: 0 4px 24px; min-width: 0; }
.forecast-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.ai-forecast h2 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.forecast-actions { display: grid; grid-template-columns: minmax(110px, 1fr) 230px; gap: 8px; align-items: center; }
.forecast-actions label { grid-column: 1 / -1; font-size: 12px; color: #becbde; }
.forecast-actions select { border: 1px solid #466588; }
.forecast-actions button { color: #091c2b; background: #7dd3fc; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; }
.forecast-actions button:hover:not(:disabled) { background: #bae6fd; }
.forecast-actions button:disabled { opacity: .6; cursor: wait; }
.forecast-actions button:focus-visible, .forecast-actions select:focus-visible, .ai-forecast a:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
.forecast-status { color: #becbde; font-size: 13px; line-height: 1.6; margin-top: 16px; }
.forecast-status[data-state="error"] { color: #fda4af; }
.forecast-status[data-state="running"] { color: #7dd3fc; }
.forecast-account-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: #93c5fd; margin-top: 16px; font-size: 12px; line-height: 1.6; }
.forecast-account-row button { color: #bae6fd; background: transparent; border: 1px solid #466588; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.forecast-account-row button:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
.forecast-account-row button:disabled { opacity: .6; cursor: wait; }
.forecast-meta { color: #a8bad1; font-size: 12px; margin-top: 20px; line-height: 1.6; }
.forecast-summary { margin: 10px 0 20px; font-size: 17px; line-height: 1.6; color: #f1f5f9; white-space: pre-line; }
.forecast-ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.forecast-range { border: 1px solid #315172; background: #10243d; border-radius: 8px; padding: 16px; }
.forecast-range h3 { font-size: 13px; font-weight: 600; color: #c2d3e8; margin-bottom: 10px; }
.forecast-estimate { font-size: 28px; color: #7dd3fc; font-weight: 700; }
.forecast-range span { font-size: 12px; color: #a8bad1; }
.forecast-range p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: #c2d3e8; }
.forecast-caption { font-size: 12px; line-height: 1.6; color: #a8bad1; margin: 12px 0; }
#forecastChart { height: 380px; width: 100%; }
.forecast-bottom { border-left: 3px solid #fbbf24; padding: 4px 0 4px 16px; margin: 0 0 24px; }
.forecast-bottom p { color: #c2d3e8; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.forecast-bottom .forecast-bottom-window { color: #fde68a; font-size: 20px; font-weight: 600; }
.forecast-bottom .forecast-bottom-confidence { font-size: 12px; margin: 4px 0 8px; color: #a8bad1; }
.forecast-daily { border-top: 1px solid #315172; border-bottom: 1px solid #315172; margin-top: 16px; }
.forecast-daily > summary { padding: 14px 0; color: #e2e8f0; font-size: 14px; cursor: pointer; }
.forecast-table-scroll { overflow-x: auto; max-width: 100%; }
.forecast-daily table { width: 100%; border-collapse: collapse; font-size: 13px; color: #c2d3e8; }
.forecast-daily th, .forecast-daily td { padding: 10px 12px; border-top: 1px solid #315172; text-align: right; font-variant-numeric: tabular-nums; vertical-align: top; }
.forecast-daily th { color: #e2e8f0; font-weight: 600; }
.forecast-daily th:first-child, .forecast-daily td:first-child, .forecast-daily th:last-child, .forecast-daily td:last-child { text-align: left; }
.forecast-daily td:not(:last-child) { white-space: nowrap; }
.forecast-daily td:last-child { min-width: 200px; overflow-wrap: anywhere; line-height: 1.5; }
.forecast-explanations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.ai-forecast h3 { color: #e2e8f0; font-size: 14px; margin-bottom: 8px; }
.forecast-explanations p, .forecast-explanations li, .forecast-sources li { font-size: 14px; line-height: 1.7; color: #c2d3e8; overflow-wrap: anywhere; }
.forecast-explanations p { white-space: pre-line; }
.forecast-explanations ul, .forecast-sources ol { padding-left: 20px; }
.forecast-explanations li, .forecast-sources li { margin-bottom: 6px; }
.forecast-sources { border-top: 1px solid #315172; padding-top: 20px; margin-top: 24px; }
.ai-forecast a { color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 650px) {
    .forecast-actions { width: 100%; grid-template-columns: 1fr; }
    .forecast-ranges, .forecast-explanations { grid-template-columns: 1fr; }
    .forecast-explanations { gap: 20px; }
    .forecast-estimate { font-size: 26px; }
    .forecast-bottom .forecast-bottom-window { font-size: 18px; }
}
