/* Live demos page. Shared tokens, top bar, sheets, buttons and footer live in
   /assets/site.css. Phone first: base styles are a phone, then 640px and 1024px. */

/* Coming here from another page slides the page in from the right, like a pushed screen. */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-new(root) { animation: push-in .32s var(--ease) both; }
  ::view-transition-old(root) { animation: fade-out .2s ease both; }
}
@keyframes push-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

.intro { padding-block: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.intro h1 { font-size: 40px; line-height: 1.02; letter-spacing: -.02em; }
.lede { font-size: 17px; line-height: 1.55; color: var(--text); max-width: 720px; }
@media (min-width: 640px) { .intro { padding-block: 40px 28px; gap: 14px; } .intro h1 { font-size: 56px; } .lede { font-size: 19px; } }
@media (min-width: 1024px) { .intro h1 { font-size: 68px; } }

/* Dataset switch. Phone: a segmented control, the blurb under it. Tablet up: two cards. */
.datasets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.dataset { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); text-align: left; }
.dataset[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.dataset:focus-visible { outline-offset: -3px; }
.dataset[aria-selected="true"]:focus-visible { outline-color: var(--dark-link); }
.dataset-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; white-space: nowrap; }
.dataset-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--track); display: inline-block; flex: none; }
.dataset[aria-selected="true"] .dataset-dot { background: var(--green-bright); }
.dataset-blurb { display: none; }
.soon { font-family: var(--font-mono); font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 999px; background: var(--tint); color: var(--ink); border: 1px solid var(--track); }
.ds-blurb { font-size: 15px; line-height: 1.5; color: var(--text); }
@media (min-width: 640px) {
  .datasets-wrap { padding-bottom: 4px; }
  .datasets { gap: 16px; padding: 0; border: 0; border-radius: 0; background: none; }
  .dataset { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; padding: 20px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); }
  .dataset[aria-selected="true"] { box-shadow: 4px 4px 0 var(--blue); }
  .dataset[aria-selected="true"]:focus-visible { outline-offset: -6px; }
  .dataset-name { font-family: var(--font-heading); font-weight: 800; font-size: 22px; white-space: normal; }
  .dataset-blurb { display: block; font-size: 15px; line-height: 1.45; opacity: .9; }
  .ds-blurb { display: none; }
}

/* Showcase. Phone order: status, widget, under the hood, links. Desktop: widget on the left,
   the rest beside it. */
