/* Page styles. Tokens and shared components live in app.css. Terminal panes only: hairlines, no cards. */

/* ═══════════ overview ═══════════ */
main.ov { max-width: none; padding: 0 0 72px; }
.hero { position: relative; height: max(560px, calc(100svh - var(--top) - var(--dock, 0px))); border-bottom: 1px solid var(--line); overflow: hidden; }
.hall { position: absolute; inset: 0; overflow: hidden; background: #0a0f1f; cursor: grab; }
.hall:active { cursor: grabbing; }
.hall-ascii { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .6s; }
.hall.is3d .hall-ascii { opacity: 0; }
.hall > .v3d { z-index: 1; }
.hero-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; gap: 22px; padding: 12px var(--gut); font-size: 12px; color: var(--muted); background: linear-gradient(180deg, rgba(10, 15, 31, .96) 40%, rgba(10, 15, 31, 0)); padding-bottom: 26px; pointer-events: none; }
.hero-top span { display: inline-flex; align-items: center; gap: 8px; }
.hero-top b { color: var(--text); font-weight: 500; }
.hero-over { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 120px var(--gut) 28px; background: linear-gradient(0deg, rgba(10, 15, 31, .97) 0%, rgba(10, 15, 31, .85) 45%, rgba(10, 15, 31, 0) 100%); pointer-events: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.hero-over a, .hero-over button { pointer-events: auto; }
.hero-line { margin: 0; max-width: 560px; color: var(--muted); font-size: 13.5px; }
.hero-line b { display: block; color: #eef3ff; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; margin-bottom: 6px; }
.hero-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hero-next { display: flex; flex-direction: column; margin-right: 14px; }
.hero-next b { font-size: clamp(34px, 3.6vw, 48px); line-height: 1; font-weight: 500; color: var(--cyan); text-shadow: 0 0 18px rgba(79, 216, 255, .45); font-variant-numeric: tabular-nums; }

.col { max-width: 940px; margin: 0 auto; padding: 0 var(--gut); }
.blk { margin-top: 64px; }
.fees-line { display: flex; gap: 3px; margin-top: 6px; }
.fl { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.fl i { display: block; height: 6px; margin-bottom: 12px; }
.fl.s-rigs i { background: var(--accent); box-shadow: 0 0 12px rgba(61, 255, 138, .55); }
.fl.s-burn i { background: var(--neg); box-shadow: 0 0 12px rgba(255, 92, 122, .45); }
.fl.s-team i { background: var(--line2); }
.fl-t { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.fl-t b { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1; }
.fl.s-rigs .fl-t b { color: var(--accent); }
.fl.s-burn .fl-t b { color: var(--neg); }
.fl-t span { color: var(--text); font-size: 12.5px; }
.fl em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.fl small { color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readout { margin: 22px 0 14px; color: var(--faint); font-size: 12.5px; }
.readout b { color: var(--text); font-weight: 500; }
.readout b.pos { color: var(--pos); } .readout b.neg { color: var(--neg); }
.ca-box { display: flex; align-items: stretch; border: 1px solid var(--line2); min-height: 38px; font-size: 12.5px; }
.ca-box > * { display: flex; align-items: center; padding: 0 12px; }
.ca-box .ca { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbtn { border: 0; border-left: 1px solid var(--line2); background: none; color: var(--text); font: inherit; cursor: pointer; transition: background-color .12s, color .12s; }
button.cbtn:hover { background: var(--accent-soft); color: var(--accent); }

.rack-h, .ru { display: grid; grid-template-columns: 10px 76px minmax(0, 1fr) minmax(0, 1.1fr) 150px 44px 70px 64px 92px; align-items: center; gap: 12px; }
.rack-h { padding: 0 12px 8px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line2); }
.rack { list-style: none; margin: 0; padding: 0; }
.ru { padding: 0 12px; height: 36px; font-size: 12.5px; border-bottom: 1px solid rgba(27, 37, 70, .7); transition: background-color .1s; }
.ru:hover { background: var(--surface); }
.ru .r { text-align: right; font-variant-numeric: tabular-nums; }
.ru > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ru-id { color: var(--text); font-weight: 600; }
.ru-id:hover { color: var(--accent); }
.ru .led.auto { background: var(--blue); box-shadow: 0 0 8px rgba(90, 169, 255, .9); }
.ru-f { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: -.12em; }
.fan { display: inline-block; width: 1ch; letter-spacing: 0; color: var(--cyan); font-weight: 700; font-size: 13px; text-shadow: 0 0 6px rgba(79, 216, 255, .7); }
.sg { color: #1d2850; }
.sg.on { color: var(--accent); text-shadow: 0 0 5px rgba(61, 255, 138, .6); }
.ru-empty { padding: 20px 12px; color: var(--muted); list-style: none; }
.floor-coins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; font-size: 12px; }
.floor-coins .k { margin-right: 4px; }
.fc { display: inline-flex; align-items: center; gap: 8px; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); transition: border-color .12s; }
.fc:hover { border-color: var(--accent); color: var(--text); }
.fc .pos { color: var(--pos); }

.stream { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12.5px; border-top: 1px solid var(--line2); }
.sl { display: grid; grid-template-columns: 68px 64px minmax(0, 1fr); gap: 10px; padding: 6px 12px; border-bottom: 1px solid rgba(27, 37, 70, .55); }
.sl .ts { color: var(--faint); }
.sl .sx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl .coin { vertical-align: -3px; }
.sl .coin img, .sl .coin .ph { width: 14px; height: 14px; }
.sl.sync { color: var(--faint); }
.sl.sync .sx { color: var(--faint); }
.sl:hover { background: var(--surface); }
.sl.in { animation: slIn .9s ease-out; }
.sl.sl-empty { display: block; padding: 14px 12px; }
@keyframes slIn { from { background: rgba(61, 255, 138, .12); opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; transform: none; } to { background: transparent; } }
.ev { white-space: pre; }
.ev.drop { color: var(--pos); }
.ev.burn { color: var(--neg); }
.ev.cycle { color: var(--cyan); }
.ev.claim { color: var(--warn); }
.ev.sync { color: var(--faint); }

.closing { display: flex; justify-content: space-between; align-items: center; gap: 18px 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.closing p { margin: 0; max-width: 520px; color: var(--muted); }

@media (max-width: 900px) {
  .rack-h, .ru { grid-template-columns: 8px 70px minmax(0, 1fr) minmax(0, 1fr) 96px 58px; }
  .rack-h > :nth-child(6), .ru > :nth-child(6) { display: none; }
  .ru-f .sg { display: none; }
  .ru-f { justify-content: flex-start; }
  .rack-h > .hide-sm, .ru > .hide-sm { display: none; }
}
@media (max-width: 720px) {
  .hero { height: max(520px, calc(100svh - var(--top) - var(--dock, 0px))); }
  .hero-top { gap: 14px; padding: 10px var(--gut); }
  .hero-over { padding: 90px var(--gut) 20px; }
  .hero-row { width: 100%; }
  .hero-next { width: 100%; margin: 0 0 6px; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .hero-row .btn { flex: 1; padding: 0 10px; }
  .blk { margin-top: 48px; }
  .fl small { display: none; }
  .fl-t { flex-direction: column; gap: 2px; white-space: normal; }
  .fl-t span, .fl em { font-size: 11px; line-height: 1.3; }
  .fl-t b { font-size: 20px; }
  .rack-h, .ru { grid-template-columns: 8px 64px minmax(0, 1fr) 30px 56px; gap: 8px; }
  .rack-h > :nth-child(3), .ru > :nth-child(3) { display: none; }
  .ru-c .coin small, .ru-c .dim { display: none; }
  .ru { padding: 0 8px; }
  .sl { grid-template-columns: 52px minmax(0, 1fr); padding: 6px 8px; }
  .sl .ts { display: none; }
}

/* ═══════════ shared bits of the other pages ═══════════ */
.pg { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.pg h1 { font-size: clamp(20px, 2vw, 26px); }
.pg h2 { font-size: 14px; }
.pg .lede { color: var(--muted); max-width: 780px; margin: 12px 0 0; }
.pg .sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pg .sh h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pg .sh h2::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: 2px; background: var(--accent); box-shadow: 0 0 6px rgba(61, 255, 138, .8); }
.pg .sh .muted { font-size: 12.5px; }
.pg .surf { border: 1px solid var(--line); }
.pg .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 2px 8px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.pg .pill.live { color: var(--pos); border-color: rgba(61, 255, 138, .35); }
.pg .pill.live::before { content: '●'; font-size: 9px; }
.pg .pill.wait { color: var(--warn); border-color: rgba(255, 200, 96, .4); }
.pg .avx { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface2); display: inline-grid; place-items: center; font-size: 12px; color: var(--muted); }
.pg .ownr { display: inline-flex; align-items: center; gap: 10px; }
.pg .ownr b { color: var(--blue); font-weight: 500; }
.pg .ownr:hover b { color: var(--accent); }
.skel { min-height: 240px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.pg .ld { color: var(--muted); }
a.lnk { color: var(--blue); border-bottom: 1px solid transparent; }
a.lnk:hover { color: var(--accent); border-color: var(--accent); }
.empty-block { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 0; color: var(--muted); grid-column: 1 / -1; }
.empty-block b { color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.kpis > div { padding: 14px 16px; min-width: 0; }
.kpis > div + div { border-left: 1px solid var(--line); }
.kpis > div > span { display: block; color: var(--faint); font-size: 11.5px; text-transform: lowercase; }
.kpis b { display: block; font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis small { color: var(--muted); font-size: 12px; }

/* ═══════════ rigs ═══════════ */
.rigs-figs { margin-bottom: 28px; }
.rigs-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }

/* ═══════════ one rig ═══════════ */
.back { display: inline-block; color: var(--blue); margin-bottom: 18px; }
.rig-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); }
.rig-stage { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.rig-view { position: relative; aspect-ratio: 1; max-height: min(640px, 72vh); width: 100%; background: #0b1124; container-type: inline-size; display: grid; place-items: center; overflow: hidden; cursor: grab; }
.rig-view:active { cursor: grabbing; }
.rig-view > .ascii { font-size: calc(100cqw / (var(--cols, 28) * .6) * .7); }
.rig-view .chip { z-index: 3; }
.rig-cap > span:first-child { white-space: nowrap; }
.rig-cap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.rig-cap .parts { color: var(--muted); text-align: right; }
.rig-side { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px; min-width: 0; }
.rig-side .since { font-size: 12px; }
.rig-side h1 { font-size: clamp(28px, 3.2vw, 44px); margin-top: -8px; }
.owner-row { gap: 10px; }
.mining { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; border: 1px solid var(--line); border-left: 2px solid var(--accent); padding: 12px 14px; }
.mining .k { grid-column: 1 / -1; }
.mining .s { color: var(--muted); font-size: 12.5px; text-align: right; }
.stats6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.st { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; border-left: 1px solid var(--line); }
.st:nth-child(3n + 1) { border-left: 0; }
.st:nth-child(n + 4) { border-top: 1px solid var(--line); }
.st .v { font-size: 20px; font-weight: 500; white-space: nowrap; }
.st .s { font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share { display: flex; flex-direction: column; gap: 10px; }
.share > .muted { font-size: 12px; }
.rp .section { margin-top: 56px; }
.chart { border: 1px solid var(--line); padding: 16px 18px 14px; }
.ch-top { display: flex; gap: 40px; margin-bottom: 16px; }
.ch-top div { display: flex; flex-direction: column; gap: 2px; }
.ch-top b { font-size: 16px; font-weight: 500; }
.ch-plot { position: relative; border-bottom: 1px solid var(--line2); padding-top: 18px; }
.ch-max { position: absolute; top: 0; right: 0; font-size: 11px; color: var(--faint); }
.ch-plot .bars { height: 150px; cursor: crosshair; }
.ch-tip { position: absolute; bottom: calc(100% - 10px); transform: translateX(-50%); background: var(--surface2); border: 1px solid var(--line2); padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; pointer-events: none; z-index: 3; }
.ch-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.callout { padding: 12px 0; border-bottom: 1px solid var(--line); }
.callout p { margin: 6px 0 0; color: var(--text); }
.callout p::before { content: '> '; color: var(--faint); }
.more-links { display: flex; gap: 16px; }

/* ═══════════ my rigs ═══════════ */
.cab-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 12px; }
.cab-in h1 { font-size: clamp(24px, 3vw, 36px); }
.cab-in .acts { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cab-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cab-head .me-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface2); display: grid; place-items: center; font-size: 22px; color: var(--muted); border: 1px solid var(--line2); flex: none; }
.cab-head .who-t { flex: 1; min-width: 200px; }
.cab-head .sub { color: var(--muted); margin-top: 4px; font-size: 12.5px; }
.cab-head .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.totals { margin-top: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.totals .meter { height: 3px; background: var(--line); margin-top: 8px; }
.totals .meter i { display: block; height: 100%; background: var(--accent); }
.rigs-list { display: flex; flex-direction: column; gap: 20px; }
.rc { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); border: 1px solid var(--line); }
.rc.building { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); border-color: var(--line2); }
.rc .vis { position: relative; border-right: 1px solid var(--line); }
.rc .vis .rig-img { border: 0; height: 100%; aspect-ratio: auto; min-height: 280px; }
.rc .vis .chip { z-index: 3; }
.bld-view { position: relative; width: 100%; aspect-ratio: 1; background: #0b1124; container-type: inline-size; display: grid; place-items: center; overflow: hidden; cursor: grab; }
.bld-view > .ascii { font-size: calc(100cqw / (var(--cols, 28) * .6) * .72); }
.bld-hint { position: absolute; right: 8px; top: 8px; z-index: 3; font-size: 11.5px; color: var(--faint); }
.rc .info { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rc .top-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc .tag-t { font-size: 18px; font-weight: 700; }
.rc .tag-t:hover { color: var(--accent); }
.rc .top-l .ext { margin-left: auto; }
.rc .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rc .stats b { display: block; font-size: 17px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.rc .blk > .k { display: block; margin-bottom: 6px; }
.rc .mode-note { color: var(--faint); font-size: 12px; margin-top: 8px; }
.rc .coin-row { display: flex; gap: 8px; margin-top: 10px; }
.rc .coin-row select { flex: 1; min-width: 0; }
.rc .acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.rc .share { position: relative; flex-direction: row; }
.share-menu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; background: var(--surface2); border: 1px solid var(--line2); padding: 4px; min-width: 220px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.share-menu a, .share-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--accent-soft); color: var(--accent); }
.share-menu .prev { display: block; width: 100%; margin-bottom: 4px; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--surface); }
.rendering { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text); font-size: 12.5px; border: 1px solid var(--line); padding: 8px 12px; }
.rendering small { color: var(--faint); }
.spin { width: 12px; height: 12px; border: 1.5px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.paybox { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--line); }
.pqr { background: #fff; padding: 8px; aspect-ratio: 1; }
.pqr svg { display: block; width: 100%; height: auto; }
.paybox .amt { font-size: 18px; font-weight: 600; }
.paybox .addr { font-size: 12.5px; word-break: break-all; color: var(--muted); margin: 6px 0 10px; cursor: pointer; }
.paybox .addr:hover { color: var(--accent); }
.cd { height: 2px; background: var(--line); overflow: hidden; margin-top: 10px; }
.cd i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.bld { grid-column: 1 / -1; border-top: 1px solid var(--line2); padding: 18px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px 32px; }
.bld-h { grid-column: 1 / -1; }
.bld h3 { font-size: 14px; }
.bld h3::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: 2px; background: var(--accent); box-shadow: 0 0 6px rgba(61, 255, 138, .8); }
.bld .hint { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.bld .grp { margin-bottom: 16px; }
.bld .grp > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bld .grp > div:first-child b { font-weight: 500; font-size: 12.5px; color: var(--cyan); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1px solid var(--line2); background: transparent; color: var(--muted); padding: 6px 11px; font: 12.5px var(--mono); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: border-color .12s, color .12s, background-color .12s, transform .12s; }
.opt:hover { border-color: var(--accent); color: var(--text); }
.opt:active { transform: scale(.96); }
.opt.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.opt:disabled { opacity: .35; cursor: not-allowed; }
.sw { display: inline-block; width: 9px; height: 9px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.bld-save { align-self: start; position: sticky; top: calc(var(--top) + 16px); display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.bld-save .btn { width: 100%; }
.bld-save .left { color: var(--muted); }
.cab-low { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.earn .totl { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.earn .totl b { font-size: 26px; font-weight: 500; color: var(--pos); }
.ebars { display: flex; align-items: flex-end; gap: 2px; height: 110px; border-bottom: 1px solid var(--line2); }
.ebars .b { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; }
.ebars .b i { display: block; width: 100%; min-height: 2px; background: var(--accent); opacity: .8; }
.ebars .b.z i { background: var(--line); }
.ebars .b:hover i { opacity: 1; }
.ebars .b .tt { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface2); border: 1px solid var(--line2); padding: 5px 8px; font-size: 11.5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 3; }
.ebars .b:hover .tt { opacity: 1; }
.ebars .b:nth-child(-n+4) .tt { left: 0; transform: none; }
.ebars .b:nth-last-child(-n+4) .tt { left: auto; right: 0; transform: none; }
.ebars-x { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; margin-top: 6px; }
.earn .table-wrap { margin-top: 18px; max-height: 420px; overflow-y: auto; }
.wal { display: flex; flex-direction: column; gap: 12px; }
.wal .sh { margin-bottom: 0; }
.wal .addr { word-break: break-all; }
.wal .addr a { color: var(--text); }
.wal .row2 { display: flex; gap: 8px; }
.wal .row2 input { flex: 1; min-width: 0; }
.wal .wnote { color: var(--faint); font-size: 12px; margin: 0; }
.wal .warn { color: var(--warn); }
.baglines { border: 1px solid var(--line); }
.bagline { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; font-size: 12.5px; }
.bagline + .bagline { border-top: 1px solid var(--line); }
.bagline span { color: var(--muted); }

/* ═══════════ buy ═══════════ */
.buy-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.buy-hero h1 { font-size: clamp(24px, 3vw, 36px); }
.price-l { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.price-l b { font-size: clamp(30px, 4vw, 44px); font-weight: 600; color: var(--accent); }
.price-l span { color: var(--muted); }
.prog { margin-top: 12px; max-width: 460px; }
.prog .bar { height: 3px; background: var(--line); overflow: hidden; }
.prog .bar i { display: block; height: 100%; background: var(--accent); }
.prog small { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; margin-top: 6px; }
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.showcase a { display: block; color: inherit; }
.showcase a:hover .rig-img { border-color: var(--accent); }
.showcase .cap { font-size: 11.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.bsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-bottom: 0; }
.bsteps div { font-size: 12px; color: var(--faint); padding: 8px 12px; }
.bsteps div + div { border-left: 1px solid var(--line); }
.bsteps div b { display: block; font-size: 11px; margin-bottom: 2px; }
.bsteps div.done { color: var(--muted); }
.bsteps div.done b { color: var(--accent); }
.bsteps div.now { color: #04121c; background: var(--cyan); }
.flow { border: 1px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.flow h2 { font-size: 18px; }
.flow .muted { margin: 0; }
.flow .me-l { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.flow .me-l .grow { flex: 1; min-width: 0; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.modes button { text-align: left; border: 1px solid var(--line2); background: transparent; color: var(--text); padding: 14px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, background-color .12s, transform .12s; }
.modes button b { font-size: 13.5px; }
.modes button span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.modes button:hover { border-color: var(--accent); }
.modes button:active { transform: scale(.98); }
.modes button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.modes button.on b { color: var(--accent); }
.bpay { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: start; }
.big-addr { font-size: 13.5px; word-break: break-all; padding: 12px 14px; border: 1px solid var(--line2); cursor: pointer; line-height: 1.5; transition: border-color .12s; }
.big-addr:hover { border-color: var(--accent); }
.tl { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.tl div { position: relative; padding: 0 0 12px 24px; color: var(--faint); }
.tl div::before { content: '○'; position: absolute; left: 0; top: 0; color: var(--line2); }
.tl .done { color: var(--text); }
.tl .done::before { content: '●'; color: var(--accent); }
.tl .now { color: var(--text); }
.tl .now::before { content: '◌'; color: var(--warn); animation: blink 1s steps(1) infinite; }
.aside { display: flex; flex-direction: column; gap: 24px; }
.aside h3 { margin: 0 0 10px; }
.aside h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.aside h3::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: 2px; background: var(--accent); box-shadow: 0 0 6px rgba(61, 255, 138, .8); }
.aside ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.aside li { padding-left: 18px; position: relative; color: var(--muted); }
.aside li::before { content: '-'; position: absolute; left: 0; color: var(--accent); }
.aside li b { color: var(--text); font-weight: 500; }
.aside .small { color: var(--faint); font-size: 12px; margin: 12px 0 0; }

/* ═══════════ coins ═══════════ */
.miner-feat { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; }
.miner-feat img { width: 72px; height: 72px; object-fit: cover; background: var(--surface2); }
.miner-feat > .k { display: flex; gap: 28px; text-transform: none; }
.miner-feat > .k span { display: block; color: var(--faint); font-size: 11.5px; }
.miner-feat > .k b { font-size: 18px; color: var(--text); font-weight: 500; }
.miner-feat > .k b.pos { color: var(--pos); }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cc { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; border: 0 !important; border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; transition: background-color .12s; }
.cc:hover { background: var(--surface); }
.cc .hd { display: flex; gap: 12px; align-items: center; }
.cc .hd img, .cc .hd .ph { width: 40px; height: 40px; object-fit: cover; background: var(--surface2); flex: none; }
.cc .hd .nm { min-width: 0; flex: 1; }
.cc .hd b { display: block; color: var(--cyan); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .hd small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .chg { flex: none; }
.cc .kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc .kv span { display: block; color: var(--faint); font-size: 11px; }
.cc .kv b { font-weight: 500; font-size: 13px; }
.cc .ft { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cc .ft b { color: var(--text); font-weight: 500; }
.cc .ft b.pos { color: var(--pos); }

/* ═══════════ drops / treasury / owners ═══════════ */
.rigcell { color: var(--text); }
.rigcell:hover { color: var(--accent); }
.wallets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.wallets > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wallets > div + div { border-left: 1px solid var(--line); }
.wallets .addr { word-break: break-all; font-size: 12.5px; }
.wallets .addr a { color: var(--text); }
.wallets p { color: var(--muted); font-size: 12px; margin: 0; }
.splitbar { display: flex; gap: 2px; }
.splitbar div { padding: 8px 12px; font-size: 12px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; white-space: nowrap; border-top: 3px solid; background: var(--surface); }
.splitbar div b { font-size: 18px; font-weight: 600; }
.splitbar .s1 { border-color: var(--accent); background: transparent; } .splitbar .s1 b { color: var(--accent); }
.splitbar .s2 { border-color: var(--neg); background: transparent; } .splitbar .s2 b { color: var(--neg); }
.splitbar .s3 { border-color: var(--line2); background: transparent; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.two h2 { margin-bottom: 12px; }
.two h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.two h2::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: 2px; background: var(--accent); box-shadow: 0 0 6px rgba(61, 255, 138, .8); }
.bucket-name { display: inline-flex; align-items: center; gap: 8px; }
.bucket-name i { width: 8px; height: 8px; }
#buckets td:last-child { white-space: normal; min-width: 220px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.pod { padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; color: inherit; transition: background-color .12s; }
.pod + .pod { border-left: 1px solid var(--line); }
.pod:hover { background: var(--surface); color: inherit; }
.pod .rank { position: absolute; right: 14px; top: 8px; font-size: 44px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--line2); line-height: 1; }
.pod .p-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface2); display: grid; place-items: center; font-size: 18px; color: var(--muted); }
.pod .h { font-size: 15px; font-weight: 600; color: var(--blue); }
.pod:hover .h { color: var(--accent); }
.pod .mined { font-size: 22px; color: var(--pos); font-weight: 500; }
.pod .kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pod .kv span { display: block; color: var(--faint); font-size: 11px; }
.pod .kv b { font-weight: 500; }
tr.more-row[hidden] { display: none; }

/* ═══════════ manual ═══════════ */
.how { display: grid; grid-template-columns: 220px minmax(0, 760px) minmax(200px, 1fr); gap: 40px; align-items: start; }
.how .htoc { position: sticky; top: calc(var(--top) + 20px); display: flex; flex-direction: column; font-size: 12.5px; max-height: calc(100vh - 120px); overflow-y: auto; border-left: 1px solid var(--line); }
.how .htoc a { color: var(--muted); padding: 4px 12px; display: flex; gap: 10px; border-left: 2px solid transparent; margin-left: -1px; }
.how .htoc a span { color: var(--faint); }
.how .htoc a:hover { color: var(--text); }
.how .htoc a.on { color: var(--accent); border-left-color: var(--accent); }
.how .htoc a.on span { color: var(--accent); }
.hdoc { min-width: 0; line-height: 1.75; color: #c3cde6; }
.hdoc section { padding: 0 0 28px; scroll-margin-top: calc(var(--top) + 16px); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.hdoc section:last-child { border-bottom: 0; }
.hdoc h2 { font-size: 16px; color: var(--text); margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline; }
.hdoc h2 span { color: var(--accent); font-weight: 400; }
.hdoc p { margin: 0 0 14px; }
.hdoc b { color: var(--text); }
.hdoc ol, .hdoc ul { padding-left: 22px; margin: 0 0 14px; }
.hdoc li { margin-bottom: 6px; }
.hdoc li::marker { color: var(--faint); }
.hdoc a { color: var(--blue); }
.hdoc a:hover { color: var(--accent); }
.hdoc code { color: var(--cyan); background: var(--surface2); padding: 1px 5px; }
.hdoc .formula { background: #0b1124; border: 1px solid var(--line); border-left: 2px solid var(--accent); padding: 12px 16px; white-space: pre-wrap; margin: 0 0 16px; color: var(--accent); overflow-x: auto; font-size: 12.5px; line-height: 1.7; }
.hdoc .splitbar { margin-bottom: 16px; }
.hdoc .params td:first-child { color: var(--muted); }
.hdoc .params td:last-child { white-space: normal; }
.hdoc .params td { white-space: normal; }
.hdoc .faq p { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hdoc .faq p:last-child { border: 0; }
.hdoc .faq b { display: block; margin-bottom: 2px; color: var(--cyan); }
.hdoc .callout { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; border: 1px solid var(--line); padding: 12px; margin: 0 0 16px; }
.hdoc .callout p { margin: 0; }
.hdoc .callout p::before { content: none; }
.hdoc .parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.hdoc .parts span { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line2); color: var(--muted); }
.hglance { position: sticky; top: calc(var(--top) + 20px); align-self: start; display: flex; flex-direction: column; border: 1px solid var(--line); padding: 4px 14px 14px; }
.hglance > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hglance > .k { padding: 10px 0 2px; }
.hglance span:not(.k) { display: block; color: var(--faint); font-size: 11.5px; }
.hglance b { font-size: 16px; font-weight: 500; }
.hglance small { display: block; color: var(--faint); font-size: 11px; }
.hglance .btn { margin-top: 12px; }

/* ═══════════ 404 ═══════════ */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: center; padding: 40px 0; }
.nf .code { font-size: clamp(80px, 13vw, 150px); font-weight: 800; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--line2); }
.nf h1 { margin-top: 12px; }
.nf .acts { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ═══════════ responsive ═══════════ */
@media (max-width: 1240px) { .how { grid-template-columns: 200px minmax(0, 1fr); } .hglance { display: none; } }
@media (max-width: 1080px) {
  .rig-top { grid-template-columns: minmax(0, 1fr); }
  .rig-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .rc, .rc.building { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .rc .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bld { grid-template-columns: minmax(0, 1fr); }
  .bld-save { position: static; }
  .cab-low, .buy-main { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .how .htoc { position: static; flex-direction: row; overflow-x: auto; max-height: none; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .how .htoc a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .how .htoc a.on { border-bottom-color: var(--accent); }
  .two, .duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pg { gap: 36px; }
  .cab-in, .buy-hero, .nf { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cab-head .acts { width: 100%; }
  .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc, .rc.building { grid-template-columns: minmax(0, 1fr); }
  .rc .vis { border-right: 0; border-bottom: 1px solid var(--line); }
  .rc .vis .rig-img { min-height: 0; aspect-ratio: 1; }
  .rc .info { padding: 16px; }
  .rc .seg { display: flex; }
  .rc .seg button { flex: 1; padding: 0 6px; }
  .pg .hm { display: none; }
  .bld { padding: 16px; }
  .paybox { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .flow { padding: 18px 16px; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .bpay { grid-template-columns: minmax(0, 1fr); }
  .bpay .pqr { max-width: 190px; }
  .bsteps div { font-size: 10.5px; padding: 6px 8px; }
  .miner-feat { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .miner-feat img { width: 56px; height: 56px; }
  .miner-feat > .k { grid-column: 1 / -1; gap: 20px; flex-wrap: wrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > div:nth-child(3) { border-left: 0; }
  .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .wallets, .podium { grid-template-columns: minmax(0, 1fr); }
  .wallets > div + div, .pod + .pod { border-left: 0; border-top: 1px solid var(--line); }
  .splitbar div { padding: 6px 8px; font-size: 10.5px; min-width: 90px; white-space: normal; line-height: 1.25; }
  .splitbar div b { font-size: 15px; }
  .stats6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .st:nth-child(2n + 1) { border-left: 0; }
  .st:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .rig-side { padding: 18px 16px; }
  .hdoc .callout { grid-template-columns: 90px minmax(0, 1fr); }
  .collage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #buckets thead { display: none; }
  #buckets tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 14px 8px; border-bottom: 1px solid var(--line); }
  #buckets td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; min-width: 0; }
  #buckets td::before { content: attr(data-l); display: block; color: var(--faint); font-size: 11px; margin-bottom: 2px; text-transform: lowercase; }
  #buckets td:first-child, #buckets td:last-child { grid-column: 1 / -1; }
  #buckets td:first-child::before { display: none; }
}
.pg > section > h1, .page-head h1, .buy-hero h1, .cab-in h1, .nf h1 { text-transform: lowercase; }
.hero-top span { white-space: nowrap; }
@media (max-width: 720px) { .section-head > .dim { display: none; } .hero-top { font-size: 11px; } }

/* ——— one coin (/coin/<mint>) ——— */
.cp-head { display: flex; gap: 22px; align-items: flex-start; margin-top: 18px; }
.cp-logo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line2); background: var(--surface); }
.cp-logo.ph { display: block; }
.cp-id { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cp-id h1 { margin: 0; }
.cp-ca { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.cp-ca .mono { word-break: break-all; color: var(--text); }
.cp-links { margin-top: 4px; }
.cp-about { margin: 22px 0 0; max-width: 760px; }
a.cc { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.cc:hover { border-color: var(--accent); transform: translateY(-2px); }
a.miner-feat { color: inherit; text-decoration: none; }
@media (max-width: 760px) { .cp-head { gap: 14px; } .cp-logo { width: 56px; height: 56px; } }

/* ——— suggest a coin ——— */
.sg { margin-top: 48px; }
.sg-lede { margin: 6px 0 16px; max-width: 720px; }
.sg-f { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 10px; max-width: 900px; }
.sg-list { margin-top: 18px; border-top: 1px solid var(--line); }
.sg-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.sg-row img, .sg-row .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface); display: block; }
.sg-nm { min-width: 0; }
.sg-nm small { color: var(--muted); }
.sg-nm .dim { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-st { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line2); color: var(--muted); }
.sg-st.live { color: var(--pos); border-color: currentColor; }
.sg-st.rejected { color: var(--neg); border-color: currentColor; }
.sg-vote.on { color: var(--pos); border-color: var(--pos); }
@media (max-width: 760px) { .sg-f { grid-template-columns: minmax(0, 1fr); } .sg-row { grid-template-columns: 28px minmax(0, 1fr) auto; } .sg-st { display: none; } }
.sg-list > p { padding-top: 14px; }

/* next payout math on the rig page */
.nextmath { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px dashed var(--line2, #23305a); font-size: 13px; }
.nextmath:empty { display: none; }
.nextmath .k { color: var(--muted); font-size: 12px; }
.nextmath b { color: var(--pos); }
.rig-card .s.nx { margin-top: 2px; font-size: 12px; }
