@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/HankenGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root, [data-theme="dark"] {
  --burn-x: 0px;
  --burn-y: 0px;
  --ground: #0e0e0e;
  --deep: #0b0b0b;
  --surface: #111111;
  --surface-2: #121212;
  --surface-3: #141414;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --faint: #5a5a5a;
  --dim: #7a7a7a;
  --muted: #9a9a9a;
  --text: #b8b8b8;
  --strong: #f2f2f0;
  --signal: #f95606;
  --signal-text: #f95606;
  --icon: #8a8a8a;
  --logo: #b8b8b8;
  --scrim: rgba(14, 14, 14, 0.72);
  --scroll-thumb: var(--line-2);
  --scroll-thumb-hover: color-mix(in srgb, var(--line-2) 75%, var(--logo));
}
[data-theme="paper"] {
  --ground: #f2f2f0;
  --deep: #f5f5f3;
  --surface: #f0f0ee;
  --surface-2: #ececeb;
  --surface-3: #e4e4e2;
  --line: #d3d3d1;
  --line-2: #bbbbba;
  --faint: #929291;
  --dim: #6f6f6f;
  --muted: #535353;
  --text: #3d3d3d;
  --strong: #0e0e0e;
  --signal: #f95606;
  --signal-text: #c24305;
  --icon: #5c5c5c;
  --logo: #5a5a5a;
  --scrim: rgba(14, 14, 14, 0.46);
  --scroll-thumb: var(--line-2);
  --scroll-thumb-hover: color-mix(in srgb, var(--line-2) 75%, var(--logo));
}
[data-theme="orange"] {
  --ground: #0d0906;
  --deep: #090604;
  --surface: #150c06;
  --surface-2: #1b0e06;
  --surface-3: #241208;
  --line: #461c06;
  --line-2: #632506;
  --faint: #9c3806;
  --dim: #d64b06;
  --muted: #e85106;
  --text: #f95606;
  --strong: #fdc098;
  --signal: #f2f2f0;
  --signal-text: #f2f2f0;
  --icon: #8a8a8a;
  --logo: #f2f2f0;
  --scrim: rgba(13, 9, 6, 0.78);
  --scroll-thumb: var(--line-2);
  --scroll-thumb-hover: color-mix(in srgb, var(--line-2) 75%, var(--logo));
}
[data-theme="green"] {
  --ground: #0b0f0c;
  --deep: #090c09;
  --surface: #0c120e;
  --surface-2: #0d1610;
  --surface-3: #102016;
  --line: #13301f;
  --line-2: #17422a;
  --faint: #1e6b40;
  --dim: #298b54;
  --muted: #32af69;
  --text: #3ddc84;
  --strong: #c0f6d7;
  --signal: #f95606;
  --signal-text: #f95606;
  --icon: #8a8a8a;
  --logo: #b8b8b8;
  --scrim: rgba(11, 15, 12, 0.78);
  --scroll-thumb: var(--line-2);
  --scroll-thumb-hover: color-mix(in srgb, var(--line-2) 75%, var(--logo));
}

* { box-sizing: border-box; }

