/* Mobile layout and accessible form sizing. Manual browser zoom remains available. */
.nf-compact-icon{display:none}
.design-filter-buttons{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
@media(max-width:900px){
html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),html body select,html body textarea{font-size:16px!important}
.auth-layout,.auth-form-side,.auth-form-box,.landing-access,.auth-fields,.nf-sales .sales-access>div{min-width:0;max-width:100%}
.auth-fields input,.auth-fields select,.auth-fields textarea{width:100%;max-width:100%;box-sizing:border-box}
}
@media(max-width:600px){
.nf-shell .nf-topbar{display:grid;grid-template-columns:minmax(0,1fr) 40px auto;align-items:center;gap:8px;padding:10px 12px;min-height:64px;flex-wrap:nowrap}
.nf-shell .nf-topbar .nf-brand.nf-official-brand{grid-column:1;grid-row:1;width:min(136px,100%);height:auto;min-height:0;aspect-ratio:136/42;min-width:0;border-radius:7px}
.nf-shell .nf-topbar .nf-official-brand>img{width:122%;left:-12%;top:-52%}
.nf-shell .nf-topbar .nf-menu-toggle{grid-column:2;grid-row:1;margin:0;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;flex-shrink:0}
.nf-shell .nf-topbar .nf-top-actions{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;margin:0;order:0}
.nf-shell .nf-topbar :is(.nf-theme,.nf-gold-button){display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;border-radius:12px;flex-shrink:0}
.nf-shell .nf-topbar .nf-action-label{display:none}
.nf-shell .nf-topbar .nf-compact-icon{display:block}
.nf-shell .nf-topbar .nf-topnav{grid-column:1/-1;grid-row:2;order:0;min-width:0;width:100%;padding:8px 0 0}
.nf-shell .nf-topbar .nf-topnav:not([data-open="true"]){display:none}
.nf-shell .nf-subnav{display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;width:100%;max-width:100%;box-sizing:border-box;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:6px;padding:10px 12px;border-bottom:1px solid var(--nf-line);margin:0}
.nf-shell .nf-subnav :is(a,button){flex:0 0 auto;white-space:nowrap;font-size:12px;min-height:40px;padding:8px 12px;border-radius:10px}
.nf-shell>main{padding:18px 12px!important}
.nf-shell .finance-heading{gap:12px;margin-bottom:18px}
.nf-shell .finance-heading h1{font-size:25px;line-height:1.2;margin-bottom:0}
.nf-shell .finance-heading-controls{gap:8px}
.nf-shell .month-selector{gap:6px}
.nf-shell .month-selector .month-nav{min-width:36px;width:36px;height:40px;min-height:40px;padding:0}
.nf-shell .month-trigger{min-height:40px;height:40px;font-size:13px;padding:8px 10px}
.nf-shell .native-metrics{gap:10px}
.nf-shell .native-metrics .card{padding:13px 14px;border-radius:15px;min-width:0}
.nf-shell .native-metrics .label{font-size:11px;line-height:1.5;letter-spacing:.025em}
.nf-shell .native-metrics .value{font-size:clamp(18px,5.3vw,24px);line-height:1.3;margin:9px 0 5px;letter-spacing:-.035em;overflow-wrap:anywhere}
.nf-shell .native-metrics .foot{font-size:11px;line-height:1.5}
.nf-shell .design-filter-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.nf-shell .design-filter-buttons{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;min-width:0;padding-bottom:3px;scrollbar-width:none}
.nf-shell .design-filter-buttons button{flex:0 0 auto;white-space:nowrap;font-size:12px;min-height:38px;padding:8px 12px}
.nf-shell .design-filter-row input{min-width:0;width:100%;max-width:100%}
html body dialog{max-width:calc(100% - 24px);width:calc(100% - 24px);max-height:calc(100dvh - 32px);box-sizing:border-box;padding:18px;border-radius:16px;overflow:auto}
.nf-shell .dialog-head h2{font-size:20px;line-height:1.3}
.nf-shell .dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.nf-shell .dialog-actions .btn{width:100%;min-width:0;font-size:13px;min-height:44px;padding:11px 10px}
.nf-shell .form-grid,.nf-shell .form-field{min-width:0}
.nf-shell .form-field :is(input,select,textarea){min-width:0;max-width:100%;box-sizing:border-box}
.nf-landing .landing-access .auth-form-box{padding:0}
.nf-landing .landing-access h2{font-size:25px;line-height:1.3;overflow-wrap:anywhere}
.nf-landing .landing-access .auth-fields label{font-size:13px}
.nf-landing .landing-access .auth-fields input{min-height:48px}
.nf-landing .landing-access .password-field{min-width:0;width:100%}
.nf-shell>footer small{white-space:normal;max-width:100%;overflow-wrap:anywhere;text-align:center}
.nf-shell .nf-subnav::-webkit-scrollbar,.nf-shell .design-filter-buttons::-webkit-scrollbar{display:none}
.nf-shell .design-entry-panel input[name="amount"]{font-size:28px!important}
.nf-shell .design-entry-panel .dialog-actions{display:block}
.nf-shell .dialog-actions>:last-child:nth-child(3){grid-column:1/-1}
}

.goal-no-deadline{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:44px}.goal-no-deadline input[type="checkbox"]{width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:var(--nf-green,#22563f)}

.form-field[hidden]{display:none!important}

.overview-goals{margin:20px 0}.overview-goals-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.overview-goal{min-width:0;border:1px solid var(--nf-line);border-radius:14px;padding:16px}.overview-goal-heading,.overview-goal-values,.overview-goal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.overview-goal-heading h3{margin:0;font-size:15px;overflow-wrap:anywhere}.overview-goal-heading>strong{color:var(--nf-good-ink);font-size:18px;white-space:nowrap}.overview-goal .progress{margin:14px 0}.overview-goal-values{font-size:13px;flex-wrap:wrap}.overview-goal-values>span,.overview-goal-footer>span{color:var(--nf-muted,#66756c)}.overview-goal-footer{margin-top:12px;font-size:12px;flex-wrap:wrap}.overview-goal-footer button{min-height:40px}.overview-goals .section-head{flex-wrap:wrap;gap:10px}
@media(max-width:600px){.overview-goals-grid{grid-template-columns:minmax(0,1fr);gap:10px}.overview-goal{padding:14px}.overview-goal-heading>strong{font-size:17px}}


.nf-topbar>.nf-signout{flex-shrink:0}
.nf-topbar>a.nf-signout,.nf-topbar>.nf-signout>:is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #ffffff60;border-radius:10px;padding:9px 13px;color:#fff;background:#ffffff12;font:700 13px var(--nf-font);min-height:44px;box-sizing:border-box;white-space:nowrap;text-decoration:none;cursor:pointer}
.nf-topbar>a.nf-signout:hover,.nf-topbar>.nf-signout>:is(button,a):hover{background:#ffffff25}
.nf-topbar>a.nf-signout:focus-visible,.nf-topbar>.nf-signout>:is(button,a):focus-visible{outline:3px solid var(--nf-gold);outline-offset:3px}
.nf-topbar .nf-signout svg{flex-shrink:0}
@media(max-width:600px){
 .nf-shell .nf-topbar>.nf-signout{grid-column:1/-1;grid-row:3;width:100%}
 .nf-shell .nf-topbar>.nf-signout>:is(button,a){width:100%}
 .nf-shell .nf-topnav:not([data-open="true"])~.nf-signout{display:none}
}
