/* /solo-mining (phone redesign, owner 7 Nov 2026; mockup asicprofit-admin/preview/mobile-calcs/solo-mining). Only this page
   loads it. Colours come from the site theme, so dark mode follows; the chance-per-year scale has its own fixed colours. */
.sm, .sm-pin {
  /* chance per year, fixed scale: solid (meter, dot) / text / tint. 0 Likely … 5 Long shot */
  --b0: #16a34a; --b0t: #116b33; --b0b: #dcf5e3;
  --b1: #65a30d; --b1t: #3f6212; --b1b: #ecf7d4;
  --b2: #f59e0b; --b2t: #8a5300; --b2b: #fdf1cf;
  --b3: #ea580c; --b3t: #9a3f07; --b3b: #fde6d3;
  --b4: #dc2626; --b4t: #b42318; --b4b: #fde4e1;
  --b5: #991b1b; --b5t: #7f1d1d; --b5b: #f6dddd;
  --sm-line: hsl(var(--border)); --sm-card: hsl(var(--card)); --sm-mut: hsl(var(--muted-foreground)); --sm-ink: hsl(var(--foreground));
}
:root[data-theme="dark"] .sm, :root[data-theme="dark"] .sm-pin {
  --b0t: #6ee79a; --b0b: #12301e; --b1t: #b5e26b; --b1b: #24300f; --b2t: #fcd34d; --b2b: #33270b;
  --b3t: #fdba74; --b3b: #35200f; --b4t: #fca5a5; --b4b: #381617; --b5: #c2410c; --b5t: #fda4af; --b5b: #33141a;
}
[data-b="0"] { --bx: var(--b0); --bxt: var(--b0t); --bxb: var(--b0b); }
[data-b="1"] { --bx: var(--b1); --bxt: var(--b1t); --bxb: var(--b1b); }
[data-b="2"] { --bx: var(--b2); --bxt: var(--b2t); --bxb: var(--b2b); }
[data-b="3"] { --bx: var(--b3); --bxt: var(--b3t); --bxb: var(--b3b); }
[data-b="4"] { --bx: var(--b4); --bxt: var(--b4t); --bxb: var(--b4b); }
[data-b="5"] { --bx: var(--b5); --bxt: var(--b5t); --bxb: var(--b5b); }
.sm-s0 { background: var(--b0); } .sm-s1 { background: var(--b1); } .sm-s2 { background: var(--b2); }
.sm-s3 { background: var(--b3); } .sm-s4 { background: var(--b4); } .sm-s5 { background: var(--b5); }

.sm-num { font-variant-numeric: tabular-nums; }
.sm-neg { color: var(--neg); }
.sm-coin { display: inline-block; vertical-align: middle; flex: none; border-radius: 50%; }
.sm-h1 { display: flex; align-items: center; gap: 10px; }

