:root{--bg:#f7f8fb;--surface:#fff;--ink:#252638;--muted:#898a9c;--line:#edeef4;--purple:#7658dc;--soft:#f0ebff;--green:#289779;--shadow:0 4px 16px #25263803;--radius:15px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button{color:inherit}a{color:var(--purple)}button:focus-visible,a:focus-visible{outline:3px solid #ac97f2;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #b9a6ee;outline-offset:1px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-1px;font-weight:650}h2{font-size:16px;letter-spacing:-.3px;font-weight:650}h3{font-size:14px;font-weight:600}.muted{color:var(--muted)}.small{font-size:12px}.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;flex-shrink:0;stroke-linecap:round;stroke-linejoin:round}.boot{height:100vh;display:grid;place-content:center;text-align:center;gap:18px}.boot img{margin:auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,transform .15s}.btn:hover{background:var(--bg);transform:translateY(-1px)}.btn.primary{background:var(--purple);border-color:var(--purple);color:white;box-shadow:0 3px 7px #7658dc20}.btn.primary:hover{background:#6346c8}.btn.ghost{border:0;background:transparent;color:var(--muted)}.btn.danger{color:#c7525b;border-color:#f4d7d9}.icon-btn{padding:8px;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--muted)}.icon-btn:hover{background:var(--soft);color:var(--purple)}.text-btn{border:0;background:none;color:var(--purple);font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:7px;padding:4px 0}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;font-size:10px;font-weight:600;letter-spacing:.1px;background:var(--soft);color:var(--purple)}.badge.green{background:#eaf7f2;color:#369779}.badge.amber{background:#fff4de;color:#b48025}.badge.red{background:#ffeced;color:#ca5f69}.badge.gray{background:#f2f3f7;color:#7c7e91}.dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}.app-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:232px;z-index:30;padding:29px 18px 18px}.brand{display:flex;align-items:center;gap:10px;padding:0 12px;font-size:23px;font-weight:730;letter-spacing:-1.1px}.brand img{width:33px;height:33px}.brand em{font-style:normal;font-weight:500;color:var(--purple)}.brand-caption{font-size:9px;letter-spacing:1.6px;color:#9997aa;margin:8px 0 28px 57px;text-transform:uppercase}.workspace-control{position:relative;background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:12px 10px;margin:0 0 26px;display:flex;align-items:center;gap:10px}.workspace-icon{width:32px;height:32px;display:grid;place-items:center;background:#eae5fa;color:var(--purple);border-radius:8px}.workspace-control label{font-size:9px;color:var(--muted);display:block;margin-bottom:3px}.workspace-control select{appearance:none;border:0;background:transparent;width:128px;font-size:11px;color:var(--ink);font-weight:600;padding-right:12px;cursor:pointer}.workspace-control>.icon{position:absolute;right:9px;width:12px;pointer-events:none}.nav-label{color:#a5a5b4;font-size:9px;letter-spacing:1.6px;padding:0 14px;margin-bottom:9px;font-weight:600}.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#77788d;font-size:12px;padding:11px 14px;margin:2px 0;border-radius:7px;text-align:left}.nav-item .icon{width:18px;height:18px}.nav-item:hover{background:var(--bg)}.nav-item.active{background:var(--soft);color:var(--purple);font-weight:650}.nav-item .badge{margin-left:auto;font-size:8px;padding:3px 5px;background:#e6ddff}.nav-section{margin-top:26px}.sidebar-bottom{margin-top:auto;padding-top:30px}.side-promo{padding:16px 14px;background:linear-gradient(125deg,#f6f3ff,#f0edfd);border:1px solid #ede6fc;border-radius:10px;margin-bottom:17px}.side-promo .icon{color:var(--purple);margin-bottom:8px}.side-promo h3{font-size:11px;margin-bottom:6px}.side-promo p{font-size:10px;color:#8b839e;line-height:1.6}.side-promo button{margin-top:10px;font-size:10px}.profile{border-top:1px solid var(--line);padding:17px 7px 0;display:flex;gap:10px;align-items:center}.avatar{width:33px;height:33px;border-radius:50%;background:#efe2d1;color:#876951;display:grid;place-items:center;font-size:11px;font-weight:650;flex-shrink:0}.profile-name{font-size:11px;font-weight:600}.profile-sub{font-size:9px;color:var(--muted);margin-top:4px}.profile .icon-btn{margin-left:auto}.main-wrap{grid-column:2;min-width:0}.topbar{height:75px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:18px}.breadcrumb{font-size:11px;display:flex;align-items:center;gap:12px;color:var(--muted)}.breadcrumb span:last-child{color:var(--ink)}.breadcrumb .icon{width:13px;height:13px}.top-tools{display:flex;align-items:center;gap:12px}.search-button{display:flex;align-items:center;gap:8px;width:234px;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:var(--bg);font-size:10px;color:#aaa9b8}.search-button .icon{width:14px;height:14px}.search-button kbd{margin-left:auto;padding:2px 4px;border:1px solid #e5e5ed;border-radius:3px;font:9px inherit}.top-tools .avatar{width:29px;height:29px;font-size:10px}.top-divider{height:22px;border-left:1px solid var(--line);margin:0 4px}.mobile-menu{display:none}.content{padding:29px 34px 18px;max-width:1640px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.page-heading p{color:var(--muted);font-size:11px;margin-top:8px;line-height:1.5}.heading-actions{display:flex;gap:10px}.demo-banner{display:flex;align-items:center;gap:9px;background:#f0edfb;border:1px solid #e7e0fa;border-radius:8px;padding:10px 13px;color:#827694;font-size:10px;margin-bottom:22px}.demo-banner>.icon{width:15px;height:15px;color:var(--purple)}.demo-banner strong{font-weight:600;color:#76628f}.demo-banner .banner-right{margin-left:auto;display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:9px;color:var(--purple)}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.tab-group{display:flex;align-items:center;gap:4px;background:#eeeff5;border-radius:7px;padding:3px}.tab-group button{border:0;background:none;font-size:10px;color:#9090a2;padding:7px 13px;border-radius:5px}.tab-group button.active{background:var(--surface);box-shadow:0 1px 4px #2526380c;color:var(--ink);font-weight:600}.period-input{display:flex;align-items:center;gap:8px;padding:7px 10px;background:var(--surface);border:1px solid var(--line);border-radius:7px;font-size:10px}.period-input .icon{width:14px;height:14px;color:var(--muted)}.period-input input{border:0;background:transparent;font-size:11px;color:var(--ink);max-width:150px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:18px 19px 15px;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;color:#878798;font-size:10px}.stat-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#f1edff;color:var(--purple)}.stat-icon .icon{width:15px;height:15px}.stat-icon.green{background:#eaf7f1;color:#489e80}.stat-icon.blue{background:#ebf1fe;color:#658bd7}.stat-icon.amber{background:#fff5e6;color:#cca44e}.stat-number{font-size:27px;letter-spacing:-1px;font-weight:650}.stat-note{display:flex;align-items:center;gap:5px;font-size:9px;color:#a0a0af;margin-top:12px;min-height:14px}.stat-note .positive{color:#399d7d;font-weight:600}.stat-note .negative{color:#c88849;font-weight:600}.stat-line{height:4px;background:#eeedf7;border-radius:8px;width:100%;margin-top:11px;overflow:hidden}.stat-line span{display:block;height:100%;background:#9375e5;border-radius:8px}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.primary-column,.secondary-column{display:flex;flex-direction:column;gap:20px;min-width:0}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-pad{padding:20px}.panel-head{padding:20px 20px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head p{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.5}.panel-head .text-btn{font-size:10px}.panel-head h2{font-size:13px}.legend{display:flex;gap:14px;align-items:center;font-size:9px;color:#8b8a9d;flex-wrap:wrap}.legend span{display:inline-flex;gap:5px;align-items:center}.legend i{width:7px;height:7px;background:#9474e8;border-radius:2px}.legend i.light{background:#e1d8f7}.chart-summary{display:flex;align-items:center;gap:12px;padding:17px 20px 0}.chart-summary strong{font-size:22px;letter-spacing:-.6px;font-weight:650}.chart-summary span{font-size:9px;color:var(--muted)}.chart-container{padding:8px 15px 8px 4px;min-height:184px}.chart{width:100%;height:192px;display:block;overflow:visible}.chart text{font-size:10px;fill:#a3a2b4}.chart .gridline{stroke:var(--line);stroke-dasharray:3 5}.chart button{border:0}.chart-foot{display:flex;align-items:center;gap:8px;padding:12px 20px;border-top:1px solid var(--line);color:#9794a9;font-size:9px;background:#fdfcfe}.chart-foot .icon{width:13px;height:13px;color:var(--purple)}.two-panels{display:grid;grid-template-columns:1fr 1fr;gap:20px}.category-body{display:flex;gap:20px;padding:22px 20px;align-items:center}.donut{--segments:#ddd 0 100%;width:126px;height:126px;flex-shrink:0;border-radius:50%;background:conic-gradient(var(--segments));display:grid;place-items:center;position:relative}.donut:before{content:"";position:absolute;inset:16px;border-radius:50%;background:var(--surface)}.donut-center{position:relative;text-align:center}.donut-center span{font-size:9px;color:var(--muted);display:block;margin-bottom:5px}.donut-center strong{font-size:17px;letter-spacing:-.5px;font-weight:650}.category-legend{display:flex;flex-direction:column;gap:11px;flex:1;min-width:0}.category-row{display:flex;align-items:center;gap:7px;font-size:9px;color:#858496;border:0;background:none;text-align:left;padding:0;width:100%}.category-row:hover{color:var(--purple)}.category-row .dot{width:6px;height:6px;flex-shrink:0}.category-row .category-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-row b{font-weight:600;color:var(--ink);margin-left:auto}.budget-list{padding:20px;display:flex;flex-direction:column;gap:20px}.budget-item-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;margin-bottom:9px}.budget-item-top span:last-child{font-size:9px;color:var(--muted)}.progress{background:#f0edf7;height:5px;border-radius:8px;overflow:hidden}.progress span{display:block;height:100%;border-radius:8px;background:#9274de}.progress.amber span{background:#e2b46b}.progress.green span{background:#6ab6a0}.progress.red span{background:#dc8a90}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;font-weight:500;color:#9a98ab;border-bottom:1px solid var(--line);background:#fdfdff;padding:12px 18px}td{font-size:10px;padding:13px 18px;border-bottom:1px solid var(--line)}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#faf9fd}.merchant-cell{display:flex;align-items:center;gap:10px}.merchant-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#f0ebfa;color:#9a82c2;flex-shrink:0}.merchant-icon .icon{width:15px;height:15px}.merchant-cell strong{font-size:10px;font-weight:600;display:block}.merchant-cell small{display:block;color:#aaa6b8;font-size:8px;margin-top:4px}.amount{font-weight:650;letter-spacing:-.2px}.amount.income{color:var(--green)}.table-head{padding-bottom:17px}.table-foot{display:flex;justify-content:space-between;padding:13px 20px;border-top:1px solid var(--line);font-size:9px;color:var(--muted);align-items:center}.insight-panel{background:linear-gradient(145deg,#fcfaff,#f9f7fe);border-color:#e9e0f8}.insight-heading{display:flex;align-items:center;gap:8px}.insight-heading .icon{color:var(--purple);width:18px;height:18px}.insight-card{margin:0 16px 10px;background:var(--surface);border:1px solid #efe9f9;border-radius:9px;padding:13px}.insight-card:first-child{margin-top:17px}.insight-card .insight-label{display:flex;align-items:center;gap:6px;font-size:8px;color:var(--purple);margin-bottom:8px;font-weight:600;text-transform:uppercase;letter-spacing:.6px}.insight-card .insight-label .icon{width:12px;height:12px}.insight-card h3{font-size:11px;line-height:1.5;margin-bottom:6px}.insight-card p{font-size:10px;line-height:1.65;color:#9590a4}.insight-card .text-btn{font-size:9px;margin-top:9px}.insight-card.blue .insight-label{color:#658ccc}.insight-card.green .insight-label{color:#4ca48e}.insight-card.amber .insight-label{color:#b3864c}.insights-footer{padding:4px 16px 15px}.insights-footer .btn{width:100%;background:#efe9fc;border-color:#e6ddf8;color:var(--purple);font-size:10px}.list-rows{padding:8px 18px}.list-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border:0}.service-logo{width:31px;height:31px;border-radius:8px;display:grid;place-items:center;font-size:13px;font-weight:700;background:#f3f0f8;color:var(--purple)}.service-logo.netflix{background:#fff0f0;color:#e8535e}.service-logo.spotify{background:#eafaed;color:#56a777}.service-logo.icloud{background:#edf5ff;color:#80add9}.list-row strong{font-size:10px;font-weight:600;display:block}.list-row small{font-size:9px;color:var(--muted);margin-top:4px;display:block}.list-row .row-end{margin-left:auto;text-align:right}.mini-goal{padding:16px 20px}.mini-goal+.mini-goal{padding-top:0}.goal-line{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin-bottom:10px}.goal-line span{display:flex;align-items:center;gap:7px}.goal-line .icon{color:var(--purple);width:14px;height:14px}.goal-note{display:flex;justify-content:space-between;color:var(--muted);font-size:8px;margin-top:7px}.footer{padding:22px 0 5px;display:flex;justify-content:space-between;font-size:9px;color:#a5a3b2;gap:12px}.footer strong{font-weight:600;color:#93909f}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.filters input,.filters select{padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:11px;min-width:120px}.filters input{flex:1;min-width:190px}.records-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.record-card{padding:22px}.record-card h2{margin:14px 0 6px}.record-card p{font-size:11px;color:var(--muted);line-height:1.7}.record-card .big-money{font-size:26px;font-weight:650;letter-spacing:-.8px;margin:18px 0 8px}.record-card .progress{margin:17px 0 10px;height:7px}.record-card .card-actions{display:flex;justify-content:space-between;gap:8px;margin-top:21px}.record-card-top{display:flex;align-items:center;justify-content:space-between}.empty-state{text-align:center;padding:42px 24px;color:var(--muted);font-size:12px;line-height:1.7}.empty-state .icon{display:block;margin:0 auto 14px;width:28px;height:28px;color:#b6a4df}.empty-state h3{color:var(--ink);font-size:15px;margin-bottom:8px}.empty-state .btn{margin-top:16px}.ai-hero{background:linear-gradient(120deg,#eee8fc,#f9f7ff);padding:30px;border:1px solid #e7def9;border-radius:15px;margin-bottom:20px}.ai-hero>.icon{width:30px;height:30px;color:var(--purple);margin-bottom:12px}.ai-hero h2{font-size:24px;margin-bottom:10px}.ai-hero p{font-size:12px;color:#8f84a2;line-height:1.8}.ask-form{display:flex;gap:10px;margin:22px 0 12px}.ask-form input{flex:1;min-width:0;padding:14px;border-radius:9px;border:1px solid #e0d5f3;background:var(--surface);color:var(--ink);font-size:12px}.suggestions{display:flex;gap:8px;flex-wrap:wrap}.suggestions button{border:1px solid #e1d8f0;background:#ffffff70;border-radius:20px;padding:7px 12px;font-size:10px;color:#8a76b0}.answer-box{padding:24px;line-height:1.9;font-size:13px;margin-bottom:20px}.answer-box h3{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:var(--purple)}.answer-box .text-btn{margin-top:16px}.insights-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.insights-grid .insight-card{margin:0;padding:22px}.insights-grid .insight-card h3{font-size:13px}.insights-grid .insight-card p{font-size:12px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .panel{padding:24px}.settings-grid h2{margin-bottom:8px}.settings-grid p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:18px}.settings-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.category-chip{display:flex;align-items:center;gap:4px;background:var(--bg);border-radius:6px;padding:5px 8px;font-size:11px}.category-chip button{padding:2px}.category-chip .icon{width:12px;height:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:500;min-width:0}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;padding:11px 12px;border:1px solid #e4e2ed;border-radius:7px;background:var(--surface);color:var(--ink);font-size:12px;min-height:40px}.field textarea{resize:vertical;min-height:70px}.field small{font-size:10px;font-weight:400;color:var(--muted);line-height:1.6}.check-field{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:400}.check-field input{width:16px;height:16px;accent-color:var(--purple);min-height:0}.form-error{background:#fff0f1;color:#bd5861;padding:10px;border-radius:7px;font-size:12px;margin-top:15px}.form-error:empty{display:none}.modal-overlay{position:fixed;inset:0;background:#25213665;backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}.modal{background:var(--surface);border-radius:16px;width:520px;max-width:100%;max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 24px 90px #21163935}.modal.wide{width:860px}.modal-header{padding:23px 25px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-header h2{font-size:18px}.modal-body{padding:23px 25px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:22px}.modal-desc{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:20px}.dialog-copy{font-size:13px;line-height:1.8;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:.2s;z-index:150;background:#302b41;color:white;padding:13px 20px;border-radius:10px;font-size:12px;max-width:90%;box-shadow:0 8px 25px #21163922}#toast.show{opacity:1;transform:translate(-50%,0)}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-story{padding:45px 9%;background:radial-gradient(ellipse at 60% 60%,#e8defa,#f5f1fc 65%);display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid #e9e0f6}.auth-story .brand{padding:0}.auth-story h1{font-size:54px;line-height:1.12;max-width:480px;letter-spacing:-2.4px;margin-top:50px}.auth-story h1 em{font-style:normal;color:var(--purple)}.auth-story p{font-size:14px;line-height:1.85;color:#8f83a4;max-width:420px;margin-top:20px}.auth-proof{margin-top:35px;max-width:390px;padding:24px;background:#ffffffc7;border:1px solid white;border-radius:16px;box-shadow:0 15px 40px #8563b110;transform:rotate(-2deg)}.auth-proof-top{display:flex;justify-content:space-between;font-size:11px;color:#9890a9}.auth-proof strong{display:block;font-size:36px;margin:14px 0 8px;letter-spacing:-1px}.auth-proof .mini-bars{display:flex;align-items:end;gap:9px;height:82px;margin:20px 0 8px}.mini-bars span{background:#a78adf;border-radius:4px 4px 0 0;flex:1}.auth-story footer{font-size:10px;color:#a89eb9;margin-top:50px}.auth-main{display:grid;place-content:center;padding:55px 30px;background:var(--surface)}.auth-form-wrap{width:350px;max-width:100%}.auth-form-wrap h2{font-size:27px;margin-bottom:10px}.auth-form-wrap>p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:28px}.auth-form-wrap .field{margin:17px 0}.auth-form-wrap .btn{width:100%;padding:12px;margin-top:6px}.auth-form-wrap .divider{display:flex;align-items:center;gap:10px;margin:20px 0;color:#aba6b8;font-size:10px}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.auth-bottom{text-align:center;font-size:11px;color:var(--muted);margin-top:22px}.auth-bottom button{font-size:11px}.auth-disclaimer{text-align:center;color:#aaa4b7;font-size:9px;line-height:1.8;margin-top:18px}.onboarding{min-height:100vh;padding:40px 20px;display:grid;place-content:center}.onboarding .brand{justify-content:center;margin-bottom:30px}.onboarding .panel{width:620px;max-width:calc(100vw - 40px);padding:32px}.onboarding h1{font-size:25px}.onboarding p{font-size:12px;color:var(--muted);margin:10px 0 25px;line-height:1.8}.workspace-types{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:25px}.workspace-type{border:1px solid var(--line);border-radius:9px;padding:18px 10px;background:var(--surface);font-size:11px;text-align:center}.workspace-type .icon{display:block;margin:0 auto 10px;color:var(--purple);width:23px;height:23px}.workspace-type.selected{border-color:#ab91e3;background:var(--soft);color:var(--purple)}.onboarding .form-grid{margin-top:16px}.onboarding .btn.primary{margin-top:22px;width:100%}.search-results{display:flex;flex-direction:column;gap:6px;margin-top:15px}.search-results button{display:flex;align-items:center;gap:10px;background:var(--bg);border:0;border-radius:8px;padding:12px;text-align:left;font-size:12px}.search-results small{margin-left:auto;color:var(--muted)}.report-definitions{padding:20px;font-size:11px;line-height:1.9;color:var(--muted)}.report-definitions summary{cursor:pointer;color:var(--ink);font-weight:600}.owner-bars{padding:20px;display:flex;flex-direction:column;gap:18px}.owner-bars .progress{height:8px}.owner-bars .budget-item-top{font-size:12px}.page-error{margin:30px;padding:25px;border:1px solid #f4d6d6;background:#fff4f4;border-radius:12px;color:#a14c58;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-theme="dark"]{--bg:#191923;--surface:#22222f;--ink:#eceaf4;--muted:#9e9bab;--line:#34313f;--soft:#373047;--purple:#aa8bef;--shadow:none}[data-theme="dark"] .chart-foot,[data-theme="dark"] th,[data-theme="dark"] tbody tr:hover{background:#252431}[data-theme="dark"] .insight-panel,[data-theme="dark"] .side-promo,[data-theme="dark"] .ai-hero{background:#2c263b;border-color:#443651}[data-theme="dark"] .insight-card{border-color:#443651}[data-theme="dark"] .demo-banner{background:#2c263b;border-color:#443651}[data-theme="dark"] .tab-group,[data-theme="dark"] .progress,[data-theme="dark"] .stat-line{background:#35303e}[data-theme="dark"] .suggestions button{background:#302937;color:#c7b4dc}[data-theme="dark"] .auth-story{background:#292136}[data-theme="dark"] .auth-proof{background:#383043;border-color:#443650}[data-theme="dark"] .badge.gray{background:#33313e;color:#bab3c8}
@media(min-width:1450px){.dashboard-columns{grid-template-columns:minmax(0,1fr) 340px}.chart{height:230px}.category-body{padding:24px;gap:26px}.donut{width:145px;height:145px}.stat{padding:22px}.stat-number{font-size:32px}.content{padding-top:34px}.category-row{font-size:11px}.panel-head h2{font-size:14px}td{font-size:11px}}
@media(max-width:1200px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{width:205px;padding:25px 13px 15px}.brand{font-size:21px;padding:0 8px}.brand-caption{margin-left:50px;font-size:8px}.workspace-control select{width:107px}.content{padding:24px}.topbar{padding:0 24px}.dashboard-columns{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.two-panels{gap:16px;grid-template-columns:1fr}.category-body{justify-content:center}.category-legend{max-width:240px}.budget-list{gap:16px}.stat{padding:15px}.stat-number{font-size:23px}.stats-grid{gap:12px}.stat-note{font-size:8px}.records-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insights-grid{grid-template-columns:1fr 1fr}.search-button{width:195px}}
@media(max-width:960px){.app-shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{width:185px;padding:25px 10px 15px}.brand{font-size:19px;gap:7px}.brand img{width:29px;height:29px}.brand-caption{margin-left:45px;font-size:7px}.workspace-control{gap:7px;padding:10px 7px}.workspace-control select{width:95px;font-size:10px}.workspace-icon{width:27px;height:27px}.nav-item{padding:11px;font-size:11px;gap:9px}.content{padding:22px 20px}.dashboard-columns{grid-template-columns:1fr}.secondary-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}.insight-panel{grid-column:1/-1}.insight-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px}.insight-card,.insight-card:first-child{margin:0}.insights-footer{padding-top:0}.two-panels{grid-template-columns:1fr 1fr}.category-body{flex-direction:column;gap:15px}.category-legend{width:100%}.stat-number{font-size:22px}.stat-top{font-size:9px}.search-button{width:170px}.heading-actions .btn{padding:10px}.topbar{padding:0 20px}.demo-banner .banner-right{display:none}h1{font-size:25px}.page-heading{gap:10px}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-note{font-size:9px}.stat-number{font-size:28px}.auth-story h1{font-size:42px}.auth-form-wrap{width:300px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){.app-shell{display:block}.sidebar{transform:translateX(-100%);transition:.2s;width:232px;box-shadow:8px 0 30px #25263814}.sidebar.open{transform:translateX(0)}.sidebar .brand{font-size:23px}.sidebar .brand-caption{font-size:9px;margin-left:51px}.sidebar .workspace-control select{width:130px}.nav-item{font-size:12px}.mobile-menu{display:inline-flex}.topbar{height:63px;padding:0 16px;gap:8px}.breadcrumb{font-size:10px;gap:8px;margin-right:auto}.top-tools{gap:5px}.search-button{width:auto;border:0;background:none;padding:7px}.search-button span,.search-button kbd{display:none}.search-button .icon{width:17px;height:17px}.top-divider{display:none}.content{padding:22px 16px 12px}.page-heading{align-items:flex-start;margin-bottom:18px;flex-wrap:wrap}.page-heading h1{font-size:25px}.page-heading p{font-size:10px}.heading-actions{margin-top:2px}.heading-actions .btn{font-size:10px;padding:9px 11px}.demo-banner{font-size:9px;line-height:1.6;padding:9px 11px;margin-bottom:17px}.demo-banner .icon{flex-shrink:0}.section-toolbar{gap:6px}.tab-group button{padding:7px 10px;font-size:9px}.period-input{padding:7px}.period-input input{font-size:10px;max-width:131px}.stats-grid{gap:11px;margin-bottom:17px}.stat{padding:14px}.stat-top{font-size:10px;margin-bottom:11px}.stat-number{font-size:25px}.stat-note{font-size:8px;flex-wrap:wrap;margin-top:10px}.dashboard-columns{gap:17px}.primary-column{gap:17px}.panel-head{padding:17px 17px 0}.panel-head h2{font-size:13px}.two-panels{gap:13px}.category-body{padding:18px 15px}.donut{width:112px;height:112px}.donut:before{inset:14px}.donut-center strong{font-size:15px}.category-row{font-size:9px}.budget-list{padding:20px 15px;gap:24px}.budget-item-top{font-size:9px;gap:6px;flex-wrap:wrap}.budget-item-top span:last-child{font-size:8px}.secondary-column{gap:13px}.insight-cards{grid-template-columns:1fr;padding:15px}.insight-card{padding:15px}.insight-card h3{font-size:12px}.insight-card p{font-size:11px}.insight-card .text-btn{font-size:10px}.insight-card .insight-label{font-size:9px}.list-rows{padding:8px 13px}.list-row{gap:7px}.service-logo{width:27px;height:27px;font-size:11px}.list-row strong{font-size:9px}.list-row small{font-size:8px}.mini-goal{padding:16px 13px}.goal-line{font-size:9px}.goal-line .icon{display:none}.footer{font-size:8px;line-height:1.6;flex-wrap:wrap}.records-grid{grid-template-columns:1fr}.insights-grid{grid-template-columns:1fr}.auth-page{display:block}.auth-story{padding:28px 25px;display:block}.auth-story h1{font-size:36px;line-height:1.15;margin-top:25px;max-width:390px}.auth-story p{font-size:12px;max-width:380px;margin-top:12px}.auth-proof,.auth-story footer{display:none}.auth-main{padding:35px 25px}.auth-form-wrap{width:min(370px,calc(100vw - 50px))}.auth-form-wrap h2{font-size:24px}.modal-overlay{padding:12px}.modal{max-height:calc(100dvh - 24px)}.modal-body{padding:20px}.modal-header{padding:18px 20px}.ai-hero{padding:23px}.ai-hero h2{font-size:22px}.ask-form{flex-direction:column}.ask-form .btn{align-self:flex-end}.form-grid{gap:13px}.field input,.field select{font-size:12px}.onboarding .panel{padding:24px}.workspace-types{gap:8px}.workspace-type{padding:15px 7px;font-size:10px}.chart{height:175px}.legend{gap:8px;font-size:8px}.panel-head .text-btn{font-size:9px}.panel-head p{font-size:9px}}
.table-wrap{position:relative}.section-toolbar{flex-wrap:wrap}.section-toolbar>.small{min-width:0;overflow-wrap:anywhere}.table-foot{gap:12px;flex-wrap:wrap}.filters{min-width:0}.filters select{max-width:100%}.record-card{min-width:0}.record-card h2,.record-card p{overflow-wrap:anywhere}
@media(max-width:700px){.section-toolbar>.small{flex:1 1 130px}.stat-number{font-size:clamp(19px,5.8vw,25px)}.form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.mode-switcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}.mode-card{display:flex;align-items:center;gap:12px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:16px;color:var(--muted)}.mode-card.selected{border-color:var(--purple);background:var(--soft);color:var(--purple);box-shadow:0 0 0 1px var(--purple)}.mode-card>span{flex:1;min-width:0}.mode-card strong{display:block;font-size:13px}.mode-card small{display:block;font-size:10px;margin-top:5px;font-weight:400;line-height:1.5}.mode-card>.icon:last-child{width:15px;height:15px}.adaptive-dashboard{grid-template-columns:minmax(0,1fr) 330px}.mode-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:0}.feature-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.feature-heading p{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.6}.feature-panel .panel-head{padding-bottom:12px}.feature-rows{padding:0 20px 14px}.feature-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);min-width:0}.feature-row:last-child{border-bottom:0}.feature-row>div:first-child{min-width:0}.feature-row strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.feature-row small{display:block;font-size:10px;color:var(--muted);margin-top:6px;line-height:1.5}.feature-value{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;flex-shrink:0}.feature-empty,.feature-explainer{font-size:11px;line-height:1.8;color:var(--muted);padding:10px 20px 18px}.feature-actions{padding:0 20px 20px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.split-metrics{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:8px 20px 24px}.split-metrics>div{min-width:0}.split-metrics span{font-size:11px;color:var(--muted)}.split-metrics strong{display:block;font-size:23px;margin:10px 0;font-weight:650;letter-spacing:-.6px;overflow-wrap:anywhere}.split-metrics small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-bottom:14px}.safe-panel{border-color:#d8eae2;background:linear-gradient(130deg,var(--surface),#f2fbf7)}.safe-number{font-size:34px;letter-spacing:-1px;color:#329777;font-weight:650;padding:20px 20px 0}.safe-panel .feature-explainer{padding-bottom:9px}.safe-panel .feature-actions{padding-top:10px}.event-row{padding-bottom:16px}.event-row .text-btn{font-size:10px;margin-top:10px}.privacy-note{display:flex;align-items:start;gap:12px;padding:4px 20px 8px;font-size:11px;line-height:1.9;color:var(--muted)}.privacy-note>.icon{color:var(--purple);margin-top:4px}.approval-actions{display:flex;align-items:center;gap:5px}.approval-actions .btn{font-size:10px;padding:8px}.policy-flag{background:#fff7ee;border:1px solid #f1e0cb;border-radius:8px;padding:13px;margin:8px 0;color:#a9783a}.policy-flag strong{font-size:11px}.policy-flag p{font-size:11px;line-height:1.7;margin:7px 0}.policy-flag small{font-size:9px}.saas-total{padding:8px 20px 14px}.saas-total span{font-size:11px;color:var(--muted)}.saas-total strong{display:block;font-size:26px;letter-spacing:-.5px;margin-top:10px}.forecast-note{margin-top:-12px;padding:0 3px}.adaptive-dashboard .insight-card:first-child{margin-top:4px}.personal-summary{min-width:0}[data-theme="dark"] .safe-panel{background:#24312d;border-color:#385747}[data-theme="dark"] .policy-flag{background:#362d24;border-color:#56432d;color:#ddba83}
.two-modes,.workspace-types{grid-template-columns:repeat(2,minmax(0,1fr))}.business-form-section{border:1px solid var(--line);padding:15px;border-radius:9px;background:var(--bg)}.business-form-section summary{font-size:12px;font-weight:650;cursor:pointer;margin-bottom:12px}.business-form-section>p{line-height:1.7;margin-bottom:15px}.business-form-section[hidden]{display:none}.business-buckets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 20px}.business-buckets span{font-size:10px;color:var(--muted);display:block;line-height:1.6}.business-buckets strong{font-size:20px;display:block;margin-top:9px;overflow-wrap:anywhere}.claim-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 20px 12px}.claim-summary button{padding:15px;text-align:left;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);min-width:0}.claim-summary span{font-size:10px;color:var(--muted);line-height:1.6;display:block}.claim-summary strong{display:block;font-size:22px;margin:10px 0;overflow-wrap:anywhere}.claim-summary small{font-size:10px;color:var(--purple);display:flex;align-items:center;gap:8px}.claim-summary .icon{width:13px;height:13px}.category-library{display:flex;flex-direction:column;gap:24px}.category-library .btn{font-size:11px;padding:8px 10px;white-space:normal;text-align:left}.category-library .icon{width:13px;height:13px}.research-links{display:flex;gap:15px;flex-wrap:wrap;font-size:11px}.business-note{display:block;font-size:8px;color:var(--purple);margin-top:5px;white-space:normal;max-width:200px}
.salary-cycle-control{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:var(--soft);padding:12px 14px;border-radius:9px;color:var(--purple);font-size:11px}.salary-cycle-control .btn{color:var(--purple);font-size:11px}
@media(max-width:700px){.business-buckets{gap:8px;padding:10px 16px}.business-buckets strong{font-size:17px}.claim-summary{padding:0 16px 10px;gap:9px}.claim-summary strong{font-size:19px}.claim-summary button{padding:12px}.two-modes .mode-card strong{font-size:12px}.business-form-section .form-grid{grid-template-columns:1fr}.business-form-section{padding:12px}.category-library .btn{font-size:10px}}
@media(max-width:1200px){.adaptive-dashboard{grid-template-columns:minmax(0,1fr) 285px}.mode-card{padding:13px;gap:8px}.mode-card small{font-size:9px}.mode-card strong{font-size:12px}.feature-value{font-size:11px}.feature-row strong{font-size:11px}.approval-actions{flex-wrap:wrap}.split-metrics strong{font-size:21px}}
@media(max-width:960px){.adaptive-dashboard{grid-template-columns:1fr}.adaptive-dashboard .secondary-column{display:flex}.mode-card{padding:12px}.mode-card small{font-size:9px}.adaptive-dashboard .insight-cards{display:flex;flex-direction:column;padding:0 16px 12px}}
@media(max-width:700px){.mode-switcher{gap:7px}.mode-card{padding:12px 8px;flex-direction:column;gap:7px;text-align:center;position:relative}.mode-card>.icon:last-child{display:none}.mode-card strong{font-size:11px}.mode-card small{font-size:9px}.feature-row{gap:8px}.feature-rows{padding:0 16px 13px}.feature-value{font-size:11px}.feature-heading .tab-group{margin-top:3px}.feature-heading p{font-size:10px}.safe-number{font-size:30px}.split-metrics{gap:14px}.split-metrics strong{font-size:21px}.approval-actions .btn{font-size:9px;padding:7px}.feature-panel .text-btn{font-size:10px}.adaptive-dashboard .stat-number{font-size:clamp(18px,5.3vw,25px)}}

