/* stocks570.css — labs.llc/stocks/ v570 layer (page-owned).
   Sits on top of site.css + dark.css; uses only their tokens, so both
   editions follow. Cohesive with rinse570.css: same gutter, radius, dock. */
[hidden] { display: none !important; }

body.st570 { --gutter: clamp(16px, 2.82vw, 36px); --st5-r: 10px; --st5-num: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
body.st570 .d1, body.st570 .d2, body.st570 h1, body.st570 h2, body.st570 .st5-card__t { text-wrap: balance; }
body.st570 .lede, body.st570 .hint, body.st570 .hero__fact, body.st570 .st5-defs dd, body.st570 .st5-card__d, body.st570 .probe-note { text-wrap: pretty; }
body.st570 .lede { max-width: 40rem; }
body.st570 .lede + .lede { margin-top: .85rem; }
body.st570 .band { padding-top: clamp(44px, 6vw, 88px); padding-bottom: clamp(44px, 6vw, 88px); }

/* ---------- even, symmetric button grids, 10px radius ---------- */
body.st570 .btn, body.st570 .seg__b, body.st570 .field, body.st570 .ib, body.st570 .st5-seg__b { border-radius: var(--st5-r); }
body.st570 .st5-grid { display: grid; gap: .5rem; flex-wrap: nowrap; }
body.st570 .st5-grid > .btn { width: 100%; min-width: 0; justify-content: center; text-align: center; white-space: nowrap; padding-left: .5rem; padding-right: .5rem; }
body.st570 .st5-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.st570 .st5-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) {
  body.st570 .st5-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.st570 .st5-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { body.st570 .st5-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
body.st570 .hero__act.st5-grid { margin-top: 1.6rem; max-width: 46rem; }
body.st570 .st5-rn { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
body.st570 .st5-rn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* range: 4 + 4 on mobile, 8 in a row from 600px (v569 was 3/3/2, or 1 per row) */
body.st570 .st5-range { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: .4rem; }
@media (min-width: 600px) { body.st570 .st5-range { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; } }

/* ---------- sticky one-row status dock ---------- */
.st5-dock {
  position: sticky; top: var(--nav-h, 74px); z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.st5-dock__in {
  max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter);
  height: 49px; display: flex; align-items: center; gap: .35rem; overflow: hidden;
}
.st5-dock__ix {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  height: 40px; padding: 0 .4rem; border-radius: var(--st5-r); text-decoration: none; color: inherit; line-height: 1.1;
}
.st5-dock__ix:hover { background: var(--line-soft); }
.st5-dock__ix em { font-style: normal; font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st5-dock__ix b { font-family: var(--st5-num); font-size: .8rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st5-dock__ix i { font-style: normal; font-family: var(--st5-num); font-size: .64rem; font-weight: 600; white-space: nowrap; }
.st5-dock__ix i.up { color: var(--free); } .st5-dock__ix i.dn { color: var(--taken); }
.st5-dock__ix { display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: start; grid-template-rows: auto auto; column-gap: .4rem; align-content: center; }
.st5-dock__ix .st5-dock__v { display: contents; }
.st5-dock__ix em { grid-column: 1; grid-row: 1; }
.st5-dock__ix i { grid-column: 2; grid-row: 1; text-align: right; line-height: 1.1; }
.st5-dock__ix b { grid-column: 1 / -1; grid-row: 2; }
.st5-dock__go {
  flex: 0 0 auto; height: 34px; display: inline-flex; align-items: center; padding: 0 .75rem;
  border-radius: var(--st5-r); background: var(--accent); color: #fff; text-decoration: none;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
}
.st5-dock__go:hover { filter: brightness(1.06); }
.st5-dock__ix--dow, .st5-dock__ix--list { display: none; }
@media (min-width: 600px) { .st5-dock__ix--dow { display: grid; } }
@media (min-width: 900px) { .st5-dock__ix--list { display: grid; } .st5-dock__in { gap: .6rem; } .st5-dock__ix em { font-size: .62rem; } .st5-dock__ix b { font-size: .86rem; } }
@media (max-width: 479px) {
  .st5-dock__ix em { font-size: .56rem; letter-spacing: .02em; }
  .st5-dock__ix i { font-size: .6rem; }
  .st5-dock__ix { padding: 0 .3rem; column-gap: .25rem; }
}
@media (max-width: 379px) {
  .st5-dock__in { gap: .15rem; }
  .st5-dock__ix { flex: 1 1 auto; padding: 0 .2rem; column-gap: .2rem; }
  .st5-dock__ix em { font-size: .54rem; letter-spacing: .03em; text-overflow: clip; }
  .st5-dock__ix i { font-size: .58rem; }
  .st5-dock__ix b { font-size: .74rem; }
  .st5-dock__go { padding: 0 .5rem; letter-spacing: .06em; font-size: .64rem; }
}

/* ---------- consoles: the yum-style Labs GUI ---------- */
body.st570 .st5-console { border-radius: 14px; }
body.st570 .st5-head__n { margin-left: auto; font-family: var(--st5-num); font-size: .66rem; letter-spacing: .06em; color: var(--ink-55); }
body.st570 .console__head { gap: .6rem; }
body.st570 .st5-field { flex-wrap: nowrap; }
body.st570 .st5-field > .btn { flex: 0 0 auto; }
body.st570 .st5-ta-wrap { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
body.st570 .st5-ta-wrap > .field { flex: 1 1 auto; min-width: 0; width: 100%; }
body.st570 .st5-try { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; align-items: center; margin-top: .55rem; }
body.st570 .st5-try__l { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
body.st570 #st-suggest { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; max-width: 26rem; }
body.st570 .st-sugg { margin: 0; width: 100%; min-width: 0; padding: .22rem 0; border-radius: var(--st5-r); font-family: var(--st5-num); font-size: .68rem; text-align: center; }
@media (max-width: 359px) { body.st570 .st5-try { grid-template-columns: minmax(0, 1fr); gap: .35rem; } }

/* typeahead */
.st5-ta {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: .3rem; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--st5-r);
  box-shadow: 0 12px 32px rgba(17, 22, 28, .14); max-height: 18rem; overflow-y: auto;
}
.st5-ta li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: baseline; padding: .5rem .55rem; border-radius: 8px; cursor: pointer; }
.st5-ta li[aria-selected="true"], .st5-ta li:hover { background: var(--line-soft); }
.st5-ta b { font-family: var(--st5-num); font-size: .8rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st5-ta span { font-size: .8rem; color: var(--ink-77); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st5-ta em { font-style: normal; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-55); white-space: nowrap; }
@media (max-width: 479px) { .st5-ta li { grid-template-columns: 4.4rem minmax(0, 1fr); } .st5-ta li em { display: none; } }
.st5-ta .st5-ta__note { display: block; grid-template-columns: none; cursor: default; font-size: .74rem; color: var(--ink-55); }
.st5-ta .st5-ta__note:hover { background: none; }

/* console toolbar: filter, sort, show */
.st5-bar {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: .55rem;
  background: var(--deep); border-radius: var(--st5-r); color: #E6EAEE;
}
.st5-bar__find { display: flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .7rem; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.st5-bar__pr { font-family: var(--st5-num); color: var(--accent-fill, #FB923C); font-weight: 700; }
.st5-bar__in { flex: 1 1 auto; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font-family: var(--st5-num); font-size: .82rem; }
.st5-bar__in::placeholder { color: rgba(255,255,255,.45); }
.st5-bar__find:focus-within { border-color: var(--accent-fill, #FB923C); }
.st5-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
.st5-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st5-seg__b {
  height: 34px; min-width: 0; padding: 0 .3rem; border: 1px solid rgba(255,255,255,.12); background: transparent; color: rgba(255,255,255,.78);
  font: inherit; font-family: var(--st5-num); font-size: .72rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; white-space: nowrap;
}
.st5-seg__b:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.st5-seg__b[aria-pressed="true"] { background: var(--accent-fill, #FB923C); border-color: var(--accent-fill, #FB923C); color: var(--on-accent, #2A1206); }
@media (min-width: 760px) { .st5-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .95fr); align-items: center; } }
.st5-empty { margin: 0; padding: .9rem 1rem; border: 1px dashed var(--line); border-radius: var(--st5-r); font-size: .82rem; color: var(--ink-55); }

/* watchlist rows: steady grid, RINSE hand-off per row */
body.st570 #st-out { border-radius: var(--st5-r); }
body.st570 .probe-out { max-height: max(60vh, 24rem); }
body.st570 .st-row { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr) auto auto; gap: .3rem .6rem; align-items: center; padding: .45rem 0; margin: 0 !important; border-bottom: 1px solid var(--line-soft); }
body.st570 .st-row > b { grid-column: 1; grid-row: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.st570 .st-row > span:not(.st-px):not(.st-act) { grid-column: 2; grid-row: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
body.st570 .st-row > .st-px { grid-column: 3; grid-row: 1; margin: 0; white-space: nowrap; }
body.st570 .st-row > .st-act { grid-column: 4; grid-row: 1; margin: 0; }
@media (max-width: 560px) {
  body.st570 .st-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  body.st570 .st-row > .st-act { grid-column: 3; }
  body.st570 .st-row > .st-px { grid-column: 1 / -1; grid-row: 2; text-align: left; flex-basis: auto; }
}
body.st570 .st-row:last-of-type { border-bottom: 0; }
body.st570 .st-act { gap: .3rem; }
body.st570 .ib.st5-rnb { width: auto; padding: 0 .5rem; font-size: .6rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); text-decoration: none; }
body.st570 .ib.st5-rnb:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- RINSE cards ---------- */
.st5-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; margin-top: 1.4rem; }
@media (min-width: 720px) { .st5-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.st5-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .45rem; padding: 1.15rem 1.2rem; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px;
  color: inherit; text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.st5-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.st5-card__k { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.st5-card__t { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 600; color: var(--ink); line-height: 1.25; }
.st5-card__d { font-size: .9rem; line-height: 1.55; color: var(--ink-77); }
.st5-card__go { font-size: .78rem; font-weight: 600; color: var(--ink); }

/* ---------- overview as an even definition grid ---------- */
.st5-defs { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin: 1.4rem 0 0; }
@media (min-width: 720px) { .st5-defs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.st5-defs > div { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); }
.st5-defs dt { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); margin-bottom: .35rem; }
.st5-defs dd { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-77); }

/* ---------- landscape phones: keep the dock, trim the hero ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  body.st570 .band { padding-top: 32px; padding-bottom: 32px; }
  body.st570 .hero .d1 { font-size: clamp(2rem, 6vh, 2.6rem); }
  .st5-dock__in { height: 44px; }
  .st5-dock__ix { height: 36px; }
}

/* ---------- dark edition ---------- */
html[data-edition="dark"] .st5-dock { background: color-mix(in srgb, var(--deep) 90%, transparent); }
html[data-edition="dark"] .st5-ta { background: var(--deep-soft); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
html[data-edition="dark"] .st5-card { background: var(--deep-soft); }
html[data-edition="dark"] .st5-defs > div { background: var(--deep-soft); }
html[data-edition="dark"] .st5-bar { background: rgba(0,0,0,.35); border: 1px solid var(--line); }
html[data-edition="dark"] .st5-dock__go { color: #1a0b03; }
html[data-edition="dark"] body.st570 .st5-rn:hover { color: #1a0b03; }

@media print { .st5-dock, .st5-bar, .st5-ta { display: none !important; } }

/* ---------- chart console status ---------- */
/* The console has overflow:hidden, so a sticky head cannot attach to the
   viewport — it jumped 123px into the form. Status lives in the console
   head (static) and, once a fetch starts, also in a slim bar under the dock. */
body.st570 .st5-chstat {
  margin: 0;
  flex: 1 1 14rem;
  min-width: 0;
  font-family: var(--st5-num);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-55);
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 620px) {
  body.st570 .st5-chstat {
    flex: 1 1 100%;
    text-align: left;
    white-space: normal;
  }
}
body.st570 #chart .console__head[data-ch="fetch"] .st5-chstat { color: var(--ink); }
body.st570 #chart .console__head[data-ch="ok"] .st5-chstat { color: var(--ink-77); }
body.st570 #chart .console__head[data-ch="err"] .st5-chstat { color: var(--taken, #B91C1C); }
body.st570 #chart .console__head[data-ch="fetch"] .console__dot,
.st5-chbar[data-ch="fetch"] .console__dot {
  background: var(--accent);
  animation: st5-chpulse 1.1s ease-in-out infinite;
}
body.st570 #chart .console__head[data-ch="ok"] .console__dot,
.st5-chbar[data-ch="ok"] .console__dot { background: var(--free, #15803D); }
body.st570 #chart .console__head[data-ch="err"] .console__dot,
.st5-chbar[data-ch="err"] .console__dot { background: var(--taken, #B91C1C); }
@keyframes st5-chpulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); }
}
body.st570 #chart .btn:disabled,
body.st570 #chart .seg__b:disabled { opacity: .45; cursor: wait; }

.st5-chbar {
  position: sticky;
  top: calc(var(--nav-h, 74px) + 49px);
  z-index: 39;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.st5-chbar__in {
  max-width: var(--measure);
  margin: 0 auto;
  padding: .4rem var(--gutter);
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.st5-chbar__txt {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--st5-num);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.st5-chbar[data-ch="err"] .st5-chbar__txt { color: var(--taken, #B91C1C); }
.st5-chbar[data-ch="ok"] .st5-chbar__txt { color: var(--ink-77); }
html[data-edition="dark"] .st5-chbar { background: color-mix(in srgb, var(--deep) 90%, transparent); }
@media print { .st5-chbar { display: none !important; } }

/* ---------- quote lookup strip (jewelry v570 live-price strip language) ---------- */
.st5-vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}
.st5-ql {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.st5-ql__in {
  max-width: var(--measure);
  margin: 0 auto;
  padding: .45rem var(--gutter);
  min-height: 50px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .8rem;
}
.st5-ql__s {
  display: flex; align-items: center; gap: .5rem;
  flex: 0 0 auto; color: var(--ink-55);
}
.st5-ql__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
}
.st5-ql[data-ql="fetch"] .st5-ql__dot { animation: st5-chpulse 1.1s ease-in-out infinite; }
.st5-ql[data-ql="ok"] .st5-ql__dot { background: var(--free, #15803D); }
.st5-ql[data-ql="err"] .st5-ql__dot { background: var(--taken, #B91C1C); }
.st5-ql__st { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.st5-ql__st b {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.st5-ql__st time, .st5-ql__st span { font-size: .68rem; color: var(--ink-55); }
.st5-ql__find {
  display: flex; align-items: stretch; gap: .4rem;
  flex: 1 1 16rem; min-width: 0;
}
.st5-ql__find .st5-ta-wrap { flex: 1 1 auto; min-width: 0; }
.st5-ql__find .field {
  width: 100%; min-height: 40px; padding: .45rem .75rem; font-size: .9rem;
}
.st5-ql__find .btn { flex: 0 0 auto; min-height: 40px; }
.st5-ql__out {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .75rem;
  flex: 1 1 18rem; min-width: 0;
}
.st5-ql__sym { font-family: var(--st5-num); font-size: .95rem; font-weight: 700; color: var(--ink); }
.st5-ql__nm { font-size: .8rem; color: var(--ink-77); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.st5-ql__px { font-family: var(--st5-num); font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.st5-ql__mv { font-family: var(--st5-num); font-size: .82rem; font-weight: 700; }
.st5-ql__err { font-size: .82rem; color: var(--taken, #B91C1C); font-weight: 600; }
.st5-ql__links { display: flex; gap: .35rem; flex: 0 0 auto; }
.st5-ql__links a, .st5-ql__links button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 .65rem; border: 1px solid var(--line); border-radius: var(--st5-r);
  background: var(--paper); color: var(--ink); font: inherit; font-size: .72rem; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.st5-ql__links a:hover, .st5-ql__links button:hover { border-color: var(--accent); color: var(--accent); }
.st5-ql__toast {
  margin-left: auto; flex: 0 0 auto;
  min-height: 32px; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink-77);
  font: inherit; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
}
.st5-ql__toast.on, .st5-ql__toast[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
html[data-edition="dark"] .st5-ql { background: var(--paper); }
html[data-edition="dark"] .st5-ql__toast.on, html[data-edition="dark"] .st5-ql__toast[aria-pressed="true"] {
  background: var(--paper); color: var(--ink); border-color: var(--ink);
}

/* ---------- the board: jewelry-style kickers and tiles, under the tape ---------- */
.st5-kicker {
  display: flex; align-items: center; gap: .55rem;
  margin: 1.7rem 0 .75rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-55);
}
.st5-kicker::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.st5-tg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1023px) { .st5-tg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px)  { .st5-tg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.st5-tg__stat {
  margin: .55rem 0 0;
  font-size: .78rem; color: var(--ink-55);
  min-height: 1.2em;
}
.st5-tg__stat.is-err { color: var(--taken, #B91C1C); font-weight: 600; }
.st5-tile {
  position: relative;
  display: flex; flex-direction: column; gap: .3rem;
  min-width: 0;
  padding: .85rem .9rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--st5-r);
  background: var(--paper);
  color: inherit; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.st5-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-3px);
}
.st5-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .st5-tile, .st5-tile:hover { transition: none; transform: none; }
}
.st5-tile__top { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; min-width: 0; }
.st5-tile__sym {
  font-family: var(--st5-num); font-size: .92rem; font-weight: 700; color: var(--ink);
  letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st5-tile__mv { font-family: var(--st5-num); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.st5-tile__name {
  margin: 0; font-size: .78rem; color: var(--ink-55);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st5-tile__px {
  margin-top: auto; font-family: var(--st5-num); font-size: 1.05rem; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.st5-tile__go {
  margin: .15rem 0 0; font-size: .72rem; font-weight: 700; color: var(--accent);
}
.st5-tile:hover .st5-tile__go { text-decoration: underline; text-underline-offset: 3px; }
.st5-tile--news .st5-tile__hed {
  margin: 0; font-size: .88rem; font-weight: 600; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.st5-tile--news .st5-tile__src {
  margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-55);
}
.st5-tile--news .st5-tile__meta {
  margin-top: auto; display: flex; align-items: baseline; gap: .45rem; min-width: 0;
  font-family: var(--st5-num); font-size: .78rem;
}
html[data-edition="dark"] .st5-tile { background: var(--deep-soft, var(--paper)); }
html[data-edition="dark"] .st5-tile:hover {
  box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
@media (orientation: landscape) and (max-height: 500px) {
  .st5-ql__in { padding-top: .3rem; padding-bottom: .3rem; min-height: 0; }
  .st5-tile { padding: .65rem .7rem; }
}
@media print { .st5-ql, .st5-ql__toast { display: none !important; } }

/* boards / lookup polish — color for moves, chips, hidden result, first kicker */
.st5-boards { padding-top: 2.2rem; }
.st5-boards .st5-kicker:first-of-type { margin-top: .4rem; }
.st5-tile__mv.up, .st5-ql__mv.up { color: var(--free, #15803D); }
.st5-tile__mv.dn, .st5-ql__mv.dn { color: var(--taken, #B91C1C); }
.st5-ql__out[hidden] { display: none !important; }
.st5-chip {
  display: inline-flex; align-items: center;
  padding: .1rem .4rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--st5-num); font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; color: var(--ink-77); white-space: nowrap;
}
html[data-edition="dark"] .st5-chip { background: color-mix(in srgb, var(--paper) 80%, transparent); }
@media (max-width: 719px) {
  .st5-ql__in { padding-top: .55rem; padding-bottom: .55rem; }
  .st5-ql__nm { max-width: 9rem; }
  .st5-ql__toast { margin-left: 0; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .st5-ql__find .field, .st5-ql__find .btn { min-height: 36px; }
}

/* ---------- world indices board (jewelry tiles, grouped by region) ---------- */
.st5-ix__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem .8rem;
  margin: .2rem 0 .2rem;
}
.st5-ix__foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .7rem;
  margin: .2rem 0 0;
}
.st5-ix__stat {
  margin: 0; font-size: .78rem; color: var(--ink-55); min-height: 1.2em;
  flex: 1 1 12rem;
}
.st5-ix__stat.is-err { color: var(--taken, #B91C1C); font-weight: 600; }
.st5-tile--ix { gap: .25rem; }
.st5-tile--ix .st5-tile__name { white-space: normal; overflow: visible; text-overflow: unset; line-height: 1.25; }
.st5-tile__place {
  margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-55);
}
.st5-tile__when {
  margin: 0; font-size: .68rem; color: var(--ink-55);
}
.st5-tile__chg {
  font-family: var(--st5-num); font-size: .78rem; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.st5-tile__chg.up, .st5-tile__mv.up { color: var(--free, #15803D); }
.st5-tile__chg.dn, .st5-tile__mv.dn { color: var(--taken, #B91C1C); }
.st5-tile__act {
  display: flex; gap: .35rem; margin-top: .35rem; flex-wrap: wrap;
}
.st5-tile__act a, .st5-tile__act button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 28px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--st5-r);
  background: var(--paper); color: var(--ink); font: inherit; font-size: .7rem; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.st5-tile__act a:hover, .st5-tile__act button:hover { border-color: var(--accent); color: var(--accent); }
html[data-edition="dark"] .st5-tile__act a,
html[data-edition="dark"] .st5-tile__act button { background: var(--deep-soft, var(--paper)); }
@media (max-width: 719px) {
  .st5-ix__head { margin-bottom: .15rem; }
}
@media print { .st5-tile__act, .st5-ix__foot .tbtn, #idx-refresh { display: none !important; } }

/* ---------- tape speed: compact segmented control in the tape foot ---------- */
.st5-tspd {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-left: auto;
}
.st5-tspd__l {
  font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-55); white-space: nowrap;
}
.st5-tspd__seg {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.st5-tspd__b {
  appearance: none;
  height: 26px; min-width: 3.4rem; padding: 0 .65rem;
  border: 0; border-right: 1px solid var(--line);
  background: transparent; color: var(--ink-77);
  font: inherit; font-size: .6rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
}
.st5-tspd__b:last-child { border-right: 0; }
.st5-tspd__b:hover { color: var(--ink); }
.st5-tspd__b[aria-pressed="true"] {
  background: var(--accent-fill, var(--accent, #E4572E));
  color: var(--on-accent, #2A1206);
}
.st5-tspd__b:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
  position: relative; z-index: 1;
}
html[data-edition="dark"] .st5-tspd__seg { background: var(--deep-soft, var(--paper)); }
@media (max-width: 640px) {
  .st5-tspd { margin-left: 0; }
  .st5-tspd__b { min-width: 0; padding: 0 .55rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .st5-tspd__b { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  /* The tapes themselves are parked in site.css. The control stays so a
     saved choice is still visible and can be changed for the next visit. */
  .st5-tspd { opacity: .85; }
}
@media print { .st5-tspd { display: none !important; } }

/* ---------- at random: hat toolbar + spark tiles (jewelry tiles, console bar) ---------- */
.st5-rd__bar { margin: .9rem 0 .7rem; }
.st5-rd__bar > .st5-seg:first-child { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr); }
.st5-rd__bar .st5-seg__b { overflow: hidden; text-overflow: ellipsis; }
.st5-rd__sel { position: relative; }
.st5-rd__in {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 1.4rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23FB923C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .1rem center;
}
.st5-rd__in option { color: #111; background: #fff; }
.st5-rd__end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: .3rem; }
.st5-rd__n { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st5-rd__go {
  border-color: var(--accent-fill, #FB923C); color: var(--accent-fill, #FB923C);
  letter-spacing: .08em; text-transform: uppercase;
}
.st5-rd__go:hover { background: var(--accent-fill, #FB923C); color: var(--on-accent, #2A1206); }
.st5-rd__go:disabled { opacity: .55; cursor: progress; }
.st5-rd__go:focus-visible, .st5-rd__in:focus-visible { outline: 2px solid var(--accent-fill, #FB923C); outline-offset: 2px; }
@media (min-width: 760px) {
  .st5-rd__bar { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr); }
}
.st5-rd__head .st5-chip:empty { display: none; }
.st5-tg--rd { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1023px) { .st5-tg--rd { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px)  { .st5-tg--rd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st5-tile--rd { cursor: pointer; gap: .25rem; }
.st5-tile--rd .st5-tile__place { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st5-rd__sp { display: block; width: 100%; height: 34px; margin: .3rem 0 .1rem; overflow: visible; }
.st5-rd__ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.st5-rd__sp.up .st5-rd__ln { stroke: var(--free, #15803D); }
.st5-rd__sp.dn .st5-rd__ln { stroke: var(--taken, #B91C1C); }
.st5-rd__sp.up .st5-rd__ar { fill: color-mix(in srgb, var(--free, #15803D) 12%, transparent); }
.st5-rd__sp.dn .st5-rd__ar { fill: color-mix(in srgb, var(--taken, #B91C1C) 12%, transparent); }
.st5-rd__row { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.st5-rd__row .st5-tile__px { margin-top: 0; }
.st5-rd__src { font-size: .7rem; }
.st5-rd[data-rd="busy"] .st5-tg--rd { opacity: .55; transition: opacity .2s; }
html[data-edition="dark"] .st5-rd__in option { color: #E6EAEE; background: #14181d; }
@media (max-width: 479px) {
  .st5-rd__bar .st5-seg__b { font-size: .66rem; padding: 0 .15rem; letter-spacing: 0; }
  .st5-rd__sp { height: 28px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .st5-rd__bar { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr); align-items: center; }
  .st5-rd__bar .st5-seg__b, .st5-rd__bar .st5-bar__find { height: 30px; }
  .st5-rd__bar .st5-seg__b { font-size: .66rem; letter-spacing: 0; padding: 0 .15rem; }
  .st5-tg--rd { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .st5-rd__sp { height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .st5-rd[data-rd="busy"] .st5-tg--rd { transition: none; } }
@media print { .st5-rd__bar, .st5-tile--rd .st5-tile__act { display: none !important; } }

/* ---------- 571: tile charts, the range switch, "Show 24 more" ---------- */
.st5-rng-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .7rem;
  margin: .9rem 0 .1rem;
}
.st5-rng__l {
  font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-55); white-space: nowrap;
}
.st5-rng {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--paper);
}
.st5-rng__b {
  appearance: none;
  height: 28px; min-width: 2.6rem; padding: 0 .6rem;
  border: 0; border-right: 1px solid var(--line);
  background: transparent; color: var(--ink-77);
  font: inherit; font-family: var(--st5-num); font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; cursor: pointer; white-space: nowrap;
}
.st5-rng__b:last-child { border-right: 0; }
.st5-rng__b:hover { color: var(--ink); }
.st5-rng__b[aria-pressed="true"] {
  background: var(--accent-fill, var(--accent, #E4572E));
  color: var(--on-accent, #2A1206);
}
.st5-rng__b:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.st5-rng__st { flex: 1 1 14rem; font-size: .74rem; color: var(--ink-55); min-height: 1.2em; }
.st5-rng__st.is-err { color: var(--taken, #B91C1C); font-weight: 600; }
html[data-edition="dark"] .st5-rng { background: var(--deep-soft, var(--paper)); }

.st5-tile__mv small {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-55); margin-left: .15rem;
}
.st5-tile__lbl {
  font-family: inherit; font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-55); margin-right: .15rem;
}
.st5-tile__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: .4rem;
  flex-wrap: wrap; margin-top: auto;
}
.st5-tile__row .st5-tile__px { margin-top: 0; }
.st5-tile--ix .st5-tile__px { margin-top: .1rem; }

/* the chart: a real-close polyline, an area wash, the previous close dashed (1D) */
.st5-sp {
  position: relative; display: block;
  width: 100%; height: 34px; margin: .3rem 0 .15rem;
  touch-action: pan-y;
}
.st5-sp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.st5-sp.is-wait {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink-55) 14%, transparent), transparent) 0 50% / 200% 1px no-repeat;
  animation: st5-sp-wait 1.4s linear infinite;
}
.st5-sp.is-none { height: 34px; }
@keyframes st5-sp-wait { from { background-position: 100% 50%; } to { background-position: -100% 50%; } }
@media (prefers-reduced-motion: reduce) { .st5-sp.is-wait { animation: none; } }
.st5-sp__ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke: var(--ink-55); }
.st5-sp__ar { fill: transparent; }
.st5-sp__base { stroke: var(--ink-55); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; vector-effect: non-scaling-stroke; }
.st5-sp.up .st5-sp__ln { stroke: var(--free, #15803D); }
.st5-sp.dn .st5-sp__ln { stroke: var(--taken, #B91C1C); }
.st5-sp.up .st5-sp__ar { fill: color-mix(in srgb, var(--free, #15803D) 12%, transparent); }
.st5-sp.dn .st5-sp__ar { fill: color-mix(in srgb, var(--taken, #B91C1C) 12%, transparent); }
.st5-sp__dot {
  position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper);
  pointer-events: none;
}
.st5-sp.up .st5-sp__dot { background: var(--free, #15803D); }
.st5-sp.dn .st5-sp__dot { background: var(--taken, #B91C1C); }
.st5-sp__tip {
  position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 3;
  padding: .18rem .4rem; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  font-family: var(--st5-num); font-size: .66rem; font-weight: 700; line-height: 1.3;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.st5-sp__tip b, .st5-sp__tip span { display: block; }
.st5-sp__tip span { font-weight: 600; font-size: .6rem; opacity: .8; }
.st5-tile:has(.st5-sp.is-on) { z-index: 2; }
html[data-edition="dark"] .st5-sp__tip { background: #E6EAEE; color: #14181d; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
html[data-edition="dark"] .st5-sp__dot { box-shadow: 0 0 0 2px var(--deep-soft, #14181d); }
.st5-sp.is-on { cursor: crosshair; }

/* Show 24 more */
.st5-more { display: flex; justify-content: center; margin: .9rem 0 0; }
.st5-more__b {
  appearance: none; min-height: 40px; padding: 0 1.3rem;
  border: 1px solid var(--accent-fill, var(--accent, #E4572E)); border-radius: 999px;
  background: transparent; color: var(--accent, #E4572E);
  font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.st5-more__b:hover { background: var(--accent-fill, var(--accent, #E4572E)); color: var(--on-accent, #2A1206); }
.st5-more__b:disabled { opacity: .6; cursor: progress; }
.st5-more__b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st5-more__b[hidden] { display: none; }

@media (max-width: 719px) {
  .st5-rng { display: flex; width: 100%; }
  .st5-rng__b { flex: 1 1 0; min-width: 0; padding: 0; height: 32px; }
  .st5-sp { height: 30px; }
}
@media (max-width: 380px) {
  .st5-tile__row { flex-direction: column; align-items: flex-start; gap: .1rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .st5-rng__b { height: 26px; }
  .st5-sp { height: 28px; }
}
@media print { .st5-rng-row, .st5-more, .st5-sp__tip, .st5-sp__dot { display: none !important; } }