/* Hairline thumb on every scroller. Hover mixes toward --logo, so dark fields
   get a lighter thumb and paper gets a darker one. Not the signal orange. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}
*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
}
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb:window-inactive {
  background: var(--scroll-thumb);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}
html, body { margin: 0; background: var(--ground); color: var(--text); }
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
@media (min-width: 960px) {
  html, body, #app { height: 100dvh; overflow: hidden; }
}
@media (max-width: 959px) {
  html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
}
body {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.viewport { min-height: 100%; background: var(--ground); }
.scaler { width: 100%; }
.stage {
  width: 1920px;
  height: 1080px;
  position: relative;
  background: var(--ground);
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding: 36px 40px 28px;
  overflow: hidden;
}
@media (min-width: 960px) {
  .viewport { height: 100%; overflow: hidden; }
  .stage.desktop {
    position: fixed;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translate(calc(-50% + var(--burn-x)), calc(-50% + var(--burn-y))) scale(min(100vw / 1920px, 100dvh / 1080px));
  }
}
.stage.mobile {
  width: min(480px, 100%);
  height: auto;
  min-height: 100vh;
  margin: 0 auto;
  transform: translate(var(--burn-x, 0px), var(--burn-y, 0px));
  padding: 18px 16px 28px;
  overflow: visible;
}
.frame-line {
  pointer-events: none;
  position: absolute;
  inset: 16px;
  border: 1px solid var(--line-2);
}
.stage.mobile .frame-line { inset: 8px; }
.ticks-top {
  pointer-events: none;
  position: absolute;
  top: 16px;
  left: 40px;
  right: 28px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 32px);
}
.corner {
  position: absolute;
  top: 28px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.corner.l { left: 32px; }
.corner.r { right: 32px; }
.stage.mobile .corner { font-size: 9px; top: 16px; }
.stage.mobile .corner.l { left: 16px; }
.stage.mobile .corner.r { right: 16px; }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 18px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.04em;
  color: var(--logo);
  line-height: 1;
}
.logo i {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin-left: 0.06em;
  background: #f95606;
  transform: translateY(-0.05em);
}
.brand-rule { width: 1px; height: 36px; background: var(--line-2); }
.titles h1 {
  margin: 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--strong);
}
.titles p { margin: 4px 0 0; font-size: 11px; letter-spacing: 0.12em; color: var(--dim); }
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  border: 1px dashed var(--faint);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  font-weight: 700;
  vertical-align: 2px;
}
.live-pip {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent);
  animation: live-pulse 1.8s ease-out infinite;
}
.panel:not(.is-live) .live-pip,
.live-tag.off .live-pip {
  background: var(--faint);
  box-shadow: none;
  animation: none;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 50%, transparent); }
  70% { box-shadow: 0 0 0 5px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.head-right { display: flex; align-items: center; gap: 16px; }
.clock-block { text-align: right; }
.clock-block strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.clock-block span { color: var(--dim); font-size: 11px; letter-spacing: 0.12em; }
.clock-block [data-k="status"] { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ico {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
  color: var(--icon);
}
.status-ico { display: inline-flex; align-items: center; flex: none; }
.status-ico[data-state="live"] .ico {
  color: var(--signal);
  animation: icon-live 1.8s ease-in-out infinite;
}
@keyframes icon-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  margin-left: 6px;
  animation: live-pulse 1.8s ease-out infinite;
}
.dot.off { background: var(--faint); box-shadow: none; animation: none; }
.ccy {
  min-width: 78px;
  height: 32px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--strong);
  letter-spacing: 0.12em;
  font-weight: 700;
}
.ruler {
  height: 10px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 12px);
}

.ticker {
  margin-top: 10px;
  height: 46px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.ticker > b {
  flex: none;
  width: 94px;
  display: grid;
  place-items: center;
  background: var(--line);
  color: var(--strong);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.ticker-view { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  height: 100%;
  padding: 0;
  animation: marquee var(--ticker-duration, 52s) linear infinite;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ticker-copy {
  display: flex;
  align-items: center;
  flex: none;
  gap: 16px;
  height: 100%;
  padding-right: 16px;
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  height: 100%;
}
.ticker-track em { font-style: normal; color: var(--dim); font-weight: 600; }
.ticker-track b {
  display: inline;
  width: auto;
  background: none;
  color: var(--strong);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tick-sep { color: var(--signal-text); font-weight: 500; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--ticker-shift, -50%), 0, 0); }
}

.board {
  flex: 1;
  min-height: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 684fr) minmax(0, 344fr) minmax(0, 344fr) minmax(0, 396fr);
  grid-template-rows: minmax(0, 196fr) minmax(0, 212fr) minmax(0, 172fr) minmax(0, 190fr);
  gap: 16px 24px;
}
.stage.mobile .board { display: flex; flex-direction: column; gap: 12px; overflow: visible; }
.stage.mobile .panel { min-height: 160px; overflow: visible; }
.stage.mobile .pb { overflow: visible; }
.stage.mobile .chart-wrap { height: 120px; flex: none; }

.panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  border: 1px solid var(--line);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: -3px;
  pointer-events: none;
  background:
    linear-gradient(var(--signal), var(--signal)) 0 0 / 8px 1.2px no-repeat,
    linear-gradient(var(--signal), var(--signal)) 0 0 / 1.2px 8px no-repeat,
    linear-gradient(var(--signal), var(--signal)) 100% 0 / 8px 1.2px no-repeat,
    linear-gradient(var(--signal), var(--signal)) 100% 0 / 1.2px 8px no-repeat,
    linear-gradient(var(--faint), var(--faint)) 0 100% / 8px 1.2px no-repeat,
    linear-gradient(var(--faint), var(--faint)) 0 100% / 1.2px 8px no-repeat,
    linear-gradient(var(--faint), var(--faint)) 100% 100% / 8px 1.2px no-repeat,
    linear-gradient(var(--faint), var(--faint)) 100% 100% / 1.2px 8px no-repeat;
}
.ph {
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.ph .idx { color: var(--signal-text); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.ph i { width: 1px; height: 12px; background: var(--line-2); }
.ph .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  background: transparent;
  border: 0;
  padding: 0;
}
.ph[data-tip],
.ph[data-tip] .name,
.dh[data-tip] {
  cursor: help;
}
.ph[data-tip] .name {
  text-decoration: underline dotted;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.ph[data-tip]:hover .name,
.stage.mobile .ph[data-tip] .name { text-decoration-color: var(--faint); }
.ph-expand,
.dh .x { cursor: pointer; }
.ph-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  flex: none;
  min-width: 0;
  max-width: 72%;
}
.ph-expand {
  flex: none;
  align-self: stretch;
  height: auto;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  line-height: 1;
}
.ph .meta {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.ph .meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb { position: relative; flex: 1; min-height: 0; padding: 8px 12px 8px; overflow: hidden; display: flex; flex-direction: column; }
.stage.desktop [data-panel="price"] { grid-column: 1; grid-row: 1 / span 2; }
.stage.desktop [data-panel="rainbow"] { grid-column: 2; grid-row: 1; }
.stage.desktop [data-panel="fng"] { grid-column: 3; grid-row: 1; }
.stage.desktop [data-panel="whale"] { grid-column: 4; grid-row: 1; }
.stage.desktop [data-panel="s2f"] { grid-column: 2; grid-row: 2; }
.stage.desktop [data-panel="halving"] { grid-column: 3; grid-row: 2; }
.stage.desktop [data-panel="dom"] { grid-column: 4; grid-row: 2; }
.stage.desktop [data-panel="mempool"] { grid-column: 1; grid-row: 3; }
.stage.desktop [data-panel="hash"] { grid-column: 2 / span 2; grid-row: 3; }
.stage.desktop [data-panel="obit"] { grid-column: 4; grid-row: 3; }
.stage.desktop [data-panel="nodes"] { grid-column: 1; grid-row: 4; }
.stage.desktop [data-panel="stack"] { grid-column: 2; grid-row: 4; }
.stage.desktop [data-panel="cold"] { grid-column: 3; grid-row: 4; }
.stage.desktop [data-panel="donate"] { grid-column: 4; grid-row: 4; }

.price-num {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -0.04em;
  color: var(--strong);
  line-height: 0.95;
}
.stage.mobile .price-num { font-size: 42px; }
.stage.mobile .price-top { flex-direction: column; align-items: stretch; gap: 8px; }
.stage.mobile .ranges { width: 100%; justify-content: flex-end; }
.signal-text { color: var(--signal-text); font-weight: 700; letter-spacing: 0.06em; margin-top: 6px; font-size: 16px; }
.price-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ranges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.type-seg { display: inline-flex; gap: 6px; flex: none; }
.seg, .ghost {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 600;
}
.seg.on {
  background: transparent;
  color: var(--signal-text);
  border-color: var(--line-2);
  box-shadow: inset 0 -2px 0 var(--signal);
}
.chart-wrap { position: relative; flex: 1; min-height: 0; margin-top: 6px; cursor: crosshair; touch-action: none; }
.stage.mobile .chart-wrap { height: 110px; }
.chart-scrub { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.chart-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--signal);
}
.chart-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2px var(--ground);
}
.chart-readout {
  position: absolute;
  top: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 8px;
  background: var(--ground);
  color: var(--signal-text);
  border: 1px solid var(--signal);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  white-space: pre;
}
.chart { width: 100%; height: 100%; display: block; }
.chart-area { fill: var(--strong); opacity: 0.045; }
.chart-line { fill: none; stroke: var(--text); stroke-width: 1.6; }
.chart-cross { stroke: var(--faint); stroke-dasharray: 2 3; }
.live-ring { fill: none; stroke: var(--signal); animation: ring-pulse 1.8s ease-in-out infinite; }
.live-dot { fill: var(--signal); }
@keyframes ring-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}
.wick, .body { stroke-width: 1; }
.wick.up, .body.up { stroke: var(--strong); fill: var(--strong); }
.wick.down, .body.down { stroke: var(--muted); fill: var(--muted); }
.wick.last, .body.last { stroke: var(--signal); }
.body.last { fill: none; }
.axis, .kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.price-foot { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; font-size: 10.5px; letter-spacing: 0.06em; }
.price-foot b { color: var(--strong); font-weight: 600; }

.band {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  flex: 1 1 auto;
  min-height: 18px;
  height: auto;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
/* Desktop rows share the panel. min-height: 0 overrides the flex min-content
   floor so a short body can shrink the rows instead of clipping the last one. */
.stage.desktop .band {
  flex: 1 1 0;
  min-height: 0;
}
.band b { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--strong); }
.band > * { position: relative; z-index: 1; }
.band.now { color: var(--strong); }
.band.now::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -2px -8px;
  background: var(--surface);
  outline: 1px solid var(--faint);
  pointer-events: none;
}
.sq { width: 9px; height: 9px; background: var(--text); }
.band.now .sq { background: var(--signal); }
.sq.s0 { opacity: 1; } .sq.s1 { opacity: 0.86; } .sq.s2 { opacity: 0.72; } .sq.s3 { opacity: 0.58; }
.sq.s4 { opacity: 0.46; } .sq.s5 { opacity: 0.34; } .sq.s6 { opacity: 0.24; } .sq.s7 { opacity: 0.16; }

.ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
}
.ring-face { position: relative; display: grid; place-items: center; }
.ring-face svg { display: block; }
.ring-num {
  position: absolute;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--strong);
  letter-spacing: -0.04em;
  line-height: 1;
}
.fng-label { letter-spacing: 0.28em; color: var(--text); font-weight: 700; font-size: 12px; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 7; }
.ring-val { fill: none; stroke: var(--strong); stroke-width: 7; stroke-linecap: butt; }

.whale {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
}
[data-panel="whale"] .pb.is-more::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 12px;
  bottom: 8px;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ground));
}
.stage.mobile .whale { height: auto; flex: none; max-height: 280px; }
.tx {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--faint);
  padding: 6px 10px;
  text-align: left;
  width: 100%;
}
.tx b { color: var(--strong); font-weight: 600; }
.tx small { color: var(--dim); letter-spacing: 0.06em; }
.empty, .note { color: var(--dim); font-size: 11px; letter-spacing: 0.08em; line-height: 1.45; }

.s2f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.s2f-k { margin-top: 10px; }
.k { color: var(--dim); font-size: 10px; letter-spacing: 0.12em; }
.v { color: var(--strong); font-weight: 600; letter-spacing: 0.04em; font-size: 12px; }
.ratio {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--strong);
  letter-spacing: -0.04em;
  margin: 6px 0;
}
.ratio-x { font-size: 16px; color: var(--dim); font-weight: 800; }
.dash { border: 0; border-top: 1px dashed var(--line); margin: 8px 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; line-height: 1.3; }
.row b { color: var(--strong); font-weight: 600; }

.halving-days {
  text-align: center;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 46px;
  color: var(--strong);
  letter-spacing: -0.04em;
  line-height: 1;
}
.halving-days span { line-height: 1; }
.halving-days .halving-unit {
  font-size: 22px;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}
.clock-mid { text-align: center; letter-spacing: 0.16em; color: var(--text); font-size: 13px; margin: 4px 0 2px; }
[data-panel="halving"] .dash { margin: 4px 0; }
[data-panel="halving"] .bar { margin: 5px 0 4px; }
[data-panel="halving"] .row { line-height: 1.25; }
.bar { height: 2px; border: 0; margin: 6px 0 4px; background: var(--line); }
.bar i { display: block; height: 100%; background: var(--signal); }

.dom-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dom-head .ratio { margin: 0; font-size: 36px; }
.dom-chg { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 6px; }
.dom-chg.up { color: var(--strong); background: var(--surface); }
.dom-chg.down { color: var(--signal-text); background: var(--surface); }
.dom-chart { flex: 1; min-height: 48px; margin-top: 6px; }
.dom-chart svg { width: 100%; height: 100%; display: block; }
.dom-wait {
  height: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.cards {
  display: flex;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.card {
  flex: 1 0 76px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 76px;
  padding: 3px 3px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-out;
}
.card.leaving { transform: translateY(-44px); opacity: 0; }
.card.next { border-color: var(--signal); }
.card .fee,
.card .rng,
.card .sz,
.card .eta { line-height: 1; white-space: nowrap; }
.card .fee { color: var(--strong); font-size: 10px; font-weight: 700; }
.card .rng { color: var(--dim); font-size: 8px; }
.card .sz { font-family: "Hanken Grotesk", sans-serif; font-weight: 700; color: var(--strong); font-size: 14px; }
.card .fill { height: 4px; background: var(--line); margin-top: 2px; }
.card .fill i { display: block; height: 100%; background: var(--text); }
.card .eta { font-size: 9px; letter-spacing: 0.02em; color: var(--muted); }
.card.next .eta { color: var(--signal-text); font-weight: 700; }
.stage.mobile .cards { flex: none; height: auto; overflow-y: visible; }
.mp-foot { display: flex; justify-content: space-between; gap: 8px; flex: none; font-size: 10.5px; line-height: 1.15; margin-top: 3px; }
.mp-foot b { color: var(--strong); }

.hash {
  display: grid;
  /* This panel spans two equal columns plus the 24px gap. A plain half
     lands 25px past panel 05's content edge (half the gap, plus the 13px
     border-and-padding inset). The value column ends on that edge. */
  grid-template-columns: calc(50% - 25px) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  align-items: stretch;
}
.hash-rows {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 12px;
  line-height: 1.3;
}
.hash-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 1px 0; min-width: 0; }
.hash-rows .k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash-rows b { margin-left: auto; flex: none; text-align: right; white-space: nowrap; color: var(--strong); font-weight: 600; }
.hash-side {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.stage.mobile .hash { grid-template-columns: minmax(0, 1fr); height: auto; }
.stage.mobile .hash-side { height: auto; margin-top: 12px; }
.mini-ring { position: relative; width: 72px; height: 72px; display: grid; place-items: center; flex: none; }
.mini-ring svg { display: block; }
.mini-ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--strong);
  line-height: 1;
}
.hash-cap { text-align: center; color: var(--dim); font-size: 10px; letter-spacing: 0.04em; line-height: 1.35; }

.obit { display: grid; place-items: center; text-align: center; height: 100%; }
.obit-num {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 62px;
  color: var(--strong);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stage.mobile .obit-num { font-size: 48px; }

.nodes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; height: 100%; min-height: 0; align-items: stretch; }
[data-panel="nodes"] .pb { padding: 8px 12px; }
.nodes-copy { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.node-num {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--strong);
  letter-spacing: -0.03em;
}
.mix { display: flex; height: 6px; gap: 2px; margin: 6px 0 4px; }
.mix i { display: block; height: 100%; background: var(--text); }
.mix-key { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; line-height: 1.2; margin-top: 2px; }
.mix-key b { color: var(--strong); font-weight: 600; }
.nodes .note { margin-top: 6px; }
.globe-box {
  position: relative;
  background: var(--deep);
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  justify-self: stretch;
}
.globe-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.globe-tip {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  background: var(--ground);
  color: var(--strong);
  border: 1px solid var(--strong);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}
.stage.mobile .nodes { grid-template-columns: minmax(0, 1fr); }
.stage.mobile .nodes-copy { justify-content: flex-start; }
.stage.mobile .globe-box { width: 100%; height: auto; aspect-ratio: 1; justify-self: stretch; }

