/* LoneHash - main stylesheet. Fonts are self-hosted; system fonts are the fallback. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrument-sans.woff2') format('woff2');
}

:root {
  --bg: #0d1620; --surface: #142230; --surface2: #1a2d3f; --line: #24384c;
  --text: #e6edf3; --muted: #8ba0b3; --ok: #4cc38a; --bad: #ef6b6b;
  --bc2: #f0a23b; --dgb: #2fc4b2; --ppc: #5cc46a; --accent: var(--bc2);
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5f7; --surface: #ffffff; --surface2: #eaeff3; --line: #d8e0e7;
    --text: #16222e; --muted: #5c6f80; --ok: #17875a; --bad: #c93c3c;
    --bc2: #c47408; --dgb: #12877a; --ppc: #2b8a3e;
  }
}
:root[data-coin="bc2"] { --accent: var(--bc2); }
:root[data-coin="dgb"] { --accent: var(--dgb); }
:root[data-coin="ppc"] { --accent: var(--ppc); }

:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface2); padding: 1px 6px; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* header */
.bar { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.menu { display: flex; gap: 4px; flex: 1; }
.menu a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 500; }
.menu a:hover { color: var(--text); background: var(--surface); }
.menu a[aria-current="page"] { color: var(--text); background: var(--surface2); }
.coinsel { position: relative; margin-left: auto; }
.coinbtn { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.coinbtn[aria-expanded="true"] { border-color: var(--accent); }
.chev { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot[data-c="bc2"] { background: var(--bc2); }
.dot[data-c="dgb"] { background: var(--dgb); }
.dot[data-c="ppc"] { background: var(--ppc); }
.coinlist { position: absolute; top: calc(100% + 6px); right: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; list-style: none; z-index: 20; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 7px; font-weight: 500; }
.opt:hover:not(:disabled), .opt[aria-selected="true"] { background: var(--surface2); }
.opt:disabled { opacity: 0.55; cursor: not-allowed; }
.opt small { margin-left: auto; color: var(--muted); }

/* buttons and forms */
.btn { display: inline-block; background: var(--accent); color: #0d1620; border: 1px solid var(--accent); border-radius: 10px; padding: 10px 18px; font-weight: 600; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
input[type="text"], input[type="password"], input[type="email"], select { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); font: inherit; font-size: 14px; }
input::placeholder { color: var(--muted); }
label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.err { color: var(--bad); font-size: 13px; min-height: 22px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* home */
.hero { padding: 36px 0 28px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5.2vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.accent { color: var(--accent); }
.lead { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 58ch; }
.lead.flush { margin-top: 0; margin-bottom: 4px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.chips li { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.chips li::before { content: "\2713"; color: var(--accent); font-weight: 700; }

section { margin-bottom: 44px; }
h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 14px; }
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cap { color: var(--muted); margin-bottom: 4px; }
.big { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 8vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.big small { font-size: 0.36em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.sub { color: var(--muted); margin-top: 10px; }
.ranges { display: flex; gap: 4px; }
.ranges button { border: 1px solid var(--line); background: transparent; padding: 5px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.ranges button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0d1620; }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .tip { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; min-height: 24px; margin: 0 4px 4px; pointer-events: none; font-size: 13px; white-space: nowrap; opacity: 0; }
.chart .tip b { font-family: var(--display); font-size: 15px; }
.chart .tip span { color: var(--muted); font-size: 12px; }
.chart-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); padding: 56px 20px; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; }
.stat { padding: 16px 16px 16px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin-top: 2px; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.step b { display: block; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card b { color: var(--text); }

.soon { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; color: var(--muted); }
.soon b { color: var(--text); }

.page-title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; padding: 30px 0 6px; }
.page-lead { color: var(--muted); max-width: 62ch; margin-bottom: 22px; }
.addrform { display: flex; gap: 8px; }
.addrform input { flex: 1; }
.addrform button { white-space: nowrap; }
.addrbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.addrbar .addr { font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pill.off::before { background: var(--bad); }
.odds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; }
.odd { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.odd .k { color: var(--muted); font-size: 13px; }
.odd .v { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin-top: 0; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 75ch; }
.oddsrow { --n: 5; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; align-items: end; margin-top: 8px; }
.oddsrow .oddsbox { grid-column: span 4; }
.oddsrow.noeffort .oddsbox { grid-column: 1 / -1; }
.oddsrow .cap { margin-bottom: 4px; }
.oddsrow .odds { margin-top: 0; }
.odd.effort { border-left: 4px solid var(--accent); }
.note.flush { margin-top: 0; margin-bottom: 14px; min-height: 0; }
.linkbtn { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 0; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head .sub { margin-top: 0; }
.wlist { list-style: none; }
.w { display: grid; grid-template-columns: minmax(0, 1.8fr) 100px 92px 92px 84px 84px 92px; gap: 0 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.w > span { text-align: right; white-space: nowrap; }
.w > .wn { text-align: left; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.w .wn .nm { overflow: hidden; text-overflow: ellipsis; }
.w .wn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.w.off .wn::before { background: var(--bad); }
.w .wn .ua { color: var(--muted); font-weight: 500; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.w .wh { font-family: var(--display); font-weight: 700; font-size: 15px; }
.w.off, .w.off .wh { color: var(--muted); }
.w.empty { display: block; color: var(--muted); padding: 16px 0; }
.w .wn .lb { background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 500; padding: 0 2px; margin-left: 4px; text-decoration: underline; text-underline-offset: 3px; }
.w .wn .lb:hover { color: var(--accent); }
.w.whead .wh { font-family: var(--body); font-weight: 400; font-size: 12px; }
.w.whead { color: var(--muted); font-size: 12px; padding: 0 0 6px; }
.w.whead > .wn::before { display: none; }

.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.panel .btn { margin-top: 4px; cursor: pointer; }

.wcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.wcard .wtop { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.wcard h3 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.wcard .tag { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 10px; }
.wcard .sub { margin-top: 0; font-size: 13px; }
.wcard p { color: var(--muted); max-width: 70ch; }
.wcard .note { margin-top: 8px; }
.wcard .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wcard .btn { padding: 7px 14px; font-size: 14px; }
.plain { list-style: none; }
.plain li { color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); max-width: 75ch; }
.plain li:first-child { border-top: 1px solid var(--line); }
.plain b { color: var(--text); }

.body-text { color: var(--muted); max-width: 72ch; margin-bottom: 14px; }
.body-text b { color: var(--text); }
.terms { max-width: 75ch; }
.terms dt { font-weight: 600; margin-top: 14px; }
.terms dd { color: var(--muted); margin-top: 2px; }
.row .v.txt { font-family: var(--body); font-size: 14px; word-break: normal; }
#calc .odds { margin-top: 10px; }
#calc .lead.flush { margin-top: 12px; max-width: none; font-size: 15px; }

.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }
.authbox { max-width: 460px; }
.notice h2 { margin-bottom: 8px; }
.notice .cta { margin-top: 14px; }

.tabs { margin-bottom: 16px; }
.authbox + .authbox, .authbox + .note { margin-top: 12px; }
#walletList .row:first-child { padding-top: 0; }
#addForm { margin-top: 14px; }

select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.panel > .hint { margin: 0 0 14px; }
.panel > .hint:last-child, .panel > .hint + .btn { margin-bottom: 0; }
.panel .field { margin-bottom: 16px; }
.panel form .hint, .panel .field + .hint { margin: 0 0 14px; }
.tabs { margin-top: 14px; }

#vAcct .panel:first-child { margin-top: 0; }
.linkbtn { margin-right: 8px; }

.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; margin: 4px 0 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.terms-box { max-width: 460px; margin-top: 28px; }
.terms-box h2 { font-size: 18px; margin-bottom: 8px; }
.plain.authbox { margin-top: 16px; }

.authgrid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; align-items: start; }
.authcard { padding: 22px; }
.authcard .tabs { margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; }
.authcard .tabs button { padding: 9px 12px; }
.authcard form + form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.authcard .note { margin-top: 14px; }
.authside h2 { font-size: 17px; margin-bottom: 8px; }
.authside .plain { max-width: 52ch; }
.authside .plain li:first-child { border-top: 0; }

.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; }
.acct-sub { color: var(--muted); }
.acct-sub b { color: var(--text); }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.acct-main, .acct-side { display: grid; gap: 24px; }
.card2 { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card2 h2 { font-size: 18px; margin-bottom: 0; }
.card2-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card2 > h2 { margin-bottom: 14px; }
.card2 .sub { margin-top: 0; font-size: 13px; }
.card2 > .sub { margin-bottom: 8px; font-size: 14px; }
.card2 > .sub b { color: var(--text); }
.card2 .cta { margin-top: 0; margin-bottom: 14px; }
.card2 .cta:last-child { margin-bottom: 0; }
.wallets { list-style: none; }
.wal { padding: 14px 0; border-top: 1px solid var(--line); }
.wal:first-child { border-top: 0; padding-top: 0; }
.wtop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
.wal .wmain { display: flex; flex-direction: column; min-width: 0; }
.wal .wmain b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wal .wmain .mono { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.wal .wst { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; margin-left: 4px; }
.wal .wst.on { color: var(--ok); font-weight: 600; }
.wal .wact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wal .wact .copy { margin-left: 0; }
.tagmini { font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 8px; line-height: 18px; }
.walerts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 10px 0 0 22px; padding: 9px 14px; background: var(--surface2); border-radius: 10px; }
.walerts.flat { margin: 0; padding: 0; background: none; }
.walerts .saved { font-size: 12px; color: var(--muted); margin-left: auto; min-width: 48px; text-align: right; }
.switch.slim { padding: 10px 0; gap: 12px; align-items: start; }
.switch.slim .track { width: 36px; height: 21px; margin-top: 1px; }
.switch.slim .track::after { top: 3px; left: 3px; width: 15px; height: 15px; }
.switch.slim input:checked + .track::after { transform: translateX(15px); }
.switch.slim .lbl b { font-size: 14px; }
.switch.slim .lbl small { font-size: 12px; line-height: 1.4; }
.card2 > .switch.slim:first-of-type { border-top: 0; padding-top: 0; }
.switch.compact { padding: 0; border-top: 0; gap: 10px; align-items: center; }
.switch.compact .track { width: 34px; height: 20px; margin-top: 0; }
.switch.compact .track::after { top: 3px; left: 3px; width: 14px; height: 14px; }
.switch.compact input:checked + .track::after { transform: translateX(14px); }
.switch.compact .lbl b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.switch.compact .lbl small { font-size: 12px; }
.addbox { margin-top: 6px; border: 0; padding: 0; }
.addbox summary { display: inline-block; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 0; }
.addbox summary::after { content: none; }
.addgrid { display: grid; grid-template-columns: minmax(0, 1fr); }
.addgrid select { max-width: 260px; box-sizing: border-box; }
.addgrid textarea { box-sizing: border-box; width: 100%; min-width: 0; resize: none; word-break: break-all; font: inherit; line-height: 1.4; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.addgrid textarea:focus { outline: 0; border-color: var(--accent); }
.wallets .mono { overflow-wrap: anywhere; word-break: break-all; font-size: 12px; }
.addbox form { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.switch { color: var(--text); font-size: 14px; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.15s; margin-top: 2px; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch .lbl { display: flex; flex-direction: column; gap: 2px; }
.switch .lbl small { color: var(--muted); font-size: 13px; }
.danger-box { border: 1px solid var(--bad); border-radius: 10px; padding: 14px; margin-top: 4px; }
.danger-box p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.acct-side .row .v.txt { word-break: break-all; }

/* admin */
.a-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.btn.small { padding: 5px 12px; font-size: 13px; border-radius: 8px; cursor: pointer; }
.a-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.a-tools input[type="text"] { width: 260px; max-width: 100%; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.a-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.a-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.a-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.a-table tbody tr:first-child td { border-top: 0; }
.a-table .sorter { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; font-weight: 600; }
.a-table .sorter:hover { color: var(--text); }
.a-table .c-acc { min-width: 230px; }
.a-table .c-acc b { display: inline-block; margin-right: 8px; overflow-wrap: anywhere; }
.a-table .c-acc .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.a-table .c-wal .wl { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }
.a-table .c-wal .wl + .wl { margin-top: 3px; }
.a-table .c-wal .mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.a-table .c-btn { white-space: nowrap; text-align: right; }
.a-table .c-btn .btn + .btn { margin-left: 6px; }
.a-table .empty { text-align: center; color: var(--muted); padding: 22px; }
.a-table tbody tr { box-shadow: inset 3px 0 0 transparent; }
.a-table tr.r-now { box-shadow: inset 3px 0 0 var(--ok); }
.a-table tr.r-idle { box-shadow: inset 3px 0 0 var(--muted); }
.a-table tr.r-warn { box-shadow: inset 3px 0 0 var(--accent); }
.a-table tr.r-over { box-shadow: inset 3px 0 0 var(--bad); background: rgba(201, 60, 60, 0.07); }
.state { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.state.s-now { color: var(--ok); border-color: var(--ok); }
.state.s-ok { color: var(--text); }
.state.s-idle { color: var(--muted); border-style: dashed; }
.state.s-warn { color: var(--accent); border-color: var(--accent); }
.state.s-over { color: var(--bad); border-color: var(--bad); background: rgba(201, 60, 60, 0.1); }
.state.s-pending { color: var(--muted); border-style: dashed; }
.tagmini { white-space: nowrap; }
.tagmini.muted { color: var(--muted); border-color: var(--line); }

.ranges button:disabled { opacity: 0.45; cursor: not-allowed; }
.coin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.coin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.coin-title { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.coin-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coin-act .ask { color: var(--muted); font-size: 13px; }
.cstate { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); color: var(--muted); }
.cstate.c-on { color: var(--ok); border-color: var(--ok); }
.cstate.c-sync { color: var(--accent); border-color: var(--accent); }
.cstate.c-bad { color: var(--bad); border-color: var(--bad); }
.coin-rows { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; margin: 0; }
.coin-rows dt { color: var(--muted); }
.coin-rows dd { margin: 0; }
.coin-card .coinalerts { margin: 16px 0 0 0; }
.switch.compact.off { opacity: 0.5; cursor: not-allowed; }
h2.grp { font-size: 15px; margin: 22px 0 8px; color: var(--muted); }
.mails { padding: 6px 20px; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mrow:first-child { border-top: 0; }
.mtxt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 320px; }
.mtxt small { color: var(--muted); font-size: 13px; }
.mact { display: flex; align-items: center; gap: 10px; }
.mres { font-size: 13px; color: var(--muted); }
.mres.ok { color: var(--ok); }
.mres.bad, .sub.bad { color: var(--bad); }
#tSettings .field input { max-width: 420px; }
.coin-rows .stepnote { color: var(--muted); font-size: 13px; margin-top: -4px; }
.coin-rows .stepnote.late { color: var(--bad); font-weight: 600; }
.coin-rows .up + .up { margin-top: 4px; }
.coin-rows .up.u-none { color: var(--muted); }
.coin-rows .up.u-done { color: var(--muted); }
.coin-rows .up.u-done::before { content: "\2713 "; color: var(--ok); }
.coin-rows .up.u-todo { color: var(--accent); font-weight: 600; }
.coin-rows .up.u-newer { color: var(--text); }
.coin-rows .up.u-check { color: var(--muted); }

.stat.off .v { color: var(--accent); }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

/* shared blocks */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); flex-shrink: 0; }
.row .rv { display: flex; align-items: center; min-width: 0; }
.row .v { font-family: var(--mono); font-size: 13px; text-align: right; word-break: break-all; }
.copy { border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; margin-left: 8px; flex-shrink: 0; }
.copy:hover { border-color: var(--accent); }
a.copy { text-decoration: none; display: inline-block; color: var(--text); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 18px 0; }
.win { background: var(--surface); padding: 14px 16px; }
.win .k { color: var(--muted); font-size: 13px; }
.win .v { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin-top: 2px; }
.win .v small { font-size: 12px; color: var(--muted); font-weight: 500; }
.win.zero .v { color: var(--muted); }
.tbl { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
th.num, td.num { text-align: right; padding-right: 0; padding-left: 12px; font-variant-numeric: tabular-nums; }
td.mono { font-family: var(--mono); font-size: 13px; }
td.empty { color: var(--muted); padding: 20px 0; }
.st { display: inline-flex; align-items: center; gap: 6px; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.st.off::before { background: var(--bad); }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin: 16px 0 40px; }
.notice p { color: var(--muted); }
.status { color: var(--bad); font-size: 13px; min-height: 20px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 20px 0 32px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .menu { order: 3; width: 100%; flex-basis: 100%; overflow-x: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-bottom: 0; padding-left: 0; border-left: 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .authgrid, .acct-grid { grid-template-columns: 1fr; gap: 24px; }
  .wtop { grid-template-columns: auto minmax(0, 1fr); }
  .wtop .wact { grid-column: 2; justify-content: flex-start; }
  .walerts { margin-left: 0; }
  .formgrid { grid-template-columns: 1fr; }
  .oddsrow { grid-template-columns: 1fr 1fr; }
  .oddsrow:not(.has-closest) #effortBox { grid-column: 1 / -1; }
  .oddsrow .oddsbox { grid-column: 1 / -1; }
  .odds { gap: 6px; }
  .odd { padding: 8px 8px; }
  .odd .k { font-size: 11px; }
  .odd .v { font-size: 18px; }
  .w { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .w .c1h, .w .c24, .w .csh, .w .cbs { display: none; }
  .w > .cls { grid-column: 1 / -1; text-align: left; padding-left: 17px; color: var(--muted); font-size: 13px; }
  .w > .cls::before { content: "Last share "; }
  .w.whead { display: none; }
  .addrform { flex-direction: column; }
}

/* announcement popup: shown once per announcement */
.notice-back { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 14, 20, 0.55); }
.notice-box { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 14px; padding: 22px 24px; max-width: 460px; width: 100%; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.notice-box.chart-box { max-width: 720px; }
.notice-box.chart-box .chart { margin-bottom: 18px; }
.odd[role="button"] { cursor: pointer; }
.odd[role="button"]:hover { border-color: var(--accent); }
.notice-box.warn { border-top-color: var(--bad); }
.notice-box h2 { font-size: 19px; margin-bottom: 8px; }
.notice-box p { color: var(--muted); margin-bottom: 18px; white-space: pre-line; }
.notice-box .btn { cursor: pointer; }

/* the words that say how a part of a coin is doing: green = fine, orange = on its way, red = off or wrong */
.sv { font-weight: 600; }
.sv-ok { color: var(--ok); }
.sv-warn { color: var(--accent); }
.sv-bad { color: var(--bad); }
.coin-rows .up.u-none, .coin-rows .up.u-done { color: var(--ok); }

/* Info page: a FAQ in plain words. Everything sits on the same grid: tiles, story card, questions and tables share the page edges. */
main { counter-reset: sec; }
.faq { margin-top: 44px; }
.faq h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.faq h2::before { counter-increment: sec; content: counter(sec); flex: none; min-width: 30px; height: 30px; border-radius: 8px; background: var(--surface2); color: var(--accent); font-size: 15px; font-weight: 700; display: inline-grid; place-items: center; align-self: center; font-family: var(--display), sans-serif; }
.sec-lead { color: var(--muted); margin: 0 0 16px 42px; max-width: 70ch; }
.toc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0 8px; }
.toc a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 12px; font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--text); text-decoration: none; min-height: 54px; }
.toc a:hover { border-color: var(--accent); }
.toc .n { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface2); color: var(--accent); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.story { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; align-items: center; }
.story p { font-size: 17px; line-height: 1.65; margin: 0 0 12px; }
.story p:last-child { margin-bottom: 0; }
.fig { margin: 0; justify-self: center; width: 100%; max-width: 380px; }
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.fn-a { fill: var(--surface2); stroke: var(--line); }
.fn-b { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.fn-c { fill: var(--accent); }
.fn-ar { fill: var(--muted); }
.fn-t { fill: var(--text); font-size: 17px; font-weight: 700; font-family: var(--display), sans-serif; }
.fn-s { fill: var(--muted); font-size: 13.5px; }
.fn-in { fill: #0d1620; }
.faq-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 -22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.faq-count { color: var(--muted); font-size: 14px; }
.faq-tools .linkbtn + .linkbtn { margin-left: 16px; }
section[id] { scroll-margin-top: 16px; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
details p.short { color: var(--text); font-weight: 600; }
details p, details .units, details .tblwrap, details .flow { max-width: 72ch; }
details p + p, details p + .units, details .units + p, details p + .tblwrap, details .tblwrap + p, details p + .flow { margin-top: 10px; }
details b { color: var(--text); }
details .live { background: var(--surface2); border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: 15px; }
.units { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.units span { background: var(--surface2); border-radius: 8px; padding: 6px 10px; font-size: 14px; color: var(--muted); }
.units b { color: var(--text); margin-right: 4px; }
.tblwrap { overflow-x: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tbl thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.tbl tbody th { font-weight: 600; color: var(--text); }
.tbl .us { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--text); }
.tbl thead .us { color: var(--text); font-weight: 700; }
.flow { counter-reset: s; list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.flow li { position: relative; padding: 11px 14px 11px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.flow li b { color: var(--text); }
.flow li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #0d1620; font-weight: 700; text-align: center; line-height: 26px; font-size: 14px; }
.faq .body-text, .faq .note { margin-left: 42px; }
.faq .panel + .note, .faq .panel .netline { max-width: 76ch; }
.faq .panel { margin-left: 42px; }
.terms2 { max-width: none; margin-left: 42px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.terms2 > div { border-top: 1px solid var(--line); padding: 12px 0; }
.terms2 dt { margin-top: 0; }
.terms2 dd { margin-top: 2px; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .terms2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .story p { font-size: 16px; } .tbl { font-size: 14px; } .tbl th, .tbl td { padding: 8px; } .sec-lead, .faq .body-text, .faq .note, .faq .panel, .terms2 { margin-left: 0; } .faq h2::before { display: none; } .faq-tools { flex-direction: column; align-items: flex-start; gap: 6px; } }

.toplink { margin: 14px 0 0; text-align: right; font-size: 14px; }
.toplink a { color: var(--muted); text-decoration: none; }
.toplink a:hover { color: var(--accent); }
details ul.plain { margin: 8px 0 0 18px; padding: 0; color: var(--muted); }
details ul.plain li { margin: 5px 0; }
.feebox { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 0 0 16px 42px; max-width: 76ch; }
.feebox b:first-child { display: block; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.feebox p { margin: 0; color: var(--text); }
.formgrid.costs { margin-top: 10px; }
.field label .opt { display: inline; width: auto; margin-left: 6px; padding: 0; gap: 0; background: none; color: var(--muted); font-weight: 400; }
.inwrap { display: flex; align-items: center; gap: 10px; }
.inwrap input { flex: 1; min-width: 0; }
.field .unit { color: var(--muted); font-size: 14px; white-space: nowrap; }
.netline { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.flow4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.flow4 > div { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.flow4 > div:not(:last-child)::after { content: "\2192"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #0d1620; font-size: 12px; line-height: 18px; text-align: center; z-index: 1; }
.flow4 b { display: block; color: var(--text); }
.flow4 span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.flowend { margin-top: 12px; }
pre.cmd, pre.code { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); font-size: 13px; line-height: 1.5; padding: 12px 14px; overflow: auto; color: var(--text); white-space: pre; max-width: 100%; }
pre.code { max-height: 360px; margin-top: 8px; }
.codebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; }
@media (max-width: 800px) { .flow4 { grid-template-columns: 1fr; } .flow4 > div:not(:last-child)::after { content: "\2193"; right: auto; left: 20px; top: auto; bottom: -11px; transform: none; } }
@media (max-width: 600px) { .feebox { margin-left: 0; } }

/* Info page: A ticket up close */
.tix { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px 20px; align-items: start; }
.tstep { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.tstep:first-child { grid-row: span 2; }
.tstep h3, .tscratch h3, .tpool h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-family: var(--display), sans-serif; }
.tstep h3 span { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #0d1620; font-size: 13px; display: inline-grid; place-items: center; }
.tstep p { color: var(--muted); margin: 0 0 10px; }
.tstep .tblwrap { margin-top: 6px; }
.tin th, .tin td { font-size: 14px; padding: 8px 10px; }
.tin td:last-child { color: var(--text); }
.tin code, .tout code { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.tin tr.hot th, .tin tr.hot td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tin input { width: 100%; max-width: 190px; font-family: var(--mono); font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.tlist { margin: 0 0 10px 18px; padding: 0; color: var(--muted); }
.tlist li { margin: 4px 0; }
.tbuttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.tfp .k, .tcount .k { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.tfp code { display: block; color: var(--text); background: var(--surface2); border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
.z { color: var(--accent); font-weight: 700; }
.tscale { margin: 14px 0 6px; }
.tscale .bar { position: relative; height: 10px; border-radius: 6px; background: var(--surface2); }
.tscale .bar b { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--muted); }
.tscale .bar i { position: absolute; top: -3px; width: 16px; height: 16px; border-radius: 50%; margin-left: -8px; background: var(--muted); border: 2px solid var(--surface); z-index: 2; transition: left .25s; }
.tscale .bar i.share { background: var(--ok); } .tscale .bar i.block { background: var(--accent); }
.tscale .lab { position: relative; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.tscale .lab .l1 { position: absolute; left: 25%; transform: translateX(-50%); } .tscale .lab .l2 { position: absolute; left: 66.6%; transform: translateX(-50%); }
.verdict { margin: 12px 0 0; font-weight: 600; color: var(--text); }
.verdict.block { color: var(--accent); } .verdict.share { color: var(--ok); } .verdict.lost { color: var(--muted); font-weight: 500; }
.tscratch, .tpool { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.tscratch p, .tpool p { color: var(--muted); margin: 0 0 10px; max-width: 74ch; }
.tcount { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 10px; }
.tcount > div { background: var(--surface2); border-radius: 10px; padding: 10px 12px; }
.tcount b { font-size: 20px; font-family: var(--display), sans-serif; }
.tshares { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.tshares li { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tshares code { font-family: var(--mono); font-size: 12px; color: var(--text); word-break: break-all; }
.flow4.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow4.two > div::after { display: none !important; }
.wrapcode { display: inline-block; max-width: 100%; word-break: break-all; }
.muted { color: var(--muted); }
@media (max-width: 900px) { .tix { grid-template-columns: 1fr; } .tstep:first-child { grid-row: auto; } .tcount { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flow4.two { grid-template-columns: 1fr; } }

/* Info page: language switch */
.titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.titlebar .page-title { padding-bottom: 6px; }
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); margin-bottom: 10px; flex: none; }
.langsw a { padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.langsw a + a { border-left: 1px solid var(--line); }
.langsw a:hover { color: var(--text); }
.langsw a[aria-current="true"] { background: var(--accent); color: #0d1620; }

.tout .rule { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* admin: Announcements */
input[type="datetime-local"] { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font: inherit; min-height: 44px; }
textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font: inherit; resize: vertical; }
.pv { margin: 8px 0 14px; padding: 16px; background: var(--surface2); border-radius: 10px; }
.pvcap { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.pv .notice-box { margin: 0; box-shadow: none; }
.notice-when { background: var(--surface2); border-left: 4px solid var(--accent); border-radius: 6px; padding: 8px 12px; margin: 0 0 12px; font-weight: 600; }
.notice-box.warn .notice-when { border-left-color: var(--bad); }
.formgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check input:disabled + span { color: var(--muted); }
.check:has(input:disabled) { cursor: default; }
@media (max-width: 800px) { .formgrid.three { grid-template-columns: 1fr; } }
.mtxt b .cstate { margin-left: 10px; vertical-align: 1px; }
.card2 .formgrid + .hint { margin: 2px 0 16px; }
input.bad, select.bad, textarea.bad { border-color: var(--bad); }
.card2 #anDateErr { margin: -6px 0 12px; min-height: 0; }
#anDateErr:empty { display: none; }
.feecard { margin-bottom: 0; min-width: 0; }
.sys-box { position: relative; }
.feex { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 8px; }
.feex:hover { color: var(--text); background: var(--surface2); }
.feecard h2 { padding-right: 40px; }
.feenow { background: var(--surface2); border-radius: 10px; padding: 10px 14px; margin: 4px 0 16px; display: grid; gap: 4px; font-size: 14px; }
.feenow > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
.feenow .k { color: var(--muted); }
.feenow .v { overflow-wrap: anywhere; word-break: break-all; }
.feefields { display: grid; grid-template-columns: 1fr; }
.feefields input[id^="fee_"] { max-width: 160px; }
.feefields textarea { width: 100%; max-width: none; box-sizing: border-box; resize: none; word-break: break-all; font-size: 14px; line-height: 1.4; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.feecard .cta { margin: 6px 0 0; }
.feeconfirm p { overflow-wrap: anywhere; }
.fsteps { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; font-size: 14px; }
.fsteps li { padding-left: 24px; position: relative; color: var(--muted); }
.fsteps li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); }
.fsteps li.fdone { color: var(--text); }
.fsteps li.fdone::before { background: var(--ok, #1f9d55); border-color: var(--ok, #1f9d55); }
.fsteps li.fnow { color: var(--text); font-weight: 600; }
.fsteps li.fnow::before { border-color: var(--accent); background: var(--accent); }
.feeconfirm { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.feeconfirm p { margin: 4px 0; }
p.sub.good { color: var(--ok, #1f9d55); }
.feecard p.hint { margin: 4px 0 12px; }

/* News */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 0 0 18px; max-width: 78ch; }
.post-date { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.post-title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; margin: 0 0 12px; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--accent); }
.post-body p, .post-body ul { margin: 0 0 12px; max-width: 70ch; }
.post-body h3 { font-size: 18px; margin: 18px 0 6px; }
.post-body ul { padding-left: 20px; }
.post-body li { margin: 3px 0; }
.post-body a { color: var(--accent); overflow-wrap: anywhere; }
.post-body > :last-child { margin-bottom: 0; }
.post-back { display: inline-block; margin: 0 0 14px; }
.pv .post { margin: 0; max-width: none; box-shadow: none; }
@media (max-width: 760px) { .menu a { white-space: nowrap; } }   /* with the News tab the menu is longer than a phone: it scrolls sideways instead of wrapping words onto two lines */

/* admin: System (gauges and the 7-day graph) */
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1000px) { .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gauge { appearance: none; text-align: center; font: inherit; color: var(--text); cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 16px; }
.gauge:hover, .gauge:focus-visible { border-color: var(--accent); }
.gname { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.gbox { position: relative; max-width: 220px; margin: 0 auto; }
.gsvg { display: block; width: 100%; height: auto; }
.gsvg path { fill: none; stroke-width: 14; stroke-linecap: round; }
.gsvg .gbg { stroke: var(--surface2); }
.gsvg .gv.ok { stroke: var(--ok); }
.gsvg .gv.warn { stroke: var(--accent); }
.gsvg .gv.bad { stroke: var(--bad); }
.gnum { position: absolute; left: 0; right: 0; bottom: 6px; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; }
.gauge.s-warn .gnum { color: var(--accent); }
.gauge.s-bad .gnum { color: var(--bad); }
.gdet { color: var(--text); font-size: 14px; margin-top: 8px; }
.gwhen { color: var(--muted); font-size: 12px; margin-top: 2px; }
.sys-box { max-width: 700px; }
.gchart { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
.gchart .ggrid { stroke: var(--line); stroke-width: 1; }
.gchart .ggrid.v { stroke-dasharray: 3 4; }
.gchart .glab { fill: var(--muted); font-size: 11px; }
.gchart .gline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.gchart .garea { fill: var(--accent); opacity: .12; stroke: none; }
.gchart .gdot { fill: var(--accent); }
.hint.bad, #sysNote.bad { color: var(--bad); }
@media (max-width: 560px) { .gauges { grid-template-columns: 1fr; } }

/* admin: the locked admin row, the Admin badge and the delete button in the fee log */
.state.s-admin { margin-left: 10px; color: var(--accent); border-color: var(--accent); vertical-align: 1px; }
.state.s-locked { color: var(--muted); border-style: dashed; }
.a-table tr.r-admin { box-shadow: inset 3px 0 0 var(--accent); background: var(--surface2); }
.mbtn { display: flex; gap: 8px; align-items: center; }

#feeBox { padding-top: 6px; padding-bottom: 6px; }
.notice-box.sys-box .feecard h2 { margin-bottom: 6px; }
.notice-box .field input { max-width: none; }
.notice-box { max-height: calc(100vh - 40px); overflow-y: auto; }
.notice-box > .sub { margin: 0 0 14px; }
.notice-box .hint { margin: 10px 0 0; }
.notice-box .cta { margin-bottom: 0; }

.tbl tr.mine td { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); }
.tbl tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--ok); }

/* admin: hardware cards, the Upgrade button, the Exchange tab */
.hwgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 4px 0 14px; }
@media (max-width: 1000px) { .hwgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hwgrid { grid-template-columns: 1fr; } }
.hw { appearance: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.hw:hover, .hw:focus-visible { border-color: var(--accent); }
.hw.s-warn { border-color: var(--accent); }
.hw.s-bad { border-color: var(--bad); background: rgba(201, 60, 60, 0.07); }
.hwname { font-weight: 700; font-size: 16px; }
.hwsub { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.hwstat { font-weight: 700; font-size: 18px; }
.hwdl { grid-template-columns: 150px minmax(0, 1fr); }
.coin-actcol { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.coin-actcol .btn.small { min-width: 112px; text-align: center; }
.comingsoon { color: var(--muted); }

/* Bitcoin Cash */
:root { --bch: #8dc351; }
@media (prefers-color-scheme: light) { :root { --bch: #4b8a14; } }
:root[data-coin="bch"] { --accent: var(--bch); }
.dot[data-c="bch"] { background: var(--bch); }
:root { --dgb: #2f7de1; }
@media (prefers-color-scheme: light) { :root { --dgb: #0b5cc2; } }
:root[data-coin="dgb"] { --accent: var(--dgb); }
.dot[data-c="dgb"] { background: var(--dgb); }

.opt small.off { color: var(--bad); }

/* the admin page does not take the colour of the coin chosen on the site */
:root[data-admin][data-coin] { --accent: var(--bc2); }

/* several wallets per coin, in a window */
.coinrow { padding: 0; }
.crowbtn { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; width: 100%; padding: 14px 0; cursor: pointer; }
.crowbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.crowbtn .wmain { display: flex; flex-direction: column; min-width: 0; }
.crowbtn .wmain b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crowbtn .wsub { font-size: 13px; color: var(--muted); }
.coinact { color: var(--accent); font-weight: 600; font-size: 14px; }
.coinact::after { content: " \203A"; }
.crowbtn:hover .coinact { text-decoration: underline; text-underline-offset: 3px; }
.walbox { max-width: 780px; }
.walbox h2 { padding-right: 40px; }
.walrows { display: grid; gap: 10px; margin: 6px 0 8px; }
.walrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) 176px; gap: 10px; align-items: center; }
.walnum { color: var(--muted); font-size: 13px; text-align: right; }
.walrow textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 44px; resize: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: inherit; font-size: 14px; line-height: 22px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.walrow.filled textarea[readonly] { background: var(--surface2); color: var(--muted); }
.walrow textarea:focus { outline: 0; border-color: var(--accent); }
.walact { display: flex; gap: 8px; }
.walact .btn { box-sizing: border-box; flex: 1 1 0; height: 44px; padding: 0 10px; margin: 0; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.walh { margin: 16px 0 6px; font-weight: 600; color: var(--text); }
@media (max-width: 620px) { .walrow { grid-template-columns: minmax(0, 1fr); gap: 8px; } .walnum { display: none; } .walrow textarea { height: 64px; white-space: pre-wrap; word-break: break-all; } .walact { width: 100%; } }

/* sign in: one centred card, the notes below it */
.authgrid { display: block; max-width: 760px; margin: 0 auto; }
.authcard { max-width: 440px; margin: 8px auto 0; padding: 30px 30px 26px; box-shadow: 0 10px 34px rgba(13, 22, 32, 0.07); }
.authhead { text-align: center; margin-bottom: 22px; }
.authmark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface2); color: var(--accent); margin-bottom: 12px; }
.authmark svg { width: 28px; height: 28px; }
.authhead h2 { font-size: 21px; margin: 0 0 4px; }
.authhead p { color: var(--muted); font-size: 14px; margin: 0; }
.authcard .tabs { background: var(--surface2); border-radius: 12px; padding: 4px; gap: 4px; margin: 0 0 22px; }
.authcard .tabs button { border: 0; border-radius: 9px; padding: 10px 12px; }
.authcard .tabs button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(13, 22, 32, 0.14); }
.authcard form .btn[type="submit"], .authcard #nNone .btn { width: 100%; box-sizing: border-box; text-align: center; padding: 12px 18px; }
.authcard #nNone .cta { display: grid; gap: 10px; }
.authcard form .hint:last-child { text-align: center; margin: 16px 0 0; }
.authside { margin-top: 26px; }
.authside h2 { display: none; }
.authside .plain { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.authside .plain li, .authside .plain li:first-child { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.5; }
@media (max-width: 760px) { .authside .plain { grid-template-columns: 1fr; } .authcard { padding: 24px 20px 22px; } }

/* exchange */
.exrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; margin-bottom: 10px; align-items: start; }
.exrow input { width: 100%; box-sizing: border-box; }
.exhead { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.exhead h2 { margin: 0; }
.excols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 6px; }
.exfoot { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
@media (max-width: 620px) { .exrow, .excols { grid-template-columns: 1fr; } .excols { display: none; } .exrow input:first-child { margin-bottom: 0; } }
#exBox .card2 { margin-top: 14px; }
/* where to exchange */
#exch { margin-top: 28px; }
.exlist { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 12px; }
.exlink { display: inline-flex; align-items: center; gap: 8px; }
.exarr { color: var(--muted); font-size: 14px; }
.exlink:hover .exarr { color: var(--accent); }
.exdisc { max-width: 70ch; font-size: 12.5px; }

/* wallet suggestions (admin) */
.wtabs { display: flex; gap: 8px; margin: 12px 0 14px; }
.wtabs button { flex: 1; }
.wtabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0d1620; }
.wtabs .clr { flex: 0 0 auto; }
.wgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.wgrid3 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 5fr); gap: 10px; }
.wm label { display: block; color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.wm .wfld { margin-bottom: 10px; min-width: 0; }
.wm input, .wm textarea, .wm select { width: 100%; box-sizing: border-box; }
.wm textarea { min-height: 0; resize: none; font-size: 14px; line-height: 1.4; }
.wm .exfoot { margin-top: 4px; }
.wm .wnotice { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
@media (max-width: 620px) { .wgrid, .wgrid3 { grid-template-columns: 1fr; } }

/* maintenance (admin) */
.mnt-state { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: 2px; }
.mnt-state.on { color: #fff; background: var(--bad); border-color: transparent; }
.mm label { display: block; color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.mm .wfld { margin-bottom: 12px; }
.mm input, .mm textarea, .mm select { width: 100%; box-sizing: border-box; }
.mm textarea { resize: none; font-size: 14px; line-height: 1.4; }
.mm .iprow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.mm .ipadd { margin: 2px 0 6px; }
.mm .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.mnt-now { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.mnt-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 620px) { .mm .iprow { grid-template-columns: 1fr; } }
/* maintenance (public) */
.mntpage { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 30px 0 60px; }
.mntcard { max-width: 560px; text-align: center; padding: 38px 32px 30px; }
.mntico { width: 64px; height: 64px; border-radius: 50%; background: var(--surface2); color: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; }
.mntico svg { width: 30px; height: 30px; }
.mntcard h1 { font-family: var(--display); font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.mntcard p { color: var(--muted); margin: 0 0 14px; }
.mntback { display: inline-block; background: var(--surface2); border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--text); margin: 6px 0 16px; }
.mntnote { font-size: 13px; }
.mntstaff { background: var(--accent); color: #0d1620; text-align: center; font-size: 14px; padding: 8px 16px; font-weight: 600; }

/* Account page: who you are and how the account stands first, then wallets, notifications, security */
.acct-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 8px 0 24px; }
.acct-mono { width: 60px; height: 60px; border-radius: 50%; background: var(--surface2); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 26px; flex-shrink: 0; }
.acct-who { flex: 1 1 180px; min-width: 0; }
.acct-who h2 { font-size: clamp(18px, 3vw, 22px); line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.acct-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.acct-life { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 14px; line-height: 1.45; max-width: 64ch; }
.acct-life::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(-1px); }
.acct-life.warn::before { background: var(--bad); }
.crowbtn .wsub.mono { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.card2.quiet h2 { font-size: 16px; margin-bottom: 8px; }
.card2.quiet { background: transparent; }
@media (max-width: 560px) { .acct-id { padding: 18px; gap: 14px; } .acct-mono { width: 48px; height: 48px; font-size: 21px; } }

/* cookie note */
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18); }
.cookiebar p { max-width: 720px; color: var(--muted); font-size: 14px; }
.cookiebar .btn { padding: 8px 18px; white-space: nowrap; }
@media (max-width: 600px) { .cookiebar { flex-direction: column; align-items: stretch; gap: 10px; } .cookiebar .btn { width: 100%; } }
/* contact page and the admin inbox */
.cwide { max-width: 820px; }
.cwide textarea { width: 100%; resize: vertical; }
.ccount { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ibhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ibhead .grow { flex: 1; }
.ibhead .hint { margin: 0; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); }
.iconbtn:hover { color: var(--text); border-color: var(--accent); }
.iconbtn svg { width: 20px; height: 20px; }
.ibfilter { display: flex; gap: 8px; margin-bottom: 12px; }
.ibacc { list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ibacc > li { border-top: 1px solid var(--line); }
.ibacc > li:first-child { border-top: 0; }
.ibrow { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto auto; gap: 14px; align-items: center; width: 100%; text-align: left; background: transparent; border: 0; padding: 13px 16px; border-left: 3px solid transparent; }
.ibrow:hover { background: var(--surface2); }
.ibrow[aria-expanded="true"] { background: var(--surface2); border-left-color: var(--accent); }
.ibrow .fm { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibrow.unread .fm { font-weight: 700; }
.ibrow.unread .fm::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.ibrow .sn { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibrow .sn b { color: var(--text); font-weight: 600; }
.ibrow .dt { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ibrow .ch { color: var(--muted); transition: transform .15s; }
.ibrow[aria-expanded="true"] .ch { transform: rotate(180deg); }
.ibbody { padding: 4px 16px 18px 19px; background: var(--surface2); border-left: 3px solid var(--accent); }
.ibmsg { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; padding: 12px 14px; background: var(--surface); border-radius: 10px; }
.ibmsg.me { background: transparent; border: 1px solid var(--line); }
.ibmeta { font-size: 13px; color: var(--muted); margin-top: 10px; }
.ibtag { display: inline-block; font-size: 11px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; margin-left: 6px; color: var(--muted); }
.ibact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ibreply textarea { width: 100%; resize: vertical; margin-top: 10px; }
.ctset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ctset .full { grid-column: 1 / -1; }
.ctset h3 { grid-column: 1 / -1; font-size: 14px; margin: 14px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ctres { font-size: 13px; margin-top: 8px; }
.ctres .ok { color: var(--ok); } .ctres .bad { color: var(--bad); }
@media (max-width: 700px) { .ibrow { grid-template-columns: minmax(0, 1fr) auto; } .ibrow .sn { grid-column: 1 / -1; grid-row: 2; } .ctset { grid-template-columns: minmax(0, 1fr); } }
.cside { margin-top: 28px; }
.cside h2 { font-size: 18px; margin-bottom: 10px; }
.cside p { color: var(--muted); margin-bottom: 12px; }
.cside p b { color: var(--text); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hp.show { position: static; width: auto; height: auto; overflow: visible; margin: 8px 0; padding: 8px 10px; border: 2px dashed var(--bad); border-radius: 8px; }
.aibtn { font-size: 13px; padding: 6px 12px; }
.airow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.aires { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; }
.aires .tag { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.iconbtn.spin svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn:disabled { opacity: .6; cursor: default; }
/* admin ToDo tab */
.td-add { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 10px 0 14px; }
.td-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.td-list li { display: grid; grid-template-columns: auto 112px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.td-list li.done .td-text { color: var(--muted); text-decoration: line-through; }
.td-chk { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.td-text { cursor: text; overflow-wrap: anywhere; padding: 4px 6px; border-radius: 6px; border: 1px solid transparent; min-height: 1.4em; }
.td-text:hover { background: var(--surface2); }
.td-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.td-edit { width: 100%; font: inherit; padding: 4px 6px; }
.td-when { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.td-act { display: flex; gap: 6px; justify-content: flex-end; }
.td-add select, .td-kind { width: 112px; }
.td-kind { font-size: 13px; line-height: 20px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-align: center; box-sizing: border-box; }
.td-kind.idea { color: var(--ok); border-color: var(--ok); }
.td-kind.problem { color: var(--bad); border-color: var(--bad); }
.td-kind.task { color: var(--muted); }
@media (max-width: 640px) { .td-list li { grid-template-columns: auto 104px minmax(0, 1fr) auto; } .td-when { display: none; } .td-add { grid-template-columns: 104px minmax(0, 1fr) auto; } .td-add select, .td-kind { width: 104px; } }
/* Bitcoin */
:root { --btc: #e4572e; }
@media (prefers-color-scheme: light) { :root { --btc: #c23c14; } }
:root[data-coin="btc"] { --accent: var(--btc); }
.dot[data-c="btc"] { background: var(--btc); }
/* Bitcoin Cash II */
:root { --bch2: #1fa67a; }
@media (prefers-color-scheme: light) { :root { --bch2: #12805c; } }
:root[data-coin="bch2"] { --accent: var(--bch2); }
.dot[data-c="bch2"] { background: var(--bch2); }
/* Peercoin */
:root { --ppc: #3cb054; }
@media (prefers-color-scheme: light) { :root { --ppc: #2a8a3e; } }
:root[data-coin="ppc"] { --accent: var(--ppc); }
.dot[data-c="ppc"] { background: var(--ppc); }
/* Bitcoin Testnet4 */
:root { --tbtc: #e0679a; }
@media (prefers-color-scheme: light) { :root { --tbtc: #c2417a; } }
:root[data-coin="tbtc"] { --accent: var(--tbtc); }
.dot[data-c="tbtc"] { background: var(--tbtc); }
:root { --tscrypt: #b46fd0; }
:root[data-coin="tscrypt"] { --accent: var(--tscrypt); }
.dot[data-c="tscrypt"] { background: var(--tscrypt); }
.t4ban { border: 1px solid var(--bad); background: rgba(224, 86, 86, 0.10); border-radius: 10px; padding: 10px 14px; margin: 14px 0 18px; color: var(--text); font-weight: 600; }
.t4ban b { color: var(--bad); letter-spacing: 0.02em; }
.t4row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.t4row .hint { margin: 0; }
.notice-box.t4 { max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; }
.t4 .kv { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; margin: 10px 0 14px; }
.t4 .kv span.k { color: var(--muted); font-size: 13px; }
.t4 .kv code { background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; word-break: break-all; color: var(--text); }
.t4 .btn.sm { padding: 6px 12px; font-size: 13px; cursor: pointer; }
.t4 .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.t4 h3 { font-size: 15px; margin: 14px 0 6px; }
.t4 p { white-space: normal; margin-bottom: 12px; }
/* Mined and fee received (test coins) */
.earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 16px; }
.earn .tile { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.earn .tile .k { color: var(--muted); font-size: 13px; }
.earn .tile .v { font-size: 24px; font-weight: 700; margin-top: 4px; font-family: var(--display), sans-serif; }
.earn .tile .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.earn .tile.fee { border-color: var(--accent); }
.earn .tile.fee .v { color: var(--accent); }
.testtag { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--bad); border: 1px solid var(--bad); border-radius: 6px; padding: 1px 7px; vertical-align: middle; }
.eline { color: var(--muted); font-size: 13px; margin: 0 0 12px; word-break: break-all; }
@media (max-width: 720px) { .earn { grid-template-columns: 1fr; } }
/* Ports for the Hestia server */
.pt td .btn { white-space: nowrap; }
.cmdbox { background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; word-break: break-all; margin: 10px 0; color: var(--text); user-select: all; }
/* Header: the same height whichever coin is selected (long names such as Bitcoin Testnet4 used to push the coin button, or the menu words, onto a second line) */
.menu a { white-space: nowrap; padding: 7px 9px; }
.coinbtn { min-width: 176px; }
.coinbtn .chev { margin-left: auto; }
@media (max-width: 1060px) { .menu { order: 3; width: 100%; flex-basis: 100%; overflow-x: auto; } }
/* eCash */
:root { --xec: #3fa0f5; }
@media (prefers-color-scheme: light) { :root { --xec: #0b66c8; } }
:root[data-coin="xec"] { --accent: var(--xec); }
.dot[data-c="xec"] { background: var(--xec); }
/* Testnet4 blocks: what went to the miner and to the fee wallet */
td.fee, td.you { white-space: nowrap; }
td.you { color: var(--good, var(--accent)); }
/* Chain: port and payout tests */
.testbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.testbtns .btn.small { min-width: 0; padding: 4px 12px; }
.tbox { max-width: 520px; }
.tbox .tbig { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.tbox .tmark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; flex: none; }
.tbox .tmark.ok { background: color-mix(in srgb, var(--good, #1f9d55) 18%, transparent); color: var(--good, #1f9d55); }
.tbox .tmark.bad { background: color-mix(in srgb, var(--bad, #d64545) 18%, transparent); color: var(--bad, #d64545); }
.tbox .tmark.wait { background: var(--surface2); color: var(--muted); }
.tbox .tsay b { display: block; font-size: 17px; }
.tbox .tsay span { color: var(--muted); font-size: 13px; }
.tbox table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 4px 0 12px; }
.tbox td, .tbox th { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.tbox th { color: var(--muted); font-weight: 600; font-size: 12px; }
.tbox td.r, .tbox th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbox .tgood { color: var(--good, #1f9d55); font-weight: 600; }
.tbox .tbad { color: var(--bad, #d64545); font-weight: 600; }
.tbox .tnote { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
.stat.click { cursor: pointer; background: var(--surface); }
.stat.click, .stat + .stat.click { border-left: 4px solid var(--accent); padding-left: 14px; }
.stat.click:hover { background: var(--bg-soft, #eef1f4); }
.stat.click:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* Bitcoin Silver */
:root { --btcs: #b4bfcc; }
@media (prefers-color-scheme: light) { :root { --btcs: #5f6f82; } }
:root[data-coin="btcs"] { --accent: var(--btcs); }
.dot[data-c="btcs"] { background: var(--btcs); }
/* Bitcoin Purity */
:root { --btc1: #7b6cf0; }
:root[data-coin="btc1"] { --accent: var(--btc1); }
.dot[data-c="btc1"] { background: var(--btc1); }
/* the little "i" next to a coin name in admin Chain, and its notes popup */
.iconbtn.infoi { width: 22px; height: 22px; border-radius: 50%; font: italic 700 13px/1 Georgia, serif; padding: 0; cursor: pointer; }
.notebox { max-width: 720px; width: 100%; max-height: 90vh; overflow: auto; text-align: left; }
.notebody h2 { font-size: 20px; margin: 0 0 8px; }
.notebody h3 { font-size: 15px; margin: 18px 0 6px; color: var(--accent); }
.notebody p, .notebody li { font-size: 14px; line-height: 1.5; margin: 0 0 6px; overflow-wrap: anywhere; }
.notebody ul, .notebody ol { margin: 0 0 8px; padding-left: 22px; }
.notebody code { font-size: 12.5px; background: var(--surface2); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.notebox > .btn { margin-top: 14px; }
/* the algorithm and coin selectors: two small boxes on their own line under the menu, right-aligned like the coin selector always was */
.selbar { display: flex; justify-content: flex-end; flex-basis: 100%; margin-top: -4px; }
.selpill { display: flex; align-items: center; gap: 8px; }
.selpill .coinsel { margin-left: 0; }
.selpill .coinbtn { padding: 6px 10px; font-size: 14px; border-radius: 9px; min-width: 0; }
.selpill .algosel .coinbtn { min-width: 108px; }
.selpill .coinsel:not(.algosel) .coinbtn { min-width: 150px; }
.selpill .coinlist { top: calc(100% + 6px); }
.algosel .coinlist { left: 0; right: auto; min-width: 100%; }
:root { --ltc: #5f86d0; }
:root[data-coin="ltc"] { --accent: var(--ltc); }
.dot[data-c="ltc"] { background: var(--ltc); }
:root[data-coin="dgbs"] { --accent: var(--dgb); }
.dot[data-c="dgbs"] { background: var(--dgb); }
/* Hypercoin */
:root { --hrc: #22c1d6; }
@media (prefers-color-scheme: light) { :root { --hrc: #0b7f8d; } }
:root[data-coin="hrc"] { --accent: var(--hrc); }
.dot[data-c="hrc"] { background: var(--hrc); }
/* Auroracoin */
:root { --aur: #a58bff; }
@media (prefers-color-scheme: light) { :root { --aur: #5b3fd1; } }
:root[data-coin="aur"] { --accent: var(--aur); }
.dot[data-c="aur"] { background: var(--aur); }
:root[data-coin="aurs"] { --accent: var(--aur); }
.dot[data-c="aurs"] { background: var(--aur); }
/* Bitcoin Blu */
:root { --bblu: #4da3ff; }
@media (prefers-color-scheme: light) { :root { --bblu: #1565c0; } }
:root[data-coin="bblu"] { --accent: var(--bblu); }
.dot[data-c="bblu"] { background: var(--bblu); }
/* Dogecoin */
:root { --doge: #d9b43c; }
@media (prefers-color-scheme: light) { :root { --doge: #8a6d00; } }
:root[data-coin="doge"] { --accent: var(--doge); }
.dot[data-c="doge"] { background: var(--doge); }

/* Connect: which coin suits your miner */
#pick { margin-top: 40px; }
#pick h2 { margin-bottom: 6px; }
#pick .page-lead { margin: 0 0 16px; }
#pick .seg { display: flex; gap: 8px; }
#pick .seg button { flex: 1; }
#pick .seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0d1620; }
#pick .lead.flush { margin: 4px 0 14px; max-width: none; font-size: 15px; }
#pick td .pill { margin-left: 4px; }
#pick > .hint { margin-top: 12px; max-width: 76ch; }
#pick th, #pick td { vertical-align: middle; }
#pick th.num, #pick td.num { text-align: right; white-space: nowrap; }
#pick .tbl { overflow-x: auto; }

/* Blocks: 25 to a page */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pager .btn { min-width: 108px; text-align: center; }
.pager .pginfo { color: var(--muted); font-size: 14px; text-align: center; }

/* portfolio */
.pf { list-style: none; margin: 0 0 4px; padding: 0; }
.pfhead, .pfrow { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 96px 64px; gap: 6px 14px; align-items: center; }
.pfhead { font-size: 12px; color: var(--muted); padding: 0 14px 8px; }
.pfrow { padding: 10px 14px; border-top: 1px solid var(--line); }
.pfrow:nth-child(even) { background: var(--surface2); }
.pf > .pfrow:last-child { border-bottom: 1px solid var(--line); }
.pfrow .pfn { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.pfrow .pfn span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot.own { background: var(--muted); }
.pfhead .r, .pfrow .r { text-align: right; }
.pfhead .c, .pfrow .c { text-align: center; }
.pfpill { display: inline-block; min-width: 82px; box-sizing: border-box; text-align: center; font-size: 12px; font-weight: 600; line-height: 22px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); padding: 0 8px; }
.pfpill.on { color: var(--ok); border-color: var(--ok); }
.pfpill.off { opacity: 0.6; }
.pfrow .btn { padding-left: 0; padding-right: 0; width: 64px; }
.pftitle { margin: 0 0 6px; padding-right: 40px; }
.pfstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 18px; }
.pfstat { background: var(--surface2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pfstat .k { font-size: 12px; color: var(--muted); }
.pfstat .v { font-size: 22px; font-weight: 700; }
.pfbtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pfbtns .btn { min-width: 150px; }
.notice-box.sys-box.pfwide { max-width: 920px; max-height: calc(100vh - 40px); overflow-y: auto; }
.pfbox { max-width: 460px; }
.pfbox .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pfbox .field input, .pfbox .field select { width: 100%; }
.pfbox .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pfbox .acts .btn { min-width: 96px; }
.pfbox .acts .danger { margin-left: auto; }
.pfsearch { display: flex; gap: 10px; }
.pfsearch input { flex: 1; min-width: 0; }
.pfsearch .btn { min-width: 96px; }
.pfres { height: 168px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin: -4px 0 16px; background: var(--surface2); }
.pfres > .hint { margin: 8px; }
.pfhit { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.pfhit:hover:not(:disabled) { background: var(--surface); }
.pfhit[aria-pressed="true"] { background: var(--surface); border-color: var(--accent); }
.pfhit:disabled { opacity: 0.5; cursor: default; }
.pfhit .nm { font-weight: 600; }
.pfhit .pr { margin-left: auto; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .pfhead { display: none; }
  .pfrow { grid-template-columns: 1fr 1fr; }
  .pfrow .r, .pfrow .c { text-align: left; }
  .pfrow > [data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
  .pfrow .btn { width: 100%; grid-column: 1 / -1; }
}

.pfpager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.pfpager .btn { min-width: 110px; }
.pfpager .pgtxt { color: var(--muted); font-size: 13px; min-width: 84px; text-align: center; }
.pfpager[hidden] { display: none; }
.pfseg { display: flex; gap: 10px; }
.pfseg .btn { flex: 1; }
.pfseg .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
#pfCard .card2-head .iconbtn { margin-left: auto; }