/* network strip */
.sm-net { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.sm-net > div { background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 12px; padding: 9px 10px; min-width: 0; }
.sm-net > div > span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sm-mut); line-height: 1.2; }
.sm-net b { display: block; font-size: 16px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-net small { display: block; font-size: 12px; color: var(--sm-mut); }

/* hero: the result first, the fields under it */
.sm-hero { background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 16px; padding: 16px; margin-bottom: 22px; scroll-margin-top: calc(var(--hdr-h, 64px) + 12px); }
.sm-who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sm-who img { width: 64px; height: 48px; object-fit: contain; border-radius: 8px; background: hsl(var(--muted)); flex: none; }
.sm-who div { min-width: 0; }
.sm-who small { display: block; font-size: 12.5px; color: var(--sm-mut); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sm-who b { display: block; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.sm-odds { border-radius: 14px; padding: 14px 14px 12px; background: var(--bxb); color: var(--bxt); }
.sm-k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 7px; }
.sm-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bx); flex: none; box-shadow: 0 0 0 2px var(--sm-card); }
.sm-big { font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.6px; margin: 6px 0 2px; overflow-wrap: anywhere; }
.sm-big span { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.sm-odds p { margin: 2px 0 0; font-size: 14.5px; color: var(--sm-ink); }
.sm-meter { position: relative; height: 10px; border-radius: 99px; margin: 12px 0 4px; display: flex; }
.sm-meter i { display: block; height: 100%; }
.sm-meter i:first-child { border-radius: 99px 0 0 99px; } .sm-meter i:nth-child(6) { border-radius: 0 99px 99px 0; }
.sm-mk { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--sm-ink); box-shadow: 0 0 0 2px var(--sm-card); }
.sm-meter, .sm-ml { direction: ltr; }   /* a scale from unlikely (left) to likely (right) in every language */
.sm-ml { position: relative; height: 16px; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.sm-ml span { position: absolute; top: 0; white-space: nowrap; }
.sm-ml span:nth-child(1) { left: 0; } .sm-ml span:nth-child(2) { left: 75%; transform: translateX(-50%); } .sm-ml span:nth-child(3) { right: 0; }
.sm-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 14px 2px 2px; }
.sm-sub > div > span { display: block; font-size: 12.5px; color: var(--sm-mut); }
.sm-sub b { font-size: 16px; }
.sm-fl { animation: sm-fl .6s ease-out; }
@keyframes sm-fl { 0% { background: #fff3c4; } 100% { background: transparent; } }

/* fields */
.sm-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sm-line); border-radius: 4px; scroll-margin-top: calc(var(--hdr-h, 64px) + 12px); }
.sm-fh { font-size: 15px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sm-fh b { font-weight: 800; }
.sm-fh button { border: 0; background: none; color: var(--pos); font: inherit; font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.sm-fh.sm-fe { margin: 0; }
.sm-f { margin: 0 0 14px; min-width: 0; }
.sm-f label, .sm-lb { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 5px; }
.sm-help { font-size: 13px; color: var(--sm-mut); margin-top: 5px; }
.sm-box { display: flex; align-items: center; border: 1.5px solid hsl(var(--field-border)); border-radius: 12px; background: var(--sm-card); min-height: 48px; overflow: hidden; }
.sm-box:focus-within { border-color: var(--pos); box-shadow: 0 0 0 3px rgb(22 163 74 / .2); }
.sm-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: 17px; padding: 11px 12px; height: 48px; }
.sm-u { padding: 0 12px; color: var(--sm-mut); font-size: 15px; white-space: nowrap; }
.sm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.sm-seg { display: flex; border-inline-start: 1.5px solid var(--sm-line); height: 48px; flex: none; }
.sm-seg button { border: 0; background: none; color: var(--sm-mut); font: inherit; padding: 0 9px; min-width: 46px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sm-seg button[aria-pressed="true"] { background: var(--sm-ink); color: hsl(var(--background)); }
.sm-step button { width: 48px; height: 48px; border: 0; background: hsl(var(--muted)); color: inherit; font-size: 22px; font-weight: 700; cursor: pointer; flex: none; }
.sm-step input { text-align: center; width: 0; padding: 11px 4px; }
.sm-err { display: none; color: var(--neg); font-size: 13px; margin-top: 5px; }
.sm-f.bad .sm-box { border-color: var(--neg); }
.sm-f.bad .sm-err { display: block; }
#smPick img { width: 40px; height: 30px; object-fit: contain; border-radius: 6px; flex: none; }
.apm-list .sm-pi { width: 48px; height: 36px; object-fit: contain; border-radius: 6px; background: hsl(var(--muted)); }

/* list heading, sort and filter chips, legend */
.sm-lh h2 { font-size: 21px; margin: 0 0 4px; }
.sm-lsub { color: var(--sm-mut); font-size: 14px; margin: 0 0 12px; }
.sm-lsub b { color: var(--sm-ink); font-weight: 600; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.sm-cl { width: 100%; font-size: 13px; font-weight: 700; color: var(--sm-mut); }
.sm-chip { border: 1.5px solid var(--sm-line); background: var(--sm-card); color: inherit; border-radius: 99px; min-height: 44px; padding: 0 12px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.sm-chip small { color: var(--sm-mut); font-weight: 500; margin-inline-start: 5px; }
.sm-chip[aria-pressed="true"] { background: var(--sm-ink); border-color: var(--sm-ink); color: hsl(var(--background)); }
.sm-chip[aria-pressed="true"] small { color: inherit; opacity: .75; }
.sm-legend { background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 14px; padding: 12px 12px 10px; margin: 4px 0 14px; }
.sm-lt { display: block; font-size: 14px; margin-bottom: 8px; }
.sm-legend ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.sm-legend li { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.25; }
.sm-legend li .sm-dot { box-shadow: none; }
.sm-legend li div span { color: var(--sm-mut); display: block; font-size: 12px; }
.sm-legend p { font-size: 12.5px; color: var(--sm-mut); margin: 9px 0 0; }

/* miner cards: photo, maker logo, the coloured chance per year, the same three numbers on every card */
.sm-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sm-m { background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 16px; padding: 14px 14px 12px; min-width: 0; }
.sm-m[hidden] { display: none; }
.sm-m.sel { border-color: var(--pos); box-shadow: 0 0 0 2px rgb(22 163 74 / .35); }
.sm-hd { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sm-ph { width: 72px; height: 54px; object-fit: contain; border-radius: 8px; background: hsl(var(--muted)); }
.sm-br { height: 16px; display: flex; align-items: center; font-size: 12px; font-weight: 800; color: var(--sm-mut); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; }
.sm-br img { height: 14px; width: auto; max-width: 100px; object-fit: contain; object-position: left center; }
:root[data-theme="dark"] .sm-br img { background: #fff; border-radius: 4px; padding: 1px 4px; height: 16px; }
.sm-nm { display: block; font-weight: 700; font-size: 16.5px; line-height: 1.25; color: var(--sm-ink); text-decoration: none; padding: 12px 0; margin: -9px 0 -8px; overflow-wrap: anywhere; }
.sm-nm:hover { text-decoration: underline; }
.sm-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--sm-mut); background: hsl(var(--muted)); border-radius: 6px; padding: 1px 7px; }
.sm-use { border: 1.5px solid var(--sm-line); background: var(--sm-card); border-radius: 12px; min-width: 56px; min-height: 44px; padding: 0 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--pos); }
.sm-m.sel .sm-use { background: var(--pos); border-color: var(--pos); color: hsl(var(--card)); }
.sm-ch { margin: 12px 0 0; padding: 9px 11px 8px; border-radius: 12px; background: var(--bxb); color: var(--bxt); }
.sm-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sm-l1 b { font-size: 19px; letter-spacing: -.2px; }
.sm-w { font-weight: 700; font-size: 13.5px; }
.sm-ch .sm-meter { height: 6px; margin: 8px 0 1px; }
.sm-ch .sm-mk { top: -4px; height: 14px; width: 3px; }
.sm-st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.sm-st > div > span { display: block; font-size: 12px; color: var(--sm-mut); line-height: 1.2; }
.sm-st b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.sm-ft { font-size: 12.5px; color: var(--sm-mut); margin-top: 8px; }
.sm-more { display: block; width: 100%; margin: 14px 0 0; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--sm-line); background: var(--sm-card); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.sm-more[hidden] { display: none; }
.sm-note { margin: 18px 0; }

/* the pinned result bar (phones): shows once the whole result card has scrolled away (APMobile.cue holds it back until then) */
.sm-pin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #13243a; color: #fff; transform: translateY(110%); transition: transform .25s ease; }
.sm-pin.on { transform: none; }
.sm-pin a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sm-pin .sm-dot { width: 14px; height: 14px; box-shadow: 0 0 0 2px #13243a, 0 0 0 3.5px #fff; }
.sm-pv { flex: 1; min-width: 0; }
.sm-pv b { display: block; font-size: 18px; line-height: 1.2; }
.sm-pv > span { font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sm-go { font-size: 13.5px; font-weight: 700; border: 1.5px solid #ffffff55; border-radius: 10px; padding: 10px 12px; white-space: nowrap; }

@media (max-width: 900px) {
  /* phones and tablets: the tool comes first, the categories panel goes under it */
  .sm-pg .hw-store > .hw-aside { order: 2; }
}
@media (max-width: 759px) {
  .sm-pg { padding-bottom: 76px; }
  .sm-pg .to-top { display: none; }   /* the pinned bar's "Change ↑" does that job and the button covered the cards */
}
@media (min-width: 760px) {
  .sm-pin { display: none; }
  .sm-net b { font-size: 19px; }
}
@media (min-width: 1100px) {
  .sm-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .sm-legend ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .sm-hd { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; }
  .sm-ph { width: 60px; height: 45px; }
  .sm-big { font-size: 32px; }
  .sm-net { gap: 6px; } .sm-net > div { padding: 8px; } .sm-net b { font-size: 15px; }
  .sm-seg button { min-width: 44px; padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) { .sm-fl { animation: none; } .sm-pin { transition: none; } }
@media print { .sm-pin, .sm-form, .sm-chips, .sm-use { display: none; } }

/* the shared picker (mobile-ui.css) reads --card / --muted as colours, but on this site they are HSL triplets
   ("0 0% 100%"), which leaves the sheet see-through; give it the theme's real colours here */
.apm-sheet-p, .apm-pick { background: hsl(var(--card)); color: hsl(var(--foreground)); }
.apm-pick, .apm-q { border-color: hsl(var(--field-border)); }
.apm-q { background: hsl(var(--card)); color: inherit; }
.apm-pick-l small, .apm-pick-c, .apm-list li small, .apm-list .apm-g, .apm-list .apm-none { color: hsl(var(--muted-foreground)); }
.apm-list li[data-v]:hover, .apm-list li[data-v]:focus { background: hsl(var(--muted)); }
:root[data-theme="dark"] .apm-list li[aria-selected="true"] { background: rgb(22 163 74 / .18); }
