:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f9f8;
  --text: #182326;
  --muted: #64726e;
  --line: #e3e9e6;
  --accent: #146b56;
  --accent-soft: #e8f5ee;
  --red: #b8443e;
  --amber: #886320;
  --radius: 6px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled, select:disabled { cursor: wait; opacity: .55; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #80bea9; outline-offset: 4px; }
a { color: var(--accent); }
button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -.045em; line-height: 1.15; font-weight: 650; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; font-weight: 620; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: white; border: 1px solid var(--accent); }
.site-header { height: 80px; }
.header-inner { max-width: 1376px; padding: 0 48px; margin: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 27px; font-weight: 700; color: var(--text); letter-spacing: -.045em; text-decoration: none; }
.header-tools { display: flex; align-items: center; gap: 26px; }
.header-tools .text-button { border-left: 1px solid var(--line); padding-left: 26px; }
.service-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #acb7b3; flex-shrink: 0; }
.service-status.online .status-dot { background: #27996c; }
.service-status.degraded .status-dot { background: #b78a36; }
.workspace { max-width: 1376px; margin: 0 auto; padding: 50px 48px 28px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.subtitle { color: var(--muted); font-size: 22px; margin-top: 8px; letter-spacing: -.02em; }
.page-actions { flex-shrink: 0; text-align: right; }
.updated { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.button-row { display: flex; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent; font-size: 14px; font-weight: 550; line-height: 1.4; transition: background .15s, border-color .15s; text-decoration: none; white-space: nowrap; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover:not(:disabled) { background: #105a48; }
.button-secondary { background: #fff; border-color: #bcc6c1; }
.button-secondary:hover:not(:disabled) { background: var(--surface); border-color: var(--muted); }
.text-button { padding: 8px 0; border: 0; background: transparent; font-size: 14px; }
.text-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; flex-shrink: 0; }
.icon-button:hover { background: #edf1ef; }
.watchlist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.window-control { display: flex; align-items: center; gap: 16px; }
.window-control > span { font-size: 14px; color: var(--muted); }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.segmented button { padding: 11px 21px; min-height: 44px; border: 0; border-right: 1px solid var(--line); background: #f8faf9; font-size: 14px; }
.segmented button:last-child { border-right: 0; }
.segmented button:hover { background: #edf3ef; }
.segmented button[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.segmented button:focus-visible { outline-offset: -3px; }
select, input, textarea { border: 1px solid #d6dfda; border-radius: var(--radius); min-height: 44px; background: #fff; color: var(--text); font-size: 14px; padding: 10px 12px; }
select { padding-right: 28px; }
.sort-control select { min-width: 172px; }
.status-message { border-left: 3px solid #a6c2b4; padding: 12px 16px; margin-bottom: 18px; background: var(--surface); color: var(--muted); font-size: 13px; }
.status-message.error { color: #8b342f; border-color: #c67c6f; background: #fff7f5; }
.column-head, .stock-summary { display: grid; grid-template-columns: minmax(170px, 1.45fr) minmax(145px, 1.3fr) minmax(110px, 1fr) minmax(105px, 1fr) minmax(120px, 1.15fr) 20px; gap: 24px; align-items: center; }
.column-head { min-height: 46px; padding: 0 14px; color: var(--muted); font-size: 13px; border-bottom: 1px solid #cfd9d3; }
.stock-row { border-bottom: 1px solid var(--line); }
.stock-summary { width: 100%; min-height: 90px; border: 0; padding: 16px 14px; text-align: left; background: white; transition: background .15s; }
.stock-summary:hover { background: #fafcfb; }
.stock-summary:focus-visible { outline-offset: -3px; }
.stock-summary[aria-expanded=true] { background: var(--surface); }
.stock-identity { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stock-symbol { font-size: 23px; letter-spacing: -.015em; font-weight: 650; }
.company-name { color: var(--muted); font-size: 14px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-cell { display: block; }
.score-number { font-size: 26px; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.score-number.active { color: var(--accent); }
.score-denominator { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 5px; }
.score-track { display: block; height: 5px; border-radius: 4px; background: #e6ece9; margin-top: 5px; max-width: 200px; overflow: hidden; }
.score-track > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.score-missing { color: var(--muted); font-size: 18px; font-weight: 500; }
.score-note { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.metric-value { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.metric-cell { display: flex; flex-direction: column; }
.metric-label { display: none; }
.metric-value.missing { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.price-change { display: block; font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 2px; color: var(--muted); }
.positive { color: #16815f; }
.negative { color: var(--red); }
.stale-note { font-size: 11px; color: var(--amber); margin-top: 2px; }
.disclosure-icon { transition: transform .16s; color: #54635d; width: 18px; height: 18px; }
.stock-summary[aria-expanded=true] .disclosure-icon { transform: rotate(90deg); }
.list-hint { font-size: 12px; color: var(--muted); margin-top: 20px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
.footer-copy { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.footer-link { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; border-left: 1px solid #bcc6c1; padding: 0 0 0 18px; }
.auto-control { display: flex; gap: 12px; align-items: center; padding: 8px 0; background: transparent; border: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.switch-track { width: 38px; height: 22px; border-radius: 22px; display: block; padding: 3px; background: #bdc7c1; transition: background .15s; }
.switch-track > span { display: block; width: 16px; height: 16px; background: white; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px #0002; }
.auto-control[aria-checked=true] .switch-track { background: var(--accent); }
.auto-control[aria-checked=true] .switch-track > span { transform: translateX(16px); }
.empty-state { padding: 65px 20px; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--text); font-size: 24px; }
.empty-state p { margin-top: 8px; }
.empty-state .button { margin-top: 20px; }
.stock-detail { padding: 0 28px 22px; background: var(--surface); }
.detail-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid #d9e3dc; }
.detail-tabs { display: flex; gap: 28px; }
.detail-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 16px 2px 14px; font-size: 14px; color: var(--muted); }
.detail-tabs button[aria-selected=true] { color: var(--text); border-color: var(--accent); font-weight: 650; }
.remove-stock { color: var(--muted); font-size: 12px; white-space: nowrap; }
.remove-stock:hover { color: var(--red); }
.tab-panel { padding: 28px 0 4px; }
.tab-panel:focus-visible { outline: 0; }
.panel-intro { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 26px; }
.panel-intro p { margin-top: 8px; max-width: 840px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.panel-intro .sample-note { color: var(--amber); font-size: 12px; }
.chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.chart-heading h3 { font-size: 20px; }
.chart-heading p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.chart-heading select { width: 156px; }
.baseline-chart { margin: 0; }
.chart-plot { position: relative; height: 190px; margin: 0 8px 0 44px; border-bottom: 1px solid #a9b9b0; }
.chart-axis { position: absolute; left: -44px; top: 0; bottom: 0; width: 34px; color: var(--muted); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.chart-axis span { position: absolute; right: 4px; transform: translateY(50%); }
.chart-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 42px); height: 100%; align-items: end; padding: 0 14px; }
.chart-bar { background: #b6c2bd; position: relative; min-height: 2px; border-radius: 2px 2px 0 0; }
.chart-bar.current { background: var(--accent); }
.chart-bar.missing { background: transparent; border: 1px dashed #98a9a0; border-bottom: 0; min-height: 15px; }
.bar-value { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-median { position: absolute; left: 0; right: 0; border-top: 1px dashed #769286; pointer-events: none; }
.chart-median span { position: absolute; right: 0; top: -24px; background: var(--surface); padding: 1px 4px; font-size: 11px; color: var(--accent); }
.chart-labels { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 42px); margin: 8px 8px 0 44px; padding: 0 14px; text-align: center; color: var(--muted); font-size: 11px; }
.chart-labels .bar-time { display: block; white-space: nowrap; }
.chart-caption { font-size: 12px; color: var(--muted); margin-top: 20px; }
.exact-values { margin-top: 12px; font-size: 13px; }
summary { cursor: pointer; }
.exact-values > summary, .source-extra > summary, .paste-details > summary, .diagnostics > summary { color: var(--accent); padding: 6px 0; }
.detail-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; font-size: 11px; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; font-variant-numeric: tabular-nums; }
.data-table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.data-table td, .data-table th { border-bottom: 1px solid #e0e7e2; padding: 13px 8px; }
.data-table th:first-child, .data-table td:first-child { padding-left: 0; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.data-table .numeric { text-align: right; }
.data-table caption { text-align: left; color: var(--muted); padding-bottom: 12px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
.source-table { min-width: 600px; }
.source-table td:first-child { font-weight: 600; }
.source-state { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.source-state.included { color: var(--accent); }
.source-state.warning { color: var(--amber); }
.source-extra { border-bottom: 1px solid var(--line); padding: 12px 0; }
.source-extra > summary { color: var(--text); font-size: 13px; font-weight: 550; }
.source-extra p, .context-note { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 10px; overflow-wrap: anywhere; }
.source-extra .data-table { margin-top: 12px; }
.history-table { min-width: 440px; }
.context-note a { text-underline-offset: 3px; }
.market-access { display: grid; gap: 10px; max-width: 420px; margin: 16px 0; }
.market-access label { font-size: 13px; font-weight: 600; }
.market-access input { width: 100%; min-width: 0; }
.market-access button { justify-self: start; }
.filing-list, .news-list { list-style: none; margin: 0; padding: 0; }
.filing-list > a, .news-list > a { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filing-list a, .news-list a { text-decoration: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--text); }
.filing-list a:hover, .news-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.news-list svg, .filing-list svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; }
.news-heading { margin-top: 28px; }
.modal { background: white; color: var(--text); width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 90px #12251b25; }
.modal::backdrop { background: #1b2e2547; backdrop-filter: blur(3px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.modal-heading p { color: var(--muted); font-size: 13px; margin-top: 7px; }
.modal-heading .icon-button { margin: -8px -8px 0 0; }
.field-label { display: block; font-size: 12px; font-weight: 550; margin: 18px 0 8px; }
.picker-modal input, .picker-modal select, .picker-modal textarea { width: 100%; }
.field-note { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.selection-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 22px; }
.selection-heading h3 { font-size: 13px; }
.selection-heading > span { color: var(--muted); font-size: 12px; }
.ticker-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 22px; min-height: 40px; }
.ticker-chip { display: flex; align-items: center; gap: 7px; padding: 3px 3px 3px 11px; background: #eff5f1; border: 1px solid #dce8e0; border-radius: 5px; font-size: 12px; color: var(--accent); font-weight: 600; }
.ticker-chip button { border: 0; background: transparent; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; }
.ticker-chip button:hover { background: #dceae2; }
.ticker-chip svg { width: 14px; height: 14px; }
.paste-details { font-size: 13px; }
.paste-details textarea { margin-top: 10px; resize: vertical; }
.small-button { font-size: 12px; min-height: 36px; margin-top: 8px; padding: 8px 12px; }
.field-error { font-size: 13px; margin-top: 16px; color: var(--red); }
.modal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.method-modal { width: min(690px, calc(100% - 32px)); }
.method-content section + section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.method-content p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.diagnostics { margin-top: 15px; font-size: 13px; }
.diagnostics pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); font-size: 11px; padding: 16px; max-height: 280px; overflow-y: auto; }
.noscript { margin: 30px; padding: 20px; background: var(--surface); }
@media (max-width: 1050px) {
  .header-inner { padding: 0 28px; }
  .workspace { padding: 40px 28px 24px; }
  .column-head, .stock-summary { gap: 14px; grid-template-columns: minmax(135px, 1.3fr) minmax(110px, 1.1fr) minmax(88px, .9fr) minmax(78px, .9fr) minmax(106px, 1fr) 16px; }
  .footer-copy { display: block; }
  .footer-link { border: 0; padding: 5px 0 0; }
}
@media (max-width: 760px) {
  .site-header { height: 68px; }
  .header-inner { padding: 0 20px; }
  .wordmark { font-size: 23px; }
  .header-tools { gap: 14px; }
  .header-tools .text-button { padding-left: 14px; font-size: 12px; }
  .service-status { font-size: 11px; gap: 6px; }
  .workspace { padding: 26px 20px 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .subtitle { font-size: 18px; }
  .page-actions { width: 100%; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 14px; }
  .updated { margin: 0; text-align: right; max-width: 130px; font-size: 11px; }
  .button { padding: 10px 14px; font-size: 13px; }
  .button-row { gap: 8px; }
  .watchlist-toolbar { flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
  .window-control { gap: 10px; }
  .window-control > span { display: none; }
  .segmented button { padding: 10px 15px; }
  .sort-control select { min-width: 150px; }
  .column-head { display: none; }
  .stock-row:first-child { border-top: 1px solid #cfd9d3; }
  .stock-summary { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 14px; gap: 12px 10px; padding: 18px 0; min-height: 134px; }
  .stock-identity { grid-column: 1 / 3; grid-row: 1; }
  .stock-symbol { font-size: 21px; }
  .score-cell { grid-column: 3; grid-row: 1; text-align: right; }
  .score-track { max-width: 82px; margin-left: auto; }
  .score-number { font-size: 25px; }
  .score-denominator { font-size: 11px; margin-left: 3px; }
  .score-note { font-size: 10px; }
  .disclosure-icon { grid-column: 4; grid-row: 1; }
  .price-cell { grid-column: 1; grid-row: 2; }
  .comparison-cell { grid-column: 2; grid-row: 2; }
  .mentions-cell { grid-column: 3; grid-row: 2; text-align: right; }
  .metric-label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
  .metric-value { font-size: 16px; }
  .metric-value.missing { font-size: 11px; }
  .price-change { font-size: 11px; }
  .stock-detail { padding: 0 16px 20px; margin: 0 -10px; }
  .detail-toolbar { flex-wrap: wrap; gap: 0; }
  .detail-tabs { gap: 22px; }
  .detail-tabs button { font-size: 13px; }
  .remove-stock { font-size: 11px; padding: 10px 0; }
  .tab-panel { padding-top: 22px; }
  .panel-intro h2 { font-size: 23px; }
  .panel-intro p { font-size: 13px; }
  .chart-heading { flex-wrap: wrap; gap: 14px; }
  .chart-heading h3 { font-size: 18px; }
  .chart-plot { height: 155px; margin-left: 30px; margin-right: 0; }
  .chart-axis { width: 26px; left: -30px; font-size: 10px; }
  .chart-bars { gap: 10px; padding: 0 4px; }
  .bar-value { font-size: 10px; }
  .chart-median span { font-size: 10px; }
  .chart-labels { gap: 10px; margin-left: 30px; margin-right: 0; padding: 0 4px; font-size: 9px; }
  .chart-labels .bar-time { display: none; }
  .workspace-footer { align-items: flex-start; gap: 18px; }
  .footer-copy { max-width: 250px; }
  .auto-control { gap: 7px; font-size: 11px; }
  .modal { padding: 22px; max-height: calc(100dvh - 24px); }
  .modal-heading h2 { font-size: 25px; }
}
@media (max-width: 400px) {
  .header-tools .text-button { display: none; }
  .workspace { padding-left: 16px; padding-right: 16px; }
  .page-actions { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .updated { max-width: none; }
  .watchlist-toolbar { gap: 12px; }
  .sort-control select { font-size: 12px; min-width: 140px; }
  .segmented button { padding: 10px 13px; }
  .detail-tabs { gap: 18px; }
  .workspace-footer { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.context-note a svg { width: 12px; height: 12px; margin-left: 4px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.current-label { color: var(--accent); font-weight: 600; }
.metric-note { font-size: 11px; color: var(--muted); }
