/* Credits & Billing */
.bill-nil{display:inline-block;width:10px;height:0;border-top:1.5px solid var(--text-3);vertical-align:middle;opacity:.7}

/* Payment brand marks: bare, no tile. logo() sizes each mark (.bill-mk) by area, one scale per context
   (LOGO_SIZE in p-billing.js); the slot (.bill-logo) has one fixed size per context, so the labels
   beside it line up, with room for the dark theme's plate. The mark is centred in its slot. */
.bill-logo{width:56px;height:28px;flex:0 0 56px;display:flex;align-items:center;justify-content:center;color:var(--text)}
.bill-mk{display:block;flex:0 0 auto}
.bill-mk > img,.bill-mk > svg{display:block;width:100%;height:100%;object-fit:contain}
.bill-logo.opt{width:56px;height:26px;flex-basis:56px}
.bill-logo.sm{width:44px;height:22px;flex-basis:44px}
.bill-logo.mark{width:44px;height:24px;flex-basis:44px}
.bill-logo.plain .i{color:var(--text-3)}
/* Dark: the brand files are drawn for a white ground, so the slot itself becomes a soft borderless
   plate (the same box as in light, so nothing moves or wraps between themes) */
[data-theme=dark] .bill-logo:not(.plain){border-radius:6px;background:#E9EDEA}

/* Open bill on the page and in the dialog (an alert) */
.bill-unpaid{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;background:var(--warn-soft);border:1px solid color-mix(in srgb,var(--warn-fill) 35%,transparent)}
.bill-unpaid.card{box-shadow:none}
.bill-unpaid b{display:block;font-size:13px;font-weight:500;line-height:18px}
.bill-unpaid .mono{display:block;font-size:12px;color:var(--text-2);margin-top:2px;overflow-wrap:anywhere}
.bill-unpaid .c-btn{flex:0 0 auto}

/* Balance card */
.bill-bal{position:relative;min-height:168px;padding:24px;display:flex;flex-direction:column;justify-content:center}
.bill-bal .art{left:auto;width:34%}
.bill-bal-top{position:relative;z-index:2;display:flex;flex-direction:column;gap:6px;max-width:66%}
.bill-bal-top .l{font-size:12px;font-weight:500;line-height:15px;color:var(--text-3)}
.bill-bal-v{font-size:44px;font-weight:500;letter-spacing:-1.6px;line-height:52px;font-variant-numeric:tabular-nums}
/* One line kept for the balance in the other currency and the runway, so the runway never pushes
   the card when the 30-day figures arrive */
.bill-bal-s{font-size:13px;color:var(--text-2);line-height:19px;min-height:19px}
.bill-bal-s .sk{display:inline-block;vertical-align:-2px}

/* Top up your way */
.bill-way{display:flex;align-items:center;gap:14px;width:100%;padding:16px 20px;text-align:left;transition:box-shadow var(--dur-1) var(--ease-std)}
.bill-way:hover{box-shadow:var(--sh-card),0 0 0 1px var(--line-strong)}
.bill-way .ic-box{background:var(--accent-soft);color:var(--accent)}
.bill-way-t b{display:block;font-size:14px;font-weight:500;line-height:19px}
.bill-way-t > span{display:block;font-size:12px;color:var(--text-2);line-height:17px;margin-top:2px}
/* The marks show once the methods are known, in a row that already has their height */
.bill-way-l{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-height:34px}
.bill-more{height:24px;padding:0 8px;border-radius:6px;background:var(--tint-2);font-size:12px;font-weight:500;color:var(--text-2);display:inline-flex;align-items:center;white-space:nowrap}
.bill-more .bm-n,.bill-more.bm-only-n{display:none}

/* Transactions */
.bill-tx{overflow:visible}
.bill-tx-h{display:flex;align-items:center;gap:16px;padding:18px 22px}
.bill-tx-h h2{font-size:16px;font-weight:500;line-height:20px}
/* Filter: the console's segmented control (.seg) */
.bill-chips{flex:0 1 auto;min-width:0;margin-right:auto}
.bill-exp{flex:0 0 auto}
.bill-tbl{table-layout:fixed}
.bill-tbl th{border-top:1px solid var(--line)}
.bill-tbl th,.bill-tbl td{padding-left:10px;padding-right:10px}
.bill-tbl td{height:60px}
/* Date: "Nov 17, 2026 · 21:56" on one line. 20 mono characters at 12px are about 145px; 176px leaves
   room for the cell padding. */
.bill-c-date{width:176px}.bill-c-meth{width:200px}.bill-c-inv{width:150px}.bill-c-st{width:120px}.bill-c-amt{width:130px}.bill-c-rc{width:84px}
.bill-tbl td.bill-c-date{font-size:12px;line-height:17px;white-space:nowrap}
.bill-desc{display:flex;align-items:center;gap:10px;min-width:0}
.bill-dir{width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex:0 0 26px}
.bill-dir .i{width:13px;height:13px}
.bill-dir.out{background:var(--tint-2);color:var(--text-2)}
.bill-desc-t{display:block;font-size:14px;font-weight:500;color:var(--text)}
.bill-desc-m{display:none}
.bill-meth{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--text-2);white-space:nowrap;min-width:0}
.bill-tbl td.bill-c-inv{font-size:12px;line-height:17px;color:var(--text-2);white-space:normal;overflow-wrap:anywhere}
.bill-amt-v{display:block;font-size:14px;font-weight:500;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
.bill-amt-v.pos{color:var(--ok)}
.bill-c-amt .mono{display:block;font-size:11px;margin-top:2px;white-space:nowrap}
.bill-rc.busy .spin{width:14px;height:14px}
.bill-tbl td.bill-tx-empty{padding:0;height:auto}
.bill-tx .err-box{margin:0}
/* Footer around the console pager (GC.pager) */
.bill-tx-f{display:flex;padding:12px 22px;border-top:1px solid var(--line)}

/* ---------- Dialogs (the console dialog: 18px title, 32px close, 24px sides, 40px buttons) ---------- */
.modal.bill-mod{overflow:auto;display:flex;flex-direction:column;position:relative}
.modal.bill-mod.w560{width:min(560px,100%)}
.modal.bill-pay{width:min(440px,100%)}
.modal.bill-pay.w480{width:min(480px,100%)}
.bill-mh{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:22px 24px 0}
.bill-mh h3{font-size:18px;font-weight:500;letter-spacing:-.3px;line-height:24px}
.bill-mh p{font-size:13px;line-height:19px;color:var(--text-2);margin-top:4px}
.bill-mh .icon-btn,.bill-ph .icon-btn{width:32px;height:32px}
.bill-mh .icon-btn{margin:-4px -6px 0 0}
.bill-mh .icon-btn .i,.bill-ph .icon-btn .i{width:16px;height:16px}
.bill-mb{display:flex;flex-direction:column;gap:16px;padding:20px 24px}
.bill-mf{display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;background:var(--bg-alt);border-top:1px solid var(--line);margin-top:auto}
.bill-fld{display:flex;flex-direction:column;gap:8px;min-width:0}
.bill-lab{font-size:13px;line-height:18px;font-weight:500;color:var(--text)}
.bill-lab-r{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.bill-lab-r > span:last-child{font-size:12px;color:var(--text-2);text-align:right}
/* Top up dialog: compact enough to fit a laptop screen without scrolling. The footer stays put; on a
   very short window only the body moves, with no scrollbar drawn. */
.modal.bill-top{overflow:hidden}
.bill-top .bill-mb{gap:14px;padding:16px 24px 18px;flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:none}
.bill-top .bill-mb::-webkit-scrollbar{display:none}
.bill-top .bill-fld{gap:7px}
.bill-top .bill-tab{min-height:54px;gap:5px;padding:6px 4px}
.bill-top .bill-p{min-height:52px;padding:6px}
.bill-top .bill-total{padding-top:14px}
/* The method's details swap in place with no motion */
.bill-mblk{display:flex;flex-direction:column;gap:14px}
.bill-fail{display:flex;gap:10px;padding:12px 14px;border-radius:10px;background:var(--err-soft);border:1px solid color-mix(in srgb,var(--err-fill) 35%,transparent)}
.bill-fail > .i{color:var(--err);width:16px;height:16px;flex:0 0 16px;margin-top:2px}
.bill-fail b{display:block;font-size:13px;font-weight:500;line-height:19px}
.bill-fail p{font-size:13px;color:var(--text-2);line-height:19px;margin-top:2px}

/* Method tabs and the export periods (Billing + Activity): the .seg track and pill exactly, the method row taller */
.bill-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:3px;border-radius:8px;background:var(--tint-2);border:1px solid var(--line)}
.bill-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:66px;padding:8px 4px;border-radius:6px;font-family:inherit;font-size:13px;font-weight:500;color:var(--text-2);transition:background-color var(--dur-1) var(--ease-std),color var(--dur-1) var(--ease-std),box-shadow var(--dur-1) var(--ease-std);min-width:0}
.bill-tab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bill-tab .i{width:16px;height:16px}
.bill-tab:hover:not(:disabled){color:var(--text)}
.bill-tab.on{background:var(--seg-ind);color:var(--text);box-shadow:var(--seg-ind-sh)}
.bill-tab.on .i{color:var(--accent)}
.bill-tab:disabled{opacity:.45;cursor:not-allowed}
/* Period picker = .seg.md: 32px buttons, 13/18 (a second line may wrap on a phone) */
.bill-tabs.sm .bill-tab{min-height:32px;padding:7px 6px;font-size:13px;line-height:18px}
/* Sliding pill: one quarter of the track (3px padding, 2px gaps), moved by --i */
.bill-tabs.ind{position:relative}
.bill-tab-ind{position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 12px) / 4);border-radius:6px;background:var(--seg-ind);box-shadow:var(--seg-ind-sh);transform:translateX(calc(var(--i, 0) * (100% + 2px)));transition:transform var(--dur-3) var(--ease-out);pointer-events:none}
.bill-tabs.ind .bill-tab{position:relative;z-index:1}
.bill-tabs.ind .bill-tab.on{background:transparent;box-shadow:none}

