.debt-currency{display:flex;align-items:center;gap:6px;font-size:13px;min-width:0}.debt-currency select{font:inherit;font-weight:650;min-height:44px;max-width:112px;padding:8px;border:1px solid var(--line,#b7c7d5);border-radius:10px;background:var(--surface,#fff);color:var(--ink,#123)}
.statement-start{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--accent-soft);margin:14px 0}.statement-start p{margin:0;font-size:17px;font-weight:650;flex:1 1 220px}.statement-start button{background:var(--accent);color:#fff;border:0;border-radius:10px;min-height:48px;padding:12px 18px;font:inherit;font-weight:650;cursor:pointer}
body .field.money::before{content:var(--currency-sign,"£")}.field.money input{padding-left:var(--currency-padding,30px)!important}
.debt-dialog{width:min(680px,calc(100vw - 28px));max-height:88vh;box-sizing:border-box;padding:22px;border:1px solid var(--line,#aab);border-radius:18px;background:var(--surface,#fff);color:var(--ink,#123);box-shadow:0 20px 70px #0005}.debt-dialog::backdrop{background:#071d3855}.debt-dialog h2{margin:0 0 12px}.debt-dialog button{min-height:44px}.debt-dialog .dialog-close{float:right;min-width:44px}.debt-dialog .review-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:8px;padding:12px 0;border-top:1px solid var(--line)}.debt-dialog label{display:block;font-size:13px}.debt-dialog input{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;color:inherit;background:var(--surface,#fff)}.debt-dialog .review-note{grid-column:1/-1;font-size:13px;color:var(--muted)}.debt-dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.debt-dialog .error{color:var(--bad,#b42318)}.debt-dialog [hidden]{display:none!important}.calendar-status{font-size:13px;display:block;margin:8px 0}.vault-copy{max-width:60ch}.vault-meta{font-size:14px;padding:12px 0}.currency-note{font-size:13px;color:var(--muted)}
@media(max-width:600px){.debt-currency span{display:none}.debt-currency select{max-width:98px;font-size:12px}.debt-dialog{padding:16px}.debt-dialog .review-grid{grid-template-columns:1fr 1fr}.statement-start{padding:14px;gap:12px}.statement-start button{width:100%}}

body .debt-dialog{background:#fff!important;color:#17324d!important;backdrop-filter:none!important;opacity:1}
@media(prefers-color-scheme:dark){body .debt-dialog{background:#162939!important;color:#eef5fc!important}}
@media(max-width:600px){body .debt .fields{grid-template-columns:repeat(2,minmax(0,1fr))}body .debt .fields>.field:first-child{grid-column:1/-1}}
