/* Rentals tab (rentals.html, js/rentals.js). Loads after tokens.css, base.css, shell.css, rally.css and, on phones,
   mobile-fill.css. The scene, rings, lines, hover and spotlight cards, search and the right-hand column come from
   css/atlas.css (edited copy); rn- pieces are the rental parts (lime rings, size tiles, steps, the honest line);
   ar- pieces are this page's layout. Lime is the rental colour; the room's blue stays for buttons and own SHA-256
   miners, gold for own Scrypt miners. Motion is transform and opacity only (plus the dash offset on moving lines). */
:root{--ease:cubic-bezier(.2,.7,.2,1);--livew:clamp(340px,27vw,400px);
  --rn-lime:#D1FE17;--rn-lime-text:#DDFF5C;--rn-lime-line:#D1FE1766;--rn-lime-wash:#D1FE1714;--rn-on-lime:#0A0A0A}
html,body{height:100%;overflow:hidden;background:var(--ground);color:var(--text);font-family:var(--font-body);font-size:var(--fs-body);-webkit-text-size-adjust:100%}
body{position:fixed;inset:0;line-height:1.45;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--font-display);margin:0}
button{color:inherit}
a{color:var(--accent-text)}
:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
.skip{position:fixed;left:8px;top:-60px;z-index:200;padding:8px 12px;background:var(--accent-fill);color:#fff;border-radius:var(--r-sm)}
.skip:focus{top:8px}
.mono,.kv b,.hv-grid b{font-family:var(--font-mono)}
/* the safe-area probe read by js/rentals.js */
.ar-sa{position:fixed;left:0;top:0;width:0;height:0;visibility:hidden;pointer-events:none;padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.ibtn{width:40px;height:40px;border-radius:var(--r-sm);border:1px solid transparent;background:transparent;display:inline-grid;place-items:center;font-size:18px;color:var(--text);flex:none}
.ibtn:hover{background:var(--surface-2);border-color:var(--line-strong)}
.ibtn.sm{width:32px;height:32px;font-size:14px}
.av.sm{width:24px;height:24px;font-size:10px}
.note{margin:0;color:var(--text-muted);font-size:var(--fs-small);line-height:1.5}
.note.pad{padding:14px}

/* ---------- the scene ---------- */
#atlas{position:fixed;inset:0;z-index:1;overflow:hidden}
.boot{position:absolute;inset:0;display:grid;place-items:center;color:var(--text-muted);font-family:var(--font-mono);font-size:13px}
/* the page could not start: one plain line and Reload (js/rentals.js, the boot's catch) */
.boot.boot-fail{align-content:center;gap:14px;padding:0 16px;text-align:center;color:var(--text);font:500 14px var(--font-body)}
.boot-fail p{margin:0}
.boot-reload{min-height:40px;padding:0 20px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface-2);color:var(--text);font:500 14px var(--font-body);cursor:pointer}
.boot-reload:hover{background:var(--surface-3,var(--surface-2))}
html.ar-failed #live,html.ar-failed #hud,html.ar-failed #panel,html.ar-failed #hover{display:none!important}
#scene{display:block;width:100%;height:100%;touch-action:manipulation}
.dotp{fill:#1b1b1b}
.f-lab{font:600 13px var(--font-display);fill:var(--text);letter-spacing:.12em}
.f-rate{font:500 15px var(--font-mono);fill:var(--text)}
.f-sub{font:12px var(--font-body);fill:var(--text-muted)}
.f-one .f-lab{font-size:11px;letter-spacing:.08em}.f-one .f-rate{font-size:13px}
.f-msg{font-size:13px}.f-msg.down{fill:var(--text)}
.fhead.sha .f-lab{fill:var(--accent-text)}.fhead.scr .f-lab{fill:var(--gold)}
.fhead.rent .f-lab,.fhead.rent .f-rate{fill:var(--rn-lime-text)}
.live-dot-s{fill:var(--success)}
.live-line{font:500 12px var(--font-mono);fill:var(--text-muted);letter-spacing:.1em}
.split{stroke:var(--line-strong);stroke-width:1;stroke-dasharray:2 6}
/* rings */
.node{cursor:pointer;outline:none;transform:translate(var(--x,0px),var(--y,0px));transition:transform .8s var(--ease),opacity .3s}
.node .drift{animation:drift var(--dur,12s) ease-in-out var(--delay,0s) infinite}
@keyframes drift{0%,100%{transform:translate(0,0)}50%{transform:translate(var(--dx,0),var(--dy,0))}}
.node .hit{fill:transparent}
.node .sc{transform:scale(var(--s,1));transition:transform .8s var(--ease)}
.node .ring{fill:none;stroke-width:3}
.node.sha .ring{stroke:var(--accent)}.node.scr .ring{stroke:var(--gold)}
.node .ring2{fill:none;stroke-width:1.5;opacity:.9}
.node.sha .ring2{stroke:var(--gold)}.node.scr .ring2{stroke:var(--accent)}
.node .halo{fill:none;stroke:#fff;stroke-width:2;opacity:0;transition:opacity .15s}
.node:hover .halo,.node:focus-visible .halo{opacity:.7}
.node .ini{font:500 12px var(--font-body);fill:#fff;pointer-events:none}
.node image{pointer-events:none}
.node .lbl{font:500 11px var(--font-mono);fill:var(--text);pointer-events:none;paint-order:stroke;stroke:var(--ground);stroke-width:4px;stroke-linejoin:round}
.node .lbl2{font:500 10.5px var(--font-mono);fill:var(--text-muted);pointer-events:none;paint-order:stroke;stroke:var(--ground);stroke-width:4px;stroke-linejoin:round}
.focus .node:not(.hot){opacity:.16}
.node.own.hot .ring{stroke-width:4}
.node.picked .drift{animation:none}
.node.picked .halo{opacity:1;stroke-dasharray:5 4}
/* the two marks: chip (own miner), lightning (rental) */
.mk circle{stroke:var(--ground);stroke-width:2}
.mk-rent circle{fill:var(--rn-lime)}
.mk-rent path{fill:var(--rn-on-lime);stroke:none}
.mk-own circle{fill:var(--surface-3)}
.mk-own path{fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
/* renters: a lime ring, heavier through the four sizes */
.node.rent .ring{fill:none;stroke:var(--rn-lime)}
.node.rent.t0 .ring{stroke-width:2.5}.node.rent.t1 .ring{stroke-width:3.5}.node.rent.t2 .ring{stroke-width:5}.node.rent.t3 .ring{stroke-width:7}
.node.rent .ring-o{fill:none;stroke:var(--rn-lime);stroke-width:1.5;opacity:.45}
.node.rent .halo,.node.you .halo{stroke:var(--rn-lime)}
.node .rini{font-family:var(--font-body);font-weight:600;letter-spacing:.02em;pointer-events:none}
.node .lbl2.rent{fill:var(--rn-lime-text)}
.node .lbl2.shut{fill:var(--text)}
.node.rent.top .lbl{font:600 14px var(--font-mono)}
.node.rent.top .lbl2{font:500 12.5px var(--font-mono)}
.node .tag{font:600 10px var(--font-mono);letter-spacing:.16em;fill:var(--rn-lime-text);paint-order:stroke;stroke:var(--ground);stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.node .pulse circle{fill:none;stroke:var(--rn-lime);stroke-width:2;transform-box:fill-box;transform-origin:center;animation:arping 2.8s ease-out infinite;pointer-events:none}
.node .pulse .p2{animation-delay:1.4s}
@keyframes arping{0%{transform:scale(1);opacity:.65}100%{transform:scale(1.5);opacity:0}}
.node.you .ring{fill:none;stroke:var(--rn-lime);stroke-width:2;stroke-dasharray:5 4}
.node.you.shut .ring{stroke:var(--rn-lime-line)}
.node.you .face{fill:#D1FE1712}
.node.you .plus{fill:none;stroke:var(--rn-lime);stroke-width:2.4;stroke-linecap:round}
.node.you.shut .plus{stroke:var(--rn-lime-line)}
.node.you .lbl.you{font:600 12px var(--font-mono);fill:var(--rn-lime-text)}
.node .lbl3,.node .lbl4{font:500 11px var(--font-body);fill:var(--text-muted);paint-order:stroke;stroke:var(--ground);stroke-width:4px;stroke-linejoin:round;pointer-events:none}
/* lines from each ring into the card of the coin it mines */
.flow{fill:none;stroke-width:var(--w,1px);stroke-linecap:round;opacity:.16;transition:opacity .25s}
.flow.sha{stroke:var(--accent-text)}.flow.scr{stroke:var(--gold)}
.flow.on,.flow.hov{opacity:.95;stroke-dasharray:6 8;animation:flowmove 1.2s linear infinite}
.focus .flow:not(.on):not(.hov){opacity:.04}
@keyframes flowmove{to{stroke-dashoffset:-28}}
.flow.rent{stroke:var(--rn-lime);opacity:.5;stroke-dasharray:5 6;animation:flowmove 1.6s linear infinite}
.flow.rent.you{opacity:.35}
.flow.rent.on,.flow.rent.hov{opacity:1;stroke-dasharray:7 6;animation:flowmove 1s linear infinite}
.focus .flow.rent:not(.on):not(.hov){opacity:.05}
.link{fill:none;stroke-linecap:round}
.link.panel{stroke:var(--accent-text);stroke-width:2;stroke-dasharray:6 5}
.link.panel.rent{stroke:var(--rn-lime)}

/* ---------- coin cards over the scene ---------- */
.ar-cards{position:absolute;inset:0;z-index:3;pointer-events:none}
.ar-card{position:absolute;left:0;top:0;width:var(--w,300px);transform:translate(var(--x,0px),var(--y,0px));pointer-events:auto;cursor:pointer;
  display:grid;gap:7px;padding:10px 12px 11px;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--line-strong);transition:opacity .3s,border-color .15s}
.ar-card:hover{border-color:#4a4a4a}
.ar-card.ar-bch{border-color:var(--rn-lime-line)}
.ar-card.hot{border-color:var(--cc)}
.ar-card.ar-bch.hot{border-color:var(--rn-lime)}
.ar-cards.focus .ar-card:not(.hot){opacity:.35}
.ar-c-sel{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0;border:0;border-radius:var(--r-sm);background:transparent;color:var(--text);text-align:left;cursor:pointer;font:inherit}
.ar-c-sel:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}
.ar-c-ics{display:inline-flex;flex:none}
.ar-c-ics .rn-coin{width:26px;height:26px}
.ar-c-ics .rn-coin+.rn-coin{margin-left:-9px}
.ar-c-n{flex:1;min-width:0;display:grid;gap:0}
.ar-c-n b{font:600 15px/1.25 var(--font-display)}
.ar-c-n small{font-size:12px;color:var(--text-muted)}
.ar-c-sub{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;margin-top:2px}
.ar-c-pill{flex:none;display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:var(--r-round);font:500 11px var(--font-mono);white-space:nowrap}
.ar-c-pill .rn-ic{width:12px;height:12px}
.ar-c-pill.open{background:var(--rn-lime);color:var(--rn-on-lime)}
.ar-c-pill.closed{border:1px solid var(--rn-lime-line);color:var(--text)}
.ar-c-pill.soon,.ar-c-pill.checking{border:1px solid var(--line-strong);color:var(--text-muted)}
.ar-c-stats{display:grid;grid-template-columns:repeat(3,auto);justify-content:space-between;gap:8px}
.ar-c-stats>span{display:grid;gap:1px;min-width:0}
.ar-c-stats b{font:500 16px var(--font-mono);white-space:nowrap}
.ar-c-stats small{font-size:11px;color:var(--text-muted)}
.ar-split{display:flex;width:100%;height:8px;border-radius:4px;overflow:hidden;background:var(--surface-3)}
.ar-split i{display:block;height:100%}
.ar-split .own{width:calc((1 - var(--rent,0)) * 100%);background:var(--accent)}
.ar-split .rent{width:calc(var(--rent,0) * 100%);background:var(--rn-lime)}
.ar-split.scr .own{background:var(--gold)}
.ar-c-key{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:12px;color:var(--text-muted)}
.ar-c-key>span{display:inline-flex;align-items:center;white-space:nowrap}
.ar-c-key>span::before{content:"";width:8px;height:8px;border-radius:2px;margin-right:6px;background:var(--accent);flex:none}
.ar-c-key .rent::before{background:var(--rn-lime)}
.ar-split.scr+.ar-c-key .own::before{background:var(--gold)}
.ar-c-key b{font:500 12px var(--font-mono);color:var(--text);margin-left:5px}
.ar-c-key .rent b{color:var(--rn-lime-text)}
.ar-c-with{margin:0;font-size:12px;line-height:1.4;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ar-c-with b{font:500 13px var(--font-mono);color:var(--rn-lime-text)}
.ar-wo{color:var(--text-muted)}
.ar-c-rent{display:grid;gap:6px;padding-top:8px;border-top:1px solid var(--line)}
.ar-c-acts{display:flex;gap:6px}
.ar-c-btn{flex:1 1 auto;min-width:0;min-height:40px;padding:0 10px;font-size:13.5px;gap:6px}
.ar-c-btn .rn-ic{width:16px;height:16px}
.ar-c-ft{display:grid;gap:2px;min-width:0}
.ar-c-so{font:600 12px var(--font-body);color:var(--text)}
.ar-c-honest{font-size:11.5px}
.ar-c-honest.wide{flex:1 0 100%}
.ar-c-soon{margin:0;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted)}
.ar-c-soon .rn-ic{width:14px;height:14px;color:var(--text-faint)}
.ar-c-chains{margin:0;font:500 11px var(--font-mono);color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* compact cards (phone, narrow or short desktop): one row of three, each card three short lines
   (icons and ticker / hashrate / the rental state over the own vs rented bar) */
.ar-card.compact{padding:0;gap:0;height:var(--h,auto)}
.ar-card.compact .ar-c-sel{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;gap:3px;height:100%;min-height:44px;padding:6px 8px 7px}
.ar-c-top{display:flex;align-items:center;gap:5px;min-width:0}
.ar-card.compact .ar-c-ics .rn-coin{width:18px;height:18px}
.ar-card.compact .ar-c-ics .rn-coin+.rn-coin{margin-left:-7px}
.ar-c-tk{font:600 12.5px var(--font-display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ar-card.compact .ar-c-mini{font:500 11px var(--font-mono);color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ar-c-low{display:grid;gap:4px;min-width:0}
.ar-card.compact .ar-c-pill{justify-self:start;max-width:100%;overflow:hidden;padding:1px 6px;font-size:10px}
.ar-card.compact .ar-c-pill .rn-ic{width:10px;height:10px}
.ar-card.compact .ar-split{height:5px}

/* ---------- under the picture: Light up + legend ---------- */
#hud{position:fixed;z-index:20;left:var(--acx,50%);bottom:14px;transform:translateX(-50%);width:max-content;max-width:calc(100vw - var(--livew) - 80px);display:grid;gap:8px;justify-items:center}
.ar-light{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface-1)}
.ar-light-k{padding:0 10px 0 9px;font:600 11px var(--font-display);letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);white-space:nowrap}
.ar-light button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 14px;border:1px solid transparent;border-radius:var(--r-sm);background:transparent;color:var(--text-muted);font:600 13px var(--font-display);white-space:nowrap;cursor:pointer}
.ar-light button:hover{color:var(--text);background:var(--surface-2)}
.ar-light button[aria-pressed=true]{background:var(--accent-fill);color:var(--on-accent)}
.ar-light button[data-f=rent][aria-pressed=true]{background:var(--rn-lime);color:var(--rn-on-lime)}
.ar-lmk{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;flex:none}
.ar-lmk.rent{background:var(--rn-lime);color:var(--rn-on-lime)}
.ar-lmk.own{background:var(--surface-3);color:#fff}
.ar-light button[data-f=rent][aria-pressed=true] .ar-lmk{background:var(--rn-on-lime);color:var(--rn-lime)}
.ar-lmk .rn-ic{width:11px;height:11px}
.ar-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 22px;font-size:12px;color:var(--text-muted)}
.ar-lg{display:inline-flex;align-items:center;gap:6px}
.ar-lg b{color:var(--text);font-weight:600;margin-right:2px}
.ar-lgm{flex:none}
.ar-lgm .lgl{fill:none;stroke-width:2;stroke-linecap:round}
.ar-lgm.rent .lgl{stroke:var(--rn-lime);stroke-dasharray:4 4}
.ar-lgm.own .lgl{stroke:var(--accent-text);opacity:.75}
.ar-lgm .lgf{fill:var(--surface-3)}
.ar-lgm.rent .lgr{fill:none;stroke:var(--rn-lime);stroke-width:3}
.ar-lgm.own .lgr{fill:none;stroke:var(--accent);stroke-width:2.5}

/* ---------- hover card and spotlight card ---------- */
#hover{position:fixed;left:0;top:0;z-index:70;width:244px;padding:12px;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--line-strong);pointer-events:none;display:grid;gap:10px;transform:translate(var(--hx,0px),var(--hy,0px))}
.hv-top{display:flex;align-items:center;gap:10px}.hv-top b{font:600 15px var(--font-display)}
.hv-rank{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted)}
.hv-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.kv{display:grid;gap:1px;min-width:0}.kv span{font-size:11px;color:var(--text-muted);letter-spacing:.02em}.kv b{font-weight:500;font-size:13px;overflow-wrap:anywhere}
.hv-hint{font-size:12px;color:var(--accent-text)}
.hv-kind{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text-muted)}
.hv-kind.rent{color:var(--rn-lime-text)}
.hv-mk{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;flex:none}
.hv-mk .rn-ic{width:10px;height:10px}
.hv-kind.rent .hv-mk{background:var(--rn-lime);color:var(--rn-on-lime)}
.hv-kind.own .hv-mk,.hv-mk.own{background:var(--surface-3);color:#fff}
.hv-mk.sm{width:14px;height:14px}.hv-mk.sm .rn-ic{width:9px;height:9px}
.hv-p{margin:0;font-size:12px;line-height:1.45;color:var(--text-muted)}
#hover .rn-left-track{width:110px}
.callout{position:absolute;left:0;top:0;transform:translate(var(--x,0px),var(--y,0px));width:272px;padding:12px;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--accent);display:grid;gap:10px;z-index:8;animation:rise .25s var(--ease) both}
@keyframes rise{from{opacity:0}to{opacity:1}}
.callout .co-n{flex:1;min-width:0}
.callout .co-n b{overflow-wrap:anywhere}
.callout.rent{border-color:var(--rn-lime);width:304px}
.co-line{margin:0;font-size:13px;color:var(--text-muted)}
.co-line b{font:500 16px var(--font-mono);color:var(--rn-lime-text)}
.co-rs{display:grid;gap:6px}
.co-r{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--text-muted)}
.co-r>b{font:500 12px var(--font-mono);color:var(--text);min-width:78px}
.co-left{margin-left:auto;font:500 12px var(--font-mono)}
.co-act{display:flex;align-items:center;gap:10px;padding-top:10px;border-top:1px solid var(--line)}
.co-act .rn-btn{flex:none}
.co-honest{font-size:11.5px}

/* ---------- top bar: no free-spin chip here, so the search sits right ---------- */
.topbar .search{position:relative;flex:0 1 260px;min-width:160px;display:flex;align-items:center;margin-left:auto}
.topbar .search>svg{position:absolute;left:12px;width:18px;height:18px;fill:none;stroke:var(--text-muted);stroke-width:2;stroke-linecap:round;pointer-events:none}
.topbar .search input{width:100%;height:40px;padding:0 12px 0 38px;border-radius:var(--r-sm);border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);font-size:14px;-webkit-appearance:none;appearance:none}
.topbar .search input::placeholder{color:var(--text-muted)}
.topbar .search input:focus{outline:none;border-color:var(--accent)}
.topbar .search input::-webkit-search-cancel-button{display:none}
.topbar .who{margin-left:0}
.qres{position:absolute;top:46px;right:0;width:340px;max-height:min(60vh,420px);overflow:auto;background:var(--surface-1);border:1px solid var(--line-strong);border-radius:var(--r-md);padding:6px;z-index:80}
.qh{padding:8px 8px 4px;font:600 11px var(--font-display);letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted)}
.qi{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:4px 8px;border:0;border-radius:var(--r-sm);background:transparent;text-align:left}
.qi:hover,.qi.on{background:var(--accent-wash)}
.qt{display:grid;min-width:0}.qt b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qt small{color:var(--text-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qic{width:24px;height:24px;border-radius:50%;flex:none;object-fit:contain}
.qempty{padding:12px;color:var(--text-muted);font-size:13px}

/* ---------- the right-hand column, and the phone sheet ---------- */
.grab{display:none}
.ph{flex:none;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 16px;border-bottom:1px solid var(--line);min-height:56px}
.ph-t{flex:1;min-width:0}.ph-t h2{font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-t small{display:block;color:var(--text-muted);font-size:12px}
.pb{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;display:flex;flex-direction:column}
.toast{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);z-index:500;padding:10px 16px;border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--accent-line);font-size:13px;max-width:calc(100vw - 32px)}
#live,#panel{position:fixed;z-index:45;top:var(--topbar-h);right:10px;bottom:10px;width:var(--livew);display:flex;flex-direction:column;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--line-strong);outline:none;overflow:hidden}
#live{z-index:30}
#panel{transform:translateX(calc(100% + 24px));visibility:hidden;transition:transform .38s var(--ease),visibility 0s .38s}
#panel.open{transform:none;visibility:visible;transition:transform .38s var(--ease),visibility 0s}
.lv-h{flex:none;padding:12px 16px 10px;border-bottom:1px solid var(--line);display:grid;gap:2px}
.lv-h h2{font-size:17px;font-weight:600}.lv-h small{color:var(--text-muted);font-size:12px}
.lv-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
/* rank icons */
.rank-ico{display:inline-grid;place-items:center;width:20px;height:20px;color:var(--accent-text)}
.rank-ico.hi{color:var(--gold)}
.rank-ico svg{width:18px;height:18px}
/* Hashing now: the own miners list (.lv-body .mem, as on the Atlas) */
.lv-body{border-top:1px solid var(--line);margin-top:8px}
.mem-h{padding:10px 14px 4px;font:600 12px var(--font-display);letter-spacing:.06em;color:var(--text-muted)}
.mem-list{list-style:none;margin:0;padding:4px 6px 12px;display:grid;gap:1px}
.mem{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:4px 8px;border:0;border-radius:var(--r-sm);background:transparent;text-align:left;cursor:pointer}
.mem:hover{background:var(--surface-2)}
.mem-n{flex:1;min-width:0;display:grid;gap:2px}.mem-n b{font:500 13px var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mem-r{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-muted)}.mem-r .rank-ico{width:14px;height:14px}.mem-r .rank-ico svg{width:12px;height:12px}
.cico{width:14px;height:14px;margin-left:2px}
.mem-h2{flex:none;max-width:104px;text-align:right;font:600 12px var(--font-mono);color:var(--text);overflow-wrap:anywhere}
.ar-down{color:var(--text)}
.mem-more{margin:0;padding:0 14px 14px;color:var(--text-muted);font-size:var(--fs-small);line-height:1.5}

/* ---------- rental pieces (rn-) ---------- */
.rn-ic{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rn-ic.rn-ic-fill{fill:currentColor;stroke-width:1.5}
.rn-coin{width:20px;height:20px;flex:none;display:inline-block;vertical-align:middle}
.rn-btn{min-height:44px;padding:0 var(--sp-4);border-radius:var(--r-sm);border:1px solid var(--accent-line);background:transparent;color:var(--text);
  font:500 14px var(--font-body);display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;cursor:pointer;transition:background var(--motion-fast),border-color var(--motion-fast)}
.rn-btn:hover{border-color:var(--accent);background:var(--accent-wash)}
.rn-btn:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
.rn-btn.primary{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--on-accent)}
.rn-btn.primary:hover{background:var(--accent-fill-hover);border-color:var(--accent-fill-hover)}
.rn-btn:disabled{cursor:default;color:var(--text-muted);border-color:var(--line-strong);background:var(--surface-2)}
.rn-btn.wide{width:100%}
.rn-btn.sec{background:transparent;border-color:var(--accent-line);color:var(--text)}
.rn-btn.sec:hover{border-color:var(--accent);background:var(--accent-wash)}
.rn-btn .rn-l{min-width:0;overflow:hidden;text-overflow:ellipsis}
.rn-ls{display:none}
.rn-btn .rn-ic{width:18px;height:18px}
.rn-honest{margin:0;font-size:12px;line-height:1.4;color:var(--text-muted)}
/* renter faces: initials (or a known picture) in a lime ring, with the lightning mark */
.rn-rav{--s:40px;--w:2px;position:relative;display:inline-grid;place-items:center;flex:none;width:var(--s);height:var(--s);border-radius:50%;vertical-align:middle;border:var(--w) solid var(--rn-lime);padding:2px;background:var(--ground)}
.rn-rav.rn-t1{--w:3px}.rn-rav.rn-t2{--w:4.5px}.rn-rav.rn-t3{--w:6px;outline:1.5px solid var(--rn-lime-line);outline-offset:3px}
.rn-rav .av{width:100%;height:100%;font-size:calc(var(--s) * .3);border-radius:50%;object-fit:cover}
.rn-rav.rn-empty{border-style:dashed;border-color:var(--rn-lime-line);--w:2px}
.rn-plus{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;background:var(--rn-lime-wash);color:var(--rn-lime)}
.rn-plus .rn-ic{width:45%;height:45%}
.rn-mark{position:absolute;right:-4px;bottom:-4px;width:max(14px,calc(var(--s) * .32));height:max(14px,calc(var(--s) * .32));border-radius:50%;display:grid;place-items:center;border:2px solid var(--ground)}
.rn-mark .rn-ic{width:66%;height:66%}
.rn-mk-rent{background:var(--rn-lime);color:var(--rn-on-lime)}
/* size tiles */
.rn-sizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rn-size{position:relative;display:grid;gap:2px;justify-items:start;align-content:start;text-align:left;min-height:0;padding:8px 12px;
  border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface-2);color:var(--text);cursor:pointer;transition:border-color var(--motion-fast),background var(--motion-fast)}
.rn-size:hover{border-color:var(--accent-line)}
.rn-size:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
.rn-size[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-wash)}
.rn-size[aria-pressed="true"]::after{content:"";position:absolute;bottom:12px;right:12px;width:10px;height:10px;border-radius:50%;background:var(--accent);outline:3px solid var(--accent-wash)}
.rn-size.shut{background:var(--surface-1)}
.rn-size:disabled{cursor:default}
.rn-size:disabled:hover{border-color:var(--line-strong)}
.rn-size.shut[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-wash)}
.rn-size-top{display:grid;gap:1px;width:100%}
.rn-sz{display:flex;align-items:baseline;gap:5px}
.rn-sz b{font:500 18px/1.15 var(--font-mono);letter-spacing:-.02em}
.rn-sz small{font:500 12px var(--font-mono);color:var(--text-muted)}
.rn-pr{font-size:12.5px;color:var(--text);font-weight:500;white-space:nowrap}
.rn-od{display:grid;gap:1px;margin-top:2px;font-size:12px;color:var(--text-muted)}
.rn-od b{font:500 13px var(--font-mono);color:var(--rn-lime-text)}
.rn-od b.rn-same,.rn-size.shut .rn-od b.rn-same{color:var(--text-muted)}
.rn-gain{font:500 11px var(--font-mono);color:var(--text-muted)}
.rn-size.shut .rn-od b{color:var(--text)}
.rn-so{margin-top:2px;font:600 12px var(--font-body);color:var(--text)}
/* how renting works */
.rn-steps{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.rn-step{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;padding:6px 10px 6px 8px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface-1)}
.rn-pic-tile{display:block;width:34px;height:34px}
.rn-art{width:34px;height:34px;fill:none;stroke:var(--rn-lime);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rn-art .rn-fillw{fill:var(--rn-lime-wash)}
.rn-step-t{display:grid;gap:2px}
.rn-step-t b{display:flex;align-items:baseline;gap:8px;font:600 13.5px/1.3 var(--font-display)}
.rn-step-t b i{font:500 12px var(--font-mono);font-style:normal;color:var(--rn-lime-text)}
.rn-step-t>span{font-size:12px;color:var(--text-muted);line-height:1.35}
/* time left */
.rn-left{display:inline-flex;align-items:center;gap:8px;min-width:0}
.rn-left-track{position:relative;display:block;width:72px;height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden;flex:none}
.rn-left-fill{position:absolute;inset:0 auto 0 0;width:calc(var(--p,0) * 100%);background:var(--rn-lime);border-radius:3px}
.rn-left-t{font:500 12px var(--font-mono);color:var(--text-muted);white-space:nowrap}

/* ---------- Rent hashrate sections (ar-) ---------- */
.ar-what{padding:12px 16px 4px;display:grid;gap:10px}
.ar-def{margin:0;font-size:14px;line-height:1.5;color:var(--text)}
.ar-def b{color:var(--rn-lime-text);font-weight:600}
.ar-sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.ar-sec-h h3{display:flex;align-items:center;gap:8px;font:600 15px var(--font-display);white-space:nowrap}
.ar-sec-h small{font-size:12px;color:var(--text-muted);text-align:right}
.ar-buy{padding:12px 16px 16px;display:grid;gap:10px;border-bottom:1px solid var(--line);outline:none}
.ar-buy:focus-visible{box-shadow:inset 0 0 0 2px var(--accent-text)}
.ar-pick{display:grid;gap:10px}
.ar-algo,.ar-sizes-w{display:grid;gap:8px}
.ar-algos{display:grid;gap:6px}
.ar-alg{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:8px}
.ar-alg-k{font:600 11px var(--font-mono);letter-spacing:.04em;color:var(--text-muted)}
.ar-alg-cs{display:flex;flex-wrap:wrap;gap:6px}
.ar-coin{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 12px;border-radius:var(--r-round);border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);font:500 13px var(--font-body);cursor:pointer;white-space:nowrap}
.ar-coin:hover{border-color:var(--accent-line)}
.ar-coin.on{border-color:var(--accent);background:var(--accent-wash)}
.ar-coin.soon{color:var(--text-muted);cursor:not-allowed;background:transparent}
.ar-coin.soon .rn-coin{opacity:.5}
.ar-coin i{font-style:normal;font-size:11px;color:var(--text-muted);border:1px solid var(--line-strong);border-radius:4px;padding:1px 5px}
.ar-coin-ics{display:inline-flex}
.ar-coin-ics .rn-coin{width:18px;height:18px}.ar-coin-ics .rn-coin+.rn-coin{margin-left:-6px}
.ar-act{display:grid;gap:8px}
.ar-state{margin:0;font:600 13px var(--font-body);color:var(--text)}
.ar-mainbtn{min-height:48px;font-size:15px;font-weight:600}
/* the two actions: stacked (main first); side by side on short phones */
.ar-duo{display:grid;gap:8px}
.ar-2nd{min-height:44px}
.ar-honest{text-align:center}
/* desktop column: the main action and the honest line stay in view at the column's foot while the sizes are above */
@media (min-width:821px){
  #live .ar-act{position:sticky;bottom:0;z-index:2;margin:0 -16px -16px;padding:10px 16px 14px;background:var(--surface-1);box-shadow:0 -10px 14px -6px rgba(0,0,0,.55);border-top:1px solid var(--line)}
}
.ar-peekmore{display:none}
.ar-now{padding:16px;display:grid;gap:10px;border-bottom:1px solid var(--line)}
.ar-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--rn-lime);flex:none}
.ar-pace{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--ground);font-size:12px;color:var(--text-muted)}
.ar-pace b{font:500 15px var(--font-mono);color:var(--text)}
.ar-top{display:flex;align-items:center;gap:14px;width:100%;padding:14px;border:1px solid var(--rn-lime-line);border-radius:var(--r-md);background:var(--rn-lime-wash);color:var(--text);text-align:left;cursor:pointer;font:inherit}
.ar-top:hover,.ar-top.on{border-color:var(--rn-lime)}
.ar-top-av{flex:none;display:grid}
.ar-top-t{display:grid;gap:3px;min-width:0}
.ar-top-k{display:flex;align-items:center;gap:7px;font:600 10.5px var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--rn-lime-text)}
.ar-rk1{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--rn-lime);color:var(--rn-on-lime);font:600 11px var(--font-mono);letter-spacing:0}
.ar-top-n{font:600 18px var(--font-mono);overflow-wrap:anywhere}
.ar-top-th{font-size:13px;color:var(--text-muted)}
.ar-top-th b{font:500 20px var(--font-mono);color:var(--rn-lime-text)}
.ar-top-parts{font:500 11px var(--font-mono);color:var(--text-muted)}
.ar-just{font:600 11px var(--font-mono);color:var(--rn-lime-text)}
.ar-rlist{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ar-rrow{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:6px 8px;border:1px solid transparent;border-radius:var(--r-sm);background:transparent;color:var(--text);text-align:left;cursor:pointer;font:inherit}
.ar-rrow:hover{background:var(--surface-2)}
.ar-rrow.on{border-color:var(--rn-lime-line);background:var(--rn-lime-wash)}
.ar-rk{flex:none;width:18px;text-align:right;font:500 12px var(--font-mono);color:var(--text-muted)}
.ar-rn{flex:1;min-width:0;display:grid;gap:1px}
.ar-rn>b{font:500 13px var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ar-rn>span{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ar-rn>span b{font:500 12px var(--font-mono);color:var(--rn-lime-text)}
.ar-rrow .rn-left{flex:none;flex-direction:column;align-items:flex-end;gap:5px}
.ar-rrow .rn-left-track{width:56px}
.ar-first{display:grid;gap:12px;padding:14px;border:1px dashed var(--rn-lime-line);border-radius:var(--r-md);background:var(--rn-lime-wash)}
.ar-first.shut{background:transparent;border-color:var(--line-strong)}
.ar-first-top{display:flex;align-items:flex-start;gap:12px}
.ar-first b{font:600 15px var(--font-display)}
.ar-first p{margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--text-muted)}
.ar-first .rn-honest{text-align:center}
.ar-hash{padding:14px 6px 8px}
.ar-hash>.ar-sec-h{padding:0 10px}
.ar-lgbox{padding:6px 12px 24px}
.ar-legend-sheet{justify-content:flex-start;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;border:1px solid var(--line);border-radius:var(--r-md)}
body:not(.ar-mid) #live .ar-lgbox{display:none}
#live .ar-lgbox{padding:10px 16px 18px}

/* ---------- narrow or short desktop (body.ar-mid): the coins as one row on top ---------- */
.ar-mid #hud{left:var(--hudx,50%);transform:translateX(-100%);bottom:14px;max-width:none}
.ar-mid #hud .ar-legend{display:none}
.ar-mid .ar-light-k{display:none}
@media (max-width:1100px){.topbar .search{flex:0 1 200px;min-width:120px}}
@media (max-width:1000px) and (min-width:821px){.topbar .search{display:none}}
@media (max-width:1180px) and (min-width:821px){.ar-legend{gap:4px 14px;font-size:11.5px}.ar-light-k{display:none}.ar-c-stats b{font-size:14px}}
/* short desktop windows: the steps keep their titles only, so the main action and its honest line stay in view */
@media (min-width:821px) and (max-height:860px){
  .rn-step-t>span{display:none}
  .rn-step{grid-template-columns:30px minmax(0,1fr);padding:6px 12px 6px 10px}
  .rn-pic-tile,.rn-art{width:30px;height:30px}
}

/* ---------- phone: the picture on top, Rent hashrate as the sheet below ---------- */
@media (max-width:820px){
  :root{--topbar-h:calc(52px + env(safe-area-inset-top,0px))}
  .topbar{height:calc(52px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);padding-left:max(6px,env(safe-area-inset-left,0px));padding-right:max(6px,env(safe-area-inset-right,0px))}
  .topbar .search{display:none}
  .topbar .tabs .tab{min-height:44px}
  #live{display:none!important}
  #panel{--peek:38dvh;--full:calc(100dvh - var(--tbb,52px));left:0;right:0;top:auto;bottom:0;width:auto;height:var(--full);border-radius:14px 14px 0 0;border-width:1px 0 0;z-index:50;
    padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);padding-bottom:env(safe-area-inset-bottom,0px);
    transform:translateY(calc(100% - var(--peek)));visibility:visible;transition:transform .34s var(--ease)}
  #panel.open[data-sheet=full]{transform:none}
  #panel.open[data-sheet=peek]{transform:translateY(calc(100% - var(--peek)))}
  #panel[data-sheet=peek] .pb{padding-bottom:calc(var(--full) - var(--peek))}
  #panel:not(.open){transform:translateY(100%);visibility:hidden}
  #panel .grab{display:grid;position:absolute;top:0;left:0;right:0;height:44px;z-index:2;place-items:start center;padding-top:9px;border:0;background:transparent;margin:0}
  .grab i{width:44px;height:5px;border-radius:3px;background:var(--line-strong)}
  .ph{align-items:flex-start;min-height:0;padding:22px 12px 8px 16px}
  .ph-t small{white-space:normal;font-size:13px;line-height:1.4;color:var(--text);margin-top:2px}
  .toast{bottom:16px}
  .callout{width:calc(100vw - 16px);display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px}
  .callout .hv-grid{display:flex;gap:14px}.callout .note{flex-basis:100%}
  .callout.rent{display:grid;width:calc(100vw - 16px)}
  .co-act .rn-btn{min-height:44px}
  .ibtn,.ibtn.sm{width:44px;height:44px}
  .qres{position:fixed;top:60px;left:8px;right:8px;width:auto}
  #hud{left:calc(6px + env(safe-area-inset-left,0px));right:calc(6px + env(safe-area-inset-right,0px));top:var(--hudy,200px);bottom:auto;transform:none;width:auto;max-width:none;display:block}
  #hud .ar-legend{display:none}
  .ar-light{display:flex;width:100%}
  .ar-light-k{display:none}
  .ar-light button{flex:1 1 0;min-width:0;min-height:44px;padding:0 6px;font-size:12.5px}
  /* a ring's card lives inside #atlas, which sits under #hud, so Light up would lie across it: the bar steps aside while a
     card is open and is back when it closes (its layout is kept). A browser without :has() drops this rule: bar as before. */
  #atlas:has(> .callout) ~ #hud{visibility:hidden}
  .node.you .lbl3,.node.you .lbl4{font-size:11px;stroke-width:3px}
  .boot-reload{min-height:44px}
  .node.rent.top .lbl{font-size:12px}
  .node.rent.top .lbl2{font-size:11px}
  /* the sheet: the action first, then what renting is */
  .ar-sheet{display:flex;flex-direction:column}
  .ar-sheet .ar-buy{order:1;padding:8px 12px 12px;gap:10px}
  .ar-sheet .ar-what{order:2;padding:12px 12px 10px;border-bottom:1px solid var(--line)}
  .ar-sheet .ar-now{order:3;padding:14px 12px}
  .ar-sheet .ar-hash{order:4;padding:12px 2px 8px}
  .ar-sheet .ar-lgbox{order:5}
  .ar-sheet .ar-def{display:none}
  .ar-sheet .ar-sec-h h3{font-size:14px}
  .ar-sheet .ar-alg{grid-template-columns:56px minmax(0,1fr)}
  .ar-sheet .ar-coin{min-height:44px;padding:0 10px;font-size:12.5px}
  .ar-sheet .rn-sizes{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .ar-sheet .rn-size{padding:8px 10px}
  .ar-sheet .rn-sz b{font-size:17px}
  .ar-sheet .rn-od{display:grid;gap:0;font-size:11px}
  .ar-sheet .rn-od b{font-size:11.5px}
  .ar-sheet .rn-size[aria-pressed="true"]::after{top:9px;right:9px;width:8px;height:8px;outline-width:2px}
  .ar-top .rn-left-track{width:56px}
  /* the resting sheet: a row that opens the sheet on the algorithm and the sizes, then the state, the main action and the
     honest line; the open sheet shows the algorithm and the sizes in place of the row */
  #panel[data-sheet=peek] .ar-pick{display:none}
  #panel[data-sheet=peek] .ar-peekmore{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:0 12px;
    border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface-2);color:var(--text);font:500 13px var(--font-body);text-align:left;cursor:pointer}
  #panel[data-sheet=peek] .ar-peekmore:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
}
.ar-phmore{display:none}
/* short phones (667, 640 and 568 px tall): the resting sheet is the title, the state, the main action and the honest line;
   the definition moves into the open sheet and the way to the sizes into the header, so the picture keeps 200 px or more */
