/* the Ledger page (Money chat) */
.lg { position: relative; z-index: 1; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 14px; padding: 18px 26px 16px; height: calc(100vh - var(--hdr)); min-height: 760px; }
.top { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 30px; align-items: end; }
.intro .lbl { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.intro h1 { margin: 0; font: 400 clamp(36px, 3.4vw, 54px)/.96 var(--serif); letter-spacing: -.02em; }
.intro h1 em { color: var(--lime); font-style: italic; }
.intro p { margin: 12px 0 0; max-width: 58ch; color: var(--ink2); font-size: 13.5px; line-height: 1.55; }
.intro p b { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.stat { position: relative; padding: 16px 16px 14px; background: linear-gradient(180deg, var(--bg2), var(--bg1)); min-width: 0; }
.stat .v { margin: 12px 0 6px; font-size: clamp(20px, 1.65vw, 27px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v small { font-size: .5em; color: var(--ink3); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.stat .s { font: 400 11px/1.3 var(--mono); color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; }
.stat.lime::before { background: linear-gradient(90deg, var(--lime), transparent); }
.stat.lime .v { color: var(--lime); }
.stat.gold::before { background: linear-gradient(90deg, var(--gold), transparent); }
.stat.gold .v { color: var(--gold); }

/* the flow */
.flow { overflow: hidden; }
.flow-in { position: relative; height: 268px; margin: 6px 16px 12px; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wire.dash { stroke-dasharray: 3 6; stroke-width: 1.5; }
.dot { r: 3.2; }
.node { position: absolute; z-index: 2; transform: translate(0, -50%); width: 196px; padding: 10px 13px 9px; border-radius: 12px; background: rgba(10, 24, 17, .92); border: 1px solid var(--line2); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04); }
.node .lbl { font-size: 9.5px; letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .v { margin: 7px 0 4px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.node .v small { font-size: .55em; color: var(--ink3); margin-left: 3px; }
.node .s { font: 400 10.5px/1.25 var(--mono); color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node.gold { border-color: rgba(232, 180, 90, .32); }
.node.gold .v { color: var(--gold); }
.node.lime { border-color: var(--lime3); box-shadow: 0 0 0 1px rgba(184, 255, 58, .05), 0 0 40px -10px rgba(184, 255, 58, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
.node.lime .v { color: var(--lime); }
.node.n-out { width: 176px; }
.node.n-fees { width: 182px; }
.node.ping { animation: ping .9s var(--ease); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(184, 255, 58, .5); } 100% { box-shadow: 0 0 0 16px rgba(184, 255, 58, 0); } }
.cap { position: absolute; z-index: 1; transform: translate(-50%, -50%); padding: 3px 7px; border-radius: 6px; background: rgba(7, 18, 13, .85); font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink4); white-space: nowrap; pointer-events: none; }
.cap.c8 { color: rgba(255, 106, 79, .6); }
.cap.off { visibility: hidden; }

/* the columns */
.cols { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1.25fr; gap: 14px; min-height: 0; }
.col { display: flex; flex-direction: column; min-height: 0; }
.col .rows { flex: 1; min-height: 0; }
#c-pay .row { grid-template-columns: 74px minmax(0, 1fr) auto 38px 26px; }
#c-burn .row { grid-template-columns: 58px minmax(0, 1fr) auto 38px 26px; }
#c-cl .row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) auto auto; }
#c-bk .row { grid-template-columns: minmax(0, 1fr) auto 38px 26px; }
.row .an { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row .an b { font: 600 12.5px/1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .an .tag { align-self: flex-start; }
.row .an span { font: 400 10.5px/1 var(--mono); color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .num2 { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.row .num2 b { font-size: 12.5px; font-weight: 600; }
.row .num2 span { font-size: 10.5px; color: var(--ink3); }
.amt.lime { color: var(--lime); }
.amt.gold { color: var(--gold); }
.amt.red { color: var(--red); }
.notx { width: 26px; }

.rules { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 2px 0; border-top: 1px solid var(--line); color: var(--ink3); font-size: 12px; }
.rules b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 11.5px; }

@media (max-width: 1500px) { .col .ph .lbl { display: none; } .stat .v small.u { display: none; } .cols { grid-template-columns: 1fr 1fr; } .col { height: 380px; } .lg { height: auto; min-height: 0; } .node { width: 172px; } .node.n-out, .node.n-fees { width: 160px; } .node .v { font-size: 17px; } .stat .v { font-size: 21px; } }
@media (max-width: 1500px) and (min-width: 721px) {      /* laptops: the stats take the full width (six labels on one line), the intro becomes one row */
  .top { grid-template-columns: 1fr; gap: 18px; }
  .intro { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .intro .lbl { grid-column: 1 / -1; }
  .intro p { margin: 0; max-width: 78ch; }
}
@media (max-width: 1280px) {
  .lg { height: auto; min-height: 0; }
  .top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr 1fr; }
  .col { height: 420px; }
}
@media (max-width: 1100px) {
  .flow-in { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px; }
  .flow-in .wires, .flow-in .cap { display: none; }
  .node { position: static; transform: none; width: auto !important; }
}
@media (max-width: 720px) {
  .lg { padding: 14px 12px; gap: 12px; }
  .intro h1 { font-size: 38px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 13px 12px; }
  .stat .lbl { font-size: 9.5px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cols { grid-template-columns: 1fr; }
  .col { height: 380px; }
  .col:has(> .rows:not([hidden]) > .empty) { height: auto; }      /* an empty list is its note, not a tall empty box */
  .col .empty { padding: 18px 16px 16px; }
  .col .empty::after { height: 64px; margin-top: 14px; }
  .flow-in { grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px; }
  .flow-in .n-fees { grid-column: 1 / -1; }
  .node { padding: 9px 11px 8px; }
  .node .lbl { font-size: 9px; letter-spacing: .08em; }
  .node .v { font-size: 16px; margin: 6px 0 3px; }
  .node .s { font-size: 10px; }
}

@media (max-width: 720px) {
  .ph .n { display: none; }
}

@media (max-height: 900px) and (min-width: 1281px) {
  .lg { height: auto; min-height: 0; }
  .col { height: 400px; }
}

.ph.tabs2 { gap: 4px; align-items: center; padding-top: 10px; padding-bottom: 8px; }
.ph.tabs2 button { background: none; border: 0; padding: 5px 9px; border-radius: 8px; cursor: pointer; color: var(--ink3); }
.ph.tabs2 button h3 { color: inherit; }
.ph.tabs2 button.on { color: var(--ink); background: rgba(255, 255, 255, .05); }
.ph.tabs2 .n { margin-left: auto; }
#c-top .row { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.rk { font: 700 11px/1 var(--mono); color: var(--ink4); }
.rk.r1 { color: var(--gold); } .rk.r2 { color: #d3dbe4; } .rk.r3 { color: #e0915a; }

.calc { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.calc input { width: 96px; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line3); background: var(--bg0); color: var(--ink); font: 600 12px/1 var(--mono); text-align: right; outline: none; }
.calc input:focus { border-color: var(--lime); }
.calc b { color: var(--lime); font-size: 13px; min-width: 92px; display: inline-block; }
.calc .arr { color: var(--ink4); }
@media (max-width: 1500px) { .calc .muted { display: none; } }
@media (max-width: 1100px) { .calc { display: none; } }
