/* garlicoin.org: address, decode, tx, vanity, sign, verify, recover and bootstrap.
   Loaded after /assets/site.css by the pages that need it (their <head> links it). Split out of site.css on
   2026-10-21: keep a rule here only if just these pages use it; anything shared goes in site.css. */

#verify .paths { margin-top: 14px; }
.cmds .addr { word-break: normal; overflow-wrap: anywhere; }
.addr-qr { display: grid; justify-items: center; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.addr-qr[hidden] { display: none; }
.addr-qr canvas { width: 240px; height: 240px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; }
.addr-qr .addr { max-width: 100%; }
.addr-qr .hero-actions { justify-content: center; gap: 8px; }
.addr-qr a.btn-copy { text-decoration: none; }
.addr-qr .btn-copy + a { margin-left: 0; }
.field-label { font-weight: 800; font-size: .9rem; margin-bottom: -8px; }
.verify-form input, .verify-form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
.verify-form textarea { font-family: inherit; font-size: 1rem; }
.verify-actions { margin-top: 12px; }
/* vanity */
.prefix-field { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.prefix-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.prefix-fixed { display: grid; place-items: center; padding: 0 4px 0 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; color: var(--muted); }
.calc .prefix-field input { flex: 1; border: 0; background: transparent; box-shadow: none; padding-left: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; }
.vanity-odds { min-height: 1.4em; margin: 0; }
.vanity-progress { margin-top: 18px; }
.vanity-progress[hidden], .vanity-result[hidden] { display: none; }
.vanity-result { display: grid; gap: 14px; justify-items: start; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.vanity-addr { font-size: 1.05rem; }
.vanity-addr strong { color: var(--gold-text); }
.vanity-result canvas { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; }
.key-box { display: grid; gap: 8px; width: 100%; }
.key-box .hero-actions { gap: 8px; }
.vanity-table { width: 100%; }
.key-field { display: flex; gap: 8px; align-items: center; }
.key-field input { flex: 1 1 auto; min-width: 0; }
.sign-result { display: grid; gap: 8px; margin-top: 16px; }
.sign-result .label { margin-top: 4px; }
.req-box { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.req-box summary { cursor: pointer; font-weight: 700; color: var(--gold-text); }
.req-box[open] summary { margin-bottom: 10px; }
.req-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req-fields #req-amount { grid-column: 1 / -1; }
.req-box p { margin: 8px 0 0; }
.req-summary { margin: 0 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); }
@media (max-width: 640px) {
  .req-fields { grid-template-columns: minmax(0, 1fr); }
}
.tx-out { display: grid; gap: 20px; }
.tx-out:empty { display: none; }
.tx-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0 0 12px; }
.tx-facts dt { font-weight: 800; color: var(--ink); }
.tx-facts dd { margin: 0; color: var(--muted); min-width: 0; }
.tx-facts a { color: var(--gold-text); }
.tx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: tx; }
.tx-list > li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.tx-list > li:first-child { border-top: 0; padding-top: 0; }
.tx-list p { margin: 0; }
.tx-out-head { display: flex; justify-content: space-between; gap: 12px; }
.tx-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-raw summary { cursor: pointer; color: var(--gold-text); font-weight: 700; font-size: .88rem; }
.tx-raw code { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 640px) {
  .tx-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tx-facts dd { margin-bottom: 8px; }
}
/* ---------- /tx/ checker ---------- */
.tx-head { display: flex; align-items: center; gap: 12px; }
.tx-head .card-title { margin: 0; }
.tx-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 1.2rem; background: var(--line); color: var(--ink); }
.tx-result.confirmed .tx-icon { background: var(--ok); color: #fff; }
.tx-result.waiting .tx-icon, .tx-result.checking .tx-icon { background: var(--gold); color: var(--on-gold); }
.tx-result.dropped .tx-icon { background: var(--bad); color: #fff; }
.tx-result.confirmed { border-top: 4px solid var(--ok); }
.tx-result.dropped { border-top: 4px solid var(--bad); }
.tx-facts { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 0; }
.tx-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.tx-facts li:first-child { border-top: 0; }
.tx-facts strong { color: var(--ink); text-align: right; }
.tx-advice { padding-left: 1.2em; margin: 4px 0 12px; }
.tx-advice li { margin: 6px 0; }
/* ---------- /recover/ ---------- */
.recover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 10px; }
.recover-opt { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.recover-opt:hover { border-color: var(--gold); background: var(--gold-soft); }
.recover-opt span { color: var(--muted); font-size: .9rem; }
.recover-warn { border-left: 4px solid var(--gold); }
.recover-worth { font-size: 1.25rem; font-weight: 800; min-height: 1.5em; margin: 10px 0 4px; }
.recover-calc { margin-top: 6px; }
/* ---------- address checker: balance ---------- */
.addr-balance { margin: 10px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.addr-bal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.addr-bal .label { flex-basis: 100%; margin: 0; }
.addr-bal strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.addr-activity { margin-top: 8px; }
.addr-activity summary { cursor: pointer; font-weight: 600; }
.addr-activity ul { list-style: none; padding: 0; margin: 6px 0 0; }
.addr-activity li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.data.vanity-table th, table.data.vanity-table td { white-space: normal; }
@media (max-width: 380px) {
  table.data.vanity-table th.num, table.data.vanity-table td.num { padding-left: 8px; }
  table.data.vanity-table thead th { letter-spacing: .02em; }
}
/* ---------- /tx/: result facts in one column, then the payment and where it went ---------- */
ul.tx-facts { grid-template-columns: minmax(0, 1fr); }
ul.tx-facts li { align-items: baseline; }
ul.tx-facts li > span { flex: none; }
.tx-pay { margin: 4px 0 12px; }
.tx-pay .label { margin: 14px 0 2px; }
.tx-outs { list-style: none; margin: 0; padding: 0; }
.tx-outs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.tx-outs li:first-child { border-top: 0; }
.tx-outs code { min-width: 0; overflow-wrap: anywhere; font-size: .85rem; color: var(--muted); }
.tx-outs strong { color: var(--ink); white-space: nowrap; margin-left: auto; }
