:root {
  color-scheme: dark;
  --bg: #131619; --panel: #191d21; --line: #30363c; --ink: #e4e8eb;
  --muted: #a4aeb6; --accent: #a9c6e8; --green: #b4ddbd; --red: #e99d91;
  --selection-bg:#28351f; --selection-ink:#d9efb8; --selection-edge:#b6dc77;
  --mono: Consolas, 'Cascadia Mono', monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13px Arial, sans-serif; }
button, input, select { font: 12px var(--mono); color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: transparent; padding: 6px 10px; border-radius: 2px; }
button:hover { background: #252b31; }
input, select { background: var(--panel); border: 1px solid #424b53; border-radius: 2px; padding: 7px 9px; min-height: 31px; }
input[type=date] { width: 135px; }
button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #142333; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
kbd { font: 10px var(--mono); color: var(--muted); white-space: nowrap; margin-left: 5px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 19px; font-weight: 500; }
h3 { font-size: 13px; font-weight: 500; }
.muted { color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -50px; }
.skip:focus { top: 0; z-index: 20; background: var(--accent); color: black; padding: 12px; }
.masthead { min-height: 45px; display: flex; align-items: center; gap: 25px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.brand { font: 600 15px var(--mono); color: inherit; text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 8px; }
.command-trigger { color: var(--muted); }
.tabs { display: flex; align-items: stretch; gap: 25px; flex: 1; height: 45px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0; font-size: 12px; color: var(--muted); }
.tabs button[aria-selected=true] { border-bottom-color: var(--accent); color: var(--accent); }
.tabs button>span { display: none; }
.tabs kbd { font-size: 9px; margin-left: 9px; }
.instrument { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-bottom: 1px solid var(--line); min-height: 65px; }
.instrument form>label { display: none; }
.ticker-input { display: flex; }
.ticker-input input { width: 103px; font-size: 15px; font-weight: bold; text-transform: uppercase; border-radius: 2px 0 0 2px; }
.ticker-input button { border-left: 0; border-radius: 0 2px 2px 0; color: var(--accent); }
.company-heading { flex: 1; min-width: 0; }
.company-heading h1 { font: 500 16px var(--mono); }
.company-heading .muted { margin-top: 5px; }
.quote { text-align: right; }
.quote strong { font: 500 22px var(--mono); }
.quote span { margin-left: 7px; color: var(--muted); font: 11px var(--mono); }
.quote .muted { font-size: 10px; margin-top: 3px; }
.refresh { color: var(--muted); }
main { padding: 16px 20px 25px; }
.section-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.segmented { display: flex; gap: 3px; flex-wrap: wrap; }
.segmented button[aria-pressed=true] kbd { color: #304b67; }
.range-buttons { display: flex; gap: 1px; }
.range-buttons button { border-color: transparent; padding: 6px 8px; }
.toolbar-fields { margin-left: auto; display: flex; align-items: center; gap: 12px; }
label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; }
.toolbar-fields label { flex-direction: row; align-items: center; gap: 7px; }
.toolbar-fields select { min-width: 100px; padding: 5px 7px; }
.custom-dates { position: relative; }
.custom-dates summary { padding: 6px; }
summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.date-fields { display: flex; gap: 10px; align-items: end; }
.custom-dates .date-fields { position: absolute; top: 32px; right: 0; z-index: 5; padding: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 20px #0007; }
.date-fields button { height: 31px; }
.metrics { display: flex; flex-wrap: wrap; gap: 26px; margin: 14px 0; }
.metric { display: flex; gap: 8px; align-items: baseline; }
.metric-label { font: 12px var(--mono); color: var(--muted); }
.metric-value { font: 500 15px var(--mono); }
.metric-sub { display: none; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.chart-card { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chart-top { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font: 12px var(--mono); }
.chart-top>span:first-child { color: var(--muted); }
.plot { height: 370px; padding-top: 6px; }
.plot svg { display: block; width: 100%; height: 100%; }
.plot text { font: 11px var(--mono); fill: var(--muted); }
.chart-foot { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0 10px; color: var(--muted); font-size: 10px; }
.observations, .company-description, .statement-details { margin-top: 13px; }
.observations summary, .company-description summary, .statement-details summary { padding: 3px 0 9px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); max-height: 260px; scrollbar-color: #5c6872 var(--bg); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font: 12px var(--mono); white-space: nowrap; }
th, td { padding: 9px 13px; text-align: right; border-bottom: 1px solid #292f35; font-weight: normal; }
thead th { position: sticky; top: 0; z-index: 2; font-size: 11px; background: var(--panel); color: #c1c9ce; }
tbody th { font-size: 12px; }
th:first-child, td:first-child { text-align: left; }
tr:last-child>* { border-bottom: 0; }
tbody tr:hover { background: #20272d; }
tbody tr.selected { background: var(--selection-bg); color:var(--selection-ink); box-shadow: inset 2px 0 var(--selection-edge); }
.statement { max-height: calc(100vh - 340px); min-height: 190px; }
.statement th:first-child { position: sticky; left: 0; width: 260px; min-width: 220px; z-index: 1; background: var(--bg); }
.statement thead th:first-child { background: var(--panel); z-index: 3; }
.statement tr.selected th:first-child { background:var(--selection-bg); box-shadow:inset 2px 0 var(--selection-edge); }
.factor-table { max-width: none; }
.factor-table table { table-layout: fixed; }
.factor-table th:first-child { width: 43%; white-space: normal; }
.factor-table th:not(:first-child), .factor-table td:not(:first-child) { width: 19%; }
.statement-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.data-heading { display: flex; justify-content: space-between; gap: 15px; margin: 15px 0 10px; }
.description { color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 1100px; }
.footnote { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 8px; max-width: 1100px; }
.message { padding: 20px; margin-top: 15px; border: 1px dashed #48545e; font-size: 12px; line-height: 1.7; color: var(--muted); }
.message.error { border-color: #965d52; color: var(--red); }
.news-controls { display: flex; gap: 13px; align-items: end; flex-wrap: wrap; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.news-controls .topic { flex: 1; min-width: 180px; }
.primary { background: var(--accent); color: #142333; border-color: var(--accent); height: 31px; }
.primary kbd { color: #304b67; }
.news-row { display: grid; grid-template-columns: 35px 1fr 140px; gap: 15px; align-items: start; padding: 16px 9px; border-bottom: 1px solid var(--line); }
.news-row.selected { background: var(--selection-bg); color:var(--selection-ink); box-shadow: inset 2px 0 var(--selection-edge); }
.news-number { color: var(--muted); font: 11px var(--mono); }
.news-row a { color: inherit; text-decoration: none; font-size: 14px; line-height: 1.5; }
.news-row a:hover { text-decoration: underline; }
.news-row .publisher { color: var(--muted); font-size: 11px; margin-top: 6px; }
.news-row time { color: var(--muted); font: 11px/1.6 var(--mono); text-align: right; }
dialog { width: min(650px, calc(100vw - 30px)); margin: 14vh auto auto; padding: 0; background: var(--panel); color: inherit; border: 1px solid #627282; border-radius: 3px; box-shadow: 0 20px 80px #0009; }
dialog::backdrop { background: #05090dbb; }
#command-form { display: flex; align-items: center; gap: 13px; padding: 18px; border-bottom: 1px solid var(--line); }
#command-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font-size: 15px; }
.command-mark { color: var(--accent); font-size: 22px; }
#command-suggestions { padding: 6px; }
#command-suggestions button { display: block; text-align: left; width: 100%; padding: 11px; border: 0; }
#command-suggestions button[aria-selected=true] { background: var(--selection-bg); color: var(--selection-ink); box-shadow:inset 2px 0 var(--selection-edge); }
.command-hint { color: var(--muted); font: 11px var(--mono); padding: 12px 18px; }
#command-error { color: var(--red); padding: 0 18px 14px; }
#command-error:empty { display: none; }
#help-dialog { width: min(780px, calc(100vw - 30px)); padding: 24px; }
.help-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 25px; }
.help-grid h3 { color: var(--accent); margin-bottom: 12px; }
.help-grid p { font-size: 12px; line-height: 2.5; }
.help-grid code { font: 11px var(--mono); }
@media(max-width:1000px) {
  .toolbar-fields { margin-left: 0; }
  .tabs { gap: 18px; }
  .tabs kbd { display: none; }
  .statement-toolbar { align-items: start; flex-wrap: wrap; }
}
@media(max-width:650px) {
  .masthead { height: auto; min-height: 44px; gap: 10px; flex-wrap: wrap; padding: 8px 12px 0; }
  .header-right { margin-left: auto; }
  .tabs { order: 2; flex: auto; width: 100%; height: 34px; gap: 25px; }
  .instrument { padding: 12px; flex-wrap: wrap; gap: 12px; }
  .ticker-input input { width: 85px; }
  .company-heading { min-width: 160px; }
  .company-heading h1 { font-size: 15px; }
  .quote { flex: 1; text-align: left; }
  .quote strong { font-size: 19px; }
  main { padding: 14px 12px; }
  .toolbar { gap: 10px; }
  .range-buttons { flex: 1; gap: 0; }
  .range-buttons button { padding: 6px; }
  .toolbar-fields { flex: 1; }
  .custom-dates .date-fields { max-width: calc(100vw - 30px); flex-wrap: wrap; }
  .metrics { gap: 10px 20px; }
  .metric { gap: 6px; }
  .metric-label { font-size: 11px; }
  .metric-value { font-size: 13px; }
  .plot { height: 290px; }
  .chart-top { font-size: 10px; }
  .chart-foot { flex-direction: column; gap: 5px; }
  .statement-toolbar { flex-direction: column; gap: 10px; }
  .statement-toolbar kbd { display: none; }
  .statement { min-height: 150px; max-height: 55vh; }
  .statement th:first-child { min-width: 165px; max-width: 180px; white-space: normal; }
  .factor-table table { min-width: 550px; }
  .factor-table th:first-child { width: 40%; }
  .news-row { grid-template-columns: 25px 1fr; gap: 10px; padding: 15px 7px; }
  .news-row time { grid-column: 2; text-align: left; margin-top: -3px; }
  .help-grid { grid-template-columns: 1fr; gap: 20px; }
  #help-dialog { margin-top: 5vh; max-height: 90vh; overflow: auto; padding: 18px; }
}

.chart-card { position: relative; }
.plot { cursor: crosshair; user-select: none; touch-action: pan-y; }
.volume-plot { height: 105px; border-top: 1px solid var(--line); cursor: crosshair; }
.volume-plot svg { display: block; width: 100%; height: 100%; }
.volume-plot text { font: 11px var(--mono); fill: var(--muted); }
.chart-grid { stroke: #30363c; stroke-dasharray: 3 5; }
.inspection-line { stroke: #b4c4d5; stroke-dasharray: 3 4; opacity: .7; }
.hist-bin, .dollar-bar { fill: #7894b1; }
.hist-bin.inspected, .dollar-bar.inspected { fill: #c2d9ef; }
.median-line { stroke: #e7eaf0; stroke-dasharray: 4 3; }
.mild-line { stroke: #d8b67e; stroke-dasharray: 4 4; opacity: .8; }
.extreme-line { stroke: #dc8d86; stroke-dasharray: 2 4; opacity: .8; }
.chart-tooltip { position: absolute; z-index: 4; pointer-events: none; white-space: pre-line; padding: 9px 11px; border: 1px solid #617587; border-radius: 2px; background: #1a222bf5; color: var(--ink); font: 12px/1.6 var(--mono); max-width: min(330px, calc(100% - 16px)); }
.range-shade { fill: #a9c6e8; opacity: .15; }
#price-views { flex-wrap: nowrap; }
@media(max-width:650px) { .volume-plot { height: 85px; } .metrics { gap: 8px 16px; } #price-views { width: 100%; } .metric:has(.metric-label) { flex-wrap: wrap; } }

.price-context { justify-content: space-between; padding: 0 0 10px; font: 12px var(--mono); color: var(--muted); }
#price-mode { color: var(--ink); }
.command-shortcuts { color: var(--muted); font-size: 11px; }
#news-results, .news-context { max-width: none; }
.news-context { font: 12px var(--mono); color: var(--muted); margin-bottom: 12px; }
.news-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 115px; gap: 16px; align-items: center; padding: 10px 9px; }
.news-row a { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-row time { white-space: nowrap; text-align: left; font-size: 11px; }
.news-row .publisher { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 11px var(--mono); }
@media(max-width:650px) { .news-row { grid-template-columns: 90px minmax(0, 1fr) 70px; gap: 8px; padding: 10px 6px; } .news-row time { grid-column: auto; margin: 0; font-size: 9px; } .news-row a { font-size: 12px; } .news-row .publisher { font-size: 9px; } }

#news-results { max-height: calc(100vh - 175px); overflow: auto; scrollbar-color: #5c6872 var(--bg); }
@media(max-width:650px) { #news-results { max-height: calc(100vh - 235px); } }

#plot:focus-visible, #news-results:focus-visible, #statement-table:focus-visible { outline: none; }
.view-strip, #price-mode { display: inline-flex; flex-wrap: wrap; gap: 0; font: 12px var(--mono); color: var(--muted); }
.view-strip [aria-current=true], #price-mode [aria-current=true] { color: var(--accent); font-weight: bold; border-bottom: 1px solid var(--accent); }
.view-divider { color: #5b6670; margin: 0 8px; }
.report-context { display: flex; justify-content: space-between; gap: 15px; margin: 17px 0 10px; }
.description { display: block; margin: 12px 0 16px; }
.hist-bin.negative-bin { fill: #bc8278; }
.hist-bin.positive-bin { fill: #7fa895; }
.hist-bin.inspected { filter: brightness(1.35); }
.command-description { float: right; color: var(--muted); font-size: 11px; }

.masthead { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.masthead>.tabs { flex: 0 0 auto; }
.command-bar { position: relative; flex: 1; min-width: 260px; }
#command-form { padding: 0 8px; height: 32px; border: 1px solid #424b53; border-radius: 2px; gap: 8px; }
#command-form input { font-size: 12px; min-height: 28px; width: 100%; }
.command-mark { font-size: 18px; }
#command-suggestions { position: absolute; left: 0; right: 0; top: 36px; z-index: 25; border: 1px solid #627282; background: var(--panel); }
#command-error { position: absolute; top: 34px; left: 0; right: 0; z-index: 26; padding: 10px; background: var(--panel); border: 1px solid #965d52; font-size: 12px; }
#command-error:empty { display: none; }
@media(max-width:1000px) { .masthead { gap: 14px; } }
@media(max-width:650px) { .command-bar { order: 3; flex: auto; width: 100%; min-width: 0; padding-bottom: 8px; } .masthead>.tabs { flex: 1; width: auto; order: 1; } .brand { display: none; } .report-context { flex-wrap: wrap; } }

#main:focus, #main:focus-visible, #plot:focus, #plot:focus-visible, #plot:active,
#plot svg:focus, #volume-plot:focus, #news-results:focus, #news-results:focus-visible,
#statement-table:focus, #statement-table:focus-visible { outline: none !important; box-shadow: none; }
.news-row a:focus-visible { outline: none; text-decoration: underline; }
#statement-table { border: 0; }

#news-more { padding: 9px; color: var(--muted); font: 11px var(--mono); }
#news-more:empty { display: none; }

.price-ranges { display: flex; gap: 17px; margin: 10px 0 2px; }
[data-price-view], [data-price-range], [data-report-view], [data-report-period] { cursor: pointer; padding: 3px 0; }
[data-price-range][aria-current=true] { color: var(--accent); border-bottom: 1px solid var(--accent); font-weight: bold; }
[data-price-view]:hover, [data-price-range]:hover, [data-report-view]:hover, [data-report-period]:hover { color: var(--ink); }
.statement tbody tr:hover { background: transparent; }
.statement tbody tr.selected, .statement tbody tr.selected:hover { background: var(--selection-bg); }
.quote-change { margin-top: 4px; font: 14px var(--mono); }
.quote-change:empty { display: none; }
@media(max-width:650px) { .price-ranges { gap: 12px; flex-wrap: wrap; } .quote-change { font-size: 12px; } }

.analytics-options { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 9px; font: 12px var(--mono); }
.analytics-options [role=button] { cursor: pointer; padding: 3px 0; }
.analytics-options [aria-current=true] { color: var(--accent); border-bottom: 1px solid var(--accent); }
.analytics-options [role=button]:hover { color: var(--ink); }
.price-context { padding-bottom: 8px; }
.metrics { gap: 12px 23px; }
.metric-sub:not(:empty) { display: inline; font: 11px var(--mono); color: var(--muted); }
.volume-plot { cursor: crosshair; }
.volume-plot svg { height: 75px; }
.portfolio-main { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.portfolio-main .assets-label { flex: 1; min-width: 200px; max-width: 650px; }
.portfolio-main input { width: 100%; }
#gamma-label { width: 75px; }
#portfolio-run { height: 31px; }
#portfolio-settings { margin: 12px 0; }
#portfolio-settings summary { display: inline; }
.portfolio-settings { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 14px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); max-width: 1100px; }
.portfolio-settings input, .portfolio-settings select { width: 100%; min-width: 0; }
.portfolio-settings input[type=checkbox] { width: 16px; height: 20px; min-height: 20px; margin: 6px 0; }
.current-label { grid-column: span 2; }
.text-action { border: 0; padding: 0; color: var(--accent); }
.text-action:hover { background: transparent; text-decoration: underline; }
.ci-result { font: 11px/1.8 var(--mono); color: var(--muted); padding: 7px 0; }
.ci-result:empty { display: none; }
.ci-result select { padding: 2px; min-height: 22px; font-size: 10px; border: 0; }
.frontier-plot { height: 265px; }
.frontier-plot svg { width: 100%; height: 100%; }
.frontier-plot text { font: 11px var(--mono); fill: var(--muted); }
#portfolio-weights { min-height: 0; max-height: 430px; border: 0; }
#portfolio-weights th:first-child { min-width: 95px; width: auto; }
#portfolio-method { font: 11px var(--mono); color: var(--muted); }
#frontier-plot:focus, #portfolio-weights:focus { outline: none; }
button:disabled { cursor: wait; opacity: .55; }
@media(max-width:900px) { .masthead { flex-wrap: wrap; gap: 12px; } .command-bar { flex-basis: 100%; padding-bottom: 8px; } .tabs { gap: 20px; } }
@media(max-width:650px) { .portfolio-main { gap: 10px; } .portfolio-main .assets-label { flex-basis: 100%; max-width: none; } .portfolio-settings { grid-template-columns: repeat(2,minmax(0,1fr)); } .metric-value { font-size: 13px; } .analytics-options { gap: 10px; } .frontier-plot { height: 230px; } }

.masthead { flex-wrap: nowrap; padding: 8px 20px; }
.masthead .command-bar { flex-basis: auto; padding-bottom: 0; }
.masthead .tabs { display: none !important; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.workspace-heading h1 { display: inline; font: 14px var(--mono); margin-right: 18px; }
.workspace-heading .muted { font-family: var(--mono); }
.icon-action { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 4px; border: 0; color: var(--muted); }
.settings-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: 370px; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--ink); padding: 20px; overflow: auto; }
.settings-drawer::backdrop { background: #0008; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer-heading h2 { font: 15px var(--mono); }
.drawer-heading button { border: 0; font-size: 22px; padding: 0 5px; }
.settings-drawer .portfolio-main { display: grid; grid-template-columns: 1fr 75px; gap: 15px; }
.settings-drawer .assets-label { grid-column: 1 / -1; min-width: 0; }
.settings-drawer .portfolio-settings { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; border: 0; }
.settings-drawer input, .settings-drawer select { background: var(--bg); }
.drawer-footer { position: sticky; bottom: -20px; padding: 15px 0 5px; background: var(--panel); display: flex; justify-content: flex-end; }
.drawer-footer button { padding: 6px 22px; color: var(--accent); }
.settings-error { font-size: 12px; line-height: 1.6; color: var(--red); }
#portfolio-message { padding: 8px 0; margin: 0; border: 0; }
@media(max-width:650px) { .masthead { padding: 8px 12px; } .workspace-heading h1 { display: block; margin-bottom: 5px; } }
.frontier-plot { height: 320px; }
@media(max-width:650px) { .frontier-plot { height: 270px; } }
.chart-foot { display: none; }
.ci-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ci-actions .ci-result { padding: 0; }
.hist-bin.analytics-bin { fill: #7da6cc; }
.metric-ci { font: 10px var(--mono); color: var(--muted); white-space: nowrap; }
.weight-input { width: 86px; min-height: 26px; padding: 3px 5px; text-align: right; border: 1px solid #424b53; background: transparent; }
.weight-input:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
.weight-input[aria-invalid=true] { border-color: var(--red); }
#portfolio-weights td { padding: 5px 10px; }
#portfolio-attribution { min-height: 0; max-height: 460px; border: 0; }
#portfolio-attribution.transposed th:first-child { min-width: 110px; width: 110px; }
#portfolio-attribution.transposed th:not(:first-child), #portfolio-attribution.transposed td { min-width: 65px; padding: 8px 6px; }
#portfolio-attribution:not(.transposed) th:first-child { min-width: 170px; width: 170px; }
#portfolio-attribution:focus { outline: none; }
.price-context #price-period { margin-left: auto; }
.price-context { gap: 12px; }
#portfolio-weight-state { margin-left: 8px; }
.statement tr.statement-gap>* { height:12px; padding:0; border:0; background:var(--bg); }
.data-heading #financial-export { margin-right:auto; width:20px; height:24px; padding:0; }
#statement-heading { margin-right:0; }
.data-heading { align-items:center; }
.report-context { flex-direction:column; align-items:flex-start; gap:8px; }
.keyboard-level-active [aria-current=true], #price-mode.keyboard-level-active [aria-current=true] { background:transparent; color:var(--ink); box-shadow:none; border-bottom-color:var(--ink); }
[data-price-view], [data-price-range], [data-report-view], [data-report-period], [data-display] { padding:3px 5px; }
.keyboard-level-active [role=button]:focus { outline:none; }
.filings-toolbar { display:flex; align-items:center; gap:20px; margin-bottom:12px; }
.filings-toolbar .news-context { margin:0; }
.filings-filter { margin-left:auto; position:relative; font:12px var(--mono); }
.filings-filter summary { cursor:pointer; padding:5px 0; color:var(--muted); max-width:min(48vw,350px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.filings-filter fieldset { position:absolute; z-index:12; right:0; min-width:170px; padding:10px; border:1px solid var(--line); background:var(--panel); max-height:60vh; overflow:auto; }
.filings-filter label { display:flex; flex-direction:row; align-items:center; gap:9px; padding:5px; cursor:pointer; }
.filings-filter input { min-height:0; width:14px; height:14px; accent-color:var(--selection-edge); }
.filter-actions { display:flex; gap:16px; padding:4px 5px 9px; border-bottom:1px solid var(--line); margin-bottom:5px; }
.filter-actions button { font-size:11px; }
#filings-results { max-width:none; max-height:calc(100vh - 160px); overflow:auto; scrollbar-color:#5c6872 var(--bg); }
#filings-results:focus, #filing-content:focus { outline:none; box-shadow:none; }
.filing-row.selected { background:var(--selection-bg); }
.filing-row:hover:not(.selected) { background:transparent; }
.instrument { height:90px; min-height:90px; flex-wrap:nowrap; }
.instrument .company-heading { min-width:0; }
.company-heading h1, .company-heading .muted { overflow:hidden; text-overflow:ellipsis; }
.company-heading h1 { white-space:nowrap; }
#news-context, #filings-context, #portfolio .workspace-heading>div { display:none; }
#portfolio .workspace-heading { justify-content:flex-end; }
#news-results { max-height:calc(100dvh - 205px); }
#filings-results { max-height:calc(100dvh - 255px); }
#filings-more { color:var(--muted); font:11px var(--mono); padding:9px; }
#filings-more:empty { display:none; }
.filing-reader .masthead { gap:20px; }
.filing-reader .masthead h1 { font:13px var(--mono); margin:0; }
#filing-original { margin-left:auto; font:12px var(--mono); white-space:nowrap; }
.reader-controls { position:sticky; top:49px; z-index:10; display:flex; align-items:center; gap:20px; padding:12px 0; background:var(--bg); }
#filing-sections { flex:1; min-width:0; flex-wrap:nowrap; overflow:auto; gap:20px; }
.section-choice { border:0; padding:5px 0; white-space:nowrap; font:12px var(--mono); color:var(--muted); }
.section-choice:hover { background:transparent; color:var(--ink); }
#section-position { font:11px var(--mono); white-space:nowrap; }
#filing-content { max-width:1050px; margin:20px auto; }
#section-title { font-size:20px; margin-bottom:22px; }
#section-text { white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.85 var(--mono); tab-size:4; }
@media(max-width:650px) { .filing-reader .brand { display:none; }.filing-reader .masthead { gap:10px; }.filing-reader .masthead h1 { font-size:11px; }#filing-original { font-size:10px; }#section-position { font-size:9px; }.reader-controls { gap:10px; }#section-text { font-size:12px; } }