/* Inset panel */
.bill-info{display:flex;align-items:center;gap:10px;padding:10px 14px 10px 12px;border-radius:10px;background:var(--bg-alt);border:1px solid var(--line);font-size:13px;color:var(--text)}
.bill-info .mono{font-size:12px;white-space:nowrap}

/* Channel picker: a select trigger (accent + ring when open) and its listbox. The list is in the
   markup all the time; opening and closing toggle .open, so the chevron turns and the list fades in
   without the dialog being redrawn. .flip holds the chevron turned for the one frame after a pick
   redraws the dialog, so it turns back. */
.bill-dd{position:relative}
.bill-dd-btn{display:flex;align-items:center;gap:10px;width:100%;height:52px;padding:0 14px;border:1px solid var(--line-control);border-radius:8px;background:var(--surface);font-size:14px;font-weight:500;color:var(--text);text-align:left;transition:border-color var(--dur-1) var(--ease-std),background-color var(--dur-1) var(--ease-std),box-shadow var(--dur-1) var(--ease-std)}
.bill-dd-btn:hover{background:var(--surface-hover)}
.bill-dd.open .bill-dd-btn{border-color:var(--accent);box-shadow:var(--ring)}
.bill-dd-chev{width:14px;height:14px;color:var(--text-3);transition:transform var(--dur-2) var(--ease-std)}
.bill-dd.open .bill-dd-chev,.bill-dd.flip .bill-dd-chev{transform:rotate(180deg)}
.bill-dd-m{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;max-height:360px;overflow:auto;background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;box-shadow:var(--sh-pop);padding:5px;display:none;flex-direction:column;gap:1px}
.bill-dd.open .bill-dd-m{display:flex;animation:cx-pop var(--dur-2) var(--ease-out)}
.bill-dd-m button{display:flex;align-items:center;gap:10px;padding:6px 10px 6px 8px;border-radius:6px;font-size:13px;color:var(--text-2);text-align:left}
.bill-dd-m button:hover:not(:disabled),.bill-dd-m button:focus-visible{background:var(--surface-hover);color:var(--text)}
.bill-dd-m button:focus-visible{outline-offset:-2px}
.bill-dd-m button.on{background:var(--accent-soft);color:var(--text)}
.bill-dd-m button:disabled{opacity:.45;cursor:not-allowed}
.bill-dd-m > button > .i{width:14px;height:14px;color:var(--accent)}
.bill-dd-ck{width:14px;flex:0 0 14px}
.bill-dd-fee{font-size:12px;color:var(--text-3);white-space:nowrap}
.bill-top .bill-in{height:44px}
.bill-top .bill-in input{font-size:15px}

