:root {
  color-scheme: dark;
  --ground: #171719; --surface: #131217; --raised: #212023; --border: #29282d; --rule: #26252a; --control: #46444a;
  --text: #f5f4f2; --muted: #b6b4ba; --faint: #a5a2aa; --accent: #dfb365; --positive: #56b88f; --negative: #e87987;
  --warning-bg: #292316; --warning-ink: #f0c979; --pill-positive-bg: #172a23; --pill-positive-ink: #75d3a9; --pill-negative-bg: #2a1b20; --pill-negative-ink: #f08e9b;
  --radius-panel: 8px; --radius-control: 6px; --control-height: 38px; --row-height: 54px; --gap: 16px;
  --font: "Public Sans", Inter, system-ui, sans-serif; --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease-standard: cubic-bezier(.2, 0, 0, 1); --duration-fast: 140ms; --duration-standard: 220ms;
  font-family: var(--font); font-synthesis: none; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--ground); color: var(--text); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; }
.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-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 6px; background: var(--accent); color: #171719; font-weight: 600; transform: translateY(-150%); transition: transform var(--duration-fast) var(--ease-standard); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app-frame { min-height: 100vh; display: grid; grid-template-columns: 58px minmax(0, 1fr); }
.rail { position: sticky; top: 0; z-index: 20; height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 15px 0 14px; border-right: 1px solid var(--border); background: var(--ground); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 28px; text-decoration: none; }
.radar-mark { width: 34px; height: 34px; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.25; }
.radar-mark circle:first-child { opacity: .72; }
.radar-mark circle:nth-child(2) { opacity: .45; }
.radar-sweep { stroke-width: 1.5; transform-origin: 18px 18px; animation: radar-rotation 11s linear infinite; }
.radar-point { fill: var(--accent); stroke: none; animation: radar-signal 3.4s ease-in-out infinite; }
.radar-cross { stroke-width: 1; opacity: .55; }
.rail-nav { width: 100%; display: flex; flex-direction: column; align-items: center; }
.rail-link { position: relative; width: 56px; min-height: 44px; display: grid; place-items: center; color: var(--muted); text-decoration: none; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
.rail-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail-link:hover { color: var(--text); }
.rail-link.is-active { color: var(--accent); }
.rail-link.is-active::after { content: ""; position: absolute; right: -1px; top: 10px; bottom: 10px; width: 1px; background: var(--accent); }
.rail-link-label { position: absolute; left: 50px; z-index: 30; width: max-content; max-width: 220px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--raised); color: var(--text); font-size: 12px; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.rail-link:hover .rail-link-label, .rail-link:focus-visible .rail-link-label { opacity: 1; transform: translateX(0); }
.rail-bottom { margin-top: auto; }
.rail-cvm { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: -.04em; }

.workspace { min-width: 0; }
.topbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--border); color: var(--muted); }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; }
.breadcrumb-separator { color: #77747d; }
.breadcrumb strong { overflow: hidden; color: var(--text); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.source-top-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; transition: color var(--duration-fast) var(--ease-standard); }
.source-top-link:hover { color: var(--accent); }
.source-top-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.main-content { width: min(100%, 1440px); margin: 0 auto; padding: 28px clamp(20px, 3vw, 40px) 28px; }
.page-heading { min-height: 74px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.page-context { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.context-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { margin: 0; color: var(--text); font-size: clamp(22px, 2vw, 26px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.page-description { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.freshness { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; padding-bottom: 2px; }
.freshness-label { color: var(--faint); font-size: 11px; }
.freshness-value { color: var(--muted); font-size: 12px; }

.demo-notice { position: relative; display: flex; align-items: flex-start; gap: 11px; min-height: 54px; margin: 0 0 16px; padding: 10px 40px 10px 12px; border: 1px solid #51452e; border-radius: 6px; background: var(--warning-bg); color: var(--warning-ink); }
.notice-mark { flex: 0 0 auto; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.notice-copy strong { display: block; color: #f1cf87; font-size: 12px; font-weight: 600; }
.notice-copy p { margin: 2px 0 0; color: #e2d0a8; font-size: 12px; line-height: 1.45; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.icon-button:hover { border-color: var(--border); background: var(--raised); color: var(--text); }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.notice-close { position: absolute; top: 8px; right: 7px; width: 30px; height: 30px; }

.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.summary-item { min-width: 0; min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 11px 18px; }
.summary-item + .summary-item { border-left: 1px solid var(--border); }
.summary-label { color: var(--muted); font-size: 12px; }
.summary-value { overflow: hidden; color: var(--text); font-family: var(--font-mono); font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.summary-buy .summary-value { color: var(--pill-positive-ink); }
.summary-sell .summary-value { color: var(--pill-negative-ink); }

.records-panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.panel-heading { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; }
.panel-heading h2 { margin: 0; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.panel-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.result-count { color: var(--muted); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.export-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--control); border-radius: var(--radius-control); background: transparent; color: var(--text); font-size: 12px; font-weight: 500; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.export-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.export-button:hover:not(:disabled) { border-color: var(--accent); background: #24221e; }
.export-button:active:not(:disabled) { transform: scale(.98); }
.export-button:disabled { color: var(--faint); cursor: not-allowed; }

.filters-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto; align-items: center; gap: 10px; padding: 0 18px 13px; }
.search-control, .month-control { min-width: 0; height: var(--control-height); display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--raised); color: var(--muted); transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
.search-control:focus-within, .month-control:focus-within { border-color: var(--accent); background: #24221e; }
.search-control > svg, .month-control > svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.search-control input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-control input::placeholder { color: var(--faint); opacity: 1; }
kbd { min-width: 20px; padding: 1px 5px; border: 1px solid var(--control); border-radius: 4px; color: var(--faint); font-family: var(--font-mono); font-size: 10px; text-align: center; }
.month-control { position: relative; }
.month-control select { width: 100%; min-width: 0; appearance: none; padding: 0 17px 0 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.month-control option { background: #212023; color: var(--text); }
.month-control .select-chevron { position: absolute; right: 10px; width: 13px; height: 13px; pointer-events: none; }
.side-filter { min-height: var(--control-height); display: flex; align-items: stretch; justify-content: flex-end; gap: 15px; border-bottom: 1px solid var(--border); }
.filter-button { position: relative; min-height: var(--control-height); padding: 0 2px; border: 0; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; transition: color var(--duration-fast) var(--ease-standard); }
.filter-button:hover { color: var(--text); }
.filter-button.is-active { color: var(--text); }
.filter-button.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--accent); }
.filter-button:active { color: var(--accent); }

.table-frame { overflow: hidden; border-top: 1px solid var(--border); }
.records-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.records-table thead th { height: 38px; padding: 0 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.records-table thead th:first-child { padding-left: 18px; }
.records-table thead th:last-child { padding-right: 14px; }
.records-table .company-heading { width: 27%; }
.records-table .category-heading { width: 7%; }
.records-table th.category-heading, .records-table td:nth-child(2) { text-align: center; }
.records-table .filing-heading { width: 23%; }
.records-table th:nth-child(4), .records-table th:nth-child(5) { width: 16%; }
.records-table th:nth-child(6) { width: 8%; }
.records-table th:nth-child(7) { width: 42px; }
.records-table tbody tr.main-row { border-bottom: 1px solid var(--rule); transition: background-color var(--duration-fast) var(--ease-standard); }
.records-table tbody tr.main-row:hover, .records-table tbody tr.main-row.is-expanded { background: #1b1a1e; }
.records-table td { height: var(--row-height); padding: 7px 12px; color: var(--text); font-size: 13px; vertical-align: middle; }
.records-table td:first-child { padding-left: 18px; }
.records-table td:last-child { padding-right: 12px; }
.company-cell { min-width: 0; display: flex; align-items: center; gap: 11px; }
.company-avatar { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #47413a; border-radius: 50%; color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: -.06em; }
.company-avatar:not(.has-logo) { background: var(--raised); }
.company-avatar.has-logo { position: relative; overflow: hidden; border-color: transparent; background: #fff; color: #171719; }
.company-logo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.company-meta { min-width: 0; }
.company-name { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.company-ticker { margin-top: 1px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.filing-flow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filing-date { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.filing-date-label { color: var(--faint); font-size: 10px; line-height: 1.2; }
.filing-date-value { color: var(--text); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filing-arrow { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.mobile-label { display: none; }
.trade-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; white-space: nowrap; }
.trade-state { font-size: 11px; font-weight: 500; }
.trade-state.buy { color: var(--pill-positive-ink); }
.trade-state.sell { color: var(--pill-negative-ink); }
.trade-state.none { color: var(--muted); }
.trade-amount { color: var(--text); font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.trade-amount.is-missing { color: var(--muted); }
.source-tag { min-height: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.source-tag.demo { border-color: #51452e; color: var(--warning-ink); }
.source-tag a { text-decoration: none; }
.source-tag a:hover { color: var(--accent); }
.detail-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), transform var(--duration-standard) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
.detail-button:hover { border-color: var(--control); background: var(--raised); color: var(--text); }
.detail-button[aria-expanded="true"] { color: var(--accent); transform: rotate(180deg); }
.detail-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.detail-row td { height: auto; padding: 0 18px 14px; background: #1b1a1e; }
.detail-panel { padding: 12px 14px 13px; border-top: 1px solid var(--border); animation: reveal-panel 180ms var(--ease-standard) both; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.detail-title { color: var(--text); font-size: 12px; font-weight: 600; }
.detail-note { color: var(--muted); font-size: 11px; }
.detail-table-wrap { overflow-x: auto; }
.detail-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.transactions-table { table-layout: fixed; }
.transactions-table .col-trade-date { width: 12%; }
.transactions-table .col-category { width: 7%; }
.transactions-table .col-operation { width: 16%; }
.transactions-table .col-security { width: 13%; }
.transactions-table .col-holder { width: 27%; }
.transactions-table .col-quantity { width: 10%; }
.transactions-table .col-value { width: 15%; }
.detail-table th { height: 31px; padding: 0 8px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 500; }
.detail-table td { height: 37px; padding: 5px 8px; border-bottom: 1px solid var(--rule); color: var(--text); font-size: 12px; white-space: nowrap; }
.detail-table th:first-child, .detail-table td:first-child { padding-left: 0; }
.detail-table .num-cell { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.detail-role { color: var(--text); }
.detail-identity { display: block; color: var(--muted); font-size: 11px; }
.transactions-table th { overflow-wrap: anywhere; }
.transactions-table .category-cell { text-align: center !important; }
.transactions-table td:nth-child(2), .transactions-table td:nth-child(3), .transactions-table td:nth-child(4) { white-space: normal; }
.transactions-table td:nth-child(4) { overflow-wrap: anywhere; }
.transactions-table td.num-cell, .transactions-table th:nth-child(5), .transactions-table th:nth-child(6) { text-align: right !important; }
.data-note-marker.fre-members-trigger { margin-left: 5px; padding: 0; background: transparent; vertical-align: 0; cursor: pointer; }
.fre-members-trigger:hover, .fre-members-trigger:focus-visible { color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.fre-members-dialog { width: min(760px, calc(100vw - 28px)); max-width: none; max-height: min(84vh, 900px); padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px #0009; }
.fre-members-dialog::backdrop { background: #08080bc9; backdrop-filter: blur(3px); }
.fre-dialog-shell { display: flex; max-height: min(84vh, 900px); flex-direction: column; }
.fre-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px 20px 14px; border-bottom: 1px solid var(--border); }
.fre-dialog-heading p { margin: 0 0 4px; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.fre-dialog-heading h2 { margin: 0; font-size: 16px; font-weight: 600; }
.fre-dialog-heading button { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--control); border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.fre-dialog-heading button:hover, .fre-dialog-heading button:focus-visible { border-color: var(--accent); color: var(--accent); }
.fre-dialog-body { min-height: 0; overflow: auto; padding: 14px 20px 20px; }
.fre-dialog-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-bottom: 15px; color: var(--muted); font-size: 11px; }
.fre-dialog-meta a { color: var(--accent); text-underline-offset: 3px; }
.fre-dialog-meta a:hover, .fre-dialog-meta a:focus-visible { color: var(--text); }
.fre-dialog-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fre-dialog-tab { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--control); border-radius: 18px; background: transparent; color: var(--muted); font: 500 10px var(--font); cursor: pointer; transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard); }
.fre-dialog-tab span { color: inherit; font: 10px var(--font-mono); }
.fre-dialog-tab:hover, .fre-dialog-tab:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.fre-dialog-tab[aria-selected="true"] { border-color: var(--accent); background: var(--warning-bg); color: var(--accent); }
.fre-dialog-groups { min-height: 80px; }
.fre-dialog-group[hidden] { display: none; }
.fre-dialog-group:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fre-dialog-table-wrap { max-height: min(55vh, 520px); overflow: auto; border-top: 1px solid var(--border); }
.fre-dialog-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.fre-dialog-table th, .fre-dialog-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.fre-dialog-table th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 500; }
.fre-dialog-table td { color: var(--text); font-size: 11px; line-height: 1.4; }
.fre-dialog-table th:first-child, .fre-dialog-table td:first-child { width: 44%; padding-left: 0; }
.fre-dialog-table td:last-child { color: var(--muted); }
.data-note-marker.fre-members-trigger { cursor: pointer !important; }
@media (max-width: 520px) { .fre-dialog-heading { padding: 14px 14px 12px; } .fre-dialog-body { padding: 12px 14px 16px; } .fre-dialog-table th, .fre-dialog-table td { padding-right: 6px; padding-left: 6px; } }
.detail-empty { margin: 8px 0; color: var(--muted); font-size: 12px; }
.detail-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent); font-size: 12px; text-decoration: none; }
.detail-source:hover { text-decoration: underline; }
.detail-source svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 24px; text-align: center; }
.empty-state strong { color: var(--text); font-size: 14px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-state button { min-height: 36px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.empty-state button:hover { border-color: var(--accent); }
.panel-footer { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
#footer-count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer-interpretation { text-align: right; }
.page-footer { display: flex; justify-content: space-between; gap: 24px; padding: 16px 2px 0; color: var(--muted); font-size: 11px; }
.page-footer p { margin: 0; }
.page-footer a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-footer a:hover { color: var(--accent); }

/* Searchable company pickers and related-company cues */
.company-picker { position: relative; min-width: 0; }
.picker-results { position: absolute; z-index: 40; top: calc(100% + 7px); left: 0; width: 100%; max-height: 320px; overflow-y: auto; padding: 5px; border: 1px solid var(--border); border-radius: 8px; background: #222125; box-shadow: 0 14px 34px #0008; }
.picker-option { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; border: 0; border-radius: 5px; background: transparent; text-align: left; cursor: pointer; }
.picker-option:hover, .picker-option:focus-visible { background: #302e33; outline: none; }
.picker-ticker { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.picker-company { color: var(--text); font-size: 12px; line-height: 1.35; }
.picker-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 12px; }
.selected-companies { display: flex; flex-wrap: wrap; gap: 8px; }
.selected-company { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--raised); }
.selected-company span { min-width: 0; display: grid; gap: 2px; }
.selected-company b { color: var(--accent); font: 11px var(--font-mono); }
.selected-company small { overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.selected-company button { width: 23px; height: 23px; border: 1px solid var(--control); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.company-related { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--accent); font-size: 10px; line-height: 1.3; }
.company-link-branch { width: 14px; height: 10px; flex: 0 0 auto; border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent); border-bottom-left-radius: 5px; opacity: .7; }
.detail-button { border-color: var(--control); overflow: visible; flex: 0 0 36px; }
.records-table td:last-child { overflow: visible; }
.event-context { display: grid; gap: 5px; margin: 8px 0 12px; padding: 12px 14px; border-left: 2px solid var(--accent); background: #232126; }
.event-context-label { color: var(--accent); font: 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.event-context strong { color: var(--text); font-size: 12px; }
.event-context p { max-width: 90ch; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.event-context a { width: fit-content; color: var(--accent); font-size: 11px; }
.detail-share-link { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 16px; color: var(--accent); font-size: 12px; text-decoration: none; }
.detail-share-link:hover { text-decoration: underline; }
.detail-share-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.top10-card:first-child { border-top: 2px solid var(--pill-negative-ink); }
.top10-card:last-child { border-top: 2px solid var(--pill-positive-ink); }
.top10-card:first-child h3 { color: var(--pill-negative-ink); }
.top10-card:last-child h3 { color: var(--pill-positive-ink); }
.site-legal-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.site-legal-footer nav button { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.social-links { display: flex; align-items: center; gap: 12px; }
.social-links a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.social-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.articles-empty { max-width: 680px; margin: 48px auto; padding: 38px; border: 1px solid var(--border); background: var(--surface); }
.articles-index { color: var(--accent); font: 10px var(--font-mono); letter-spacing: .1em; }
.articles-empty h2 { margin: 18px 0 8px; color: var(--text); font-size: 20px; }
.articles-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.alert-consent { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.alert-consent a { color: var(--accent); }
@media (max-width: 760px) { .detail-button { flex-basis: 44px; } .site-legal-footer { flex-wrap: wrap; } .picker-results { max-height: 260px; } }

@keyframes radar-rotation { to { transform: rotate(360deg); } }
@keyframes radar-signal { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes reveal-panel { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) {
  .main-content { padding-inline: 24px; } .topbar { padding-inline: 24px; }
  .filters-toolbar { grid-template-columns: minmax(180px, 1fr) minmax(150px, 190px); }
  .side-filter { grid-column: 1 / -1; justify-content: flex-start; gap: 20px; }
}
@media (max-width: 760px) {
  .main-content { padding: 22px 18px 24px; } .topbar { padding-inline: 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .freshness { align-items: flex-start; flex-direction: row; gap: 7px; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-item { min-height: 68px; padding: 10px 14px; }
  .summary-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .summary-item:nth-child(4) { border-top: 1px solid var(--border); }
  .filters-toolbar { grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr); }
  .records-table { display: block; } .records-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .records-table tbody { display: block; }
  .records-table tbody tr.main-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; padding: 10px 16px 12px; }
  .records-table td { min-width: 0; height: auto; padding: 7px 0; border: 0; white-space: normal; }
  .records-table td:first-child { grid-column: 1 / -1; padding: 7px 44px 9px 0; }
  .records-table td:last-child { position: absolute; top: 10px; right: 12px; padding: 0; }
  .records-table td:nth-child(3) { grid-column: 1 / -1; padding: 9px 0 11px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .records-table td:nth-child(4), .records-table td:nth-child(5) { padding: 9px 0; }
  .records-table td:nth-child(6) { align-self: center; }
  .records-table tbody tr.detail-row { display: block; }
  .records-table .detail-row td { display: block; padding: 0 16px 12px; }
  .mobile-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
  .company-avatar { width: 34px; height: 34px; } .company-name { font-size: 15px; } .company-ticker { font-size: 12px; }
  .filing-flow { gap: 10px; } .filing-date { flex: 1 1 0; } .filing-date-label { font-size: 11px; } .filing-date-value { font-size: 12px; }
  .trade-cell { gap: 2px; } .trade-state { font-size: 12px; } .trade-amount { font-size: 13px; }
  .detail-button { width: 44px; height: 44px; }
  .panel-footer { align-items: flex-start; flex-direction: column; gap: 3px; padding: 9px 16px; }
  .footer-interpretation { text-align: left; } .page-footer { flex-direction: column; gap: 6px; }
}
@media (max-width: 520px) {
  .app-frame { display: block; }
  .rail { position: sticky; top: 0; width: 100%; height: 52px; flex-direction: row; justify-content: space-between; padding: 0 15px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand-mark { width: 36px; height: 36px; margin: 0; } .rail-nav { width: auto; }
  .rail-link { width: auto; min-height: 42px; display: inline-flex; gap: 8px; padding: 0 10px; border-radius: 5px; }
  .rail-link.is-active::after { top: auto; right: 10px; bottom: 0; left: 10px; width: auto; height: 1px; }
  .rail-link-label { position: static; width: auto; max-width: none; padding: 0; border: 0; background: transparent; color: currentColor; font-size: 12px; opacity: 1; pointer-events: auto; transform: none; }
  .rail-bottom { display: none; } .topbar { min-height: 42px; padding-inline: 15px; }
  .breadcrumb { font-size: 11px; } .source-top-link { gap: 6px; font-size: 11px; } .source-top-link svg { width: 14px; height: 14px; }
  .main-content { padding: 18px 14px 22px; } .page-heading { margin-bottom: 14px; } h1 { font-size: 23px; }
  .page-description { max-width: 38ch; font-size: 13px; }
  .demo-notice { margin-bottom: 12px; padding: 10px 38px 10px 10px; } .notice-copy p { font-size: 12px; }
  .summary-strip { margin-bottom: 14px; } .summary-item { min-height: 64px; padding-inline: 11px; }
  .summary-label { font-size: 11px; } .summary-value { font-size: 16px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 10px; padding: 13px 14px; }
  .panel-actions { width: 100%; justify-content: space-between; }
  .filters-toolbar { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 14px 12px; }
  .search-control, .month-control { height: 44px; } .search-control input, .month-control select { font-size: 16px; }
  kbd { display: none; } .side-filter { grid-column: auto; min-height: 42px; justify-content: space-between; gap: 15px; }
  .filter-button { min-height: 42px; font-size: 13px; }
  .records-table tbody tr.main-row { padding-inline: 13px; }
  .records-table td:first-child { padding-right: 42px; } .records-table td:last-child { right: 8px; }
  .detail-row td { padding-inline: 13px !important; } .detail-panel { padding-inline: 0; }
  .detail-top { align-items: flex-start; flex-direction: column; gap: 2px; } .detail-table { min-width: 560px; }
  .export-button { min-height: 40px; } .page-footer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 520px) {
  .brand-mark { width: 44px; height: 44px; }
  .rail-link { min-height: 44px; }
  .filter-button { min-height: 44px; }
  .export-button { min-height: 44px; }
  .notice-close { top: 3px; right: 4px; width: 44px; height: 44px; }
  .demo-notice { padding-right: 52px; }
  .company-name { font-size: 16px; }
  .filing-date-value { font-size: 13px; }
  .trade-state, .trade-amount { font-size: 14px; }
}
.transaction-type { color: var(--muted); font-size: 11px; }
.transaction-type.buy { color: var(--pill-positive-ink); }
.transaction-type.sell { color: var(--pill-negative-ink); }
@media (max-width: 520px) { .transaction-type { font-size: 13px; } }
.skeleton-row td { height: var(--row-height); border-bottom: 1px solid var(--rule); }
.skeleton-row td:first-child { position: relative; }
.skeleton-avatar, .skeleton-line { display: block; background: #35343a; border-radius: 4px; }
.skeleton-avatar { width: 30px; height: 30px; border-radius: 50%; }
.skeleton-row td:first-child .skeleton-company { position: absolute; top: 16px; left: 59px; width: min(62%, 180px); height: 10px; }
.skeleton-date { width: 82%; height: 10px; }
.skeleton-value { width: 70%; height: 10px; }
.skeleton-source { width: 42px; height: 20px; }
@media (max-width: 760px) { .skeleton-row { display: none; } }
.pagination { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.pagination[hidden] { display: none; }
.pagination-buttons { display: flex; align-items: center; gap: 8px; }
.page-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color 140ms ease-out, background-color 140ms ease-out; }
.page-button:hover:not(:disabled) { border-color: var(--accent); }
.page-button:disabled { opacity: .45; cursor: not-allowed; }
.page-current { min-width: 48px; text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pagination { align-items: flex-start; flex-direction: column; padding: 10px 14px; } .page-button { min-height: 44px; } }

/* Additional data views keep the existing dark research workspace. */
.rail-link { border: 0; padding: 0; background: transparent; cursor: pointer; }
.data-note-marker { margin-left: 2px; color: var(--warning-ink); font-family: var(--font); font-size: 11px; font-weight: 700; text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }
.comparison-intro, .comparison-table-wrap, .comparison-note, .alert-form-card { border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.comparison-intro { margin-bottom: 16px; padding: 16px 18px; border-left: 2px solid var(--accent); }
.comparison-intro strong { font-size: 13px; font-weight: 600; }
.comparison-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.comparison-table-wrap { overflow-x: auto; }
.comparison-table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.comparison-table thead th { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.comparison-table tbody th { width: 145px; color: var(--text); font-size: 12px; font-weight: 600; }
.comparison-table td { color: var(--muted); font-size: 12px; line-height: 1.6; }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.comparison-pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.comparison-note { padding: 15px 17px; }
.comparison-note h2 { margin: 0 0 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.comparison-note ul { display: grid; gap: 7px; margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; }
.comparison-note li::marker { color: var(--accent); }
.comparison-sources { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding: 13px 2px; color: var(--muted); font-size: 11px; }
.comparison-sources strong { color: var(--text); }
.comparison-sources a { color: var(--text); text-underline-offset: 3px; }
.comparison-sources a:hover { color: var(--accent); }
.alert-form-card { max-width: 720px; padding: 18px; }
.alert-form-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.alert-form-heading p { margin: 4px 0 16px; color: var(--muted); font-size: 12px; }
#alert-form { display: grid; gap: 15px; }
.form-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.form-field input, .form-field select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--raised); color: var(--text); }
.form-field input::placeholder { color: var(--faint); }
.alert-choice { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; border: 0; color: var(--muted); font-size: 12px; }
.alert-choice legend { margin-bottom: 8px; color: var(--text); font-size: 12px; font-weight: 600; }
.alert-choice label, .alert-consent { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.alert-choice input, .alert-consent input { accent-color: var(--accent); }
.alert-consent { color: var(--muted); font-size: 11px; line-height: 1.5; }
#alert-submit { width: fit-content; min-height: 40px; }
#alert-submit:disabled { opacity: .48; cursor: not-allowed; }
.alert-status { margin: -5px 0 0; color: var(--warning-ink); font-size: 11px; }
.alert-disclosure { max-width: 720px; margin: 12px 0; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .comparison-pros-cons { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .rail-nav { display: flex; flex: 1; justify-content: flex-end; gap: 2px; }
  .rail-link { padding-inline: 8px; }
  .rail-link-label { display: none; }
  .comparison-table th, .comparison-table td { padding: 11px 12px; }
  .alert-form-card { padding: 14px; }
}:root { --chart-a: #dfb365; --chart-b: #6caad9; }
.analytics-section { margin-top: 18px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.analytics-section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.analytics-section-heading .page-context { margin-bottom: 3px; color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.analytics-section-heading h2 { margin: 0; font-size: 17px; font-weight: 600; }
.analytics-section-heading p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.analytics-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.analytics-controls label { display: grid; gap: 5px; min-width: 155px; color: var(--muted); font-size: 11px; }
.analytics-controls select { min-height: 38px; padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--raised); color: var(--text); }
.analytics-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
.analytics-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
.analytics-table th, .analytics-table td { height: 42px; padding: 7px 12px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.analytics-table th { color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.analytics-table td { color: var(--text); }
.analytics-table tr:last-child td { border-bottom: 0; }
.analytics-table td small { display: block; color: var(--muted); font: 10px var(--font-mono); }
.analytics-table .num-cell { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.analytics-table .rank-number { color: var(--accent); font: 12px var(--font-mono); }
.analytics-note { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.monthly-section { margin-top: 18px; }
.monthly-controls label { min-width: 210px; flex: 1; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 6px 0 8px; color: var(--muted); font-size: 11px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--chart-a); }
.legend-mark.company-b { background: var(--chart-b); }
.chart-legend-hint { margin-left: auto; font-family: var(--font-mono); }
.chart-frame { position: relative; min-width: 0; max-width: 100%; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#monthly-chart { display: block; width: 100%; min-width: 0; height: auto; aspect-ratio: 1000 / 360; overflow: visible; }
.chart-grid { stroke: var(--rule); stroke-width: 1; }
.chart-axis-label { fill: var(--muted); font: 10px var(--font-mono); }
.chart-axis-title { fill: var(--muted); font: 10px var(--font); }
.chart-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.series-0 { stroke: var(--chart-a); }
.chart-line.series-1 { stroke: var(--chart-b); }
.chart-line.series-2 { stroke: #8ec28a; }
.chart-point { stroke: var(--surface); stroke-width: 1.5; }
.chart-point.series-0 { fill: var(--chart-a); }
.chart-point.series-1 { fill: var(--chart-b); }
.chart-point.series-2 { fill: #8ec28a; }
.chart-hover-band { fill: transparent; stroke: none; cursor: crosshair; pointer-events: all; }
.chart-hover-band:focus-visible { fill: transparent; outline: none; }
.chart-missing { fill: var(--warning-ink); font: 700 12px var(--font); pointer-events: none; }
.chart-empty { fill: var(--muted); font: 13px var(--font); }
.chart-tooltip { position: absolute; z-index: 10; display: grid; gap: 5px; min-width: 180px; max-width: min(320px, calc(100% - 16px)); padding: 9px 11px; border: 1px solid var(--control); border-radius: 6px; background: #101014f5; box-shadow: 0 8px 24px #0008; color: var(--text); font-size: 11px; pointer-events: none; }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip > span { display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; }
.chart-tooltip .legend-mark { flex: 0 0 8px; margin-top: 3px; }
.chart-tooltip .company-b { background: var(--chart-b); }
.chart-tooltip .company-c { background: #8ec28a; }
.chart-tooltip b { margin-right: 3px; font-weight: 600; }
.sponsors-note { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.sponsor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sponsor-placeholder { min-height: 128px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border: 1px dashed var(--control); border-radius: var(--radius-panel); background: var(--surface); text-align: center; }
.sponsor-placeholder > span { color: var(--accent); font: 11px var(--font-mono); }
.sponsor-placeholder strong { color: var(--muted); font-size: 12px; font-weight: 500; }
.sponsor-placeholder small { color: var(--faint); font-size: 10px; }
.partner-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 17px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: var(--radius-control); color: var(--text); font-size: 12px; text-decoration: none; }
.partner-cta:hover { background: var(--warning-bg); }
.legal-card { max-width: 840px; margin: 12px 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.legal-card h2 { margin: 0 0 8px; font-size: 14px; }
.legal-card p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.legal-card a { color: var(--text); text-underline-offset: 3px; }
.site-legal-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 2px 5px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.site-legal-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.site-legal-footer a { color: var(--muted); text-underline-offset: 3px; }
.site-legal-footer a:hover { color: var(--accent); }
@media (max-width: 760px) { .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-legal-footer { align-items: flex-start; flex-direction: column; } }
@media (max-width: 520px) { .analytics-section { padding: 13px; } .analytics-controls { display: grid; grid-template-columns: 1fr; } .analytics-controls label { min-width: 0; } .chart-legend-hint { margin-left: 0; } .sponsor-grid { gap: 8px; } .sponsor-placeholder { min-height: 106px; padding: 8px; } .partner-cta { min-height: 44px; } }.top10-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.top10-card { min-width: 0; }
.top10-card h3 { margin: 0 0 7px; color: var(--text); font-size: 12px; font-weight: 600; }
.top10-card .analytics-table { min-width: 520px; }
@media (max-width: 900px) { .top10-grid { grid-template-columns: 1fr; } }
.app-frame, .workspace, .main-content, .view-panel, .analytics-view, .analytics-section, .top10-grid, .top10-card { min-width: 0; max-width: 100%; }
.analytics-view { overflow-x: clip; }
.analytics-table-wrap, .comparison-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.analytics-table td:first-child { overflow-wrap: anywhere; }
.monthly-controls label { flex: 1 1 210px; min-width: 0; }
.monthly-controls input { width: 100%; min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--raised); color: var(--text); }
.monthly-controls input::placeholder { color: var(--faint); }
.chart-legend #chart-legend-c .legend-mark { background: #8ec28a; }
 .detail-table th:first-child, .detail-table td:first-child { text-align: left; }
.data-note-marker { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border: 1px solid currentColor; border-radius: 50%; color: var(--warning-ink); font-family: var(--font); font-size: 10px; font-style: normal; font-weight: 700; line-height: 1; text-decoration: none; cursor: help; vertical-align: 1px; }
.data-tooltip-overlay { position: fixed; z-index: 1000; max-width: min(280px, calc(100vw - 16px)); padding: 8px 10px; border: 1px solid var(--control); border-radius: 5px; background: #101014f5; box-shadow: 0 6px 22px #0008; color: var(--text); font-size: 11px; line-height: 1.45; pointer-events: none; }
.data-tooltip-overlay[hidden] { display: none; }
.company-related { margin-top: 2px; color: var(--accent); font-size: 10px; line-height: 1.35; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.detail-alert-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.detail-alert-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-alert-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) {
  .top10-card .analytics-table { min-width: 0; width: 100%; table-layout: fixed; }
  .top10-card .analytics-table th, .top10-card .analytics-table td { padding: 7px 4px; font-size: 10px; overflow-wrap: anywhere; }
  .top10-card .analytics-table .num-cell { white-space: normal; }
}
.alert-consent { display: block; cursor: default; }
.site-legal-footer { flex-wrap: wrap; }
.social-links { margin-left: auto; }
@media (max-width: 760px) { .social-links { margin-left: 0; } }

/* Small control and alignment refinements */
.date-select-wrap { position: relative; display: block; min-width: 0; }
.date-select-wrap select { width: 100%; padding-left: 34px; }
.date-select-icon { position: absolute; z-index: 1; top: 50%; left: 11px; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; }
.monthly-controls .company-picker input { padding-right: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsors-heading { align-items: flex-start; }
.sponsors-heading .partner-cta { flex: 0 0 auto; margin-top: 0; }
.social-links a { color: var(--accent); border-color: var(--control); transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.social-links a:hover, .social-links a:focus-visible { border-color: var(--accent); background: var(--warning-bg); color: var(--accent); outline: none; }
.social-links svg { fill: none; stroke: currentColor; }
.how-it-works-button { border-color: var(--control); color: var(--accent); }
.how-it-works-button:hover, .how-it-works-button:focus-visible { border-color: var(--accent); color: var(--accent); }
.detail-table thead th:first-child { padding-left: 0; text-align: left !important; }
@media (max-width: 760px) { .sponsors-heading { flex-direction: row; align-items: flex-start; } .sponsors-heading .partner-cta { margin-top: 0; } }

/* Fixed downward month menus and compact action controls */
.month-dropdown { position: relative; }
.month-dropdown > button, .select-dropdown > button { width: 100%; min-width: 0; min-height: 36px; padding: 0 28px 0 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.month-dropdown > button { font-size: 12px; }
.select-dropdown { position: relative; display: block; min-width: 190px; padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--raised); }
.select-dropdown > button { min-height: 38px; font-size: 12px; }
.month-dropdown > select { display: none; }
.month-menu { position: absolute; z-index: 80; top: calc(100% + 7px); right: 0; left: 0; max-height: 300px; overflow-y: auto; padding: 5px; border: 1px solid var(--border); border-radius: 7px; background: #222125; box-shadow: 0 14px 34px #0008; }
.month-menu[hidden] { display: none; }
.month-menu button { width: 100%; min-height: 34px; display: block; padding: 7px 9px; border: 0; border-radius: 4px; background: transparent; color: var(--text); font-size: 12px; text-align: left; cursor: pointer; }
.month-menu button:hover, .month-menu button[aria-selected="true"] { background: #302e33; color: var(--accent); }
.picker-option { flex-direction: column; align-items: flex-start; }
.picker-option .picker-company { order: 0; color: var(--text); }
.picker-option .picker-ticker { order: 1; color: var(--muted); }
.top10-card .analytics-table td.rank-number { white-space: nowrap; text-align: center; overflow-wrap: normal; }
.top10-card .analytics-table td:nth-child(4), .top10-card .analytics-table th:nth-child(4) { text-align: center; white-space: nowrap; }
.top10-card .analytics-table td.num-cell { white-space: nowrap; }
.top10-card .analytics-table th:first-child, .top10-card .analytics-table td:first-child { width: 34px; }
.records-table th:nth-child(7) { width: 60px; }
.records-table td:last-child { padding-right: 18px; }
.detail-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.detail-action { position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--control); border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; text-decoration: none; }
.detail-action:hover, .detail-action:focus-visible { border-color: var(--accent); background: var(--warning-bg); outline: none; }
.detail-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.action-tooltip { position: absolute; z-index: 30; top: 50%; left: calc(100% + 8px); width: max-content; max-width: 220px; padding: 6px 8px; border: 1px solid var(--control); border-radius: 5px; background: #101014; box-shadow: 0 5px 16px #0007; color: var(--text); font-size: 11px; line-height: 1.3; opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(-3px); transition: opacity 100ms ease, transform 100ms ease; }
.detail-action:hover .action-tooltip, .detail-action:focus-visible .action-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 520px) { .select-dropdown { min-width: 0; } }
/* Alert beta status and compact filtered-period metric */
.summary-strip { grid-template-columns: 1.2fr 1.2fr .72fr .78fr 1fr; }
.summary-compact .summary-value { font-size: 16px; }
.summary-period .summary-value { font-size: 13px; letter-spacing: -.02em; }
.alerts-status { display: flex; align-items: center; gap: 12px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.alerts-bell { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: bell-arrive 520ms cubic-bezier(.2,0,0,1) both; }
.beta-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border: 1px solid #76613b; border-radius: 999px; background: #29231a; color: #e4c17f; font-size: 11px; font-weight: 600; }
#alert-submit { cursor: pointer; }
#alert-submit svg { width: 16px; height: 16px; margin-right: 7px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.alert-status { max-width: 620px; margin: 0; padding: 11px 13px; border: 1px solid #76613b; border-left: 3px solid var(--accent); border-radius: 6px; background: #242017; color: #e8d7b5; line-height: 1.5; }
.alert-status.is-visible { animation: status-arrive 220ms cubic-bezier(.2,0,0,1) both; }
.chart-hover-band { cursor: crosshair; }
@keyframes bell-arrive { from { opacity: 0; transform: translateY(-4px) rotate(-10deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes status-arrive { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .alerts-bell, .alert-status.is-visible { animation: none; } }
@media (max-width: 760px) { .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .summary-item:nth-child(3), .summary-item:nth-child(5) { border-left: 0; border-top: 1px solid var(--border); } .summary-item:nth-child(4) { border-top: 1px solid var(--border); } .alerts-status { align-self: flex-start; } }

/* Article layout and guided onboarding */
.content-article { max-width: 1040px; margin: 22px auto 42px; padding: clamp(20px, 4vw, 42px); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.content-article > h2 { max-width: 820px; margin: 14px 0 8px; color: var(--text); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.article-lede { max-width: 74ch; margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.content-article .comparison-intro { margin-top: 0; }
#alerts-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.driver-checklist { --driver-checklist-color: var(--accent); font-family: var(--font); }
.driver-popover { font-family: var(--font); }
.driver-popover-title { font-family: var(--font); }
@media (max-width: 600px) { .content-article { margin: 12px 0 28px; padding: 18px 14px; } }

/* Visible entry point for the four-step Driver.js onboarding */
.title-with-help { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.title-with-help h1 { margin: 0; }
.how-it-works-button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--muted); font: 500 11px var(--font); cursor: pointer; }
.how-it-works-button:hover, .how-it-works-button:focus-visible { border-color: var(--accent); color: var(--text); }
.how-it-works-button span { display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.driver-checklist-launcher { display: none !important; }
@media (max-width: 520px) { .title-with-help { align-items: flex-start; } .how-it-works-button { min-height: 40px; } }

.site-legal-footer nav button { color: var(--muted); font: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }

/* The onboarding highlight groups only the period and movement controls. */
.period-movement-controls { grid-column: 2 / 4; display: grid; grid-template-columns: minmax(170px, .72fr) minmax(250px, 1fr); align-items: center; gap: 10px; min-width: 0; }
.period-movement-controls .side-filter { min-width: 0; gap: clamp(10px, 1.2vw, 18px); }
@media (max-width: 1050px) {
  .filters-toolbar { grid-template-columns: minmax(180px, 1fr) minmax(330px, 1.4fr); }
  .period-movement-controls { grid-column: 2; grid-template-columns: minmax(150px, .72fr) minmax(180px, 1fr); }
}
@media (max-width: 760px) {
  .filters-toolbar { grid-template-columns: minmax(0, 1fr); }
  .search-control, .period-movement-controls { grid-column: 1; }
  .period-movement-controls { grid-template-columns: minmax(0, 1fr); }
  .period-movement-controls .side-filter { grid-column: auto; justify-content: space-between; }
}

/* Keep every date in the detail table aligned to its column edge. */
.detail-table th:first-child, .detail-table td:first-child { text-align: left !important; }

/* The rankings month picker mirrors the calendar control used in the report list. */
.select-dropdown .analytics-calendar-icon { position: absolute; top: 50%; left: 10px; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.select-dropdown > #top10-month-display { padding-left: 24px; }
.analytics-month-chevron { position: absolute; top: 50%; right: 10px; width: 13px; height: 13px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* Make the help entry point read like the gold report actions. */
.how-it-works-button { border-color: var(--control); background: var(--surface); color: var(--accent); transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.how-it-works-button:hover, .how-it-works-button:focus-visible { border-color: var(--accent); background: var(--warning-bg); color: var(--accent); transform: translateY(-1px); }

/* Editorial comparison cards use small, responsive motion to separate pros from tradeoffs. */
.regulation-history { display: grid; grid-template-columns: max-content 1fr; gap: 5px 15px; align-items: baseline; margin: 0 0 16px; padding: 13px 16px; border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; background: #1b1917; }
.regulation-history > span { color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.regulation-history p { grid-column: 2; margin: 0; color: var(--muted); font-size: 12px; }
.regulation-history a { grid-column: 2; width: fit-content; color: var(--text); font-size: 11px; text-underline-offset: 3px; }
.comparison-note { position: relative; overflow: hidden; min-height: 176px; border-top: 2px solid var(--accent); transition: transform 220ms var(--ease-standard), border-color 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard); }
.comparison-note[data-kind="strength"] { border-top-color: var(--positive); }
.comparison-note[data-kind="limit"] { border-top-color: var(--negative); }
.comparison-note:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #0003; }
.comparison-kicker { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--muted); font: 600 10px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.comparison-kicker i { color: var(--positive); font: 600 9px var(--font); letter-spacing: .07em; }
.comparison-note[data-kind="limit"] .comparison-kicker i { color: var(--negative); }
.comparison-note h2 { margin-bottom: 10px; font-size: 14px; }
.comparison-note li { line-height: 1.55; }
@media (max-width: 600px) { .regulation-history { grid-template-columns: 1fr; } .regulation-history p, .regulation-history a { grid-column: 1; } }
@media (prefers-reduced-motion: reduce) { .comparison-note, .how-it-works-button { transition: none; } .comparison-note:hover, .how-it-works-button:hover { transform: none; } }

/* Requested final control states */
.how-it-works-button { border-color: var(--control) !important; background: var(--surface); color: var(--accent) !important; }
.how-it-works-button:hover, .how-it-works-button:focus-visible { border-color: var(--accent) !important; background: var(--warning-bg); color: var(--accent) !important; }
.social-links a { border-color: var(--control); color: var(--accent); }
.social-links a:hover, .social-links a:focus-visible { border-color: var(--accent); background: var(--warning-bg); color: var(--accent); }
.honeypot-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.detail-role[data-tooltip] { text-decoration: underline dotted var(--control); text-underline-offset: 3px; cursor: help; }
.detail-table thead th:first-child { text-align: left !important; }
