.allowance-dialog{width:min(520px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;padding:1.6rem;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-sizing:border-box}
.allowance-dialog::backdrop{background:rgba(10,18,30,.66)}
.allowance-dialog h2{margin:0 0 .45rem;font-size:1.3rem;line-height:1.3}
#allowance-property{color:var(--muted);font-size:.85rem;overflow-wrap:anywhere;margin:0 0 1rem}
.allowance-status{line-height:1.5;margin:.6rem 0 1rem}
.allowance-file-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--muted);font-size:.9rem}
.allowance-file-total strong{color:var(--ink);font-size:1.35rem;font-variant-numeric:tabular-nums}
.allowance-ledger{margin:.55rem 0 1rem;padding:0;background:none;color:var(--accent);border:0;font-size:.8rem}
.allowance-ledger:hover{text-decoration:underline}
.allowance-balances{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:0 0 1.4rem}
.allowance-balances div{padding:.8rem .65rem;background:var(--bg);border:1px solid var(--line);border-radius:9px}
.allowance-balances dt{font-size:.8rem;color:var(--muted);margin-bottom:.35rem}
.allowance-balances dd{margin:0;font-size:1.15rem;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.allowance-presets{display:flex;gap:.6rem;margin-bottom:1rem}
.allowance-presets button{flex:1;min-width:0}
.allowance-presets button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft,rgba(68,135,211,.14));color:var(--ink)}
#allowance-form>label{display:flex;flex-direction:column;gap:.45rem;font-size:.9rem;font-weight:600;margin-bottom:1rem}
#allowance-amount{width:100%;min-height:46px;box-sizing:border-box;border-radius:8px;padding:.65rem .8rem;font-size:1.1rem}
.allowance-new-total{font-weight:600;font-variant-numeric:tabular-nums;margin:.75rem 0}
.allowance-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1.2rem}
.allowance-actions button{flex:1;padding:.7rem .8rem;line-height:1.35;min-height:44px}
.allowance-dialog .footnote{line-height:1.5;margin:.8rem 0 0;color:var(--muted)}
.allowance-dialog .product-error:empty{display:none}
.worklist-spending .allowance-note{margin:.75rem 0;font-size:.85rem}
@media(max-width:560px){.allowance-dialog{padding:1.15rem}.allowance-balances{grid-template-columns:repeat(2,minmax(0,1fr))}.allowance-actions{flex-direction:column}}

.allowance-dialog form{display:block;max-width:none;margin:0}.allowance-dialog form button{min-width:0;justify-content:center;white-space:normal;height:auto}.allowance-presets button{padding:.7rem .5rem}.allowance-dialog label{color:var(--ink)}

#stats-allowance{align-self:flex-end;margin-top:auto;padding:6px 9px;font-size:12px}