/* Amount */
.bill-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bill-p{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:60px;padding:8px 6px;border:1px solid var(--line-control);border-radius:8px;transition:background-color var(--dur-1) var(--ease-std),border-color var(--dur-1) var(--ease-std);min-width:0}
.bill-p:hover{background:var(--surface-hover)}
.bill-p-v{font-size:15px;font-weight:500;color:var(--text);white-space:nowrap}
.bill-p em{font-style:normal;font-size:11px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bill-p em b{font-weight:500}
.bill-p.on{background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.bill-p.on em{color:var(--accent-text)}
.bill-p-ck{position:absolute;top:7px;left:7px;width:17px;height:17px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center}
.bill-p-ck .i{width:11px;height:11px;stroke-width:3}
.bill-pop{position:absolute;top:-9px;right:8px;padding:1px 7px;border-radius:100px;background:var(--text);color:var(--surface);font-size:10px;font-weight:500;line-height:16px}
.bill-custom-btn{height:44px;border:1px solid var(--line-control);border-radius:8px;font-size:14px;color:var(--text-2);transition:background-color var(--dur-1) var(--ease-std),color var(--dur-1) var(--ease-std)}
.bill-custom-btn:hover{background:var(--surface-hover);color:var(--text)}
.bill-custom .pre{font-size:14px}
/* Same box as the button it replaces, so opening it moves nothing */
.bill-in.bill-custom{height:44px;box-sizing:border-box}
.bill-err[hidden]{display:none}
.bill-bonus{display:flex;align-items:flex-start;gap:7px;font-size:12px;color:var(--text-2);line-height:17px}
.bill-bonus .i{width:13px;height:13px;color:var(--accent);flex:0 0 13px;margin-top:2px}

.bill-total{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-top:16px;border-top:1px solid var(--line)}
.bill-total > div{display:flex;flex-direction:column;gap:4px;min-width:0}
.bill-total b{font-size:14px;font-weight:500}
.bill-total span{font-size:12px;color:var(--text-2)}
.bill-total .r{align-items:flex-end;text-align:right}
.bill-total .bill-total-v{font-size:18px;font-weight:500;white-space:nowrap}
.bill-total .ok{color:var(--ok);font-weight:500}

/* Pay dialog */
.bill-ph{display:flex;align-items:center;gap:14px;padding:18px 18px 16px 24px;border-bottom:1px solid var(--line)}
.bill-ph h3{font-size:16px;font-weight:500;line-height:20px}
.bill-ph p{font-size:12px;line-height:17px;color:var(--text-2);margin-top:1px}
.bill-timer{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:100px;background:var(--tint-2);font-size:12px;font-weight:500;color:var(--text);white-space:nowrap;flex:0 0 auto}
.bill-timer .i{width:13px;height:13px}
.bill-timer.off{color:var(--warn);background:var(--warn-soft)}
.bill-pb{display:flex;flex-direction:column;gap:16px;padding:20px 24px 22px}
.bill-pf{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 24px;background:var(--bg-alt);border-top:1px solid var(--line)}
.bill-pf .mono{font-size:12px}
/* Read-only copy field */
.bill-copy{display:flex;align-items:center;gap:12px;padding:6px 6px 6px 12px;border-radius:8px;background:var(--bg-alt);border:1px solid var(--line);min-width:0}
.bill-copy .mono{flex:1;min-width:0;font-size:14px;color:var(--text);overflow-wrap:anywhere}
.bill-copy.lg .mono{font-size:22px;font-weight:500;letter-spacing:-.2px;line-height:30px}
.bill-copy.wrap .mono{font-size:13px;color:var(--code-str)}
.bill-copy .c-btn{flex:0 0 auto}
.bill-cred{font-size:12px;color:var(--text-2);margin-top:-8px}
.bill-wait{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:var(--text-2)}
.bill-wait .i{width:14px;height:14px;color:var(--accent)}
.bill-pb > .bill-wait:not(:first-child){margin-top:-4px}
.bill-acc{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.bill-acc details + details{border-top:1px solid var(--line)}
.bill-acc summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;font-size:13px;font-weight:500;cursor:pointer;list-style:none}
.bill-acc summary::-webkit-details-marker{display:none}
.bill-acc summary .i{width:15px;height:15px;color:var(--text-2);transition:transform var(--dur-2) var(--ease-std)}
.bill-acc details[open] summary .i{transform:rotate(180deg)}
.bill-acc .bill-steps{padding:0 14px 14px}
.bill-steps{display:flex;flex-direction:column;gap:10px;list-style:none;font-size:13px;color:var(--text)}
.bill-steps li{display:flex;gap:10px;align-items:flex-start;line-height:19px}
.bill-steps i{width:19px;height:19px;flex:0 0 19px;border-radius:50%;background:var(--tint-2);color:var(--text-2);font-style:normal;font-size:11px;font-family:var(--font-code);display:grid;place-items:center}
.bill-qr{display:flex;justify-content:center}
.bill-qr img{width:248px;height:248px;padding:14px;background:#fff;border:1px solid var(--line-strong);border-radius:12px;object-fit:contain;image-rendering:pixelated}
.bill-due{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.bill-due > span{font-size:13px;color:var(--text-2)}
.bill-due b{font-size:34px;font-weight:500;letter-spacing:-.6px;line-height:42px}
.bill-due p{font-size:12px;color:var(--text-2)}
.bill-note{font-size:12px;color:var(--text-2);line-height:18px;text-align:center}
.bill-push{display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 20px;border-radius:10px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);text-align:center}
.bill-push > .i{width:22px;height:22px;color:var(--accent)}
.bill-push b{font-size:16px;font-weight:500}
.bill-push p{font-size:13px;color:var(--text-2);line-height:20px}
.bill-check{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px 8px;text-align:center}
.bill-check > .i{width:30px;height:30px;color:var(--accent);margin-bottom:6px}
.bill-check b{font-size:18px;font-weight:500}
.bill-check p{font-size:13px;color:var(--text-2);line-height:20px;max-width:390px}
.bill-check .link-btn{margin-top:6px}
.bill-pay-p{font-size:13px;color:var(--text-2);line-height:20px}
.bill-ver{display:flex;flex-direction:column;gap:7px;padding-top:14px;border-top:1px solid var(--line)}
.bill-ver > label{font-size:13px;line-height:18px;font-weight:500;color:var(--text)}
.bill-ver-r{display:flex;gap:8px}
.bill-ver-r .c-in{flex:1}

/* Key-value box (pay dialog and end states): an inset panel */
.bill-kvb{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border-radius:10px;background:var(--bg-alt);border:1px solid var(--line);width:100%}
.bill-kvb > div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;line-height:18px}
.bill-kvb > div > span:first-child{color:var(--text-2);text-align:left}
.bill-kvb .mono{color:var(--text);text-align:right;overflow-wrap:anywhere}
.bill-kvb .ok{color:var(--ok);font-weight:500}

/* End states: paid, expired, cancelled, review, failed */
.bill-end{display:flex;flex-direction:column;align-items:center;gap:12px;padding:28px 24px;text-align:center}
.bill-end h3{font-size:18px;font-weight:500;letter-spacing:-.3px;line-height:24px;margin-top:4px}
.bill-end > p{font-size:14px;color:var(--text-2);line-height:21px;margin-top:-4px}
.bill-end .bill-kvb{margin-top:6px}
.bill-end .bill-note{text-align:center}
.bill-end-ic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto}
.bill-end-ic .i{width:22px;height:22px}
.bill-end-ic.ok{background:var(--ok-soft);color:var(--ok)}
.bill-end-ic.warn{background:var(--warn-soft);color:var(--warn)}
.bill-end-ic.err{background:var(--err-soft);color:var(--err)}
.bill-end-ic.acc{background:var(--accent-soft);color:var(--accent)}
.bill-end-ic.sm{width:40px;height:40px}
.bill-end-ic.sm .i{width:18px;height:18px}
.bill-end-a{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;margin-top:6px}
.bill-end-a.one{grid-template-columns:1fr}
.modal.bill-pay.is-end{width:min(440px,100%)}

/* Cancel confirm */
.modal.bill-ask{width:min(400px,100%)}
.bill-ask-b{display:flex;gap:14px;padding:24px}
.bill-ask-b h3{font-size:18px;font-weight:500;letter-spacing:-.3px;line-height:24px}
.bill-ask-b p{font-size:13px;color:var(--text-2);line-height:19px;margin-top:4px}
.bill-ask-a{display:flex;gap:10px;margin-top:18px}
.bill-ask-a .c-btn{flex:1}

/* Export */
.bill-range-in{display:flex;align-items:center;gap:8px}
.bill-range-in .dp{flex:1}
.bill-range-in > .i{width:15px;height:15px;color:var(--text-2);flex:0 0 15px}
.bill-fmts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bill-fmt{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line-control);border-radius:8px;text-align:left;transition:background-color var(--dur-1) var(--ease-std),border-color var(--dur-1) var(--ease-std)}
.bill-fmt:hover{background:var(--surface-hover)}
.bill-fmt > .i{width:16px;height:16px;color:var(--text-2);flex:0 0 16px}
.bill-fmt b{display:block;font-size:13px;font-weight:500}
.bill-fmt em{display:block;font-style:normal;font-size:12px;color:var(--text-2);margin-top:1px}
.bill-fmt.on{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}
.bill-fmt.on > .i{color:var(--accent)}
.bill-radio{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line-control);flex:0 0 18px;display:grid;place-items:center}
.bill-radio::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent);transform:scale(0);transition:transform var(--dur-2) var(--ease-std)}
.bill-fmt.on .bill-radio{border:5px solid var(--accent)}
.bill-fmt.on .bill-radio::after{transform:scale(1);background:var(--surface);width:6px;height:6px}
/* One fixed height for the skeleton, the figures and the "in the file" line, so a period change
   never resizes the dialog. A new period's figures replace the last ones in place; those dim only if
   the answer takes a moment. */