@media (max-width:820px) and (max-height:700px){
  #panel .ph{padding:20px 12px 6px 16px}
  #panel .ph-t small{display:none}
  .ar-sheet .ar-def{display:block;font-size:13px}
  #panel[data-sheet=peek] .ar-peekmore{display:none}
  #panel[data-sheet=peek] .ar-phmore{display:inline-flex;align-items:center;position:absolute;top:8px;right:10px;z-index:3;min-height:44px;padding:0 14px;
    border:1px solid var(--line-strong);border-radius:var(--r-round);background:var(--surface-2);color:var(--text);font:500 13px var(--font-body);cursor:pointer}
  #panel[data-sheet=peek] .ar-phmore:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
  .ar-phmore span{margin-left:5px}
  .ar-sheet .ar-buy{padding:4px 12px 10px;gap:8px}
  .ar-sheet .ar-act{gap:6px}
  .ar-sheet .ar-mainbtn{min-height:44px}
  .ar-sheet .ar-duo{display:flex;gap:6px}
  .ar-sheet .ar-duo>.rn-btn{width:auto;min-width:0;min-height:44px;padding:0 12px;font-size:14px}
  .ar-sheet .ar-duo>.ar-mainbtn{flex:0 0 auto}
  .ar-sheet .ar-duo>.ar-2nd{flex:1 1 auto}
  .ar-sheet .ar-duo .rn-lf{display:none}
  .ar-sheet .ar-duo .rn-ls{display:inline}
  .ar-card.compact .ar-c-sel{padding:5px 7px 6px;gap:2px}
}
@media (max-width:360px){
  .ar-sheet .ar-alg{grid-template-columns:1fr;gap:4px}
  .ar-sheet .rn-sizes{gap:5px}
  .ar-sheet .rn-size{padding:7px 8px}
  .ar-card.compact .ar-c-sel{padding:6px 6px 7px;gap:3px 4px}
  .ar-card.compact .ar-c-ics .rn-coin+.rn-coin{display:none}
  .ar-card.compact .ar-c-tk{font-size:11.5px;letter-spacing:-.02em}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .flow.on,.flow.hov,.flow.rent,.flow.rent.on,.flow.rent.hov{animation:none;stroke-dasharray:5 6}
  .node .pulse{display:none}
}
