/* Usage & credits (public/usage.js; production hardening PR-21): the balance, the spend by feature, the ledger and the
   CSV statement. The application's palette; logical properties only, so the page mirrors under dir="rtl"; numbers and
   ids stay left-to-right. Prefix jb-us- (never ad-: ad blockers hide those). */
.jb-usage{position:fixed;inset:var(--hdr-h,64px) 0 0;z-index:18;background:#0a0f1c;color:var(--fg);overflow:auto;overscroll-behavior:contain;scrollbar-color:var(--border) transparent}
.jb-usage[hidden]{display:none}
.jb-us-page{max-width:1080px;margin:auto;padding:22px 36px 48px}
.jb-us-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-block-end:22px}
.jb-us-back{color:var(--muted);font:500 12px var(--font-b);padding:4px 0;text-align:start}
.jb-us-back:hover{color:var(--teal)}
.jb-us-eyebrow{font:600 11px var(--font-h);letter-spacing:.18em;color:var(--teal);border:1px solid #2b4d49;padding:4px 9px;border-radius:5px}
.jb-us-hero{display:flex;align-items:flex-start;gap:18px}
.jb-us-hero>div{min-width:0;flex:1}
.jb-us-icon{width:54px;height:54px;display:grid;place-items:center;flex:none;border:1px solid #2d5b55;border-radius:15px;background:linear-gradient(135deg,#173e37,#11202b);color:var(--teal)}
.jb-us-hero h2{font:600 clamp(25px,3vw,34px)/1.2 var(--font-h);letter-spacing:-.035em;margin:0 0 10px}
.jb-us-hero p{font-size:14px;line-height:1.65;color:var(--muted);max-width:760px;margin:0}
.jb-us-low{margin:22px 0 0;padding:16px 18px;border:1px solid rgba(245,158,11,.55);border-radius:14px;background:linear-gradient(150deg,rgba(120,72,8,.32),#101827)}
.jb-us-low h3{font:600 15px var(--font-h);margin:0 0 6px;color:#fde68a}
.jb-us-low p{margin:0;font-size:13px;line-height:1.6;color:#f5e6c4}
.jb-us-low .jb-us-row{margin-block-start:12px}
.jb-us-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}
.jb-us-tile{padding:14px 16px;border:1px solid #243149;border-radius:12px;background:#0f1726;min-width:0}
.jb-us-tile span{display:block;font:600 10.5px var(--font-h);letter-spacing:.12em;text-transform:uppercase;color:var(--label,#94a9b5);margin-block-end:6px}
.jb-us-tile b{font:600 24px var(--font-h);color:#e2e8f0}
.jb-us-tile.is-balance b{color:var(--teal)}
.jb-us-section{margin:0 0 22px;padding:16px 18px;border:1px solid #1f2a3d;border-radius:14px;background:#0c1322}
.jb-us-section h3{font:600 15px var(--font-h);margin:0 0 10px;color:#d8e3ee}
.jb-us-note{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.jb-us-table{width:100%;border-collapse:collapse;font-size:12.5px}
.jb-us-table th{font:600 10.5px var(--font-h);letter-spacing:.1em;text-transform:uppercase;color:var(--label,#94a9b5);text-align:start;padding:6px 8px;border-block-end:1px solid var(--border)}
.jb-us-table td{padding:9px 8px;border-block-end:1px solid #1c2638;vertical-align:top}
.jb-us-table .is-num{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
.jb-us-table small{display:block;color:var(--muted);font-size:11px}
.jb-us-link{background:none;border:0;padding:0;margin-inline-start:6px;color:var(--teal);font:inherit;font-size:11px;text-decoration:underline;cursor:pointer}
.jb-us-plus{color:#86efac}
.jb-us-minus{color:#fca5a5}
.jb-us-adds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.jb-us-adds div{padding:10px 12px;border:1px solid #243149;border-radius:10px;min-width:0}
.jb-us-adds span{display:block;color:var(--muted);font-size:11.5px;margin-block-end:4px}
.jb-us-adds b{font:600 17px var(--font-h);color:#e2e8f0}
.jb-us-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.jb-us-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-block-end:10px}
.jb-us-head h3{margin:0}
.jb-us-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #364158;border-radius:8px;background:#172033;color:var(--fg);padding:8px 13px;font:500 12px var(--font-b);white-space:nowrap}
.jb-us-button:hover:not(:disabled){border-color:var(--teal);background:#1b2b3c}
.jb-us-button:disabled{opacity:.55;cursor:default}
.jb-us-primary{background:#123a34;border-color:#2f6b5f;color:#c8f3e9}
.jb-us-state{padding:30px 18px;text-align:center;color:var(--muted);font-size:13px;border:1px dashed #2c384d;border-radius:12px}
.jb-us-state.is-error{color:#fecaca;border-color:rgba(239,68,68,.45)}
.jb-us-more{display:flex;justify-content:center;padding:14px 0 0}
/* the user-menu notice under the balance */
.jb-low-note{display:block;width:100%;margin:0 0 6px;padding:7px 10px;border:1px solid rgba(245,158,11,.5);border-radius:8px;background:rgba(120,72,8,.22);color:#fde68a;font:500 11.5px/1.45 var(--font-b);text-align:start}
.jb-low-note[hidden]{display:none}
@media (max-width:960px){ .jb-usage{inset:0;z-index:19} }
@media (max-width:760px){
  .jb-us-page{padding:16px 16px 40px}
  .jb-us-tiles,.jb-us-adds{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jb-us-table .is-hide-sm{display:none}
}
/* light-theme:begin — generated by tools/light-theme.mjs from the rules above; do not edit by hand (hand-tuned light rules go after the end marker) */
html[data-theme="light"] .jb-usage{background:#f4f5f9}
html[data-theme="light"] .jb-us-eyebrow{border:1px solid #dfe9e8}
html[data-theme="light"] .jb-us-icon{border:1px solid #dae7e5;background:linear-gradient(135deg,#e7f1ef,#eef2f5)}
html[data-theme="light"] .jb-us-low{border:1px solid rgba(245,158,11,.55);background:linear-gradient(150deg,rgba(245,229,207,.32),#f0f2f6)}
html[data-theme="light"] .jb-us-low h3{color:#8b7000}
html[data-theme="light"] .jb-us-low p{color:#6b4f10}
html[data-theme="light"] .jb-us-tile{border:1px solid #e1e5eb;background:#f0f2f6}
html[data-theme="light"] .jb-us-tile span{color:var(--label,#566973)}
html[data-theme="light"] .jb-us-tile b{color:#181f28}
html[data-theme="light"] .jb-us-section{border:1px solid #e6e9ee;background:#f2f4f8}
html[data-theme="light"] .jb-us-section h3{color:#243d56}
html[data-theme="light"] .jb-us-table th{color:var(--label,#566973)}
html[data-theme="light"] .jb-us-table td{border-block-end:1px solid #e8ebf0}
html[data-theme="light"] .jb-us-plus{color:#0f8a3b}
html[data-theme="light"] .jb-us-minus{color:#790101}
html[data-theme="light"] .jb-us-adds div{border:1px solid #e1e5eb}
html[data-theme="light"] .jb-us-adds b{color:#181f28}
html[data-theme="light"] .jb-us-button{border:1px solid #dadde4;background:#ebedf2}
html[data-theme="light"] .jb-us-button:hover:not(:disabled){background:#e7ebf0}
html[data-theme="light"] .jb-us-primary{background:#e9f3f2;border-color:#d4e4e1;color:#146653}
html[data-theme="light"] .jb-us-state{border:1px dashed #dfe3e8}
html[data-theme="light"] .jb-us-state.is-error{color:#7a0000;border-color:rgba(239,68,68,.45)}
html[data-theme="light"] .jb-low-note{border:1px solid rgba(245,158,11,.5);background:rgba(245,229,207,.22);color:#8b7000}
/* light-theme:end */
/* hand-tuned light rules (after the generated block: they win) */
html[data-theme="light"] .jb-usage{--fg:#0F172A;--muted:#4F5B70;--border:#CDD6E3;--label:#45566A;--teal:#0B8C7C;background:#F3F6FA;color:var(--fg);color-scheme:light}
html[data-theme="light"] .jb-us-eyebrow{border-color:#9ED1C8;background:#E6F6F2}
html[data-theme="light"] .jb-us-icon{border-color:#9ED1C8;background:#E6F6F2}
html[data-theme="light"] .jb-us-tile,html[data-theme="light"] .jb-us-section,html[data-theme="light"] .jb-us-adds div{background:#fff;border-color:#CDD6E3}
html[data-theme="light"] .jb-us-tile b,html[data-theme="light"] .jb-us-adds b,html[data-theme="light"] .jb-us-section h3{color:#0F172A}
html[data-theme="light"] .jb-us-table td{border-color:#E2E8F0}
html[data-theme="light"] .jb-us-plus{color:#15803D}
html[data-theme="light"] .jb-us-minus{color:#B91C1C}
html[data-theme="light"] .jb-us-low{background:#FFF7E6;border-color:#F0B54A}
html[data-theme="light"] .jb-us-low h3{color:#8A4B00}
html[data-theme="light"] .jb-us-low p{color:#5B3A06}
html[data-theme="light"] .jb-us-button{background:#fff;border-color:#CDD6E3;color:#0F172A}
html[data-theme="light"] .jb-us-primary{background:#E6F6F2;border-color:#9ED1C8;color:#0B5F55}
html[data-theme="light"] .jb-low-note{background:#FFF7E6;border-color:#F0B54A;color:#7A4300}
