/* Dinari. Dark, dense, mobile first. No web fonts: system stacks only. */
:root {
  --bg: #0a0e14;
  --panel: #111823;
  --panel-2: #172130;
  --line: #243244;
  --text: #e8eef5;
  --muted: #9fb0c3;
  --accent: #f8ac00;   /* the Dinari logo gold */
  --accent-ink: #1c1300;
  --up: #56d98a;
  --down: #ff5c5c;
  --level: #ff9f43;   /* fairly level: orange, not the brand gold */
  --warn: #ffc857;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--sans); overflow-x: hidden;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num, .pct { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }
.level { color: var(--level); }
.flat { color: var(--muted); }
.num.flat { color: inherit; }
.unit { color: var(--muted); font-size: 12px; }
.sym {
  font: 600 11px/1 var(--mono); letter-spacing: .06em; color: var(--accent);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; vertical-align: 2px;
}

/* header */
.top { border-bottom: 1px solid var(--line); background: #0c121b; }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.wordmark { font: 700 18px/1 var(--sans); letter-spacing: .32em; }
.brand-logo { height: 34px; width: auto; display: block; }
.landing-logo { margin: 0; }
.landing-logo img { width: 170px; height: auto; display: block; }
.wordmark-xl { font-size: 34px; margin-top: 14px; }
.nav { display: flex; gap: 2px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 6px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); border-radius: 6px 6px 0 0; }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account form { margin: 0; }
.hi { color: var(--muted); font-size: 13.5px; }
.member-level { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--line); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.badge { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: 5px 7px; border: 1px solid; }
.badge-live { color: var(--up); border-color: #2c6b47; }
.badge-live::before { content: "\25CF  "; }
.badge-delayed { color: var(--warn); border-color: #7a5f1f; }
.badge-delayed::before { content: "\25D4  "; }
.badge-wait { color: var(--muted); border-color: var(--line); }
.badge-wait::before { content: "\25CB  "; }
.toggles { display: flex; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.seg button {
  background: transparent; color: var(--muted); border: 0; padding: 7px 10px; min-width: 38px; min-height: 34px;
  font: 600 12px/1 var(--mono); cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.btn {
  display: inline-block; border-radius: 7px; padding: 9px 14px; font: 600 14px/1.2 var(--sans);
  text-decoration: none; cursor: pointer; border: 1px solid var(--line);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* Sign in with Bullionise: the Bullionise logo is used here only, on white as the logo is black. */
.btn-bln { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #111; border-color: #fff; padding: 10px 16px; }
.btn-bln img { height: 22px; width: auto; display: block; }
.btn-bln:hover, .btn-bln:focus-visible { background: #f1f1ee; }
.btn-quiet { background: transparent; color: var(--text); }
.btn-quiet:hover { border-color: var(--muted); }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* layout */
main { padding-top: 14px; padding-bottom: 28px; }
main > section, main > .ticker, main > .notice, main > .grid { margin-bottom: 16px; }
.section-h, .panel > h2, .chart-head h2 { font: 600 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-h { margin-bottom: 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.panel > h2 { margin-bottom: 10px; }
.grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.grid-4, .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; display: block; color: var(--text); }
.card h2, .card h3 { font: 600 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card p { overflow-wrap: anywhere; }
.card-spot { grid-column: 1 / -1; }
.big { font-size: 20px; font-weight: 600; }
.huge { font-size: 30px; font-weight: 700; line-height: 1.15; }
.link-card { text-decoration: none; }
.link-card:hover { border-color: var(--accent); }
.page-title { font-size: 22px; }
.title-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.notice { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); background: var(--panel); }
.tag { display: inline-block; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

/* exchange chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font: 500 12.5px/1 var(--sans); cursor: pointer; min-height: 30px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7a8c; }
.chip.open .dot { background: var(--up); box-shadow: 0 0 0 3px rgba(86, 217, 138, .18); }
.chip.closed .chip-state { color: var(--muted); }
.chip-name { font-weight: 700; }
.chip-detail {
  display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; width: max-content; max-width: min(280px, 86vw);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: 12.5px; line-height: 1.4; text-align: left; white-space: normal; color: var(--text);
}
.chip:hover .chip-detail, .chip:focus .chip-detail, .chip:focus-within .chip-detail { display: block; }
.chips li:nth-last-child(-n+2) .chip-detail { left: auto; right: 0; }
.empty-inline { color: var(--muted); font-size: 13px; }

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: #0c121b; margin-inline: -14px; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; }
.tick { padding: 8px 18px; font-size: 13px; white-space: nowrap; border-right: 1px solid var(--line); }
.tick-name { font: 700 11.5px/1 var(--mono); color: var(--accent); letter-spacing: .06em; margin-right: 4px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }

/* price table: two-line rows on phones, a real table from 640px */
.prices { width: 100%; border-collapse: collapse; }
.prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.prices tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.prices tbody tr:first-child { border-top: 0; }
.prices th, .prices td { padding: 0; text-align: left; font-weight: 400; min-width: 0; }
.prices th[scope="row"] { grid-column: 1 / 2; font-weight: 600; }
.prices th a { color: var(--text); text-decoration: none; }
.prices th a:hover { text-decoration: underline; }
.prices td.price { grid-column: 2 / 4; text-align: right; font-size: 16px; font-weight: 600; }
.prices td[data-label]:not(.price)::before { content: attr(data-label) " "; color: var(--muted); font-size: 11.5px; }
.prices td.sparkcell { grid-column: 1 / -1; }
.prices td.sparkcell::before { display: none; }
.prices .pct { font-size: 12.5px; }
.spark { width: 100%; height: 30px; display: block; }
.spark polyline { stroke: var(--muted); stroke-width: 1.5; }
.spark.up polyline { stroke: var(--up); }
.spark.down polyline { stroke: var(--down); }
.spark.level polyline { stroke: var(--level); }

/* heat tiles */
.heat { display: flex; flex-direction: column; gap: 4px; border-radius: 10px; padding: 12px; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.heat .pct { color: var(--text); font-size: 15px; font-weight: 600; }
.heat-name { font: 600 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.heat-up-1 { background: #123524; border-color: #1d5137; }
.heat-up-2 { background: #17502f; border-color: #23703f; }
.heat-up-3 { background: #1c6b3b; border-color: #2a8f4f; }
.heat-level { background: #3d2a12; border-color: #7a4f1c; }
.heat-down-1 { background: #3a1a1c; border-color: #5a2729; }
.heat-down-2 { background: #561f22; border-color: #7b2c30; }
.heat-down-3 { background: #74252a; border-color: #a0343a; }

/* asset cards */
.pairs, .hml { display: grid; gap: 4px; }
.pairs div, .hml div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pairs dt, .hml dt, .stats dt { color: var(--muted); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hml { margin: 8px 0; }
.hml dd { font-size: 16px; }
.hml .mid dd { font-size: 19px; font-weight: 700; }
.rangebar, .gauge { width: 100%; height: 10px; display: block; margin-top: 10px; }
.gauge { height: 8px; border-radius: 4px; }
.rangebar .track, .gauge .track { fill: var(--line); }
.rangebar .marker, .gauge .fill { fill: var(--accent); }
.rangebar-cap { display: flex; justify-content: space-between; font-size: 11px; }

/* chart */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ranges { max-width: 100%; overflow-x: auto; }
.ranges button { padding: 7px 8px; min-width: 34px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-bottom: 8px; }
.stats dd { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
.stat-cross { grid-column: 1 / -1; }
.chart-box { position: relative; height: 320px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0c121b; }
#chart { position: absolute; inset: 0; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); pointer-events: none; }
.chart-panel .small { margin-top: 8px; }

/* indicators */
.ind-list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.ind { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--panel-2); min-width: 0; }
.ind-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.ind-name { font-weight: 600; }
.check { cursor: pointer; min-height: 28px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; font-size: 13.5px; }
.levels li { display: flex; justify-content: space-between; gap: 6px; }

/* projections */
.disclaimer { border: 1px solid #7a5f1f; border-left-width: 4px; background: #1c1708; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.disclaimer p + p, .foot-disclaimer p + p { margin-top: 6px; }
.disclaimer-title { font-weight: 700; color: var(--warn); }
.locked { text-align: center; padding: 26px 14px; display: grid; gap: 10px; justify-items: center; }
.proj .basis { margin: 8px 0; font-size: 13.5px; }
.proj .btn { margin-top: 10px; }
.how p + p { margin-top: 8px; }

/* landing and messages */
.landing { max-width: 520px; margin: 8vh auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.lede { font-size: 17px; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 12.5px; }
.foot-disclaimer { margin-bottom: 12px; max-width: 900px; }
.foot-disclaimer .disclaimer-title { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.foot a { color: var(--text); }

@media (min-width: 640px) {
  .wrap { padding: 0 20px; }
  .ticker { margin-inline: 0; border: 1px solid var(--line); border-radius: 8px; }
  .nav { order: 0; width: auto; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-spot { grid-column: span 2; }
  .ind-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat-cross { grid-column: auto; }
  .chart-box { height: 420px; }
  .prices thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group; }
  .prices tr { display: table-row; }
  .prices th, .prices td { display: table-cell; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
  .prices thead th { border-top: 0; color: var(--muted); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .prices .r { text-align: right; }
  .prices td.price { font-size: 15px; }
  .prices td[data-label]:not(.price)::before { content: none; }
  .prices td.sparkcell { width: 150px; }
  .prices .pct { font-size: 13.5px; }
}
@media (min-width: 980px) {
  .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ind-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-box { height: 480px; }
}

/* ---- forecast pages (v4) ---- */
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 14px; }
.tabs a { padding: 9px 18px; min-height: 38px; color: var(--muted); text-decoration: none; font: 600 13.5px/1.4 var(--sans); }
.tabs a + a { border-left: 1px solid var(--line); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.section-head .section-h { margin-bottom: 0; }
.panel-h { font: 600 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.chart-head .panel-h { margin-bottom: 0; }
.card-wide { grid-column: 1 / -1; }
.card-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-weight: 600; }
.link-card h3 a { color: inherit; text-decoration: none; }
.link-card h3 a:hover { color: var(--text); text-decoration: underline; }
.pos { font-weight: 600; white-space: nowrap; }
.stats-wait { margin-top: 8px; }
.projections > .panel { margin-bottom: 12px; }
.grid-2 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.levels-1 { grid-template-columns: minmax(0, 1fr); }
.levels-1 li { padding: 5px 0; border-top: 1px solid var(--line); }
.levels-1 li:first-child { border-top: 0; }

/* projections and averages tables: stacked cards on phones, tables from 640px */
.ftable { width: 100%; border-collapse: collapse; }
.ftable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ftable tbody { display: block; }
.ftable tbody + tbody { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.ftable tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.ftable th, .ftable td { padding: 0; text-align: left; font-weight: 400; min-width: 0; }
.ftable th[scope="row"] { grid-column: 1 / -1; font-weight: 700; font-size: 16px; }
.ftable td[data-label] { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ftable td[data-label]::before { content: attr(data-label); color: var(--muted); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ftable td.mid .num { font-weight: 700; }
.ftable tr.more { display: block; margin-top: 6px; }
.ftable tr.more td { display: block; }
.ftable-3 tbody tr { padding: 8px 0; border-top: 1px solid var(--line); }
.ftable-3 tbody tr:first-child { border-top: 0; }
.ftable-3 th[scope="row"] { font-size: 14px; }
details summary { cursor: pointer; color: var(--accent); font-size: 13px; padding: 4px 0; min-height: 28px; }
details .basis { margin: 6px 0; font-size: 13.5px; }
details .tag { margin-top: 6px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--accent); }
.key-dash { border-top: 1px dashed var(--text); }
.key-proj { border-top: 2px solid var(--text); }
.key-bar { width: 0; height: 14px; border-top: 0; border-left: 2px solid var(--muted); }
#fchart { position: absolute; inset: 0; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftable thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group; }
  .ftable tbody { display: table-row-group; }
  .ftable tbody + tbody { margin: 0; padding: 0; border-top: 0; }
  .ftable tr { display: table-row; }
  .ftable th, .ftable td, .ftable td[data-label] { display: table-cell; padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
  .ftable thead th { border-top: 0; color: var(--muted); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .ftable th[scope="row"] { font-size: 14px; }
  .ftable .r { text-align: right; }
  .ftable td[data-label]::before { content: none; }
  .ftable tr.more { display: table-row; }
  .ftable tr.more td { display: table-cell; border-top: 0; padding-top: 0; }
  .ftable-3 tbody tr { padding: 0; }
}

/* ---- sentiment: 30-day trend chip. The key under the history line is neutral: the line itself
   is green, red or orange by the direction of the range shown. ---- */
.trend { display: inline-block; font: 600 11.5px/1.3 var(--sans); border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; white-space: nowrap; vertical-align: 1px; }
.title-row { flex-wrap: wrap; }
.key-solid { border-top-color: var(--muted); }

/* ---- v5: tab strip, live status, flashes, estimates, insights ---- */
.tabs { display: flex; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; overflow: visible; margin: 0 0 16px; width: 100%; }
.tabs a { flex: 1 1 0; text-align: center; padding: 11px 8px; min-height: 44px; color: var(--muted); font: 500 14.5px/1.4 var(--sans);
  border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs a + a { border-left: 0; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: transparent; color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.title-row { margin-bottom: 6px; }

.badge-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 7px; animation: pulse 1.6s ease-in-out infinite; }
.badge-retry { color: var(--level); border-color: #7a4f1c; }
.badge-retry::before { content: "\21BB  "; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.flash-up, .flash-down, .flash-level { border-radius: 3px; animation: flash .8s ease-out; }
.flash-up { --flash: rgba(86, 217, 138, .38); }
.flash-down { --flash: rgba(255, 92, 92, .38); }
.flash-level { --flash: rgba(255, 159, 67, .38); }
@keyframes flash { from { background-color: var(--flash); box-shadow: 0 0 0 3px var(--flash); } to { background-color: transparent; box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .flash-up, .flash-down, .flash-level, .badge-live::before { animation: none; }
}

.chart-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.style-note { margin-top: 8px; }
.chart-box-sm { height: 220px; margin-top: 12px; }
#poschart, #epchart { position: absolute; inset: 0; }
.ind-lede { margin: -4px 0 10px; }
.card-links a.quiet { color: var(--muted); font-weight: 500; }

/* Estimates and simulations: never styled as a fact card. Dashed outline, a tag on every block. */
.est { border: 1px dashed #3b4b61; border-radius: 10px; padding: 14px; margin-bottom: 12px; background: transparent; }
.est-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.est-head h3 { font: 700 16px/1.3 var(--sans); }
.tag-est, .tag-sim { font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; }
.tag-est { color: #d7c4ff; border-color: #6d55a8; }
.tag-sim { color: #a9d4ff; border-color: #3a6fa3; }
.est-lede { margin-bottom: 10px; }
.now-line { margin-bottom: 12px; font-size: 16px; }
.ourview { font-size: 13.5px; padding: 2px 0 6px; }
.chance-h { margin-top: 14px; }
.parts { display: grid; gap: 6px; margin-top: 8px; }
.parts li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 6px; }
.swingbar { width: 100%; height: 16px; display: block; margin-top: 10px; }
.swingbar .z { fill: #22303f; }
.swingbar .z-low.on { fill: #3a6fa3; }
.swingbar .z-mid.on { fill: #6b7a8c; }
.swingbar .z-high.on { fill: #6d55a8; }
.swingbar .marker { fill: var(--text); }
.key-band { height: 10px; border-top: 0; background: #1e3d5c; outline: 3px solid #15283e; }
.est .chart-controls { margin-bottom: 10px; }

/* insights */
.summary-line { margin-bottom: 6px; }
.rel { white-space: nowrap; }
.corr { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.corrbar { width: 90px; height: 10px; flex: none; }
.corrbar .track { fill: var(--line); }
.corrbar .fill { fill: #6cb6ff; }
.corrbar .centre { fill: var(--muted); }
.gauge.neutral .fill { fill: #6cb6ff; }
.after { margin-top: 12px; }
.after-h { font: 600 14.5px/1.4 var(--sans); margin-bottom: 4px; }
.ftable-drivers tbody tr, .ftable-ep tbody tr, .ftable-after tbody tr, .ftable-chance tbody tr { padding: 8px 0; border-top: 1px solid var(--line); }
.ftable-drivers th[scope="row"], .ftable-ep th[scope="row"], .ftable-after th[scope="row"], .ftable-chance th[scope="row"] { font-size: 14.5px; }
@media (min-width: 640px) {
  .tabs { width: auto; display: flex; }
  .tabs a { flex: 0 0 auto; padding: 11px 22px; }
  .ftable-drivers tbody tr, .ftable-ep tbody tr, .ftable-after tbody tr, .ftable-chance tbody tr { padding: 0; }
}

/* exchange inventory */
.inv-cards { margin: 12px 0; }
.splitbar { width: 100%; height: 14px; display: block; border-radius: 4px; }
.splitbar .elig { fill: #33475f; }
.splitbar .reg { fill: #6cb6ff; }
.facts { display: grid; gap: 4px; margin: 10px 0; }
#invchart { position: absolute; inset: 0; }
.key-reg { height: 10px; border-top: 0; background: #27598c; }
.key-elig { height: 10px; border-top: 0; background: #33475f; }

/* outlook, back-test */
.outlook-head { margin-bottom: 8px; }
.points { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.simline { padding: 2px 0; }
.backtest { margin-top: 12px; border-top: 1px dashed #3b4b61; padding-top: 10px; }
.backtest h4 { font: 700 14.5px/1.3 var(--sans); margin: 0; }
.tag-bt { font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; color: #b9c7d6; border-color: #55687f; }
.chips-bt { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chips-bt li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }

/* phones: wide tables stack one figure per line */
.ftable-drivers tr, .ftable-after tr, .ftable-ep tr, .ftable-sim tr, .ftable-chance tr { grid-template-columns: minmax(0, 1fr); }

/* ---- v7: the Forecast tab made simple. Tone colours do the work: green up / good,
   orange not doing much, red down. Always with an icon or sign as well. ---- */
.action { border: 1px solid var(--line); border-left: 6px solid var(--level); border-radius: 12px; padding: 18px 18px 16px; margin: 4px 0 18px; display: grid; gap: 10px; }
.action.tone-up { border-left-color: var(--up); background: rgba(86, 217, 138, .09); }
.action.tone-level { border-left-color: var(--level); background: rgba(255, 159, 67, .09); }
.action.tone-down { border-left-color: var(--down); background: rgba(255, 92, 92, .09); }
.action-label { font: 800 28px/1.15 var(--sans); }
.tone-up .action-label, .tone-up .action-icon { color: var(--up); }
.tone-level .action-label, .tone-level .action-icon { color: var(--level); }
.tone-down .action-label, .tone-down .action-icon { color: var(--down); }
.action-sentence { font-size: 17px; }
.action-if { font-weight: 600; font-size: 13.5px; }
.how summary { font-size: 13px; }

.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; min-width: 0; }
.tile-h { font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile-v { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.tile-v.now-line { margin: 0; font-size: 19px; }
.tile-text { font-size: 15px; }

.est { margin-bottom: 18px; padding: 16px; }
.amount-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.inp { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; font: 600 15px/1.2 var(--mono); width: 130px; max-width: 100%; min-height: 40px; }
.inp:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ftable-cmp tr { grid-template-columns: minmax(0, 1fr); }
.ftable-cmp tbody tr { padding: 10px 0; border-top: 1px solid var(--line); }
.cmpbar { width: 100%; min-width: 110px; height: 14px; display: block; }
.cmpbar .track { fill: var(--line); }
.cmpbar .span { fill: var(--muted); }
.cmpbar .centre { fill: var(--text); }
.cmpbar .fill.up { fill: var(--up); }
.cmpbar .fill.down { fill: var(--down); }
.cmpbar .fill.level, .cmpbar .fill.flat { fill: var(--level); }
.ftable-cmp td[data-label="Against today"] { display: block; }
.ftable-cmp td[data-label="Against today"]::before { display: block; margin-bottom: 4px; }

.dipgrid { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.dip { border-radius: 10px; padding: 12px; border: 1px solid #5a2729; display: grid; gap: 4px; }
.dip-1 { background: rgba(255, 92, 92, .07); }
.dip-2 { background: rgba(255, 92, 92, .13); }
.dip-3 { background: rgba(255, 92, 92, .2); }
.dip-h { color: var(--down); font-weight: 700; }
.dip-v { font-size: 22px; font-weight: 700; }
.tools-h { margin-top: 16px; }
.stages { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); margin: 0 0 10px; padding: 0; list-style: none; counter-reset: stage; }
.stages li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.stage-share { font: 800 20px/1.2 var(--sans); color: var(--up); }
.stage-when { font-weight: 600; }
.tag-calc { font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; color: #b9c7d6; border-color: #55687f; }
.dca-form { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.dca-form label { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.dca-form .inp { width: 100%; }
.dca-mode { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.dca-mode label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); min-height: 32px; }
.dca-mode input { accent-color: var(--accent); width: 18px; height: 18px; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; justify-self: start; }
.dca-out { margin-top: 14px; border-top: 1px dashed #3b4b61; padding-top: 12px; display: grid; gap: 10px; }
.dca-sentence { font-size: 16px; font-weight: 600; }
.dca-sentence.up { color: var(--up); }
.dca-sentence.down { color: var(--down); }
.dca-sentence.level { color: var(--level); }
.dca-pairs dd { font-family: var(--mono); }
.more-h { margin: 22px 0 10px; }
details.est > summary { cursor: pointer; list-style: revert; color: var(--text); margin-bottom: 0; min-height: 36px; }
details.est[open] > summary { margin-bottom: 12px; }
details.est > summary h3 { display: inline; }
@media (min-width: 640px) {
  .strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dipgrid, .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dca-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dca-mode { grid-column: 1 / -1; }
  .ftable-cmp tbody tr { padding: 0; }
  .ftable-cmp td[data-label="Against today"] { display: table-cell; }
  .action-label { font-size: 34px; }
}
details.est > summary::-webkit-details-marker { display: none; }
details.est > summary::after { content: "Show \25BE"; margin-left: auto; color: var(--accent); font: 600 12.5px/1 var(--sans); }
details.est[open] > summary::after { content: "Hide \25B4"; }

/* ---- v8: summary table, prediction cards, months ---- */
.spec { margin: 0 0 16px; }
.spec dl { display: grid; grid-template-columns: minmax(0, 1fr); }
.spec dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 14px; }
.spec dd { font-weight: 600; text-align: right; }
.spec .now-line { font-size: 18px; margin: 0; }
.help { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1px solid var(--line); border-radius: 50%; font: 600 11px/1 var(--sans); color: var(--muted); cursor: help; }
.pcards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scroll-snap-type: x proximity; }
.pcard { flex: 0 0 150px; scroll-snap-align: start; display: grid; gap: 4px; align-content: start; border: 1px dashed #3b4b61; border-top: 4px solid var(--level); border-radius: 10px; padding: 12px; text-decoration: none; color: var(--text); min-height: 122px; }
.pcard.up { border-top-color: var(--up); background: rgba(86, 217, 138, .07); }
.pcard.down { border-top-color: var(--down); background: rgba(255, 92, 92, .07); }
.pcard.level, .pcard.flat { border-top-color: var(--level); background: rgba(255, 159, 67, .07); }
.pcard-h { font: 600 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pcard-v { font-size: 17px; font-weight: 700; }
.pcard .tag { justify-self: start; }
.ftable-days tr { grid-template-columns: minmax(0, 1fr); }
.ftable-days tbody tr { padding: 8px 0; border-top: 1px solid var(--line); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: 8px 0; }
.month { display: grid; gap: 2px; justify-items: center; text-align: center; min-width: 0; }
.month svg { width: 100%; height: 64px; display: block; }
.month svg rect { fill: #3a6fa3; }
.month.top svg rect { fill: #6cb6ff; }
.month svg rect.zero { fill: var(--line); }
.month svg rect.up { fill: var(--up); }
.month svg rect.down { fill: var(--down); }
.month svg rect.level, .month svg rect.flat { fill: var(--level); }
.month-v { font-size: 10.5px; }
.month-v .pct { font-size: 10.5px; white-space: normal; }
.month-l { font-size: 10.5px; color: var(--muted); overflow: hidden; max-width: 100%; white-space: nowrap; }
.month-n { display: none; font-size: 10.5px; }
.month:hover .month-n, .month:focus .month-n { display: block; }
.months-season { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 12px; }
.pairbar { width: 100%; height: 22px; display: block; margin-top: 8px; }
.pairbar .now { fill: var(--down); }
.pairbar .past { fill: #6b7a8c; }
.fall { display: grid; gap: 2px; }
@media (min-width: 640px) {
  .spec dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .pcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .pcard { flex: none; }
  .months-season { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .month-v, .month-v .pct, .month-l { font-size: 11.5px; }
  .ftable-days tbody tr { padding: 0; }
}

/* ================= v9: header, menu and overall polish =================
   One accent (the brand gold) for brand and active states only; sentiment colours for data only.
   8px spacing scale. Tabular numerals everywhere a figure can change, so live updates never shift layout. */
:root { --stick: 104px; --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -16px rgba(0, 0, 0, .6); --info: #6cb6ff; }
body { font-size: 16px; }
.num, .pct, .pos, .tile-v, .huge, .big, .title-price, .nav-live { font-variant-numeric: tabular-nums; }

/* pre-release strip */
.banner { background: repeating-linear-gradient(135deg, #f8ac00 0 14px, #e39b00 14px 28px); color: #1a1200; font: 600 13px/1.35 var(--sans); padding: 6px 0; }
.banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pill-pre { display: inline-block; background: #14100a; color: #f8ac00; font: 800 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border-radius: 4px; padding: 5px 8px; white-space: nowrap; }
.pill-pre-sm { display: none; border: 1px solid #f8ac00; background: transparent; font-size: 10px; padding: 4px 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 20, 30, .97), rgba(10, 14, 20, .93)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top-row { flex-wrap: wrap; gap: 0 12px; padding-top: 0; padding-bottom: 0; }
.brand { height: 56px; padding: 0 4px 0 0; }
.brand-logo { height: 38px; width: auto; }
.account { height: 56px; gap: 8px; }
.account .toggles { display: flex; gap: 4px; }
.account .seg button { padding: 6px 7px; min-width: 30px; min-height: 32px; font-size: 11.5px; }
.hi { display: none; white-space: nowrap; }
.btn-out { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
.nav { order: 3; width: 100%; height: 48px; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.nav a.nav-item { display: inline-flex; flex-direction: column; justify-content: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line);
  border-radius: 999px; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; flex: none; }
.nav a.nav-item:hover { color: var(--text); border-color: #3b4b61; }
.nav a.nav-item[aria-current="page"] { background: var(--panel-2); color: var(--text); font-weight: 700; border-color: var(--accent); border-radius: 999px; box-shadow: inset 0 -3px 0 var(--accent); }
.nav-name { display: inline-flex; align-items: center; gap: 7px; }
.nav-live { display: none; font-size: 11px; font-weight: 500; }
.nav-live .pct { font-size: 11px; }
.nav-name .dot, .page-title .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-xau { background: #f8ac00; } .dot-xag { background: #c9ced6; } .dot-xpt { background: #9fb4c7; } .dot-btc { background: #f7931a; }

/* sub-bar: live status and exchange chips */
.subbar { border-bottom: 1px solid var(--line); background: #0c121b; }
.subbar .bar { border-top: 0; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.subbar .chips { gap: 6px; }
.subbar .chip { padding: 4px 9px; min-height: 28px; font-size: 12px; }

/* asset heading and the tab strip under it */
.title-row { align-items: center; gap: 6px 16px; margin: 4px 0 8px; }
.page-title { font-size: 28px; line-height: 1.15; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-title .dot { width: 14px; height: 14px; }
.title-price { font: 700 26px/1.15 var(--mono); display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.title-price .pct { font-size: 15px; }
.title-unit .unit { font-size: 12px; font-weight: 500; }
.tabs { position: sticky; top: var(--stick); z-index: 20; background: var(--bg); }

/* cards, sections, tables */
main { padding-top: 16px; padding-bottom: 40px; }
main > section, main > .ticker, main > .notice, main > .grid { margin-bottom: 24px; }
.grid { gap: 12px; }
.card, .panel { padding: 16px; border-color: #1f2b3a; box-shadow: var(--shadow); }
.section-h, .panel > h2, .chart-head h2 { display: flex; align-items: center; gap: 10px; }
.section-h::before, .panel > h2::before, .chart-head h2::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; flex: none; }
.section-h { margin-bottom: 12px; }
.prices tbody tr:nth-child(even), .ftable tbody tr:nth-child(even) { background: rgba(255, 255, 255, .018); }
.rangebar .marker, .gauge .fill { fill: var(--info); }          /* data, not brand */
.tag-fill { font: 700 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; color: #b9c7d6; border-style: dashed; }
.key-ring { width: 10px; height: 10px; border: 2px solid var(--text); border-radius: 50%; border-top: 2px solid var(--text); }
.action-mode { margin-top: -4px; }

/* footer */
.foot { padding: 24px 0 40px; }
.foot-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.foot-links { display: grid; gap: 6px; align-content: start; }

@media (min-width: 640px) {
  .pill-pre-sm { display: inline-block; }
  .hi { display: inline; }
  .foot-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
  .page-title { font-size: 34px; }
  .title-price { font-size: 30px; }
}
@media (min-width: 1080px) {
  :root { --stick: 72px; }
  .top-row { flex-wrap: nowrap; height: 72px; gap: 0 16px; }
  .brand, .account { height: 72px; }
  .brand-logo { height: 46px; }
  .nav { order: 0; width: auto; flex: 1 1 auto; height: 72px; padding: 0; justify-content: center; }
  .nav a.nav-item { min-height: 48px; padding: 5px 14px; border-radius: 14px; }
  .nav a.nav-item[aria-current="page"] { border-radius: 14px; }
  .nav-live { display: inline-flex; gap: 6px; align-items: baseline; }
}

/* ---- stats bar: a row of compact tiles under the tab strip ---- */
.statbar { position: relative; margin: 0 0 20px; }
.statbar-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.stat { flex: 0 0 188px; scroll-snap-align: start; min-height: 112px; display: grid; align-content: start; gap: 4px; background: var(--panel); border: 1px solid #1f2b3a; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); min-width: 0; }
.stat-h { display: flex; align-items: center; gap: 6px; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-h .sym { font-size: 9.5px; padding: 2px 4px; }
.stat-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-v { font: 700 20px/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-spark { width: 56px; height: 26px; flex: none; }
.stat-chg, .stat-sub { font-size: 12.5px; }
.stat-chg .pct { border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; font-size: 11.5px; }
.stat-gauge { display: flex; align-items: center; gap: 8px; }
.stat-gauge svg { width: 96px; height: 54px; flex: none; }
.g-arc { fill: none; stroke-width: 7; }
.g-arc.down { stroke: var(--down); } .g-arc.level { stroke: var(--level); } .g-arc.up { stroke: var(--up); }
.g-dot { fill: var(--text); stroke: var(--bg); stroke-width: 2; }
.g-num { fill: var(--text); font: 700 17px var(--mono); }
.stat-zone { font-weight: 700; font-size: 13px; line-height: 1.2; }
.moverbar { width: 100%; height: 6px; display: block; border-radius: 3px; }
.moverbar .rise { fill: var(--up); } .moverbar .fall { fill: var(--down); }
.movers summary { display: grid; gap: 2px; cursor: pointer; font-size: 12.5px; color: var(--text); list-style: none; padding: 0; min-height: 0; }
.movers summary::-webkit-details-marker { display: none; }
.movers ul { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; display: grid; gap: 2px; font-size: 12.5px; }
.movers li, .movers summary span { display: flex; justify-content: space-between; gap: 8px; }
.stat:hover .movers:not([open]) ul { display: grid; }
.help { position: relative; }
.help[data-help]:focus::after, .help[data-help]:hover::after { content: attr(data-help); position: absolute; left: 0; top: 22px; z-index: 40; width: 220px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 400 12.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; white-space: normal; box-shadow: var(--shadow); }
.statbar-more { position: absolute; right: -6px; top: 34px; width: 34px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: none; }
@media (min-width: 900px) {
  .statbar.over::after { content: ""; position: absolute; right: 0; top: 0; bottom: 6px; width: 72px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg)); }
  .statbar-more:not([hidden]) { display: block; z-index: 2; }
}
/* calculator labels: keep "per oz" on the line */
.dca-form label { display: block; }
.dca-form label .inp { display: block; margin-top: 4px; }
.dca-mode label { display: inline-flex; }

/* ---- v9 fixes: header fit, gauge tile, a compact first screen on the Forecast tab ---- */
.gauge-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gauge-wrap svg { width: 92px; height: 52px; flex: none; }
.top-row { gap: 0 8px; }
.brand-logo { height: 34px; }
.account { gap: 6px; margin-left: auto; }
.account .seg button { padding: 6px 4px; min-width: 28px; font-size: 11px; }
.btn-out { padding: 6px 8px; font-size: 12px; }
.section-h .est-lede { font: 400 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0; }
.action { padding: 14px 16px; gap: 8px 24px; }
.action-main, .action-why { display: grid; gap: 6px; align-content: start; min-width: 0; }
.action-label { font-size: 26px; }
.action-sentence { font-size: 16px; }
.disclaimer { padding: 10px 14px; font-size: 14px; }
@media (min-width: 640px) {
  .brand-logo { height: 38px; }
  .account .seg button { padding: 6px 7px; min-width: 30px; font-size: 11.5px; }
  .btn-out { padding: 7px 10px; font-size: 13px; }
}
@media (min-width: 900px) {
  .action { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .action-label { font-size: 30px; }
  .spec dl > div { padding: 6px 2px; }
}
@media (min-width: 1080px) {
  .top .wrap { max-width: 1400px; }
  .brand-logo { height: 46px; }
  .nav { justify-content: flex-start; overflow-x: auto; padding-left: 8px; }
  .nav a.nav-item { padding: 5px 12px; }
  .nav-live { display: none; }
}
@media (min-width: 1360px) {
  .nav { justify-content: center; }
  .nav-live { display: inline-flex; gap: 6px; align-items: baseline; }
}

/* ---- Prediction by time frame: one easy row per time frame; month by month ---- */
.trows { display: grid; gap: 8px; margin-bottom: 14px; }
.trow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--level); border-radius: 10px; padding: 12px; scroll-margin-top: calc(var(--stick) + 60px); }
.trow.up { border-left-color: var(--up); } .trow.down { border-left-color: var(--down); } .trow.level, .trow.flat { border-left-color: var(--level); }
.ticon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; grid-row: span 2; align-self: start; }
.ticon.up { background: rgba(86, 217, 138, .16); color: var(--up); }
.ticon.down { background: rgba(255, 92, 92, .16); color: var(--down); }
.ticon.level, .ticon.flat { background: rgba(255, 159, 67, .16); color: var(--level); }
.trow-label { font-weight: 700; font-size: 16px; }
.trow-price { font: 700 24px/1.15 var(--mono); grid-column: 2; }
.trow-chg, .trow-range, .trow-chance, .trow-worth { grid-column: 1 / -1; }
.trow-pct { font-size: 18px; font-weight: 700; }
.chance { width: 100%; height: 6px; display: block; border-radius: 3px; margin-bottom: 4px; }
.chance .track { fill: var(--line); } .chance .fill { fill: var(--info); }
.trow-worth { border-top: 1px dashed #2a3a4d; padding-top: 6px; }
.mchips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.mchip { display: grid; gap: 1px; border: 1px solid var(--line); border-top: 3px solid var(--level); border-radius: 8px; padding: 8px; min-width: 0; }
.mchip.up { border-top-color: var(--up); } .mchip.down { border-top-color: var(--down); }
.mchip-l { font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mchip-v { font: 700 14.5px/1.2 var(--mono); overflow-wrap: anywhere; }
.mchip-s .pct { font-size: 12.5px; }
.mchip-c, .mchip-c .pct { font-size: 11px; }
#pathchart { position: absolute; inset: 0; }
@media (min-width: 900px) {
  .trow { grid-template-columns: 44px minmax(120px, 1.1fr) minmax(120px, 1fr) minmax(130px, 1fr) minmax(150px, 1.3fr) minmax(130px, 1fr); }
  .ticon { grid-row: auto; align-self: center; }
  .trow-price, .trow-chg, .trow-range, .trow-chance { grid-column: auto; }
  .trow-worth { grid-column: 2 / -1; }
  .mchips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---- forecast chart controls, record of past predictions ---- */
.chart-controls-f { gap: 8px 16px; margin-bottom: 12px; }
.ctl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ctl-l { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chart-caption { margin-top: 8px; font-size: 14px; }
.key-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--text); }
.record { background: var(--panel); border: 1px solid #1f2b3a; border-radius: 10px; padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.tag-rec { font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; color: var(--text); border-color: #55687f; }
.score-row { display: grid; gap: 8px; margin-top: 8px; }
.score { box-shadow: none; border-top: 3px solid var(--line); }
.score h4 { font: 600 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.score-v { font: 800 26px/1.1 var(--mono); }
.score.up { border-top-color: var(--up); } .score.up .score-v { color: var(--up); }
.score.level { border-top-color: var(--level); } .score.level .score-v { color: var(--level); }
.score.down { border-top-color: var(--down); } .score.down .score-v { color: var(--down); }
.score-ring { display: flex; align-items: center; gap: 10px; }
.score-ring svg { width: 52px; height: 52px; flex: none; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 5; }
.ring-fill { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.score.up .ring-fill { stroke: var(--up); } .score.level .ring-fill { stroke: var(--level); } .score.down .ring-fill { stroke: var(--down); }
.run { box-shadow: none; display: grid; gap: 6px; }
.chip-run { display: inline-block; border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 600; }
.past summary { cursor: pointer; color: var(--accent); min-height: 36px; }
.ftable-past tr { grid-template-columns: minmax(0, 1fr); }
.ftable-past tbody tr { padding: 8px 0; border-top: 1px solid var(--line); }
#trackchart { position: absolute; inset: 0; }
@media (min-width: 640px) { .ftable-past tbody tr { padding: 0; } }

/* ---- "on this page" row, back to top ---- */
.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; margin: 0 0 12px; scrollbar-width: none; background: var(--bg); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 12px; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; white-space: nowrap; }
.subnav a:hover { color: var(--text); border-color: #3b4b61; }
.subnav a[aria-current="true"] { color: var(--text); border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); font-weight: 600; }
.est, .record, .action { scroll-margin-top: calc(var(--stick) + 110px); }
.to-top { position: fixed; right: 14px; bottom: 16px; z-index: 25; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 18px; cursor: pointer; box-shadow: var(--shadow); }
.to-top:hover { border-color: var(--accent); }
@media (min-width: 900px) {
  .subnav { position: sticky; top: calc(var(--stick) + 47px); z-index: 15; border-bottom: 1px solid var(--line); }
}

/* sweep fixes */
.statbar { margin-top: 12px; }
.stat.stat-gauge { flex-basis: 216px; }
.gauge-wrap svg { width: 84px; height: 48px; }
.stat-zone { min-width: 0; overflow-wrap: anywhere; }
.stat-h { min-width: 0; }
.stat-h > span:not(.help):not(.sym) { overflow-wrap: anywhere; }
.section-h { flex-wrap: wrap; }
.section-h .lede-note { font: 400 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0; flex-basis: 100%; }
@media (min-width: 900px) { .section-h .lede-note { flex-basis: auto; } }

/* ---- v10: phone fixes for the stats bar, and the gold-silver ratio ---- */
.gauge-wrap { flex-direction: column; align-items: flex-start; gap: 2px; }
.gauge-wrap svg { width: 96px; height: 54px; }
.stat-zone { white-space: nowrap; overflow-wrap: normal; font-size: 13.5px; border: 1px solid currentColor; border-radius: 999px; padding: 1px 9px; }
.stat.stat-gauge { flex-basis: 188px; }
.stat-h > span:not(.help):not(.sym) { overflow-wrap: normal; }
.help[data-help]:focus::after, .help[data-help]:hover::after { max-width: min(220px, 60vw); }
@media (max-width: 639px) {
  .statbar-row { gap: 8px; scroll-snap-type: x mandatory; scroll-padding-left: 0; }
  .stat, .stat.stat-gauge { flex: 0 0 calc(50% - 4px); min-height: 118px; padding: 10px; }
  .stat-h { font-size: 10px; letter-spacing: .06em; }
  .stat-v { font-size: 18px; }
  .stat-main { flex-wrap: wrap; }
  .stat-spark { width: 48px; }
  .gauge-wrap svg { width: 88px; height: 50px; }
  .stat-zone { font-size: 12.5px; }
  .stat:nth-child(odd):last-child { flex-basis: 100%; }
}
.gsr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.gsr-zone { font: 700 12px/1.3 var(--sans); border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.gsr-zone.gsr-high { color: #c7d0dc; } .gsr-zone.gsr-low { color: var(--accent); } .gsr-zone.gsr-middle { color: var(--level); }
.gsr-now { margin: 8px 0 4px; }
.gsr-big { font: 700 34px/1.1 var(--mono); }
.gsr-scale { margin: 12px 0 4px; display: grid; gap: 4px; }
.gsr-scale-bar { width: 100%; height: 16px; display: block; }
.gsr-scale-bar .s-lo { fill: var(--accent); opacity: .55; } .gsr-scale-bar .s-mid { fill: var(--line); } .gsr-scale-bar .s-hi { fill: #c7d0dc; opacity: .7; }
.gsr-scale-bar .s-dot { fill: var(--text); }
.gsr-scale-ends { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); }
.gsr-tiles { margin-top: 12px; }
.gsr-chart { width: 100%; height: 170px; display: block; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.gsr-line { stroke: var(--info, #6cb6ff); stroke-width: 1.8; }
.gsr-mid { stroke: var(--text); stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.gsr-year { stroke: var(--line); stroke-width: 1; }
.gsr-band-hi { fill: #c7d0dc; opacity: .10; } .gsr-band-lo { fill: var(--accent); opacity: .10; }
.gsr-years { display: flex; justify-content: space-around; margin-top: 4px; }
.gsr-key-hi, .gsr-key-lo { height: 10px; border-top: 0; border-radius: 2px; }
.gsr-key-hi { background: rgba(199, 208, 220, .35); } .gsr-key-lo { background: rgba(240, 180, 41, .35); }
.gsr-cards { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (min-width: 760px) { .gsr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gsr-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; background: var(--panel-2); min-width: 0; }
.gsr-card.is-now { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.gsr-card-h { font-weight: 700; font-size: 15.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gsr-card .points { margin: 0; }
.gsr-tone-silver .gsr-card-h { color: #dfe6ee; } .gsr-tone-gold .gsr-card-h { color: var(--accent); }
.tag-now { background: var(--accent); color: #14100a; border-color: var(--accent); }
.gsr-swap-v { font: 700 22px/1.2 var(--mono); }
.gsr-headline { margin-bottom: 6px; }
.gsr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .gsr-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gsr-tiles .tile-v .small { display: block; }
.stat.stat-gauge { display: grid; align-items: start; align-content: start; gap: 4px; }
.stat-gauge .gauge-wrap { align-items: center; justify-self: center; max-width: 100%; }
.stat-zone { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ---- v11: the ETF tab ---- */
.tabs a { white-space: nowrap; }
@media (max-width: 479px) { .tabs a { padding-left: 6px; padding-right: 6px; font-size: 14.5px; } }
.vs { display: grid; gap: 0; margin-top: 8px; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.vs-4 .vs-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(0, .8fr); align-items: start; }
.vs-head { border-top: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.vs-head span:not(:first-child), .vs-cell { text-align: right; }
.vs-label { font-size: 14px; }
.vs-cell { font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; padding: 4px 6px; border: 1px solid transparent; border-radius: 8px; }
.vs-cell.vs-ahead { border-color: var(--line); background: var(--panel-2); }
.vs-who { font-weight: 700; }
.pair-a { stroke: var(--accent); stroke-width: 2; } .pair-b { stroke: var(--info, #6cb6ff); stroke-width: 1.8; }
.pair-key-a { border-top-color: var(--accent); } .pair-key-b { border-top-color: var(--info, #6cb6ff); }
@media (min-width: 760px) { .gsr-cards.gsr-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.action-kicker { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
#etf-verdict .action-sentence { font-size: 18px; font-weight: 600; }
.vs-4 .vs-cell { font-size: 13px; padding: 4px 4px; }
.vs-4 .vs-cell .pct { font-size: 12.5px; white-space: nowrap; }
.vs-cell .pct { white-space: nowrap; }

/* ---- v12: gains, fund against metal ---- */
.gain-cards { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
@media (min-width: 760px) { .gain-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gain-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gain-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel-2); display: grid; gap: 8px; min-width: 0; }
.gain-h { font-weight: 700; font-size: 15.5px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.gain-win { font: 700 11.5px/1.3 var(--sans); border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.gain-row { display: grid; grid-template-columns: minmax(0, 3.4em) minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; }
.gain-row.is-ahead { border-color: var(--line); background: var(--panel); }
.gain-name { font-weight: 600; font-size: 13.5px; }
.gain-v { font: 700 18px/1.2 var(--mono); }
.gain-range { grid-column: 1 / -1; }

/* ── Forecast overview, day by day, smart money (21 Nov 2026) ─────────────── */
.rel { display: inline-block; font: 700 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.rel-ok { color: var(--up); border-color: #2c6b47; }
.rel-fair { color: #e8d36a; border-color: #7a6c22; }
.rel-low { color: var(--level); border-color: #7a4f1c; }
.rel-vlow { color: #ff8a65; border-color: #7a3a26; }
.rel-none { color: var(--down); border-color: #7a2c2c; }
.caveat { border: 1px solid #7a4f1c; border-left: 5px solid var(--level); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; background: rgba(255, 159, 67, .07); }
.caveat summary { cursor: pointer; list-style: none; display: block; line-height: 1.5; }
.caveat summary::-webkit-details-marker { display: none; }
.caveat summary::after { content: " Show"; color: var(--accent); font-weight: 600; white-space: nowrap; }
.caveat[open] summary::after { content: ""; }
.caveat-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--level); color: #1a1206; font: 800 13px/1 var(--mono); margin-right: 4px; }
.caveat .points { margin-top: 10px; }
.relscale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 12px; }
.relstep { display: grid; gap: 2px; padding: 6px 3px; border: 0; border-top: 4px solid currentColor; border-radius: 0; text-align: center; font: 600 10.5px/1.25 var(--sans); background: var(--panel-2); min-width: 0; }
.relstep b { color: var(--text); font-size: 11.5px; }
.relstep span { overflow-wrap: anywhere; }
.frames { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; margin: 0 0 12px; scrollbar-width: none; }
.frames::-webkit-scrollbar { display: none; }
.frames a { flex: none; padding: 9px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font: 600 13.5px/1.4 var(--sans); white-space: nowrap; }
.frames a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.frame-note { border: 1px solid var(--line); border-left: 5px solid currentColor; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: var(--panel); }
.frame-note p { color: var(--text); }
.frame-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.frame-label { font: 700 16px/1.3 var(--sans); color: var(--text); }
.ovcards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
.ovcard { border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 6px; align-content: start; background: var(--panel); color: var(--text); min-width: 0; }
.ovcard.up { border-top-color: var(--up); } .ovcard.down { border-top-color: var(--down); } .ovcard.level { border-top-color: var(--level); }
.ovcard h3 { font: 700 16px/1.3 var(--sans); }
.ovcard h3 a { color: var(--text); text-decoration: none; }
.ov-price { font-size: 19px; font-weight: 600; }
.ov-price .muted, .ov-now .muted { font-weight: 400; }
.ov-record { border-top: 1px dashed #3b4b61; padding-top: 6px; }
.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.matrix th, .matrix td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.matrix thead th { color: var(--muted); font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.matrix .r { text-align: right; }
.matrix tbody th { position: sticky; left: 0; background: var(--bg); font-weight: 600; }
.matrix tr.is-now th, .matrix tr.is-now td { background: #1d1a10; }
.quicklinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag-fact { font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; color: var(--up); border-color: #2c6b47; }
.dayform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.dayform label { color: var(--muted); font-size: 13.5px; }
.inp-date { width: 170px; color-scheme: dark; }
.daynav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: 13px; }
.days { list-style: none; display: grid; gap: 8px; padding: 0; margin: 12px 0 0; }
.day { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.day-actual { border-left-color: var(--up); background: var(--panel); }
.day-today { border-left-color: var(--accent); background: rgba(248, 172, 0, .08); }
.day-predicted { border-left-color: #3a6fa3; border-style: dashed; border-left-style: solid; }
.day-when { grid-column: 1; }
.day-wd { font: 700 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.day-date { font-weight: 600; }
.day-tag { grid-column: 2; grid-row: 1; justify-self: end; }
.day-price { grid-column: 1 / -1; font-size: 19px; font-weight: 600; }
.day-more { grid-column: 1 / -1; }
.trow-miss { margin-top: 2px; }
.stackform { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-bottom: 10px; align-items: end; }
.stackform label { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.stackform .inp { width: 100%; }
.stackform .btn { justify-self: start; min-height: 42px; padding: 9px 22px; }
.inline-form { display: inline-block; margin: 4px 6px 0 0; }
.notice-ok { border-style: solid; border-color: #2c6b47; color: var(--up); }
.notice-bad { border-style: solid; border-color: #7a2c2c; color: var(--down); }
.projections > .notice { margin-bottom: 14px; }
.figs { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); margin: 4px 0 10px; }
.fig { border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel-2); min-width: 0; }
.fig-up { border-left-color: var(--up); } .fig-down { border-left-color: var(--down); } .fig-level { border-left-color: var(--level); }
.fig dt { color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.fig dd { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.fig-note { display: block; font-weight: 400; }
.srow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--level); border-radius: 10px; padding: 12px; }
.srow.up { border-left-color: var(--up); } .srow.down { border-left-color: var(--down); }
.srow-when { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.srow-v { font-size: 18px; font-weight: 600; }
.play > p { margin-bottom: 8px; }
.play-up { border-color: #2c6b47; } .play-down { border-color: #7a2c2c; }
.stackgrid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.stackcard { margin-bottom: 0; }
.stack-pairs { margin: 8px 0; }
.stack-main { border-left: 4px solid var(--level); padding: 6px 10px; margin: 8px 0; background: var(--panel-2); border-radius: 6px; }
.stack-main.tone-up { border-left-color: var(--up); } .stack-main.tone-down { border-left-color: var(--down); }
.link-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.btn-stack { padding: 6px 10px; min-height: 32px; font-size: 12.5px; }
.btn-stack[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; }
@media (max-width: 520px) { .tabs a { flex: 1 0 auto; padding: 11px 10px; font-size: 13.5px; } }
@media (min-width: 620px) {
  .ovcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stackform { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .stackgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srow { grid-template-columns: minmax(130px, 1fr) repeat(3, minmax(0, 1fr)); }
  .srow-when { grid-column: auto; display: block; }
}
@media (min-width: 1000px) {
  .ovcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .day { grid-template-columns: minmax(0, 1fr); }
  .day-tag { grid-column: 1; grid-row: auto; justify-self: start; }
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pnl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.pnl > div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel-2); min-width: 0; }
.pnl dt { color: var(--muted); font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.pnl dd { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pnl-main { grid-column: 1 / -1; border-left: 5px solid var(--level) !important; }
.pnl-main dd { font-size: 20px; }
.pnl-main.up { border-left-color: var(--up) !important; background: rgba(86, 217, 138, .08); }
.pnl-main.down { border-left-color: var(--down) !important; background: rgba(255, 92, 92, .08); }
.pnl-main.up dt { color: var(--up); } .pnl-main.down dt { color: var(--down); }
.src-note { margin: 4px 0; }
@media (min-width: 760px) { #position .pnl, #stack-total .pnl { grid-template-columns: repeat(4, minmax(0, 1fr)); } #position .pnl-main, #stack-total .pnl-main { grid-column: auto; } }
@media (max-width: 759px) { .pnl > div:last-child { grid-column: 1 / -1; } }
.working { list-style: decimal; }
.mrows { display: grid; gap: 6px; margin: 8px 0; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; align-items: baseline; border: 1px solid var(--line); border-left: 4px solid var(--level); border-radius: 8px; padding: 8px 10px; background: var(--panel-2); }
.mrow.up { border-left-color: var(--up); } .mrow.down { border-left-color: var(--down); }
.mrow.is-low { box-shadow: inset 0 0 0 1px var(--accent); }
.mrow-l { font-weight: 600; } .mrow-p, .mrow-g { text-align: right; } .mrow-v { font-weight: 600; }
.mrow > span { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.mrow > span.up { color: var(--up); } .mrow > span.down { color: var(--down); } .mrow > span.level { color: var(--level); } .mrow > span.muted { color: var(--muted); }
@media (min-width: 760px) { .mrow { grid-template-columns: 1.1fr 1.3fr 1fr 1.4fr; } .mrow-p, .mrow-g { text-align: left; } }
.goal-opts { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.goal-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); cursor: pointer; min-height: 44px; }
.goal-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.goal-opt input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.goal-fields { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.goal-fields label { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.goal-fields .inp { width: 100%; }
.goal-fields .btn { justify-self: start; min-height: 42px; padding: 9px 22px; }
@media (min-width: 760px) { .goal-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .goal-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; } }
.ovchart { width: 100%; height: 200px; display: block; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.ov-band { fill: rgba(58, 111, 163, .22); stroke: none; }
.ov-actual { stroke: var(--text); stroke-width: 2; }
.ov-mid { stroke: #a9d4ff; stroke-width: 1.5; stroke-dasharray: 4 3; }
.ov-now { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; }
.ov-ticks { display: flex; justify-content: space-between; }
.misses, .evlist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.miss { border: 1px solid var(--line); border-left: 4px solid var(--level); border-radius: 8px; padding: 9px 12px; background: var(--panel-2); color: var(--text); }
.miss.down { border-left-color: var(--down); } .miss.up { border-left-color: var(--up); }
.miss p { color: var(--text); } .miss p.muted { color: var(--muted); margin-top: 4px; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.ev-high { border-left-color: var(--down); } .ev-medium { border-left-color: var(--level); }
.ev-date { font-weight: 600; grid-column: 1; } .ev-title { grid-column: 1 / -1; grid-row: 2; }
.day-event { grid-column: 1 / -1; color: var(--text); }
.ev-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--level); margin-right: 4px; }
.ev-dot.ev-high { background: var(--down); }
.mgroup { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.mgroup > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; list-style: none; }
.mgroup > summary::-webkit-details-marker { display: none; }
.mgroup-h { font: 700 16px/1.3 var(--sans); }
.mgroup[open] > summary { margin-bottom: 10px; }
#methods .mrow-v, #methods .mrow-g { grid-column: 1 / -1; text-align: left; }
@media (min-width: 760px) { #methods .mrow { grid-template-columns: 1.1fr 1.2fr; } }
.crow { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--panel-2); }
.crow.is-best { border-left-color: var(--up); }
.crow > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; list-style: none; color: var(--text); }
.crow > summary::-webkit-details-marker { display: none; }
.crow-n { font-weight: 700; }
.crow[open] > summary { margin-bottom: 8px; }
.crow .matrix tbody th { background: var(--panel-2); }
.mrows > * { min-width: 0; } .crow { min-width: 0; overflow: hidden; } .crow .matrix-wrap { max-width: 100%; overflow-x: auto; } #confirm, #methods { min-width: 0; }
.fundrow .fund-flow { grid-column: 1 / -1; display: grid; gap: 3px; }
.fundrow .mrow-g { grid-column: 1 / -1; text-align: left; }
.flowbar { width: 100%; height: 8px; display: block; }
.flowbar .track { fill: var(--line); } .flowbar .centre { fill: var(--muted); }
.flowbar .fill.up { fill: var(--up); } .flowbar .fill.down { fill: var(--down); }
/* ── Layout pass (22 Nov 2026): the four assets are the main menu; stronger brand ───────────── */
.brand-logo { height: 46px; width: auto; }
.brand-tag { display: none; color: var(--muted); font: 600 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; border-left: 2px solid var(--accent); padding-left: 10px; }
.top { border-bottom: 2px solid var(--accent); }
.sitelinks { display: flex; gap: 4px; }
.nav-link { padding: 6px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; font: 600 12.5px/1.3 var(--sans); white-space: nowrap; }
.nav-link:hover { color: var(--text); }
.nav-link[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.assetbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.assetbar-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.assetbar .nav-item { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); background: var(--panel-2); min-width: 0; }
.assetbar .nav-item[aria-current="page"] { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); background: rgba(248, 172, 0, .10); }
.assetbar .nav-name { font: 700 14px/1.2 var(--sans); display: flex; gap: 6px; align-items: center; }
.assetbar .nav-live { font-size: 11.5px; display: grid; gap: 1px; justify-items: center; }
.assetbar .nav-live .pct { font-size: 11px; }
@media (min-width: 760px) {
  .brand-logo { height: 54px; } .brand-tag { display: inline-block; }
  .assetbar .nav-item { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 10px 14px; gap: 10px; }
  .assetbar .nav-name { font-size: 16px; } .assetbar .nav-live { font-size: 13.5px; display: flex; gap: 8px; justify-content: flex-end; width: 100%; }
}
.evidence { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; border: 1px solid #3a6fa3; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; text-decoration: none; color: var(--text); background: rgba(58, 111, 163, .10); }
.evidence-go { color: var(--accent); font-weight: 600; white-space: nowrap; margin-left: auto; }
.frames-sm { padding: 0; margin: 0; } .frames-sm a { padding: 6px 12px; min-height: 34px; font-size: 13px; }
.mbars { display: grid; gap: 6px; margin: 10px 0; }
.mbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-decoration: none; color: var(--text); background: var(--panel-2); }
.mbar.is-sel { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.mbar-n { font-weight: 700; } .mbar-v { text-align: right; }
.mbar svg { grid-column: 1 / -1; width: 100%; height: 10px; display: block; }
.mbar .track { fill: var(--line); } .mbar .centre { fill: var(--muted); }
.mbar .fill.up { fill: var(--up); } .mbar .fill.down { fill: var(--down); } .mbar .fill.level, .mbar .fill.flat { fill: var(--level); }
@media (min-width: 760px) { .mbar { grid-template-columns: 220px minmax(0, 1fr) 220px; } .mbar svg { grid-column: auto; } }
.pill-pre-sm { cursor: help; }
.mc-dinari { --mc: #f8ac00; } .mc-pound { --mc: #56d98a; } .mc-euro { --mc: #c9d3df; } .mc-yen { --mc: #ff5c5c; }
.mc-franc { --mc: #b58cff; } .mc-renminbi { --mc: #5ac8fa; } .mc-dollar { --mc: #ff9f43; }
.mkey { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--mc, var(--muted)); margin-right: 6px; vertical-align: -1px; }
.pathchart { height: 240px; }
.pline { stroke: var(--mc, var(--muted)); stroke-width: 1.6; opacity: .75; }
.pline.is-sel { stroke-width: 3.2; opacity: 1; }
.mlegend li { color: var(--text); }
.mbar { border-left: 4px solid var(--mc, var(--line)); }
.selmodel { border: 1px solid var(--line); border-top: 4px solid var(--mc, var(--accent)); border-radius: 10px; padding: 12px; margin: 14px 0; background: var(--panel); min-width: 0; overflow: hidden; }
.selmodel-h { font: 700 17px/1.3 var(--sans); margin-bottom: 4px; }
.selmodel .matrix tbody th { background: var(--panel); }