.stack { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 0; justify-content: center; }
.btc-input { position: relative; min-width: 0; }
.btc-input label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.btc-input:focus-within label { border-bottom-color: var(--strong); }
.btc-input span, .btc-input input {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--strong);
  line-height: 1;
}
.btc-input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  caret-color: var(--strong);
}
.btc-input input::placeholder { color: var(--faint); }
.btc-blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.stack.is-private .btc-blur,
.stack:not(.is-private):not(.is-empty) .btc-blur { pointer-events: auto; }
.stack:not(.is-private) .btc-input:has(input:focus) .btc-blur { pointer-events: none; }
.stack.is-private .btc-input span,
.stack.is-private .btc-input input,
.stack.is-private .stack-fiat span {
  filter: blur(8px);
  user-select: none;
}
.stack-fiat {
  align-self: flex-start;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--strong);
  line-height: 1;
  text-align: left;
}
.btc-blur:focus-visible,
.stack-fiat:focus-visible { box-shadow: inset 0 0 0 1px var(--signal); }
.stack-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stack-rate { color: var(--dim); font-size: 11px; letter-spacing: 0.04em; }
.blur-bar, .blur-lg {
  height: 16px;
  background: var(--dim);
  filter: blur(3px);
  border-radius: 2px;
  margin: 8px 0;
}
.blur-lg { height: 22px; width: 70%; }
.stage.mobile .btc-input span, .stage.mobile .btc-input input { font-size: 36px; }

.cold { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 0; justify-content: center; }
.cold-total { font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.04em; color: var(--strong); line-height: 1; }
.cold-usd { color: var(--text); font-weight: 700; letter-spacing: 0.04em; margin-top: 4px; }
.cold-list { list-style: none; margin: 6px 0 0; padding: 0; overflow: auto; }
.cold-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; line-height: 1.3; padding: 3px 0; border-top: 1px solid var(--line); }
.cold-list b { color: var(--strong); font-weight: 600; }
.stage.mobile .cold { height: auto; justify-content: flex-start; }
.stage.mobile .cold-list li { flex-direction: column; align-items: stretch; gap: 4px; }
.stage.mobile .cold-total,
.stage.mobile .cold-usd,
.stage.mobile .cold-list b {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.tip {
  position: fixed;
  z-index: 80;
  max-width: 260px;
  padding: 8px 10px;
  background: var(--ground);
  color: var(--strong);
  border: 1px solid var(--strong);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  pointer-events: none;
}

.donate { display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; height: 100%; min-height: 0; }
.donate .donate-qr-host { width: 124px; height: 124px; max-height: 100%; }
.donate .donate-qr-host > .donate-qr { width: 100%; height: 100%; }

/* The Classic notice sits in the 1080 stage and shortens every panel. Firefox
   also paints a taller font box than Chrome, so the last row was clipped by
   overflow:hidden. Compact rules apply only while that notice is open.
   cqh tracks the panel body, so the big numerals scale down only when the
   body is shorter than the full board. Dismissing the notice restores it. */
.stage.desktop [data-panel="s2f"] .pb,
.stage.desktop [data-panel="halving"] .pb,
.stage.desktop [data-panel="hash"] .pb {
  container-type: size;
  container-name: card;
}
.stage.desktop:has(.look) .band,
.stage.desktop:has(.look) .band span,
.stage.desktop:has(.look) .band b { line-height: 1; }
.stage.desktop:has(.look) [data-panel="s2f"] .ratio {
  font-size: clamp(30px, 31cqh, 40px);
  line-height: 1;
  margin: 4px 0;
}
.stage.desktop:has(.look) .s2f-k { margin-top: 6px; }
.stage.desktop:has(.look) [data-panel="s2f"] .dash { margin: 5px 0; }
.stage.desktop:has(.look) .ring-wrap { gap: 6px; }
.stage.desktop:has(.look) .fng-label { line-height: 1; }
.stage.desktop:has(.look) .clock-mid { margin: 2px 0 1px; }
.stage.desktop:has(.look) [data-panel="halving"] .bar { margin: 3px 0 2px; }
.stage.desktop:has(.look) .halving-days { font-size: clamp(36px, 35cqh, 46px); }
.stage.desktop:has(.look) .dom-chart { min-height: 32px; }
.stage.desktop:has(.look) .hash-rows { font-size: 11.5px; line-height: 1.15; }
.stage.desktop:has(.look) .hash-rows div { margin: 0; min-height: 0; }
.stage.desktop:has(.look) .mini-ring {
  width: clamp(56px, 62cqh, 72px);
  height: clamp(56px, 62cqh, 72px);
}
.stage.desktop:has(.look) .mini-ring svg { width: 100%; height: 100%; }
.stage.desktop:has(.look) .mini-ring strong { font-size: clamp(13px, 16cqh, 16px); }
.stage.desktop:has(.look) .hash-side { gap: 2px; }
.stage.desktop:has(.look) .hash-cap { line-height: 1.1; }
.stage.desktop:has(.look) .donate .donate-qr-host,
.stage.desktop:has(.look) .donate .donate-qr-host > .donate-qr {
  width: 104px;
  height: 104px;
}
.stage.desktop:has(.look) .mix { margin: 4px 0 2px; }
.stage.desktop:has(.look) .nodes .note { margin-top: 2px; }
.addr { color: var(--strong); font-weight: 600; letter-spacing: 0.04em; font-size: 12px; line-height: 1.45; word-break: break-all; }

.foot { margin-top: 8px; flex: none; }
.foot-line { display: flex; align-items: center; gap: 14px; }
.sources { color: var(--dim); font-size: 10.5px; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.spacer { display: none; }
.report {
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-3);
  color: var(--strong);
  border: 1px solid var(--muted);
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
}
.mode-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}
.modes { display: flex; }
.foot-btns { display: flex; gap: 8px; }
.modes button, .foot-btns button, .foot-btns a.classic {
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  flex: none;
}
.foot-btns { flex: none; }
.foot-btns a.classic {
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.foot-btns a.classic:hover,
.foot-btns a.classic:active {
  background: var(--strong);
  color: var(--ground);
  border-color: var(--strong);
}
.foot-btns a.classic:is(:hover, :active) .ico { color: inherit; }
.foot-btns a.classic:active { box-shadow: inset 0 0 0 2px var(--ground); }
.foot-btns a.classic:focus-visible {
  outline: 2px solid var(--strong);
  outline-offset: 2px;
}
.modes button.on,
.m-modes button.on {
  background: transparent;
  color: var(--signal-text);
  border-color: var(--line-2);
  box-shadow: inset 0 -2px 0 var(--signal);
}
.foot-meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; color: var(--dim); font-size: 11px; letter-spacing: 0.12em; }
/* New-look banner. In flow under the ticker, so the board moves down. */
.look-slot { display: block; }
.look {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid #f95606;
  color: var(--strong);
  animation: look-in 180ms ease;
}
.look-tag {
  flex: none;
  padding: 5px 8px;
  background: #f95606;
  color: #0e0e0e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.look-copy {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--strong);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.look-open {
  flex: none;
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--strong);
  background: transparent;
  color: var(--strong);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-decoration: none;
}
.look-open:hover,
.look-open:active {
  background: var(--strong);
  color: var(--ground);
  border-color: var(--strong);
}
.look-open:focus-visible {
  outline: 2px solid var(--strong);
  outline-offset: 2px;
}
.look-x {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  color: var(--strong);
  border: 1px solid var(--line-2);
  font-size: 22px;
  line-height: 1;
}
.stage.mobile .look {
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}
.stage.mobile .look-tag { order: 1; }
.stage.mobile .look-x { order: 2; margin-left: auto; }
.stage.mobile .look-copy {
  order: 3;
  flex: 1 1 100%;
  font-size: 16px;
}
.stage.mobile .look-open { order: 4; flex: 1 1 100%; }
@keyframes look-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes classic-pulse {
  0%, 100% { border-color: var(--line-2); box-shadow: 0 0 0 0 rgba(249, 86, 6, 0); }
  50% { border-color: #f95606; box-shadow: 0 0 0 4px rgba(249, 86, 6, 0.45); }
}
a.classic.is-noticed {
  animation: classic-pulse 1.2s ease-in-out 3;
}
@media (prefers-reduced-motion: reduce) {
  .look, a.classic.is-noticed { animation: none; }
}
/* New-look notice end */
.sig {
  display: inline-flex;
  align-items: baseline;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--logo);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sig i {
  align-self: center;
  width: 2px;
  height: 2px;
  margin: 0 5px 1px 3px;
  background: #f95606;
}
.sig em {
  margin-right: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 10px;
  color: #f95606;
  letter-spacing: 0;
}
.sig b { font-weight: 800; font-size: 12px; color: var(--strong); letter-spacing: -0.01em; }
[data-theme="orange"] .sig b { color: var(--logo); }
.barcode { color: var(--dim); display: block; }

.m-foot { display: none; }
.stage.mobile .d-foot { display: none; }
.stage.mobile .m-foot { display: block; }
.m-modes { display: grid; grid-template-columns: auto 1fr 1fr 1fr 1fr; gap: 6px; align-items: center; }
.m-modes button { height: 36px; }
.m-report { width: 100%; height: 48px; margin: 10px 0; font-size: 12px; justify-content: center; }
.m-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stage.mobile .m-tools .foot-btns { display: contents; }
.m-tools button, .m-tools a.classic { height: 36px; font-size: 8.5px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px; }
.more-label { color: var(--faint); font-size: 8.5px; letter-spacing: 0.12em; margin: 4px 0; }
.collapse {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--ground);
  border: 1px solid var(--line);
  color: var(--text);
  letter-spacing: 0.1em;
  font-size: 10.5px;
}
.collapse > span:first-child { color: var(--signal-text); }
.collapse b { margin-left: auto; color: var(--strong); font-weight: 600; }
.stage.desktop .collapse, .stage.desktop .more-label { display: none; }
.stage.mobile .panel[data-tier="late"] { display: none; }
.stage.mobile .panel[data-tier="late"].open { display: flex; }

