.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.hero h1 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.hero__copy, .metadata, .panel__header p, .kpi-card__subtext, .chart-description, .scroll-hint, caption { color: var(--muted); }
.hero__copy { font-size: .9375rem; margin-top: 4px; line-height: 1.4; }
.metadata { font-size: .8125rem; }
.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: 4px; align-items: flex-start; }
.kpi-card__label { font-size: .9375rem; line-height: 1.4; font-weight: 600; color: var(--muted); }
.kpi-card__value { font-size: clamp(2rem, 2.6vw, 2.375rem); font-weight: 800; line-height: 1.15; 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; line-height: 1.45; }
.delta-up { color: var(--danger); } .delta-down { color: var(--success); } .delta-flat { color: var(--muted); }
.signal-badge { display: inline-block; margin-left: 4px; padding: 3px 8px; border-radius: 999px; font-size: .8125rem; 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: 8px; font-size: .8125rem; }
.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 { border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.metric-card__value { font-size: 1.625rem; font-weight: 700; margin: 10px 0 6px; overflow-wrap: anywhere; }
.metric-card__caption { font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.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: 1rem; 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; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; }
.combined-card { border-color: #77aaa0; }
.rule-label { font-weight: 500; font-size: .8125rem; }
.movement-title { font-size: 1rem; font-weight: 650; line-height: 1.35; }
.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: 18px; font-size: .9375rem; overflow-wrap: anywhere; }
.context-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.context-date, .context-definition { margin-top: 10px; line-height: 1.5; font-size: .8125rem; }

.component-row { margin-top: 10px; font-size: .875rem; }
.component-label, .net-change { display: flex; justify-content: space-between; gap: 8px; }
.component-track { height: 8px; position: relative; background: #e4eaf1; margin-top: 4px; }
.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: 16px 5px 12px; 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: .8125rem; }
.range-endpoints p:last-child { text-align: right; }
.range-endpoints small { display: block; color: var(--muted); font-size: inherit; }
.average-row { margin-top: 10px; }
.average-row strong, .average-row span { display: block; }
.average-row strong { font-size: .75rem; }
.period-takeaway { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; border-left: 3px solid var(--accent); padding: 8px 12px; margin: 10px 0; background: #edf7f4; font-size: .9375rem; }
.eyebrow { font-size: .8125rem; font-weight: 650; color: var(--muted); }

#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; }

.hero__utilities { display: flex; align-items: center; gap: 16px; }

.kpi-card > * { min-width: 0; }

.context-answer { font-size: 1.1875rem; font-weight: 750; line-height: 1.35; margin: 8px 0; }
.context-answer span { font-size: .875rem; font-weight: 500; }
.context-date { margin: 6px 0; font-size: .8125rem; }

.movement-explanation { margin-top: 14px; }

.average-row > span { font-size: .875rem; color: var(--muted); }
.secondary-answer { font-size: .9375rem; font-weight: 600; }
.comparison-controls label { display: block; font-size: .8125rem; color: var(--muted); margin: 6px 0; }
.comparison-controls select { font-size: .875rem; }
#customDateControl { margin: 10px 0; }
.checkbox-label { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: .8125rem; color: var(--muted); }
.checkbox-label input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.point-readout { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; font-size: .8125rem; }
.point-readout > div { overflow-wrap: anywhere; min-width: 0; }
.point-readout strong, .point-readout span { display: block; }
.point-readout span { color: var(--muted); font-size: .8125rem; }
#pointValuesNote:empty { display: none; }

.metric-card h3 { font-size: 1.0625rem; }

.detailed-groups h3 { margin-bottom: 14px; }

.kpi-card__subtext > span { display: block; }
.kpi-card__subtext > span + span { color: var(--muted); }
.section-links { display: flex; gap: 20px; flex-wrap: wrap; }
.section-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; font-weight: 600; }
.header-status .data-status { margin: 0; }
#qualityStatus:not(:empty) { color: var(--warning); }
.panel__header p { font-size: .8125rem; }
.chart-panel__legend { margin: 0; }
#overview, #trendHeading, #priceHistory { scroll-margin-top: 16px; }
