/* V25: mobile-friendly right drawer for the existing transaction form. */
.sc-plan-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 16px;padding:2px 0 4px}
.sc-plan-toolbar h2{font-size:22px;font-weight:700;color:#443a39;letter-spacing:-.02em}
.sc-plan-toolbar p{font-size:13px;color:#857b78;margin:3px 0 0}
.sc-add-plan{background:#4a3e3d;color:#fff;padding:12px 20px;border-radius:11px;font-weight:650;white-space:nowrap}
.sc-add-plan:hover{background:#6d5a56}
.sc-drawer-backdrop{position:fixed;inset:0;background:rgba(29,24,23,.43);z-index:110}
.sc-drawer{position:fixed;top:16px;bottom:16px;left:50%;transform:translateX(-50%);width:min(1188px,96vw);max-width:96vw;height:auto;z-index:111;background:#faf9f8;border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.20);overflow-y:auto;overscroll-behavior:contain}
.sc-drawer-header{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e9e5e3;padding:17px 24px;display:flex;justify-content:space-between;align-items:center;color:#463c3b}
.sc-drawer-header strong{font-size:28px;font-weight:800;letter-spacing:-0.03em;color:#3e3534}.sc-drawer-header button{font-size:30px;line-height:1;padding:0 6px;color:#6b6160}
.sc-drawer-card{margin:18px!important;border:1px solid #eae6e4!important;box-shadow:none!important;padding:22px!important;min-height:0!important}
.sc-drawer-card>h2{display:none}
body.sc-drawer-open{overflow:hidden}
.sc-drawer[hidden],.sc-drawer-backdrop[hidden]{display:none!important}
.sc-drawer .sc-record-bottom{grid-template-columns:1.15fr .9fr .9fr!important;grid-template-areas:'cat date freq' 'details amount amount'!important}
.sc-drawer .sc-account-pair{grid-template-columns:1fr 1fr!important}
@media(max-width:640px){.sc-plan-toolbar{align-items:flex-start}.sc-add-plan{padding:10px 13px}.sc-drawer{top:0;bottom:0;left:0;transform:none;width:100vw;max-width:100vw;border-radius:0}.sc-drawer-card{margin:12px!important;padding:16px!important}.sc-drawer .sc-record-bottom{grid-template-columns:1fr!important;grid-template-areas:none!important}.sc-drawer .sc-record-bottom>.sc-field{grid-area:auto!important}.sc-drawer .sc-account-pair{grid-template-columns:1fr!important}.sc-drawer-header{padding:14px 16px}}

/* Keep the original wide form layout at desktop; retain responsive two-column sizing. */
@media (min-width:641px) and (max-width:950px){.sc-drawer .sc-record-bottom{grid-template-columns:1fr 1fr!important;grid-template-areas:'cat cat' 'date freq' 'details amount'!important}}
