.billing-page{min-height:100vh;padding:32px clamp(18px,5vw,72px);background:var(--bg);color:var(--text)}.billing-page>header{display:flex;gap:28px;align-items:center}.billing-page>header a{color:var(--muted);text-decoration:none}.billing-page>header a:hover{color:var(--text)}.billing-page h1{margin:4px 0;font-size:1.8rem}.billing-page header small{color:var(--orange)}.billing-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0}.billing-metrics article,.billing-table{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px}.billing-metrics article{display:grid;gap:10px}.billing-metrics span{color:var(--muted);font-size:.8rem}.billing-metrics strong{color:var(--text);font-size:1.3rem}.billing-table{color:var(--text)}.billing-table>div:first-child{display:flex;align-items:center;justify-content:space-between}.billing-table h2{color:var(--text);font-size:1rem}.billing-table small{color:var(--muted)}.billing-table table{color:var(--text)}.billing-table th{color:var(--muted);border-bottom-color:var(--line)}.billing-table td{color:var(--text);border-bottom-color:var(--line)}.billing-table td:first-child{color:var(--text)}.billing-table td small{color:var(--muted)}
html[data-theme="light"] .billing-page{background:radial-gradient(circle at 88% 0,#fff0e9 0,transparent 30%),var(--bg)}html[data-theme="light"] .billing-metrics article,html[data-theme="light"] .billing-table{background:#fff;border-color:#dfe4ec;box-shadow:0 10px 30px rgba(32,45,66,.055)}html[data-theme="light"] .billing-page>header a{color:#586579}html[data-theme="light"] .billing-page>header a:hover{color:#d94b17}html[data-theme="light"] .billing-page header small{color:#d94b17}html[data-theme="light"] .billing-metrics span,html[data-theme="light"] .billing-table small{color:#697386}html[data-theme="light"] .billing-metrics strong,html[data-theme="light"] .billing-table h2,html[data-theme="light"] .billing-table td,html[data-theme="light"] .billing-table td:first-child{color:#273247}html[data-theme="light"] .billing-table th{color:#697386;border-bottom-color:#e3e7ee}html[data-theme="light"] .billing-table td{border-bottom-color:#edf0f4}html[data-theme="light"] .billing-table tbody tr:hover{background:#fff8f4}
@media(max-width:720px){.billing-metrics{grid-template-columns:1fr}.billing-page>header{gap:18px}.billing-page h1{font-size:1.45rem}}

/* Filtered account ledger */
.billing-page{max-width:1440px;margin:0 auto}
.billing-explain{margin:-10px 0 18px;color:var(--muted);font-size:.83rem;line-height:1.65}
.billing-warning{margin:12px 0;padding:13px 16px;border:1px solid #d88144;border-radius:10px;background:#6b3a1c30;color:var(--text);font-size:.84rem;line-height:1.6}
.billing-filters{display:grid;grid-template-columns:minmax(180px,1.35fr) repeat(2,minmax(155px,1fr)) auto auto;gap:12px;align-items:end;margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.billing-filters label{display:grid;gap:7px;min-width:0;color:var(--muted);font-size:.78rem;font-weight:700}
.billing-filters select,.billing-filters input{width:100%;min-height:43px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--text);font:inherit;color-scheme:dark}
.billing-filters select:focus-visible,.billing-filters input:focus-visible{outline:2px solid var(--orange);outline-offset:1px}
.billing-filters button,.billing-filters>a,.billing-pages a{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:9px 16px;border-radius:9px;text-decoration:none;font-size:.82rem;font-weight:800;white-space:nowrap;cursor:pointer}
.billing-filters button{border:1px solid var(--orange);background:var(--orange);color:#fff}
.billing-filters>a,.billing-pages a{border:1px solid var(--line);background:transparent;color:var(--text)}
.billing-filters button:hover{filter:brightness(1.1)}.billing-filters>a:hover,.billing-pages a:hover{border-color:var(--orange);color:var(--orange)}
.billing-list-head{gap:16px;margin-bottom:13px}.billing-list-head h2{margin:0}.billing-table .table-wrap{max-width:100%;overflow-x:auto}.billing-table table{width:100%;min-width:740px;border-collapse:collapse}.billing-table th,.billing-table td{padding:12px 10px;text-align:left;vertical-align:top}.billing-table td{line-height:1.5}.billing-table td small{display:block;margin-top:3px}
.bill-kind{display:inline-flex;padding:4px 8px;border:1px solid #ae6846;border-radius:6px;background:#a6512626;color:var(--orange);font-size:.75rem;font-weight:700;white-space:nowrap}
.billing-table td.bill-negative{color:#e78a6f}.billing-table td.bill-positive{color:#55bb91}
.billing-pages{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:20px}.billing-pages span{color:var(--muted);font-size:.8rem}
html[data-theme="light"] .billing-filters{background:#fff;border-color:#dfe4ec}html[data-theme="light"] .billing-filters select,html[data-theme="light"] .billing-filters input{background:#fff;color:#273247;border-color:#cdd5df;color-scheme:light}html[data-theme="light"] .billing-warning{background:#fff3e9;color:#653419}html[data-theme="light"] .bill-kind{background:#fff1e7;color:#a94e21}html[data-theme="light"] .billing-table td.bill-negative{color:#b34a31}html[data-theme="light"] .billing-table td.bill-positive{color:#258254}
@media(max-width:950px){.billing-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-filters label:first-child{grid-column:1/-1}}
@media(max-width:580px){.billing-filters{grid-template-columns:1fr}.billing-filters label:first-child{grid-column:auto}.billing-list-head{align-items:flex-start!important;flex-direction:column}.billing-pages{justify-content:center}}
