.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.hero h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.hero__copy, .metadata, .panel__header p, .kpi-card__subtext, .chart-description, .scroll-hint, caption { color: var(--muted); }
.hero__copy { margin-top: 6px; }
.metadata { margin-top: 8px; font-size: .875rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--control-border); background: white; font-weight: 600; }
.button--primary { background: var(--accent); border-color: var(--accent); color: white; white-space: nowrap; }
.kpi-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kpi-card__label { font-size: .875rem; font-weight: 600; color: var(--muted); }
.kpi-card__value { font-size: clamp(1.75rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; width: 100%; }
.kpi-card__value--precise { font-size: 1.65rem; }
.kpi-card__value--extended { font-size: 1rem; letter-spacing: -.035em; }
.kpi-card__subtext { font-size: .8125rem; }
.delta-up { color: var(--danger); } .delta-down { color: var(--success); } .delta-flat { color: var(--muted); }
.signal-badge { padding: 5px 12px; border-radius: 999px; font-size: .875rem; font-weight: 700; background: var(--bg-soft); color: var(--muted); }
.signal-badge--buy { background: var(--accent-soft); color: var(--accent); }
.signal-badge--watch { background: var(--warning-soft); color: var(--warning); }
.signal-badge--hold { background: var(--danger-soft); color: var(--danger); }
.signal-row h2 { font-size: .875rem; }
.signal-row > p { font-size: .875rem; }
.data-status { color: var(--muted); overflow-wrap: anywhere; margin-top: 10px; font-size: .875rem; }
.data-status:empty { display: none; }
.error { color: var(--danger); }
.segmented-control { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--control-border); padding: 3px; border-radius: 12px; gap: 2px; }
.segmented-control button { min-height: 44px; padding: 8px 12px; border: 0; background: white; border-radius: 8px; color: var(--muted); font-size: .875rem; font-weight: 700; }
.segmented-control button[aria-pressed="true"] { background: var(--text); color: white; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.legend-swatch { width: 12px; height: 4px; }
.chart-description { font-size: .8125rem; margin-top: 12px; }
.history-link { display: inline-block; padding: 10px 0; font-size: .875rem; }
.metric-card { padding: 14px 0; border-bottom: 1px solid var(--border); }
.metric-card__value { font-size: 1.35rem; font-weight: 700; overflow-wrap: anywhere; }
.metric-card__caption { font-size: .8125rem; color: var(--muted); }
.contribution { font-size: .8125rem; padding: 14px 0; }
summary { min-height: 44px; padding: 10px 0; font-weight: 600; font-size: .875rem; color: var(--accent); }
.disclosure-body { padding: 8px 0 16px; font-size: .875rem; overflow-wrap: anywhere; }
.disclosure-body > * + * { margin-top: 12px; }
.disclosure-body ul { padding-left: 20px; }
dl { margin: 0; } dt { font-weight: 600; } dd { margin: 2px 0 10px; color: var(--muted); overflow-wrap: anywhere; }
.table-toolbar label { display: flex; flex-direction: column; gap: 5px; font-size: .8125rem; font-weight: 600; min-width: 0; }
input, select { width: 100%; min-width: 0; min-height: 44px; background: white; border: 1px solid var(--control-border); border-radius: 9px; padding: 8px 10px; font-size: .875rem; }
input::placeholder { color: var(--muted); opacity: 1; }
input[aria-invalid="true"] { border-color: var(--danger); }
.result-count, .scroll-hint { font-size: .8125rem; margin-top: 12px; }
.table-wrap { border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .875rem; table-layout: fixed; }
caption { text-align: left; padding: 12px; font-size: .8125rem; }
th { text-align: left; color: var(--muted); font-weight: 600; background: #f8fafc; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th:first-child { width: 16%; } th:nth-child(2), th:nth-child(3), th:nth-child(4) { width: 19%; }
td { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
td:last-child { white-space: pre-wrap; }
.table-empty { color: var(--muted); text-align: left; }
.pagination { font-size: .875rem; }
.site-footer > a { display: inline-block; padding: 10px 0; min-height: 44px; font-size: .875rem; font-weight: 600; }

.brand-label { display: inline-block; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .07em; margin-bottom: 6px; }
.signal-card { background: #edf7f4; border-color: #bed9d0; }
.signal-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.combined-card { border-color: #77aaa0; }
.rule-label { font-weight: 400; font-size: .75rem; }
.movement-title { font-size: .875rem; font-weight: 650; line-height: 1.4; }
.text-button { border: 0; background: transparent; color: var(--accent); font-size: .8125rem; font-weight: 650; padding: 6px 0; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
#inspectedDate { font-size: .875rem; font-weight: 650; }
.context-card { background: #f8fafc; border: 1px solid #dbe3eb; border-radius: 14px; padding: 14px 16px; font-size: .8125rem; overflow-wrap: anywhere; }
.context-card h3 { font-size: .875rem; margin-bottom: 4px; }
.context-date, .context-definition { color: var(--muted); font-size: .6875rem; }
.context-definition { margin-top: 8px; }
.component-row { margin-top: 8px; }
.component-label, .net-change { display: flex; justify-content: space-between; gap: 8px; }
.component-track { height: 8px; position: relative; background: #e4eaf1; margin-top: 3px; }
.component-track::after { content: ''; position: absolute; left: 50%; top: -2px; height: 12px; border-left: 1px solid #526278; }
.component-bar { position: absolute; top: 0; height: 8px; }
.component-bar--lme { background: #4668ce; } .component-bar--premium { background: #a36a13; }
.net-change { margin: 9px 0 6px; border-top: 1px solid var(--border); padding-top: 6px; }
.range-value { font-weight: 700; margin-top: 8px; }
.range-value span { font-weight: 400; font-size: .75rem; }
.range-track { height: 5px; background: #b5c7c3; margin: 13px 5px 9px; position: relative; }
.range-track span { position: absolute; width: 10px; height: 13px; top: -4px; border-radius: 3px; background: var(--series-color, var(--accent)); transform: translateX(-50%); border: 1px solid white; }
.range-endpoints { display: flex; justify-content: space-between; gap: 12px; font-size: .6875rem; }
.range-endpoints p:last-child { text-align: right; }
.range-endpoints small { display: block; color: var(--muted); font-size: inherit; }
.average-row { margin-top: 9px; }
.average-row strong, .average-row span { display: block; }
.average-row strong { font-size: .75rem; }
.period-takeaway { border-left: 3px solid var(--accent); padding: 8px 12px; margin-top: 14px; background: #edf7f4; font-size: .875rem; }
.eyebrow { font-size: .6875rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.metric-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
#marketDetails { margin-top: 10px; border-top: 1px solid var(--border); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