.showcase { padding-block: 16px 56px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "blurb" "fresh" "host" "hood" "links"; gap: 16px; align-items: start; }
.showcase[hidden] { display: none; }
.ds-blurb { grid-area: blurb; }
.fresh { grid-area: fresh; }
.host-wrap { grid-area: host; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.under-hood { grid-area: hood; min-width: 0; }
.links { grid-area: links; }
#panel-btc { grid-template-areas: none; }
@media (min-width: 640px) { .showcase { padding-block: 24px 72px; gap: 20px; grid-template-areas: "fresh" "host" "hood" "links"; } }
@media (min-width: 1024px) {
  .showcase { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "host fresh" "host hood" "host links"; grid-template-rows: auto auto 1fr; padding-bottom: 88px; }
}

.panel { border: 2px solid var(--ink); border-radius: 16px; background: var(--white); }

/* Freshness, mirrored from the widget. */
.fresh { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.fresh-line { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; }
.fresh-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--track); flex: none; }
.fresh[data-state="live"] .fresh-dot { background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
.fresh[data-state="paused"] { border-color: #F59E0B; background: #FFFBEB; }
.fresh[data-state="paused"] .fresh-dot { background: var(--warning); }
.fresh[data-state="paused"] .fresh-sub { color: #78350F; }
.fresh[data-state="down"] { border-color: #B91C1C; background: #FDECEC; }
.fresh[data-state="down"] .fresh-dot { background: #B91C1C; }
.fresh[data-state="down"] .fresh-sub { color: #7F1D1D; }
.flowline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.flowline .dot { display: none; }
.fresh[data-state="live"] .flowline .dot { display: block; }
.fresh-sub { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* The stand-in host app and the real widget inside it. */
.host-caption { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.host-caption::before { content: ""; width: 14px; height: 1px; background: var(--muted); }
.host {
  --host-bg: #FFFFFF; --host-bar: #F7F9FC; --host-card: #F7F9FC; --host-line: #DCE3EE;
  --host-text: #0E2238; --host-muted: #4A5A70; --host-brand: #1D4ED8;
  border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--host-bg); color: var(--host-text); box-shadow: 4px 4px 0 var(--ink);
}
.host.dark { --host-bg: #0B1B2E; --host-bar: #0E2238; --host-card: #16304D; --host-line: #2A4766; --host-text: #F7F9FC; --host-muted: #A9BBD3; --host-brand: #8FC1FF; }
.host-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--host-line); background: var(--host-bar); }
.host-left { display: flex; gap: 14px; align-items: center; min-width: 0; }
.host-brand { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 16px; }
.host-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--host-brand); display: inline-block; }
.host-link { font-size: 13px; color: var(--host-muted); }
.host-extra { display: none; }
.host-current { font-weight: 700; color: var(--host-text); padding-bottom: 2px; border-bottom: 2px solid var(--host-brand); }
.host-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--host-line); border-radius: 999px; background: var(--host-card); color: var(--host-text); font-size: 13px; }
.host-toggle .icon { width: 18px; height: 18px; }
.host-toggle .icon-sun, .host.dark .host-toggle .icon-moon { display: none; }
.host.dark .host-toggle .icon-sun { display: block; }
/* On a phone the button is just the icon; its label stays for screen readers. */
.host-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The widget reports its height and page.js fits the frame to it. These are only the
   heights before it does (or if it can't). */
.widget-frame { display: block; width: 100%; height: 820px; border: 0; background: var(--host-bg); }
@media (min-width: 560px) { .widget-frame { height: 700px; } }
@media (min-width: 640px) {
  .host { box-shadow: 6px 6px 0 var(--ink); }
  .host-bar { padding: 10px 12px 10px 16px; }
  .host-extra { display: inline; }
  .host-toggle { padding: 0 14px; }
  .host-toggle-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* Under the hood. Phone: rows that open a sheet. Tablet and desktop: the tabs panel. */
.hood { display: flex; flex-direction: column; gap: 10px; }
.hood-title { font-size: 22px; line-height: 1.2; padding-top: 8px; }
.hood-intro { font-size: 15px; line-height: 1.5; color: var(--text); }
.hood-list { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.hood-list li + li { border-top: 1px solid var(--line); }
.hood-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 14px 12px 16px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.hood-row:hover { background: var(--tint); }
.hood-row:focus-visible { outline-offset: -3px; }
.hood-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--tint); color: var(--blue); }
.hood-icon .icon { width: 22px; height: 22px; }
.hood-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hood-name { font-family: var(--font-heading); font-weight: 700; font-size: 17px; }
.hood-sub { font-size: 14px; line-height: 1.35; color: var(--muted); }
.hood-chev { width: 20px; height: 20px; color: var(--muted); }
#tabs-home .tabs-panel { display: none; }
@media (min-width: 640px) {
  .hood { display: none; }
  #tabs-home .tabs-panel { display: block; }
}

.tabs-panel { overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 2px solid var(--ink); }
.tabs [role="tab"] { min-height: 48px; padding: 0 6px; border: 0; background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px; }
.tabs [role="tab"] + [role="tab"] { border-left: 1px solid var(--line); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs [role="tab"]:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.tabs [role="tab"][aria-selected="true"]:focus-visible { outline-color: var(--dark-link); }
.tab-short { display: none; }

/* The same panel inside the phone sheet: a segmented control on top, no frame. */
.sheet .tabs-panel { border: 0; border-radius: 0; background: none; overflow: visible; display: flex; flex-direction: column; gap: 18px; }
.sheet .tabs { gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.sheet .tabs [role="tab"] { min-height: 44px; border: 0; border-radius: 999px; background: transparent; }
.sheet .tabs [role="tab"][aria-selected="true"] { background: var(--ink); }
.sheet .tab-long { display: none; }
.sheet .tab-short { display: inline; }
.sheet .tab-body { padding: 0; }
.sheet .sheet-body { gap: 0; }

.tab-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--text); }
.tab-body[hidden] { display: none; }
.tab-body p { margin: 0; }
.tab-body:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) { .tab-body:not([hidden]) { animation: rise .22s ease; } }

.stages { display: flex; flex-direction: column; gap: 14px; }
.stages li { display: flex; gap: 12px; }
.stage-n { font-size: 12px; color: var(--blue); flex: none; width: 24px; padding-top: 2px; }
.stage-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.journey { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.journey-title { font-size: 12px; color: var(--muted); }
.journey-steps { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.journey-steps div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.journey-steps div:last-child { border: 0; padding: 0; }
.journey-steps dt { color: var(--ink); }
.journey-steps dd { color: var(--blue); }
.journey-note { font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .journey-steps div { flex-direction: row; justify-content: space-between; gap: 10px; } .journey-steps dd { text-align: right; } }

.code { margin: 0; padding: 14px; border-radius: 12px; background: var(--ink); color: var(--dark-text); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.code-light { padding: 12px 14px; background: var(--tint); color: var(--ink); }
#query-result, #ops-result { max-height: 320px; overflow: auto; }

/* Query it */
.control { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.control legend, .control-label { padding: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.control-label { padding: 0; }
.chips { display: flex; gap: 6px; }
.chip { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; white-space: nowrap; }
.chip::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; border: 1.5px solid var(--muted); box-sizing: border-box; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"]::before { border-color: var(--paper); background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink); }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.segmented button { min-height: 44px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.segmented button:focus-visible { outline-offset: -3px; }
.segmented button[aria-pressed="true"]:focus-visible { outline-color: var(--dark-link); }
.chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 359px) {
  .chips { gap: 4px; }
  .chip { gap: 4px; padding: 0 6px; font-size: 12px; }
}
@media (min-width: 640px) {
  .chips { flex-wrap: wrap; gap: 8px; }
  .chip { flex: none; gap: 8px; padding: 0 14px; font-size: 15px; }
}
.answer { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); transition: opacity .15s ease; }
.answer[aria-busy="true"] { opacity: .55; }
.answer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.link-button { min-height: 44px; margin-block: -10px; padding: 0; border: 0; background: none; color: var(--blue); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.answer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.answer-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.answer-stats dt { font-size: 12px; color: var(--muted); }
.answer-stats dd { font-family: var(--font-heading); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
/* A week can run to seven digits: on a phone each figure gets its own row. */
@media (max-width: 479px) {
  .answer-stats { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .answer-stats div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 4px; border-bottom: 1px solid var(--line); }
  .answer-stats div:last-child { border: 0; }
  .answer-stats dt { font-size: 14px; }
  .answer-stats dd { font-size: 22px; }
}
.answer-note, .answer-timing { font-size: 12px; line-height: 1.5; color: var(--muted); }
.answer-timing:empty { display: none; }
.raw { font-size: 14px; }
.raw summary { cursor: pointer; color: var(--blue); min-height: 44px; display: flex; align-items: center; }
.raw[open] { display: flex; flex-direction: column; gap: 8px; }

/* Embed this */
.btn-small { align-self: flex-start; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; }
.btn-small:disabled { opacity: .6; cursor: progress; }

/* Ops. A held figure (not current) keeps its value, muted and dashed, with a time. */
:root {
  --ops-quiet: #EEF2F7;
  --ops-held: #FAFBFD;
  --ops-line: #DCE3EE;
  --ops-track: #E3E9F2;
  --ops-good-tint: #DCF3E2;
  --ops-good-ink: #14532D;
  --ops-warn-tint: #FEF3C7;
  --ops-warn-ink: #78350F;
  --ops-warn-line: #F59E0B;
  --ops-warn-bg: #FFFBEB;
}
.ops-head { display: flex; flex-direction: column; gap: 8px; }
.ops-asof { align-self: flex-start; font-size: 12px; color: var(--muted); }
.ops-asof:empty { display: none; }
.ops { display: flex; flex-direction: column; gap: 18px; }
.ops[aria-busy="true"] .ops-loading { opacity: .6; }
.ops-loading { font-size: 14px; color: var(--muted); }
.ops-title { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.ops-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ops-section { display: flex; flex-direction: column; gap: 10px; }
.ops-note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.ops-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ops-icon.is-good { color: var(--green); width: 18px; height: 18px; }
.ops-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ops-quiet); color: var(--text); }
.ops-badge.is-good { background: var(--ops-good-tint); color: var(--ops-good-ink); }
.ops-badge.is-warn { background: var(--ops-warn-tint); color: var(--ops-warn-ink); }
.ops-badge-sm { margin-left: auto; padding: 3px 8px; }
.ops-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ops-badge.is-good .ops-badge-dot { background: var(--green); }
.ops-badge.is-warn .ops-badge-dot { background: var(--warning); }
.ops-slo { border: 2px solid var(--ink); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.ops-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ops-hero-num { font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.ops-hero-sub { font-size: 14px; line-height: 1.4; color: var(--text); }
.ops-budget { display: flex; flex-direction: column; gap: 6px; }
.ops-budget-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.ops-budget-row .mono { color: var(--ink); }
.ops-budget-row .is-over-text { color: var(--accent-hover); }
.ops-bar { height: 10px; border-radius: 999px; background: var(--ops-track); overflow: hidden; }
.ops-bar-fill { height: 100%; border-radius: 999px; background: var(--green); }
.ops-bar-fill.is-warn { background: var(--warning); }
.ops-bar-fill.is-over { background: var(--accent); }
.ops-alert { border: 1px solid var(--ops-warn-line); background: var(--ops-warn-bg); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ops-warn-ink); }
.ops-alert-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); flex: none; margin-top: 5px; }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ops-card, .ops-box { border: 1px solid var(--ops-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; background: var(--white); }
.ops-box { gap: 8px; }
.ops-card-label { font-size: 13px; color: var(--muted); }
.ops-card-num { font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1.15; color: var(--ink); }
.ops-card-sub { font-size: 12px; line-height: 1.4; color: var(--muted); }
.ops-box-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.ops-box-num { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--ink); }
.ops-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-chip { overflow-wrap: anywhere; font-size: 12px; padding: 4px 8px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.ops-chip-time { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--ops-quiet); color: var(--text); white-space: nowrap; }
.ops-chip-time .ops-icon { width: 12px; height: 12px; stroke-width: 2.4; }
.ops-cost .ops-chip-time { margin-left: auto; }
.ops-code { border-radius: 12px; background: var(--ink); color: var(--dark-text); padding: 12px 14px; font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.ops-code-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ops-code-key { color: var(--dark-link); }
.ops-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ops-empty-good { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.ops-list { border: 1px solid var(--ops-line); border-radius: 12px; overflow: hidden; }
.ops-gap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--ops-line); font-size: 13px; }
.ops-gap-len { font-weight: 500; }
.ops-gap-why { overflow-wrap: anywhere; grid-column: 1 / -1; color: var(--muted); }
.ops-list-foot { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.ops-cost { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ops-cost-num { font-family: var(--font-heading); font-weight: 800; font-size: 32px; line-height: 1; color: var(--ink); }
.ops-cost-cur { font-size: 13px; color: var(--muted); }
.is-held.ops-slo { border-color: var(--track); background: var(--ops-held); }
.is-held.ops-card, .is-held.ops-box, .is-held.ops-list, .is-held.ops-empty { border-style: dashed; border-color: var(--line); background: var(--ops-held); }
.is-held .ops-card-num, .is-held .ops-hero-num, .is-held .ops-box-num, .is-held .ops-cost-num { color: var(--text); }
.is-held .ops-bar-fill { background: var(--muted); }
.is-held.ops-code { background: var(--text); }
.ops-banner { border: 1px solid var(--track); background: var(--ops-quiet); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.ops-banner p { font-size: 14px; line-height: 1.45; }
.ops-banner strong { color: var(--ink); }
.ops-banner .ops-icon { margin-top: 3px; }
.ops-banner-sub { margin-top: 4px !important; font-size: 12px !important; color: var(--muted); }

/* Links out */
.links { display: flex; flex-direction: column; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--blue); font-size: 15px; text-decoration: none; }
.links a:first-child { border-top: 1px solid var(--line); }
.links .icon { width: 18px; height: 18px; }
@media (min-width: 640px) {
  .links { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .links a, .links a:first-child { border: 0; min-height: 44px; justify-content: flex-start; gap: 6px; }
}

/* Bitcoin: coming soon */
.soon-panel { padding: 24px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.soon-panel h2 { font-size: 26px; line-height: 1.15; }
.soon-panel p { font-size: 16px; line-height: 1.55; color: var(--text); }
.soon-panel a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); align-self: flex-start; }
