:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #141414;
  --panel-hi: #202020;
  --line: #31332d;
  --line-hi: #4b4e45;
  --text: #ebece4;
  --muted: #949b8b;
  --green: #d5f46a;
  --red: #e58c89;
  --purple: #b5a7d9;
  --orange: #d2b88a;
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Literata', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.5 var(--font); font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: var(--text); border: 1px solid transparent; background: transparent; }
button:disabled { opacity: .45; cursor: default; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
input, select { min-width: 0; border: 1px solid var(--line); border-radius: 1px; background: #0c0c0c; color: var(--text); padding: 9px 11px; }
input::placeholder { color: #697260; }
input:focus, select:focus { border-color: #8d9b69; outline: none; }
select { cursor: pointer; }
select option { background: #171717; }
[hidden] { display: none !important; }

/* A compact masthead, treated as a market publication rather than a toolbar. */
.app-header { display: flex; align-items: center; gap: 25px; height: 80px; padding: 0 26px; background: #101010; border-bottom: 1px solid var(--line-hi); }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-type { display: flex; flex-direction: column; align-items: flex-start; }
.brand-name { font: italic 500 33px/1 var(--display); letter-spacing: -1.3px; }
.brand-dot { color: var(--green); }
.brand-caption { margin-top: 7px; color: #9ba58f; font: 7px/1.2 var(--mono); letter-spacing: 1.15px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 43px; border: 1px solid #54613f; border-top: 3px solid var(--green); background: #172013; }
.brand-mark svg { width: 24px; height: 27px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: square; }
.main-nav { display: flex; align-items: center; flex: 1; gap: 5px; height: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-button { position: relative; height: 36px; padding: 7px 9px 9px; border-radius: 0; font: 400 12px/1.5 var(--mono); color: #a3aa99; }
.nav-button:hover { color: var(--text); background: #191e14; }
.nav-button.active { background: #1a2113; color: var(--green); border-bottom: 2px solid var(--green); }
.nav-button.premium { color: var(--purple); }
.nav-button.premium.active { border-bottom-color: var(--purple); }
.nav-button .new-badge { position: absolute; right: 1px; top: -8px; padding: 1px 4px; color: #12170b; background: var(--green); font: 7px/12px var(--mono); }
.nav-scroll { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 32px; padding: 0; color: var(--green); border: 1px solid #465335; font: 24px/24px var(--display); background: #141b0f; box-shadow: -8px 0 12px #101010; z-index: 1; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 7px; border: 1px solid var(--line-hi); border-radius: 1px; color: var(--muted); }
.icon-button:hover { color: var(--green); border-color: #859466; background: #1d2517; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.header-settings { transform: rotate(90deg); }
.status-strip { display: flex; align-items: center; gap: 14px; min-height: 38px; padding: 5px 26px; border-bottom: 1px solid var(--line); background: #151515; font: 9px/1.5 var(--mono); }
.mode-switch { display: flex; align-items: center; gap: 1px; padding: 2px; background: #080808; border: 1px solid #38402f; }
.mode-switch button { padding: 1px 9px; border-radius: 0; color: var(--muted); font: 9px/17px var(--mono); }
.mode-switch button.active { background: var(--green); color: #131a08; }
.mode-switch button.demo.active { color: #171124; background: var(--purple); }
.connection { display: flex; align-items: center; gap: 7px; color: #bac4ad; }
.status-dot { display: inline-block; width: 5px; height: 5px; background: var(--muted); border-radius: 0; }
.status-dot.ok { background: var(--green); }
.status-dot.error { background: var(--red); }
.status-dot.demo { background: var(--purple); }
.status-divider { width: 1px; height: 12px; background: #414a36; }
.subtle, .muted { color: var(--muted); }
.status-spacer { flex: 1; }
.text-button { padding: 0; color: #a7b099; font: 10px/1.5 var(--mono); }
.text-button:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.alert-indicator { padding: 2px 8px; color: #b7c2a7; border: 1px solid #3c4632; background: #11180b; font: 10px/1.5 var(--mono); }
.alert-indicator span:first-child { color: var(--green); }
.version-label { color: #949c8b; font: 8px/1.5 var(--mono); letter-spacing: .3px; }
.notice { padding: 9px 26px; color: #d1c8e1; background: #241e2d; border-bottom: 1px solid #554664; font: 10px/1.7 var(--mono); }
.source-errors { padding: 9px 26px; color: #e5aaa1; background: #2a1815; border-bottom: 1px solid #63433a; font: 10px/1.7 var(--mono); }

/* Serif display, monospaced observations, and long horizontal rules. */
main { max-width: 1920px; margin: auto; padding: 25px 26px 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 23px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--green); font: 8px/1.5 var(--mono); letter-spacing: 1.25px; margin-bottom: 6px; }
.eyebrow::before { content: '■'; margin-right: 8px; font-size: 6px; vertical-align: 1px; }
h1 { margin: 0; font: 400 36px/1.18 var(--display); letter-spacing: -.85px; }
.page-heading p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.primary-button, .outline-button, .soft-button { padding: 8px 13px; border: 1px solid var(--line-hi); border-radius: 1px; font: 10px/1.5 var(--mono); white-space: nowrap; }
.primary-button { color: #171e0b; background: var(--green); border-color: var(--green); }
.primary-button:hover { background: #e1ff80; }
.outline-button:hover { color: var(--green); border-color: #8b9a66; background: #1b2414; }
.outline-button.active { color: var(--green); border-color: #697d3f; background: #192310; }
.soft-button { background: #1e2618; }
.soft-button:hover { background: #303b26; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.market-controls { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; flex-wrap: wrap; }
.search-field { position: relative; flex: 1; max-width: 285px; min-width: 175px; }
.search-field input { width: 100%; height: 43px; padding-left: 35px; font-size: 11px; background: #121212; border-color: #434c36; }
.search-field svg { position: absolute; left: 12px; top: 14px; width: 15px; fill: none; stroke: #afbd95; stroke-width: 1.6; }
.control { display: flex; flex-direction: column; min-width: 125px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 0; background: #151515; }
.control > span { color: #94a180; font: 7px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .55px; }
.control select, .control input { height: 24px; max-width: 178px; padding: 2px 14px 1px 0; border: 0; background: none; font-size: 11px; outline: none; }
.control input { font-family: var(--mono); font-size: 10px; }
.volume-control { width: 146px; }
.volume-control input { width: 121px; }
.sort-control { min-width: 174px; }
.market-controls > .outline-button { height: 43px; }
.workspace-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 8px 0; border-top: 1px solid #4c5840; border-bottom: 1px solid var(--line); }
.workspace-bar::before { content: '01'; color: #a4b08f; font: italic 400 29px/26px var(--display); padding-right: 13px; margin-right: 1px; border-right: 1px solid #4c5840; }
.workspace-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.workspace-tab { padding: 5px 10px; border-radius: 0; border: 1px solid transparent; color: #94a086; font: 9px/1.5 var(--mono); }
.workspace-tab:hover { color: var(--green); }
.workspace-tab.active { color: #182008; background: var(--green); border-color: var(--green); }
.workspace-tab span { margin-left: 7px; color: inherit; font-size: 8px; opacity: .7; }
.workspace-spacer { flex: 1; }
.segment-group { display: flex; gap: 1px; padding: 2px; border: 1px solid #3b4631; border-radius: 0; background: #111111; }
.segment-group button { padding: 3px 8px; border-radius: 0; color: #929f81; font: 9px/1.4 var(--mono); }
.segment-group button.active { color: var(--green); background: #243319; }
.grid-icon { display: inline-grid; grid-template-columns: repeat(var(--n), 3px); gap: 2px; padding: 3px 0; }
.grid-icon i { height: 7px; width: 3px; background: currentColor; }
.result-count { color: #9fae8b; font: 8px/1.5 var(--mono); }

/* Instrument tiles resemble numbered instrument plates, not floating cards. */
.chart-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); gap: 8px; }
.chart-card { overflow: hidden; min-width: 0; border: 1px solid #36402e; border-radius: 0; background: #0c0c0c; transition: border-color .15s; }
.chart-card:hover { border-color: #9eb270; }
.chart-card-header { display: flex; align-items: center; gap: 7px; height: 39px; padding: 6px 10px; border-bottom: 1px solid #303b25; background: #181818; }
.favorite-button { color: #768464; padding: 0 2px; font-size: 17px; line-height: 20px; }
.favorite-button.active { color: var(--green); }
.coin-name { font: 500 17px/1.1 var(--display); color: #e7efda; letter-spacing: -.3px; }
.coin-market { color: #9fac8d; font: 7px/1.5 var(--mono); padding: 1px 4px; border: 1px solid #39452d; border-radius: 0; background: #121412; }
.chart-change { margin-left: auto; font: 10px/1.5 var(--mono); }
.chart-expand { padding: 0 1px; font-size: 16px; color: #a7b695; }
.chart-surface { position: relative; height: 215px; cursor: pointer; background: #090b09; }
.chart-surface svg { display: block; width: 100%; height: 100%; }
.chart-overlay { position: absolute; left: 10px; top: 6px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 85%; pointer-events: none; color: #8b9981; font: 8px/1.7 var(--mono); }
.chart-overlay strong { color: #c6d7b5; font-weight: 400; margin-left: 4px; }
.chart-surface, .modal-chart { cursor: crosshair; }
.chart-crosshair { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.chart-crosshair-vertical, .chart-crosshair-horizontal { position: absolute; display: block; }
.chart-crosshair-vertical { border-left: 1px dashed #d5f46a99; }
.chart-crosshair-horizontal { border-top: 1px dashed #d5f46a99; }
.chart-crosshair-price, .chart-crosshair-time { position: absolute; height: 18px; padding: 2px 4px; background: var(--green); color: #121a08; font: 10px/14px var(--mono); white-space: nowrap; }
.chart-crosshair-time { width: 128px; text-align: center; font-size: 9px; }
.chart-history-hint { position: absolute; left: 14px; bottom: 25px; padding: 2px 5px; background: #090b09cc; color: #a1ae92; font: 8px/1.5 var(--mono); pointer-events: none; }
.chart-return-live { position: absolute; right: 84px; top: 26px; padding: 3px 7px; border: 1px solid #61753f; background: #172310; color: var(--green); font: 9px/1.4 var(--mono); z-index: 3; cursor: pointer; }
.chart-return-live:hover { background: #2b3b1b; }
.board-editor { margin: 16px 0 22px; }
.board-editor-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.board-editor-heading h2 { margin: 0; font: 400 22px/1.25 var(--display); }
.chart-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; height: 100%; padding: 25px; color: #869479; text-align: center; font: 10px/1.7 var(--mono); }
.chart-card-footer { display: flex; align-items: center; gap: 12px; height: 28px; padding: 4px 10px; color: #95a187; border-top: 1px solid #26301e; background: #121312; font: 8px/1.5 var(--mono); }
.chart-card-footer strong { color: #bbcba9; font-weight: 400; }
.chart-card-footer .last-price { margin-left: auto; color: #e2efd4; font: 10px/1.5 var(--mono); }
.card-timeframes { display: flex; gap: 1px; align-items: center; }
.card-timeframes button { padding: 1px 3px; color: #93a082; border-radius: 0; font: 7px/13px var(--mono); }
.card-timeframes button.active { color: var(--green); background: #2a361f; }
.green { color: var(--green); }
.red { color: var(--red); }
.purple { color: var(--purple); }
.amber { color: #d2b88a; }
.skeleton { width: 85px; height: 1px; background: #56663f; box-shadow: 0 9px #293620, 0 -9px #293620; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Rules, forms, lists and comparisons share a quietly technical vocabulary. */
.panel { padding: 21px; background: var(--panel); border: 1px solid var(--line); border-top-color: #596648; border-radius: 1px; }
.panel-title { margin: 0 0 7px; font: 400 22px/1.25 var(--display); letter-spacing: -.35px; }
.panel-description { margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #aab798; font-size: 11px; }
.field input, .field select { width: 100%; }
.field input[type=number] { font-family: var(--mono); }
.field small { font-size: 9px; line-height: 1.7; color: var(--muted); }
.full-width { grid-column: 1 / -1; }
.check-field { display: flex; align-items: center; gap: 9px; color: #b8c6a7; font-size: 11px; }
.check-field input { accent-color: var(--green); }
.form-actions { display: flex; gap: 8px; margin-top: 22px; }
.preset-card { display: flex; align-items: center; gap: 15px; margin-top: 10px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-hi); border-radius: 0; }
.preset-info { flex: 1; }
.preset-card strong { color: #dce6d0; font-size: 12px; font-weight: 500; }
.preset-card p { margin: 5px 0 0; color: var(--muted); font: 9px/1.6 var(--mono); }
.danger-button { color: #b4857c; font: 10px/1.5 var(--mono); }
.danger-button:hover { color: var(--red); }
.inline-info { margin-bottom: 16px; padding: 11px 14px; border: 1px solid #414137; border-left: 3px solid var(--purple); border-radius: 0; color: #b7b6c6; background: #191920; font-size: 11px; line-height: 1.75; }
.inline-info.amber { color: #c8b898; border-color: #4c4430; border-left: 3px solid #b8a06b; background: #1b1910; }
.table-panel { overflow: hidden; background: #121212; border: 1px solid #36422b; border-radius: 1px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font: 10px/1.55 var(--mono); }
th { padding: 13px; color: #acbd97; font-size: 8px; font-weight: 400; text-transform: uppercase; letter-spacing: .35px; background: #1b1d19; border-bottom: 1px solid #4d5a3e; }
td { padding: 12px 13px; border-bottom: 1px solid #26301f; color: #c6d3b7; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #22251f; }
.sortable { cursor: pointer; }
.sortable:hover { color: var(--green); }
.symbol-cell { display: flex; align-items: center; gap: 9px; padding: 0; text-align: left; }
.coin-avatar { display: grid; place-items: center; width: 27px; height: 27px; color: #bbce9c; border: 1px solid #465638; border-radius: 0; background: #233018; font: 9px/1 var(--mono); }
.symbol-cell strong { display: block; color: #e5edd9; font: 12px/1.5 var(--font); font-weight: 500; }
.symbol-cell small { display: block; color: var(--muted); font: 8px/1.5 var(--mono); }
.chip { display: inline-flex; align-items: center; padding: 2px 6px; color: #afba9e; border: 1px solid #465239; border-radius: 0; background: #151d0e; font: 8px/15px var(--mono); }
.chip.positive { color: var(--green); border-color: #627a3a; background: #1c2b10; }
.chip.warning { color: #d2bf95; border-color: #695b3d; background: #252010; }
.chip.negative { color: var(--red); border-color: #704940; background: #2c1c15; }
.blacklist-button { padding: 0; color: #92a07e; font-size: 15px; }
.blacklist-button.active { color: var(--red); }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 220px; padding: 30px; color: #b8c6a4; border: 1px dashed #455339; border-radius: 0; background: #121411; text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; color: var(--green); border: 1px solid #758c4b; border-radius: 0; background: #1a2a0d; font-size: 21px; }
.empty-state h2 { margin: 0 0 8px; font: 400 23px/1.2 var(--display); }
.empty-state p { max-width: 490px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.metric-tile { padding: 16px 18px; background: #181a17; border: 1px solid #37442b; border-top: 2px solid #7d9552; border-radius: 0; }
.metric-tile > span { color: #a8b793; font: 8px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .4px; }
.metric-tile strong { display: block; margin-top: 7px; color: #e1edce; font: 24px/1.2 var(--mono); font-weight: 400; }
.metric-tile small { color: #869873; font-size: 9px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-toolbar p { margin: 0; color: #9eac8d; font: 9px/1.7 var(--mono); }
.book-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.book-controls select { flex: 1; max-width: 420px; }
.book-summary { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.book-summary .label { color: var(--muted); font: 9px/1.5 var(--mono); }
.book-summary strong { display: block; margin-top: 3px; font: 19px/1.5 var(--mono); }
.depth-row { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid #2c3824; font: 10px/1.5 var(--mono); }
.depth-row::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--bar); background: var(--bar-color); opacity: .13; pointer-events: none; }
.depth-row span { position: relative; }
.depth-row span:last-child { text-align: right; }
.depth-head { color: #9caf85; font-size: 8px; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid #566841; }
.book-side-title { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; font: 500 19px/1.3 var(--display); }
.book-side-title span { margin-left: auto; color: var(--muted); font: 8px/1.5 var(--mono); }
.alert-item { display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 14px 0; border-bottom: 1px solid #425334; }
.alert-item .alert-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--green); background: #233319; border: 1px solid #576e3c; border-radius: 0; }
.alert-info { flex: 1; }
.alert-info strong { color: #e0eccf; font: 11px/1.5 var(--mono); font-weight: 400; }
.alert-info p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.settings-list { display: flex; flex-direction: column; gap: 16px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #344029; }
.setting-row:last-child { padding-bottom: 0; border: 0; }
.setting-row strong { color: #d3dfc1; font-size: 11px; font-weight: 450; }
.setting-row p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.setting-row input[type=checkbox] { appearance: none; flex-shrink: 0; position: relative; width: 31px; height: 18px; padding: 2px; border: 1px solid #677551; border-radius: 1px; background: #1b2413; cursor: pointer; }
.setting-row input[type=checkbox]::before { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; background: #7f8d6b; transition: left .15s; }
.setting-row input[type=checkbox]:checked { border-color: #a1ba61; background: #334322; }
.setting-row input[type=checkbox]:checked::before { left: 15px; background: var(--green); }
.arbitrage-tabs { display: flex; gap: 0; margin-bottom: 18px; border-bottom: 1px solid #4e5e3c; }
.arbitrage-tabs button { padding: 10px 16px; color: #98a885; border: 1px solid transparent; border-bottom: 0; border-radius: 0; font: 10px/1.5 var(--mono); }
.arbitrage-tabs button:hover { color: var(--green); }
.arbitrage-tabs button.active { color: #172008; background: var(--green); border-color: var(--green); }
.budget-panel { display: flex; align-items: end; gap: 13px; flex-wrap: wrap; padding: 17px; margin-bottom: 18px; background: #171917; border: 1px solid #485a34; border-radius: 0; }
.budget-panel .field { flex: 1; min-width: 95px; max-width: 150px; color: #aabf90; font-size: 10px; }
.budget-panel .field:first-child { max-width: 180px; }
.budget-panel .field input { padding: 7px 9px; font: 11px/1.5 var(--mono); background: #0b0e09; border-color: #566b3c; }
.budget-description { margin-left: auto; align-self: center; max-width: 220px; color: #90a178; font-size: 9px; line-height: 1.75; }
.check-result { padding: 17px 19px; margin-bottom: 16px; color: #bfd791; background: #172a0c; border: 1px solid #718b48; border-left: 4px solid var(--green); border-radius: 0; }
.check-result.negative { color: #e7b3a8; background: #291c12; border-color: #805644; border-left-color: var(--red); }
.check-result h3 { margin: 0 0 12px; font: 400 22px/1.3 var(--display); }
.check-result p { margin: 9px 0 0; color: #b0bf9e; font-size: 10px; line-height: 1.75; }
.check-result .result-values { display: flex; gap: 25px; flex-wrap: wrap; }
.result-values span { color: #9aaf83; font: 8px/1.5 var(--mono); }
.result-values strong { display: block; margin-top: 4px; color: #dfeec8; font: 16px/1.5 var(--mono); font-weight: 400; }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.docs-card h2 { margin: 0 0 13px; font: 400 24px/1.3 var(--display); }
.docs-card p, .docs-card li { color: #acb99a; font-size: 11px; line-height: 1.85; }
.docs-card strong { color: #d6e4c0; font-weight: 500; }
.docs-card ul, .docs-card ol { padding-left: 19px; }
.formula { padding: 11px 13px; margin: 14px 0; color: #d0c3ed; background: #151319; border: 1px solid #4d435b; border-left: 3px solid var(--purple); border-radius: 0; font: 10px/1.8 var(--mono); white-space: normal; }
.changelog-date { color: var(--green); font: 8px/1.5 var(--mono); letter-spacing: .6px; }
.changelog-list { padding: 0; list-style: none; margin: 16px 0 0; }
.changelog-list li { padding: 12px 0; color: #aab99a; border-bottom: 1px solid #34432a; font-size: 11px; line-height: 1.8; }
.changelog-list li:last-child { border: 0; }
.changelog-list strong { color: #deedc9; font-weight: 500; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 0 18px; margin-top: 21px; border-top: 1px solid #465738; color: #949d87; font: 8px/1.5 var(--mono); }
.mini-logo { margin-right: 6px; padding: 2px 4px; background: var(--green); color: #16210a; font-size: 8px; }
.footer .text-button { font-size: 8px; }
.toast-container { position: fixed; right: 26px; bottom: 24px; z-index: 300; display: flex; flex-direction: column; gap: 7px; }
.toast { max-width: 390px; padding: 13px 17px; color: #18230a; background: var(--green); border: 1px solid #e6ff9b; border-radius: 1px; font: 10px/1.7 var(--mono); box-shadow: 4px 4px 0 #050803; }
.toast.error { color: #edc2b4; background: #402719; border-color: #a47b65; }
.modal-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px; background: #020502df; z-index: 200; backdrop-filter: blur(4px); }
.chart-modal { overflow: hidden; width: min(1100px, 100%); border: 1px solid #647b46; border-radius: 1px; background: #131511; box-shadow: 0 30px 90px #0009; }
.modal-header { display: flex; align-items: center; gap: 15px; padding: 18px 22px; background: #20241a; border-bottom: 1px solid #4f6635; }
.modal-header h2 { margin: 0; color: #e2efd1; font: 500 25px/1.2 var(--display); }
.modal-header small { color: #a5b994; font: 9px/1.7 var(--mono); }
.modal-header .segment-group { margin-left: auto; }
.modal-chart { position: relative; height: min(55vh, 500px); background: #090b09; }
.modal-chart svg { width: 100%; height: 100%; }
.modal-details { display: flex; gap: 30px; flex-wrap: wrap; padding: 17px 22px; border-top: 1px solid #354d23; background: #171b13; }
.modal-details span { color: #96ad7c; font: 8px/1.5 var(--mono); }
.modal-details strong { display: block; margin-top: 5px; color: #dceccb; font: 12px/1.5 var(--mono); font-weight: 400; }
.chart-instrument-toolbar { display: flex; align-items: center; gap: 6px; }
.pagination-row { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px; color: #9aad83; font: 9px/1.5 var(--mono); }
.table-note { padding: 11px 14px; color: #93a67d; border-top: 1px solid #384b29; font: 8px/1.7 var(--mono); }
.scan-progress { color: var(--green); font: 10px/1.5 var(--mono); }
.formation-labels { display: flex; gap: 5px; flex-wrap: wrap; }
.formation-labels .chip { white-space: normal; max-width: 190px; }
.watch-count { padding: 1px 4px; color: var(--green); border: 1px solid #617f39; background: #1d2a11; border-radius: 0; font: 8px/1.5 var(--mono); }

/* The nine-plate chart atlas stays visible without a large hero. */
body[data-page=screener] .page-heading { display: none; }
body[data-page=screener] main { padding-top: 12px; }
body[data-page=screener] .market-controls { margin-bottom: 10px; }
body[data-page=screener] .workspace-bar { margin-bottom: 10px; padding: 6px 0; }
@media (min-width: 901px) {
  body[data-page=screener] .app-header { height: 68px; }
  body[data-page=screener] .status-strip { min-height: 34px; }
  body[data-page=screener] .search-field input { height: 39px; }
  body[data-page=screener] .search-field svg { top: 12px; }
  body[data-page=screener] .control { padding-top: 3px; padding-bottom: 2px; }
  body[data-page=screener] .market-controls > .outline-button { height: 39px; }
  body[data-page=screener] .chart-surface { height: clamp(107px, calc((100vh - 211px) / 3 - 66px), 190px); }
  body[data-page=screener] .chart-card-header { height: 36px; padding: 5px 9px; gap: 6px; }
  body[data-page=screener] .chart-card-footer { height: 24px; padding: 3px 9px; font-size: 8px; }
  body[data-page=screener] .chart-overlay { top: 4px; font-size: 8px; }
  body[data-page=screener] .footer { margin-top: 15px; padding-top: 14px; }
}
@media (min-width: 1600px) {
  .main-nav { gap: 9px; }
  .nav-button { font-size: 13px; padding: 7px 12px 9px; }
  body[data-page=screener] .chart-surface { height: clamp(115px, calc((100vh - 211px) / 3 - 66px), 230px); }
}
@media (max-width: 1200px) {
  .app-header { gap: 18px; padding: 0 18px; height: 72px; }
  .brand-name { font-size: 30px; }
  .brand-caption { font-size: 6px; letter-spacing: .7px; }
  .brand-mark { width: 27px; height: 37px; }
  .nav-button { font-size: 11px; padding-left: 8px; padding-right: 8px; }
  .header-settings { display: none; }
  main { padding-left: 18px; padding-right: 18px; }
  .status-strip { padding-left: 18px; padding-right: 18px; }
  .chart-grid { gap: 8px; }
  .card-timeframes { display: none; }
  .chart-card-footer { gap: 7px; }
  .volume-control { width: 135px; }
  .search-field { max-width: 250px; min-width: 150px; }
  .workspace-bar { gap: 9px; }
}
@media (max-width: 900px) {
  .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .main-nav { gap: 1px; }
  .chart-surface { height: 220px; }
  .two-column, .three-column, .docs-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .version-label { display: none; }
  .market-controls { gap: 7px; }
  .control { min-width: 110px; }
  .sort-control { min-width: 160px; }
  .search-field { max-width: none; min-width: 150px; flex-basis: 100%; }
  .footer > span:nth-child(2) { display: none; }
  .workspace-bar::before { font-size: 25px; padding-right: 10px; }
}
@media (max-width: 570px) {
  .app-header { gap: 12px; padding: 0 13px; height: 65px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 29px; }
  .brand-caption { font-size: 5px; letter-spacing: .5px; margin-top: 5px; }
  .brand-mark { height: 34px; width: 22px; }
  .brand-mark svg { width: 18px; }
  .nav-scroll { flex-basis: 20px; width: 20px; height: 27px; font-size: 21px; }
  .nav-button { font-size: 10px; }
  .status-strip { min-height: 37px; padding: 5px 13px; gap: 8px; font-size: 8px; }
  .mode-switch button { padding-left: 7px; padding-right: 7px; font-size: 8px; }
  .status-divider, .status-strip > .subtle { display: none; }
  .status-strip > .text-button { font-size: 8px; }
  main { padding: 21px 13px 0; }
  .notice, .source-errors { padding: 9px 13px; font-size: 9px; }
  .page-heading { gap: 8px; align-items: flex-start; }
  .eyebrow { font-size: 7px; }
  h1 { font-size: 31px; }
  .page-heading p { max-width: 275px; font-size: 10px; }
  .page-heading .outline-button, .page-heading .primary-button { font-size: 9px; padding: 6px 8px; }
  .market-controls { margin-bottom: 16px; }
  .control { flex: 1; min-width: 100px; padding-left: 8px; padding-right: 8px; }
  .control select { font-size: 10px; max-width: 130px; }
  .volume-control { width: auto; }
  .volume-control input { width: 100%; font-size: 10px; }
  .market-controls > .outline-button { font-size: 9px; height: 42px; }
  .chart-grid { grid-template-columns: 1fr !important; gap: 11px; }
  .chart-surface { height: 230px; }
  .chart-card-header { height: 40px; }
  .coin-name { font-size: 19px; }
  .card-timeframes { display: flex; }
  .chart-overlay { font-size: 8px; }
  .workspace-bar { gap: 9px; padding-bottom: 9px; }
  .workspace-bar::before { content: '01 /'; font-size: 23px; padding-right: 8px; border-right: 0; }
  .workspace-spacer { display: none; }
  .workspace-tabs { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .workspace-tab { padding: 5px 8px; flex: 0 0 auto; font-size: 8px; }
  .result-count { margin-left: auto; font-size: 8px; }
  .grid-choice { display: none; }
  .panel { padding: 17px; }
  .panel-title { font-size: 22px; }
  .field-grid { gap: 13px; }
  .metric-tile { padding: 12px; }
  .metric-tile strong { font-size: 19px; }
  .arbitrage-tabs button { padding: 8px 10px; font-size: 9px; }
  .budget-panel { gap: 10px; padding: 13px; }
  .budget-panel .field { flex-basis: 40%; max-width: none; }
  .budget-panel .field:first-child { max-width: none; }
  .budget-description { width: 100%; max-width: none; }
  .modal-overlay { padding: 12px; }
  .modal-header { padding: 13px; gap: 8px; }
  .modal-header h2 { font-size: 21px; }
  .modal-header small { font-size: 8px; }
  .modal-header .segment-group button { padding: 3px 6px; font-size: 8px; }
  .modal-details { padding: 13px; gap: 20px; }
  .modal-chart { height: 45vh; }
  .toast-container { bottom: 15px; left: 13px; right: 13px; }
  .toast { max-width: none; }
  .footer { font-size: 7px; }
  .book-controls { flex-wrap: wrap; }
  .book-controls select { width: 100%; flex: auto; }
  .alert-item { gap: 8px; padding: 11px 0; }
  .alert-info p { font-size: 9px; }
  .table-note { font-size: 8px; }
  .depth-row { gap: 5px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Preserve semantic quote colours inside the editorial number blocks. */
.metric-tile strong.green, .result-values strong.green { color: var(--green); }
.metric-tile strong.red, .result-values strong.red { color: var(--red); }
