/* Functional mobile-first layout; visual refinement follows feature validation. */
.setup{max-width:680px;margin:0 auto}.setup-heading p,.setup-note,.coverage-note{color:#54675c;line-height:1.7}.setup progress{width:100%;height:8px;accent-color:#1d6148;margin:12px 0 20px}.setup .field{display:flex;flex-direction:column;gap:8px;margin:18px 0}.setup input,.setup select{width:100%;min-height:44px;font-size:16px}.setup-fields{display:grid;grid-template-columns:1fr;gap:0}.setup-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.setup-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #dce4dc;padding:14px 0}.setup-row p{margin:5px 0 0}.setup-error{color:#a62d2d}.setup-summary{display:grid;grid-template-columns:1fr auto;gap:18px}.setup-summary dd{margin:0;font-weight:600}.setup-banner{margin-bottom:24px}.setup-banner h2{margin-bottom:8px}.coverage-note{font-size:13px;margin-bottom:20px}.setup :focus-visible{outline:3px solid #488965;outline-offset:3px}
@media(min-width:600px){.setup-fields{grid-template-columns:1fr 1fr;gap:16px}}
@media(max-width:900px){aside{position:fixed;inset:auto 0 0;width:100%;height:auto;padding:0;background:white;z-index:30;border:0;border-top:1px solid #dce4dc;padding-bottom:env(safe-area-inset-bottom)}aside>.brand,aside>.workspace,aside>.aside-bottom{display:none}#nav{display:flex;justify-content:space-around;overflow:visible}#nav a{display:flex;justify-content:center;align-items:center;min-height:56px;flex:1;padding:8px 4px;margin:0;border-radius:0;font-size:13px;white-space:nowrap}.shell{margin-left:0}header{height:auto;min-height:68px;padding:12px 16px;gap:12px;flex-wrap:wrap}.top-controls{gap:8px;max-width:100%}.avatar{display:none}main{padding:24px 16px 100px;width:100%;min-width:0}.grid,.stats{grid-template-columns:1fr}.panel{min-width:0}.page-head{flex-wrap:wrap;gap:16px}.hero{flex-wrap:wrap;gap:20px}.table-wrap{overflow-x:auto;max-width:100%}dialog{width:calc(100% - 24px);max-height:90dvh;padding:20px}.top-controls input{max-width:170px}.notice{overflow-wrap:anywhere}}

.income-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 20px}.income-suggestion{border:1px solid #d4e1d6;background:#edf3eb;color:#274c38;border-radius:20px;min-height:40px;padding:8px 14px;font:500 15px/20px 'DM Sans',sans-serif;cursor:pointer}.income-suggestion:hover,.income-suggestion[aria-pressed=true]{background:#d7e8d4;border-color:#548060}.income-suggestion:focus-visible{outline:3px solid #488965;outline-offset:3px}

.setup-entry-card{padding:20px;border:1px solid #dce4dc;border-radius:12px;background:white;margin:20px 0}.setup-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.setup-entry-heading h2,.setup-review-section h2{font-size:18px}.setup-routes{display:grid;gap:16px}.setup-route{padding:20px;border:1px solid #dce4dc;border-radius:12px}.setup-route p{margin:12px 0 0;line-height:1.7}.setup-route button{max-width:100%;white-space:normal;height:auto;min-height:44px}.setup button:disabled{opacity:.6;cursor:not-allowed}.setup-review-section{padding:18px 0;border-top:1px solid #dce4dc}.setup-review-section p{margin:10px 0}

.setup-goals{padding:0;border:0;margin:20px 0}.setup-goals legend,.setup-method-heading{font:600 20px/1.4 Manrope,sans-serif;margin-bottom:16px}.setup-goal-grid{display:grid;gap:12px}.setup-goal-card{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #dce4dc;border-radius:10px;background:white;cursor:pointer}.setup-goal-card:has(input:checked){border-color:#1d6148;background:#eaf3e8}.setup-goal-card:has(input:focus-visible){outline:3px solid #488965;outline-offset:3px}.setup .setup-goal-card input{width:20px;min-height:20px;height:20px;flex:0 0 20px;accent-color:#1d6148;margin:2px 0}.setup-goal-card small{display:block;margin-top:4px;color:#54675c;line-height:1.5}.setup-method-heading{margin-top:28px}.setup-routes+p{margin-top:20px}@media(min-width:650px){.setup-goal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:600px){.setup-routes{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.setup-route{min-width:0}}

.setup-route{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.setup-route h3{font-size:18px;line-height:1.4}.setup-route p{margin:0;flex:1}.setup-route .btn{margin-top:auto}

.setup-entry-card{scroll-margin-top:24px}@media(max-width:900px){.setup-entry-card{scroll-margin-top:16px}}
.setup-actions [data-action="next"]{order:2;margin-left:auto}.setup-actions{align-items:center}

.workflow{max-width:100%;min-width:0}.workflow-nav{display:flex;gap:6px;overflow:auto;margin:20px 0;max-width:100%}.workflow-nav a{white-space:nowrap;border:1px solid #dce4dc;padding:10px 12px;font-size:14px}.workflow-nav a[aria-current]{background:#eaf3e8;color:#174d39}.workflow-panel{margin-bottom:20px}.workflow-panel>h2{margin-bottom:18px}.workflow-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:18px 0;border-bottom:1px solid #e5eae3}.workflow-row h3{font-size:17px}.workflow-row p{margin:6px 0 0;line-height:1.7;overflow-wrap:anywhere}.workflow-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.workflow-form{display:grid;gap:14px;max-width:760px}.workflow-form .field{display:flex;flex-direction:column;gap:6px;margin:0}.workflow input,.workflow select{max-width:100%;min-width:0;font-size:16px;min-height:44px}.workflow input[type=checkbox]{min-height:20px;min-width:20px;vertical-align:middle;accent-color:#1d6148}.workflow button[type=submit]{justify-self:start;max-width:100%;height:auto;max-height:none;white-space:normal;padding-block:10px}.workflow-fields{display:grid;gap:12px}.import-rows{display:grid;gap:14px}.import-row{min-width:0;padding:16px;border:1px solid #dce4dc;border-radius:10px;display:grid;gap:10px}.import-row legend{font-weight:600;padding:0 6px}.workflow-choice{display:flex;gap:10px;align-items:flex-start}.transaction-match{padding:20px 0;border-bottom:1px solid #dce4dc}.workflow a:not(.btn){text-decoration:underline;text-underline-offset:3px}.workflow .notice{margin-bottom:20px}@media(min-width:700px){.workflow-fields{grid-template-columns:1fr 2fr 1fr}}@media(max-width:600px){.workflow-panel{padding:18px}.workflow-actions .btn{white-space:normal;max-height:none;height:auto;min-height:40px}.workflow-row{display:block}.workflow-row .workflow-actions{margin-top:14px}.workflow-nav{margin-inline:-16px;padding-inline:16px;max-width:calc(100% + 32px)}}
