:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --panel: #10131b;
  --chart: #131722;
  --border: #252b38;
  --divider: #232936;
  --text: #e9ebf0;
  --muted: #a1a8b6;
  --soft: #c1c7d2;
  --gold: #e5bd74;
  --up: #26a69a;
  --down: #ef5350;
  --up-text: #5ccab8;
  --down-text: #ff8784;
  --supply: #587395;
  --median: #7baaf7;
  --minimum: #d9ac73;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--bg); }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.page { --sidebar-width: 15rem; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); width: 100%; height: 100dvh; overflow: hidden; }
.page.sidebar-hidden { --sidebar-width: 2.75rem; }
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.workspace-main { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; }
.workspace-main > * { flex-shrink: 0; }
.sidebar-dock { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--border); background: #10141d; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 3.4rem; padding: .5rem .6rem .5rem .85rem; border-bottom: 1px solid var(--divider); }
.sidebar-caption { color: var(--muted); font: 650 .66rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sidebar-toggle { flex: none; }
.sidebar-hidden .sidebar-caption { display: none; }
.sidebar-hidden .sidebar-top { justify-content: center; padding-inline: .25rem; }
.sidebar-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.item-sidebar { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
.sidebar-market { display: grid; gap: .18rem; flex: none; padding: .65rem .85rem; border-top: 1px solid var(--divider); color: var(--muted); font-size: .65rem; }
.sidebar-market span { color: #c8b499; }
.masthead, .intro, .chart-header, .chart-footer, .footer, .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.masthead { flex: none; min-height: 3.4rem; padding: .45rem 1rem; border-bottom: 1px solid var(--border); background: #10131b; }
.wordmark, .instrument, .actions, .button, .market, .wordmark p {
  display: flex;
  align-items: center;
}
.wordmark { gap: .5rem; }
.wordmark svg { flex: none; stroke: var(--gold); stroke-width: 1.35; stroke-linejoin: round; }
.wordmark p { margin: 0; }
.wordmark-divider { height: .9rem; border-left: 1px solid #444554; }
.wordmark-meta { color: var(--muted); font-weight: 500; }
.market {
  flex: none;
  gap: .36rem;
  padding: .23rem .43rem;
  border: 1px solid #544037;
  border-radius: 4px;
  background: #261f21;
  color: #ecc1ac;
  font-size: .73rem;
  font-weight: 620;
  line-height: 1.25;
}
.market svg { stroke: currentColor; stroke-linejoin: round; stroke-width: 1.25; }

.intro { flex: none; padding: .8rem 1rem; gap: .7rem; }
.instrument { gap: .7rem; }
.instrument-icon { flex: none; }
.instrument-tile { fill: #1d2523; stroke: #494631; }
.instrument-ring { stroke: #726444; stroke-width: .7; }
.instrument-leaves { fill: #4f7154; stroke: #adac68; stroke-width: .7; stroke-linejoin: round; }
.instrument-veins { stroke: #e0c581; stroke-width: .85; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { color: var(--gold); font: 600 .64rem/1.35 var(--mono); letter-spacing: .065em; text-transform: uppercase; }
.eyebrow span { margin-inline: .14rem; color: #8c7959; }
h1 { margin-block: .08rem .12rem; font-size: clamp(1.55rem, 4vw, 2.1rem); font-weight: 680; line-height: 1.04; letter-spacing: -.045em; }
.subheading { color: var(--muted); font-size: .76rem; }
.actions { flex-wrap: wrap; gap: .4rem; }
.button {
  min-height: 2.05rem;
  justify-content: center;
  gap: .36rem;
  padding: .36rem .64rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #161a25;
  color: var(--soft);
  font: 620 .74rem/1.15 system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.button svg, .mode-control svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.button svg { width: 1rem; height: 1rem; stroke-width: 1.45; }
.button.primary { border-color: #5a4b36; background: #2a2421; color: #f1cc87; }
.button.primary:hover:not(:disabled) { background: #3b2f24; }
.button.secondary:hover { background: #222837; color: var(--text); }
.button:disabled { cursor: default; opacity: .55; }

.panel { min-width: 0; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); }
.market-layout { display: flex; flex: 1 0 28rem; min-width: 0; min-height: 0; }
.market-content { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.chart-panel { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.chart-panel > :not(dialog) { flex-shrink: 0; }
.item-sidebar-header { flex: none; padding: .7rem .65rem .6rem; border-bottom: 1px solid var(--divider); }
.item-filters > label { color: var(--muted); font-size: .67rem; }
.item-filters { display: grid; gap: .32rem; }
.item-filters select, .item-filters input {
  width: 100%;
  min-width: 0;
  min-height: 2rem;
  padding: .31rem .44rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #191e2a;
  color: var(--text);
  font: .76rem/1.2 system-ui, sans-serif;
}
.item-filters select { cursor: pointer; }
.item-filters input::placeholder { color: var(--muted); opacity: 1; }
.item-search-field { position: relative; min-width: 0; }
.item-search-field input { padding-inline-start: 1.65rem; }
.item-search-field svg {
  position: absolute;
  top: 50%;
  inset-inline-start: .47rem;
  width: .87rem;
  height: .87rem;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.25;
  stroke-linecap: round;
  pointer-events: none;
}
.item-results { margin-top: .46rem; color: var(--muted); font-size: .67rem; font-variant-numeric: tabular-nums; }
.item-list {
  flex: 1;
  min-height: 0;
  padding: .28rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #424b60 transparent;
}
.item-option {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: .15rem;
  padding: .37rem .43rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--soft);
  font: 610 .75rem/1.2 system-ui, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.item-option:hover { background: #202633; color: var(--text); }
.item-option:focus-visible { outline-offset: -2px; }
.item-option[aria-pressed="true"] { border-color: #514331; background: #302821; color: #f4cc89; }
.item-category-label { color: var(--muted); font-size: .65rem; font-weight: 450; }
.item-option[aria-pressed="true"] .item-category-label { color: #c8b59b; }
.quote-strip {
  display: grid;
  grid-template-columns: 1.15fr .95fr .95fr 1fr 1fr;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(100deg, #1c1a1d, #151923 42%, #151923);
}
.quote { min-width: 0; padding: .62rem .85rem .58rem; }
.quote + .quote { border-left: 1px solid var(--divider); }
.quote dt { color: var(--muted); font-size: .71rem; font-weight: 580; }
.quote dd { margin-top: .16rem; font: 640 clamp(.88rem, 1.6vw, 1.12rem)/1.23 var(--mono); letter-spacing: -.04em; overflow-wrap: anywhere; }
.quote-main dd { color: var(--gold); font-size: clamp(1.05rem, 2vw, 1.38rem); }
.quote .quote-detail { margin-top: .14rem; color: var(--muted); font: .66rem/1.2 system-ui, sans-serif; letter-spacing: 0; }
#change-value[data-direction="up"] { color: var(--up-text); }
#change-value[data-direction="down"] { color: var(--down-text); }

.chart-header {
  flex-wrap: wrap;
  min-height: 3rem;
  padding: .38rem .7rem;
  border-bottom: 1px solid var(--divider);
  background: #11151e;
}
.chart-heading { flex: none; }
.chart-heading h2, .section-header h2 { font-size: .86rem; font-weight: 660; }
.chart-heading p { margin-top: .08rem; color: var(--muted); font-size: .66rem; }
.chart-controls, .control, .ranges { display: flex; align-items: center; }
.chart-controls { min-width: 0; flex-wrap: wrap; gap: .32rem; }
.control { gap: .28rem; }
.control + .control { padding-left: .33rem; border-left: 1px solid var(--border); }
.control > span, .control > label { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.history-control select {
  max-width: 100%;
  min-height: 1.8rem;
  padding: .2rem .32rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #191e2a;
  color: var(--text);
  font: 620 .73rem/1.15 system-ui, sans-serif;
  cursor: pointer;
}
.history-control select:hover { border-color: #57505a; }
.ranges { min-width: 0; gap: .12rem; }
.ranges button {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  justify-content: center;
  gap: .27rem;
  padding: .2rem .42rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--soft);
  font: 630 .73rem/1.15 system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.ranges button:hover { background: #202633; color: var(--text); }
.ranges button[aria-pressed="true"] { border-color: #514331; background: #302821; color: #f4cc89; }
.mode-control svg { width: .85rem; height: .85rem; stroke-width: 1.12; }
.history-summary {
  padding: .29rem .73rem;
  border-bottom: 1px solid var(--divider);
  background: var(--chart);
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.line-only { display: none !important; }
.chart-panel:has([data-mode="line"][aria-pressed="true"]) .candle-only { display: none; }
.chart-panel:has([data-mode="line"][aria-pressed="true"]) .line-only:not([hidden]) { display: flex !important; }

.ohlc-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .9rem;
  min-height: 1.92rem;
  padding: .35rem .73rem;
  border-bottom: 1px solid #1e2431;
  background: var(--chart);
}
.ohlc-readout div { display: flex; align-items: baseline; gap: .32rem; }
.ohlc-readout dt { color: var(--muted); font-size: .65rem; }
.ohlc-readout dd { color: var(--text); font: 610 .69rem/1.2 var(--mono); }

.chart-panel > .chart-area { position: relative; flex: 1 0 12rem; min-height: 12rem; background: var(--chart); }
.chart-interactive, .chart-empty { position: absolute; inset: 0; height: 100%; }
#chart { height: 100%; }
.chart-interactive:focus-visible { outline-offset: -2px; z-index: 1; }
#chart { width: 100%; }
.chart-empty {
  display: grid;
  padding: 1rem;
  place-items: center;
  color: var(--muted);
  text-align: center;
  background-image:
    linear-gradient(#23293688 1px, transparent 1px),
    linear-gradient(90deg, #23293688 1px, transparent 1px);
  background-position: 1rem 1rem;
  background-size: 88px 64px;
}
.tooltip {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 1rem);
  padding: .48rem .6rem;
  border: 1px solid #404859;
  border-radius: 5px;
  background: #191e2a;
  box-shadow: 0 5px 18px #0006;
  pointer-events: none;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}
.tooltip-time { margin-bottom: .25rem; color: var(--text); font-weight: 670; }
.tooltip-line { margin-top: .1rem; color: var(--soft); }

.chart-footer {
  min-height: 2.2rem;
  padding: .35rem .72rem;
  border-top: 1px solid var(--divider);
  color: var(--muted);
}
.fullscreen-source { display: none; font-size: .68rem; }
.chart-panel:fullscreen .fullscreen-source { display: inline; }
.legend { display: flex; flex-wrap: wrap; gap: .27rem .75rem; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: .33rem; white-space: nowrap; font-size: .68rem; }
.legend-candle, .legend-single, .legend-supply, .legend-gap, .legend-line { display: inline-block; flex: none; }
.legend-candle { position: relative; width: .39rem; height: .53rem; border-radius: 1px; background: currentColor; }
.legend-candle::before { position: absolute; inset: -.11rem auto -.11rem calc(50% - .5px); width: 1px; background: currentColor; content: ""; }
.legend-up { color: var(--up); }
.legend-down { color: var(--down); }
.legend-single { width: .57rem; border-top: 2px solid #a3adbd; }
.legend-supply { width: .61rem; height: .53rem; border-radius: 1px 1px 0 0; background: var(--supply); }
.legend-gap { width: .6rem; height: .54rem; border: 1px dashed #788093; border-radius: 1px; }
.legend-line { width: .68rem; border-top: 2px solid; }
.legend-line.median { color: var(--median); }
.legend-line.minimum { color: var(--minimum); }
.chart-caption { color: var(--muted); font-size: .69rem; line-height: 1.35; text-align: right; }

.notice {
  margin-bottom: .55rem;
  padding: .51rem .63rem;
  border: 1px solid #384962;
  border-radius: 5px;
  background: #182437;
  color: #cbdaf4;
  font-size: .77rem;
  overflow-wrap: anywhere;
}
.notice[data-kind="error"] { border-color: #673e46; background: #2b2028; color: #ffd0cb; }
.history-notice { margin: .45rem .73rem; }
.collection-panel { margin-top: .85rem; border: 1px solid var(--divider); border-radius: 6px; }
.collection-overview { padding: .58rem .73rem .53rem; }
.source-notice { margin: .48rem 0 0; }
.status-pill {
  flex: none;
  padding: .18rem .37rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 620;
}
.status-pill[data-kind="ok"] { border-color: #2c514d; background: #172a2b; color: #8fdbc8; }
.status-pill[data-kind="error"] { border-color: #643e46; background: #2b2028; color: var(--down-text); }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem .7rem; margin-top: .48rem; }
.collection-grid div { min-width: 0; }
.collection-grid div + div { padding-left: .72rem; border-left: 1px solid var(--divider); }
.collection-grid dt { color: var(--muted); font-size: .69rem; }
.collection-grid dd { margin-top: .1rem; font: 630 .76rem/1.25 var(--mono); overflow-wrap: anywhere; }
.collection-grid .detail { color: var(--muted); font: .66rem/1.25 system-ui, sans-serif; }
.collection-details { border-top: 1px solid var(--divider); }
.collection-details summary { padding: .42rem .73rem; color: var(--soft); font-size: .72rem; font-weight: 620; cursor: pointer; }
.collection-details summary:hover { color: var(--text); }
.collection-details summary::marker { color: var(--gold); }
.collection-body { padding: .08rem .73rem .6rem; }
.section-meta { color: var(--muted); font-size: .73rem; line-height: 1.4; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.log-panel { margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--divider); }
.log-panel h3 { margin-bottom: .1rem; font-size: .81rem; font-weight: 670; }
.table-wrap { margin-top: .3rem; overflow-x: auto; border-radius: 3px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .75rem; font-variant-numeric: tabular-nums; }
th, td { padding: .39rem .43rem; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { color: var(--muted); font-size: .68rem; font-weight: 630; white-space: nowrap; }
td { color: var(--soft); }
tbody tr:last-child td { border-bottom: 0; }
.numeric { text-align: right; white-space: nowrap; }
.table-time { white-space: nowrap; }
.result-ok { color: var(--up-text); }
.result-error { color: var(--down-text); }
.row-note { display: block; min-width: 8rem; max-width: 24rem; margin-top: .15rem; color: var(--muted); font-size: .69rem; overflow-wrap: anywhere; }
.added-note { display: block; margin-top: .13rem; color: var(--muted); font-size: .68rem; }
.empty-row { color: var(--muted); }
.footer { padding-block: .52rem .8rem; color: var(--muted); font-size: .67rem; }
.credits { display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.credits a { text-decoration-color: #7d8494; text-underline-offset: .15em; }
.credits a:hover { color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* App shell and display controls */
.wordmark { min-width: 0; gap: .65rem; }
.wordmark .brand-name { display: block; color: var(--text); font: 650 1rem/1.2 Georgia, serif; letter-spacing: .025em; }
.brand-name span { color: var(--gold); }
.wordmark .brand-caption { display: block; margin-top: .17rem; color: #8d99af; font: 500 .59rem/1.2 system-ui, sans-serif; letter-spacing: .045em; }
.city-crest { flex: none; }
.crest-shield { fill: #172a46; stroke: #aa8b53; stroke-width: 1.4; }
.crest-wall { fill: #bd9c62; stroke: #d9bb7c; stroke-width: 1; }
.crest-gate { stroke: #18263b; stroke-width: 2; }
.crest-detail { stroke: #233c5c; stroke-width: 1.4; }
.market { background: #1d1b1b; border-color: #433a31; font-size: .68rem; }
.market-dot { width: .34rem; height: .34rem; border-radius: 50%; background: #b09360; }
.market-divider { margin-inline: .2rem; color: #736554; }
.instrument-badge { display: grid; place-items: center; flex: none; width: 2.7rem; height: 2.7rem; border: 1px solid #45402f; border-radius: 6px; background: #24221e; }
.instrument-badge svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.icon-button { width: 2rem; min-width: 2rem; height: 2rem; padding: .35rem; }
.header-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.sidebar-toggle:hover, .header-toggle:hover { border-color: #75613f; color: var(--gold); }
.chart-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .75rem; padding: .48rem .8rem; border-bottom: 1px solid var(--divider); background: #11151e; }
.chart-heading { min-width: 0; max-width: 100%; flex: 0 1 auto; }
.instrument { min-width: 0; }
.instrument > div:last-child { min-width: 0; }
h1 { overflow-wrap: anywhere; }
.chart-heading h2 { overflow-wrap: anywhere; }
.heading-divider { margin-inline: .55rem; color: #596273; font-weight: 400; }
.heading-meta { color: var(--muted); font-weight: 450; font-size: .75rem; }
.chart-view-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; margin-left: auto; }
.chart-view-actions .button { min-height: 1.9rem; }
.fullscreen-button { flex: none; }
.fullscreen-exit-icon { display: none; }
.fullscreen-button[aria-pressed="true"] .fullscreen-enter-icon { display: none; }
.fullscreen-button[aria-pressed="true"] .fullscreen-exit-icon { display: initial; }
.chart-panel:fullscreen { flex: none; width: 100vw; height: 100dvh; min-height: 0; max-width: none; margin: 0; border: 0; border-radius: 0; overflow: auto; background: var(--chart); }
.chart-panel:fullscreen::backdrop { background: var(--chart); }
.chart-panel:fullscreen .chart-toolbar { position: sticky; top: 0; z-index: 6; }
.chart-window-note { position: absolute; inset: 35% 15% auto; color: var(--muted); font-size: .8rem; text-align: center; pointer-events: none; }
.chart-footer { flex-wrap: wrap; gap: .3rem .8rem; min-height: 1.9rem; padding-block: .4rem; }
.chart-help { color: var(--muted); font-size: .75rem; line-height: 1.6; margin-bottom: .5rem; }
.page-notice { margin: .4rem .8rem; }
.footer { flex: none; flex-wrap: wrap; gap: .25rem .7rem; padding: .42rem .8rem; border-top: 1px solid var(--border); font-size: .6rem; }
.footer-market { color: #7e8798; }
.credits { margin-left: auto; }
.legal { color: #7e8798; font-size: .57rem; }
/* Collector details stay closed until AH Data is selected. */
.data-dialog { width: min(54rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 3rem); margin: auto; padding: 0; color: var(--text); background: #11151e; border: 1px solid #424c60; border-radius: 9px; box-shadow: 0 20px 100px #000a; }
.data-dialog::backdrop { background: #03060bbd; }
.data-dialog[open] { display: flex; flex-direction: column; }
.data-dialog-header { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); background: #171c27; }
.data-dialog-header h2 { margin-top: .2rem; font-size: 1.1rem; }
.data-dialog-body { padding: 1rem; overflow: auto; }
.data-dialog .section-header h3, .chart-guide h3 { font-size: .85rem; }
.data-dialog .collection-grid { gap: .7rem; margin-top: .7rem; }
.data-dialog .collection-grid dd { font-size: .82rem; }
.chart-guide { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.chart-guide h3 { margin-bottom: .35rem; }
.data-loading { display: none; margin-top: .8rem; color: var(--muted); font-size: .8rem; }
.data-dialog:has(.collection-panel[hidden]) .data-loading { display: block; }
.data-status-dot { width: .3rem; height: .3rem; border-radius: 50%; background: #626f84; }
#show-ah-data[data-kind="ok"] .data-status-dot { background: #69b5a3; }
#show-ah-data[data-kind="error"] .data-status-dot { background: var(--down); }
@media (max-width: 70rem) {
  .page { --sidebar-width: 13rem; }
  .page.sidebar-hidden { --sidebar-width: 2.75rem; }
  .quote { padding-inline: .6rem; }
  .footer-market { display: none; }
  .legal { width: 100%; }
}
@media (max-width: 50rem) {
  .page { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .sidebar-dock { position: fixed; inset: 0 auto 0 0; z-index: 20; width: min(16rem, calc(100vw - 3rem)); box-shadow: 8px 0 30px #0005; }
  .sidebar-hidden .sidebar-dock { width: 2.75rem; box-shadow: none; }
  .workspace { grid-column: 2; }
  .masthead, .intro { padding-inline: .65rem; }
  .brand-caption { display: none !important; }
  .market { font-size: .6rem; }
  .market-dot, .market-divider { display: none; }
  .chart-toolbar { padding-inline: .55rem; }
  .chart-heading p { display: none; }
  .quote-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .quote { grid-column: span 2; padding: .4rem .46rem; }
  .quote-main, .quote:nth-child(2) { grid-column: span 3; }
  .quote:nth-child(n + 3) { border-top: 1px solid var(--divider); }
  .quote:nth-child(3) { border-left: 0; }
  .quote dt { font-size: .63rem; }
  .quote dd { font-size: .8rem; }
  .quote-main dd { font-size: 1rem; }
  .quote .quote-detail { font-size: .6rem; }
  .chart-caption { text-align: left; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 35rem) {
  .masthead { flex-wrap: wrap; gap: .4rem; }
  .wordmark .brand-name { font-size: .9rem; }
  .market { border: 0; padding: 0; background: transparent; }
  .intro { flex-wrap: wrap; }
  .instrument-badge { display: none; }
  .actions { gap: .3rem; }
  .chart-view-actions { margin-left: 0; }
  .heading-meta { display: none; }
  .heading-divider { display: none; }
  .chart-controls { column-gap: .4rem; row-gap: .3rem; }
  .control { flex-wrap: wrap; }
  .control + .control { padding-left: .25rem; }
  .ranges button { padding-inline: .32rem; }
  .history-summary { font-size: .62rem; }
  .legend { gap: .25rem .5rem; }
  .chart-panel > .chart-area { flex-basis: 14rem; }
  .market-layout { flex-basis: 34rem; }
  .data-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  .data-dialog-body { padding: .65rem; }
  .credits { margin-left: 0; }
}
