/* Neon Plan · geometry and hierarchy shared by all side forms. */
#drawerSlot .drawer.np-form-drawer{width:min(560px,100%);border-radius:24px 0 0 24px;box-shadow:-12px 0 48px rgb(9 51 44 / .12)}
#drawerSlot .np-form-drawer>header{position:relative;flex:none;gap:12px;padding:24px var(--np-surface-padding,24px) 20px!important;border-bottom:1px solid var(--line);align-items:center}
#drawerSlot .np-form-drawer>header h2{font:700 23px/1.25 var(--f-display);letter-spacing:-.035em;min-width:0;overflow-wrap:anywhere;margin:0 auto 0 0}
#drawerSlot .np-form-drawer>header>div:first-child{min-width:0;flex:1}
#drawerSlot .np-form-drawer>header>.iconbtn{flex:none;width:44px;height:44px;border-radius:12px}
#drawerSlot .np-form-drawer>header .np-eyebrow{display:block;margin:0 0 5px;font-size:10px;letter-spacing:.12em;color:var(--muted)}
#drawerSlot .np-form-drawer>form,#drawerSlot .np-form-drawer>.np-wallet-detail,#drawerSlot .np-form-drawer>.np-pot-detail{padding:24px var(--np-surface-padding,24px) 32px;gap:24px;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scroll-padding:24px}
#drawerSlot .np-form-drawer>form>*,#drawerSlot .np-form-drawer>.np-pot-detail>*,#drawerSlot .np-form-drawer>.np-wallet-detail>*{flex-shrink:0;min-width:0}
#drawerSlot .np-form-drawer .np-form-intro{font-size:14px;line-height:1.6;color:var(--muted);margin:0;max-width:52ch}
#drawerSlot .np-form-section{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;border:0;min-width:0}
#drawerSlot .np-form-section+.np-form-section{padding-top:24px;border-top:1px solid var(--line)}
#drawerSlot .np-form-section>h3,#drawerSlot .np-form-heading{font:650 16px/1.35 var(--f-body);color:var(--ink);margin:0;letter-spacing:-.015em}
#drawerSlot .np-form-section-body{display:flex;flex-direction:column;gap:16px;min-width:0}
#drawerSlot .np-section-help{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
#drawerSlot .np-form-drawer label{font-size:13px;line-height:1.5;font-weight:600;color:var(--ink);gap:8px;min-width:0}
#drawerSlot .np-form-drawer label>small{font-weight:400;color:var(--muted);font-size:12px;line-height:1.5}
#drawerSlot .np-form-drawer label>.field{margin-top:0}
#drawerSlot .np-form-drawer .field{width:100%;min-width:0;min-height:46px;padding:11px 13px;border-radius:12px;font-size:15px;line-height:1.4;background:var(--surface);border:1px solid var(--outline);box-shadow:none}
#drawerSlot .np-form-drawer textarea.field{min-height:92px;resize:vertical}
#drawerSlot .np-form-drawer input[type=color]{height:46px;padding:6px}
#drawerSlot .np-form-drawer .field:focus{border-color:var(--np-focus,var(--peak));outline:2px solid color-mix(in srgb,var(--np-focus,var(--peak)) 24%,transparent);outline-offset:2px}
#drawerSlot .np-form-drawer .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
#drawerSlot .np-form-drawer .note,#drawerSlot .np-form-drawer .hint{font-size:12px;line-height:1.6;margin:0;color:var(--muted)}
#drawerSlot .np-form-drawer .np-required{align-self:flex-start;font-size:10px;font-weight:500;color:var(--muted);margin-top:-5px}
#drawerSlot .np-form-drawer .bigamt{padding:16px 0 6px;border:0;display:flex;align-items:baseline;gap:8px}
#drawerSlot .np-form-drawer .bigamt>span{font-size:19px;font-weight:500;color:var(--muted)}
#drawerSlot .np-form-drawer .bigamt input{font-size:40px;font-weight:600;letter-spacing:-.04em;min-width:0;width:100%;line-height:1.2}
#drawerSlot .np-form-drawer details.np-form-details,#drawerSlot .np-form-drawer details.np-pot-options,#drawerSlot .np-form-drawer details.np-tx-details{padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin:0;overflow:hidden}
#drawerSlot .np-form-drawer details.np-form-details>summary,#drawerSlot .np-form-drawer details.np-pot-options>summary,#drawerSlot .np-form-drawer details.np-tx-details>summary{font-size:14px;font-weight:600;line-height:1.5;padding:16px;min-height:54px;cursor:pointer;list-style:none;color:var(--ink)}
#drawerSlot .np-form-drawer details[open]>summary{list-style-type:none;border-bottom:1px solid var(--line)}
#drawerSlot .np-form-drawer details.np-form-details>.np-form-section-body,#drawerSlot .np-form-drawer details.np-pot-options>div,#drawerSlot .np-form-drawer details.np-tx-details>div{padding:18px 16px;gap:16px}
#drawerSlot .np-form-drawer details.np-form-details>p{padding:0 16px;margin:16px 0}
#drawerSlot .np-form-drawer fieldset{border-radius:14px!important;border:1px solid var(--line)!important;padding:16px!important;margin:0;min-width:0;gap:16px!important}
#drawerSlot .np-form-drawer fieldset>legend{font-size:14px!important;font-weight:600!important;color:var(--ink)!important;padding:0 6px!important}
#drawerSlot .np-form-drawer .kindseg{gap:4px;padding:4px;background:var(--sunk);border-radius:12px;display:flex}
#drawerSlot .np-form-drawer .kindseg>button{flex:1;min-height:42px;padding:8px;font-size:13px;border-radius:9px}
#drawerSlot .np-form-drawer .np-pot-existing{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px;border-radius:14px;background:var(--sunk);border:0}
#drawerSlot .np-form-drawer .np-pot-existing span{display:grid;gap:6px;font-size:12px;color:var(--muted)}
#drawerSlot .np-form-drawer .np-pot-existing b{font-size:22px;color:var(--ink)}
#drawerSlot .np-form-drawer .np-recon-account{padding:18px 0;border-bottom:1px solid var(--line)}
#drawerSlot .np-form-drawer .np-recon-account:first-child{padding-top:0}
#drawerSlot .np-form-drawer .np-recon-account .rc{gap:14px;grid-template-columns:minmax(0,1fr) 140px;align-items:center}
#drawerSlot .np-form-drawer .np-recon-account .rc small{font-size:12px;line-height:1.5}
#drawerSlot .np-form-drawer .np-recon-history{font-size:12px;margin:14px 0 0}
#drawerSlot .np-form-drawer>.np-drawer-context{padding:12px var(--np-surface-padding,24px);border-bottom:1px solid var(--line);background:var(--sunk);flex:none}
#drawerSlot .np-form-drawer .np-drawer-back{font-size:12px;min-height:32px}
#drawerSlot .np-form-drawer>footer{flex:none;display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px var(--np-surface-padding,24px) calc(18px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface);z-index:2}
#drawerSlot .np-form-drawer>footer>.btn{min-height:46px;padding:11px 20px;font-size:14px;justify-content:center}
#drawerSlot .np-form-drawer>footer>.btn.primary{min-width:150px}
#drawerSlot .np-form-drawer>footer>.spacer{flex:1}
.np-form-actions{position:relative;flex:none}
.np-form-actions>summary{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;list-style:none!important;cursor:pointer;padding:0!important;border:0!important}
.np-form-actions>summary::-webkit-details-marker{display:none}
.np-form-actions[open]>summary,.np-form-actions>summary:hover{background:var(--sunk)}
.np-form-actions-panel{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;max-width:min(320px,calc(100vw - 40px));padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px rgb(9 51 44 / .15);z-index:6}
.np-form-actions-panel .np-form-action{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:46px;width:100%;padding:12px;border-radius:10px;border:0;background:transparent;white-space:normal;text-align:left;font-size:13px}
.np-form-actions-panel .np-form-action:hover{background:var(--out-soft)}
.np-confirm-active #drawerSlot{visibility:hidden;pointer-events:none}
#drawerSlot .np-inline-error{margin:0;padding:14px 16px;border-radius:12px;line-height:1.55;font-size:13px;scroll-margin:20px}
.np-delete-impact{display:grid;gap:8px;padding:18px;background:var(--sunk);border-radius:14px;margin:18px 0}
.np-delete-impact>span{font-size:12px;color:var(--muted)}
.np-delete-impact>strong{font-size:28px;line-height:1.2;color:var(--ink)}
.np-preserved-values{margin-block:24px}
.np-preserved-values>.note{margin-bottom:16px}
.np-preserved-row{border:0;border-top:1px solid var(--line);background:none;width:100%;display:flex;align-items:center;gap:16px;padding:16px 0;text-align:left;color:var(--ink)}
.np-preserved-row>span{display:flex;gap:12px;align-items:center;flex:1;min-width:0}
.np-preserved-row>span>span{display:grid;gap:4px;min-width:0}
.np-preserved-row b{font-size:14px;overflow-wrap:anywhere}
.np-preserved-row small{font-size:12px;color:var(--muted)}
.np-preserved-row strong{font-size:16px;white-space:nowrap}
.np-preserved-balance{font-size:32px;line-height:1.2;letter-spacing:-.035em}
.np-preserved-values details>summary{cursor:pointer;font-size:13px;padding-block:14px}
@media(max-width:600px){
 #drawerSlot .drawer.np-form-drawer{width:100%;border-radius:24px 24px 0 0;max-height:min(94dvh,calc(var(--np-viewport-height,100dvh) - 10px));padding-bottom:0}
 #drawerSlot .np-form-drawer>header{padding:24px var(--np-surface-padding,16px) 16px!important;gap:8px}
 #drawerSlot .np-form-drawer>header h2{font-size:20px;line-height:1.3}
 #drawerSlot .np-form-drawer>form,#drawerSlot .np-form-drawer>.np-wallet-detail,#drawerSlot .np-form-drawer>.np-pot-detail{padding:20px var(--np-surface-padding,16px) 28px;gap:22px}
 #drawerSlot .np-form-drawer .field{font-size:16px;min-height:48px}
 #drawerSlot .np-form-drawer .two{grid-template-columns:minmax(0,1fr);gap:16px}
 #drawerSlot .np-form-drawer .bigamt input{font-size:36px}
 #drawerSlot .np-form-drawer>footer{padding:14px var(--np-surface-padding,16px) calc(14px + env(safe-area-inset-bottom,0px));gap:10px;flex-wrap:nowrap}
 #drawerSlot .np-form-drawer>footer>.spacer{display:none}
 #drawerSlot .np-form-drawer>footer>.btn{min-height:48px;padding-inline:16px;white-space:normal}
 #drawerSlot .np-form-drawer>footer>.btn.primary{flex:1;min-width:0}
 #drawerSlot .np-form-drawer>.np-drawer-context{padding:8px var(--np-surface-padding,16px)}
 #drawerSlot .np-form-drawer .np-recon-account .rc{grid-template-columns:minmax(0,1fr)}
 #drawerSlot .np-form-drawer .np-pot-existing{flex-wrap:wrap}
 .np-preserved-row{gap:10px;flex-wrap:wrap}.np-preserved-row>span{flex-basis:60%}.np-preserved-row strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){#drawerSlot .np-form-drawer{animation:none!important}}

/* Classification owns its fieldsets; match the shared form rhythm without a second border layer. */
#drawerSlot .np-form-drawer #categoryRuleForm>.np-category-fieldset{border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:0 0 24px!important;gap:16px!important}
#drawerSlot .np-form-drawer #categoryRuleForm>.np-category-fieldset:last-of-type{border-bottom:0!important;padding-bottom:0!important}
#drawerSlot .np-form-drawer #categoryRuleForm>.np-category-fieldset>legend{padding:0!important;margin-bottom:16px;font-size:16px!important;font-weight:650!important;line-height:1.35}
#drawerSlot .np-form-drawer :is(#categoryRemovalForm,#categoryRuleHistoryForm)>p{margin:0;line-height:1.6}
#drawerSlot .np-form-drawer #categoryRemovalForm .np-removal-summary h3{font-size:18px;line-height:1.35}
#drawerSlot .np-form-drawer #categoryRemovalForm .np-removal-summary p{font-size:13px;color:var(--muted)}

/* One focused task, one branded primary action. Fields keep a quiet surface. */
#drawerSlot .np-form-drawer>header{background:linear-gradient(110deg,color-mix(in srgb,var(--yellow) 5%,var(--surface)),color-mix(in srgb,var(--spring) 4%,var(--surface)))}
#drawerSlot .np-form-drawer>footer>.btn{border-radius:14px;font-weight:600;letter-spacing:0;max-width:100%;line-height:1.4}
#drawerSlot .np-form-drawer>footer>.btn:not(.primary):not(.danger){border-color:var(--outline);background:var(--surface);color:var(--ink)}
#drawerSlot .np-form-drawer>footer>.btn:not(.primary):not(.danger):hover{background:var(--sunk);border-color:var(--muted)}
#drawerSlot .np-form-drawer :is(.np-form-intro,.note,.hint),#drawerSlot .np-form-drawer label{overflow-wrap:anywhere}
#drawerSlot .np-form-drawer .np-form-intro{max-width:58ch}
#drawerSlot .np-form-drawer #categoryRuleForm>.np-category-fieldset>legend{position:relative;padding-left:12px!important}
#drawerSlot .np-form-drawer #categoryRuleForm>.np-category-fieldset>legend::before{content:"";position:absolute;left:0;top:.18em;width:3px;height:14px;border-radius:3px;background:linear-gradient(var(--yellow),var(--spring))}
#drawerSlot .np-form-drawer .bigamt{min-width:0;width:100%;container-type:inline-size;gap:8px;padding:12px 0;box-shadow:inset 0 -1px var(--outline)}
#drawerSlot .np-form-drawer .bigamt:focus-within{box-shadow:inset 0 -2px var(--np-focus,var(--peak))}
#drawerSlot .np-form-drawer .bigamt>span{flex:none;font-size:18px;line-height:1.2}
#drawerSlot .np-form-drawer .bigamt input{flex:1 1 0;width:0;min-width:0;max-width:100%;font-size:clamp(20px,calc((100cqi - 42px) / var(--np-amount-width,8)),36px);font-variant-numeric:tabular-nums;letter-spacing:-.025em;line-height:1.25;padding:4px 0}
#drawerSlot .np-form-drawer :is(.np-pot-existing,.np-recon-account,.np-preserved-row)>*{min-width:0}
#drawerSlot .np-form-drawer .np-pot-existing b{font-size:clamp(20px,4.8vw,24px);overflow-wrap:anywhere;line-height:1.3}
#drawerSlot .np-form-drawer .tagbox{min-width:0;width:100%;gap:8px;padding:8px 10px;border:1px solid var(--outline);border-radius:12px;align-items:center}
#drawerSlot .np-form-drawer .tagbox:focus-within{border-color:var(--np-focus,var(--peak));outline:2px solid color-mix(in srgb,var(--np-focus,var(--peak)) 24%,transparent);outline-offset:2px}
#drawerSlot .np-form-drawer .tagbox input{min-width:min(150px,100%);max-width:100%;min-height:30px;padding:4px;font-weight:400;font-size:15px;line-height:1.4}
#drawerSlot .np-form-drawer .tagbox .chip{max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.4;padding:4px 6px 4px 10px;border-radius:8px;background:var(--accent-soft);border-color:transparent}
#drawerSlot .np-form-drawer .tagbox .chip>button{flex:none;display:grid;place-items:center;min-width:28px;min-height:28px;margin:0;font-size:20px;border-radius:6px}
#drawerSlot .np-form-drawer .tagbox .chip>button:hover{background:var(--surface);color:var(--ink)}
@media(max-width:600px){#drawerSlot .np-form-drawer .tagbox input{font-size:16px;min-height:32px}#drawerSlot .np-form-drawer .bigamt input{font-size:clamp(20px,calc((100cqi - 42px) / var(--np-amount-width,8)),32px)}}

.np-import-match{padding:16px;border:1px solid var(--outline);border-radius:12px;background:var(--sunk);margin-top:14px}.np-import-match>b{font-size:14px}.np-import-match p,.np-import-match small{font-size:12px;line-height:1.6;color:var(--muted)}.np-import-match label{display:block;margin:12px 0}.np-import-match select{width:100%}

/* Approved transaction and balance drawers; other forms keep their own layout. */
body #drawerSlot .np-current-drawer>header{background:var(--np-overview-gradient);min-height:84px;padding:20px 24px!important}
body #drawerSlot .np-current-drawer>header h2{font:600 20px/26px var(--f-display);letter-spacing:-.5px}
body #drawerSlot .np-current-drawer .np-form-section-body{gap:14px}
body #drawerSlot .np-current-drawer .np-form-section>h3{font:600 14px/20px var(--f-body)}
body #drawerSlot .np-current-drawer .np-form-section>h3::before{height:12px;background:var(--peak)}
body #drawerSlot .np-current-drawer .kindseg{background:none;padding:0;gap:8px}
body #drawerSlot .np-current-drawer .kindseg>button{min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:500 13px/18px var(--f-body);padding:8px}
body #drawerSlot .np-current-drawer .kindseg>button[aria-pressed=true]{box-shadow:inset 0 0 0 .5px var(--ink);border-color:var(--ink);font-weight:600}
body #drawerSlot .np-current-drawer .bigamt{padding:4px 0 10px;border-bottom:2px solid var(--peak)}
body #drawerSlot .np-current-drawer .bigamt input{font:600 36px/44px var(--f-display)}
body #drawerSlot .np-current-drawer .field{min-height:44px;font:400 13.5px/20px var(--f-body)}
body #drawerSlot .np-current-drawer .np-required{display:none}
body #drawerSlot .np-current-drawer .np-tx-options{gap:14px}
body #drawerSlot .np-current-drawer .np-tx-option{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;margin:0}
body #drawerSlot .np-current-drawer .np-tx-option>summary{min-height:40px;padding:12px 0;font:500 12.5px/16px var(--f-body);cursor:pointer}
body #drawerSlot .np-current-drawer .np-tx-option>.np-form-section-body{padding:14px 0 18px}
body #drawerSlot .np-current-drawer>footer{padding:16px 24px;gap:12px}
body #drawerSlot .np-current-drawer>footer>.btn.primary{min-width:0;--np-action-fill:#f4ff00}
body #drawerSlot .np-current-drawer .np-recon-account{padding:14px 0}
body #drawerSlot .np-current-drawer .np-recon-account:first-child{padding-top:0}
body #drawerSlot .np-current-drawer .np-recon-account:last-child{border-bottom:0}
body #drawerSlot .np-current-drawer .rc{grid-template-columns:minmax(0,1fr) 168px;gap:12px}
body #drawerSlot .np-current-drawer .rc>span{column-gap:12px}
body #drawerSlot .np-current-drawer .rc b{font:600 13px/18px var(--f-body)}
body #drawerSlot .np-current-drawer .rc small{font:400 11.5px/16px var(--f-body)}
body #drawerSlot .np-current-drawer .np-recon-help{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:12px;background:var(--sunk);font-size:12px}
.np-recon-help>svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--peak)}
.np-draft-preview{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:16px;background:var(--np-overview-gradient);color:var(--ink)}
.np-draft-preview[hidden]{display:none}
.np-draft-preview>span{display:grid;gap:2px;min-width:0}
.np-draft-preview b{font:500 13px/18px var(--f-body)}
.np-draft-preview small{font:400 11.5px/16px var(--f-body);color:var(--muted)}
.np-draft-preview>strong{font:600 22px/28px var(--f-display);white-space:nowrap}
.np-draft-preview .np-hf-money{font:inherit}
.np-draft-preview :is(.np-hf-currency,.np-hf-cents){font-size:12px}
.np-recon-method{font:400 12px/18px var(--f-body);color:var(--muted)}
.np-recon-method>summary{min-height:44px;cursor:pointer}
@media(max-width:600px){
 body #drawerSlot .np-current-drawer>header{min-height:76px;padding:16px!important}
 body #drawerSlot .np-current-drawer .kindseg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body #drawerSlot .np-current-drawer .field{font-size:16px}
 body #drawerSlot .np-current-drawer>footer{padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px))}
 body #drawerSlot .np-current-drawer .rc{grid-template-columns:minmax(0,1fr);gap:10px}
 body #drawerSlot .np-current-drawer .np-tx-option>summary{min-height:44px}
 .np-draft-preview{flex-wrap:wrap;gap:8px}
 .np-draft-preview>strong{margin-left:auto}
}
