/* 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; --nito: #6aa9ff; --bca: #9b7bff; --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; --nito: #2a6fd6; --bca: #6a4bd1; --dgb: #12877a; --ppc: #2b8a3e;
  }
}
:root[data-coin="bc2"] { --accent: var(--bc2); }
:root[data-coin="nito"] { --accent: var(--nito); }
:root[data-coin="bca"] { --accent: var(--bca); }
: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="nito"] { background: var(--nito); }
.dot[data-c="bca"] { background: var(--bca); }
.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 { position: absolute; top: 0; pointer-events: none; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; }
.chart .tip b { font-family: var(--display); font-size: 15px; }
.chart .tip span { color: var(--muted); display: block; 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; }
.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: 14px; }
.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); }
