/* rates570.css — labs.llc/commercial/ v570, jewelry edition (page-owned; loads after the page's site/micro/toast/commercial/dark
   sheets and edits none of them). Photographic hero, sticky status line, console toolbar, filters, the state map, jewelry
   tiles, export menu. Colours come from the house variables (--ink, --paper, --line, --accent), which dark.css flips. */
body.rx570 [hidden] { display: none !important; }
body.rx570 { --rx-nil: #EEF0F2; --rx-acc: #1D4ED8; --rx-r: 10px; --rx-panel: rgba(255,255,255,.97); --rx-shadow: 0 10px 30px rgba(17,22,28,.16); --rx-card: #fff; --rx-g: clamp(16px, 2.82vw, 36px); }
html[data-dark] body.rx570 { --rx-nil: #1A2027; --rx-acc: #60A5FA; --rx-panel: rgba(23,30,38,.97); --rx-shadow: 0 10px 30px rgba(0,0,0,.5); --rx-card: #131A21; }
body.rx570 main { overflow-x: clip; }

/* ---------- photographic hero (the /jewelry/ hero, namespaced) ---------- */
.rx-hero { position: relative; min-height: min(86vh, 740px); display: flex; align-items: flex-end; background: #11161C; overflow: hidden; padding: 0; --line: rgba(255,255,255,.16); color: #fff; }
.rx-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: 0; transition: opacity .9s cubic-bezier(.22,.61,.36,1); }
.rx-hero__photo.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rx-hero__photo { transition: none; } }
.rx-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,22,28,.93) 0%, rgba(17,22,28,.86) 28%, rgba(17,22,28,.45) 64%, rgba(17,22,28,.1) 100%), linear-gradient(0deg, rgba(17,22,28,.85) 0%, rgba(17,22,28,0) 40%); }
@media (max-width: 900px) { .rx-hero__scrim { background: linear-gradient(90deg, rgba(17,22,28,.94) 0%, rgba(17,22,28,.9) 45%, rgba(17,22,28,.82) 78%, rgba(17,22,28,.66) 100%), linear-gradient(0deg, rgba(17,22,28,.85) 0%, rgba(17,22,28,0) 40%); } }
.rx-hero__in { position: relative; z-index: 1; width: 100%; padding-top: clamp(48px, 9vw, 108px); }
.rx-hero .eyebrow { color: rgba(255,255,255,.66); }
.rx-hero h1.d1 { color: #fff; max-width: 19ch; margin: .6rem 0 0; font-weight: 300; letter-spacing: -.035em; }
.rx-hero h1 em { font-style: normal; border-bottom: 3px solid var(--rx-acc); }
.rx-hero__lede { color: rgba(255,255,255,.78); max-width: 56ch; margin: 1.2rem 0 1.4rem; font-weight: 300; font-size: 1.06rem; line-height: 1.55; }
.rx-hero__lede a { color: #fff; }
.rx-hero__acts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.1rem; }
.rx-hero__acts .btn { border-radius: var(--rx-r); }
.rx-ghost { appearance: none; border: 1px solid rgba(255,255,255,.38); background: rgba(0,0,0,.2); color: #fff; font: inherit; font-size: .82rem; font-weight: 600; min-height: 42px; padding: .3rem 1rem; border-radius: var(--rx-r); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.rx-ghost:hover { border-color: #fff; color: #fff; }
.rx-ghost:focus-visible, .rx-chip:focus-visible, .rx-tool:focus-visible { outline: 2px solid #F97316; outline-offset: 2px; }
.rx-hq { display: flex; align-items: center; gap: .5rem; max-width: 560px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: var(--rx-r); padding: 5px 5px 5px 14px; backdrop-filter: blur(6px); }
.rx-hq svg { flex: none; width: 18px; height: 18px; color: rgba(255,255,255,.7); }
.rx-hq input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: 1rem; padding: .55rem .2rem; outline: none; }
.rx-hq input::placeholder { color: rgba(255,255,255,.6); }
.rx-hq button { flex: none; border: 0; border-radius: 8px; background: var(--rx-acc); color: #fff; font: inherit; font-weight: 700; font-size: .85rem; padding: .65rem 1.05rem; cursor: pointer; }
.rx-hero__keys { color: rgba(255,255,255,.55); font-size: .74rem; margin: .7rem 0 0; }
.rx-hero__keys kbd { display: inline-block; min-width: 1.4em; padding: 0 .3em; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; font: inherit; font-size: .7rem; text-align: center; color: #fff; }
.rx-hero__cap { position: absolute; right: var(--rx-g); top: 1.1rem; z-index: 2; max-width: 46ch; text-align: right; font-size: .62rem; font-weight: 600; letter-spacing: .08em; color: rgba(255,255,255,.8); text-shadow: 0 1px 3px rgba(0,0,0,.85); margin: 0; }
.rx-hero__cap a { color: inherit; }
@media (max-width: 860px) { .rx-hero__cap { display: none; } }
.rx-ticker { position: relative; z-index: 2; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: clamp(1.6rem, 4vw, 3rem); }
.rx-stat { flex: 1 1 150px; padding: 1.05rem 0 1.15rem; border-right: 1px solid var(--line); margin: 0; padding-right: .8rem; }
.rx-stat + .rx-stat { padding-left: 1rem; }
.rx-stat:last-child { border-right: 0; }
.rx-stat b { display: block; font-size: 1.5rem; font-weight: 300; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.rx-stat > span { display: block; margin-top: .15rem; font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
@media (max-width: 640px) {
  .rx-stat { flex: 1 1 42%; padding: .85rem 0 .9rem; }
  .rx-stat + .rx-stat { padding-left: 0; }
  .rx-stat:nth-child(2n) { border-right: 0; padding-left: 1rem; }
  .rx-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rx-stat b { font-size: 1.25rem; }
  .rx-hero { min-height: 0; }
  .rx-hero h1.d1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .rx-hero { min-height: 0; }
  .rx-hero__in { padding-top: 28px; }
  .rx-hero h1.d1 { font-size: 1.9rem; max-width: 30ch; }
  .rx-hero__lede { font-size: .9rem; margin: .6rem 0 .8rem; }
  .rx-ticker { margin-top: 1rem; }
  .rx-stat { flex-basis: 15%; padding-block: .55rem; }
  .rx-stat b { font-size: 1.05rem; }
}

/* ---------- sticky status line ---------- */
.rx-dock { position: sticky; top: var(--nav-h, 74px); z-index: 55; background: var(--paper); border-bottom: 1px solid var(--line); }
.rx-dock__in { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding-block: 4px; }
.rx-dock__id { margin: 0; min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.2; }
.rx-dock__id b { font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-dock__id span { font-size: .7rem; color: var(--ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-dock__nav { display: flex; gap: 1.1rem; flex: none; }
.rx-dock__nav a { font-size: .76rem; color: var(--ink-77); text-decoration: none; }
.rx-dock__nav a:hover { color: var(--rx-acc); }
@media (max-width: 760px) { .rx-dock__nav { display: none; } }
@media (max-width: 900px) { .rx-dock { top: var(--nav-h, 64px); } }

/* ---------- the register band ---------- */
.rx-reg .d2 { margin-bottom: .4rem; }
.rx-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--rx-card); border: 1px solid var(--line); border-radius: var(--rx-r); padding: 6px; margin-top: 1.4rem; position: relative; }
.rx-bar__q { flex: 1 1 260px; display: flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 8px; padding: 0 .7rem; min-height: 40px; background: var(--paper); }
.rx-bar__q svg { width: 16px; height: 16px; color: var(--ink-55); flex: none; }
.rx-bar__q input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; outline: none; padding: .5rem 0; }
.rx-tool { appearance: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rx-tool svg { width: 15px; height: 15px; }
.rx-tool:hover { border-color: var(--rx-acc); }
.rx-tool[aria-pressed="true"], .rx-tool[aria-expanded="true"] { border-color: var(--ink); background: var(--sur-2, rgba(30,38,43,.04)); }
.rx-tool .rx-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--rx-acc); color: #fff; font-size: .68rem; padding: 0 4px; }
select.rx-tool { padding-right: 1.8rem; }
.rx-menu { position: absolute; right: 6px; top: calc(100% + 6px); z-index: 60; min-width: 250px; background: var(--rx-panel); border: 1px solid var(--line); border-radius: var(--rx-r); box-shadow: var(--rx-shadow); padding: 6px; }
.rx-menu button { display: flex; width: 100%; gap: .6rem; align-items: flex-start; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; padding: .6rem .7rem; border-radius: 8px; cursor: pointer; }
.rx-menu button:hover, .rx-menu button:focus-visible { background: var(--sur-2, rgba(30,38,43,.05)); outline: none; }
.rx-menu b { display: block; font-size: .85rem; }
.rx-menu span { display: block; font-size: .72rem; color: var(--ink-55); }
.rx-xstat { font-size: .74rem; color: var(--ink-55); margin: .5rem 0 0; min-height: 1.1em; }
.rx-active { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .7rem; }
.rx-active:empty { display: none; }
.rx-pill { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid color-mix(in srgb, var(--rx-acc) 45%, transparent); background: color-mix(in srgb, var(--rx-acc) 8%, transparent); color: var(--ink); border-radius: 999px; padding: .25rem .4rem .25rem .7rem; font-size: .76rem; font-weight: 600; }
.rx-pill button { border: 0; background: transparent; color: var(--ink-55); cursor: pointer; font-size: .9rem; line-height: 1; padding: 0 .2rem; }
.rx-clear { border: 0; background: transparent; color: var(--rx-acc); font: inherit; font-size: .76rem; text-decoration: underline; cursor: pointer; }
.rx-filters { margin-top: .7rem; border: 1px solid var(--line); border-radius: var(--rx-r); background: var(--rx-card); }
.rx-fg { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: .8rem; align-items: center; padding: .7rem .9rem; border-top: 1px solid var(--line-soft, var(--line)); }
.rx-fg:first-child { border-top: 0; }
.rx-fg > span { font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }
.rx-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rx-chip { appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; min-height: 34px; padding: 0 .7rem; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.rx-chip i { font-style: normal; font-weight: 500; color: var(--ink-55); font-size: .72rem; }
.rx-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rx-chip.is-on i { color: inherit; opacity: .7; }
.rx-chip[disabled] { opacity: .4; cursor: default; }
@media (max-width: 640px) {
  .rx-fg { grid-template-columns: 1fr; gap: .45rem; }
  .rx-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .rx-chip { flex: none; }
}

/* ---------- map + list stage ---------- */
.rx-stage { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 1rem; margin-top: 1rem; align-items: start; }
@media (max-width: 1000px) { .rx-stage { grid-template-columns: minmax(0,1fr); } }
.rx-mapbox { position: relative; border: 1px solid var(--line); border-radius: var(--rx-r); background: linear-gradient(180deg, color-mix(in srgb, var(--rx-acc) 3%, var(--rx-card)), var(--rx-card)); padding: .8rem .8rem .6rem; overflow: hidden; }
.rx-maphead { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: .3rem; }
.rx-maphead b { font-size: .86rem; color: var(--ink); }
.rx-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rx-seg button { border: 0; border-right: 1px solid var(--line); background: var(--paper); color: var(--ink-77); font: inherit; font-size: .72rem; font-weight: 600; padding: .4rem .65rem; cursor: pointer; }
.rx-seg button:last-child { border-right: 0; }
.rx-seg button.is-on { background: var(--rx-acc); color: #fff; }
.rx-map { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; max-height: 720px; }
.rx-map path { stroke: var(--paper); stroke-width: .8; cursor: pointer; transition: fill .25s; vector-effect: non-scaling-stroke; }
.rx-map path:hover { stroke: var(--ink); stroke-width: 1.4; }
.rx-map path.is-sel { stroke: var(--ink); stroke-width: 2.2; }
.rx-map text { font-size: 10px; font-weight: 700; fill: var(--ink); pointer-events: none; opacity: .72; paint-order: stroke; stroke: var(--paper); stroke-width: 2.4px; }
.rx-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; background: var(--rx-panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--rx-shadow); padding: .5rem .7rem; font-size: .76rem; color: var(--ink-77); max-width: 240px; }
.rx-tip b { display: block; color: var(--ink); font-size: .84rem; }
.rx-legend { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .68rem; color: var(--ink-55); margin-top: .3rem; }
.rx-legend__ramp { display: flex; height: 8px; border-radius: 4px; overflow: hidden; flex: 0 1 220px; }
.rx-legend__ramp i { flex: 1; }
.rx-sttab { margin-top: .6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .3rem .9rem; font-size: .74rem; }
.rx-sttab button { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: .4rem; padding: .2rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-77); }
.rx-sttab button b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rx-sttab button:hover { color: var(--rx-acc); }

.rx-listbox { border: 1px solid var(--line); border-radius: var(--rx-r); background: var(--rx-card); display: flex; flex-direction: column; max-height: 860px; }
.rx-listhead { padding: .75rem .9rem .6rem; border-bottom: 1px solid var(--line); }
.rx-listhead b { font-size: .9rem; color: var(--ink); }
.rx-listhead p { margin: .15rem 0 0; font-size: .72rem; color: var(--ink-55); }
.rx-tiles { overflow: auto; padding: .7rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .6rem; overscroll-behavior: contain; }
@media (max-width: 1000px) { .rx-listbox { max-height: none; } .rx-tiles { overflow: visible; } }

/* ---------- jewelry tiles ---------- */
.rx-tile { position: relative; display: flex; flex-direction: column; gap: .35rem; border: 1px solid var(--line); border-radius: var(--rx-r); padding: .8rem .85rem .75rem; background: var(--paper); transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
.rx-tile::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--g, var(--rx-acc)); }
.rx-tile:hover { border-color: color-mix(in srgb, var(--rx-acc) 55%, var(--line)); box-shadow: 0 6px 18px rgba(17,22,28,.08); transform: translateY(-1px); }
.rx-tile__top { display: flex; gap: .5rem; align-items: baseline; justify-content: space-between; }
.rx-tile__rank { font-size: .64rem; font-weight: 700; color: var(--ink-55); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.rx-tile__kind { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-55); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .45rem; white-space: nowrap; }
.rx-tile h3 { margin: 0; font-size: .95rem; line-height: 1.25; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.rx-tile__where { font-size: .74rem; color: var(--ink-55); margin: 0; }
.rx-tile__money { display: flex; gap: 1rem; margin: .2rem 0 0; }
.rx-tile__money div { min-width: 0; }
.rx-tile__money b { display: block; font-size: 1.12rem; font-weight: 400; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rx-tile__money span { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-55); }
.rx-tile__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .1rem 0 0; }
.rx-tag { font-size: .66rem; color: var(--ink-77); background: var(--sur-2, rgba(30,38,43,.05)); border-radius: 5px; padding: .12rem .4rem; }
.rx-tile__acts { display: flex; gap: .4rem; margin-top: auto; padding-top: .35rem; }
.rx-tile__acts a, .rx-tile__acts button { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: .74rem; font-weight: 600; padding: .45rem .5rem; cursor: pointer; text-decoration: none; }
.rx-tile__acts .is-pri { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rx-tile__acts a:hover, .rx-tile__acts button:hover { border-color: var(--rx-acc); }
.rx-more { padding: .2rem .7rem .8rem; text-align: center; }
.rx-empty { padding: 1.4rem; color: var(--ink-55); font-size: .86rem; grid-column: 1 / -1; }
.rx-fine { color: var(--ink-55); font-size: .74rem; line-height: 1.5; margin: .8rem 0 0; }
.rx-fine a { color: inherit; }
.rx-credits { columns: 2 280px; font-size: .74rem; color: var(--ink-55); padding-left: 1.1rem; }
.rx-credits a { color: inherit; }
@media print { .rx-dock, .rx-bar, .rx-filters, .rx-hero { display: none !important; } }

/* ---------- round 2: kbd reset, compact phone toolbar, sticky offsets, short landscape ---------- */
.rx-hero__keys kbd { background: transparent; box-shadow: none; }
@media (hover: none) { .rx-hero__keys, #rx-hero-next { display: none; } }
#register, #find, #org, #reading, #method, #rx-tiles, .rx-listbox { scroll-margin-top: calc(var(--nav-h, 74px) + 60px); }
@media (max-width: 640px) {
  .rx-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .rx-bar__q { grid-column: 1 / -1; }
  .rx-bar .rx-tool { justify-content: center; padding: 0 .4rem; font-size: .76rem; min-width: 0; gap: .3rem; }
  .rx-bar select.rx-tool { padding: 0 .3rem; text-align: center; }
  .rx-bar .rx-menu { right: 0; left: 0; }
  .rx-hero__acts .btn, .rx-hero__acts .rx-ghost { flex: 1 1 auto; justify-content: center; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .rx-dock__in { min-height: 34px; }
  .rx-dock__id span { display: none; }
  .rx-dock__nav { display: flex; }
  .rx-hero__acts { margin-bottom: .6rem; }
  .rx-hero__acts .btn, .rx-ghost { min-height: 36px; }
  .rx-hq input { padding: .35rem .2rem; }
  .rx-hq button { padding: .45rem .9rem; }
  .rx-listbox { max-height: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .rx-dock__in { min-height: 0; padding-block: 6px; }
  .rx-dock__id b { font-size: .8rem; }
  .rx-dock__nav a { font-size: .7rem; }
}

/* ---------- commercial: the NYC map, the view switch, tile extras ---------- */
.rx-map path.is-dim { opacity: .35; }
.rx-map .rx-map__boro { fill: none; stroke: var(--ink-55); stroke-width: 1.1; pointer-events: none; vector-effect: non-scaling-stroke; }
.rx-map .rx-map__boro:hover { stroke: var(--ink-55); stroke-width: 1.1; }
.rx-map__dots { pointer-events: none; }
.rx-map__dots circle { stroke: var(--paper); stroke-width: .5; opacity: .88; }
.rx-map text { font-size: 9px; }
.rx-cdtab { margin-top: .6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .3rem .9rem; font-size: .74rem; }
.rx-cdtab button { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: .4rem; padding: .2rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-77); }
.rx-cdtab button b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rx-cdtab button:hover, .rx-cdtab button.is-on { color: var(--rx-acc); }
.rx-cdtab button:focus-visible { outline: 2px solid var(--rx-acc); outline-offset: 2px; }
.rx-viewseg { margin-right: auto; }
.rx-viewseg button { padding: .55rem .85rem; font-size: .78rem; }
.rx-tile__own { margin: 0; font-size: .72rem; color: var(--ink-77); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-tag--lm { background: color-mix(in srgb, #15803D 12%, transparent); }
.rx-tag--sale { background: color-mix(in srgb, var(--rx-acc) 12%, transparent); }
.rx-tag--warn { background: color-mix(in srgb, #C2410C 13%, transparent); }
.rx-tile__money b { font-size: 1.02rem; }
#atlas, #rx-tiles, .rx-listbox { scroll-margin-top: calc(var(--nav-h, 74px) + 60px); }
@media (max-width: 640px) {
  .rx-bar .rx-viewseg { grid-column: 1 / -1; display: flex; }
  .rx-bar .rx-viewseg button { flex: 1; }
  .rx-tile__money { gap: .7rem; }
}
@media (max-width: 1000px) { .rx-map { max-height: 560px; } }
html[data-dark] body.rx570 .rx-seg button.is-on { color: #0C1116; }
html[data-dark] body.rx570 .rx-hq button { color: #0C1116; }
@media (max-width: 640px) {
  .rx-bar .rx-viewseg { width: 100%; margin: 0; }
  .rx-bar .rx-viewseg button { flex: 1 1 50%; white-space: nowrap; padding: .55rem .4rem; }
  .rx-bar select.rx-tool { text-overflow: ellipsis; }
  .rx-maphead .rx-seg { width: 100%; }
  .rx-maphead .rx-seg button { flex: 1; padding: .45rem .2rem; font-size: .68rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .rx-map { max-height: 340px; }
  .rx-stage { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- rates: the ledger's chart, tiles, sparklines, change colours ---------- */
body.rx570 { --rx-up: #BE123C; --rx-dn: #15803D; }
html[data-dark] body.rx570 { --rx-up: #F87171; --rx-dn: #4ADE80; }
#ledger { scroll-margin-top: calc(var(--nav-h, 74px) + 50px); }
.rx-stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 1000px) { .rx-stage { grid-template-columns: minmax(0, 1fr); } }
.rx-chartbox { position: relative; border: 1px solid var(--line); border-radius: var(--rx-r); background: linear-gradient(180deg, color-mix(in srgb, var(--rx-acc) 3%, var(--rx-card)), var(--rx-card)); padding: .9rem .9rem .8rem; scroll-margin-top: calc(var(--nav-h, 74px) + 56px); }
@media (min-width: 1001px) { .rx-chartbox { position: sticky; top: calc(var(--nav-h, 74px) + 60px); } }
.rx-chead { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-start; justify-content: space-between; }
.rx-chead h3 { margin: 0; font-size: 1.12rem; font-weight: 650; color: var(--ink); line-height: 1.25; }
.rx-chead p { margin: .15rem 0 0; font-size: .72rem; color: var(--ink-55); }
.rx-chartwrap { position: relative; margin-top: .5rem; }
.rx-chart { display: block; width: 100%; height: auto; aspect-ratio: 800 / 380; touch-action: pan-y; overflow: visible; }
.rx-chart .rx-gl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rx-chart .rx-gl--v { stroke-dasharray: 2 4; }
.rx-chart .rx-zero { stroke: var(--ink-55); stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.rx-chart .rx-ax { font-size: 11px; fill: var(--ink-55); font-variant-numeric: tabular-nums; }
.rx-chart .rx-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rx-chart .rx-cross { stroke: var(--ink-55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rx-ctip { position: absolute; z-index: 4; pointer-events: none; background: var(--rx-panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--rx-shadow); padding: .45rem .65rem; font-size: .74rem; color: var(--ink-77); min-width: 150px; }
.rx-ctip b { display: block; color: var(--ink); font-size: .8rem; margin-bottom: .15rem; }
.rx-ctip span, .rx-clegend span { display: flex; align-items: center; gap: .35rem; }
.rx-ctip i, .rx-clegend i { width: 10px; height: 3px; border-radius: 2px; flex: none; }
.rx-ctip span b { display: inline; margin: 0 0 0 auto; font-variant-numeric: tabular-nums; }
.rx-clegend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .76rem; color: var(--ink-77); margin-top: .35rem; }
.rx-clegend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rx-clegend button { border: 0; background: transparent; color: var(--ink-55); cursor: pointer; font-size: .95rem; line-height: 1; padding: 0 .15rem; }
.rx-chint { color: var(--ink-55); font-size: .7rem; }
.rx-cstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .1rem .8rem; margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.rx-cstats div { padding: .3rem 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.rx-cstats span { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-55); }
.rx-cstats b { display: block; font-size: .92rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-cstats em { display: block; font-style: normal; font-size: .66rem; color: var(--ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-quick { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.rx-quick > span { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-55); align-self: center; margin-right: .2rem; }
.rx-quick button { appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink-77); border-radius: 999px; font: inherit; font-size: .72rem; font-weight: 600; padding: .3rem .7rem; cursor: pointer; }
.rx-quick button:hover { border-color: var(--rx-acc); color: var(--ink); }
.rx-cfoot { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; font-size: .7rem; color: var(--ink-55); margin-top: .55rem; }
.rx-cfoot a { color: inherit; }
.rx-ch { font-variant-numeric: tabular-nums; }
.rx-ch.rx-up { color: var(--rx-up) !important; }
.rx-ch.rx-dn { color: var(--rx-dn) !important; }
.rx-tile__money { gap: .9rem; }
.rx-tile__money b { font-size: 1.02rem; }
.rx-tile__money div:first-child b { font-size: 1.24rem; }
.rx-stile.is-sel { border-color: var(--rx-acc); box-shadow: 0 0 0 1px var(--rx-acc) inset; }
.rx-tbtn { all: unset; cursor: pointer; }
.rx-tbtn:hover { color: var(--rx-acc); }
.rx-tbtn:focus-visible { outline: 2px solid var(--rx-acc); outline-offset: 2px; }
.rx-spark { display: block; width: 100%; height: 38px; margin: .15rem 0 0; }
.rx-spark__l { fill: none; stroke: var(--g, var(--rx-acc)); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.rx-spark__a { fill: color-mix(in srgb, var(--g, var(--rx-acc)) 10%, transparent); stroke: none; }
.rx-tile__acts button[disabled] { opacity: .45; cursor: default; }
.rx-mtile h3 { font-size: 1.02rem; }
.rx-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.rx-listbox { max-height: 1080px; }
.rx-method { margin-top: 1.4rem; }
.rx-method .rx-src { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem 1.6rem; }
.rx-method h3 { font-size: .95rem; margin: 0 0 .35rem; color: var(--ink); }
.rx-method p, .rx-method li { font-size: .82rem; line-height: 1.55; color: var(--ink-77); }
.rx-hero .rt-src { color: inherit; }
@media (max-width: 640px) {
  .rx-cstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rx-chead h3 { font-size: 1rem; }
  .rx-chead .rx-seg { width: 100%; }
  .rx-chead .rx-seg button { flex: 1; }
  .rx-tile__money { gap: .7rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .rx-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rx-chartbox { position: static; }
  .rx-cstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rx-listbox { max-height: 640px; }
  .rx-tiles { overflow: auto; }
}
html[data-dark] body.rx570 .rx-seg button.is-on { color: #0C1116; }
html[data-dark] body.rx570 .rx-hq button { color: #0C1116; }
.rx-hero__stamp { color: rgba(255,255,255,.62); font-size: .74rem; margin: .5rem 0 0; }
.rx-hero__stamp b, .rx-hero__stamp a { color: #fff; }
.rx-hero .rt-src { border-color: rgba(255,255,255,.45); }
.rx-br { display: none; }
@media (min-width: 1000px) and (min-height: 501px) { .rx-br { display: inline; } }