.simple-money{grid-column:1 / -1;min-width:0}.simple-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.simple-more{margin-top:24px}.simple-more>summary{cursor:pointer;padding:20px;border:1px solid var(--border);border-radius:12px;font-weight:600}.simple-more[open]>summary{margin-bottom:20px}@media(max-width:600px){.simple-stats{grid-template-columns:1fr}}

.personal-money{min-width:0}.personal-money .salary-cycle-control{margin:16px 0}.personal-money .salary-cycle-control .feature-explainer{margin-bottom:0}

/* Account types, workspace switcher and profile menu */
.view-switch{display:flex;gap:4px;background:#eeeff5;border-radius:9px;padding:3px;flex-shrink:0}
.view-switch button{display:inline-flex;align-items:center;gap:6px;border:0;background:none;font-size:11px;font-weight:600;color:#7f8094;padding:7px 13px;border-radius:7px;min-height:32px;cursor:pointer}
.view-switch button .icon{width:14px;height:14px}
.view-switch button.active{background:var(--surface);color:var(--purple);box-shadow:0 1px 4px #2526380c}
.view-switch button:focus-visible,.profile-trigger:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
[data-theme="dark"] .view-switch{background:#2c2a39}
.profile-menu{position:relative}
.profile-trigger{display:flex;align-items:center;gap:7px;border:1px solid transparent;background:none;border-radius:20px;padding:3px 8px 3px 3px;color:var(--ink);font-size:11px;font-weight:600;cursor:pointer;min-height:36px}
.profile-trigger:hover{border-color:var(--line);background:var(--bg)}
.profile-trigger .icon{width:13px;height:13px;color:var(--muted)}
.profile-trigger-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:280px;max-width:calc(100vw - 24px);background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 48px #2116391f;padding:16px}
.profile-panel-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.profile-panel-head strong{display:block;font-size:13px}.profile-panel-head small{color:var(--muted);font-size:11px}
.profile-panel dl{margin:8px 0 14px}
.profile-panel dl div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:11px;border-bottom:1px dashed var(--line)}
.profile-panel dt{color:var(--muted)}.profile-panel dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere}
.profile-panel .btn{width:100%}
.setup-header{display:flex;align-items:center;justify-content:space-between;gap:14px;width:min(1000px,calc(100vw - 40px));margin:0 auto 26px}
.onboarding{place-content:start center}
.setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:min(1000px,calc(100vw - 40px));margin:0 auto}
.onboarding .setup-grid .panel{width:auto;max-width:none}
.setup-grid h1{font-size:22px;margin:12px 0 6px}
.username-chip{display:inline-block;margin:12px 0;padding:9px 14px;border-radius:9px;background:var(--soft);color:var(--purple);font-weight:650;font-size:14px;overflow-wrap:anywhere}
.setup-grid .btn{margin-top:14px}
.workspace-types.single{grid-template-columns:1fr}
.account-type-cards{border:0;padding:0;margin:4px 0 6px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.account-type-cards legend{font-size:11px;font-weight:500;margin-bottom:7px}
.account-type-card{position:relative;cursor:pointer}
.account-type-card input{position:absolute;opacity:0;inset:0;cursor:pointer}
.account-type-card span{display:flex;flex-direction:column;gap:4px;height:100%;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--surface);transition:border-color .15s,background .15s}
.account-type-card strong{font-size:12px}.account-type-card small{font-size:10px;color:var(--muted);line-height:1.4}
.account-type-card .icon{width:17px;height:17px;color:var(--purple)}
.account-type-card input:checked+span{border-color:#ab91e3;background:var(--soft)}
.account-type-card input:focus-visible+span{outline:2px solid var(--purple);outline-offset:2px}
.auth-notice{display:flex;gap:8px;align-items:flex-start;background:var(--soft);color:var(--purple);padding:10px 12px;border-radius:8px;font-size:12px;margin:14px 0 4px}
.auth-notice .icon{width:15px;height:15px;flex-shrink:0;margin-top:1px}
.field small{color:var(--muted);font-weight:400;font-size:10px;line-height:1.4}
.spinner{width:12px;height:12px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;display:inline-block;animation:opsmind-spin .7s linear infinite}
@keyframes opsmind-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
@media(max-width:1200px){.profile-trigger-name{display:none}.view-switch button{padding:7px 10px}}
@media(max-width:960px){
  .topbar{flex-wrap:wrap;height:auto;min-height:63px;padding-top:8px;padding-bottom:8px}
  .topbar .view-switch{order:3;flex-basis:100%;justify-content:stretch}
  .view-switch button{flex:1;justify-content:center;min-height:40px}
  .topbar .top-tools{margin-left:auto}
}
@media(max-width:700px){
  .topbar .breadcrumb{display:none}
  .setup-header{flex-wrap:wrap}.setup-header .view-switch{order:3;flex-basis:100%}
  .setup-grid{grid-template-columns:1fr}
  .account-type-cards{grid-template-columns:1fr}
}

.goal-type{display:inline-block;font-size:10px;font-weight:650;color:var(--purple);background:var(--soft);border-radius:6px;padding:2px 7px}

/* Workspace name (no type prefix) with a compact switch control */
.workspace-name{flex:1;min-width:0;font-size:12px;font-weight:650;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-control .workspace-switch{margin-left:0;padding:6px;flex-shrink:0}
.workspace-control .workspace-switch .icon{width:14px;height:14px}
.workspace-list .workspace-option{width:100%;border:0;background:none;text-align:left;cursor:pointer;color:var(--ink);border-radius:8px;padding:10px 8px}
.workspace-list .workspace-option:hover,.workspace-list .workspace-option.current{background:var(--soft)}
.workspace-list .workspace-option strong{flex:1;font-size:13px}
.workspace-list .workspace-option .workspace-icon{display:grid;place-items:center}

/* Spending overview Month / Week comparison */
.trend-panel .legend{display:flex;align-items:center;gap:8px}
.trend-compare{font-size:11px;color:var(--muted);margin:6px 0 4px;padding:0 20px;line-height:1.5}
.trend-compare strong{color:var(--ink)}
.trend-legend{display:flex;gap:16px;font-size:10px;color:var(--muted);margin:4px 0;padding:0 20px}
.trend-legend i{display:inline-block;width:16px;height:0;border-top:2.5px solid #9875db;vertical-align:middle;margin-right:6px}
.trend-legend i.previous{border-top:2px dashed #b3b9da}
.week-nav{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;margin:4px 0 8px;padding:0 14px}
.week-nav .icon-btn{margin-left:0;padding:5px}
.week-nav .icon-btn[disabled]{opacity:.35;cursor:not-allowed}
.icon-btn.flip .icon{transform:scaleX(-1)}
.member-spending small{font-weight:400}
@media(max-width:600px){.trend-panel .panel-head{flex-wrap:wrap;gap:10px}}

/* Phone layout: touch-sized controls, wrapping card actions (desktop unchanged) */
.record-card .card-actions{flex-wrap:wrap}
@media(max-width:700px){
  .text-btn{min-height:40px;padding-top:8px;padding-bottom:8px}
  .tab-group button,.view-switch button,.suggestions button{min-height:40px}
  .icon-btn,.search-button{min-width:40px;min-height:40px}
  .period-input{min-height:40px}
  .period-input{padding-top:4px;padding-bottom:4px}
  .period-input input{min-height:34px}
  .category-row{min-height:40px}
  .category-chip{padding:2px 2px 2px 10px}
  .settings-list{gap:8px}
  .record-card .card-actions .btn{flex:1 1 auto;min-height:40px}
  .modal .btn,.modal-footer .btn{min-height:42px}
  .modal-footer{flex-wrap:wrap}
  .workspace-control .workspace-switch{padding:8px}
  .sidebar .nav-item{min-height:42px}
}
@media(max-width:600px){
  /* Side-by-side panels are too narrow on phones */
  .two-panels{grid-template-columns:1fr}
  /* Keep chart labels legible: the chart scrolls sideways inside its panel instead of shrinking */
  .chart-container{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-right:4px}
  .chart{min-width:520px}
  /* Single-column dialog forms */
  .modal .form-grid{grid-template-columns:minmax(0,1fr)}
  .form-grid .feature-explainer{padding:0}
}
@media(max-width:600px){
  /* Rows with action buttons (e.g. Mark paid / Record payment): put actions on their own line */
  .feature-row:has(.btn){flex-wrap:wrap;row-gap:8px}
  .feature-row:has(.btn)>div:first-child{flex:1 1 100%}
  .feature-row:has(.btn) .feature-value{width:100%;justify-content:space-between;gap:8px}
}
