:root {
  color-scheme: dark;
  --bg: #060b13;
  --surface: #0c1521;
  --surface-up: #111f31;
  --line: #203044;
  --text: #eaf1fb;
  --muted: #a0b0c7;
  --accent: #69caff;
  --amber: #f0c47e;
  --rose: #f2a3b1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, select { color: var(--text); background: #0a121e; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; min-width: 0; }
input::placeholder { color: #8c9bab; }
select { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -80px; padding: 12px; background: var(--accent); color: #092019; }
.skip-link:focus { top: 10px; }
.sidebar { width: 208px; position: fixed; inset: 0 auto 0 0; background: #090f18; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; z-index: 20; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 650; letter-spacing: -.35px; padding: 0 6px; }
.brand small { display: block; font-size: 8px; font-weight: 600; color: var(--muted); letter-spacing: 1.7px; margin-top: 3px; }
.workspace { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #b8c9de; background: #101b2a; border: 1px solid var(--line); padding: 10px; border-radius: 7px; margin: 24px 0 22px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.workspace-tag { margin-left: auto; color: var(--muted); font-size: 9px; }
.nav-label { font-size: 9px; letter-spacing: 2px; color: var(--muted); margin: 0 12px 13px; }
nav { display: flex; flex-direction: column; gap: 5px; }
nav a { padding: 9px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 7px; color: #b6c2cf; font-size: 12px; min-height: 40px; }
nav a:hover { background: #132138; color: var(--text); }
nav a[aria-current] { color: #86cfff; background: #142b47; border-color: #2a4d73; }
.nav-icon { width: 17px; font-size: 18px; text-align: center; line-height: 1; }
.nav-tag { margin-left: auto; font-size: 8px; color: var(--accent); padding: 1px 5px; border: 1px solid #2b4e72; border-radius: 3px; }
.sidebar-bottom { border-top: 1px solid var(--line); padding: 22px 12px 0; margin-top: auto; }
.sidebar-bottom p { font-size: 13px; color: #c6d1dc; margin: 13px 0 16px; }
.subtle-link { color: var(--muted); font-size: 11px; }
.app-shell { margin-left: 208px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 58px; padding: 10px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; }
.breadcrumb { font-size: 12px; color: #c3cdd9; }
.breadcrumb > span:first-child { margin: 0 12px; color: #637389; }
.asset-search { display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.asset-search input { border: 0; width: 175px; font-size: 11px; }
.asset-search button { background: #0a121e; border: 0; width: 35px; }
.mode-badge { font-size: 10px; letter-spacing: .8px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mode-badge span { width: 5px; height: 5px; background: var(--amber); border-radius: 50%; }
.snapshot-bar { padding: 8px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--muted); position: relative; flex-wrap: wrap; }
.snapshot-bar form { display: flex; gap: 8px; align-items: center; }
.snapshot-bar input { font-size: 10px; padding: 6px 9px; width: 170px; }
.snapshot-bar button { padding: 5px 9px; font-size: 10px; }
.snapshot-details { margin-left: auto; }
.snapshot-details summary { color: #c4d0dd; padding: 6px; }
.snapshot-details > div { position: absolute; right: 34px; top: 100%; width: min(570px, calc(100vw - 40px)); max-height: 65vh; overflow: auto; background: #111f30; border: 1px solid #405267; padding: 22px; border-radius: 10px; box-shadow: 0 20px 70px #0009; z-index: 30; }
.fixture-notice { background: #332b1b; color: #edcf95; padding: 7px 22px; font-size: 11px; border-bottom: 1px solid #6c5632; }
main { width: 100%; max-width: 1680px; margin: 0 auto; padding: 22px 22px 30px; flex: 1; min-width: 0; }
main:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 19px; }
.eyebrow { font-size: 9px; letter-spacing: 1.8px; color: var(--accent); margin: 0 0 7px; font-weight: 600; }
.eyebrow span { color: #657486; padding: 0 6px; }
h1 { font-size: clamp(23px, 2vw, 29px); line-height: 1.2; letter-spacing: -.75px; margin: 0 0 9px; font-weight: 600; }
.page-heading > div > p:last-child { color: var(--muted); font-size: 12px; margin: 0; }
h2 { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0; }
h3 { font-size: 13px; font-weight: 600; }
p { margin: 8px 0; }
.outline-link, .quiet-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; border-radius: 7px; border: 1px solid #344356; background: transparent; font-size: 11px; white-space: nowrap; }
.outline-link:hover, .quiet-button:hover:not(:disabled) { border-color: #73859a; background: #182432; }
.primary-button { background: #479be9; border-color: #479be9; color: #06111f; font-weight: 650; padding: 11px 16px; }
.primary-button:hover { background: #7fc3ff; }
.icon-button { display: none; background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; font-size: 9px; font-weight: 550; border: 1px solid #344455; border-radius: 5px; line-height: 1.45; }
.badge.amber { background: #382e1c; color: #f2cf8f; border-color: #685331; }
.badge.rose { background: #36202b; color: var(--rose); border-color: #6a3c50; }
.badge.muted { color: #acbbca; background: #17212d; }
.badge.neutral { background: #11283d; color: #a5d5fa; border-color: #294c69; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: linear-gradient(140deg, #101e30, #0a131f); padding: 15px 17px; border: 1px solid var(--line); border-radius: 9px; min-height: 102px; display: flex; flex-direction: column; }
.card-kicker { color: #c1cedb; font-size: 10px; letter-spacing: .3px; }
.stat-value { font-size: 23px; letter-spacing: -.65px; font-weight: 550; margin: 10px 0 7px; line-height: 1.3; }
.stat-note { color: var(--muted); font-size: 10px; margin-top: auto; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 15px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; min-width: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 15px; }
.panel-marker { color: #8495a9; font-size: 16px; }
.panel > p, .panel > ul, .panel > .scope-note { margin: 16px 21px; }
.panel > .metric-list, .panel > .quality-block, .panel > .provenance { margin: 0 21px; }
.panel > .reason { margin: 10px 16px; }
.empty-state { min-height: 132px; padding: 22px 18px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-symbol { color: #6a8794; font-size: 26px; line-height: 1; margin-bottom: 11px; }
.empty-state p { max-width: 490px; color: #bcc9d5; font-size: 12px; margin: 13px 0 7px; }
.empty-state small { color: var(--muted); font-size: 10px; max-width: 450px; }
.context-note { padding: 24px; background: radial-gradient(ellipse at top right, #183b6480, transparent 70%); min-height: 230px; }
.context-icon { color: var(--accent); font-size: 30px; line-height: 1; }
.context-note h3 { margin: 16px 0 8px; }
.context-note p { color: var(--muted); font-size: 12px; max-width: 400px; }
.text-link { color: #8bcfff; font-size: 11px; display: inline-block; margin: 12px 0; }
.resource-state { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 10px; margin: -6px 0 20px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: end; gap: 12px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 20px; flex-wrap: wrap; }
.control { display: flex; flex-direction: column; gap: 7px; }
.control label { font-size: 10px; color: #b9c7d6; }
.control select { min-width: 175px; font-size: 12px; }
.toolbar form { margin-left: auto; }
.search-group { display: flex; gap: 8px; }
.search-group input { width: 180px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
caption { text-align: left; color: var(--muted); font-size: 10px; padding: 9px 14px; background: #091320; }
thead th { font-size: 10px; font-weight: 500; color: #a6b6c7; padding: 10px 13px; border-block: 1px solid var(--line); white-space: nowrap; }
tbody td, tbody th { padding: 12px 13px; border-bottom: 1px solid #23303c; font-weight: normal; vertical-align: top; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: #111f30; }
.asset-link { display: flex; align-items: center; gap: 11px; min-width: 160px; }
.asset-link strong { font-weight: 600; }
.asset-link small { color: var(--muted); display: block; font-size: 10px; max-width: 190px; }
.asset-monogram { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: #13253b; border: 1px solid #2a425d; color: #b5cbd9; font-size: 10px; font-weight: 650; }
.asset-monogram.large { width: 52px; height: 52px; font-size: 17px; border-radius: 12px; }
.row-arrow { color: #8dcaff; font-size: 19px; }
.cell-secondary { margin-top: 7px; }
.attention { color: var(--amber); font-weight: 550; }
.muted { color: var(--muted); }
.reason { border: 1px solid #2b4562; background: #102237; border-radius: 7px; font-size: 11px; margin: 0 0 7px; max-width: 630px; }
.reason summary { display: flex; align-items: start; gap: 8px; padding: 9px 11px; color: #c6e5ff; }
.reason-dot { width: 5px; height: 5px; background: var(--amber); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.reason-arrow { margin-left: auto; padding-left: 10px; }
.reason-body { padding: 0 12px 10px; border-top: 1px solid #294460; }
.reason-body p { font-size: 11px; }
.quality-block { font-size: 10px; min-width: 115px; padding-block: 5px; }
.quality-block p { color: var(--muted); margin: 5px 0; }
.quality-block small { display: block; max-width: 270px; color: #a8b7c7; font-size: 9px; }
.metric-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 11px; }
.metric-row:last-child { border-bottom: 0; }
.metric-row small { display: block; font-size: 9px; color: var(--muted); }
.metric-row strong { display: block; font-size: 15px; font-weight: 550; text-align: right; margin-bottom: 4px; }
.metric-row details { grid-column: 1 / -1; font-size: 10px; color: #b3c3d2; }
.evidence { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 9px 13px; font-size: 10px; margin-block: 16px; }
.evidence dt { color: var(--muted); }
.evidence dd { margin: 0; overflow-wrap: anywhere; }
.dimension-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dimension-card { background: var(--surface); padding: 15px; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.dimension-status { font-size: 16px; margin: 7px 0; letter-spacing: -.3px; }
.section-heading { margin: 28px 0 15px; font-size: 17px; }
.asset-identity { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.asset-identity h2 { font-size: 19px; }
.asset-identity p { color: var(--muted); font-size: 11px; }
.price-chart { margin: 18px; }
.price-chart svg { width: 100%; height: auto; }
.chart-grid { stroke: #2b3847; fill: none; stroke-dasharray: 3 5; }
.chart-line { stroke: var(--accent); fill: none; stroke-width: 2.2; }
figcaption { color: var(--muted); font-size: 10px; margin-bottom: 13px; }
.price-chart details { font-size: 11px; }
.notice { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid #2b415b; background: #102033; border-radius: 9px; margin-bottom: 23px; }
.notice > span { font-size: 26px; color: #b0d8fa; }
.notice strong { font-size: 13px; }
.notice p { font-size: 11px; color: #b1c2ce; margin: 4px 0 0; }
.notice button { margin-left: auto; }
.disabled-notice { background: #252119; border-color: #574a33; }
.disabled-notice > span { color: var(--amber); }
.watch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.watch-card { background: #0f1c2c; padding: 19px; border: 1px solid #2c3c4c; border-radius: 8px; min-width: 0; font-size: 12px; }
.watch-card small { color: var(--muted); }
.watch-card details { font-size: 10px; }
.event-feed { display: grid; gap: 16px; }
.event-card { border: 1px solid var(--line); padding: 24px; border-radius: 10px; background: var(--surface); }
.event-card h2 { margin: 15px 0 10px; font-size: 17px; }
.event-assets { display: flex; flex-wrap: wrap; gap: 13px; font-size: 11px; color: #9acfff; }
.provenance { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.exposure { margin: 18px 22px; }
.scope-note { font-size: 10px; color: #a9b9c9; }
.research-hero { padding: 24px; border: 1px solid #2c4560; border-radius: 12px; margin-bottom: 23px; background: radial-gradient(ellipse at top right, #162c47, #0c1521 70%); }
.research-hero h2 { font-size: 23px; letter-spacing: -.7px; margin: 17px 0 12px; }
.research-hero p { font-size: 13px; max-width: 770px; color: #c2cfd7; }
.research-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 23px; font-size: 10px; color: #b7d0e9; }
.research-pills span { border: 1px solid #334e6d; padding: 6px 10px; border-radius: 5px; }
.explanations { padding: 4px 23px; font-size: 11px; }
.explanations dt { color: #d8e1e9; margin-top: 13px; font-weight: 600; }
.explanations dd { color: var(--muted); margin: 5px 0 18px; }
.closed-period { display: flex; justify-content: space-between; margin: 20px 23px; align-items: center; }
.study { padding: 23px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.study > p, .study > dl, .study > ul, .study > details { grid-column: 1 / -1; font-size: 11px; margin-block: 0; }
.study h3 { margin-block: 6px; overflow-wrap: anywhere; }
.study .badge { align-self: start; }
.pagination { text-align: center; margin: 22px; font-size: 10px; color: var(--muted); }
.session-card { max-width: 550px; margin: 45px auto; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.session-card h2 { font-size: 24px; margin-block: 16px; }
.session-card p { color: #b7c5d2; font-size: 12px; }
.session-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 23px; }
.session-card label { font-size: 11px; }
.error-state { border: 1px solid #674451; background: #241c24; border-radius: 10px; padding: 30px; }
.error-state h2 { font-size: 22px; margin-top: 15px; }
.error-state p { color: #ccbdc4; font-size: 12px; }
.error-state code { display: block; margin: 12px 0 20px; font-size: 10px; }
.skeleton-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skeleton { background: #1b2734; min-height: 145px; border-radius: 9px; border: 1px solid #293747; }
.skeleton-panel { margin-top: 23px; min-height: 300px; }
footer { display: flex; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); color: #9cabbc; font-size: 9px; gap: 16px; flex-wrap: wrap; }
.noscript { position: fixed; bottom: 0; padding: 20px; background: #402820; color: #fff; z-index: 100; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .sidebar { width: 190px; }
  .app-shell { margin-left: 190px; }
  main, .topbar { padding-inline: 18px; }
  .snapshot-bar { padding-inline: 18px; }
  .topbar { gap: 16px; }
  .asset-search { max-width: 320px; }
  .mode-badge { margin-left: auto; }
  .stat-card { padding: 13px; }
  .stat-value { font-size: 20px; }
}
@media (max-width: 950px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toolbar form { margin-left: 0; }
  .snapshot-details { margin-left: 0; }
}
@media (max-width: 720px) {
  .sidebar { visibility: hidden; transform: translateX(-100%); width: 240px; box-shadow: 10px 0 70px #0009; }
  .nav-open .sidebar { visibility: visible; transform: translateX(0); top: 65px; }
  .app-shell { margin-left: 0; }
  .topbar { padding: 13px 16px; gap: 11px; min-height: 65px; }
  .icon-button { display: block; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb > span:first-child { margin: 0 5px; }
  .mode-badge { font-size: 8px; gap: 5px; }
  .snapshot-bar { padding: 11px 16px; gap: 8px; }
  .snapshot-bar input { width: 145px; }
  .snapshot-details > div { right: 12px; width: calc(100vw - 24px); }
  .fixture-notice { padding: 9px 16px; }
  main { padding: 25px 16px 32px; }
  .page-heading { flex-wrap: wrap; align-items: start; gap: 13px; }
  .page-heading .outline-link { padding: 6px 10px; font-size: 10px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 13px; min-height: 104px; }
  .stat-value { font-size: 19px; overflow-wrap: anywhere; }
  .dimension-grid, .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar { gap: 14px; }
  .control, .control select, .control form, .search-group input { width: 100%; }
  .control { min-width: 0; }
  .search-group { width: 100%; }
  .notice { flex-wrap: wrap; }
  .notice button { margin-left: 0; }
  .notice > div { flex: 1; min-width: 180px; }
  .research-hero { padding: 23px; }
  .research-hero h2 { font-size: 24px; }
  .evidence { grid-template-columns: 85px minmax(0, 1fr); }
  .skeleton-row { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, .sidebar { transition: color 130ms ease, background 130ms ease, transform 130ms ease; }
}

/* Phase 99 visual refinement: compact terminal shell and evidence-led modules. */
body { background-image: radial-gradient(ellipse at 70% -20%, #17345b20, transparent 55%); }
.ui-icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.nav-icon { display: grid; place-items: center; }
nav { gap: 4px; }
nav a { position: relative; }
nav a[aria-current]::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2px; background: var(--accent); border-radius: 2px; }
nav a[data-nav="research"] { margin-top: 12px; border-top-color: var(--line); border-radius: 0 0 6px 6px; color: var(--muted); font-size: 11px; }
.brand img { width: 31px; height: 31px; }
.brand small { font-size: 7px; letter-spacing: 1.25px; }
.workspace { padding: 9px 8px; font-size: 10px; }
.sidebar-bottom { padding: 17px 10px 0; }
.sidebar-bottom p { font-size: 11px; margin: 10px 0 12px; }
.topbar { gap: 18px; background: #0a111bd9; }
.asset-search { flex: 1; max-width: 410px; }
.asset-search input { width: 100%; font-size: 11px; padding: 9px 12px; }
.asset-search button { display: grid; place-items: center; padding: 0 11px; width: 40px; }
.breadcrumb { white-space: nowrap; font-size: 11px; }
.snapshot-bar { font-variant-numeric: tabular-nums; }
#snapshot-time { color: #a9bdd6; }
.snapshot-details > div { right: 22px; }
.fixture-notice { font-size: 10px; background: #241f15; border-bottom-color: #53452b; }
.panel, .stat-card, .dimension-card { box-shadow: 0 5px 18px #0002, inset 0 1px 0 #c7ddff04; }
.panel { background: linear-gradient(125deg, #101c29a6, transparent 68%), var(--surface); }
.panel-heading { background: #14223833; }
.panel-heading h2 { letter-spacing: .1px; }
.panel-marker { color: #7097bd; font-size: 13px; }
.stat-value, .metric-row strong, .scanner-measure, .asset-quote strong, .chart-axis { font-variant-numeric: tabular-nums; }
.stat-note { font-size: 9px; }
.stat-card:first-child { border-top-color: #387caa; }
.outline-link { color: #afc7e3; border-color: #2b3b50; }
.primary-button { color: #fff; }
.primary-button:hover { color: #06111f; }
.badge { font-size: 9px; letter-spacing: .1px; }
.attention { color: #83d3ff; }
.reason { border-color: #294763; background: #11263b80; max-width: 100%; }
.reason summary { color: #b9dcf8; padding: 8px 9px; }
.reason-dot { background: var(--accent); }
.reason-body { border-top-color: #294763; }
.empty-state { background: radial-gradient(ellipse at center, #1a385025, transparent 75%); }
.empty-symbol { width: 27px; height: 27px; border: 1px solid #4b6e8c; border-radius: 50%; display: grid; place-items: center; position: relative; }
.empty-symbol::before, .empty-symbol::after { content: ""; position: absolute; background: #4b6e8c; }
.empty-symbol::before { width: 1px; height: 35px; }
.empty-symbol::after { width: 35px; height: 1px; }
.empty-symbol i { width: 10px; height: 10px; border: 1px solid #4b6e8c; border-radius: 50%; }
.empty-state p { font-size: 11px; max-width: 400px; line-height: 1.55; }
.empty-state small { font-size: 9px; line-height: 1.55; }
.overview-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; align-items: start; }
.overview-grid > .panel { margin: 0; }
.overview-radar { grid-column: span 8; min-height: 272px; }
.overview-market { grid-column: span 4; min-height: 272px; }
.overview-radar > .empty-state, .overview-market > .empty-state { min-height: 226px; }
.overview-module { grid-column: span 3; }
.overview-module .empty-state { min-height: 138px; padding: 16px; }
.overview-module > .metric-list { max-height: 260px; overflow: auto; }
.overview-market .table-scroll { max-height: 260px; overflow: auto; }
.table-compact table { min-width: 620px; }
.table-scanner table { min-width: 1050px; }
.table-scanner .asset-link { min-width: 155px; }
.table-scanner tbody td, .table-scanner tbody th { padding-block: 12px; }
.table-scanner thead th { font-size: 9px; }
.profile-cell { min-width: 180px; max-width: 205px; }
.asset-link small { font-size: 10px; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-monogram { width: 31px; height: 31px; border-radius: 7px; }
.asset-reference { font-size: 8px; color: var(--muted); margin-left: 42px; display: block; margin-top: 5px; }
.dimension-strip { display: flex; flex-wrap: wrap; gap: 5px; max-width: 200px; }
.dimension-pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #2b3d54; border-radius: 4px; padding: 3px 5px; font-size: 8px; font-weight: 600; letter-spacing: .2px; color: #b1c6de; }
.indicator-dot { display: inline-block; height: 4px; width: 4px; border-radius: 50%; background: #90a6c0; flex-shrink: 0; }
.status-triggered .indicator-dot { background: var(--accent); box-shadow: 0 0 6px #55baff38; }
.dimension-pill.status-triggered { background: #183958; border-color: #367aaa; color: #b1e2ff; }
.dimension-pill.status-not_evaluable { color: #9eafc5; border-style: dashed; }
.dimension-pill.status-context_only { background: #192536; }
.scanner-state { display: block; font-size: 10px; white-space: nowrap; }
.scanner-measure { display: block; font-size: 17px; font-weight: 550; margin: 6px 0; }
.reasons-cell { min-width: 210px; max-width: 370px; font-size: 10px; }
.row-arrow { display: grid; place-items: center; min-width: 25px; min-height: 30px; color: #9cd8ff; }
.compact-quality summary { list-style: none; }
.compact-quality summary::-webkit-details-marker { display: none; }
.compact-quality summary small { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; white-space: nowrap; }
.compact-quality > .quality-block { margin-top: 8px; }
.activity-list { padding: 0 13px; }
.activity-row { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; font-size: 10px; }
.activity-row:last-child { border-bottom: 0; }
.activity-row > a { font-weight: 600; overflow-wrap: anywhere; }
.activity-row > .reason { grid-column: 1 / -1; }
.terminal-footnote { display: flex; align-items: center; gap: 10px; font-size: 9px; color: #a1bfdc; flex-wrap: wrap; margin: 14px 0 0; }
.terminal-footnote > span:not(.indicator-dot) { color: var(--muted); }
.terminal-footnote > a { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.terminal-footnote .ui-icon { width: 13px; height: 13px; }
.asset-identity { gap: 14px; padding: 17px 18px; margin-bottom: 14px; background: linear-gradient(115deg, #132139, #0b1420 70%); border: 1px solid #27394e; border-radius: 9px; align-items: center; }
.asset-heading { min-width: 0; }
.asset-heading h2 { font-size: 24px; letter-spacing: -.7px; margin-bottom: 3px; }
.asset-heading p { margin: 0 0 10px; color: #c4d1e3; font-size: 12px; }
.asset-tags { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: 9px; }
.asset-quote { margin-left: auto; text-align: right; display: flex; flex-direction: column; min-width: 150px; }
.asset-quote strong { font-size: 25px; font-weight: 600; margin: 5px 0; letter-spacing: -.6px; }
.asset-quote small { color: var(--muted); font-size: 9px; }
.asset-actions { align-self: start; margin-left: 12px; display: flex; flex-direction: column; gap: 7px; }
.asset-actions .quiet-button { font-size: 10px; }
.asset-actions small { color: var(--muted); font-size: 8px; text-align: right; }
.asset-primary-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.asset-primary-grid > .panel { margin: 0; }
.asset-chart-panel { min-height: 368px; }
.asset-chart-panel > .empty-state { min-height: 282px; background-image: linear-gradient(#253b511f 1px, transparent 1px), linear-gradient(90deg, #253b511f 1px, transparent 1px); background-size: 64px 48px; }
.asset-chart-panel .empty-state p, .asset-chart-panel .empty-state small { background: #0d1723; }
.asset-context-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.asset-context-grid > .panel { margin-bottom: 14px; }
.asset-context-grid .empty-state { min-height: 124px; }
.news-reference-list { padding: 4px 16px; font-size: 11px; }
.news-reference-list li { overflow-wrap: anywhere; }
.radar-summary { padding: 14px 16px 0; }
.radar-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.radar-summary-heading .card-kicker { font-size: 8px; }
.radar-summary h3 { font-size: 20px; font-weight: 550; margin: 14px 0 6px; letter-spacing: -.4px; }
.radar-summary > p { font-size: 10px; margin-bottom: 16px; }
.factor-list { margin: 0 -2px 12px; }
.factor-row { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 0; font-size: 10px; border-bottom: 1px solid #213149; }
.factor-row strong { font-weight: 500; color: #a7bbd2; font-size: 9px; }
.factor-row.status-triggered strong { color: var(--accent); }
.radar-no-reason { font-size: 10px; color: var(--muted); padding: 8px 0; }
.radar-summary-footer { border-top: 1px solid #263b53; margin: 13px -16px 0; padding: 12px 16px; font-size: 9px; color: #b3cce4; background: #18324a45; }
.analysis-panel > details > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.analysis-panel summary strong { font-size: 12px; }
.analysis-panel summary small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.analysis-panel .dimension-grid { padding: 0 13px; margin-top: 0; }
.evidence-panel > details { padding: 13px 16px; font-size: 11px; }
.chart-basis { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 10px; color: #b2c9df; }
.price-chart { margin: 0; padding: 14px 16px; }
.price-chart .chart-svg { width: 100%; height: auto; min-height: 230px; display: block; }
.chart-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; color: #adc5df; margin-bottom: 8px; }
.chart-meta > span:first-child { display: flex; align-items: center; gap: 7px; }
.chart-meta .indicator-dot { background: var(--accent); }
.chart-grid { stroke: #26394e; stroke-width: 1; stroke-dasharray: 0; }
.chart-axis text, .chart-time { fill: #9bb0ca; font-size: 11px; font-family: inherit; }
.chart-line { stroke: #5fbdff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#price-area); stroke: none; }
.chart-marker { fill: #9bdcff; stroke: #0c1521; stroke-width: 1.5; opacity: 0; }
.chart-hit { fill: transparent; stroke: none; cursor: crosshair; }
.chart-tooltip, .chart-crosshair { opacity: 0; pointer-events: none; }
.chart-crosshair { stroke: #6eafdf; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tooltip rect { fill: #15273c; stroke: #4675a0; }
.chart-tooltip text { fill: #bfd3e9; font-size: 10px; font-family: inherit; }
.chart-tooltip .chart-tooltip-value { fill: #eff8ff; font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-point:hover .chart-tooltip, .chart-point:hover .chart-crosshair, .chart-point:hover .chart-marker { opacity: 1; }
.price-chart svg:focus-visible .chart-point:last-child .chart-tooltip, .price-chart svg:focus-visible .chart-point:last-child .chart-marker { opacity: 1; }
.price-chart figcaption { margin: 6px 0 12px; font-size: 9px; }
.notice { padding: 16px; }
.notice > span { color: #99cfff; }
.research-hero { border-color: #2a3e59; }
.watch-card, .event-card { background: linear-gradient(135deg, #13203644, transparent 75%), #0c1521; }
.event-card { padding: 18px; }
.event-card h2 { font-size: 15px; }
.study { padding: 18px; }
.section-heading { font-size: 15px; margin: 23px 0 13px; }
.session-card { background: radial-gradient(ellipse at top right, #17457830, transparent 70%), var(--surface); border-color: #2b4665; }
@media (max-width: 1200px) {
  .overview-module { grid-column: span 6; }
  .asset-primary-grid { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); }
  .asset-actions { margin-left: 0; }
  .asset-actions .quiet-button { padding-inline: 8px; }
  .asset-quote { min-width: 130px; }
}
@media (max-width: 950px) {
  .overview-radar, .overview-market { grid-column: span 12; min-height: 0; }
  .overview-radar > .empty-state, .overview-market > .empty-state { min-height: 155px; }
  .asset-primary-grid { grid-template-columns: minmax(0, 1fr); }
  .asset-context-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .asset-identity { flex-wrap: wrap; }
  .asset-heading { flex: 1; }
  .asset-quote { margin-left: 0; }
  .asset-actions { margin-left: auto; }
  .asset-search { max-width: 210px; }
  .breadcrumb > span:first-child { margin-inline: 7px; }
}
@media (max-width: 720px) {
  .asset-search { display: none; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .overview-grid > .panel { grid-column: 1; }
  .asset-identity { padding: 15px; gap: 12px; }
  .asset-heading h2 { font-size: 21px; }
  .asset-heading p { font-size: 11px; }
  .asset-quote { text-align: left; }
  .asset-actions { margin-left: auto; align-self: center; }
  .asset-primary-grid { gap: 13px; }
  .asset-chart-panel { min-height: 0; }
  .asset-chart-panel > .empty-state { min-height: 230px; }
  .terminal-footnote > a { margin-left: 0; }
  .radar-summary h3 { font-size: 19px; }
  .overview-module .empty-state { min-height: 125px; }
  .snapshot-details > div { right: 12px; }
}
.primary-button { background: #255d99; border-color: #387bb8; color: #f6faff; }
.primary-button:hover { background: #3374b2; color: #fff; }
.control select { appearance: none; min-height: 35px; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #a9bed8 50%), linear-gradient(135deg, #a9bed8 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }

/* Terminal density: keep the working panels above the fold on laptop displays. */
@media (min-width: 951px) {
  main { padding-top: 15px; }
  .page-heading { margin-bottom: 12px; }
  .page-heading .eyebrow { display: none; }
  h1 { font-size: 23px; margin-bottom: 4px; }
  .resource-state { margin-bottom: 12px; }
  .stat-card { min-height: 90px; padding: 11px 15px; }
  .table-compact td { padding-block: 10px; }
}

/* Phase100: owner watchlist tools extend the existing terminal system. */
.watchlist-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.watchlist-grid { padding: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.watchlist-card { min-width: 0; background: linear-gradient(135deg, #101e30, #0b1420); padding: 16px; }
.watchlist-identity { display: flex; align-items: center; gap: 10px; }
.watchlist-identity > div { min-width: 0; }
.watchlist-identity p { color: var(--muted); margin: 3px 0; overflow-wrap: anywhere; font-size: 12px; }
.watchlist-card small { font-size: 10px; color: var(--muted); }
.watchlist-market { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; padding: 12px 0; }
.watchlist-market > span { font-size: 10px; color: var(--muted); }
.watchlist-market strong { font-variant-numeric: tabular-nums; font-size: 21px; }
.watchlist-reasons { margin-block: 12px; }
.watchlist-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.watchlist-search { border: 0; border-radius: 0; margin: 0; padding-bottom: 0; }
.watchlist-search .control { flex: 1; }
.watchlist-search input { width: min(500px, 100%); }
.asset-results { list-style: none; padding: 0; margin: 0; }
.asset-results li { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 17px; border-top: 1px solid var(--line); }
.asset-results li > div { min-width: 0; display: grid; gap: 4px; }
.asset-results span { font-size: 12px; overflow-wrap: anywhere; }
.asset-results small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.asset-results button { flex-shrink: 0; }
.watchlist-asset-action { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.watchlist-asset-action small { color: var(--muted); font-size: 11px; }
body[data-watchlist-enabled="true"] .asset-actions { display: none; }
@media (max-width: 950px) { .watchlist-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .watchlist-footer, .watchlist-heading { align-items: start; flex-direction: column; } .asset-results li { flex-wrap: wrap; } .watchlist-asset-action { flex-wrap: wrap; } }
.watchlist-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.watchlist-workspace > div { min-width: 0; }
.watchlist-discovery .search-group { flex-wrap: wrap; }
.watchlist-discovery .search-group input { flex: 1 1 160px; }
.watchlist-discovery .asset-results li { align-items: start; flex-wrap: wrap; }
.watchlist-mini { display: grid; }
.watchlist-mini-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 2fr) minmax(130px, 1fr); gap: 14px; align-items: center; padding: 11px 17px; border-top: 1px solid var(--line); font-size: 11px; }
@media (max-width: 1200px) { .watchlist-workspace .watchlist-grid { grid-template-columns: 1fr; } }
@media (max-width: 950px) { .watchlist-workspace { grid-template-columns: 1fr; } .watchlist-discovery { order: -1; } .watchlist-mini-row { grid-template-columns: 1fr; gap: 7px; } }
.watchlist-quality { margin-top: 10px; }

/* Phase100A account surfaces share the existing terminal palette and native controls. */
.account-workspace { max-width: 630px; margin: 36px auto; }
.account-copy { padding: 20px; }
.account-copy form { display: grid; gap: 14px; margin: 20px 0; }
.account-copy input, .account-copy select { width: 100%; }
.account-copy label { color: var(--muted); font-size: 12px; }
.account-links { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; font-size: 12px; color: var(--accent); }
.account-status { padding: 0 22px 22px; color: var(--amber); max-width: 900px; }
.broker-controls { display: grid; gap: 6px; padding-top: 12px; }
.broker-note { color: var(--muted); font-size: 10px; }
body[data-account-enabled="true"] .asset-identity { flex-wrap: wrap; }
@media (max-width: 720px) { .account-workspace { margin: 8px auto; } .account-copy { padding: 16px; } #account-link { font-size: 10px; padding: 7px; } }

/* Phase101: manual virtual ledger, never a recommendation surface. */
.paper-notice { padding: 16px; border: 1px solid var(--border, #223345); border-radius: 12px; background: #0d1823; margin-bottom: 18px; }
.paper-notice p { color: #a9bacb; font-size: .82rem; line-height: 1.6; }
.paper-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:18px 0; }
.paper-dialog { background:#0c1622; color:#e8f2fc; border:1px solid #2b465f; border-radius:16px; max-width:min(580px, 94vw); max-height:90dvh; padding:24px; overflow:auto; box-shadow:0 24px 80px #0009; }
.paper-dialog::backdrop { background:#020711cc; }
.paper-dialog form { display:grid; gap:10px; margin:18px 0; }
.paper-dialog input,.paper-dialog select { min-height:40px; }
.paper-dialog [role=status] { color:#b9d6ed; }
.paper-dialog button:disabled { opacity:.5; cursor:not-allowed; }

/* Offline product preparation: compact EOD evidence and explicit provider actions. */
.private-market { display: block; padding: 13px 16px; }
.provider-heading, .provider-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.provider-heading { justify-content: space-between; }
.provider-actions { margin-top: 12px; }
.private-market button { margin-left: 0; }
.provider-options { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.provider-options summary { color: var(--muted); font-size: 11px; }
.provider-options form { display: grid; gap: 7px; margin: 12px 0; }
.provider-options label { font-size: 11px; color: var(--muted); }
.provider-options input { min-width: 0; flex: 1; }
.provider-options .search-group { max-width: 620px; flex-wrap: wrap; }
#private-status { margin-top: 10px; }
#private-history { overflow: hidden; }
.market-observation { display: grid; gap: 5px; min-width: 0; }
.market-observation > strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.market-observation > .badge { justify-self: start; }
.market-observation small, .freshness-label { font-size: 10px; color: var(--muted); }
.market-observation[data-freshness="STALE"] .freshness-label, .chart-stale { color: var(--amber); }
.chart-stale { padding: 10px 16px; margin: 0; font-size: 11px; border-bottom: 1px solid var(--line); }
.price-evidence summary { color: var(--accent); font-size: 11px; }
.price-evidence .evidence { max-width: 540px; text-align: left; }
.price-evidence dd { overflow-wrap: anywhere; }
.watchlist-market .market-observation { width: 100%; }
.paper-quote-card { padding: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.paper-quote-card h3 { font-variant-numeric: tabular-nums; }
.paper-quote-card p { font-size: 12px; color: var(--muted); }
.password-toggle { justify-self: start; min-height: 36px; }
@media (max-width: 720px) {
  .provider-actions > button { width: 100%; white-space: normal; }
  .provider-heading { align-items: start; }
  .market-observation > strong { font-size: 23px; }
}
@media (min-width: 1200px) { .paper-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.paper-stats > .stat-card { min-width: 0; }
.paper-stats strong { overflow-wrap: anywhere; }
/* Explicitly anchor clipped accessibility text; static positions can widen WebKit's scroll area. */
.sr-only { top: 0; left: 0; margin: -1px; clip-path: inset(50%); }

/* Keep identity readable when private EOD evidence and the Paper link share a row. */
.asset-identity > .asset-heading { flex: 1 1 200px; overflow-wrap: anywhere; }
.asset-identity > .asset-quote { flex: 1 1 230px; min-width: 0; max-width: 100%; }
.asset-identity > .paper-launcher { flex: 0 0 auto; max-width: 100%; white-space: normal; }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar .breadcrumb { flex: 1 1 100px; min-width: 0; white-space: normal; }
}

.account-lifecycle { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-lifecycle h3 { margin-bottom: 8px; }
.account-lifecycle details { margin-top: 20px; }
.account-lifecycle form { display: grid; gap: 9px; margin-top: 14px; max-width: 420px; }
.account-lifecycle button { justify-self: start; }

/* Actual observed samples stay visible; keyboard users can inspect the same evidence. */
.chart-observation { fill: var(--accent, #39a9ff); }
.volume-bar { fill: #39a9ff; opacity: .55; }
.chart-point:focus .chart-tooltip, .chart-point:focus .chart-crosshair, .chart-point:focus .chart-marker { opacity: 1; visibility: visible; }
.daily-observation:focus circle, .daily-observation:hover circle { stroke: #fff; stroke-width: 2; }
.history-range { min-width: 0; margin-block: 12px; }
.history-range summary { cursor: pointer; padding-block: 10px; }
.evidence dd, .watch-card small { overflow-wrap: anywhere; }

/* Capability-based touch sizing prevents Safari input zoom without disabling zoom. */
html { -webkit-text-size-adjust: 100%; }
.app-shell { min-height: 100dvh; }
button, summary { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
.history-range .chart-svg { width: 100%; height: auto; display: block; }
.table-scroll { max-width: 100%; overscroll-behavior-x: contain; }
.control, .search-group { min-width: 0; max-width: 100%; }
.metric-help { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; }
.metric-help summary { color: var(--accent); overflow-wrap: anywhere; }
.metric-help dd { overflow-wrap: anywhere; }
.metric-help .evidence { grid-template-columns: minmax(0, 1fr); font-size: 12px; gap: 4px; }
.metric-help .evidence dd { margin-bottom: 10px; }
.metric-row > .metric-help { grid-column: 1 / -1; }
.data-guide { scroll-margin-top: 20px; }
.data-guide > .evidence { padding: 12px 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; padding: 16px; align-items: start; }
@media (pointer: coarse) {
  input, select, textarea, .asset-search input, .snapshot-bar input, .search-group input, .control select { font-size: 16px; }
  button, .quiet-button, .primary-button, .icon-button, nav a, summary { min-height: 44px; }
}
@media (max-width: 720px) {
  .app-shell { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  footer { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .snapshot-bar form, .search-group { flex-wrap: wrap; }
  .snapshot-bar form { max-width: 100%; }
  .outline-link, .quiet-button, .primary-button { white-space: normal; overflow-wrap: anywhere; }
}