.bill-xsum{display:flex;justify-content:space-between;align-items:center;gap:12px;box-sizing:border-box;height:37px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;line-height:20px;color:var(--text-2)}
.bill-xsum b{font-size:13px;font-weight:500;color:var(--text)}
.bill-xsum.stale > *{animation:bill-stale var(--dur-2) var(--ease-std) .15s forwards}
@keyframes bill-stale{to{opacity:.55}}

/* Tablet */
@media (max-width:1180px){
  .bill-way-l .bill-logo.mark:nth-child(n+5){display:none}
  .bill-more .bm-w{display:none}
  .bill-more .bm-n{display:inline}
  .bill-more.bm-only-n{display:inline-flex}
}
@media (max-width:1024px){
  .bill-c-inv{display:none}
  .bill-c-meth{width:190px}.bill-c-st{width:100px}.bill-c-amt{width:120px}.bill-c-rc{width:70px}
}
/* Phone */
@media (max-width:720px){
  .bill-head{align-items:stretch}
  .bill-head .acts{width:100%}
  .bill-head .c-btn{width:100%}
  .bill-bal{min-height:0;padding:16px}
  .bill-bal .art{display:none}
  .bill-bal-top{max-width:none}
  .bill-bal-v{font-size:34px;line-height:40px;letter-spacing:-1.2px;overflow-wrap:anywhere}
  .bill-bal-s{font-size:12px}
  .bill-way{padding:14px 16px;flex-wrap:wrap}
  .bill-way-t{flex:1 1 200px}
  .bill-way-l{width:100%;flex-wrap:wrap}
  .bill-way-l .bill-logo.mark:nth-child(n+5){display:none}
  .bill-way-l{gap:8px}
  .bill-unpaid{flex-wrap:wrap}
  .bill-unpaid .grow{flex:1 1 180px}
  .bill-unpaid .c-btn{width:100%}
  .bill-tx-h{flex-wrap:wrap;padding:14px 16px;gap:10px}
  .bill-tx-h h2{flex:1}
  .bill-chips{order:3;flex:1 1 100%;display:grid;margin-right:0}
  .bill-chips > button{padding:0 6px}
  .bill-c-date,.bill-c-meth,.bill-c-st{display:none}
  .bill-c-amt{width:98px}.bill-c-rc{width:68px}
  .bill-tbl.is-empty thead{display:none}
  .bill-tbl td{height:auto}
  .bill-desc-t{font-size:13px}
  .bill-tbl .bill-desc-t.ell{white-space:normal;overflow:visible}
  .bill-dir{display:none}
  .bill-desc-m{display:block;font-family:var(--font-code);font-size:11px;font-weight:400;color:var(--text-3);margin-top:3px;line-height:15px;white-space:normal;overflow-wrap:normal;word-break:keep-all}
  .bill-tx-f{padding:12px 16px}
  .bill-mf{padding:14px 24px calc(14px + env(safe-area-inset-bottom))}
  .bill-mf .c-btn{flex:1}
  .bill-tab{min-height:58px;font-size:11px;gap:6px}
  .bill-tab span{white-space:normal;text-align:center;line-height:1.2}
  .bill-presets{gap:8px}
  .bill-p-v{font-size:13px;letter-spacing:-.02em}
  .bill-p em{font-size:10px}
  .bill-p-ck{top:-6px;left:-6px;width:16px;height:16px;box-shadow:0 0 0 2px var(--surface)}
  .bill-dd-fee{display:none}
  .bill-ph{padding:14px 12px 12px 16px;gap:10px}
  .bill-pb{padding:16px 16px 18px}
  .bill-pf{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .bill-copy.lg .mono{font-size:16px;line-height:24px;letter-spacing:-.4px}
  .bill-qr img{width:216px;height:216px}
  .bill-due b{font-size:28px;line-height:36px}
  .bill-end{padding:24px 20px calc(20px + env(safe-area-inset-bottom))}
  .bill-fmts{grid-template-columns:1fr}
  .bill-range-in{flex-direction:column;align-items:stretch}
  .bill-range-in > .i{display:none}
}
@media (prefers-reduced-motion:reduce){
  .bill-radio::after,.bill-acc summary .i,.bill-tab-ind,.bill-dd-chev{transition:none}
  .bill-dd.open .bill-dd-m{animation:none}
  .bill-xsum.stale > *{animation:none;opacity:.55}
}
