/* wallet widgets, on top of /style.css (same late-2000s look) */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, input, .mono { font-family: "Courier New", Courier, monospace; }

/* chain tip line */
.tip { font-size: 12px; }
.tip b.fresh { color: #cc3300; }
.tip .hash { color: #777; font-family: "Courier New", Courier, monospace; }
.tip .stale { color: #b00000; }

/* buttons and inputs: plain, square, browser-like */
.btn { font: 12px Verdana, Tahoma, Arial, sans-serif; color: #000; padding: 2px 8px; background: #eee; border: 1px solid #888; cursor: pointer; }
.btn:hover { background: #e0e0e0; }
.btn.primary { font-weight: bold; }
.btn.quiet { background: #f6f6f6; border-color: #aaa; }
.btn[disabled] { color: #888; cursor: default; }
.link { font: 12px "Courier New", Courier, monospace; color: #0033cc; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { color: #cc3300; }
input { font-size: 13px; color: #000; background: #fff; border: 1px solid #7f9db9; padding: 3px 4px; }
form.lookup { display: flex; gap: 6px; margin: 0 0 6px; }
form.lookup input { flex: 1; min-width: 0; }
.hint { font-size: 11px; color: #555; }

/* columns: lookup on the left, watch list and blocks on the right */
.wallet-cols > main { flex: 1 1 0; }
.wallet-cols > .side { flex: 0 0 250px; }

/* result slip: a nested box */
.slip { border: 1px solid #c5ccd4; margin: 4px 0 9px; }
.slip-head { display: flex; align-items: center; gap: 6px; padding: 3px 6px; background: #f4f6f9; border-bottom: 1px solid #c5ccd4; }
.slip-head .kind { font-weight: bold; font-size: 11px; margin-right: auto; }
.slip-body, .slip-msg { padding: 6px 8px; }
.slip-msg p { margin: 0 0 6px; }
.slip .name-title { font-size: 18px; color: #222; margin: 0 0 2px; padding: 0; background: none; border: 0; overflow-wrap: anywhere; }
.name-line { margin: 0 0 9px; }
.label { font-size: 11px; color: #555; margin: 0; }
.amount { font: bold 22px Verdana, Tahoma, Arial, sans-serif; margin: 0; overflow-wrap: anywhere; }
.amount .frac { color: #444; }
.amount .zeros { color: #999; }
.amount .ticker { font-size: 12px; color: #555; margin-left: 6px; }
.atoms { font-size: 11px; color: #555; margin: 2px 0 0; }

.fp { display: flex; gap: 12px; align-items: flex-end; margin-top: 9px; padding-top: 6px; border-top: 1px dashed #c5ccd4; }
.fp svg.bars { flex: 1; min-width: 0; height: 48px; display: block; color: #2f4a68; }
.fp svg.bars rect.hi { fill: #cc3300; }
.hexgrid { font: 11px/1.5 "Courier New", Courier, monospace; display: grid; grid-template-columns: repeat(4, auto); column-gap: 8px; }

dl.facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin: 9px 0 0; border: 1px solid #c5ccd4; border-bottom: 0; }
dl.facts dt, dl.facts dd { margin: 0; padding: 3px 6px; border-bottom: 1px solid #c5ccd4; }
dl.facts dt { background: #f4f6f9; border-right: 1px solid #c5ccd4; }
dl.facts dd { font: 12px "Courier New", Courier, monospace; overflow-wrap: anywhere; }
dl.facts dd .sub { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; color: #555; }

.verify { display: flex; gap: 6px; align-items: center; margin-top: 9px; }
.verify code { flex: 1; min-width: 0; display: block; padding: 3px 5px; background: #f4f6f9; border: 1px solid #c5ccd4; white-space: nowrap; overflow-x: auto; }

/* watch list and latest blocks */
.watch ol, .blocks ol { list-style: none; margin: 0 0 6px; padding: 0; border-top: 1px solid #c5ccd4; }
.watch li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 20px; gap: 6px; align-items: center; margin: 0; padding: 2px 0; border-bottom: 1px solid #c5ccd4; }
.watch li:nth-child(even), .blocks li:nth-child(even) { background: #f4f6f9; }
.watch li svg { width: 30px; height: 14px; color: #2f4a68; display: block; }
.watch li .w-label { font: 12px "Courier New", Courier, monospace; color: #0033cc; text-decoration: underline; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch li .w-bal { font: 11px "Courier New", Courier, monospace; text-align: right; white-space: nowrap; }
.watch li .w-x { font-size: 13px; line-height: 1; color: #888; background: none; border: 0; padding: 0; cursor: pointer; }
.watch li .w-x:hover { color: #b00000; }
.watch ol:empty { display: none; }
.watch .empty { font-size: 11px; color: #555; }
.blocks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; margin: 0; padding: 2px 3px; border-bottom: 1px solid #c5ccd4; font: 12px "Courier New", Courier, monospace; }
.blocks li .b-hash, .blocks li .b-age { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* data source and gateway setting */
.source code { overflow-wrap: anywhere; }
details.gw { margin: 0 0 9px; }
details.gw summary { cursor: pointer; color: #0033cc; text-decoration: underline; width: max-content; }
.gw-form { display: flex; gap: 6px; margin-top: 6px; max-width: 520px; }
.gw-form input { flex: 1; min-width: 0; font-size: 12px; }
.gw-err { color: #b00000; margin-top: 4px; min-height: 1em; }

@media (max-width: 600px) {
  .wallet-cols > .side { flex: none; }
  form.lookup { flex-direction: column; }
  form.lookup input, form.lookup .btn { padding: 6px; }
  .btn { padding: 5px 10px; }
  .hint .link { display: inline-block; padding: 6px 2px; }
  .watch li { grid-template-columns: 30px minmax(0, 1fr) auto 32px; }
  .watch li .w-x { height: 32px; }
  .fp { display: block; }
  dl.facts { grid-template-columns: minmax(0, 1fr); }
  dl.facts dt { border-right: 0; border-bottom: 0; }
}