.stage.mobile .ph { gap: 6px; padding-left: 8px; }
.stage.mobile .ph .name { letter-spacing: 0.05em; font-size: 10.5px; }
.stage.mobile .ph-end { gap: 4px; max-width: 52%; }
.stage.mobile .ph .meta { gap: 4px; font-size: 9px; letter-spacing: 0.04em; }
.stage.mobile .collapse { gap: 8px; letter-spacing: 0.06em; }
.stage.mobile .head { align-items: flex-start; flex-wrap: wrap; }
.stage.mobile .logo { font-size: 28px; }
.stage.mobile .titles h1 { font-size: 15px; }

.veil {
  position: absolute;
  inset: 30px 0 0;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
  z-index: 2;
}
.veil strong { font-family: "Hanken Grotesk", sans-serif; font-weight: 800; color: var(--strong); letter-spacing: 0.04em; }
.skel { position: relative; overflow: hidden; background: var(--surface); min-height: 12px; }
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--strong) 8%, transparent), transparent);
  animation: shim 1.4s linear infinite;
}
@keyframes shim { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.overlay { position: fixed; inset: 0; z-index: 30; }
.scrim { position: absolute; inset: 0; background: var(--scrim); border: 0; width: 100%; height: 100%; }
.modal, .sheet {
  position: absolute;
  background: var(--ground);
  border: 1px solid var(--line-2);
  color: var(--text);
  box-shadow: 0 0 0 7px transparent;
}
.modal { width: min(640px, calc(100vw - 32px)); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.modal.wide { width: min(860px, calc(100vw - 32px)); }
.modal.chart { width: min(1100px, calc(100vw - 24px)); height: min(720px, calc(100vh - 24px)); display: flex; flex-direction: column; }
.sheet { left: 0; right: 0; bottom: 0; max-height: min(844px, 92vh); overflow: auto; border-bottom: 0; }
.grab { width: 48px; height: 4px; background: var(--line-2); margin: 8px auto; }
.dh {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.dh-end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.dh-end .x { margin-left: 0; }
.dh .idx { color: var(--signal-text); letter-spacing: 0.1em; }
.dh h2 {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--strong);
}
.dh p { margin: 3px 0 0; color: var(--dim); font-size: 10px; letter-spacing: 0.1em; }
.x {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
}
.db { padding: 18px; }
.set-row, .check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.field, textarea.field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--strong);
  color: var(--strong);
  padding: 12px 14px;
  min-height: 140px;
  resize: vertical;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips button { border: 1px solid var(--line-2); background: transparent; border-radius: 15px; height: 30px; padding: 0 12px; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.chips button.on {
  border-color: var(--line-2);
  color: var(--signal-text);
  box-shadow: inset 0 -2px 0 var(--signal);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.btn-main {
  background: #f95606;
  color: #0e0e0e;
  border: 0;
  min-height: 52px;
  width: 100%;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
[data-theme="orange"] .btn-main { box-shadow: 0 0 0 3px var(--ground), 0 0 0 4px #f2f2f0; }
.btn-main:hover,
.btn-main:active,
.btn-main:focus-visible {
  background: #f95606;
  color: #0e0e0e;
  border-color: #f95606;
}
.btn-main:active { transform: translateY(1px); }
.btn-main:disabled,
.btn-main:disabled:hover,
.btn-main:disabled:active { background: var(--surface-3); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-2); transform: none; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--faint);
  color: var(--text);
  min-height: 40px;
  padding: 0 16px;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
}
.form-error { color: var(--signal-text); min-height: 1.2em; font-size: 12px; }
.fine { color: var(--faint); font-size: 10px; letter-spacing: 0.08em; text-align: center; }
.sent { text-align: center; padding: 24px 12px 8px; }
.sent h3 {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--strong);
  margin: 12px 0 6px;
}
.check {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  background: var(--strong);
  color: var(--ground);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.ccy-menu { position: absolute; width: min(440px, calc(100vw - 24px)); background: var(--ground); border: 1px solid var(--line-2); }
.ccy-row, .ccy-head {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  color: var(--text);
}
.ccy-row small { display: block; color: var(--dim); font-size: 9.5px; letter-spacing: 0.08em; }
.ccy-row.on { box-shadow: inset 2px 0 0 var(--signal); }
.toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #f2f2f0;
  color: #0e0e0e;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 5;
}
.qr-lg { width: min(280px, 70vw); height: auto; background: #f2f2f0; }
.donate-qr-host { line-height: 0; }
.donate-qr-host > .donate-qr { width: 100%; height: auto; }
.donate-qr {
  display: block;
  background: #f2f2f0;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  animation: none;
  filter: none;
}
.tabs { display: flex; gap: 0; margin-bottom: 12px; }
.tabs button { flex: 1; height: 36px; border: 1px solid var(--line-2); background: transparent; color: var(--faint); }
.tabs button.on {
  background: transparent;
  color: var(--signal-text);
  box-shadow: inset 0 -2px 0 var(--signal);
}
.soon { border: 1px solid var(--faint); color: var(--faint); font-size: 9px; letter-spacing: 0.12em; padding: 2px 6px; }

.is-pixel body, .is-pixel .stage { -webkit-font-smoothing: none; font-smooth: never; }

button {
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
button:hover,
button:active {
  background: var(--strong);
  color: var(--ground);
  border-color: var(--strong);
}
button:is(:hover, :active) :is(span, b, small, em) { color: inherit; }
button:is(:hover, :active) .ico { color: inherit; }
button:active { box-shadow: inset 0 0 0 2px var(--ground); }
.modes button.on:is(:hover, :active),
.m-modes button.on:is(:hover, :active),
.seg.on:is(:hover, :active),
.tabs button.on:is(:hover, :active),
.chips button.on:is(:hover, :active) {
  background: transparent;
  color: var(--signal-text);
  border-color: var(--line-2);
  box-shadow: inset 0 -2px 0 var(--signal);
}
button:focus-visible {
  outline: 2px solid var(--strong);
  outline-offset: 2px;
}
button:disabled,
button:disabled:hover,
button:disabled:active {
  background: var(--surface-3);
  color: var(--dim);
  border-color: var(--line-2);
  box-shadow: none;
  cursor: default;
}
button.scrim,
button.scrim:hover,
button.scrim:active,
button.scrim:focus-visible {
  background: var(--scrim);
  color: inherit;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}
button.btc-blur,
button.btc-blur:hover,
button.btc-blur:active,
button.btc-blur:focus-visible {
  background: transparent;
  color: inherit;
  border-color: transparent;
  outline: none;
}
button.btc-blur:focus-visible { box-shadow: inset 0 0 0 1px var(--signal); }

button.name,
button.name:hover,
button.name:active,
button.name:focus-visible {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  box-shadow: none;
}
button.ph-expand:focus-visible {
  outline: 2px solid var(--strong);
  outline-offset: -3px;
}

.detail-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail {
  position: relative;
  width: 960px;
  height: 600px;
  max-height: 640px;
  z-index: 1;
  background: var(--ground);
  border: 1px solid var(--line-2);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.detail.detail-fit {
  width: 760px;
  height: auto;
  max-height: none;
}
.detail .dh, .detail-sheet .dh { flex: none; }
.detail .db, .detail-sheet .db {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 14px;
  overflow: hidden;
}
.detail-sheet .db {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.detail-hero { display: flex; align-items: flex-end; gap: 16px; flex: none; }
.detail-figure {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.04em;
  color: var(--strong);
  line-height: 0.95;
}
.detail .detail-figure { font-size: 32px; }
.detail .detail-hero { min-width: 0; }
.detail .detail-hero > div:first-child { min-width: 0; }
.detail .detail-stats { flex-wrap: wrap; justify-content: flex-end; max-width: 58%; }
.detail .detail-stats b { font-size: 12px; }
.detail-figure .halving-unit { font-size: 22px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.detail-hero .signal-text { font-size: 14px; }
.detail-stats { display: flex; gap: 18px; margin-left: auto; flex: none; }
.detail-stats > div { display: flex; flex-direction: column; gap: 3px; }
.detail-stats b { color: var(--strong); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
.detail-visual {
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  position: relative;
  background: var(--deep);
  border: 1px solid var(--line);
  overflow: hidden;
}
.detail .chart-wrap, .detail-sheet .chart-wrap { height: 100%; margin: 0; flex: 1; min-height: 0; }
.detail-plot { position: relative; height: 100%; }
.detail-plot svg.series { width: 100%; height: 100%; display: block; }
.detail-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.detail-foot .ranges { flex: none; }
.sheet.detail-sheet {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: none;
  height: 100dvh;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.detail-sheet .dh {
  position: sticky;
  top: 0;
  z-index: 3;
  flex: none;
  padding: 10px 8px 10px 14px;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(8px, env(safe-area-inset-right));
}
.detail-sheet .dh > div { min-width: 0; }
.detail-sheet .dh h2 { font-size: 13px; letter-spacing: 0.08em; line-height: 1.25; }
.detail-sheet .x {
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.detail-sheet .detail-figure { font-size: 30px; overflow-wrap: anywhere; }
.detail-sheet .detail-visual { min-height: 240px; }
.detail-sheet .detail-chart { grid-template-columns: 56px minmax(0, 1fr); min-height: 220px; }
.detail-sheet .band-legend { padding-left: 12px; }
.detail-sheet .detail-foot { flex-wrap: wrap; align-items: center; }
.detail-sheet .detail-foot .ranges { flex: 1 1 100%; min-width: 0; }
.detail-sheet .ranges { flex-wrap: wrap; justify-content: flex-start; }
.detail-sheet .detail-visual:has(.halving-layout),
.detail-sheet .detail-visual:has(.detail-donate),
.detail-sheet .detail-visual:has(.detail-form),
.detail-sheet .detail-visual:has(.detail-wait) {
  flex: none;
  height: auto;
  overflow: visible;
  min-height: 0;
}
.detail-sheet .x-axis span:nth-child(2):nth-last-child(4),
.detail-sheet .x-axis span:nth-child(4):nth-last-child(2) { display: none; }
.detail-sheet .detail-visual:has(.mp-detail) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.detail-sheet .mp-detail { flex: 1; height: 100%; min-height: 0; }
.detail-sheet .dcards { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.detail-sheet .dcard { flex: 0 0 132px; }
.detail-sheet .spiral-stage {
  height: auto;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 8px 8px 12px;
}
.detail-sheet .spiral-stage .detail-plot {
  order: -1;
  flex: none;
  width: min(68vw, 280px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
}
.detail-sheet .sl {
  position: static;
  transform: none;
  text-align: center;
  max-width: 46%;
}
.detail-sheet .halving-layout { grid-template-columns: 1fr; height: auto; }
.detail-sheet .halving-past { font-size: 12px; }
.detail-sheet .halving-past td { padding: 8px 8px 8px 0; }
.detail-sheet .dcard .sz { font-size: 20px; }
.detail-sheet .mp-chart { min-height: 0; flex: 1; }
.detail-sheet .whale-scroll {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.detail-sheet .whale-table { min-width: 0; width: 100%; font-size: 11px; }
.detail-sheet .whale-table th,
.detail-sheet .whale-table td {
  padding: 8px 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.detail-sheet .addr { overflow-wrap: anywhere; }
.detail-sheet .db:has(.cold-detail) .detail-hero { display: none; }
.detail-sheet .detail-visual:has(.cold-detail) {
  flex: none;
  height: auto;
  overflow: visible;
  min-height: 0;
}
.detail-sheet .detail-donate {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
  gap: 16px;
  padding: 16px;
}
.detail-sheet .qr-lg { width: min(220px, 64vw); }
.detail-sheet .detail-donate .btn-main { width: 100%; max-width: 280px; min-width: 0; }
.detail-sheet .detail-split, .detail-sheet .detail-hero { display: flex; flex-direction: column; align-items: stretch; }
.detail-sheet .detail-stats { margin-left: 0; flex-wrap: wrap; max-width: none; gap: 12px 16px; }
.detail-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  height: 100%;
  min-height: 0;
  padding: 12px;
}
.detail-sheet .detail-split { grid-template-columns: 1fr; height: auto; }
.detail-list { overflow: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.detail-list .tx.on { border-color: var(--strong); }
.detail-side { min-width: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.detail-side .addr, .detail-donate .addr { word-break: break-all; color: var(--strong); margin: 4px 0 8px; }
.detail-wait {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--dim);
  letter-spacing: 0.06em;
  line-height: 1.5;
  max-width: 680px;
}
.detail-wait p { margin: 0; }
.detail-link { color: var(--strong); letter-spacing: 0.08em; font-size: 12px; }
.detail-form { max-width: 520px; padding: 20px; }
.detail-form .field { min-height: 0; height: 48px; }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.detail-actions .btn-ghost { width: auto; }
.detail-donate { display: flex; gap: 24px; align-items: center; padding: 24px; height: 100%; }
.detail-donate .btn-main { width: auto; min-width: 220px; padding: 0 18px; }
.detail.detail-fit .detail-hero { display: none; }
.detail.detail-fit .detail-visual {
  flex: none;
  height: auto;
  margin-top: 0;
}
.detail.detail-fit .detail-donate {
  height: auto;
  gap: 28px;
  padding: 28px 32px;
}
.detail.detail-fit .qr-lg { width: 208px; }
.detail.detail-fit .addr { font-size: 15px; line-height: 1.55; margin: 8px 0 14px; }
.detail.detail-stack {
  width: min(560px, calc(100vw - 48px));
  height: auto;
  max-height: none;
}
.detail.detail-stack .db { flex: none; }
.detail.detail-stack .detail-visual {
  flex: none;
  height: auto;
}
.detail.detail-stack .detail-form { max-width: none; }
.detail-sheet .detail-form { max-width: none; }
.detail-globe { height: 100%; min-height: 280px; }
.cold-detail {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px 14px;
}
.detail-sheet .cold-detail { height: auto; }
.cold-stats { display: none; }
.detail-sheet .cold-stats {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.detail-sheet .cold-stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}
.detail-sheet .cold-stats b {
  color: var(--strong);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cold-fiat {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.cold-addr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.cold-copy {
  width: auto;
  min-height: 44px;
  margin-top: 4px;
  align-self: flex-start;
}
.addr-groups {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.45em;
  row-gap: 0.2em;
  max-width: 100%;
  min-width: 0;
  color: var(--strong);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 13px;
  line-height: 1.45;
}
.addr-groups > span { white-space: nowrap; }
.cold-txs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.detail .cold-txs { flex: 1; overflow: auto; }
.detail-sheet .cold-txs { overflow: visible; }
.cold-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--ground);
  font-size: 12px;
  line-height: 1.45;
}
.cold-card time,
.cold-card a,
.cold-card b,
.cold-card .cold-conf,
.cold-card .cold-op {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cold-card a {
  color: var(--strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cold-card b { font-weight: 700; letter-spacing: 0.02em; }
.cold-card .in { color: var(--strong); }
.cold-card .out { color: var(--muted); }
.cold-card .cold-conf { color: var(--dim); letter-spacing: 0.06em; font-size: 11px; }
.cold-op { margin: 2px 0 0; color: var(--text); }
.cold-op .k { margin-right: 6px; }
.band-fill { fill: var(--text); stroke: none; }
.band-fill.f0 { opacity: 0.05; }
.band-fill.f1 { opacity: 0.08; }
.band-fill.f2 { opacity: 0.12; }
.band-fill.f3 { opacity: 0.16; }
.band-fill.f4 { opacity: 0.2; }
.band-fill.f5 { opacity: 0.26; }
.band-fill.f6 { opacity: 0.32; }
.band-fill.f7 { opacity: 0.4; }
.band-fill.f8 { opacity: 0.5; }
.detail-chart {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 22px;
  height: 100%;
  min-height: 0;
}
.detail-chart.has-legend { grid-template-rows: minmax(0, 1fr) 22px auto; }
.detail-chart > .y-axis { grid-column: 1; grid-row: 1; position: relative; }
.detail-chart > .detail-plot { grid-column: 2; grid-row: 1; min-height: 0; height: 100%; }
.detail-chart > .x-axis { grid-column: 2; grid-row: 2; position: relative; }
.detail-chart > .band-legend { grid-column: 1 / -1; grid-row: 3; }
.y-axis span, .x-axis span {
  position: absolute;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
}
.y-axis span { right: 8px; transform: translateY(-50%); }
.x-axis span { top: 6px; transform: translateX(-50%); }
.x-axis span:first-child { transform: translateX(0); }
.x-axis span:last-child { transform: translateX(-100%); }
.axis-grid { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.band-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  padding: 8px 12px 10px 72px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.band-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  background: var(--text);
  vertical-align: -1px;
}
.band-legend i.f1 { opacity: 0.08; }
.band-legend i.f2 { opacity: 0.12; }
.band-legend i.f3 { opacity: 0.16; }
.band-legend i.f4 { opacity: 0.2; }
.band-legend i.f5 { opacity: 0.26; }
.band-legend i.f6 { opacity: 0.32; }
.band-legend i.f7 { opacity: 0.4; }
.band-legend i.f8 { opacity: 0.5; }
.band-legend i.swatch-line { height: 2px; width: 16px; opacity: 1; background: var(--text); vertical-align: 2px; }
.band-legend i.swatch-model { height: 0; width: 16px; border-top: 2px dashed var(--strong); background: transparent; vertical-align: 2px; }
.band-tags { position: absolute; inset: 0; pointer-events: none; }
.band-tags span {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  color: var(--strong);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.mp-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 12px;
  padding: 12px 12px 8px;
}
.dcards { display: flex; gap: 8px; flex: none; }
.dcard {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: center;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dcard.next { border-color: var(--signal); }
.dcard .fee { color: var(--strong); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.dcard .rng, .dcard .ntx { color: var(--dim); font-size: 11px; letter-spacing: 0.04em; }
.dcard .sz {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--strong);
  letter-spacing: -0.03em;
  line-height: 1;
}
.dcard .eta { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.dcard.next .eta { color: var(--signal-text); font-weight: 700; }
.mp-chart { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mp-chart .k { flex: none; margin: 0 0 6px; }
.mp-chart .detail-chart { flex: 1; }
.halving-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  height: 100%;
  min-height: 0;
  gap: 8px;
}
.detail .halving-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.detail .halving-past { font-size: 12px; }
.detail .halving-past td { padding: 7px 8px 7px 0; }
.detail .halving-side { padding: 10px 12px; }
.detail .dcard { padding: 8px 4px 6px; gap: 2px; }
.detail .dcard .sz { font-size: 18px; }
.detail .dcard .fee { font-size: 11px; }
.detail .dcard .rng, .detail .dcard .ntx, .detail .dcard .eta { font-size: 10px; }
.detail .whale-table { min-width: 0; font-size: 11px; }
.detail .detail-side { height: 100%; min-height: 0; }
.detail .detail-list { flex: 1; }
.halving-side { overflow: auto; padding: 16px 18px; }
.halving-side .k { margin-bottom: 8px; }
.halving-past { width: 100%; border-collapse: collapse; font-size: 13px; }
.halving-past th {
  text-align: left;
  color: var(--dim);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 0 10px 8px 0;
}
.halving-past td {
  padding: 10px 10px 10px 0;
  border-top: 1px solid var(--line);
  color: var(--strong);
  letter-spacing: 0.04em;
}
.halving-side .note { margin-top: 12px; }
.whale-scroll { height: 100%; overflow: auto; }
.whale-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 760px; }
.whale-table th {
  position: sticky;
  top: 0;
  text-align: left;
  background: var(--deep);
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.whale-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.whale-table tr { cursor: pointer; }
.whale-table tr.on td { background: var(--surface); }
.whale-table a { color: var(--strong); }
.bar-fill { fill: var(--text); }
.model-line { fill: none; stroke: var(--strong); stroke-width: 1.4; stroke-dasharray: 4 3; }
.spiral-ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.spiral-stage { position: relative; height: 100%; container-type: size; display: grid; place-items: center; }
.spiral-stage .detail-plot { width: min(100cqh, calc(100cqw - 168px)); aspect-ratio: 1; height: auto; margin: 0; }
.sl { position: absolute; color: var(--dim); font-size: 10px; letter-spacing: 0.08em; line-height: 1.35; pointer-events: none; }
.sl.n { top: 8px; left: 50%; transform: translateX(-50%); }
.sl.e { right: 10px; top: 50%; transform: translateY(-50%); text-align: right; }
.sl.s { bottom: 8px; left: 50%; transform: translateX(-50%); text-align: center; }
.sl.w { left: 10px; top: 50%; transform: translateY(-50%); }
.detail-sheet .sl,
.detail-sheet .sl.n,
.detail-sheet .sl.e,
.detail-sheet .sl.s,
.detail-sheet .sl.w {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  text-align: center;
  max-width: 46%;
}
button.scrim.detail-scrim,
button.scrim.detail-scrim:hover,
button.scrim.detail-scrim:active,
button.scrim.detail-scrim:focus-visible {
  background: rgba(14, 14, 14, 0.72);
  color: inherit;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.price-alert-layer {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
button.alert-scrim,
button.alert-scrim:hover,
button.alert-scrim:active,
button.alert-scrim:focus-visible {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  pointer-events: auto;
  background: rgba(14, 14, 14, 0.68);
  color: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  cursor: default;
}
.price-alert-plate {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(776px, calc(100vw - 64px));
  padding: 28px;
  background: #0e0e0e;
  animation: alert-in 180ms ease-out both;
}
.price-alert {
  pointer-events: auto;
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 36px;
  width: 100%;
  padding: 32px 36px;
  background: #0e0e0e;
  color: #f2f2f0;
  border: 2px solid #f95606;
}
.ab {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid #f95606;
  pointer-events: none;
}
.ab.tl { top: -2px; left: -2px; border-top-width: 2px; border-left-width: 2px; }
.ab.tr { top: -2px; right: -2px; border-top-width: 2px; border-right-width: 2px; }
.ab.bl { bottom: -2px; left: -2px; border-bottom-width: 2px; border-left-width: 2px; }
.ab.brc { bottom: -2px; right: -2px; border-bottom-width: 2px; border-right-width: 2px; }
.alert-copy { min-width: 0; flex: 1; }
.alert-kicker, .alert-title, .alert-move, .alert-context { margin: 0; }
.alert-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f95606;
  letter-spacing: 0.18em;
  font-size: 13px;
}
.alert-kicker .ico {
  width: 14px;
  height: 14px;
  color: #f95606;
}
.alert-title {
  margin-top: 8px;
  color: #f2f2f0;
  letter-spacing: 0.08em;
  font-size: 28px;
  font-weight: 700;
}
.alert-move {
  margin-top: 12px;
  color: #f95606;
  letter-spacing: 0.14em;
  font-size: 22px;
  font-weight: 700;
}
.alert-context {
  margin-top: 8px;
  color: #9a9a9a;
  letter-spacing: 0.12em;
  font-size: 13px;
}
button.alert-x,
button.alert-x:hover,
button.alert-x:active,
button.alert-x:focus-visible {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 16px;
  background: transparent;
  color: #f2f2f0;
  border: 1px solid #f95606;
  box-shadow: none;
  letter-spacing: 0.12em;
  font-size: 12px;
}
button.alert-x:hover,
button.alert-x:active {
  background: #f95606;
  color: #0e0e0e;
}
/* Label and warning icon only. 2 Hz, 2.5 Hz on HARD. Both stay under 3 flashes a second. */
@keyframes alert-blink-kicker {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.price-alert .alert-kicker {
  animation: alert-blink-kicker 500ms linear infinite;
}
.price-alert-layer.alert-hard .price-alert .alert-kicker {
  animation-duration: 400ms;
}
@keyframes alert-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 959px) {
  .price-alert-plate {
    width: calc(100vw - 32px);
    padding: 16px;
  }
  .price-alert {
    gap: 18px;
    padding: 22px 18px;
  }
  .alert-title { font-size: 22px; letter-spacing: 0.06em; }
  .alert-move { font-size: 18px; }
}

html.is-asleep .live-pip,
html.is-asleep .dot,
html.is-asleep .live-ring,
html.is-asleep .status-ico[data-state="live"] .ico,
html.is-asleep .ticker-track,
html.is-asleep .skel::after,
html.is-asleep .price-alert .alert-kicker,
html.is-asleep a.classic.is-noticed {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .skel::after, .price-alert-plate,
  .live-pip, .dot, .live-ring, .status-ico[data-state="live"] .ico,
  .price-alert .alert-kicker,
  .price-alert-layer.alert-hard .price-alert .alert-kicker { animation: none; }
  .live-pip, .dot { box-shadow: none; }
  .price-alert, .ab { border-color: #f95606; }
  .alert-kicker, .alert-kicker .ico, .alert-move { opacity: 1; }
  button, .look, a.classic.is-noticed { transition: none; animation: none; }
}
