:root{
  --bg:#f3f0e9;--paper:#fbfaf6;--paper2:#f7f4ed;--ink:#172825;--muted:#71807a;--line:#e4dfd4;
  --green:#1f6f5f;--green2:#dce9e2;--red:#b65c50;--red2:#f3dfda;--gold:#bd955f;--gold2:#eee2cf;
  --nav:#172a27;--nav2:#223934;--blue:#56697c;--shadow:0 18px 45px rgba(24,44,39,.08);--radius:22px;
}
*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;font-family:"Manrope",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}body{min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.positive,.positive-text{color:var(--green)!important}.negative,.negative-text{color:var(--red)!important}.right{text-align:right}.eyebrow{display:block;font-size:10px;letter-spacing:.18em;font-weight:800;color:#78908a;text-transform:uppercase;margin-bottom:7px}.eyebrow.light{color:#b8cec7}.icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}
/* auth */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:var(--paper)}.auth-brand{position:relative;overflow:hidden;background:radial-gradient(circle at 80% 20%,#31554c 0,transparent 30%),linear-gradient(145deg,#132824,#1d3a34 72%,#1b2f2b);color:#f7f2e8;padding:48px 7vw;display:flex;flex-direction:column;justify-content:space-between}.auth-brand:after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-120px;bottom:-150px;box-shadow:0 0 0 60px rgba(255,255,255,.025),0 0 0 120px rgba(255,255,255,.018)}.brand-lockup,.side-brand,.auth-mobile-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:2}.brand-lockup strong,.side-brand strong{font-family:"Bricolage Grotesque",ui-sans-serif,sans-serif;font-size:24px;font-weight:500}.brand-lockup small,.side-brand small{display:block;opacity:.58;margin-top:2px;font-size:11px}.brand-mark{width:44px;height:44px;border-radius:14px;background:#d7b47d;color:#17302a;display:flex;align-items:center;justify-content:center;font:600 23px "Bricolage Grotesque",ui-sans-serif,sans-serif;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}.brand-mark.small{width:38px;height:38px;border-radius:12px;font-size:20px}.auth-copy{position:relative;z-index:2;max-width:590px}.auth-copy h1{font:400 clamp(42px,5vw,74px)/1.02 "Bricolage Grotesque",ui-sans-serif,sans-serif;letter-spacing:-.045em;margin:0 0 24px}.auth-copy p{max-width:520px;font-size:17px;line-height:1.7;color:#c8d5d0}.auth-preview{position:relative;z-index:2;width:min(520px,90%);padding:24px 26px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.11);border-radius:24px;backdrop-filter:blur(12px)}.preview-top,.preview-foot{display:flex;justify-content:space-between;align-items:center;color:#c8d5d0;font-size:12px}.auth-preview>strong{display:block;font:400 42px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:10px 0 20px}.mini-bars{height:86px;display:flex;gap:8px;align-items:end;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:14px}.mini-bars i{width:100%;border-radius:8px 8px 2px 2px;background:linear-gradient(#d8b57e,#6f9b8f)}.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px;background:linear-gradient(180deg,#fbfaf7,#f3efe7)}.auth-card{width:min(440px,100%);padding:34px}.auth-card h2{font:400 38px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:0 0 8px;letter-spacing:-.03em}.auth-card>.muted{line-height:1.6;margin:0 0 28px}.auth-mobile-brand{display:none}.form-stack{display:grid;gap:15px}.or{height:42px;display:flex;align-items:center;justify-content:center;color:#9aa39f;font-size:12px}.or:before,.or:after{content:"";height:1px;background:var(--line);flex:1}.or span{padding:0 12px}.auth-switch{text-align:center;color:var(--muted);font-size:13px;margin:22px 0 0}.auth-switch button{border:0;background:none;color:var(--green);font-weight:700}.auth-note{text-align:center;margin-top:24px;font-size:11px;color:#a29d94}.full{width:100%}
/* shell */
.app-shell{min-height:100vh;display:grid;grid-template-columns:242px 1fr}.sidebar{position:fixed;left:0;top:0;bottom:0;width:242px;background:var(--nav);color:#eef2ee;padding:28px 18px 20px;display:flex;flex-direction:column;z-index:20}.side-brand{padding:0 9px 28px}.sidebar nav{display:grid;gap:5px}.sidebar button{border:0;background:transparent;color:#9fb2ac;padding:12px 14px;border-radius:12px;display:flex;align-items:center;gap:12px;text-align:left;transition:.18s}.sidebar button:hover{background:rgba(255,255,255,.05);color:#fff}.sidebar button.active{background:#2a443e;color:#fff;box-shadow:inset 3px 0 0 #d0ac74}.side-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding-top:12px}.side-bottom>button{width:100%}.user-chip{display:flex;align-items:center;gap:9px;padding:14px 8px 0}.user-chip .avatar{width:34px;height:34px;border-radius:11px;background:#d7b47d;color:#15302a;display:flex;align-items:center;justify-content:center;font-weight:800}.user-chip strong{display:block;font-size:12px}.user-chip small{display:block;color:#849a93;font-size:9px;max-width:105px;overflow:hidden;text-overflow:ellipsis}.user-chip button{padding:8px;margin-left:auto}.main{grid-column:2;padding:0 36px 90px;max-width:1580px;width:100%;margin:auto}.topbar{min-height:116px;display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar h1{font:400 34px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:0;letter-spacing:-.03em}.top-actions{display:flex;align-items:center;gap:10px}.currency-switch{height:42px;border:1px solid var(--line);background:rgba(255,255,255,.55);border-radius:13px;padding:0 6px 0 13px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.currency-switch select{border:0;background:transparent;color:var(--ink);font-weight:800;outline:none}.mobile-nav{display:none}
/* buttons/forms */
.btn{border:0;border-radius:12px;padding:11px 16px;font-weight:750;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:.18s}.btn.primary{background:var(--green);color:white;box-shadow:0 7px 18px rgba(31,111,95,.18)}.btn.primary:hover{transform:translateY(-1px);background:#195f52}.btn.outline{background:transparent;color:var(--ink);border:1px solid var(--line)}.btn.ghost{background:#f1eee7;color:var(--ink)}.btn:disabled{opacity:.45;cursor:not-allowed}.text-btn{border:0;background:none;color:var(--green);font-size:11px;font-weight:750}.icon-btn{width:34px;height:34px;padding:0;border:0;border-radius:10px;background:#f2eee6;color:#6b7874;display:inline-flex;align-items:center;justify-content:center}.icon-btn.danger{color:var(--red)}.field{display:grid;gap:7px}.field>span{font-size:11px;font-weight:700;color:#55645f}.field small{font-size:10px;color:#8b9792;line-height:1.45}.field input,.field select,.form-grid input,.form-grid select,.settings-form input,.settings-form select,.inline-form input,.filters input,.filters select{width:100%;height:43px;border:1px solid #ded8cd;background:#fffdfa;border-radius:11px;padding:0 12px;outline:none;color:var(--ink);transition:.15s}.field input:focus,.field select:focus,.settings-form input:focus,.settings-form select:focus{border-color:#79a397;box-shadow:0 0 0 3px rgba(31,111,95,.08)}.readonly-field{height:43px;border:1px dashed #d7d0c4;border-radius:11px;display:flex;align-items:center;padding:0 12px;color:#7b857f;background:#f7f3eb;font-size:12px}.form-error{padding:10px 12px;border-radius:10px;background:#fae9e5;color:#98493e;font-size:11px}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:repeat(3,1fr)}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.input-action{display:flex}.input-action input{border-radius:11px 0 0 11px}.input-action button{border:1px solid #ded8cd;border-left:0;background:#efe9df;border-radius:0 11px 11px 0;font-size:10px;font-weight:800;padding:0 12px}
/* common panels */
.page-grid{display:grid;gap:18px}.panel{background:var(--paper);border:1px solid rgba(218,212,201,.86);border-radius:var(--radius);padding:22px;box-shadow:0 4px 20px rgba(24,44,39,.025)}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel-head h3{font:400 19px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:0}.panel-note{font-size:10px;line-height:1.6;color:#87928e;margin:17px 0 0}.empty{padding:35px;text-align:center;color:var(--muted)}.empty-dot{width:40px;height:40px;border-radius:50%;margin:auto;background:#eee9df;display:flex;align-items:center;justify-content:center;font-size:24px}.pill{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.03em;background:#ece9e1;color:#69736f}.pill.soft{background:#dfece7;color:#356b5e}.pill.good{background:#dcebe4;color:#32705d}.pill.watch,.pill.warning{background:#f3e7d0;color:#946f37}.pill.attention,.pill.danger{background:#f4dfda;color:#9b5046}
/* overview */
.hero-card{min-height:260px;border-radius:28px;overflow:hidden;position:relative;background:linear-gradient(135deg,#17312c,#23473f 70%,#2d5148);color:#fff;padding:36px 40px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow)}.hero-card:before{content:"";position:absolute;width:500px;height:500px;border-radius:50%;border:1px solid rgba(255,255,255,.07);right:-170px;top:-210px;box-shadow:0 0 0 65px rgba(255,255,255,.025),0 0 0 130px rgba(255,255,255,.015)}.hero-copy{position:relative;z-index:2}.hero-copy h2{font:400 clamp(40px,4vw,58px) "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:7px 0 4px;letter-spacing:-.045em}.hero-copy p{color:#b7c9c3;margin:0 0 30px}.hero-meta{display:flex;gap:12px;flex-wrap:wrap}.hero-meta span{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);padding:9px 12px;border-radius:10px;font-size:10px;color:#c3d1cc}.hero-meta b{color:#fff;margin-left:5px}.hero-orbit{position:relative;width:210px;height:210px;border:1px solid rgba(255,255,255,.11);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:4vw;z-index:1}.hero-orbit:before{content:"";position:absolute;inset:22px;border:1px dashed rgba(255,255,255,.1);border-radius:50%}.orbit-main{width:138px;height:138px;border-radius:50%;background:#f1e4cc;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 20px 50px rgba(0,0,0,.2)}.orbit-main small{color:#7b756b;font-size:9px}.orbit-main strong{font:400 20px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:7px 0}.orbit-main span{font-size:9px;font-weight:800}.orbit-dot{position:absolute;width:16px;height:16px;border-radius:50%;background:#d4ac70;border:4px solid #34564e}.orbit-dot.one{right:11px;top:50px}.orbit-dot.two{left:17px;bottom:33px;background:#769e91}.stats-grid{display:grid;gap:14px}.stats-grid.four{grid-template-columns:repeat(4,1fr)}.stats-grid.three{grid-template-columns:repeat(3,1fr)}.stat-card{min-height:132px;border:1px solid var(--line);background:var(--paper);border-radius:19px;padding:18px;display:flex;flex-direction:column}.stat-label{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);font-weight:700}.stat-icon{width:28px;height:28px;border-radius:9px;background:#eeeae1;display:inline-flex;align-items:center;justify-content:center;color:#6c7c76}.stat-card>strong{font:400 25px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin-top:auto}.stat-card>small{font-size:9px;color:#8a9691;margin-top:5px}.stat-card.positive{background:linear-gradient(145deg,#fbfaf6,#edf5f1)}.stat-card.positive .stat-icon{background:#dbeae3;color:var(--green)}.stat-card.negative{background:linear-gradient(145deg,#fbfaf6,#f8efec)}.stat-card.negative .stat-icon{background:#f1ded9;color:var(--red)}.stat-card.warning{background:linear-gradient(145deg,#fbfaf6,#f7f0e3)}.stat-card.dark{background:#233833;color:#f8f5ee;border-color:#233833}.stat-card.dark .stat-label,.stat-card.dark>small{color:#a8bbb5}.content-two{display:grid;grid-template-columns:1.22fr .78fr;gap:18px}.content-two.asym{grid-template-columns:1fr 1fr}.flow-chart{height:190px;display:grid;grid-template-columns:repeat(6,1fr);align-items:end;gap:18px;padding:10px 5px 0}.flow-col{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}.flow-bars{height:150px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:5px;border-bottom:1px solid var(--line)}.flow-bars i{width:11px;min-height:5px;border-radius:6px 6px 2px 2px}.flow-bars i.income{background:#4b897a}.flow-bars i.expense{background:#d69a8f}.flow-col>span{font-size:9px;color:#7e8a85}.legend{display:flex;justify-content:center;gap:20px;margin-top:10px;font-size:9px;color:var(--muted)}.legend i{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px}.legend i.income{background:#4b897a}.legend i.expense{background:#d69a8f}.allocation-wrap{display:grid;grid-template-columns:165px 1fr;align-items:center;gap:25px}.donut{width:150px;height:150px;border-radius:50%;display:flex;align-items:center;justify-content:center}.donut>div{width:103px;height:103px;border-radius:50%;background:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.donut small{font-size:8px;color:var(--muted)}.donut strong{font:400 15px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin-top:5px}.allocation-list{display:grid;gap:12px}.allocation-list>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee9df;padding-bottom:8px;font-size:10px}.allocation-list span{color:#65736e}.allocation-list i{width:8px;height:8px;border-radius:3px;display:inline-block;margin-right:7px}.account-mini-list{display:grid;gap:8px}.account-mini{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eee9df}.account-mini:last-child{border-bottom:0}.account-mini strong{display:block;font-size:11px}.account-mini small{display:block;font-size:8px;color:#89938f;margin-top:3px}.account-mini>div:last-child{text-align:right}.account-icon{width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#e8ece8;color:#526b63}.account-icon.gold{background:#f0e4d1;color:#9b7542}.account-icon.investment{background:#e1e5e9;color:#5b677a}.account-icon.card{background:#f1dfdb;color:#a6564b}.health-list{display:grid;gap:15px}.health-row>div:first-child{display:flex;justify-content:space-between;font-size:10px;margin-bottom:6px}.health-row>div:first-child span{color:var(--muted)}.health-row{display:grid;grid-template-columns:1fr auto;column-gap:10px}.health-row>div:first-child,.health-track{grid-column:1}.health-row>.pill{grid-column:2;grid-row:1/3;align-self:center}.health-track{height:6px;background:#ebe7de;border-radius:99px;overflow:hidden}.health-track i{display:block;height:100%;border-radius:99px}.health-track i.good{background:#5f9a88}.health-track i.watch{background:#c6a267}.health-track i.attention{background:#c87568}.due-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.due-card{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;padding:12px;background:#fdfcf9}.due-card>div:first-child{width:38px;height:42px;border-radius:10px;background:#eee7db;display:flex;flex-direction:column;align-items:center;justify-content:center}.due-date{font:600 15px "Bricolage Grotesque",ui-sans-serif,sans-serif}.due-card small{font-size:8px;color:var(--muted)}.due-card strong{display:block;font-size:10px}.due-card>b{font-size:10px}
/* tables */
.table-wrap{width:100%;overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:650px}.data-table th{font-size:8px;letter-spacing:.08em;text-transform:uppercase;color:#929b97;font-weight:800;padding:10px 8px;border-bottom:1px solid var(--line);text-align:left}.data-table th.right{text-align:right}.data-table td{padding:11px 8px;border-bottom:1px solid #eeeae1;font-size:10px}.tx-title{display:flex;align-items:center;gap:9px}.tx-title>i{width:7px;height:30px;border-radius:8px;background:#789}.tx-title>i.income{background:#63a08f}.tx-title>i.expense{background:#d28c80}.tx-title strong,.tx-title small{display:block}.tx-title small{color:#8a9590;font-size:8px;margin-top:2px}.account-tag{background:#eeece5;border-radius:8px;padding:5px 7px;font-size:8px}.amount strong,.amount small{display:block}.amount.income strong{color:var(--green)}.amount.expense strong{color:var(--red)}.amount small{color:#929a97;font-size:8px;margin-top:2px}.actions{white-space:nowrap}.actions .icon-btn{margin-left:4px}
/* accounts/investments/debts */
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.finance-card{min-height:225px;border:1px solid var(--line);border-radius:19px;padding:17px;background:linear-gradient(150deg,#fffdfa,#f5f1e9);display:flex;flex-direction:column}.finance-card.card{background:linear-gradient(145deg,#fffaf8,#f7eae6)}.finance-card.gold{background:linear-gradient(145deg,#fffdf8,#f5ead8)}.finance-card.investment{background:linear-gradient(145deg,#fbfcfd,#e9edf0)}.finance-card-top{display:flex;align-items:center;gap:10px}.finance-card-top strong{display:block;font-size:11px}.finance-card-top small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.finance-card-value{margin:auto 0 15px}.finance-card-value small,.finance-card-value span{display:block;color:var(--muted);font-size:8px}.finance-card-value strong{display:block;font:400 25px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:5px 0}.card-actions{display:flex;gap:8px;border-top:1px solid rgba(110,100,82,.12);padding-top:11px}.card-actions button{border:0;background:none;padding:0;color:#62706b;font-size:9px;font-weight:700}.danger-text{color:var(--red)!important}.card-limit{margin-bottom:12px}.card-limit>div:first-child{display:flex;justify-content:space-between;font-size:8px;color:var(--muted)}.limit-track{height:5px;background:#ecddd9;border-radius:99px;margin-top:6px;overflow:hidden}.limit-track i{display:block;height:100%;background:#b9675c;border-radius:99px}.investment-hero{border-radius:26px;padding:30px 34px;background:linear-gradient(135deg,#29383c,#394c50);color:#fff;display:flex;justify-content:space-between;align-items:center}.investment-hero h2{font:400 43px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:7px 0}.investment-hero p{color:#b6c3c5;font-size:11px}.pnl-box{text-align:right;background:rgba(255,255,255,.07);padding:14px 18px;border-radius:14px}.pnl-box small,.pnl-box span{display:block;font-size:9px;color:#b8c5c5}.pnl-box strong{display:block;font:400 20px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:5px 0}.holding-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.holding-card{border:1px solid var(--line);border-radius:18px;padding:16px;background:#fdfcf9}.holding-top{display:flex;align-items:center;gap:9px}.ticker{width:38px;height:38px;border-radius:12px;background:#283c38;color:#fff;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:800}.holding-top strong,.holding-top small{display:block}.holding-top small{font-size:8px;color:var(--muted);margin-top:3px}.holding-value{margin:18px 0}.holding-value small,.holding-value span{display:block;font-size:8px;color:var(--muted)}.holding-value strong{display:block;font:400 23px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:4px 0}.holding-card dl{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 13px}.holding-card dt{font-size:7px;color:#8a9590}.holding-card dd{margin:3px 0 0;font-size:9px;font-weight:700}.market-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.market-strip>div{background:#f4f0e8;border-radius:12px;padding:11px}.market-strip span,.market-strip b{display:block}.market-strip span{font-size:8px;color:var(--muted)}.market-strip b{font-size:11px;margin-top:5px}.debt-list{display:grid;gap:12px}.debt-card{border:1px solid var(--line);border-radius:19px;padding:18px;background:#fffdfa}.debt-head{display:flex;justify-content:space-between;gap:20px}.debt-head h3{font:400 19px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:7px 0 3px}.debt-head p{font-size:9px;color:var(--muted);margin:0}.debt-value{text-align:right}.debt-value small,.debt-value span{display:block;font-size:8px;color:var(--muted)}.debt-value strong{font:400 22px "Bricolage Grotesque",ui-sans-serif,sans-serif;display:block;margin:4px 0}.info-strip{display:flex;align-items:center;gap:7px;background:#edf3ef;color:#537067;border-radius:10px;padding:9px 11px;font-size:9px;margin:12px 0}.schedule-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:14px 0}.installment-chip{border:1px solid var(--line);background:#f8f5ee;border-radius:11px;padding:9px;text-align:left;color:var(--ink)}.installment-chip span,.installment-chip strong{display:block}.installment-chip span{font-size:8px}.installment-chip small{margin-left:4px;color:var(--muted)}.installment-chip strong{font-size:9px;margin-top:5px}.installment-chip i{position:absolute}.installment-chip.paid{opacity:.5;text-decoration:line-through;background:#e6eee9}.debt-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee9df;padding-top:11px;font-size:9px;color:var(--muted)}.debt-foot button{border:0;background:none;font-size:9px;color:#60706a;margin-left:10px}
/* planning/settings */
.budget-list{display:grid;gap:14px}.budget-row-head{display:flex;justify-content:space-between;align-items:center}.budget-row-head strong,.budget-row-head small{display:block}.budget-row-head strong{font-size:11px}.budget-row-head small{font-size:8px;color:var(--muted);margin-top:3px}.budget-row-head>div:last-child{display:flex;align-items:center;gap:6px}.budget-track{height:7px;background:#ece8df;border-radius:99px;overflow:hidden;margin-top:7px}.budget-track i{display:block;height:100%}.budget-track i.good{background:#5c9786}.budget-track i.watch{background:#c49c5e}.budget-track i.attention{background:#c76e61}.inline-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-top:20px;border-top:1px solid var(--line);padding-top:17px}.principles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.principles article{background:#f4f0e8;border-radius:15px;padding:17px}.principles b{color:#bd955f;font:400 20px "Bricolage Grotesque",ui-sans-serif,sans-serif}.principles strong{display:block;margin:15px 0 7px;font-size:11px}.principles p{font-size:9px;line-height:1.6;color:var(--muted);margin:0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-grid .panel:last-child{grid-column:1/-1}.settings-form{display:grid;gap:14px}.settings-form.three{grid-template-columns:repeat(3,1fr)}.settings-action{display:flex;align-items:center;gap:12px;margin-top:15px}.settings-action span{font-size:9px;color:var(--muted)}.prototype-box{display:flex;align-items:center;gap:13px}.prototype-icon{width:46px;height:46px;border-radius:14px;background:#e4ece7;color:var(--green);display:flex;align-items:center;justify-content:center}.prototype-box strong{font-size:11px}.prototype-box p{font-size:9px;line-height:1.5;color:var(--muted);margin:4px 0 0}
/* filters/modal */
.filters{display:flex;gap:8px;margin-bottom:16px}.filters input{width:auto}.filters .search{margin-left:auto;min-width:220px}.segmented{display:inline-flex;background:#eeeae2;border-radius:10px;padding:3px}.segmented button{border:0;background:transparent;border-radius:8px;padding:7px 10px;font-size:9px;color:#74817c}.segmented button.active{background:#fff;color:var(--ink);box-shadow:0 2px 7px rgba(0,0,0,.05);font-weight:800}.modal-backdrop{position:fixed;inset:0;background:rgba(12,24,21,.48);backdrop-filter:blur(6px);z-index:100;display:flex;align-items:center;justify-content:center;padding:25px}.modal{width:min(650px,100%);max-height:92vh;overflow:auto;background:var(--paper);border-radius:24px;padding:25px;box-shadow:0 30px 90px rgba(0,0,0,.25)}.modal.wide{width:min(900px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.modal-head h2{font:400 25px "Bricolage Grotesque",ui-sans-serif,sans-serif;margin:0}.modal-form{display:grid;gap:14px}.type-toggle{display:grid;grid-template-columns:1fr 1fr;background:#efece5;padding:4px;border-radius:12px}.type-toggle button{height:38px;border:0;background:transparent;border-radius:9px;color:#71807a;font-weight:700}.type-toggle button.active{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.05)}.type-toggle button.active.income{color:var(--green)}.type-toggle button.active.expense{color:var(--red)}.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:15px}.installment-editor{display:grid;gap:6px;max-height:300px;overflow:auto;padding-right:3px}.installment-edit{display:grid;grid-template-columns:35px 1fr 1fr 35px;gap:8px;align-items:center;background:#f5f2eb;border-radius:11px;padding:7px}.installment-edit>span{text-align:center;font-size:9px;font-weight:800}.installment-edit input{height:36px;border:1px solid #ddd7cc;border-radius:8px;background:#fff;padding:0 8px;width:100%}.money-input{display:flex}.money-input input{border-radius:8px 0 0 8px}.money-input b{min-width:42px;background:#e9e4da;border:1px solid #ddd7cc;border-left:0;border-radius:0 8px 8px 0;display:flex;align-items:center;justify-content:center;font-size:8px}.paid-check{display:flex;align-items:center;justify-content:center}.schedule-total{display:flex;justify-content:flex-end;align-items:center;gap:10px}.schedule-total span{font-size:9px;color:var(--muted)}.schedule-total strong{font:400 19px "Bricolage Grotesque",ui-sans-serif,sans-serif}
@media(max-width:1180px){.stats-grid.four{grid-template-columns:repeat(2,1fr)}.cards-grid,.holding-grid{grid-template-columns:repeat(2,1fr)}.due-grid{grid-template-columns:repeat(2,1fr)}.market-strip{grid-template-columns:repeat(3,1fr)}.schedule-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-brand{display:none}.auth-panel{min-height:100vh}.auth-mobile-brand{display:flex;margin-bottom:35px}.app-shell{display:block}.sidebar{display:none}.main{padding:0 18px 92px;max-width:none}.topbar{min-height:92px}.topbar h1{font-size:26px}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:10px;right:10px;bottom:10px;z-index:80;background:#172a27;border-radius:18px;padding:6px;box-shadow:0 15px 40px rgba(0,0,0,.24)}.mobile-nav button{border:0;background:transparent;color:#8ca19a;display:flex;flex-direction:column;gap:2px;align-items:center;padding:8px 3px;border-radius:12px;font-size:7px}.mobile-nav button.active{background:#29433d;color:white}.hero-card{padding:28px}.hero-orbit{display:none}.content-two,.content-two.asym,.settings-grid{grid-template-columns:1fr}.settings-grid .panel:last-child{grid-column:auto}.allocation-wrap{grid-template-columns:140px 1fr}.cards-grid,.holding-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.topbar{align-items:flex-end;padding:18px 0}.top-actions{gap:6px}.currency-switch span{display:none}.top-actions>.btn{width:40px;height:40px;padding:0;font-size:0}.top-actions>.btn .icon{font-size:19px!important}.hero-card{min-height:230px}.hero-copy h2{font-size:39px}.hero-meta{gap:6px}.stats-grid.four,.stats-grid.three,.cards-grid,.holding-grid,.due-grid{grid-template-columns:1fr}.panel{padding:17px;border-radius:18px}.flow-chart{gap:8px}.allocation-wrap{grid-template-columns:1fr;text-align:center}.donut{margin:auto}.allocation-list{text-align:left}.filters{flex-wrap:wrap}.filters .search{margin-left:0;width:100%;min-width:0}.form-grid.two,.form-grid.three,.settings-form.three{grid-template-columns:1fr}.inline-form{grid-template-columns:1fr}.principles{grid-template-columns:1fr}.market-strip{grid-template-columns:repeat(2,1fr)}.schedule-grid{grid-template-columns:repeat(2,1fr)}.modal-backdrop{padding:9px;align-items:flex-end}.modal{border-radius:22px 22px 14px 14px;max-height:94vh;padding:19px}.schedule-toolbar{align-items:flex-start;flex-direction:column}.installment-edit{grid-template-columns:28px 1fr 35px}.installment-edit>.money-input{grid-column:2}.investment-hero{padding:24px;align-items:flex-start;gap:16px;flex-direction:column}.pnl-box{text-align:left}.prototype-box{align-items:flex-start;flex-wrap:wrap}.auth-card{padding:15px}.auth-panel{padding:20px}.auth-card h2{font-size:33px}}

/* v2.1 — readability & boutique hierarchy */
:root{
  --radius:24px;
  --shadow:0 20px 55px rgba(24,44,39,.09);
}
html{font-size:16px}body{font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.muted{line-height:1.55}.eyebrow{font-size:11px;letter-spacing:.16em;margin-bottom:8px}

/* shell / navigation */
.app-shell{grid-template-columns:268px 1fr}.sidebar{width:268px;padding:31px 20px 22px}.side-brand{padding:0 10px 31px}.brand-lockup strong,.side-brand strong{font-size:26px}.brand-lockup small,.side-brand small{font-size:12px}.brand-mark.small{width:42px;height:42px;border-radius:13px;font-size:22px}
.sidebar nav{gap:7px}.sidebar button{padding:13px 15px;border-radius:13px;font-size:14px;gap:13px}.sidebar button.active{background:linear-gradient(90deg,#2b4841,#27413b);box-shadow:inset 3px 0 0 #d8b57e,0 8px 20px rgba(0,0,0,.08)}
.user-chip{gap:11px;padding-top:16px}.user-chip .avatar{width:39px;height:39px;border-radius:12px}.user-chip strong{font-size:13px}.user-chip small{font-size:11px;max-width:125px}
.main{padding:0 42px 100px;max-width:1640px}.topbar{min-height:132px;align-items:center}.topbar h1{font-size:39px;line-height:1.04}.topbar-copy-wrap{max-width:760px}.topbar-copy{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.top-actions{gap:12px}.currency-switch{height:48px;border-radius:14px;padding:0 10px 0 15px;font-size:12px;background:rgba(255,255,255,.72);box-shadow:0 5px 18px rgba(24,44,39,.03)}.currency-switch select{font-size:13px}

/* controls */
.btn{min-height:46px;border-radius:13px;padding:12px 18px;font-size:13px;gap:7px}.text-btn{font-size:12px}.icon-btn{width:39px;height:39px;border-radius:11px}.field{gap:8px}.field>span{font-size:12px}.field small{font-size:11px;line-height:1.5}.field input,.field select,.form-grid input,.form-grid select,.settings-form input,.settings-form select,.inline-form input,.filters input,.filters select{height:48px;border-radius:12px;padding:0 14px;font-size:14px}.readonly-field{height:48px;font-size:13px}.form-error{font-size:12px;padding:11px 13px}.form-grid{gap:16px}.modal-actions{margin-top:24px;gap:10px}.input-action button{font-size:11px;padding:0 14px}

/* panels & labels */
.page-grid{gap:22px}.panel{padding:26px;border-radius:24px;box-shadow:0 7px 28px rgba(24,44,39,.035)}.panel-head{margin-bottom:22px}.panel-head h3{font-size:22px}.panel-note{font-size:12px;line-height:1.65;margin-top:19px}.empty{padding:42px;font-size:14px}.pill{padding:6px 10px;font-size:10.5px}.stat-card{padding:22px 22px 20px;min-height:142px;border-radius:20px}.stat-label{font-size:11px;letter-spacing:.035em}.stat-icon{width:34px;height:34px;border-radius:11px}.stat-card>strong{font-size:29px;line-height:1.1;margin:17px 0 7px}.stat-card>small{font-size:11px}.stats-grid{gap:14px}.content-two{gap:22px}

/* overview */
.hero-card{min-height:292px;border-radius:30px;padding:42px 46px}.hero-copy h2{font-size:clamp(46px,4.5vw,66px);line-height:1}.hero-copy p{font-size:14px;margin-bottom:32px}.hero-meta{gap:10px}.hero-meta span{padding:10px 14px;border-radius:11px;font-size:11.5px}.hero-orbit{width:224px;height:224px}.orbit-main{width:148px;height:148px}.orbit-main small{font-size:10px}.orbit-main strong{font-size:22px}.orbit-main span{font-size:9px}.flow-chart{height:185px}.flow-col>span{font-size:10px}.legend{font-size:11px}.allocation-list>div{padding:10px 0}.allocation-list span,.allocation-list b{font-size:12px}.donut{width:168px;height:168px}.donut>div small{font-size:9px}.donut>div strong{font-size:14px}.account-mini{padding:13px 0;gap:11px}.account-mini strong{font-size:13px}.account-mini small{font-size:10.5px}.account-mini>div:last-child b{font-size:13px}.due-card{padding:14px}.due-card strong{font-size:12.5px}.due-card small{font-size:10px}.health-row strong{font-size:12px}.health-row span{font-size:10px}

/* accounts / cards */
.cards-grid{gap:16px}.finance-card{padding:21px;border-radius:21px;transition:transform .18s ease,box-shadow .18s ease}.finance-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(24,44,39,.075)}.finance-card-top{gap:11px}.finance-card-top strong{font-size:14px}.finance-card-top small{font-size:11px}.account-icon{width:42px;height:42px;border-radius:13px}.finance-card-value{margin:24px 0}.finance-card-value small,.finance-card-value span{font-size:10.5px}.finance-card-value strong{font-size:29px}.card-limit span,.card-limit small{font-size:10px}.card-actions{padding-top:14px}.card-actions button{font-size:11.5px;padding:7px 0}

/* transactions table */
.table-wrap{border-radius:16px}.data-table{min-width:760px}.data-table th{font-size:10px;padding:13px 12px}.data-table td{font-size:12.5px;padding:15px 12px}.tx-title strong{font-size:13px}.tx-title small{font-size:10.5px}.account-tag{font-size:10.5px}.actions button{width:34px;height:34px}
.filters{gap:10px;margin-bottom:19px}.filters .search{min-width:260px}.segmented{border-radius:11px;padding:4px}.segmented button{padding:8px 12px;font-size:11px;border-radius:8px}

/* investments */
.investment-hero{padding:34px 38px;border-radius:25px}.investment-hero h2{font-size:48px}.investment-hero p{font-size:12.5px}.pnl-box{padding:17px 20px;border-radius:15px}.pnl-box small,.pnl-box span{font-size:10px}.pnl-box strong{font-size:24px}.holding-grid{gap:16px}.holding-card{padding:20px;border-radius:19px}.ticker{width:43px;height:43px;border-radius:13px;font-size:10px}.holding-top strong{font-size:13.5px}.holding-top small{font-size:10.5px}.holding-value small,.holding-value span{font-size:10px}.holding-value strong{font-size:27px}.holding-card dt{font-size:9px}.holding-card dd{font-size:11px}.market-strip{gap:10px}.market-strip>div{padding:14px;border-radius:13px}.market-strip span{font-size:10px}.market-strip b{font-size:13px;margin-top:6px}

/* debt */
.debt-list{gap:15px}.debt-card{padding:22px;border-radius:21px}.debt-head h3{font-size:22px}.debt-head p{font-size:11px}.debt-value small,.debt-value span{font-size:10px}.debt-value strong{font-size:26px}.info-strip{padding:11px 13px;font-size:11px;border-radius:11px}.schedule-grid{gap:9px;margin:17px 0}.installment-chip{padding:11px;border-radius:12px}.installment-chip span{font-size:10px}.installment-chip strong{font-size:11.5px;margin-top:6px}.debt-foot{padding-top:13px;font-size:10.5px}.debt-foot button{font-size:10.5px}

/* planning / settings */
.budget-list{gap:17px}.budget-row-head strong{font-size:13px}.budget-row-head small{font-size:10px}.budget-track{height:8px;margin-top:9px}.principles{gap:14px}.principles article{padding:20px;border-radius:16px}.principles b{font-size:24px}.principles strong{font-size:13px;margin:16px 0 8px}.principles p{font-size:11px;line-height:1.65}.settings-grid{gap:22px}.settings-form{gap:16px}.settings-action span{font-size:11px}.prototype-icon{width:52px;height:52px}.prototype-box strong{font-size:13px}.prototype-box p{font-size:11px;line-height:1.6}

/* auth */
.auth-card{width:min(470px,100%);padding:38px}.auth-card h2{font-size:41px}.auth-card>.muted{font-size:14px}.auth-note{font-size:12px}.auth-switch{font-size:14px}.auth-preview{padding:27px 29px}.preview-top,.preview-foot{font-size:13px}.auth-preview>strong{font-size:46px}.brand-lockup small{font-size:12px}

/* modals */
.modal{width:min(690px,100%);border-radius:26px;padding:29px}.modal.wide{width:min(960px,100%)}.modal-head{margin-bottom:24px}.modal-head h2{font-size:29px}.modal-form{gap:16px}.type-toggle{border-radius:13px;padding:5px}.type-toggle button{height:43px;font-size:12px}.installment-edit{padding:9px;gap:9px}.installment-edit>span{font-size:10.5px}.installment-edit input{height:40px;font-size:12px}.money-input b{font-size:10px}.schedule-total span{font-size:11px}.schedule-total strong{font-size:22px}

@media(max-width:1180px){
  .app-shell{grid-template-columns:248px 1fr}.sidebar{width:248px}.main{padding-left:30px;padding-right:30px}.topbar h1{font-size:35px}.topbar-copy{font-size:13px}
}
@media(max-width:900px){
  .main{padding:0 20px 102px}.topbar{min-height:116px}.topbar h1{font-size:31px}.topbar-copy{font-size:12.5px;max-width:560px}.mobile-nav{left:12px;right:12px;bottom:12px;padding:7px;border-radius:20px}.mobile-nav button{font-size:9px;padding:9px 4px;gap:4px}.mobile-nav .icon{font-size:19px!important}.hero-card{padding:32px}.cards-grid,.holding-grid{gap:14px}
}
@media(max-width:640px){
  body{font-size:14px}.main{padding-left:15px;padding-right:15px}.topbar{min-height:126px;align-items:flex-end;gap:12px;padding:20px 0}.topbar h1{font-size:30px}.topbar-copy-wrap{max-width:calc(100% - 52px)}.topbar-subrow{gap:8px;align-items:flex-start}.topbar-accent{flex-basis:30px;width:30px;height:7px;margin-top:7px}.topbar-copy{font-size:12px;line-height:1.45}.eyebrow{font-size:9.5px}.currency-switch{width:44px;height:44px;padding:0;justify-content:center}.currency-switch select{width:38px;font-size:0}.currency-switch select option{font-size:13px}.top-actions>.btn{width:44px;height:44px}.hero-card{min-height:250px;padding:28px 24px}.hero-copy h2{font-size:42px}.hero-copy p{font-size:12px}.hero-meta span{font-size:10.5px;padding:9px 11px}.panel{padding:20px;border-radius:20px}.panel-head h3{font-size:20px}.stat-card{min-height:132px;padding:20px}.stat-card>strong{font-size:27px}.finance-card{padding:19px}.finance-card-value strong{font-size:27px}.data-table td{font-size:12px}.mobile-nav button{font-size:8.5px}.modal{padding:22px}.modal-head h2{font-size:26px}.auth-card{padding:18px}.auth-card h2{font-size:36px}.auth-panel{padding:22px}
}


/* v2.2 — transaction-first UX, boutique controls, custom feedback */
:root{
  --display:"Bricolage Grotesque",ui-sans-serif,sans-serif;
  --body:"Manrope",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --focus:rgba(31,111,95,.14);
}
body,button,input,select,textarea{font-family:var(--body)}
.topbar h1,.panel-head h3,.hero-copy h2,.stat-card>strong,.finance-card-value strong,.investment-hero h2,.debt-head h3,.modal-head h2,.auth-card h2,.auth-copy h1,.auth-preview>strong,.schedule-total strong,.brand-lockup strong,.side-brand strong,.brand-mark{font-family:var(--display)}

/* premium native controls */
.field input,.field select,.form-grid input,.form-grid select,.settings-form input,.settings-form select,.inline-form input,.filters input,.filters select{
  min-height:50px;border-radius:14px;border-color:#dcd6ca;background:#fffdfa;font-size:13.5px;padding-left:15px;padding-right:15px;
}
.field select,.form-grid select,.settings-form select,.filters select{
  appearance:none;-webkit-appearance:none;padding-right:42px;
  background-image:linear-gradient(45deg,transparent 50%,#71807a 50%),linear-gradient(135deg,#71807a 50%,transparent 50%);
  background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;
}
.field input:hover,.field select:hover,.form-grid input:hover,.form-grid select:hover{border-color:#c9c0b2}
.field input:focus,.field select:focus,.settings-form input:focus,.settings-form select:focus{border-color:#5f9587;box-shadow:0 0 0 4px var(--focus);background:#fff}
.field>span{font-size:12px;font-weight:800;letter-spacing:-.01em}.field small{font-size:10.5px}

/* transaction modal */
.modal-backdrop{overflow-y:auto;align-items:flex-start;padding-top:max(32px,5vh);padding-bottom:32px}
.modal{overflow:visible;margin:auto}
.movement-form{gap:18px}.movement-intro{display:grid;grid-template-columns:1fr 240px;gap:20px;align-items:end;padding:2px 2px 0}
.movement-intro p{margin:4px 0 0;color:var(--muted);font-size:11.5px;line-height:1.6;max-width:390px}
.type-toggle.premium{background:#f0ece3;padding:5px;border:1px solid #e6e0d5;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.type-toggle.premium button{height:48px;border-radius:11px;font-size:12px;gap:7px;display:flex;align-items:center;justify-content:center}
.type-toggle.premium button i{width:21px;height:21px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-style:normal;background:rgba(0,0,0,.035)}
.type-toggle.premium button.active.income{background:#fff;color:#196a57;box-shadow:0 5px 14px rgba(31,111,95,.08)}
.type-toggle.premium button.active.expense{background:#fff;color:#a64f45;box-shadow:0 5px 14px rgba(182,92,80,.08)}
.movement-amount-card{border:1px solid #dfd8cc;background:linear-gradient(135deg,#fbfaf6,#f4f0e8);padding:20px 22px;border-radius:20px;position:relative;overflow:hidden}
.movement-amount-card:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-38px;top:-48px;opacity:.13}
.movement-amount-card.income:after{background:var(--green)}.movement-amount-card.expense:after{background:var(--red)}
.movement-amount-card>span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:800;color:#77847f;margin-bottom:5px}
.movement-amount-card>small{display:block;color:#89928e;font-size:10.5px;margin-top:7px}
.money-entry{height:54px;display:grid;grid-template-columns:1fr auto;align-items:center;border-bottom:1px solid #d8d1c5;position:relative;z-index:1}
.money-entry input{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;height:54px!important;font-family:var(--display)!important;font-size:32px!important;font-weight:600;letter-spacing:-.035em;color:var(--ink)}
.money-entry input::placeholder{color:#b9b4aa}.money-entry span{font-size:12px;font-weight:800;color:#62716c;background:#ebe6dc;border-radius:9px;padding:7px 10px}
.money-entry.focused{border-color:#609587}.movement-details{padding-top:2px}.movement-actions{border-top:1px solid var(--line);padding-top:18px;margin-top:2px}

/* custom dropdown */
.boutique-select{position:relative;width:100%;z-index:4}.boutique-select.open{z-index:40}
.boutique-select-trigger{width:100%;height:50px;border:1px solid #dcd6ca;background:#fffdfa;border-radius:14px;padding:0 13px 0 15px;color:var(--ink);display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:13px;transition:.15s}
.boutique-select-trigger:hover{border-color:#c9c0b2}.boutique-select.open .boutique-select-trigger{border-color:#5f9587;box-shadow:0 0 0 4px var(--focus);background:#fff}
.boutique-select-trigger i{font-style:normal;color:#76847f;font-size:17px;transition:.15s}.boutique-select.open .boutique-select-trigger i{transform:rotate(180deg)}
.boutique-select-menu{position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:260px;overflow:auto;padding:7px;background:#fffefa;border:1px solid #ddd6ca;border-radius:15px;box-shadow:0 20px 55px rgba(24,44,39,.17)}
.boutique-select-menu button{width:100%;border:0;background:transparent;border-radius:10px;min-height:42px;padding:8px 10px;display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left;color:#42514c;font-size:12px}
.boutique-select-menu button:hover,.boutique-select-menu button.selected{background:#f1f5f2;color:#1f6f5f}.boutique-select-menu button small{grid-column:1;display:block;color:#98a09d;font-size:9px;margin-top:2px}.boutique-select-menu button b{grid-column:2;grid-row:1/3;color:var(--green)}

/* custom feedback */
.btn.danger{background:#a95248;color:#fff;box-shadow:0 7px 18px rgba(169,82,72,.18)}.btn.danger-soft{background:#f6e7e3;color:#a64f45;border:1px solid #edd4cf}
.form-notice{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:13px;font-size:11.5px;font-weight:650}.form-notice b{width:24px;height:24px;border-radius:8px;display:flex;align-items:center;justify-content:center}.form-notice.danger{background:#f9e9e5;color:#93463d;border:1px solid #f0d3cd}.form-notice.danger b{background:#efd0ca}
.toast{position:fixed;right:26px;bottom:26px;z-index:220;width:min(380px,calc(100vw - 32px));padding:15px 17px;border-radius:17px;background:#1c332e;color:#f7fbf8;display:flex;align-items:flex-start;gap:12px;box-shadow:0 22px 60px rgba(12,30,25,.25);animation:toastIn .24s ease both}
.toast.danger{background:#713d37}.toast-icon{width:30px;height:30px;flex:0 0 30px;border-radius:10px;background:rgba(255,255,255,.11);display:flex;align-items:center;justify-content:center;font-weight:900}.toast strong{display:block;font-size:12px}.toast p{margin:2px 0 0;font-size:11px;color:rgba(255,255,255,.78);line-height:1.5}
@keyframes toastIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.confirm-backdrop{position:fixed;inset:0;z-index:210;background:rgba(12,24,21,.52);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:20px}
.confirm-card{width:min(420px,100%);background:#fffdf8;border:1px solid #e4ddd2;border-radius:24px;padding:27px;box-shadow:0 30px 90px rgba(0,0,0,.24);text-align:center;animation:confirmIn .2s ease both}
.confirm-symbol{width:48px;height:48px;border-radius:15px;margin:0 auto 16px;background:#e3efe9;color:#236d5c;display:flex;align-items:center;justify-content:center;font:700 20px var(--display)}.confirm-symbol.danger{background:#f3dfda;color:#a64f45}
.confirm-card h3{font:600 24px/1.15 var(--display);margin:0 0 9px}.confirm-card p{margin:0 auto 22px;color:var(--muted);font-size:12px;line-height:1.65;max-width:340px}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
@keyframes confirmIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}

/* settings demo controls */
.prototype-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.prototype-box{gap:18px}

@media(max-width:640px){
  .movement-intro{grid-template-columns:1fr;gap:14px}.movement-intro .type-toggle{width:100%}.movement-amount-card{padding:18px}.money-entry input{font-size:29px!important}.modal-backdrop{padding:12px;align-items:flex-end}.modal{overflow:visible;margin:auto 0 0;width:100%;border-radius:24px 24px 13px 13px}.boutique-select-menu{max-height:220px}.toast{left:16px;right:16px;bottom:88px;width:auto}.prototype-actions{width:100%;justify-content:stretch}.prototype-actions .btn{flex:1}.confirm-card{padding:23px}.confirm-actions{grid-template-columns:1fr}
}

/* v2.2 polish */
.form-error{display:flex;align-items:center;gap:9px;padding:12px 14px;border-radius:13px;background:#f9e9e5;color:#93463d;border:1px solid #f0d3cd;font-size:11.5px;font-weight:650}
.inline-form .boutique-select,.inline-form .money-entry{min-width:0}.inline-form .money-entry{height:46px;border:1px solid #dcd6ca;border-radius:12px;padding:0 10px;background:#fffdfa}.inline-form .money-entry input{font-family:var(--body)!important;font-size:13px!important;font-weight:650;letter-spacing:0}.inline-form .money-entry span{font-size:9px;padding:5px 7px}
@media(max-width:640px){.top-actions>.btn{width:auto;min-width:44px;padding:0 13px;font-size:0}.top-actions>.btn .icon{font-size:19px!important}}

/* v2.3 — account ledger cohesion */
.balance-impact{margin-top:7px!important;padding-top:7px;border-top:1px dashed rgba(108,101,88,.18);font-size:10px!important;font-weight:700}.balance-impact.positive-text{color:var(--green)!important}.balance-impact.negative-text{color:var(--red)!important}
.finance-card-value>small:first-child{letter-spacing:.01em}.finance-card.bank .finance-card-value strong,.finance-card.cash .finance-card-value strong{font-size:28px}
@media(max-width:700px){.balance-impact{font-size:10.5px!important}.finance-card.bank .finance-card-value strong,.finance-card.cash .finance-card-value strong{font-size:26px}}

/* v2.4 — shared accounting period navigation */
.month-navigator{
  width:min(100%,520px);
  margin:0 auto 2px;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 52px;
  align-items:stretch;
  gap:10px;
  padding:8px;
  border:1px solid rgba(28,72,62,.12);
  background:rgba(255,252,246,.84);
  box-shadow:0 12px 34px rgba(28,56,49,.07);
  border-radius:20px;
  backdrop-filter:blur(14px);
}
.month-arrow,.month-center{
  border:0;
  cursor:pointer;
  color:var(--ink, #18362f);
  background:transparent;
}
.month-arrow{
  min-height:48px;
  border-radius:15px;
  font-size:32px;
  line-height:1;
  display:grid;
  place-items:center;
  transition:.2s ease;
}
.month-arrow:hover{background:rgba(31,111,95,.09);transform:translateY(-1px)}
.month-center{
  min-height:48px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  padding:6px 16px;
  transition:.2s ease;
}
.month-center:hover{background:rgba(195,154,97,.10)}
.month-center span{
  font-family:'Bricolage Grotesque','Manrope',sans-serif;
  font-size:17px;
  line-height:1.2;
  font-weight:750;
  letter-spacing:-.025em;
  text-transform:capitalize;
}
.month-center small{margin-top:4px;font-size:11px;font-weight:700;color:var(--muted,#72827c);letter-spacing:.02em}
.month-navigator.compact{width:390px;margin:0;padding:6px;grid-template-columns:44px minmax(0,1fr) 44px}

/* paid debt entries should read as a real outgoing ledger line */
.tx-title i.expense + div small{line-height:1.35}
.installment-chip.paid{position:relative;overflow:hidden}
.installment-chip.paid:after{content:'ÖDENDİ';position:absolute;right:7px;top:6px;font-size:8px;letter-spacing:.08em;font-weight:800;opacity:.55}

@media (max-width:720px){
  .month-navigator{width:100%;grid-template-columns:48px minmax(0,1fr) 48px;border-radius:18px}
  .month-center span{font-size:16px}
  .month-arrow{min-height:46px}
}
.debt-accounting-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px 18px;
  border:1px solid rgba(31,111,95,.14);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(31,111,95,.075),rgba(255,252,246,.9));
  color:var(--ink,#18362f);
}
.debt-accounting-note>.icon{margin-top:2px;color:#1f6f5f}
.debt-accounting-note strong{display:block;font-size:14px;line-height:1.35}
.debt-accounting-note p{margin:4px 0 0;color:var(--muted,#72827c);font-size:12px;line-height:1.55}

/* v2.5 — planned debt ledger + account transfers */
.movement-toolbar{gap:12px;flex-wrap:wrap}.movement-tools{display:flex;align-items:center;gap:10px;margin-left:auto}.movement-tools .search{min-width:220px}
.planned-row{background:linear-gradient(90deg,rgba(195,154,97,.055),rgba(255,255,255,0))}.planned-row td{border-color:rgba(195,154,97,.14)}
.amount.planned strong{color:#8b6a36!important}.tx-title strong>.pill{margin-left:8px;vertical-align:middle}
.tx-title i.transfer{background:rgba(58,92,124,.14);box-shadow:inset 0 0 0 1px rgba(58,92,124,.18)}
.amount.transfer strong{color:#385b72}.transfer-amount{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.transfer-amount small{font-size:11px;color:var(--green);font-weight:750}
.transfer-account-tag{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.transfer-account-tag span{padding:5px 8px;border-radius:9px;background:rgba(31,111,95,.07);color:var(--ink);font-weight:700}
.accounts-actions-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid rgba(31,111,95,.12);border-radius:20px;background:linear-gradient(135deg,rgba(31,111,95,.075),rgba(255,252,246,.94));box-shadow:0 10px 28px rgba(28,56,49,.055)}
.accounts-actions-bar>div{display:flex;flex-direction:column;gap:3px}.accounts-actions-bar strong{font-family:'Bricolage Grotesque','Manrope',sans-serif;font-size:15px;letter-spacing:-.01em}.accounts-actions-bar span{font-size:12px;color:var(--muted);line-height:1.45}
.transfer-route{display:grid;grid-template-columns:1fr 44px 1fr;align-items:center;gap:10px;padding:14px;border-radius:18px;background:linear-gradient(135deg,rgba(31,111,95,.07),rgba(195,154,97,.08));border:1px solid rgba(31,111,95,.10);margin-bottom:18px}.transfer-node{min-width:0;padding:11px 13px;border-radius:14px;background:rgba(255,255,255,.68);border:1px solid rgba(28,72,62,.08)}.transfer-node small,.transfer-node span{display:block}.transfer-node small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.transfer-node strong{display:block;margin:4px 0 2px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.transfer-node span{font-size:11px;color:var(--muted)}.transfer-arrow{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:#fff;font-size:19px;box-shadow:0 7px 18px rgba(24,54,47,.16)}
@media(max-width:720px){.movement-tools{width:100%;margin-left:0}.movement-tools .search{flex:1;min-width:0}.movement-tools .btn{white-space:nowrap}.accounts-actions-bar{align-items:flex-start;flex-direction:column}.accounts-actions-bar .btn{width:100%}.transfer-route{grid-template-columns:1fr 34px 1fr;padding:10px;gap:6px}.transfer-arrow{width:32px;height:32px}.transfer-node{padding:9px}.transfer-node strong{font-size:13px}.transfer-node span{font-size:10px}}

/* v2.6 — transfer balance visibility + debt schedule continuity */
.transfer-node .transfer-balance{display:block;margin-top:8px;padding-top:8px;border-top:1px dashed rgba(28,72,62,.12);font-style:normal;font-size:11px;font-weight:800;color:var(--green,#1f6f5f)}
.transfer-balance-hint{grid-column:1/-1;display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 13px;border-radius:13px;background:rgba(31,111,95,.06);border:1px solid rgba(31,111,95,.12);color:var(--muted)}
.transfer-balance-hint span{font-size:11px;font-weight:750}.transfer-balance-hint strong{font-size:13px;color:var(--ink);margin-left:auto}.transfer-balance-hint small{font-size:10.5px;color:var(--muted);padding-left:10px;border-left:1px solid rgba(28,72,62,.12)}
.transfer-balance-hint.danger{background:rgba(183,75,63,.07);border-color:rgba(183,75,63,.18)}.transfer-balance-hint.danger strong,.transfer-balance-hint.danger small{color:var(--red,#b74b3f)}
.planned-row .tx-title strong .pill{margin-left:8px}.planned-row{background:linear-gradient(90deg,rgba(195,154,97,.045),transparent)}
@media(max-width:720px){.transfer-node .transfer-balance{font-size:10px}.transfer-balance-hint{align-items:flex-start;flex-wrap:wrap}.transfer-balance-hint strong{margin-left:auto}.transfer-balance-hint small{width:100%;padding-left:0;border-left:0}}

/* v2.7 — luminous boutique surfaces */
:root{
  --mint-glow:#8fe0c1;
  --mint-glow-soft:rgba(95,196,158,.22);
  --coral-glow:#ffaaa0;
  --gold-glow:#e3bb7c;
}

/* Dark hero surfaces get their own semantic contrast instead of reusing light-card colors. */
.investment-hero{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 22px 56px rgba(24,44,39,.14),inset 0 1px 0 rgba(255,255,255,.055);
}
.investment-hero:before{
  content:"";
  position:absolute;
  z-index:-1;
  width:330px;
  height:330px;
  border-radius:50%;
  right:-105px;
  top:-180px;
  background:radial-gradient(circle,rgba(117,197,172,.23) 0,rgba(117,197,172,.07) 42%,transparent 70%);
  filter:blur(4px);
  pointer-events:none;
}
.investment-hero:after{
  content:"";
  position:absolute;
  z-index:-1;
  width:290px;
  height:120px;
  left:25%;
  bottom:-88px;
  transform:rotate(-8deg);
  background:radial-gradient(ellipse,rgba(221,181,119,.16),transparent 69%);
  filter:blur(9px);
  pointer-events:none;
}
.pnl-box{
  min-width:170px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 10px 30px rgba(0,0,0,.10);
  backdrop-filter:blur(12px);
  transition:background .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.pnl-box.pnl-positive{
  background:linear-gradient(145deg,rgba(101,207,168,.16),rgba(255,255,255,.055));
  border-color:rgba(143,224,193,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 34px rgba(54,154,120,.10);
}
.pnl-box.pnl-negative{
  background:linear-gradient(145deg,rgba(218,111,98,.16),rgba(255,255,255,.05));
  border-color:rgba(255,170,160,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 12px 34px rgba(182,92,80,.10);
}
.investment-hero .pnl-box strong.positive{color:var(--mint-glow)!important;text-shadow:0 0 22px rgba(143,224,193,.14)}
.investment-hero .pnl-box strong.negative{color:var(--coral-glow)!important;text-shadow:0 0 22px rgba(255,170,160,.12)}
.investment-hero .pnl-box small,.investment-hero .pnl-box span{color:rgba(236,244,241,.72)}

/* Financial picture: static glow layers + a restrained light sweep. */
.hero-card{
  isolation:isolate;
  box-shadow:0 28px 66px rgba(20,48,41,.17),0 8px 22px rgba(20,48,41,.08),inset 0 1px 0 rgba(255,255,255,.055);
}
.hero-card:after{
  content:"";
  position:absolute;
  z-index:0;
  inset:-55% -30%;
  background:
    radial-gradient(circle at 72% 32%,rgba(119,210,181,.18),transparent 23%),
    radial-gradient(circle at 31% 72%,rgba(225,183,119,.13),transparent 24%),
    linear-gradient(104deg,transparent 40%,rgba(255,255,255,.055) 48%,rgba(255,255,255,.12) 50%,rgba(255,255,255,.04) 52%,transparent 60%);
  transform:translateX(-20%) rotate(4deg);
  pointer-events:none;
  animation:payfitHeroShine 9s ease-in-out infinite;
}
.hero-card .hero-copy,.hero-card .hero-orbit{z-index:2}
.hero-orbit{box-shadow:0 0 52px rgba(106,190,164,.08),inset 0 0 32px rgba(255,255,255,.018)}
.orbit-main{box-shadow:0 22px 56px rgba(0,0,0,.22),0 0 38px rgba(224,185,126,.08)}

/* Only a few editorial cards glow; the rest remain calm so hierarchy stays premium. */
.boutique-glow{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  border-color:rgba(31,111,95,.11);
  box-shadow:0 14px 38px rgba(24,60,50,.06),inset 0 1px 0 rgba(255,255,255,.75);
}
.boutique-glow:before{
  content:"";
  position:absolute;
  z-index:-1;
  width:190px;
  height:190px;
  border-radius:50%;
  right:-100px;
  top:-105px;
  background:radial-gradient(circle,rgba(89,174,147,.13),transparent 68%);
  pointer-events:none;
}
.boutique-glow:after{
  content:"";
  position:absolute;
  z-index:0;
  width:120px;
  height:240%;
  top:-70%;
  left:-180px;
  transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.46),transparent);
  opacity:0;
  pointer-events:none;
  transition:left .75s cubic-bezier(.2,.7,.2,1),opacity .25s ease;
}
.boutique-glow:hover:after{left:calc(100% + 80px);opacity:.38}
.boutique-glow>*{position:relative;z-index:1}
.allocation-glow{background:linear-gradient(145deg,#fbfaf6 54%,rgba(222,239,231,.72))}
.health-glow{background:linear-gradient(145deg,#fbfaf6 56%,rgba(241,230,210,.63))}

/* Gold and investment account cards receive a quieter metallic glint on hover. */
.finance-card.gold,.finance-card.investment,.holding-card{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.finance-card.gold:before,.finance-card.investment:before,.holding-card:before{
  content:"";
  position:absolute;
  z-index:-1;
  width:145px;
  height:145px;
  border-radius:50%;
  right:-92px;
  top:-92px;
  opacity:.62;
  transition:transform .32s ease,opacity .32s ease;
}
.finance-card.gold:before{background:radial-gradient(circle,rgba(220,177,108,.25),transparent 67%)}
.finance-card.investment:before,.holding-card:before{background:radial-gradient(circle,rgba(92,139,130,.17),transparent 68%)}
.finance-card.gold:hover:before,.finance-card.investment:hover:before,.holding-card:hover:before{transform:scale(1.28);opacity:.95}
.holding-card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.holding-card:hover{transform:translateY(-2px);border-color:rgba(67,128,111,.18);box-shadow:0 15px 34px rgba(24,54,47,.07)}

@keyframes payfitHeroShine{
  0%,18%{transform:translateX(-31%) rotate(4deg);opacity:.72}
  48%,62%{transform:translateX(15%) rotate(4deg);opacity:1}
  100%{transform:translateX(35%) rotate(4deg);opacity:.72}
}

@media(prefers-reduced-motion:reduce){
  .hero-card:after{animation:none;transform:none}
  .boutique-glow:after{display:none}
  .finance-card.gold:before,.finance-card.investment:before,.holding-card:before{transition:none}
}

@media(max-width:640px){
  .pnl-box{min-width:0;width:100%}
  .hero-card:after{opacity:.72}
  .boutique-glow:hover:after{opacity:0}
}

/* v2.8 — contextual guidance + planning spacing */
.page-planning .topbar{min-height:112px}
.planning-grid{margin-top:-6px}
.planning-grid>.month-navigator{margin-top:0}

.guide-tip{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:start;
  gap:14px;
  padding:17px 18px;
  border:1px solid rgba(31,111,95,.15);
  border-radius:19px;
  background:linear-gradient(135deg,rgba(236,246,241,.94),rgba(255,252,246,.98));
  box-shadow:0 10px 28px rgba(25,62,52,.055),inset 0 1px 0 rgba(255,255,255,.8);
  overflow:hidden;
}
.guide-tip:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-70px;top:-90px;background:radial-gradient(circle,rgba(101,188,158,.14),transparent 68%);pointer-events:none}
.guide-tip.gold{border-color:rgba(189,149,95,.18);background:linear-gradient(135deg,rgba(248,241,228,.95),rgba(255,252,246,.98))}
.guide-symbol{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#1f6f5f;color:#fff;box-shadow:0 8px 20px rgba(31,111,95,.18)}
.guide-body{min-width:0;padding-top:1px}.guide-kicker{display:block;margin-bottom:3px;font-size:9px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:#6d8a81}.guide-body>strong{display:block;font-family:var(--display);font-size:16px;letter-spacing:-.015em;color:var(--ink)}
.guide-body p{margin:5px 0 0;color:var(--muted);font-size:11.5px;line-height:1.6;max-width:900px}.guide-body ul{margin:9px 0 0;padding-left:17px;display:grid;gap:4px;color:#60716b;font-size:10.8px;line-height:1.55}.guide-body li::marker{color:var(--green)}
.guide-dismiss{position:relative;z-index:2;min-height:36px;border:1px solid rgba(31,111,95,.16);border-radius:11px;padding:0 13px;background:rgba(255,255,255,.65);color:#245f53;font-size:10.5px;font-weight:850;white-space:nowrap;transition:.16s}.guide-dismiss:hover{background:#fff;transform:translateY(-1px);box-shadow:0 7px 16px rgba(31,111,95,.08)}
.modal .guide-tip{margin:-3px 0 18px;grid-template-columns:38px minmax(0,1fr) auto;padding:14px 15px;border-radius:16px}.modal .guide-symbol{width:38px;height:38px;border-radius:12px}.modal .guide-body>strong{font-size:14px}.modal .guide-body p{font-size:10.8px}.modal .guide-body ul{font-size:10.2px}
.help-reset-box .prototype-icon{font-family:var(--display);font-size:22px;font-weight:700;background:linear-gradient(145deg,#1f6f5f,#31574e);color:#fff}

@media(max-width:900px){.page-planning .topbar{min-height:104px}.planning-grid{margin-top:-4px}}
@media(max-width:640px){
  .page-planning .topbar{min-height:116px}
  .planning-grid{margin-top:-8px}
  .guide-tip,.modal .guide-tip{grid-template-columns:38px minmax(0,1fr);gap:11px;padding:14px}
  .guide-symbol,.modal .guide-symbol{width:38px;height:38px}
  .guide-dismiss{grid-column:1/-1;width:100%;min-height:40px;margin-top:2px}
  .guide-body>strong{font-size:14px}.guide-body p{font-size:11px}.guide-body ul{font-size:10.5px}
}
.settings-shortcut{display:none}
@media(max-width:900px){
  .mobile-nav{grid-template-columns:repeat(6,1fr)}
  .settings-shortcut{display:inline-flex;width:48px;height:48px;background:rgba(255,255,255,.72);border:1px solid var(--line);color:var(--ink)}
}
@media(max-width:640px){.mobile-nav button{font-size:7.8px;padding-left:2px;padding-right:2px}}

/* v2.9 — financial position vs monthly plan, stronger readability */
body{font-size:15px}
.sidebar button{font-size:13px;font-weight:650}
.topbar-copy{font-size:13.5px;line-height:1.6;max-width:700px}
.panel-head h3{font-size:23px}
.panel-note{font-size:12.5px}
.stat-label{font-size:12px;line-height:1.35}
.stat-card>small{font-size:11.5px;line-height:1.45}
.stat-card>strong{font-size:30px}
.pill{font-size:11px;padding:6px 10px}
.account-mini strong{font-size:13.5px}.account-mini small{font-size:11px}.account-mini>div:last-child b{font-size:13.5px}
.data-table th{font-size:11px}.data-table td{font-size:13.5px}.tx-title strong{font-size:13.5px}.tx-title small{font-size:11px}

/* Month cards get distinct but coordinated surfaces. */
.month-summary-grid .stat-card:nth-child(1){background:linear-gradient(145deg,#fbfaf6 28%,#e6f2ec);border-color:#d6e6df}
.month-summary-grid .stat-card:nth-child(2){background:linear-gradient(145deg,#fbfaf6 28%,#f7e7e2);border-color:#ead8d2}
.month-summary-grid .stat-card:nth-child(3){background:linear-gradient(145deg,#fbfaf6 28%,#f4ead7);border-color:#e8dcc8}
.month-summary-grid .stat-card:nth-child(4){background:linear-gradient(145deg,#18322d,#294b43);border-color:#294b43;color:#fff;box-shadow:0 16px 34px rgba(26,64,54,.12)}
.month-summary-grid .stat-card:nth-child(4) .stat-label,.month-summary-grid .stat-card:nth-child(4)>small{color:#b9cbc5}
.month-summary-grid .stat-card:nth-child(4) .stat-icon{background:rgba(255,255,255,.09);color:#f3e6ce}

/* The global snapshot should read as wealth, not as a selected-month card. */
.hero-copy p{max-width:720px;line-height:1.55}
.hero-meta span{font-size:12px;padding:10px 14px}
.hero-orbit .orbit-main small{max-width:105px;text-align:center;line-height:1.3}
.month-debt-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.month-debt-grid .due-card{min-height:84px;background:linear-gradient(145deg,#fffdfa,#f7f1e6);border-color:#e4ddcf;position:relative}
.month-debt-grid .due-card.is-paid{background:linear-gradient(145deg,#fbfdfb,#e9f2ed);border-color:#d9e8e0}
.month-debt-grid .due-card .grow small{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px}
.month-debt-grid .due-card .pill{font-size:9px;padding:4px 7px}
.month-debt-grid .due-card>b{font-size:12.5px}
.due-card strong{font-size:13px}.due-card small{font-size:10.5px}

/* Debt page readability: schedules are a primary financial workflow. */
.debt-card{padding:24px;border-radius:22px;background:linear-gradient(150deg,#fffdfa,#faf6ee);box-shadow:0 7px 24px rgba(28,55,48,.035)}
.debt-head h3{font-size:23px}.debt-head p{font-size:12.5px;line-height:1.5}
.debt-value small,.debt-value span{font-size:11px}.debt-value strong{font-size:28px}
.info-strip{font-size:12px;line-height:1.5;padding:12px 14px}
.schedule-grid{gap:10px}.installment-chip{padding:13px;border-radius:13px;min-height:72px}.installment-chip span{font-size:11px}.installment-chip small{font-size:10px}.installment-chip strong{font-size:13px;margin-top:7px}
.debt-foot{font-size:12px;padding-top:15px}.debt-foot button{font-size:12px;padding:7px 3px}
.debt-accounting-note strong{font-size:15px}.debt-accounting-note p{font-size:12.5px}

/* General form legibility. */
.field>span{font-size:12.5px}.field small{font-size:11px}.boutique-select-trigger{font-size:13.5px}.boutique-select-menu button{font-size:12.5px}.boutique-select-menu button small{font-size:10px}
.guide-body>strong{font-size:17px}.guide-body p{font-size:12px}.guide-body ul{font-size:11.5px}

@media(max-width:1180px){.month-debt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  body{font-size:14px}.topbar-subrow{gap:9px}.topbar-accent{flex-basis:34px;width:34px;height:8px;margin-top:7px}.topbar-copy{font-size:12.5px}.stat-label{font-size:11.5px}.stat-card>small{font-size:11px}
  .hero-meta span{font-size:11px}.month-debt-grid{grid-template-columns:1fr}.debt-head{align-items:flex-start}.debt-value strong{font-size:25px}
  .debt-head h3{font-size:21px}.debt-head p{font-size:12px}.installment-chip span{font-size:11px}.installment-chip strong{font-size:12.5px}
}

/* ========================================================================== 
   PAYFIT v3 — livelier editorial finance UI + stable form actions
   ========================================================================== */
:root{
  --bg:#f1f0ea;
  --paper:#fffdf8;
  --paper2:#f8f5ee;
  --ink:#142824;
  --muted:#6b7b75;
  --line:#dedbd1;
  --green:#157561;
  --green2:#dceee7;
  --green-bright:#2aa383;
  --aqua:#4f8e91;
  --aqua-soft:#dfeeed;
  --red:#c86256;
  --red2:#f6e2de;
  --gold:#c99a55;
  --gold2:#f2e5cf;
  --blue:#596f86;
  --blue-soft:#e5eaf0;
  --shadow:0 22px 58px rgba(25,51,44,.09);
}

html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 88% 7%,rgba(58,147,122,.075),transparent 26rem),
    radial-gradient(circle at 7% 48%,rgba(205,158,87,.07),transparent 27rem),
    linear-gradient(180deg,#f6f4ee 0%,var(--bg) 42%,#f4f1ea 100%);
  background-attachment:fixed;
}

/* Navigation feels a little more alive without becoming neon. */
.sidebar{
  background:
    radial-gradient(circle at 18% 8%,rgba(58,165,133,.16),transparent 18rem),
    radial-gradient(circle at 110% 88%,rgba(205,158,87,.12),transparent 17rem),
    linear-gradient(180deg,#132925 0%,#172d29 48%,#142622 100%);
  box-shadow:18px 0 50px rgba(18,40,34,.07);
}
.sidebar button{position:relative;overflow:hidden}
.sidebar button:after{
  content:"";position:absolute;inset:0;border-radius:12px;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.07),transparent);
  transform:translateX(-120%);transition:transform .45s ease;pointer-events:none
}
.sidebar button:hover:after{transform:translateX(120%)}
.sidebar button.active{
  background:linear-gradient(105deg,rgba(61,116,102,.7),rgba(40,72,65,.72));
  box-shadow:inset 3px 0 0 #e0b66f,0 8px 22px rgba(5,23,18,.12)
}
.brand-mark{background:linear-gradient(145deg,#e0b875,#c69149);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 7px 18px rgba(0,0,0,.12)}

/* Page entrance + hierarchy. */
.page-grid{animation:payfitPageIn .34s cubic-bezier(.22,.78,.25,1) both}
.topbar-copy-wrap{
  display:grid;
  gap:10px;
}
.topbar-title-stack{
  display:grid;
  gap:8px;
}
.topbar-kicker{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin-bottom:0;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(188,149,95,.16);
  background:linear-gradient(135deg,rgba(255,255,255,.7),rgba(244,237,224,.95));
  box-shadow:0 6px 16px rgba(25,54,46,.04), inset 0 1px 0 rgba(255,255,255,.72);
}
.topbar h1{display:block;margin:0;letter-spacing:-.045em}
.topbar-subrow{
  display:flex;
  align-items:flex-start;
  gap:12px;
  max-width:740px;
}
.topbar-accent{
  position:relative;
  flex:0 0 48px;
  width:48px;
  height:10px;
  margin-top:8px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(31,111,95,.95),rgba(189,149,95,.86));
  box-shadow:0 8px 18px rgba(31,111,95,.14);
}
.topbar-accent:after{
  content:"";
  position:absolute;
  right:4px;
  top:50%;
  width:6px;
  height:6px;
  border-radius:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,.9);
}
.topbar-copy{
  margin:0;
  padding-top:1px;
}
.currency-switch{
  background:rgba(255,253,248,.8);backdrop-filter:blur(12px);
  box-shadow:0 9px 24px rgba(30,58,50,.055),inset 0 1px 0 rgba(255,255,255,.75)
}

/* Primary actions have a tiny light pass to feel more product-like. */
.btn{position:relative;overflow:hidden;isolation:isolate}
.btn.primary{
  background:linear-gradient(135deg,#24836d 0%,#156b5b 58%,#125b4e 100%);
  box-shadow:0 10px 24px rgba(21,117,97,.22),inset 0 1px 0 rgba(255,255,255,.17)
}
.btn.primary:before{
  content:"";position:absolute;z-index:-1;width:42%;height:220%;top:-60%;left:-75%;
  transform:rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);
  transition:left .55s cubic-bezier(.2,.7,.2,1)
}
.btn.primary:hover{background:linear-gradient(135deg,#2a9078,#176f5f 60%,#115449);transform:translateY(-1px)}
.btn.primary:hover:before{left:135%}
.btn.ghost{background:linear-gradient(180deg,#f4f1e9,#eee9df);border:1px solid rgba(211,204,191,.7)}
.btn.outline{background:rgba(255,253,248,.72);backdrop-filter:blur(8px)}

/* Panels get clearer depth and occasional color through the surface, not the text. */
.panel{
  background:linear-gradient(155deg,rgba(255,253,248,.98),rgba(250,247,240,.96));
  border-color:rgba(211,207,196,.86);
  box-shadow:0 8px 28px rgba(30,56,49,.045),inset 0 1px 0 rgba(255,255,255,.82);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease
}
.panel:hover{border-color:rgba(53,119,101,.14);box-shadow:0 16px 38px rgba(30,56,49,.07),inset 0 1px 0 rgba(255,255,255,.9)}
.stat-card,.finance-card,.holding-card,.debt-card,.due-card{
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease
}
.stat-card:hover,.finance-card:hover,.holding-card:hover,.debt-card:hover,.due-card:hover{
  transform:translateY(-2px);box-shadow:0 16px 36px rgba(26,55,47,.075)
}

/* Financial photo gets a richer green/aqua/gold atmosphere. */
.hero-card{
  background:
    radial-gradient(circle at 91% 24%,rgba(66,155,140,.25),transparent 28%),
    radial-gradient(circle at 68% 110%,rgba(201,154,85,.12),transparent 34%),
    linear-gradient(126deg,#11322b 0%,#19453a 45%,#285a50 100%);
  box-shadow:0 30px 78px rgba(21,58,48,.18),0 8px 24px rgba(21,58,48,.08),inset 0 1px 0 rgba(255,255,255,.07)
}
.orbit-main{background:linear-gradient(145deg,#f6ead5,#ead4ae);box-shadow:0 24px 64px rgba(0,0,0,.24),0 0 48px rgba(228,184,112,.11)}
.orbit-dot.one{animation:payfitDotPulse 3.4s ease-in-out infinite}
.orbit-dot.two{animation:payfitDotPulse 3.4s ease-in-out 1.1s infinite}

/* More expressive but coordinated dashboard cards. */
.month-summary-grid .stat-card{position:relative;overflow:hidden}
.month-summary-grid .stat-card:after{
  content:"";position:absolute;right:-42px;top:-48px;width:115px;height:115px;border-radius:50%;opacity:.72;pointer-events:none
}
.month-summary-grid .stat-card:nth-child(1){background:linear-gradient(145deg,#fffdf8 16%,#e2f1e9);border-color:#cfe5db}
.month-summary-grid .stat-card:nth-child(1):after{background:radial-gradient(circle,rgba(42,163,131,.22),transparent 70%)}
.month-summary-grid .stat-card:nth-child(2){background:linear-gradient(145deg,#fffdf8 16%,#f7e4df);border-color:#ead2cb}
.month-summary-grid .stat-card:nth-child(2):after{background:radial-gradient(circle,rgba(200,98,86,.18),transparent 70%)}
.month-summary-grid .stat-card:nth-child(3){background:linear-gradient(145deg,#fffdf8 16%,#f3e6cf);border-color:#e8d7b9}
.month-summary-grid .stat-card:nth-child(3):after{background:radial-gradient(circle,rgba(201,154,85,.22),transparent 70%)}
.month-summary-grid .stat-card:nth-child(4){background:linear-gradient(145deg,#17372f,#244f45 66%,#315f55);border-color:#315f55;box-shadow:0 19px 42px rgba(23,71,59,.15)}
.month-summary-grid .stat-card:nth-child(4):after{background:radial-gradient(circle,rgba(100,202,170,.21),transparent 70%)}

/* Account types are easier to scan at a glance. */
.finance-card.bank,.finance-card.cash{background:linear-gradient(150deg,#fffdf8,#eaf4ef)}
.finance-card.card{background:linear-gradient(145deg,#fffaf7,#f7e4df)}
.finance-card.gold{background:linear-gradient(145deg,#fffdf7,#f3e3c7)}
.finance-card.investment{background:linear-gradient(145deg,#fbfdfd,#e4eeee)}
.finance-card .account-icon{box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 7px 16px rgba(24,55,47,.08)}

/* Investment surface has a subtle blue-green movement. */
.investment-hero{
  position:relative;overflow:hidden;isolation:isolate;
  background:
    radial-gradient(circle at 80% 18%,rgba(92,178,163,.19),transparent 29%),
    linear-gradient(130deg,#263b3b,#36545a 56%,#405d66)
}
.investment-hero:after{
  content:"";position:absolute;z-index:-1;inset:-80% -35%;
  background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.08) 49%,rgba(255,255,255,.16) 50%,rgba(255,255,255,.05) 52%,transparent 59%);
  animation:payfitInvestmentSweep 10s ease-in-out infinite;pointer-events:none
}

/* Debt plans feel important but calm. */
.debt-card{position:relative;overflow:hidden;background:linear-gradient(150deg,#fffdfa,#f9f1e7);border-color:#e7ddcf}
.debt-card:before{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-90px;top:-95px;background:radial-gradient(circle,rgba(205,154,85,.12),transparent 70%);pointer-events:none}
.installment-chip:not(.paid){background:linear-gradient(145deg,#fbf8f1,#f3eee4)}
.installment-chip.paid{background:linear-gradient(145deg,#f7fbf8,#dfece5);border-color:#d2e4db}

/* Form fields: stronger focus + consistent dimensions. */
.field input,.field select,.form-grid input,.form-grid select,.settings-form input,.settings-form select,.inline-form input,.filters input,.filters select,.boutique-select-trigger{
  border-color:#d7d2c7;background:linear-gradient(180deg,#fffefa,#fffdf9);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)
}
.field input:focus,.field select:focus,.settings-form input:focus,.settings-form select:focus,.form-grid input:focus,.form-grid select:focus,.inline-form input:focus,.filters input:focus,.filters select:focus{
  border-color:#5c9d8c;box-shadow:0 0 0 4px rgba(42,163,131,.105),0 8px 22px rgba(27,76,63,.055);background:#fff
}
.boutique-select.open .boutique-select-trigger{border-color:#5c9d8c;box-shadow:0 0 0 4px rgba(42,163,131,.105),0 8px 22px rgba(27,76,63,.055)}
.boutique-select-menu{border-color:#d5cec0;box-shadow:0 24px 64px rgba(24,44,39,.19)}
.boutique-select-menu button:hover,.boutique-select-menu button.selected{background:linear-gradient(90deg,#edf6f2,#f7f2e8)}

/* Stable modal geometry: header and save actions never drift with long forms. */
.modal-backdrop{
  overflow:hidden;align-items:center;padding:24px;background:rgba(10,27,22,.52);backdrop-filter:blur(9px)
}
.modal{
  width:min(700px,100%);max-height:calc(100dvh - 48px);overflow:hidden;margin:auto;padding:0;
  display:flex;flex-direction:column;
  background:linear-gradient(160deg,#fffdf9,#f9f6ee);
  border:1px solid rgba(255,255,255,.82);border-radius:27px;
  box-shadow:0 34px 110px rgba(5,26,20,.28),inset 0 1px 0 rgba(255,255,255,.9)
}
.modal.wide{width:min(980px,100%)}
.modal-head{
  flex:0 0 auto;margin:0;padding:23px 28px 19px;border-bottom:1px solid rgba(219,214,203,.82);
  background:linear-gradient(180deg,rgba(255,254,250,.98),rgba(250,247,240,.96));
  box-shadow:0 8px 22px rgba(30,56,49,.025);z-index:8
}
.modal-head h2{font-size:30px}
.modal>.guide-tip{flex:0 0 auto;margin:18px 28px 0}
.modal>.modal-form{
  flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:22px 28px 0;
  overscroll-behavior:contain;scrollbar-gutter:stable
}
.modal>.modal-form>.guide-tip{margin:0 0 18px}
.modal-form .form-grid>*{min-width:0}
.modal-form input,.modal-form select,.modal-form button{max-width:100%}
.modal-actions{
  position:sticky;bottom:0;z-index:25;margin:12px -28px 0;padding:17px 28px 20px;
  min-height:76px;display:flex;align-items:center;justify-content:flex-end;gap:11px;
  border-top:1px solid rgba(216,210,198,.9);
  background:linear-gradient(180deg,rgba(255,253,248,.78),#fffdf8 28%,#fffdf8 100%);
  backdrop-filter:blur(14px);box-shadow:0 -12px 28px rgba(28,53,46,.045)
}
.modal-actions .btn{min-width:118px;min-height:48px}
.modal-actions .btn.primary{min-width:150px}
.movement-actions .btn.primary{min-width:170px}

/* Form-specific alignment: amount and detail fields remain balanced. */
.movement-form,.transfer-form{align-content:start}
.movement-amount-card{border-color:rgba(35,122,101,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 10px 24px rgba(24,61,51,.035)}
.money-entry{min-width:0}
.money-entry input{min-width:0}
.transfer-balance-hint{border:1px solid rgba(35,122,101,.11);background:linear-gradient(145deg,#f2f8f5,#faf6ed)}

/* Small interactions. */
@keyframes payfitPageIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes payfitDotPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(212,172,112,.0)}50%{transform:scale(1.14);box-shadow:0 0 0 9px rgba(212,172,112,.07)}}
@keyframes payfitInvestmentSweep{0%,18%{transform:translateX(-28%) rotate(4deg);opacity:.5}50%,65%{transform:translateX(16%) rotate(4deg);opacity:1}100%{transform:translateX(33%) rotate(4deg);opacity:.55}}

@media(max-width:900px){
  .panel:hover,.stat-card:hover,.finance-card:hover,.holding-card:hover,.debt-card:hover,.due-card:hover{transform:none}
  .modal-backdrop{padding:14px;align-items:center}
  .modal{max-height:calc(100dvh - 28px)}
}

@media(max-width:640px){
  
  .hero-card{background:radial-gradient(circle at 85% 20%,rgba(66,155,140,.2),transparent 32%),linear-gradient(126deg,#11322b,#1b493e 58%,#28584f)}
  .modal-backdrop{padding:0;align-items:flex-end}
  .modal{width:100%;max-height:94dvh;margin:0;border-radius:25px 25px 0 0;border-bottom:0}
  .modal-head{padding:20px 18px 16px}.modal-head h2{font-size:27px}
  .modal>.guide-tip{margin:14px 16px 0}
  .modal>.modal-form{padding:18px 16px 0}
  .modal-actions{
    margin:10px -16px 0;padding:13px 16px max(16px,env(safe-area-inset-bottom));
    min-height:72px;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:9px
  }
  .modal-actions .btn,.modal-actions .btn.primary,.movement-actions .btn.primary{width:100%;min-width:0;min-height:48px;padding-left:10px;padding-right:10px}
  .form-grid.two,.form-grid.three{gap:14px}
}

@media(prefers-reduced-motion:reduce){
  .page-grid,.orbit-dot.one,.orbit-dot.two,.investment-hero:after{animation:none!important}
  .btn.primary:before,.sidebar button:after{display:none}
  .panel,.stat-card,.finance-card,.holding-card,.debt-card,.due-card{transition:none}
}

/* ========================================================================== 
   PAYFIT v3.1 — brighter monthly focus + mobile-first refinement
   ========================================================================== */

/* The fourth monthly card used to read too closed/dark next to the other cards. */
.month-summary-grid .stat-card:nth-child(4),
.month-summary-grid .stat-card:nth-child(4).dark,
.month-summary-grid .stat-card:nth-child(4).positive{
  color:#123c33;
  background:
    radial-gradient(circle at 92% 8%,rgba(63,184,149,.28),transparent 38%),
    linear-gradient(145deg,#eef9f4 0%,#d9efe6 52%,#c7e4da 100%);
  border-color:#bcded1;
  box-shadow:0 18px 42px rgba(35,115,91,.12),inset 0 1px 0 rgba(255,255,255,.88);
}
.month-summary-grid .stat-card:nth-child(4) .stat-label,
.month-summary-grid .stat-card:nth-child(4)>small,
.month-summary-grid .stat-card:nth-child(4).dark .stat-label,
.month-summary-grid .stat-card:nth-child(4).dark>small{
  color:#557a6f;
}
.month-summary-grid .stat-card:nth-child(4)>strong{color:#125f4e!important}
.month-summary-grid .stat-card:nth-child(4) .stat-icon{
  background:linear-gradient(145deg,#2a9d80,#17715f);color:#fff;
  box-shadow:0 8px 18px rgba(27,124,101,.18)
}
.month-summary-grid .stat-card:nth-child(4):after{
  background:radial-gradient(circle,rgba(37,161,129,.27),transparent 70%)
}

/* Slightly stronger visual rhythm on touch-capable layouts. */
@media(hover:none){
  .panel:hover,.stat-card:hover,.finance-card:hover,.holding-card:hover,.debt-card:hover,.due-card:hover{transform:none;box-shadow:inherit}
  .btn.primary:hover{transform:none}
}

@media(max-width:900px){
  body{background-attachment:scroll}
  .main{padding:0 18px calc(118px + env(safe-area-inset-bottom));overflow-x:hidden}
  .topbar{min-height:112px;padding:18px 0 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px}
  .topbar-copy-wrap{min-width:0;max-width:none}
  .topbar h1{font-size:32px;line-height:1.04}
  .topbar-subrow{gap:10px;max-width:620px}
  .topbar-accent{flex-basis:40px;width:40px;height:9px;margin-top:7px}
  .topbar-copy{max-width:620px;font-size:13px;line-height:1.5}
  .top-actions{align-self:end;gap:8px}
  .settings-shortcut{width:46px;height:46px;flex:0 0 46px}
  .currency-switch{min-width:74px;height:46px;padding:0 8px 0 10px}
  .currency-switch span{display:none}
  .currency-switch select{width:auto;min-width:48px;font-size:12px;text-align:center}
  .top-actions>.btn{min-width:46px;height:46px;padding:0 13px}

  .mobile-nav{
    grid-template-columns:repeat(6,minmax(0,1fr));
    left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));
    padding:7px;border:1px solid rgba(255,255,255,.075);
    border-radius:22px;
    background:linear-gradient(155deg,rgba(17,43,37,.98),rgba(22,48,42,.98));
    box-shadow:0 18px 48px rgba(8,31,24,.28),inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter:blur(18px)
  }
  .mobile-nav button{min-width:0;min-height:54px;padding:7px 2px 6px;border-radius:15px;font-size:8.5px;line-height:1.15;gap:4px}
  .mobile-nav button span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-nav button.active{background:linear-gradient(145deg,#315d52,#24483f);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 6px 15px rgba(0,0,0,.12)}

  .page-grid{gap:18px}
  .month-navigator{margin-bottom:2px;box-shadow:0 10px 26px rgba(25,59,50,.065)}
  .hero-card{min-height:0;padding:30px 28px;border-radius:25px}
  .hero-copy{width:100%}
  .hero-copy h2{font-size:clamp(40px,8vw,54px);overflow-wrap:anywhere}
  .hero-copy p{font-size:13px;margin-bottom:24px}
  .hero-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hero-meta span{min-width:0;padding:10px 11px;font-size:11px;line-height:1.35}
  .hero-meta b{display:block;margin:3px 0 0;font-size:12px;overflow-wrap:anywhere}

  .content-two,.content-two.asym{grid-template-columns:1fr;gap:18px}
  .month-debt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel-head{gap:12px}.panel-head>div{min-width:0}.panel-head h3{line-height:1.15}
  .panel-head .text-btn{white-space:nowrap}

  .table-wrap{-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:3px}
  .data-table{min-width:720px}
  .data-table th,.data-table td{white-space:nowrap}
  .tx-title strong,.tx-title small{white-space:normal;min-width:160px}

  .flow-chart{height:170px;gap:10px}.flow-bars{height:128px}.flow-col>span{font-size:10px}
  .cards-grid,.holding-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .finance-card,.holding-card{min-width:0}
  .finance-card-value strong,.holding-value strong{overflow-wrap:anywhere}
  .market-strip{grid-template-columns:repeat(3,minmax(0,1fr))}

  .debt-head{gap:12px}.debt-head>div:first-child{min-width:0}.debt-value{flex:0 0 auto}
  .schedule-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .installment-chip{min-width:0}

  .filters{align-items:center;flex-wrap:wrap}
  .filters .search{order:3;width:100%;min-width:0;margin-left:0}
  .movement-tools{width:100%}

  .modal-form input,.modal-form select,.boutique-select-trigger{font-size:16px}
  .boutique-select-menu button{min-height:48px;font-size:13px}
  .boutique-select-menu{max-height:min(320px,42dvh)}
}

@media(max-width:640px){
  body{font-size:14.5px}
  .main{padding-left:14px;padding-right:14px;padding-bottom:calc(116px + env(safe-area-inset-bottom))}
  .topbar{min-height:110px;padding:18px 0 13px;gap:10px}
  .topbar h1{font-size:29px}
  .topbar-copy{font-size:12.5px;line-height:1.48;margin-top:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .topbar-copy-wrap{max-width:none}
  .top-actions{gap:6px}
  .currency-switch{min-width:66px;width:auto;height:44px;padding:0 7px}
  .currency-switch select{width:auto;min-width:44px;font-size:12px}
  .settings-shortcut,.top-actions>.btn{width:44px;min-width:44px;height:44px;padding:0}
  .top-actions>.btn{font-size:0}
  .top-actions>.btn .icon{font-size:19px!important}

  .month-navigator{grid-template-columns:46px minmax(0,1fr) 46px;gap:5px;padding:6px;border-radius:18px}
  .month-arrow{min-height:44px;font-size:29px}
  .month-center{min-height:44px;padding:5px 8px}.month-center span{font-size:15.5px}.month-center small{font-size:10px}

  .guide-tip,.modal .guide-tip{border-radius:17px}
  .guide-body>strong{font-size:15px}.guide-body p{font-size:11.5px}.guide-body ul{font-size:11px;line-height:1.5}

  .hero-card{padding:25px 20px 22px;border-radius:23px}
  .hero-copy h2{font-size:clamp(34px,10.2vw,44px);line-height:1.02;margin-top:9px}
  .hero-copy p{font-size:12px;line-height:1.5;margin:8px 0 20px}
  .hero-meta{grid-template-columns:1fr 1fr;gap:7px}
  .hero-meta span{padding:9px 10px;border-radius:11px;font-size:10px}
  .hero-meta b{font-size:11.5px}

  /* Four monthly cards stay visible as one compact dashboard unit on phones. */
  .stats-grid.four.month-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .month-summary-grid .stat-card{min-height:148px;padding:16px;border-radius:18px}
  .month-summary-grid .stat-label{font-size:10.5px;line-height:1.3;gap:6px}
  .month-summary-grid .stat-icon{width:31px;height:31px;flex:0 0 31px}
  .month-summary-grid .stat-card>strong{font-size:clamp(21px,6.1vw,27px);line-height:1.05;margin:15px 0 7px;overflow-wrap:anywhere}
  .month-summary-grid .stat-card>small{font-size:10px;line-height:1.35}
  .month-summary-grid .stat-card:nth-child(4){background:linear-gradient(145deg,#eefaf5,#cfe9df 68%,#bde0d3)}

  .panel{padding:18px;border-radius:19px}
  .panel-head{align-items:flex-start;margin-bottom:18px}
  .panel-head h3{font-size:20px}
  .panel-note{font-size:11.5px}
  .content-two,.content-two.asym{gap:14px}

  .flow-panel{overflow:hidden}
  .flow-chart{height:158px;gap:6px;padding-left:0;padding-right:0}
  .flow-bars{height:116px;gap:3px}.flow-bars i{width:9px}.flow-col>span{font-size:9.5px}
  .legend{font-size:10.5px}

  .allocation-wrap{gap:18px}.donut{width:154px;height:154px}.donut>div{width:96px;height:96px}
  .allocation-list{gap:7px}.allocation-list>div{padding:9px 0}.allocation-list span,.allocation-list b{font-size:11.5px}

  .month-debt-grid{grid-template-columns:1fr;gap:8px}
  .month-debt-grid .due-card{min-height:76px;padding:12px}
  .due-card>b{font-size:12px;white-space:nowrap}

  /* Generic stats stay readable instead of becoming tiny 3-up cards. */
  .stats-grid.three:not(.month-summary-grid),.stats-grid.four:not(.month-summary-grid){grid-template-columns:1fr;gap:10px}
  .stat-card{min-height:124px;padding:18px}.stat-card>strong{font-size:26px}

  .cards-grid,.holding-grid{grid-template-columns:1fr;gap:11px}
  .finance-card{min-height:205px;padding:18px}.finance-card-top strong{font-size:14px}.finance-card-top small{font-size:11px}
  .finance-card-value{margin:20px 0 14px}.finance-card-value strong{font-size:27px}.finance-card-value small,.finance-card-value span{font-size:11px}
  .card-actions button{min-height:38px;font-size:12px}

  .investment-hero{padding:23px 20px;gap:17px;border-radius:22px}
  .investment-hero h2{font-size:36px;overflow-wrap:anywhere}.investment-hero p{font-size:12px;line-height:1.45}
  .pnl-box{width:100%;padding:15px 16px}.pnl-box strong{font-size:23px}
  .market-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.market-strip>div{padding:12px}.market-strip span{font-size:10px}.market-strip b{font-size:12px}
  .holding-card{padding:17px}.holding-value strong{font-size:25px}

  .debt-card{padding:18px;border-radius:19px}
  .debt-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .debt-head h3{font-size:20px}.debt-head p{font-size:11.5px}
  .debt-value{text-align:right}.debt-value strong{font-size:23px}.debt-value small,.debt-value span{font-size:10.5px}
  .schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .installment-chip{min-height:70px;padding:11px}.installment-chip strong{font-size:12.5px}
  .debt-foot{gap:10px;align-items:flex-start;flex-wrap:wrap;font-size:11px}.debt-foot>div{display:flex;gap:6px;flex-wrap:wrap}.debt-foot button{font-size:11.5px;min-height:34px}
  .debt-accounting-note{padding:14px}.debt-accounting-note strong{font-size:14px}.debt-accounting-note p{font-size:11.5px}

  .filters{gap:7px}.segmented{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden}.segmented button{min-width:0;padding:9px 3px;font-size:10px}
  .movement-tools{display:grid;grid-template-columns:1fr auto;gap:8px}.movement-tools .search{grid-column:1/-1;order:2}
  .table-wrap{margin-left:-4px;margin-right:-4px;padding:0 4px 7px;mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 10px),transparent 100%)}
  .data-table{min-width:690px}.data-table th{font-size:10px}.data-table td{font-size:12.5px;padding:14px 10px}

  .budget-row-head{gap:10px;align-items:flex-start}.budget-row-head>div:last-child{flex:0 0 auto}.budget-row-head strong{font-size:12.5px}.budget-row-head small{font-size:10.5px}
  .principles article{padding:18px}.principles strong{font-size:13px}.principles p{font-size:11px}
  .settings-action{align-items:flex-start;flex-wrap:wrap}.settings-action .btn{width:100%}.prototype-actions .btn{min-height:46px}

  /* Bottom sheet forms: native-feeling, stable actions and no iOS input zoom. */
  .modal{max-height:96dvh;border-radius:24px 24px 0 0}
  .modal-head{padding:18px 16px 15px}.modal-head h2{font-size:25px;line-height:1.1}.modal-head .icon-btn{width:40px;height:40px;flex:0 0 40px}
  .modal>.guide-tip{margin:12px 14px 0}
  .modal>.modal-form{padding:16px 14px 0}
  .modal-form{gap:15px}
  .field{gap:7px}.field>span{font-size:12px}.field small{font-size:10.5px}
  .field input,.field select,.form-grid input,.form-grid select,.settings-form input,.settings-form select,.inline-form input,.filters input,.filters select,.boutique-select-trigger{min-height:52px;height:52px;font-size:16px;border-radius:13px}
  .money-entry{height:58px}.money-entry input{height:58px!important;font-size:30px!important}.money-entry span{font-size:12px}
  .type-toggle.premium button{height:50px;font-size:12px}
  .boutique-select-menu{max-height:38dvh;border-radius:14px}.boutique-select-menu button{min-height:48px}
  .modal-actions{margin:10px -14px 0;padding:12px 14px max(14px,env(safe-area-inset-bottom));grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr)}
  .modal-actions .btn,.modal-actions .btn.primary{min-height:50px;font-size:13px}
  .installment-editor{max-height:36dvh}.installment-edit{gap:7px;padding:8px}

  .transfer-route{grid-template-columns:1fr;gap:8px;padding:11px}
  .transfer-arrow{justify-self:center;transform:rotate(90deg)}
  .transfer-node{padding:11px}.transfer-node strong{font-size:14px}.transfer-node span,.transfer-node .transfer-balance{font-size:10.5px}
  .transfer-balance-hint{font-size:11px}

  .toast{left:12px;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));width:auto;border-radius:16px}
  .confirm-backdrop{padding:14px}.confirm-card{border-radius:22px;padding:22px 18px}.confirm-card h3{font-size:23px}.confirm-card p{font-size:12px}.confirm-actions .btn{min-height:48px}

  .auth-panel{padding:18px 16px 28px}.auth-mobile-brand{margin-bottom:25px}.auth-card{padding:12px 4px}.auth-card h2{font-size:34px}.auth-card>.muted{font-size:13px}.form-stack{gap:13px}.auth-card .field input,.auth-card .field select{font-size:16px}

  .mobile-nav{left:8px;right:8px;padding:6px;bottom:max(8px,env(safe-area-inset-bottom))}
  .mobile-nav button{font-size:8px;min-height:52px;padding-left:1px;padding-right:1px}
  .mobile-nav .icon{font-size:18px!important}
}

@media(max-width:390px){
  .main{padding-left:11px;padding-right:11px}
  .topbar h1{font-size:27px}.topbar-copy{font-size:12px}
  .month-summary-grid .stat-card{min-height:142px;padding:14px}
  .month-summary-grid .stat-card>strong{font-size:21px}
  .month-summary-grid .stat-label{font-size:10px}
  .hero-copy h2{font-size:34px}.hero-meta{grid-template-columns:1fr}.hero-meta span{display:flex;align-items:center;justify-content:space-between;gap:8px}.hero-meta b{display:inline;margin:0;text-align:right}
  .schedule-grid{grid-template-columns:1fr}
  .market-strip{grid-template-columns:1fr 1fr}
  .mobile-nav button{font-size:7.3px}.mobile-nav .icon{font-size:17px!important}
}

@media(prefers-reduced-motion:reduce){
  .sidebar button:after,.btn.primary:before{display:none}
}

/* ========================================================================== 
   v3.2 — mobile layout consolidation
   The blocks below intentionally come last so older prototype breakpoints
   cannot override the final phone/tablet layout.
   ========================================================================== */

.mobile-more-backdrop{display:none}

@media(max-width:760px){
  html,body,#root{width:100%;max-width:100%;overflow-x:hidden}
  body{font-size:15px}
  .main{width:100%;max-width:100%;padding:0 14px calc(106px + env(safe-area-inset-bottom));overflow-x:hidden}
  .page-grid{width:100%;min-width:0;gap:14px}
  .page-grid>*{min-width:0;max-width:100%}

  /* Header becomes a two-row mobile app header instead of squeezing title + controls. */
  .topbar{min-height:auto;padding:18px 0 12px;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
  .topbar-copy-wrap{width:100%;max-width:none;min-width:0;padding-right:0}
  .topbar h1{font-size:30px;line-height:1.05;max-width:100%;overflow-wrap:anywhere}
  .topbar-copy{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:12.5px;line-height:1.48;max-width:100%;margin-top:0}
  .top-actions{width:100%;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
  .currency-switch{margin-right:auto;min-width:98px;width:auto;height:44px;padding:0 9px 0 12px}
  .currency-switch span{display:block;font-size:10px;white-space:nowrap}
  .currency-switch select{font-size:12px;min-width:42px;width:auto}
  .settings-shortcut,.top-actions>.btn{width:44px;min-width:44px;height:44px;flex:0 0 44px;padding:0}
  .top-actions>.btn{font-size:0}
  .top-actions>.btn .icon{font-size:19px!important}

  .month-navigator{width:100%;max-width:none;margin:0 0 2px;grid-template-columns:48px minmax(0,1fr) 48px;padding:6px;border-radius:18px}
  .month-center{min-width:0}

  .hero-card{width:100%;min-width:0;min-height:0;padding:24px 19px 21px;border-radius:22px}
  .hero-copy{width:100%;min-width:0}
  .hero-copy h2{font-size:clamp(34px,10.4vw,46px);line-height:1.02;letter-spacing:-.045em;max-width:100%;overflow-wrap:anywhere}
  .hero-copy p{font-size:12px;line-height:1.5}
  .hero-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
  .hero-meta span{min-width:0;padding:9px 10px;font-size:10.5px;overflow:hidden}
  .hero-meta b{max-width:100%;overflow-wrap:anywhere}

  .stats-grid.four.month-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%}
  .month-summary-grid .stat-card{min-width:0;min-height:142px;padding:15px;border-radius:18px}
  .month-summary-grid .stat-label{font-size:10px;gap:6px;line-height:1.25}
  .month-summary-grid .stat-card>strong{font-size:clamp(21px,6.3vw,27px);line-height:1.04;margin:14px 0 7px;overflow-wrap:anywhere}
  .month-summary-grid .stat-card>small{font-size:9.8px;line-height:1.35}

  .panel{width:100%;min-width:0;padding:17px;border-radius:19px}
  .panel-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:16px}
  .panel-head>div,.panel-head h3{min-width:0}
  .panel-head h3{font-size:20px;line-height:1.15}
  .panel-head .text-btn{font-size:11px;white-space:nowrap}
  .content-two,.content-two.asym,.settings-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;width:100%}

  .cards-grid,.holding-grid,.due-grid,.month-debt-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .finance-card,.holding-card,.debt-card,.due-card{width:100%;min-width:0}
  .finance-card{min-height:196px;padding:17px}
  .finance-card-value strong,.holding-value strong,.debt-value strong{overflow-wrap:anywhere}
  .schedule-grid{grid-template-columns:1fr 1fr;gap:8px}
  .market-strip{grid-template-columns:1fr 1fr;gap:8px}

  .allocation-wrap{grid-template-columns:1fr;gap:16px;text-align:center}
  .allocation-list{text-align:left}
  .donut{margin:0 auto}

  /* Movements become native-looking cards instead of a desktop table that must pan sideways. */
  .table-wrap{width:100%;margin:0;padding:0;overflow:visible;mask-image:none!important;-webkit-mask-image:none!important}
  .data-table{display:block;width:100%;min-width:0;border:0}
  .data-table thead{display:none}
  .data-table tbody{display:grid;width:100%;gap:9px}
  .data-table tr{display:grid;width:100%;min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.72);box-shadow:0 8px 22px rgba(25,58,49,.045)}
  .data-table tr.planned-row{background:linear-gradient(145deg,#fffaf0,#fffdf8);border-color:#ead9b9}
  .data-table tr.transfer-row{background:linear-gradient(145deg,#f1faf7,#f8fcfa);border-color:#cce3db}
  .data-table td{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;padding:8px 0!important;border:0!important;text-align:right!important;white-space:normal!important;font-size:12px}
  .data-table td+td{border-top:1px dashed rgba(29,57,49,.1)!important}
  .data-table td:before{content:attr(data-label);flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.055em;text-align:left}
  .data-table td:first-child{display:block;text-align:left!important;padding-top:2px!important;padding-bottom:10px!important}
  .data-table td:first-child:before{display:none}
  .tx-title{width:100%;min-width:0;align-items:flex-start}
  .tx-title>div{min-width:0}
  .tx-title strong{font-size:13.5px;white-space:normal!important}
  .tx-title small{font-size:10.5px;white-space:normal!important;line-height:1.4}
  .data-table .amount{align-items:flex-end}
  .data-table .amount strong{font-size:13px}
  .data-table .amount small{font-size:10px}
  .data-table .actions{justify-content:flex-end}
  .data-table .actions:before{margin-right:auto}
  .transfer-account-tag{max-width:68%;white-space:normal;text-align:right}

  .filters{display:grid;grid-template-columns:1fr;width:100%;gap:8px}
  .segmented{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
  .segmented button{min-width:0;padding:10px 3px;font-size:10px}
  .movement-tools{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
  .movement-tools .search{grid-column:1/-1;order:2;width:100%;min-width:0}
  .movement-tools .btn{width:100%;min-width:0}

  .accounts-actions-bar{display:grid;grid-template-columns:1fr;gap:12px;padding:16px}
  .accounts-actions-bar .btn{width:100%}

  .investment-hero{width:100%;min-width:0;padding:21px 18px;border-radius:21px;display:grid;grid-template-columns:1fr;gap:14px}
  .investment-hero h2{font-size:34px;overflow-wrap:anywhere}
  .pnl-box{width:100%;text-align:left}

  /* Bottom navigation: 4 core destinations + More. No 6-column text crush. */
  .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));padding:6px;border-radius:21px}
  .mobile-nav button{min-width:0;min-height:54px;padding:6px 2px;border-radius:14px;font-size:8.6px;line-height:1.05;gap:4px}
  .mobile-nav button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .mobile-nav .icon{font-size:18px!important}

  .mobile-more-backdrop{position:fixed;inset:0;z-index:95;display:flex;align-items:flex-end;background:rgba(12,31,26,.36);backdrop-filter:blur(5px);padding:14px 14px calc(86px + env(safe-area-inset-bottom))}
  .mobile-more-sheet{width:100%;padding:14px;border-radius:22px;background:#faf8f2;border:1px solid rgba(255,255,255,.8);box-shadow:0 24px 70px rgba(8,30,24,.24)}
  .mobile-more-sheet>div:first-child{display:flex;align-items:center;justify-content:space-between;padding:4px 3px 12px}
  .mobile-more-sheet strong{font:600 18px "Bricolage Grotesque",ui-sans-serif,sans-serif}
  .mobile-more-sheet .icon-btn{width:38px;height:38px}
  .mobile-more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .mobile-more-grid button{border:1px solid var(--line);background:#fff;border-radius:16px;min-height:82px;padding:10px 6px;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:10px;font-weight:700}
  .mobile-more-grid button.active{border-color:#9fcabb;background:#edf8f3;color:#176650}
  .mobile-more-grid .icon{font-size:22px!important}

  /* Bottom-sheet modals: title, scrolling body, stable footer. */
  .modal-backdrop{padding:0!important;align-items:flex-end!important}
  .modal{width:100%!important;max-width:none!important;max-height:96dvh!important;margin:0!important;border-radius:24px 24px 0 0!important;overflow:hidden!important;padding:0!important;display:flex!important;flex-direction:column!important}
  .modal-head{flex:0 0 auto;padding:18px 16px 15px!important}
  .modal>.guide-tip{flex:0 0 auto;margin:12px 14px 0!important}
  .modal>.modal-form{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 14px 0!important;-webkit-overflow-scrolling:touch}
  .modal-actions{position:sticky!important;bottom:0!important;z-index:5;flex:0 0 auto;margin:10px -14px 0!important;padding:12px 14px max(14px,env(safe-area-inset-bottom))!important;background:rgba(250,248,242,.97)!important;backdrop-filter:blur(14px)}
  .modal-actions .btn{min-height:50px!important}
  .field input,.field select,.boutique-select-trigger{font-size:16px!important;min-height:52px!important}
  .money-entry,.money-entry input{height:58px!important}
  .money-entry input{font-size:29px!important}

  .transfer-route{grid-template-columns:1fr;gap:7px}
  .transfer-arrow{justify-self:center;transform:rotate(90deg)}

  .toast{left:10px;right:10px;width:auto;bottom:calc(82px + env(safe-area-inset-bottom))}
}

@media(max-width:390px){
  .main{padding-left:11px;padding-right:11px}
  .topbar h1{font-size:27px}
  .currency-switch{min-width:92px}
  .hero-meta{grid-template-columns:1fr}
  .hero-meta span{display:flex;justify-content:space-between;align-items:center;gap:8px}
  .hero-meta b{margin:0;display:inline;text-align:right}
  .month-summary-grid .stat-card{min-height:136px;padding:13px}
  .month-summary-grid .stat-card>strong{font-size:20px}
  .schedule-grid{grid-template-columns:1fr}
  .mobile-more-grid{grid-template-columns:1fr 1fr 1fr}
  .mobile-nav button{font-size:7.8px}
}

/* ========================================================================== 
   PAYFIT v3.3 — backend-ready ledger polish + debt/card/cash consistency
   ========================================================================== */

/* Readability pass before backend freeze. */
.finance-card-top strong{font-size:14px;line-height:1.25}
.finance-card-top small{font-size:10.5px;line-height:1.35}
.finance-card-value small,.finance-card-value span{font-size:10.5px;line-height:1.45}
.finance-card-value strong{font-size:29px;line-height:1.05}
.card-actions button{font-size:11.5px;min-height:34px;padding:5px 2px}
.card-limit>div:first-child{font-size:10px;gap:10px;align-items:flex-start}
.card-limit>div:first-child small{line-height:1.35;text-align:right}
.holding-top small,.holding-value small,.holding-value span{font-size:10.5px}
.holding-card dt{font-size:9.5px}.holding-card dd{font-size:11.5px}
.market-strip span{font-size:10px}.market-strip b{font-size:12.5px}

/* Cash accounts are intentionally first-class money containers. */
.finance-card.cash{background:linear-gradient(150deg,#fffefa 0%,#eef7f0 58%,#e2f1e7 100%);border-color:#d4e6db}
.finance-card.cash .account-icon{background:linear-gradient(145deg,#d8eee1,#c6e4d4);color:#17654f}

/* Paid debt installments: no absolute badge or clipped tick. Everything stays inside. */
.installment-chip{position:relative;overflow:hidden;min-width:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;text-decoration:none!important;opacity:1!important}
.installment-chip.paid:after{display:none!important;content:none!important}
.installment-chip i{position:static}
.installment-chip-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.installment-index{display:flex!important;align-items:baseline;gap:4px;min-width:0;font-weight:750}
.installment-index small{margin-left:0!important;white-space:nowrap}
.installment-state{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;max-width:52%;border-radius:999px;padding:4px 7px;font-size:9px!important;line-height:1.15;font-weight:800;white-space:nowrap;text-decoration:none!important}
.installment-state.is-paid{background:#d4eadf;color:#17674f}
.installment-state.is-due{background:#f2e4c9;color:#8d6527}
.installment-chip>strong{font-size:13.5px!important;margin-top:0!important;overflow-wrap:anywhere;text-decoration:none!important}
.installment-paid-at{font-style:normal;font-size:9.5px;color:#6d8178;line-height:1.25;text-decoration:none!important}
.installment-chip.paid{background:linear-gradient(145deg,#f9fdfb,#e1efe7)!important;border-color:#cde3d7!important;color:var(--ink)!important}
.installment-chip.paid strong,.installment-chip.paid span,.installment-chip.paid small{opacity:1!important;text-decoration:none!important}

/* Account cards now communicate live ledger state more explicitly. */
.balance-impact{margin-top:7px!important;padding-top:7px;border-top:1px dashed rgba(33,91,74,.12)}
.finance-card.card .finance-card-value strong{color:#b8544b}
.finance-card.card .balance-impact{color:#7c6d68}
.finance-card.investment .finance-card-value span:first-of-type{color:#4d7168}

@media(max-width:760px){
  .finance-card-top strong{font-size:14.5px}
  .finance-card-top small{font-size:11px}
  .finance-card-value small,.finance-card-value span{font-size:11px}
  .finance-card-value strong{font-size:28px}
  .card-actions button{font-size:12px}
  .installment-chip{min-height:84px;padding:12px!important;gap:9px}
  .installment-chip-top{gap:6px}
  .installment-state{font-size:9.5px!important;padding:5px 8px;max-width:56%}
  .installment-paid-at{font-size:10px}
}

@media(max-width:390px){
  .installment-chip-top{align-items:center}
  .installment-state{max-width:60%;font-size:9px!important;padding:4px 7px}
}

/* Debt schedules get breathing room instead of forcing six narrow cells. */
.schedule-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1180px){.schedule-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:390px){.schedule-grid{grid-template-columns:1fr!important}}

/* Final typography QA: remove the remaining “micro text” feel before backend handoff. */
.user-chip small{font-size:10.5px}
.panel-note{font-size:11.5px}
.pill{font-size:10px}
.stat-label{font-size:11px}.stat-card>small{font-size:10.5px;line-height:1.4}
.flow-col>span{font-size:10px}.legend{font-size:10.5px}
.donut small{font-size:9.5px}.allocation-list>div{font-size:11.5px}
.account-mini small{font-size:10.5px}.due-card small{font-size:10.5px}.due-card strong{font-size:12.5px}
.settings-action span{font-size:10.5px}.prototype-box strong{font-size:12.5px}.prototype-box p{font-size:11px}
.segmented button{font-size:10.5px}.installment-edit>span{font-size:10.5px}.money-input b{font-size:10px}
.schedule-total span{font-size:10.5px}
@media(max-width:760px){.mobile-nav button{font-size:9px}.mobile-more-grid button{font-size:11px}}
@media(max-width:390px){.mobile-nav button{font-size:8.4px}}

/* ========================================================================== 
   PAYFIT v3.5 — historical debt import + account/debt synchronization
   ========================================================================== */

.installment-chip{cursor:default}
.installment-source{display:flex;flex-direction:column;gap:2px;padding-top:7px;border-top:1px dashed rgba(29,92,72,.12);min-width:0}
.installment-source span{font-size:9.5px!important;color:var(--muted);line-height:1.25}
.installment-source b{font-size:10.5px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.installment-action{margin-top:auto;width:100%;min-height:34px;border:0;border-radius:9px;font:700 10px Manrope,ui-sans-serif,sans-serif;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.installment-action.pay{background:linear-gradient(135deg,#19755f,#269579);color:#fff;box-shadow:0 8px 18px rgba(25,117,95,.16)}
.installment-action.undo{background:#f2eee6;color:#765f53;border:1px solid #e4dcd0}
.installment-action:hover{transform:translateY(-1px)}
.schedule-edit-state{display:inline-flex!important;align-items:center;justify-content:center;border-radius:999px;padding:7px 8px;font-size:9.5px!important;font-weight:800;white-space:nowrap}
.schedule-edit-state.paid{background:#d9eee3;color:#17674f}.schedule-edit-state.open{background:#f2e7d3;color:#89642b}
.installment-edit input:disabled{background:#eeece6;color:#7d8681;cursor:not-allowed}

.payment-summary-card{display:flex;align-items:stretch;justify-content:space-between;gap:14px;padding:17px 18px;border:1px solid #dbe9e1;border-radius:17px;background:linear-gradient(135deg,#f8fcfa,#edf7f2)}
.payment-summary-card>div:first-child{display:flex;flex-direction:column;gap:4px}.payment-summary-card span{font-size:10.5px;color:var(--muted);font-weight:700}.payment-summary-card strong{font:600 28px "Bricolage Grotesque",ui-sans-serif,sans-serif;color:#174b3d}.payment-summary-card small{font-size:10.5px;color:#708079}
.payment-target{min-width:180px;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;text-align:right;padding-left:16px;border-left:1px solid #d8e7df}.payment-target b{font-size:12px;margin-top:3px}.payment-target small{font-size:9.5px}
.payment-balance-preview,.movement-balance-preview{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border:1px solid #e4ded3;border-radius:13px;background:#f7f4ed}
.payment-balance-preview>div,.movement-balance-preview>div{padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.72)}
.payment-balance-preview span,.movement-balance-preview span{display:block;font-size:9.5px;color:var(--muted);margin-bottom:4px}
.payment-balance-preview strong,.movement-balance-preview strong{font-size:13.5px;color:var(--ink)}
.payment-balance-preview.danger,.movement-balance-preview.danger{border-color:#e0b4aa;background:#fbefec}.payment-balance-preview.danger strong:last-child,.movement-balance-preview.danger strong:last-child{color:var(--red)}

@media(max-width:760px){
  .installment-source span{font-size:10px!important}.installment-source b{font-size:11px}.installment-action{min-height:40px;font-size:11px}
  .payment-summary-card{flex-direction:column;padding:15px}.payment-target{min-width:0;align-items:flex-start;text-align:left;padding:12px 0 0;border-left:0;border-top:1px solid #d8e7df}
  .payment-summary-card strong{font-size:25px}
  .payment-balance-preview,.movement-balance-preview{grid-template-columns:1fr}
  .schedule-edit-state{min-height:34px}
}
.mini-pay-btn{border:0;border-radius:8px;background:#e4f2eb;color:#176b53;font:800 9.5px Manrope,ui-sans-serif,sans-serif;padding:7px 9px;cursor:pointer;margin-right:5px;white-space:nowrap}
.mini-pay-btn:hover{background:#d6ebdf}
@media(max-width:760px){.mini-pay-btn{font-size:10.5px;padding:8px 10px}}

/* ==========================================================
   PAYFIT v3.5 — historical debt import / untracked past payments
   ========================================================== */
.payment-mode-switch{display:flex;justify-content:center;margin:2px 0 4px}
.payment-mode{width:100%;max-width:520px;padding:5px;background:rgba(19,61,49,.055);border:1px solid rgba(29,92,72,.12);border-radius:16px}
.payment-mode button{min-height:44px;font-size:12.5px;font-weight:750;letter-spacing:.01em}
.historical-payment-box{display:grid;grid-template-columns:auto 1fr;gap:13px 14px;align-items:start;padding:16px;border-radius:18px;background:linear-gradient(135deg,rgba(245,184,73,.12),rgba(255,255,255,.75));border:1px solid rgba(181,126,35,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.historical-payment-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(181,126,35,.13);color:#8b5e18;font-size:21px;font-weight:800}
.historical-payment-box>div:nth-child(2){min-width:0;padding-top:1px}
.historical-payment-box strong{display:block;font-size:14px;line-height:1.35;color:var(--ink)}
.historical-payment-box p{margin:5px 0 0;font-size:12px;line-height:1.55;color:var(--muted)}
.historical-payment-box .field{grid-column:1/-1;margin-top:2px}
.schedule-toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.installment-source.historical{background:rgba(245,184,73,.07);border:1px solid rgba(181,126,35,.15);border-radius:10px;padding:7px 8px}
.installment-source.historical span{color:#92631e}
.installment-source.historical b{color:#6f4c18}
.account-tag.historical{background:rgba(245,184,73,.1);border-color:rgba(181,126,35,.18);color:#7a531d}
@media(max-width:720px){
  .payment-mode{max-width:none}
  .payment-mode button{font-size:12px;padding-inline:9px}
  .historical-payment-box{grid-template-columns:38px 1fr;padding:14px;gap:11px}
  .historical-payment-icon{width:38px;height:38px;border-radius:12px}
  .schedule-toolbar-actions{width:100%;display:grid;grid-template-columns:1fr}
  .schedule-toolbar-actions .btn{width:100%;justify-content:center}
}

/* API-connected v4 loading state */
.api-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#f4f1e8;color:#173c35;font-family:'Manrope',sans-serif}.api-loading .brand-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:18px;background:#173c35;color:#fff;font-family:'Bricolage Grotesque',sans-serif;font-size:26px;box-shadow:0 18px 45px rgba(23,60,53,.18)}.api-loading strong{font-family:'Bricolage Grotesque',sans-serif;font-size:24px}.api-loading span{font-size:14px;color:#68766f}


/* ========================================================================== */
/* PAYFIT AUTH POLISH v1.2                                                      */
/* ========================================================================== */
.auth-panel{
  position:relative;
  overflow:hidden;
  padding:48px clamp(28px,5vw,76px);
  background:
    radial-gradient(circle at 78% 18%,rgba(45,139,115,.10),transparent 28%),
    radial-gradient(circle at 18% 86%,rgba(215,180,125,.12),transparent 26%),
    linear-gradient(180deg,#fbfaf7 0%,#f5f1e9 100%);
}
.auth-panel:before{
  content:"";
  position:absolute;
  width:340px;height:340px;
  border-radius:50%;
  border:1px solid rgba(30,76,65,.07);
  right:-170px;top:-130px;
  box-shadow:0 0 0 52px rgba(30,76,65,.025),0 0 0 104px rgba(30,76,65,.016);
  pointer-events:none;
}
.auth-card{
  position:relative;
  z-index:1;
  width:min(500px,100%);
  padding:42px 42px 38px;
  border:1px solid rgba(26,53,47,.09);
  border-radius:28px;
  background:rgba(255,253,249,.84);
  box-shadow:0 26px 70px rgba(39,52,48,.09),inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
}
.auth-card h2{
  font-size:44px;
  line-height:1.04;
  margin-bottom:10px;
}
.auth-card>.muted{
  font-size:15px;
  line-height:1.65;
  margin-bottom:30px;
  color:#7c8984;
}
.auth-card .eyebrow{margin-bottom:9px;display:block;letter-spacing:.22em}
.form-stack{gap:17px}
.auth-card .field>span{font-size:12.5px;color:#52625d}
.auth-card .field input,
.auth-card .field select{
  height:52px;
  border-radius:14px;
  font-size:15px;
  padding:0 15px;
  background:rgba(255,255,255,.92);
  border-color:#ddd7cc;
}
.auth-card .field input:focus,
.auth-card .field select:focus{
  border-color:#63a18f;
  box-shadow:0 0 0 4px rgba(40,132,107,.10);
}
.auth-card .form-stack>.btn{
  width:100%;
  min-height:52px;
  margin-top:2px;
  border-radius:14px;
  font-size:13px;
}
.auth-or{
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#9aa39f;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.13em;
}
.auth-or:before,.auth-or:after{
  content:"";
  height:1px;
  flex:1;
  background:linear-gradient(90deg,transparent,#ddd7cc);
}
.auth-or:after{background:linear-gradient(90deg,#ddd7cc,transparent)}
.auth-or span{padding:0 4px}
.auth-card>.btn.ghost{
  width:100%;
  min-height:50px;
  border-radius:14px;
  border:1px solid #ded7cc;
  background:linear-gradient(180deg,#f8f5ef,#f0ebe2);
  color:#20362f;
  font-weight:750;
}
.auth-card>.btn.ghost:hover{
  transform:translateY(-1px);
  border-color:#cfc5b6;
  box-shadow:0 9px 24px rgba(42,55,50,.07);
}
.auth-switch{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-height:44px;
  margin:12px 0 0;
  padding:8px 12px;
  border:0;
  background:transparent;
  color:#73817c;
  font:650 13px/1.4 var(--body, "Manrope", sans-serif);
  text-align:center;
  cursor:pointer;
  border-radius:12px;
  transition:.18s ease;
}
.auth-switch:hover{
  color:#176f5f;
  background:rgba(31,111,95,.055);
}
.auth-brand{padding-left:clamp(48px,6vw,94px);padding-right:clamp(48px,6vw,94px)}
.auth-copy{max-width:640px}
.auth-copy p{font-size:18px;max-width:560px}
.auth-preview{width:min(560px,92%)}

@media(max-width:1100px){
  .auth-shell{grid-template-columns:1fr 1fr}
  .auth-card{padding:34px 30px}
  .auth-copy h1{font-size:56px}
}
@media(max-width:900px){
  .auth-panel{padding:30px 20px;min-height:100dvh}
  .auth-card{width:min(520px,100%);padding:30px 24px;border-radius:24px}
  .auth-mobile-brand{display:flex;margin-bottom:30px}
}
@media(max-width:520px){
  .auth-panel{padding:18px 14px 26px}
  .auth-card{padding:26px 18px 22px;border-radius:22px}
  .auth-card h2{font-size:36px}
  .auth-card>.muted{font-size:14px;margin-bottom:24px}
  .auth-card .field input,.auth-card .field select{height:50px;font-size:16px}
  .auth-card .form-stack>.btn,.auth-card>.btn.ghost{min-height:50px}
}

/* ========================================================================== */
/* PAYFIT FULLSTACK v1.3 — vivid finance palette + recurring version UX       */
/* ========================================================================== */
:root{
  --bg:#f4f1e8;
  --paper:#fffdf8;
  --paper2:#f9f5ec;
  --ink:#102a24;
  --muted:#667a73;
  --line:#ded8cb;
  --green:#07866f;
  --green2:#d8f2e8;
  --red:#d75b50;
  --red2:#fbe3de;
  --gold:#d49b3f;
  --gold2:#f7e6c5;
  --blue:#4079ad;
  --nav:#0e3029;
  --nav2:#17483d;
  --shadow:0 22px 54px rgba(13,61,50,.11);
}
.btn.primary{background:linear-gradient(135deg,#07866f,#0a725f);box-shadow:0 10px 24px rgba(7,134,111,.24)}
.btn.primary:hover{background:linear-gradient(135deg,#07977c,#086956);box-shadow:0 13px 30px rgba(7,134,111,.28)}
.sidebar{background:linear-gradient(180deg,#0d3029 0%,#103a31 58%,#0d2d27 100%)}
.sidebar button.active{background:linear-gradient(90deg,rgba(36,167,134,.24),rgba(255,255,255,.055));box-shadow:inset 3px 0 0 #f0b95e;color:#fff}
.brand-mark,.user-chip .avatar{background:linear-gradient(145deg,#f0b85b,#d79836);color:#173029}
.hero-card{background:radial-gradient(circle at 84% 18%,rgba(29,181,145,.27),transparent 34%),radial-gradient(circle at 62% 120%,rgba(216,157,61,.18),transparent 38%),linear-gradient(128deg,#0c312a,#105344 58%,#13705c);box-shadow:0 26px 64px rgba(10,71,57,.19)}
.hero-meta span{background:rgba(255,255,255,.105);border-color:rgba(255,255,255,.14)}
.orbit-main{background:linear-gradient(145deg,#fff2d8,#f2c978);box-shadow:0 22px 54px rgba(0,0,0,.22)}
.orbit-dot.one{background:#f0b75b;border-color:#176a59}.orbit-dot.two{background:#46b89a;border-color:#194e43}
.month-summary-grid .stat-card:nth-child(1){background:linear-gradient(145deg,#fffefa 12%,#d9f5e9 72%,#c9eddf);border-color:#bde4d5}
.month-summary-grid .stat-card:nth-child(2){background:linear-gradient(145deg,#fffdf9 12%,#fde4de 72%,#f8d4cc);border-color:#efc8c0}
.month-summary-grid .stat-card:nth-child(3){background:linear-gradient(145deg,#fffdf8 12%,#f9e8c6 72%,#f4d9a8);border-color:#eacb91}
.month-summary-grid .stat-card:nth-child(4),.month-summary-grid .stat-card:nth-child(4).dark,.month-summary-grid .stat-card:nth-child(4).positive{background:linear-gradient(145deg,#e4faf2 5%,#bfead9 62%,#99d9c3);border-color:#99d8c2;box-shadow:0 16px 36px rgba(7,134,111,.16)}
.month-summary-grid .stat-card:nth-child(4)>strong{color:#075f4e!important}.month-summary-grid .stat-card:nth-child(4) .stat-label,.month-summary-grid .stat-card:nth-child(4)>small{color:#376d61!important}.month-summary-grid .stat-card:nth-child(4) .stat-icon{background:#fff8e9!important;color:#a96f16!important}
.stat-card.positive{background:linear-gradient(145deg,#fffefa,#e0f5ec);border-color:#c8e8da}.stat-card.negative{background:linear-gradient(145deg,#fffefa,#fde7e1);border-color:#f0cec6}.stat-card.warning{background:linear-gradient(145deg,#fffefa,#f9e8c9);border-color:#ecd3a4}
.flow-bars i.income,.legend i.income{background:linear-gradient(#17a383,#08745f)}.flow-bars i.expense,.legend i.expense{background:linear-gradient(#e88376,#c95349)}
.finance-card.bank,.finance-card.cash{background:linear-gradient(150deg,#fffefa 0%,#e2f6ed 58%,#cfeee0 100%);border-color:#c4e5d7}
.finance-card.card{background:linear-gradient(145deg,#fffaf7 5%,#fce5df 64%,#f7d3ca);border-color:#efc7be}
.finance-card.gold{background:linear-gradient(145deg,#fffdf7 5%,#f8e7c6 64%,#f1d39a);border-color:#e8ca90}
.finance-card.investment{background:linear-gradient(145deg,#fbfefe 5%,#e1f0ef 64%,#cce3e2);border-color:#c3dddd}
.account-icon.bank,.account-icon.cash{background:linear-gradient(145deg,#c9efdf,#a9dfcb);color:#086a55}.account-icon.card{background:linear-gradient(145deg,#f8d7d0,#efbdb3);color:#a7443b}.account-icon.gold{background:linear-gradient(145deg,#fae4bb,#e9c47f);color:#956216}.account-icon.investment{background:linear-gradient(145deg,#d8e9ef,#b8d4df);color:#315f72}
.investment-hero{background:radial-gradient(circle at 82% 14%,rgba(48,193,158,.22),transparent 34%),linear-gradient(132deg,#163d39,#1a5b50 60%,#245f67);box-shadow:0 24px 55px rgba(18,69,62,.17)}
.accounts-actions-bar{border-color:rgba(7,134,111,.19);background:linear-gradient(135deg,rgba(7,134,111,.12),rgba(255,252,246,.96));box-shadow:0 12px 32px rgba(7,104,86,.08)}
.pill.soft,.pill.good{background:#d5f0e5;color:#08705b}.pill.warning,.pill.watch{background:#f8e6c2;color:#93601b}.pill.danger,.pill.attention{background:#f9ddd7;color:#a64038}
.boutique-select-menu button:hover,.boutique-select-menu button.selected{background:#e4f6ef;color:#06705c}.boutique-select-menu button b{color:#07866f}
.auth-brand{background:radial-gradient(circle at 80% 20%,rgba(33,169,137,.30) 0,transparent 32%),radial-gradient(circle at 16% 88%,rgba(223,162,67,.18),transparent 28%),linear-gradient(145deg,#0c2f28,#105044 70%,#126453)}
.auth-panel{background:radial-gradient(circle at 78% 18%,rgba(26,174,139,.13),transparent 29%),radial-gradient(circle at 18% 86%,rgba(222,159,61,.15),transparent 27%),linear-gradient(180deg,#fffdf9 0%,#f7f2e8 100%)}
.auth-preview{background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.065));border-color:rgba(255,255,255,.16)}
.mini-bars i{background:linear-gradient(#f2bd65,#21a184)}

.recurring-version-note{display:grid;grid-template-columns:46px 1fr;gap:13px;align-items:start;padding:15px 16px;border:1px solid rgba(7,134,111,.22);border-radius:17px;background:linear-gradient(135deg,rgba(7,134,111,.105),rgba(255,253,248,.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.recurring-version-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#14a985,#08705d);color:#fff;font-size:21px;box-shadow:0 9px 20px rgba(7,134,111,.20)}
.recurring-version-note strong{display:block;font:600 15px/1.3 "Bricolage Grotesque",ui-sans-serif,sans-serif;color:#0a5f4e}.recurring-version-note p{margin:5px 0 0;color:#52736a;font-size:11.5px;line-height:1.55}
.recurring-readonly{min-height:50px;height:auto;background:linear-gradient(145deg,#eef9f5,#e1f3eb);border-color:#c8e6da;color:#116a57;font-weight:750}
@media(max-width:640px){.recurring-version-note{grid-template-columns:40px 1fr;padding:13px}.recurring-version-icon{width:40px;height:40px;border-radius:12px}.recurring-version-note p{font-size:11px}}

/* ========================================================================== 
   PAYFIT Fullstack v1.4 — automatic market data + native-like mobile shell
   ========================================================================== */

.live-dot{width:9px;height:9px;border-radius:999px;background:#25c98a;box-shadow:0 0 0 5px rgba(37,201,138,.12),0 0 18px rgba(37,201,138,.42);display:inline-block;flex:0 0 auto}
.holding-price-source{display:flex;align-items:center;gap:8px;margin-top:12px;padding:9px 11px;border-radius:12px;background:rgba(26,126,101,.08);color:#305f53}
.holding-price-source small{font-size:10.5px;font-weight:700;line-height:1.35}
.auto-price-note{display:grid;grid-template-columns:12px minmax(0,1fr);gap:12px;align-items:flex-start;padding:14px 15px;margin-bottom:16px;border-radius:16px;background:linear-gradient(145deg,#eafaf3,#f7fffb);border:1px solid #c5eadb}
.auto-price-note .live-dot{margin-top:5px}.auto-price-note strong{font-size:13px}.auto-price-note p{margin:4px 0 0;color:var(--muted);font-size:11.5px;line-height:1.5}
.quote-preview{display:grid;grid-template-columns:1fr auto;align-items:end;gap:3px 14px;padding:13px 15px;border-radius:15px;background:#173b33;color:#fff;margin-top:4px}
.quote-preview span,.quote-preview small{font-size:10px;color:#a7c8be}.quote-preview strong{font-size:20px}.quote-preview small{grid-column:1/-1}
.auto-market-box{display:grid;gap:14px}.market-health{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:15px;background:linear-gradient(145deg,#ebfaf4,#f7fffb);border:1px solid #c9e9dc}.market-health strong{display:block;font-size:13px}.market-health small{display:block;margin-top:3px;color:var(--muted);font-size:10.5px}
.auto-market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.auto-market-grid article{padding:14px;border-radius:15px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 25px rgba(25,58,49,.045)}.auto-market-grid span{display:block;color:var(--muted);font-size:10px}.auto-market-grid strong{display:block;margin:7px 0 3px;font-size:19px;letter-spacing:-.025em}.auto-market-grid small{text-transform:uppercase;font-size:9px;letter-spacing:.06em;color:#2b7b66}

@media(max-width:760px){
  /* App-like top chrome */
  body{background:linear-gradient(180deg,#f8f5ed 0,#fbfaf6 30%,#f7f3ea 100%)}
  .main{padding-left:12px;padding-right:12px;padding-bottom:calc(98px + env(safe-area-inset-bottom))}
  .topbar{position:sticky;top:0;z-index:38;margin:0 -12px;padding:14px 12px 10px;background:linear-gradient(180deg,rgba(248,245,237,.98) 75%,rgba(248,245,237,0));backdrop-filter:blur(16px)}
  .topbar-copy-wrap .eyebrow{display:none}
  .topbar h1{font-size:25px;letter-spacing:-.035em}
  .topbar-copy{font-size:11.5px;margin-top:0;max-width:92%}
  .top-actions{margin-top:2px}
  .top-actions>.btn{display:none!important}
  .currency-switch{height:40px;min-width:94px;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(22,57,48,.07)}
  .settings-shortcut{height:40px!important;width:40px!important;min-width:40px!important;background:#fff!important;box-shadow:0 8px 22px rgba(22,57,48,.07)}

  /* Native style month chip */
  .month-navigator{position:sticky;top:104px;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);box-shadow:0 8px 25px rgba(28,61,51,.07);border:1px solid rgba(33,76,64,.09)}
  .month-center span{font-size:13px}.month-center small{font-size:9px}

  /* Bottom nav with central quick-action FAB */
  .mobile-app-nav{grid-template-columns:1fr 1fr 1.12fr 1fr 1fr!important;align-items:end;padding:5px 6px 7px!important;border-radius:24px!important;background:rgba(19,45,39,.97)!important;backdrop-filter:blur(18px);box-shadow:0 18px 55px rgba(6,27,22,.34)!important}
  .mobile-app-nav button{min-height:54px!important;color:#91aba2!important;font-size:8.5px!important}
  .mobile-app-nav button.active{color:#fff!important;background:rgba(255,255,255,.08)!important}
  .mobile-app-nav .mobile-fab{overflow:visible!important;position:relative;background:transparent!important;color:#fff!important;padding-top:0!important}
  .mobile-fab-circle{display:grid;place-items:center;width:54px;height:54px;margin:-24px auto 2px;border-radius:18px;background:linear-gradient(145deg,#20a681,#0b765e);color:#fff;border:4px solid #f8f5ed;box-shadow:0 10px 28px rgba(12,124,95,.4),inset 0 1px 0 rgba(255,255,255,.35)}
  .mobile-fab>span:last-child{font-size:7.7px;color:#d8eee7;max-width:68px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-more-backdrop{background:rgba(8,29,23,.5);padding-left:8px;padding-right:8px}
  .mobile-more-sheet{border-radius:28px 28px 20px 20px;padding:18px;background:#fbfaf5}
  .mobile-more-sheet>div:first-child>div{display:grid;gap:2px}.mobile-more-sheet .eyebrow{font-size:8px;color:#2b8069}
  .mobile-more-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-more-grid button{min-height:90px;border-radius:19px;font-size:11.5px;background:linear-gradient(145deg,#fff,#f7f3ea)}

  /* Content surfaces closer to a mobile finance app */
  .hero-card{border-radius:26px;padding:23px 18px;box-shadow:0 20px 50px rgba(17,53,43,.18)}
  .panel{border-radius:22px;padding:16px;box-shadow:0 10px 26px rgba(28,60,51,.05)}
  .stats-grid.four.month-summary-grid{gap:8px}.month-summary-grid .stat-card{border-radius:20px;min-height:132px;padding:14px}
  .cards-grid,.holding-grid,.due-grid,.month-debt-grid{gap:9px}
  .finance-card,.holding-card,.debt-card,.due-card{border-radius:20px}
  .holding-price-source{padding:10px 11px}
  .auto-market-grid{grid-template-columns:1fr}.auto-market-grid article{display:grid;grid-template-columns:1fr auto;align-items:center}.auto-market-grid article span{grid-column:1}.auto-market-grid article strong{grid-column:2;grid-row:1/3;margin:0;font-size:18px}.auto-market-grid article small{grid-column:1;margin-top:4px}

  /* Forms feel like native full-height sheets */
  .modal{max-height:98dvh!important;border-radius:28px 28px 0 0!important}
  .modal-head{padding:19px 16px 14px!important}.modal-head h2{font-size:23px}
  .modal>.modal-form{padding:14px 13px 0!important}
  .modal-actions{padding:11px 13px max(13px,env(safe-area-inset-bottom))!important;gap:9px}.modal-actions .btn{height:52px;border-radius:15px}
  .field label{font-size:11px}.field .help{font-size:10px;line-height:1.35}.field input,.field select,.boutique-select-trigger{border-radius:15px!important;background:#fff!important}
  .auto-price-note{border-radius:18px;padding:13px}
}

@media(max-width:390px){
  .mobile-more-grid{grid-template-columns:1fr 1fr}
  .mobile-fab-circle{width:50px;height:50px;border-radius:17px}
  .topbar h1{font-size:23px}
  .month-navigator{top:98px}
}
.holding-search-field{position:relative;min-width:0}.holding-search-field>.field{margin:0}.symbol-results{position:absolute;left:0;right:0;top:100%;z-index:20;margin-top:6px;padding:6px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 20px 55px rgba(15,48,39,.18);max-height:260px;overflow:auto}.symbol-results button{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:10px 11px;border-radius:11px;color:var(--ink)}.symbol-results button:hover{background:#eef8f4}.symbol-results button+button{border-top:1px solid rgba(30,62,53,.06)}.symbol-results strong{display:block;font-size:12px}.symbol-results span{display:block;color:var(--muted);font-size:10px;margin-top:2px}.symbol-results small{font-size:9px;color:#2b8069;white-space:nowrap}
@media(max-width:760px){.symbol-results{position:static;margin-top:7px;max-height:220px}.symbol-results button{min-height:54px}}

/* ========================================================================== 
   PAYFIT Fullstack v1.6 — stronger auth CTA + mobile-first transaction entry
   ========================================================================== */

/* Auth hierarchy: registration is the primary alternative, demo is secondary. */
.auth-card .auth-switch.register-cta{
  min-height:52px;
  margin:10px 0 0;
  border:1px solid rgba(181,113,35,.22);
  background:linear-gradient(135deg,#ffc34d 0%,#f39b42 48%,#ef745b 100%);
  color:#20312c;
  font-weight:850;
  font-size:13.5px;
  box-shadow:0 12px 28px rgba(224,126,56,.20),inset 0 1px 0 rgba(255,255,255,.48);
}
.auth-card .auth-switch.register-cta:hover{
  color:#142a24;
  background:linear-gradient(135deg,#ffd064 0%,#f6a64b 48%,#f17d62 100%);
  box-shadow:0 16px 34px rgba(224,126,56,.27),inset 0 1px 0 rgba(255,255,255,.58);
  transform:translateY(-1px);
}
.auth-card .auth-switch.login-cta{
  margin:10px 0 0;
  border:1px solid rgba(13,132,104,.17);
  background:linear-gradient(135deg,#e8fbf4,#f4fffb);
  color:#08705b;
  font-weight:800;
}
.auth-card>.btn.auth-demo-btn,
.auth-card>.btn.ghost.auth-demo-btn{
  width:100%;
  min-height:48px;
  margin-top:0;
  border:1px solid #ddd6ca;
  background:#fffdf9;
  color:#66736f;
  box-shadow:none;
}
.auth-card>.btn.auth-demo-btn:hover{
  border-color:#cfc5b5;
  background:#f8f4ec;
  color:#344841;
}
.auth-or{height:42px;margin-top:2px}

/* Transaction amount is deliberately the strongest element in the form. */
.movement-form,.movement-form>*{min-width:0;max-width:100%}
.movement-primary-entry{
  width:100%;
  padding:18px 20px 20px;
  border-width:1px;
  border-color:rgba(14,128,101,.20);
  background:
    radial-gradient(circle at 90% 0%,rgba(32,194,148,.13),transparent 34%),
    linear-gradient(145deg,#f7fffb 0%,#eefaf5 100%);
  box-shadow:0 14px 34px rgba(10,100,78,.085),inset 0 1px 0 rgba(255,255,255,.9);
}
.movement-primary-entry.expense{
  border-color:rgba(225,102,79,.20);
  background:
    radial-gradient(circle at 90% 0%,rgba(242,111,84,.13),transparent 34%),
    linear-gradient(145deg,#fffaf8 0%,#fff0eb 100%);
  box-shadow:0 14px 34px rgba(179,73,52,.07),inset 0 1px 0 rgba(255,255,255,.9);
}
.movement-primary-entry:after{display:none}
.movement-amount-head{display:flex;align-items:center;gap:11px;margin-bottom:6px;position:relative;z-index:2}
.movement-step-badge{
  width:31px;height:31px;flex:0 0 31px;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(145deg,#12a880,#08745d);color:#fff;font-size:12px;font-weight:900;
  box-shadow:0 7px 16px rgba(8,116,93,.18);
}
.movement-primary-entry.expense .movement-step-badge{background:linear-gradient(145deg,#f07b60,#c85242);box-shadow:0 7px 16px rgba(200,82,66,.18)}
.movement-amount-copy{display:grid;gap:1px;min-width:0}
.movement-amount-copy strong{font:650 14px/1.25 var(--display,"Bricolage Grotesque",sans-serif);color:#173b33}
.movement-primary-entry.expense .movement-amount-copy strong{color:#8f3e34}
.movement-amount-copy span{font-size:10.5px;line-height:1.35;color:#71847e}
.movement-primary-entry .money-entry{height:68px;grid-template-columns:minmax(0,1fr) auto;border-bottom:2px solid rgba(15,126,100,.22)}
.movement-primary-entry.expense .money-entry{border-color:rgba(203,83,65,.20)}
.movement-primary-entry .money-entry input{
  min-width:0;width:100%;height:68px!important;font-size:40px!important;font-weight:700!important;
  color:#0c5f4c;letter-spacing:-.045em
}
.movement-primary-entry.expense .money-entry input{color:#a44739}
.movement-primary-entry .money-entry span{
  flex:0 0 auto;font-size:12px;font-weight:900;padding:8px 11px;border-radius:11px;
  background:#d8f2e8;color:#08705b
}
.movement-primary-entry.expense .money-entry span{background:#f7ddd6;color:#a34739}
.movement-amount-help{display:block;margin-top:8px!important;font-size:10.5px!important;line-height:1.4;color:#73847f!important}
.movement-guide-slot{width:100%;min-width:0;max-width:100%;overflow:hidden}
.movement-guide-slot .guide-tip{width:100%;min-width:0;max-width:100%;margin:0;box-sizing:border-box}
.movement-guide-slot .guide-body,.movement-guide-slot .guide-body *{min-width:0;overflow-wrap:anywhere}

@media(max-width:760px){
  .auth-card .auth-switch.register-cta{min-height:54px;font-size:14px;border-radius:15px}
  .auth-card>.btn.auth-demo-btn{min-height:50px}

  .movement-form{gap:13px!important;overflow-x:hidden}
  .movement-intro{gap:10px!important}
  .movement-intro>div:first-child p{font-size:10.5px;line-height:1.45}
  .movement-primary-entry{padding:15px 14px 16px;border-radius:20px}
  .movement-amount-head{gap:9px;margin-bottom:4px}
  .movement-step-badge{width:29px;height:29px;flex-basis:29px;border-radius:9px}
  .movement-amount-copy strong{font-size:14px}.movement-amount-copy span{font-size:10px}
  .movement-primary-entry .money-entry{height:64px;grid-template-columns:minmax(0,1fr) auto;gap:9px}
  .movement-primary-entry .money-entry input{height:64px!important;font-size:36px!important;line-height:1!important}
  .movement-primary-entry .money-entry span{font-size:11px;padding:7px 9px;border-radius:10px}
  .movement-amount-help{font-size:10px!important;margin-top:7px!important}

  /* Help must never push the primary input sideways. It lives below the amount. */
  .movement-guide-slot{overflow:visible}
  .movement-guide-slot .guide-tip,
  .modal .movement-guide-slot .guide-tip{
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:9px!important;padding:11px 12px!important;border-radius:16px!important;
    overflow:hidden!important
  }
  .movement-guide-slot .guide-symbol{width:34px!important;height:34px!important;border-radius:11px!important}
  .movement-guide-slot .guide-kicker{font-size:8px}
  .movement-guide-slot .guide-body>strong{font-size:13px!important;line-height:1.3}
  .movement-guide-slot .guide-body p{font-size:10.5px!important;line-height:1.45;margin-top:4px}
  .movement-guide-slot .guide-body ul{display:none}
  .movement-guide-slot .guide-dismiss{grid-column:1/-1!important;width:100%!important;min-height:38px!important;margin-top:0!important}

  .movement-details{grid-template-columns:1fr!important;gap:12px!important}
  .movement-details>.field,.movement-details>.boutique-select{min-width:0;width:100%}
}

@media(max-width:390px){
  .movement-primary-entry .money-entry input{font-size:33px!important}
  .movement-primary-entry{padding-left:13px;padding-right:13px}
}

/* ========================================================================== 
   PAYFIT Fullstack v1.7 — mobile transaction amount hardening
   The primary amount entry has its own component so legacy generic MoneyInput
   rules can never collapse or hide it inside the movement bottom sheet.
   ========================================================================== */
.movement-primary-entry{
  display:block!important;
  height:auto!important;
  min-height:154px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.movement-primary-entry .movement-amount-head{width:100%;min-width:0}
.movement-amount-input{
  width:100%;
  min-width:0;
  min-height:70px;
  margin-top:10px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:0 14px 0 16px;
  border:1.5px solid rgba(16,136,105,.20);
  border-radius:17px;
  background:rgba(255,255,255,.88);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 9px 24px rgba(17,83,66,.06);
  position:relative;
  z-index:3;
  box-sizing:border-box;
}
.movement-amount-input.expense{border-color:rgba(220,91,70,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 9px 24px rgba(160,65,49,.055)}
.movement-amount-input.focused{border-color:#0b9673;box-shadow:0 0 0 4px rgba(17,168,128,.10),0 12px 28px rgba(17,83,66,.08)}
.movement-amount-input.expense.focused{border-color:#dc604d;box-shadow:0 0 0 4px rgba(229,100,78,.10),0 12px 28px rgba(150,64,49,.08)}
.movement-amount-input input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:68px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-family:var(--display,"Bricolage Grotesque",sans-serif)!important;
  font-size:38px!important;
  line-height:1!important;
  font-weight:720!important;
  letter-spacing:-.045em!important;
  color:#08745b!important;
  -webkit-appearance:none;
  appearance:none;
}
.movement-amount-input.expense input{color:#b34d3e!important}
.movement-amount-input input::placeholder{color:rgba(58,91,81,.28)!important;opacity:1}
.movement-amount-input.expense input::placeholder{color:rgba(179,77,62,.25)!important}
.movement-amount-currency{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:48px;
  min-height:34px;
  padding:0 10px;
  border-radius:11px;
  background:#dff7ed;
  color:#08745b;
  font-size:12px;
  font-weight:900;
  letter-spacing:.035em;
}
.movement-amount-input.expense .movement-amount-currency{background:#fee5df;color:#a64437}

@media(max-width:760px){
  .movement-primary-entry{
    width:100%!important;
    min-width:0!important;
    min-height:148px!important;
    padding:14px 13px 15px!important;
    border-radius:18px!important;
  }
  .movement-amount-input{
    min-height:68px!important;
    margin-top:9px!important;
    padding-left:14px!important;
    padding-right:10px!important;
    gap:8px!important;
    border-radius:15px!important;
  }
  .movement-amount-input input{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    height:66px!important;
    font-size:34px!important;
  }
  .movement-amount-currency{min-width:44px;min-height:32px;padding:0 8px;font-size:11px}
  .movement-amount-help{display:block!important;white-space:normal!important;overflow-wrap:anywhere!important}
  /* Guide text may wrap but can never establish a wider intrinsic width. */
  .movement-guide-slot,.movement-guide-slot>*{width:100%!important;max-width:100%!important;min-width:0!important}
}

@media(max-width:390px){
  .movement-primary-entry{min-height:144px!important;padding-left:12px!important;padding-right:12px!important}
  .movement-amount-input input{font-size:32px!important}
  .movement-amount-currency{min-width:42px;font-size:10.5px}
}


/* ========================================================================== */
/* PAYFIT Fullstack v1.8 — auth action spacing + palette harmony              */
/* ========================================================================== */
.auth-alt-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  width:100%;
  margin-top:2px;
}
.auth-alt-actions .auth-switch{
  margin:0;
  width:100%;
}
.auth-alt-actions>.btn{
  width:100%;
  margin:0!important;
}
.auth-card .auth-switch.register-cta{
  min-height:54px;
  border:1px solid rgba(173,128,44,.28);
  background:linear-gradient(135deg,#f4cd66 0%,#edb74d 55%,#e7a83e 100%);
  color:#143b32;
  box-shadow:0 12px 28px rgba(185,136,49,.18),inset 0 1px 0 rgba(255,255,255,.55);
}
.auth-card .auth-switch.register-cta:hover{
  color:#0f3028;
  background:linear-gradient(135deg,#f8d878 0%,#f1c15a 55%,#eab149 100%);
  border-color:rgba(161,116,37,.34);
  box-shadow:0 16px 34px rgba(177,127,43,.23),inset 0 1px 0 rgba(255,255,255,.65);
}
.auth-card>.btn.auth-demo-btn,
.auth-card>.btn.ghost.auth-demo-btn,
.auth-alt-actions>.btn.auth-demo-btn{
  min-height:50px;
  border:1px solid rgba(22,99,80,.18);
  background:linear-gradient(180deg,#fffdf8 0%,#f7f3e9 100%);
  color:#42615a;
  font-weight:780;
  box-shadow:0 5px 15px rgba(24,65,54,.035);
}
.auth-card>.btn.auth-demo-btn:hover,
.auth-alt-actions>.btn.auth-demo-btn:hover{
  border-color:rgba(22,99,80,.30);
  background:linear-gradient(180deg,#fbfff9 0%,#eff8f3 100%);
  color:#176f5f;
  box-shadow:0 9px 22px rgba(24,85,69,.07);
}
.auth-or{
  height:46px;
  margin:3px 0 2px;
}
.auth-panel{
  background:
    radial-gradient(circle at 80% 17%,rgba(20,132,102,.105),transparent 30%),
    radial-gradient(circle at 20% 86%,rgba(226,178,78,.13),transparent 28%),
    linear-gradient(180deg,#fffdf9 0%,#f7f2e7 100%);
}
.auth-card{
  border-color:rgba(21,74,61,.105);
  background:rgba(255,253,248,.91);
  box-shadow:0 28px 74px rgba(31,60,52,.10),inset 0 1px 0 rgba(255,255,255,.92);
}
.auth-card .form-stack>.btn.primary{
  background:linear-gradient(135deg,#129071 0%,#0d8066 56%,#0b6f5a 100%);
  box-shadow:0 12px 28px rgba(12,126,99,.20);
}
.auth-card .form-stack>.btn.primary:hover{
  background:linear-gradient(135deg,#18a07d 0%,#108b6e 56%,#0b755e 100%);
}
@media(max-width:640px){
  .auth-alt-actions{gap:10px}
  .auth-card .auth-switch.register-cta{min-height:52px}
  .auth-alt-actions>.btn.auth-demo-btn{min-height:50px}
}

/* ========================================================================== */
/* PAYFIT Fullstack v1.9 — mobile auth + contextual FAB + mobile logout       */
/* ========================================================================== */

.mobile-more-user{display:none}

@media(max-width:900px){
  /* Auth becomes a true one-screen mobile experience. The desktop visual
     panel is deliberately removed instead of being squeezed beside the form. */
  .auth-shell{
    display:block!important;
    width:100%!important;
    min-height:100dvh!important;
    background:
      radial-gradient(circle at 92% 4%,rgba(18,151,116,.14),transparent 28%),
      radial-gradient(circle at 7% 96%,rgba(225,174,70,.13),transparent 30%),
      linear-gradient(180deg,#fffdf9 0%,#f7f2e8 100%)!important;
    overflow-x:hidden!important;
  }
  .auth-brand{display:none!important}
  .auth-panel{
    width:100%!important;
    min-height:100dvh!important;
    height:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:max(22px,env(safe-area-inset-top)) 18px max(28px,env(safe-area-inset-bottom))!important;
    overflow:visible!important;
    background:transparent!important;
  }
  .auth-panel:before{display:none!important}
  .auth-card{
    display:block!important;
    width:min(500px,100%)!important;
    max-width:500px!important;
    min-width:0!important;
    height:auto!important;
    margin:0 auto!important;
    padding:28px 24px 24px!important;
    border:1px solid rgba(21,74,61,.10)!important;
    border-radius:26px!important;
    background:rgba(255,253,248,.94)!important;
    box-shadow:0 24px 64px rgba(28,66,55,.13),inset 0 1px 0 rgba(255,255,255,.95)!important;
    overflow:visible!important;
  }
  .auth-mobile-brand{
    display:flex!important;
    align-items:center!important;
    margin:0 0 28px!important;
  }
  .auth-mobile-brand strong{font:650 21px/1 var(--display);color:#123a31}
  .auth-card h2{font-size:38px!important;line-height:1.04!important;margin-bottom:8px!important}
  .auth-card>.muted{font-size:13.5px!important;line-height:1.55!important;margin-bottom:24px!important}
  .auth-card .form-stack{gap:14px!important}
  .auth-card .field{min-width:0!important;width:100%!important}
  .auth-card .field input,
  .auth-card .field select{
    width:100%!important;
    min-width:0!important;
    min-height:52px!important;
    height:52px!important;
    font-size:16px!important;
    border-radius:15px!important;
  }
  .auth-card .form-stack>.btn.primary{width:100%!important;min-height:52px!important;border-radius:15px!important}
  .auth-or{width:100%!important;min-width:0!important;margin:4px 0!important}
  .auth-alt-actions{width:100%!important;min-width:0!important;gap:10px!important}
  .auth-alt-actions .auth-switch,
  .auth-alt-actions>.btn.auth-demo-btn{width:100%!important;min-width:0!important}

  /* The contextual center action is the single mobile primary action.
     The desktop header CTA is removed on small screens to avoid duplicates. */
  .top-actions>.btn{display:none!important}
  .mobile-app-nav .mobile-fab{min-width:0!important;overflow:visible!important}
  .mobile-app-nav .mobile-fab>span:last-child{
    display:block!important;
    width:100%!important;
    max-width:78px!important;
    margin:0 auto!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    color:#e0f5ee!important;
    font-size:8px!important;
    font-weight:800!important;
  }
  .mobile-fab-circle{
    background:linear-gradient(145deg,#16a980,#08765d)!important;
    box-shadow:0 11px 30px rgba(5,124,94,.42),inset 0 1px 0 rgba(255,255,255,.42)!important;
  }

  /* More sheet doubles as the mobile account menu. */
  .mobile-more-sheet{max-height:calc(100dvh - 105px);overflow-y:auto!important;overscroll-behavior:contain}
  .mobile-more-head{position:sticky;top:-18px;z-index:3;background:#fbfaf5;padding-top:18px!important}
  .mobile-more-user{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) auto;
    align-items:center;
    gap:11px;
    margin-top:14px;
    padding:12px;
    border:1px solid rgba(20,79,64,.11);
    border-radius:18px;
    background:linear-gradient(145deg,#f3faf6,#fffaf1);
  }
  .mobile-user-avatar{
    width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
    background:linear-gradient(145deg,#e4bd67,#c9943e);color:#123b32;
    font:800 17px var(--display);box-shadow:inset 0 1px 0 rgba(255,255,255,.55)
  }
  .mobile-user-copy{min-width:0;display:grid;gap:2px}
  .mobile-user-copy strong{font-size:12.5px;color:#173c33;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-user-copy small{font-size:9.5px;color:#7b8d86;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-logout-btn{
    border:1px solid rgba(192,72,58,.16);background:#fff3ef;color:#b14b3f;
    min-height:40px;padding:0 11px;border-radius:12px;display:inline-flex;align-items:center;gap:6px;
    font-size:10.5px;font-weight:850
  }
}

@media(max-width:520px){
  .auth-panel{
    align-items:flex-start!important;
    padding:max(14px,env(safe-area-inset-top)) 12px max(20px,env(safe-area-inset-bottom))!important;
  }
  .auth-card{
    width:100%!important;
    padding:22px 17px 19px!important;
    border-radius:22px!important;
  }
  .auth-mobile-brand{margin-bottom:21px!important}
  .auth-mobile-brand .brand-mark{width:40px;height:40px;border-radius:13px;font-size:20px}
  .auth-card .eyebrow{font-size:8.5px!important;margin-bottom:7px!important}
  .auth-card h2{font-size:32px!important}
  .auth-card>.muted{font-size:12.5px!important;margin-bottom:20px!important}
  .auth-card .field>span{font-size:11.5px!important}
  .auth-card .form-stack{gap:12px!important}
  .auth-or{height:36px!important}
  .auth-card .auth-switch.register-cta{min-height:50px!important;font-size:12.5px!important;padding-left:10px!important;padding-right:10px!important}
  .auth-alt-actions>.btn.auth-demo-btn{min-height:47px!important;font-size:12px!important}

  .mobile-more-user{grid-template-columns:40px minmax(0,1fr);padding:11px}
  .mobile-user-avatar{width:40px;height:40px;border-radius:13px}
  .mobile-logout-btn{grid-column:1/-1;width:100%;justify-content:center;margin-top:2px;min-height:42px;font-size:11px}
}

@media(max-width:390px){
  .auth-panel{padding-left:9px!important;padding-right:9px!important}
  .auth-card{padding-left:15px!important;padding-right:15px!important}
  .auth-card h2{font-size:30px!important}
  .mobile-app-nav .mobile-fab>span:last-child{max-width:62px!important;font-size:7.3px!important}
}

@media(max-height:650px) and (max-width:900px){
  .auth-panel{align-items:flex-start!important}
  .auth-card{margin-top:0!important;margin-bottom:0!important}
  .auth-mobile-brand{margin-bottom:16px!important}
  .auth-card>.muted{margin-bottom:16px!important}
  .auth-card .form-stack{gap:10px!important}
  .auth-or{height:32px!important}
}

/* ========================================================================== */
/* PAYFIT Fullstack v2.0 — mobile form UX + single-open selects + auth scene */
/* ========================================================================== */

/* Select behavior: menu is always above nearby fields, but only the currently
   opened select is elevated. The JS layer guarantees one open select at once. */
.boutique-select{isolation:isolate}
.boutique-select-backdrop{display:none}
.boutique-select-mobile-head{display:none}
.boutique-select-menu{z-index:75}
.boutique-select-trigger:focus-visible{outline:3px solid rgba(12,143,108,.18);outline-offset:2px}

/* Desktop auth: preserve the form, improve only the visual scene behind it. */
.auth-shell{position:relative;isolation:isolate}
.auth-brand{
  background:
    radial-gradient(circle at 78% 18%,rgba(32,191,151,.31) 0,transparent 31%),
    radial-gradient(circle at 8% 88%,rgba(236,184,73,.22) 0,transparent 27%),
    linear-gradient(145deg,#082b25 0%,#0c493c 54%,#08705a 100%)!important;
}
.auth-brand:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.52;
  background:
    linear-gradient(115deg,transparent 0 42%,rgba(255,255,255,.035) 42.2% 42.6%,transparent 42.8% 100%),
    radial-gradient(circle at 18% 26%,rgba(255,255,255,.09) 0 1px,transparent 1.4px);
  background-size:auto,22px 22px;
}
.auth-panel{
  background:
    radial-gradient(circle at 82% 13%,rgba(16,171,132,.17),transparent 28%),
    radial-gradient(circle at 13% 88%,rgba(231,175,60,.17),transparent 30%),
    linear-gradient(180deg,#fffefa 0%,#f6f0e4 100%)!important;
}
.auth-panel:after{
  content:"";position:absolute;width:520px;height:520px;border-radius:50%;left:-270px;bottom:-310px;pointer-events:none;
  border:1px solid rgba(10,116,91,.07);box-shadow:0 0 0 58px rgba(10,116,91,.025),0 0 0 118px rgba(10,116,91,.014)
}
.auth-card{box-shadow:0 34px 88px rgba(21,59,49,.13),inset 0 1px 0 rgba(255,255,255,.96)!important}

/* Mobile select UX: custom selects become touch-friendly bottom sheets rather
   than tiny menus trapped inside a scrolling form. */
@media(max-width:640px){
  .boutique-select.open{z-index:190!important}
  .boutique-select-backdrop{
    display:block;position:fixed;inset:0;z-index:188;border:0;padding:0;margin:0;
    background:rgba(8,27,22,.46);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)
  }
  .boutique-select-menu{
    position:fixed!important;z-index:189!important;
    left:10px!important;right:10px!important;top:auto!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    width:auto!important;max-height:min(62dvh,520px)!important;
    overflow-y:auto!important;overscroll-behavior:contain;
    padding:8px 8px max(10px,env(safe-area-inset-bottom))!important;
    border:1px solid rgba(18,80,64,.12)!important;border-radius:22px!important;
    background:rgba(255,253,248,.985)!important;
    box-shadow:0 -14px 58px rgba(7,31,25,.24),inset 0 1px 0 rgba(255,255,255,.92)!important;
    animation:payfitSelectSheetIn .18s ease both
  }
  .boutique-select-mobile-head{
    position:sticky;top:-8px;z-index:3;display:flex!important;align-items:center;justify-content:space-between;gap:12px;
    min-height:54px;padding:7px 9px 10px;margin:0 0 3px;
    background:linear-gradient(180deg,#fffdf8 78%,rgba(255,253,248,.84));
    border-bottom:1px solid rgba(28,79,65,.09)
  }
  .boutique-select-mobile-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:750 13px/1.2 var(--body);color:#173f35}
  .boutique-select-mobile-head button{width:38px;height:38px;flex:0 0 38px;border:0;border-radius:12px;background:#f2eee5;color:#50625c;font-size:22px;line-height:1}
  .boutique-select-menu>button:not(.boutique-select-mobile-head button){min-height:54px!important;border-radius:14px!important;padding:10px 12px!important;font-size:14px!important}
  .boutique-select-menu>button small{font-size:11px!important;line-height:1.35!important;margin-top:3px!important}
  .boutique-select-trigger{position:relative;z-index:1}

  /* Form rhythm: inputs stay readable and never sit under an opened select. */
  .modal>.modal-form{scroll-padding-bottom:150px}
  .modal-form .field,.modal-form .form-grid>*{min-width:0!important}
  .modal-form .field>span{font-size:12px!important;font-weight:760!important;color:#405a52!important}
  .modal-form .field small{font-size:10.5px!important;line-height:1.45!important}

  /* Login background: app-like but calm on phones; form geometry is untouched. */
  .auth-shell:before{
    content:"P";position:fixed;right:-24px;top:5dvh;z-index:0;pointer-events:none;
    font:800 190px/.8 var(--display);letter-spacing:-.08em;color:rgba(6,116,89,.045);transform:rotate(-8deg)
  }
  .auth-shell:after{
    content:"";position:fixed;left:-90px;bottom:-100px;width:260px;height:260px;border-radius:50%;z-index:0;pointer-events:none;
    border:1px solid rgba(204,146,43,.10);box-shadow:0 0 0 45px rgba(204,146,43,.035),0 0 0 90px rgba(12,130,101,.018)
  }
  .auth-panel{position:relative;z-index:1!important;background:transparent!important}
}

@keyframes payfitSelectSheetIn{from{opacity:0;transform:translateY(22px) scale(.985)}to{opacity:1;transform:none}}

@media(prefers-reduced-motion:reduce){.boutique-select-menu{animation:none!important}}

/* ========================================================================== */
/* PAYFIT Fullstack v2.1 — first-use onboarding journey                       */
/* ========================================================================== */
.onboarding-journey{
  position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;
  padding:20px 22px;border:1px solid rgba(12,118,91,.13);border-radius:24px;overflow:hidden;
  background:
    radial-gradient(circle at 88% 10%,rgba(20,186,143,.13),transparent 31%),
    linear-gradient(135deg,#fffdf7 0%,#eef9f3 100%);
  box-shadow:0 16px 44px rgba(16,65,52,.08)
}
.onboarding-journey:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-88px;bottom:-120px;border:1px solid rgba(208,154,57,.18);box-shadow:0 0 0 30px rgba(208,154,57,.05),0 0 0 62px rgba(18,135,104,.025);pointer-events:none}
.onboarding-progress{position:absolute;left:0;right:0;top:0;display:flex;height:4px;gap:4px;padding:0 22px}
.onboarding-progress i{flex:1;background:rgba(25,78,65,.09);border-radius:0 0 5px 5px}
.onboarding-progress i.active{background:linear-gradient(90deg,#0aa37d,#d9a43d)}
.onboarding-icon,.first-account-badge{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;flex:0 0 52px;background:linear-gradient(145deg,#0d8f70,#0b5c4b);color:white;font:800 15px/1 var(--display);box-shadow:0 10px 26px rgba(5,102,78,.22),inset 0 1px 0 rgba(255,255,255,.24)}
.onboarding-copy{min-width:0}.onboarding-copy .eyebrow,.first-account-empty .eyebrow{display:block;margin-bottom:4px;color:#66857b;font-size:9px;font-weight:850;letter-spacing:.18em}.onboarding-copy h3,.first-account-empty h3{margin:0;color:#153b32;font:700 clamp(18px,2vw,24px)/1.2 var(--display)}.onboarding-copy p,.first-account-empty p{max-width:760px;margin:6px 0 0;color:#667b74;font-size:12px;line-height:1.55}
.onboarding-cta{position:relative;z-index:1;min-height:46px;padding:0 17px;border:0;border-radius:15px;background:linear-gradient(135deg,#0b9a76,#08755c);color:white;font:800 11.5px/1 var(--body);white-space:nowrap;box-shadow:0 10px 25px rgba(8,116,89,.18);cursor:pointer;transition:.18s ease}
.onboarding-cta:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(8,116,89,.23)}
.first-account-empty{display:flex;align-items:center;gap:16px;padding:18px 20px;border:1px solid rgba(208,154,57,.18);border-radius:22px;background:linear-gradient(135deg,#fff9eb,#f0faf5);box-shadow:0 12px 36px rgba(18,61,50,.06)}
.first-account-empty .grow{min-width:0;flex:1}.first-account-empty .onboarding-cta{background:linear-gradient(135deg,#dca943,#c9852d);color:#183f35;box-shadow:0 10px 24px rgba(198,132,38,.16)}
.onboarding-modal-note{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:start;margin:0 0 14px;padding:13px 14px;border:1px solid rgba(18,125,96,.13);border-radius:17px;background:linear-gradient(135deg,#edf9f4,#fffaf0)}
.onboarding-modal-note>span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#0b8064;color:#fff;font-weight:900;font-size:12px}
.onboarding-modal-note.success>span{background:linear-gradient(145deg,#0b9e77,#0a6f58)}
.onboarding-modal-note strong{display:block;margin:1px 0 4px;color:#173f35;font-size:12px}.onboarding-modal-note p{margin:0;color:#667d75;font-size:10.5px;line-height:1.48}

@media(max-width:760px){
  .onboarding-journey{grid-template-columns:44px minmax(0,1fr);gap:12px;padding:18px 15px 15px;border-radius:20px}
  .onboarding-icon{width:44px;height:44px;flex-basis:44px;border-radius:14px}
  .onboarding-copy h3,.first-account-empty h3{font-size:17px}.onboarding-copy p,.first-account-empty p{font-size:11px}
  .onboarding-journey .onboarding-cta{grid-column:1/-1;width:100%;min-height:47px}
  .first-account-empty{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:15px;border-radius:19px}
  .first-account-badge{width:44px;height:44px;flex-basis:44px;border-radius:14px}
  .first-account-empty .onboarding-cta{grid-column:1/-1;width:100%;min-height:47px}
}

/* ========================================================================== */
/* PAYFIT Fullstack v2.2 — calmer onboarding + mobile sheet footer hardening   */
/* ========================================================================== */

/* Onboarding should guide, not compete with the dashboard. Keep one calm
   progress rail and remove the concentric decorative "waves". */
.onboarding-journey{
  border-color:rgba(12,118,91,.12)!important;
  background:linear-gradient(112deg,#fffdf8 0%,#f4faf6 58%,#edf8f3 100%)!important;
  box-shadow:0 14px 38px rgba(16,65,52,.065)!important;
}
.onboarding-journey:after{display:none!important}
.onboarding-progress{
  position:absolute!important;
  left:22px!important;right:22px!important;top:0!important;
  display:block!important;height:3px!important;padding:0!important;gap:0!important;
  overflow:hidden!important;border-radius:0 0 8px 8px!important;
  background:rgba(21,75,62,.075)!important;
}
.onboarding-progress i{
  display:block!important;height:100%!important;min-width:0!important;flex:none!important;
  border-radius:0 0 8px 8px!important;
  background:linear-gradient(90deg,#0aa37d 0%,#26a17e 72%,#d5a345 100%)!important;
  box-shadow:none!important;transition:none!important;
}
.onboarding-progress i.active{background:inherit!important}
.onboarding-icon,.first-account-badge{
  box-shadow:0 8px 20px rgba(5,102,78,.16),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
.onboarding-cta{
  box-shadow:0 8px 20px rgba(8,116,89,.15)!important;
}
.onboarding-cta:hover{box-shadow:0 10px 24px rgba(8,116,89,.19)!important}

@media(max-width:760px){
  .onboarding-progress{left:15px!important;right:15px!important}
}

/* Mobile modals are a real bottom sheet. The sheet and its footer own the
   entire lower safe area so no dark/blank strip can appear below actions. */
@media(max-width:640px){
  html,body,#root{min-height:100dvh!important;background:#f7f4ed!important;overflow-x:hidden!important}
  .modal-backdrop{
    position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;
    padding:0!important;margin:0!important;overflow:hidden!important;align-items:flex-end!important;justify-content:center!important;
    background:rgba(8,27,22,.52)!important;
  }
  .modal{
    width:100vw!important;max-width:100vw!important;margin:0!important;padding:0!important;
    max-height:98dvh!important;overflow:hidden!important;
    border-radius:26px 26px 0 0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;
    background:#fffdf8!important;
    box-shadow:0 -18px 58px rgba(6,28,22,.25)!important;
  }
  .modal-head{
    flex:0 0 auto!important;margin:0!important;
    background:linear-gradient(180deg,#fffefa,#fbf8f1)!important;
  }
  .modal>.modal-form{
    flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
    padding-bottom:0!important;scroll-padding-bottom:104px!important;
    background:#fffdf8!important;
  }
  .modal-actions{
    position:sticky!important;left:0!important;right:0!important;bottom:-1px!important;z-index:40!important;
    width:auto!important;margin:12px -13px 0!important;
    padding:12px 13px calc(14px + env(safe-area-inset-bottom))!important;
    min-height:calc(76px + env(safe-area-inset-bottom))!important;
    align-items:center!important;
    border-top:1px solid rgba(213,205,191,.92)!important;
    background:rgba(255,253,248,.995)!important;
    -webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;
    box-shadow:0 -12px 30px rgba(24,50,43,.075)!important;
  }
  .modal-actions .btn,.modal-actions .btn.primary{
    height:52px!important;min-height:52px!important;border-radius:15px!important;
  }
  .movement-balance-preview{margin-bottom:2px!important}
}

@media(max-width:390px){
  .modal-actions{
    margin-left:-13px!important;margin-right:-13px!important;
    padding-left:11px!important;padding-right:11px!important;
    gap:8px!important;
  }
  .modal-actions .btn,.modal-actions .btn.primary{font-size:12.5px!important}
}

/* ========================================================================== 
   PAYFIT v2.3 — mobile modal action bar geometry fix
   The mobile scroll container previously inherited scrollbar-gutter: stable.
   That reserved a hidden strip on the right and made the sticky action bar
   look shifted to the left. Keep the scrolling body independent from the
   full-width action bar.
   ========================================================================== */
@media (max-width:640px){
  .modal{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  .modal>.modal-form{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    scrollbar-gutter:auto!important;
    scrollbar-width:none!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .modal>.modal-form::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
  }

  .modal-actions{
    position:sticky!important;
    left:auto!important;
    right:auto!important;
    bottom:0!important;
    box-sizing:border-box!important;
    width:calc(100% + 28px)!important;
    max-width:none!important;
    min-width:0!important;
    margin:12px -14px 0!important;
    padding:12px 14px calc(14px + env(safe-area-inset-bottom))!important;
    display:grid!important;
    grid-template-columns:minmax(0,.82fr) minmax(0,1.28fr)!important;
    gap:10px!important;
    overflow:visible!important;
  }

  .modal-actions>.btn,
  .modal-actions>.btn.primary,
  .movement-actions>.btn,
  .movement-actions>.btn.primary{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
}

@media (max-width:390px){
  .modal>.modal-form{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .modal-actions{
    width:calc(100% + 24px)!important;
    margin-left:-12px!important;
    margin-right:-12px!important;
    padding-left:12px!important;
    padding-right:12px!important;
    gap:9px!important;
  }
}

/* ========================================================================== */
/* PAYFIT Fullstack v2.4 — mobile debt actions + select close + guide spacing */
/* ========================================================================== */

/* Debt installment payments read as one clear mobile action instead of a
   cramped full-width button inside a two-column installment tile. */
@media (max-width:640px){
  .debt-card .schedule-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .debt-card .installment-chip{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto!important;
    column-gap:12px!important;
    row-gap:7px!important;
    min-height:0!important;
    padding:13px 13px 12px!important;
    border-radius:16px!important;
    align-items:center!important;
  }
  .debt-card .installment-chip-top{
    grid-column:1/-1!important;
    grid-row:1!important;
    width:100%!important;
    align-items:center!important;
  }
  .debt-card .installment-chip>strong{
    grid-column:1!important;
    grid-row:2!important;
    margin:0!important;
    font-size:16px!important;
    line-height:1.2!important;
  }
  .debt-card .installment-paid-at{
    grid-column:1!important;
    grid-row:3!important;
    margin:0!important;
  }
  .debt-card .installment-source{
    grid-column:1!important;
    grid-row:4!important;
    margin:0!important;
    padding-top:7px!important;
  }
  .debt-card .installment-action{
    grid-column:2!important;
    grid-row:2/5!important;
    align-self:center!important;
    width:auto!important;
    min-width:116px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0 14px!important;
    border-radius:13px!important;
    font-size:11.5px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    box-shadow:none!important;
  }
  .debt-card .installment-action.pay{
    background:linear-gradient(135deg,#069a76,#08745d)!important;
    color:#fff!important;
    border:1px solid rgba(5,106,82,.18)!important;
  }
  .debt-card .installment-action.undo{
    background:#f4efe5!important;
    color:#6d5c50!important;
    border:1px solid #e4d9c9!important;
  }

  /* The first guide in the debt form must start below the modal header. Never
     let its negative desktop margin make the helper text look clipped. */
  .modal>.modal-form.debt-form{
    padding-top:17px!important;
    scroll-padding-top:17px!important;
  }
  .modal .debt-form>.guide-tip{
    margin:0 0 15px!important;
    overflow:visible!important;
  }
  .modal .debt-form>.guide-tip:after{
    display:none!important;
  }
}

@media (max-width:390px){
  .debt-card .installment-chip{
    grid-template-columns:1fr!important;
  }
  .debt-card .installment-chip-top,
  .debt-card .installment-chip>strong,
  .debt-card .installment-paid-at,
  .debt-card .installment-source,
  .debt-card .installment-action{
    grid-column:1!important;
    grid-row:auto!important;
  }
  .debt-card .installment-action{
    width:100%!important;
    min-width:0!important;
    margin-top:3px!important;
  }
}

/* ========================================================================== */
/* PAYFIT Fullstack v2.5 — native mobile selects + true mobile movement cards */
/* ========================================================================== */
.payfit-select-shell{width:100%;min-width:0}
.boutique-native-select{display:none;position:relative;width:100%;min-width:0}
.boutique-native-select select{
  width:100%;height:52px;min-height:52px;box-sizing:border-box;
  appearance:none;-webkit-appearance:none;
  border:1px solid #dcd6ca;border-radius:14px;background:#fffdfa;
  color:var(--ink);padding:0 42px 0 15px;font:650 16px/1 var(--body);
  outline:none;box-shadow:none
}
.boutique-native-select select:focus{border-color:#5f9587;box-shadow:0 0 0 4px var(--focus);background:#fff}
.boutique-native-select i{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-style:normal;font-size:18px;color:#71837d;pointer-events:none}
.mobile-transaction-list{display:none}

@media(max-width:640px){
  /* Native iOS/Android picker is materially more reliable than emulating a
     second modal inside an already scrolling bottom sheet. */
  .boutique-select-desktop{display:none!important}
  .boutique-native-select{display:block!important}

  /* Old custom sheet can never leak through after a responsive resize. */
  .boutique-select-backdrop,.boutique-select-menu{display:none!important}

  /* Movements: purpose-built phone cards rather than a CSS-folded table. */
  .desktop-transaction-table{display:none!important}
  .mobile-transaction-list{display:grid!important;gap:10px;width:100%;min-width:0}
  .transaction-list-shell{width:100%;min-width:0}
  .movements-panel{padding:15px!important;overflow:hidden}
  .movements-panel .panel-head{margin-bottom:13px!important}

  .mobile-tx-card{
    width:100%;min-width:0;box-sizing:border-box;padding:14px;
    border:1px solid rgba(27,66,56,.11);border-radius:18px;
    background:linear-gradient(145deg,#fffefa,#fbf8f1);
    box-shadow:0 8px 22px rgba(25,58,49,.05)
  }
  .mobile-tx-card.planned{background:linear-gradient(145deg,#fff9eb,#fffdfa);border-color:#e7d4ad}
  .mobile-tx-card.transfer{background:linear-gradient(145deg,#eefaf6,#fbfdfb);border-color:#c8e4da}
  .mobile-tx-main{display:grid;grid-template-columns:7px minmax(0,1fr) auto;gap:10px;align-items:start}
  .mobile-tx-type{width:7px;height:38px;border-radius:8px;background:#7e938c;margin-top:1px}
  .mobile-tx-type.income{background:#21a27f}.mobile-tx-type.expense{background:#dc7666}.mobile-tx-type.transfer{background:#6685a0}
  .mobile-tx-copy{min-width:0;padding-top:1px}
  .mobile-tx-copy strong{display:block;color:#193d34;font-size:14px;line-height:1.28;overflow-wrap:anywhere}
  .mobile-tx-copy small{display:block;margin-top:4px;color:#7b8c86;font-size:10.5px;line-height:1.4;overflow-wrap:anywhere}
  .mobile-tx-amount{min-width:0;text-align:right;padding-left:8px}
  .mobile-tx-amount strong{display:block;font-size:14px;line-height:1.2;white-space:nowrap}
  .mobile-tx-amount.income strong{color:#087b60}.mobile-tx-amount.expense strong{color:#b8584d}.mobile-tx-amount.planned strong{color:#8b682e!important}
  .mobile-tx-amount small{display:block;margin-top:3px;color:#8c9793;font-size:9.5px;white-space:nowrap}
  .mobile-tx-amount .transfer-amount strong{color:#49677e}.mobile-tx-amount .transfer-amount small{color:#2d876f}

  .mobile-tx-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px;padding-top:11px;border-top:1px dashed rgba(28,66,56,.11)}
  .mobile-tx-meta>div{display:flex;align-items:center;gap:6px;min-width:0;padding:6px 8px;border-radius:10px;background:#f2efe7}
  .mobile-tx-meta>div>span{font-size:8.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#87928e}
  .mobile-tx-meta>div>b{font-size:10px;color:#42564f;white-space:nowrap}
  .mobile-tx-meta .account-tag,.mobile-tx-meta .transfer-account-tag{max-width:180px;padding:0;background:transparent;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
  .mobile-tx-meta .transfer-account-tag span{display:inline}
  .mobile-tx-meta>.pill{margin-left:auto}

  .mobile-tx-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid rgba(28,66,56,.08)}
  .mobile-tx-pay{min-height:40px;padding:0 13px;border:0;border-radius:12px;background:linear-gradient(135deg,#0b9b78,#08725b);color:#fff;font-size:11px;font-weight:800}
  .mobile-tx-icon{width:40px;height:40px;border:1px solid #dfd9cf;border-radius:12px;background:#fffdf8;color:#31554b;display:grid;place-items:center}
  .mobile-tx-icon.danger{background:#fff5f2;color:#a8564b;border-color:#edd8d2}

  /* Filters remain easy to scan: chips scroll horizontally instead of
     squeezing four labels into tiny columns. */
  .movements-panel .movement-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .movements-panel .segmented{display:flex!important;width:100%!important;gap:7px!important;overflow-x:auto!important;padding-bottom:2px!important;scrollbar-width:none!important}
  .movements-panel .segmented::-webkit-scrollbar{display:none!important}
  .movements-panel .segmented button{flex:0 0 auto!important;min-width:82px!important;height:39px!important;padding:0 13px!important;font-size:11px!important;border-radius:12px!important}
  .movements-panel .movement-tools{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .movements-panel .movement-tools .search{grid-column:1!important;order:0!important;height:48px!important;font-size:16px!important}
  .movements-panel .movement-tools .btn{width:100%!important;min-height:46px!important}
}

@media(max-width:390px){
  .mobile-tx-card{padding:12px;border-radius:16px}
  .mobile-tx-main{grid-template-columns:6px minmax(0,1fr);gap:9px}
  .mobile-tx-amount{grid-column:2;text-align:left;padding:8px 0 0}
  .mobile-tx-amount strong,.mobile-tx-amount small{white-space:normal}
  .mobile-tx-meta .account-tag,.mobile-tx-meta .transfer-account-tag{max-width:145px}
}

/* ========================================================================== 
   PAYFIT Fullstack v2.6 — non-blocking mobile help + mobile finance cockpit
   ========================================================================== */
.mobile-month-focus,.mobile-global-status{display:none}

@media(max-width:760px){
  /* Help is supportive on phones, never a gate. Long explanations collapse
     into a compact inline hint; users can keep filling the form immediately. */
  .guide-tip,.modal .guide-tip,.modal .modal-form>.guide-tip,.movement-guide-slot .guide-tip{
    position:relative!important;display:flex!important;align-items:center!important;
    grid-template-columns:none!important;gap:8px!important;min-height:42px!important;
    width:100%!important;max-width:100%!important;padding:8px 9px!important;
    margin:6px 0 10px!important;border-radius:13px!important;overflow:hidden!important;
    box-shadow:none!important;pointer-events:auto!important
  }
  .modal>.guide-tip{margin:8px 14px 2px!important;width:calc(100% - 28px)!important}
  .modal .modal-form>.guide-tip,.movement-guide-slot .guide-tip{margin:4px 0 10px!important}
  .guide-tip:after{display:none!important}
  .guide-symbol,.modal .guide-symbol{
    width:30px!important;height:30px!important;flex:0 0 30px!important;border-radius:10px!important;
    box-shadow:none!important
  }
  .guide-symbol .icon{font-size:14px!important}
  .guide-body{min-width:0!important;flex:1 1 auto!important;padding:0!important}
  .guide-kicker,.guide-body p,.guide-body ul{display:none!important}
  .guide-body>strong,.modal .guide-body>strong{
    display:block!important;font-family:var(--body)!important;font-size:11.5px!important;
    line-height:1.3!important;font-weight:800!important;white-space:normal!important;color:#285248!important
  }
  .guide-dismiss{
    flex:0 0 32px!important;width:32px!important;height:32px!important;min-height:32px!important;
    grid-column:auto!important;margin:0!important;padding:0!important;border-radius:10px!important;
    font-size:0!important;background:rgba(255,255,255,.74)!important
  }
  .guide-dismiss:after{content:'×';font-size:18px;line-height:1;color:#557169}

  /* Selected-month information is the first financial answer on mobile. */
  .page-overview .mobile-month-focus{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;min-width:0
  }
  .mobile-month-card{
    min-width:0;min-height:106px;padding:12px 10px;border-radius:17px;border:1px solid #dedbd1;
    display:flex;flex-direction:column;justify-content:space-between;gap:7px;overflow:hidden;
    box-shadow:0 8px 22px rgba(28,57,49,.045)
  }
  .mobile-month-card>span{font-size:9.5px;font-weight:800;line-height:1.25;color:#64756f}
  .mobile-month-card>strong{
    display:block;min-width:0;font:750 15px/1.15 var(--display);letter-spacing:-.02em;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
  .mobile-month-card>small{font-size:8.8px;line-height:1.25;color:#7b8984}
  .mobile-month-card.expense{background:linear-gradient(145deg,#fff8f5,#f7e2dc);border-color:#edd2ca}
  .mobile-month-card.expense>strong{color:#b65449}
  .mobile-month-card.net{background:linear-gradient(145deg,#123d33,#1c6654);border-color:#1e6957;box-shadow:0 11px 26px rgba(20,89,72,.15)}
  .mobile-month-card.net>span,.mobile-month-card.net>small{color:#c9ddd6}.mobile-month-card.net>strong{color:#fff}
  .mobile-month-card.net.negative{background:linear-gradient(145deg,#5d302d,#8f4941);border-color:#8c5049}
  .mobile-month-card.income{background:linear-gradient(145deg,#f2fbf6,#d9efe3);border-color:#c9e5d6}
  .mobile-month-card.income>strong{color:#0c7e61}

  /* Overall wealth stays visible, but as a secondary compact snapshot. */
  .page-overview .mobile-global-status{
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
    padding:15px 16px;border-radius:19px;border:1px solid #d6e3dd;
    background:radial-gradient(circle at 100% 0,rgba(54,168,133,.15),transparent 38%),linear-gradient(145deg,#fffdf8,#edf7f2);
    box-shadow:0 9px 26px rgba(25,65,54,.055)
  }
  .mobile-global-main{min-width:0}.mobile-global-main .eyebrow{font-size:8px;color:#598077}
  .mobile-global-main>strong{display:block;margin-top:4px;font:760 25px/1.05 var(--display);letter-spacing:-.025em;color:#153d33}
  .mobile-global-main>small{display:block;margin-top:5px;max-width:230px;font-size:9.5px;line-height:1.35;color:#788984}
  .mobile-global-meta{display:grid;gap:7px;min-width:98px}
  .mobile-global-meta>div{display:grid;gap:2px;text-align:right;padding:6px 8px;border-radius:10px;background:rgba(255,255,255,.68)}
  .mobile-global-meta span{font-size:7.7px;font-weight:750;text-transform:uppercase;letter-spacing:.06em;color:#82918c}
  .mobile-global-meta b{font-size:10.5px;color:#2d554a;white-space:nowrap}

  /* Desktop financial photo / four-card summary are replaced by the compact
     mobile cockpit above to avoid repetition and vertical overload. */
  .page-overview .hero-card,.page-overview .month-summary-grid{display:none!important}
}

@media(max-width:390px){
  .page-overview .mobile-month-focus{gap:5px}
  .mobile-month-card{min-height:100px;padding:10px 8px;border-radius:15px}
  .mobile-month-card>span{font-size:8.7px}.mobile-month-card>strong{font-size:13.5px}.mobile-month-card>small{font-size:8px}
  .page-overview .mobile-global-status{padding:13px 12px;grid-template-columns:minmax(0,1fr) 92px}
  .mobile-global-main>strong{font-size:22px}
}

/* ========================================================================
   PAYFIT v2.7 — MOBILE FINTECH COCKPIT
   A more technological, bank-grade monthly overview without losing Payfit's
   warm boutique identity. The middle card is the primary monthly answer.
   ======================================================================== */
@media (max-width: 900px){
  .page-overview .mobile-month-focus{
    position:relative;
    display:grid!important;
    grid-template-columns:minmax(0,.92fr) minmax(0,1.16fr) minmax(0,.92fr)!important;
    gap:6px!important;
    align-items:center;
    width:100%;
    padding:8px 0 5px;
    isolation:isolate;
  }
  .page-overview .mobile-month-focus:before{
    content:"";
    position:absolute;
    inset:20px 7% 7px;
    z-index:-1;
    border-radius:28px;
    background:linear-gradient(90deg,rgba(244,104,91,.08),rgba(24,198,161,.10),rgba(20,160,137,.10));
    filter:blur(18px);
    pointer-events:none;
  }
  .mobile-month-card{
    position:relative;
    min-width:0!important;
    min-height:116px!important;
    padding:13px 10px 11px!important;
    border-radius:20px!important;
    display:flex!important;
    flex-direction:column;
    justify-content:space-between;
    gap:8px!important;
    overflow:hidden;
    border:1px solid rgba(37,70,63,.10)!important;
    box-shadow:0 12px 28px rgba(25,61,52,.08), inset 0 1px 0 rgba(255,255,255,.74)!important;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    transition:transform .2s ease,box-shadow .2s ease;
  }
  .mobile-month-card:before{
    content:"";
    position:absolute;
    width:74px;height:74px;
    right:-30px;top:-34px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.50);
    box-shadow:0 0 0 13px rgba(255,255,255,.10),0 0 0 26px rgba(255,255,255,.055);
    pointer-events:none;
  }
  .mobile-month-card:after{
    content:"";
    position:absolute;
    left:12px;right:12px;bottom:7px;
    height:2px;
    border-radius:999px;
    opacity:.82;
    pointer-events:none;
  }
  .mobile-month-head{
    position:relative;z-index:1;
    display:flex;align-items:center;gap:6px;
    min-width:0;
  }
  .mobile-month-head>span:last-child{
    min-width:0;
    font-size:8.9px;
    line-height:1.2;
    font-weight:850;
    letter-spacing:.015em;
    color:#556a64;
  }
  .mobile-month-icon{
    flex:0 0 24px;
    width:24px;height:24px;
    display:grid;place-items:center;
    border-radius:8px;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1;
    background:rgba(255,255,255,.72);
    box-shadow:inset 0 0 0 1px rgba(25,60,51,.07);
  }
  .mobile-month-card>strong{
    position:relative;z-index:1;
    display:block;
    min-width:0;
    margin:1px 0 0!important;
    font:780 clamp(14px,4vw,18px)/1.08 var(--display)!important;
    letter-spacing:-.035em!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .mobile-month-foot{
    position:relative;z-index:1;
    display:flex;align-items:center;justify-content:space-between;gap:5px;
    min-width:0;
    padding-bottom:5px;
  }
  .mobile-month-foot small{
    min-width:0;
    font-size:7.8px!important;
    line-height:1.2!important;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .mini-pulse{
    flex:0 0 22px;
    width:22px;height:8px;
    display:block;
    border-radius:999px;
    background:linear-gradient(90deg,currentColor 0 18%,transparent 18% 28%,currentColor 28% 55%,transparent 55% 65%,currentColor 65% 100%);
    opacity:.38;
  }
  .mobile-month-card.expense{
    background:
      radial-gradient(circle at 105% -5%,rgba(255,255,255,.95),transparent 42%),
      linear-gradient(150deg,#fff9f6 8%,#ffe7e0 100%)!important;
    border-color:rgba(220,101,84,.18)!important;
  }
  .mobile-month-card.expense .mobile-month-icon{color:#d15345;background:#fff1ed}
  .mobile-month-card.expense>strong{color:#b83f36!important}
  .mobile-month-card.expense .mobile-month-foot small{color:#8c655e}
  .mobile-month-card.expense:after{background:linear-gradient(90deg,#f17363,rgba(241,115,99,.08))}
  .mobile-month-card.expense .mini-pulse{color:#e06152}

  .mobile-month-card.income{
    background:
      radial-gradient(circle at 105% -5%,rgba(255,255,255,.92),transparent 42%),
      linear-gradient(150deg,#f5fffb 8%,#d8f5e9 100%)!important;
    border-color:rgba(19,157,124,.18)!important;
  }
  .mobile-month-card.income .mobile-month-icon{color:#087a63;background:#e5fbf3}
  .mobile-month-card.income>strong{color:#08765f!important}
  .mobile-month-card.income .mobile-month-foot small{color:#55796e}
  .mobile-month-card.income:after{background:linear-gradient(90deg,rgba(24,184,147,.08),#16a886)}
  .mobile-month-card.income .mini-pulse{color:#0d9878}

  .mobile-month-card.net{
    z-index:2;
    min-height:136px!important;
    padding:15px 11px 12px!important;
    transform:translateY(-4px);
    border-color:rgba(109,232,207,.28)!important;
    background:
      radial-gradient(circle at 82% 10%,rgba(71,231,203,.20),transparent 30%),
      linear-gradient(145deg,#082f2b 0%,#0a4d43 56%,#08745f 115%)!important;
    box-shadow:0 18px 38px rgba(3,83,70,.25),inset 0 1px 0 rgba(255,255,255,.14)!important;
  }
  .mobile-month-card.net:before{
    width:94px;height:94px;right:-34px;top:-40px;
    border-color:rgba(94,239,212,.20);
    box-shadow:0 0 0 14px rgba(84,225,202,.065),0 0 0 29px rgba(84,225,202,.035);
  }
  .mobile-month-card.net:after{
    left:12px;right:12px;
    background:linear-gradient(90deg,#4be0c1,#a8f2de 52%,rgba(168,242,222,.05));
    box-shadow:0 0 12px rgba(75,224,193,.38);
  }
  .mobile-month-card.net .mobile-month-head>span:last-child{color:#c2e3da}
  .mobile-month-card.net .mobile-month-icon{
    color:#d9fff5;
    background:rgba(88,225,198,.13);
    box-shadow:inset 0 0 0 1px rgba(127,239,217,.15),0 0 14px rgba(66,220,191,.11);
  }
  .mobile-month-card.net>strong{
    color:#fff!important;
    font-size:clamp(16px,4.7vw,21px)!important;
    text-shadow:0 2px 12px rgba(0,0,0,.10);
  }
  .mobile-month-card.net .mobile-month-foot small{color:#a9d1c7}
  .net-status-dot{
    flex:0 0 auto;
    display:inline-flex;align-items:center;gap:4px;
    padding:4px 6px;
    border-radius:999px;
    font-size:6.8px;
    font-weight:850;
    letter-spacing:.03em;
    color:#d8fff4;
    background:rgba(83,223,194,.13);
    border:1px solid rgba(119,236,213,.14);
  }
  .net-status-dot:before{content:"";width:4px;height:4px;border-radius:50%;background:#69e8ca;box-shadow:0 0 8px #69e8ca}
  .mobile-month-card.net.negative{
    background:
      radial-gradient(circle at 82% 10%,rgba(255,151,135,.15),transparent 30%),
      linear-gradient(145deg,#43221f 0%,#6e342e 56%,#963f35 115%)!important;
    border-color:rgba(255,175,161,.22)!important;
    box-shadow:0 18px 38px rgba(93,45,39,.24),inset 0 1px 0 rgba(255,255,255,.11)!important;
  }
  .mobile-month-card.net.negative:after{background:linear-gradient(90deg,#ff8c78,#ffc0b5 52%,rgba(255,192,181,.05));box-shadow:0 0 12px rgba(255,140,120,.28)}
  .mobile-month-card.net.negative .net-status-dot{color:#fff0ed;background:rgba(255,170,154,.11);border-color:rgba(255,191,180,.12)}
  .mobile-month-card.net.negative .net-status-dot:before{background:#ff9a87;box-shadow:0 0 8px #ff9a87}

  /* Secondary total financial picture: darker, slim and bank-like. */
  .page-overview .mobile-global-status{
    position:relative;
    overflow:hidden;
    padding:15px 15px!important;
    border-radius:22px!important;
    border:1px solid rgba(27,92,78,.12)!important;
    background:
      radial-gradient(circle at 92% -10%,rgba(53,210,180,.16),transparent 35%),
      linear-gradient(135deg,#f8fffc 0%,#eaf7f2 58%,#e1f2eb 100%)!important;
    box-shadow:0 12px 30px rgba(23,73,61,.08),inset 0 1px 0 rgba(255,255,255,.9)!important;
  }
  .page-overview .mobile-global-status:after{
    content:"";position:absolute;right:-24px;bottom:-38px;width:110px;height:110px;border-radius:50%;
    border:1px solid rgba(20,150,123,.10);box-shadow:0 0 0 14px rgba(20,150,123,.04),0 0 0 30px rgba(20,150,123,.025);pointer-events:none
  }
  .mobile-global-main .eyebrow{color:#3d776b!important;letter-spacing:.15em!important}
  .mobile-global-main>strong{color:#0b493d!important;font-size:26px!important}
  .mobile-global-meta>div{
    position:relative;z-index:1;
    background:rgba(255,255,255,.72)!important;
    border:1px solid rgba(25,99,83,.08);
    box-shadow:0 5px 12px rgba(24,78,66,.035)
  }
}

@media (max-width: 390px){
  .page-overview .mobile-month-focus{
    grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr) minmax(0,.9fr)!important;
    gap:5px!important;
    padding-top:7px
  }
  .mobile-month-card{min-height:108px!important;padding:11px 8px 10px!important;border-radius:18px!important}
  .mobile-month-card.net{min-height:128px!important;padding:13px 9px 11px!important;transform:translateY(-3px)}
  .mobile-month-icon{width:21px;height:21px;flex-basis:21px;border-radius:7px;font-size:10px!important}
  .mobile-month-head{gap:4px}.mobile-month-head>span:last-child{font-size:8px}
  .mobile-month-card>strong{font-size:13.2px!important}.mobile-month-card.net>strong{font-size:16.2px!important}
  .mobile-month-foot small{font-size:7px!important}.mini-pulse{display:none}.net-status-dot{font-size:6px;padding:3px 5px}
  .page-overview .mobile-global-status{padding:13px 12px!important}
}

/* ========================================================================
   Payfit v2.8 — technological polish + month-aware debts + bank money input
   Base: v2.7 emerald / warm-gold palette. No blue/yellow rebrand.
   ======================================================================== */
:root{
  --tech-grid:rgba(31,111,95,.045);
  --tech-glow:rgba(76,162,138,.13);
  --tech-gold:rgba(189,149,95,.18);
  --tech-line:rgba(31,111,95,.14);
}
body{
  background:
    radial-gradient(circle at 88% 5%,rgba(78,150,132,.09),transparent 26%),
    radial-gradient(circle at 12% 88%,rgba(189,149,95,.07),transparent 28%),
    linear-gradient(var(--bg),var(--bg));
}
.main{position:relative;isolation:isolate}
.main:before{
  content:"";position:fixed;inset:0 0 0 242px;z-index:-1;pointer-events:none;opacity:.42;
  background-image:linear-gradient(var(--tech-grid) 1px,transparent 1px),linear-gradient(90deg,var(--tech-grid) 1px,transparent 1px);
  background-size:36px 36px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.45),transparent 46%);
}
.sidebar{
  background:
    radial-gradient(circle at 16% 8%,rgba(92,157,137,.16),transparent 28%),
    radial-gradient(circle at 90% 86%,rgba(189,149,95,.10),transparent 24%),
    linear-gradient(180deg,#122a25 0%,#17332d 48%,#132823 100%);
  box-shadow:18px 0 55px rgba(14,37,31,.08);
}
.sidebar:after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.08;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:28px 28px;
  mask-image:linear-gradient(to bottom,#000,transparent 78%);
}
.sidebar>*{position:relative;z-index:1}
.sidebar button.active{background:linear-gradient(90deg,rgba(67,137,118,.28),rgba(255,255,255,.045));box-shadow:inset 3px 0 0 #d6ae70,0 9px 28px rgba(0,0,0,.08)}
.topbar{position:relative}.topbar:after{content:"";position:absolute;left:0;right:0;bottom:8px;height:1px;background:linear-gradient(90deg,rgba(31,111,95,.18),rgba(189,149,95,.18),transparent 72%)}
.hero-card{
  background:
    radial-gradient(circle at 78% 20%,rgba(120,192,168,.13),transparent 26%),
    linear-gradient(135deg,#123129 0%,#1d493d 58%,#28584b 100%);
  box-shadow:0 24px 70px rgba(22,61,51,.17),inset 0 1px 0 rgba(255,255,255,.05);
}
.hero-card:after{
  content:"";position:absolute;right:0;bottom:0;width:49%;height:64%;pointer-events:none;opacity:.16;
  background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.10) 1px,transparent 1px);
  background-size:23px 23px;
  mask-image:linear-gradient(135deg,transparent,#000 50%);
}
.panel,.stat-card,.finance-card,.holding-card,.debt-card,.due-card,.month-navigator{
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 13px 35px rgba(24,57,48,.055),inset 0 1px 0 rgba(255,255,255,.58);
}
.panel,.finance-card,.holding-card,.debt-card{position:relative}
.panel:before,.finance-card:after,.holding-card:after,.debt-card:after{
  content:"";position:absolute;pointer-events:none;height:2px;left:22px;right:22px;top:0;border-radius:999px;
  background:linear-gradient(90deg,transparent,rgba(31,111,95,.38),rgba(189,149,95,.42),transparent);opacity:.46;
}
.finance-card:hover,.holding-card:hover,.debt-card:hover,.panel:hover{border-color:rgba(31,111,95,.18);box-shadow:0 18px 45px rgba(24,61,51,.085),inset 0 1px 0 rgba(255,255,255,.7)}
.month-navigator{border-color:rgba(31,111,95,.15);background:linear-gradient(180deg,rgba(255,253,248,.92),rgba(247,244,237,.88));box-shadow:0 14px 38px rgba(27,69,58,.08),inset 0 1px 0 rgba(255,255,255,.85)}
.month-center span{font-variant-numeric:tabular-nums}

/* selected-month debt intelligence */
.debt-month-summary{
  margin:15px 0 2px;padding:12px 14px;border:1px solid rgba(31,111,95,.13);border-radius:15px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:linear-gradient(135deg,rgba(237,247,243,.92),rgba(250,247,239,.92));
  position:relative;overflow:hidden;
}
.debt-month-summary:before{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-50px;top:-72px;background:radial-gradient(circle,var(--tech-glow),transparent 70%)}
.debt-month-summary .eyebrow{margin:0 0 3px;font-size:8px}.debt-month-summary>div>strong{font:650 14px var(--display,"Bricolage Grotesque",sans-serif);text-transform:capitalize}
.debt-month-summary-numbers{display:flex;gap:18px;align-items:center;text-align:right;position:relative;z-index:1}.debt-month-summary-numbers span{display:grid;gap:2px}.debt-month-summary-numbers small{font-size:8px;color:var(--muted);font-weight:700}.debt-month-summary-numbers b{font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
.debt-month-summary.empty{background:linear-gradient(135deg,#faf8f3,#f3efe7);border-style:dashed;opacity:.84}
.debt-card.has-month-payment{border-color:rgba(31,111,95,.18)}
.debt-card.no-month-payment{background:linear-gradient(150deg,#fffdfa,#f8f4ed)}
.debt-month-empty{margin:16px 0;padding:18px;border:1px dashed #d9d2c6;border-radius:15px;background:rgba(248,245,238,.75);display:flex;gap:12px;align-items:center;color:var(--muted)}
.debt-month-empty-icon{width:34px;height:34px;border-radius:11px;background:#e2eee8;color:var(--green);display:grid;place-items:center;font-weight:900;flex:0 0 34px}.debt-month-empty strong{display:block;font-size:11px;color:var(--ink)}.debt-month-empty p{margin:3px 0 0;font-size:9.5px;line-height:1.45}

/* bank-grade currency entry */
.bank-money-entry{
  border:1px solid #d8d2c7!important;border-radius:14px!important;background:linear-gradient(180deg,#fffefa,#fbf8f1)!important;
  min-height:52px!important;height:52px!important;padding:0 7px 0 14px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.bank-money-entry.focused{border-color:#609889!important;background:#fff!important;box-shadow:0 0 0 4px rgba(31,111,95,.085),inset 0 1px 0 #fff!important}
.bank-money-entry input{
  min-width:0!important;width:100%!important;height:50px!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;padding:0 8px 0 0!important;
  text-align:right!important;font-family:"Manrope",ui-sans-serif,sans-serif!important;font-size:20px!important;font-weight:800!important;letter-spacing:-.025em!important;font-variant-numeric:tabular-nums lining-nums!important;color:#19302b!important;
}
.bank-money-entry input::placeholder{color:#b3b6b1!important}.bank-money-entry .money-entry-currency,.bank-money-entry>span{
  min-width:46px;padding:8px 9px!important;border-radius:10px!important;background:#e8f1ed!important;color:#1f6f5f!important;text-align:center;font-size:10px!important;font-weight:900!important;letter-spacing:.04em!important
}
.bank-money-entry.disabled{opacity:.62;background:#f2efe8!important}.movement-amount-input.bank-money-entry{height:68px!important;min-height:68px!important;border-radius:17px!important;padding-left:17px!important}.movement-amount-input.bank-money-entry input{height:66px!important;font-family:var(--display,"Bricolage Grotesque",sans-serif)!important;font-size:34px!important;text-align:left!important}.movement-amount-input.bank-money-entry>span{min-width:54px;font-size:11px!important}
.installment-money-field{min-width:0}.installment-money-field .bank-money-entry{height:44px!important;min-height:44px!important;border-radius:11px!important;padding-left:9px!important}.installment-money-field .bank-money-entry input{height:42px!important;font-size:12px!important}.installment-money-field .bank-money-entry>span{min-width:38px;padding:5px 6px!important;font-size:8px!important}
.inline-form .bank-money-entry{height:46px!important;min-height:46px!important}.inline-form .bank-money-entry input{height:44px!important;font-size:13px!important;text-align:left!important}

/* desktop fintech detailing */
@media(min-width:901px){
  .content-two,.stats-grid,.cards-grid,.holding-grid,.debt-list{perspective:1200px}
  .stat-card,.finance-card,.holding-card,.debt-card{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
  .stat-card:hover,.finance-card:hover,.holding-card:hover,.debt-card:hover{transform:translateY(-2px)}
  .stat-card>strong,.finance-card-value strong,.debt-value strong,.holding-value strong{font-variant-numeric:tabular-nums lining-nums}
  .market-strip>div{border:1px solid rgba(31,111,95,.09);background:linear-gradient(145deg,#f8f7f1,#edf4f1);box-shadow:inset 0 1px 0 rgba(255,255,255,.72)}
}

@media(max-width:900px){
  .main:before{inset:0;opacity:.18;background-size:28px 28px}
  .topbar:after{display:none}
  .debt-month-summary{align-items:flex-start;flex-direction:column}.debt-month-summary-numbers{width:100%;justify-content:space-between;text-align:left;gap:10px}.debt-month-summary-numbers span{flex:1;padding:8px 10px;border-radius:11px;background:rgba(255,255,255,.56)}
  .bank-money-entry{height:54px!important;min-height:54px!important}.bank-money-entry input{height:52px!important;font-size:21px!important}
  .movement-amount-input.bank-money-entry{height:70px!important;min-height:70px!important}.movement-amount-input.bank-money-entry input{height:68px!important;font-size:32px!important}
  .panel:before,.finance-card:after,.holding-card:after,.debt-card:after{left:15px;right:15px}
}
@media(max-width:390px){
  .debt-month-summary{padding:11px}.debt-month-summary-numbers b{font-size:10px}.debt-month-empty{padding:14px}
  .bank-money-entry input{font-size:19px!important}.movement-amount-input.bank-money-entry input{font-size:29px!important}
}


/* v2.8.1 — cleaner dashboard heading */
@media(max-width:640px){
  .topbar-copy-wrap{gap:8px}
  .topbar-title-stack{gap:7px}
  .topbar-subrow{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;max-width:100%}
  .topbar-accent{margin-top:6px}
  .topbar-kicker{padding:5px 9px}
}


/* v2.8.2 — workspace header redesign: no underline, no accent bar */
.topbar.workspace-header{
  position:relative;
  isolation:isolate;
  min-height:0;
  margin:24px 0 22px;
  padding:24px 24px 23px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:28px;
  border:1px solid rgba(50,94,82,.10);
  border-radius:26px;
  background:
    radial-gradient(circle at 88% -20%,rgba(58,150,124,.12),transparent 31%),
    radial-gradient(circle at 74% 135%,rgba(197,155,91,.09),transparent 34%),
    linear-gradient(135deg,rgba(255,253,248,.97),rgba(247,250,247,.96));
  box-shadow:0 16px 42px rgba(25,53,46,.07),inset 0 1px 0 rgba(255,255,255,.92);
  overflow:hidden;
}
.topbar.workspace-header:before{
  content:"";
  position:absolute;
  z-index:-1;
  width:240px;
  height:240px;
  border-radius:50%;
  right:-105px;
  top:-130px;
  border:1px solid rgba(31,111,95,.07);
  box-shadow:0 0 0 34px rgba(31,111,95,.025),0 0 0 68px rgba(189,149,95,.018);
  pointer-events:none;
}
.workspace-copy{min-width:0;display:grid;gap:9px}
.workspace-badge{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:27px;
  padding:0 10px;
  border:1px solid rgba(31,111,95,.11);
  border-radius:999px;
  background:rgba(255,255,255,.66);
  color:#6a7d77;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86);
  font-size:9px;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.workspace-badge b{font-weight:700;color:rgba(31,111,95,.38)}
.workspace-status-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#2b8b73;
  box-shadow:0 0 0 4px rgba(43,139,115,.09);
}
.topbar.workspace-header h1{
  position:static;
  display:block;
  margin:0;
  padding:0;
  font:500 clamp(34px,3vw,43px)/1.02 "Bricolage Grotesque",ui-sans-serif,sans-serif;
  letter-spacing:-.045em;
  color:var(--ink);
}
.topbar.workspace-header h1:before,.topbar.workspace-header h1:after{content:none!important;display:none!important}
.topbar.workspace-header .topbar-copy{
  max-width:720px;
  margin:0;
  padding:0;
  color:#71807a;
  font-size:13px;
  line-height:1.6;
}
.workspace-actions{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:7px;
  border:1px solid rgba(58,89,80,.08);
  border-radius:18px;
  background:rgba(255,255,255,.52);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.84),0 8px 22px rgba(29,55,48,.035);
  backdrop-filter:blur(12px);
}
.workspace-actions .currency-switch{
  height:44px;
  background:rgba(250,248,242,.82);
  box-shadow:none;
}
.workspace-actions>.btn{min-height:44px;border-radius:13px}

/* Retire the previous title decoration system completely. */
.topbar-title-stack,.topbar-subrow,.topbar-accent,.topbar-kicker{all:unset}
.topbar-copy-wrap{display:contents}

@media(max-width:900px){
  .topbar.workspace-header{
    margin:14px 0 16px;
    padding:19px 18px;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:14px;
    border-radius:22px;
  }
  .topbar.workspace-header:before{width:180px;height:180px;right:-92px;top:-108px}
  .workspace-copy{gap:7px}
  .topbar.workspace-header h1{font-size:31px}
  .topbar.workspace-header .topbar-copy{font-size:12.5px;line-height:1.48;max-width:590px}
  .workspace-actions{padding:5px;gap:6px;border-radius:15px}
  .workspace-actions .currency-switch{height:42px;min-width:62px}
  .workspace-actions>.btn{height:42px;min-height:42px}
}

@media(max-width:640px){
  .topbar.workspace-header{
    margin:10px 0 14px;
    padding:16px 15px 15px;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:10px;
    border-radius:20px;
    background:
      radial-gradient(circle at 103% -8%,rgba(55,145,120,.12),transparent 36%),
      linear-gradient(145deg,rgba(255,253,248,.98),rgba(247,250,247,.97));
  }
  .workspace-badge{min-height:24px;padding:0 8px;font-size:8px;letter-spacing:.13em}
  .workspace-status-dot{width:6px;height:6px;flex-basis:6px;box-shadow:0 0 0 3px rgba(43,139,115,.08)}
  .topbar.workspace-header h1{font-size:27px;line-height:1.03}
  .topbar.workspace-header .topbar-copy{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:11.5px;
    line-height:1.42;
  }
  .workspace-actions{align-self:end;background:transparent;border:0;box-shadow:none;padding:0;gap:6px}
  .workspace-actions .currency-switch{width:44px;min-width:44px;height:44px;padding:0;justify-content:center;border-radius:13px}
  .workspace-actions .currency-switch span{display:none}
  .workspace-actions .currency-switch select{width:38px;min-width:38px;font-size:0;text-align:center}
  .workspace-actions .currency-switch select option{font-size:13px}
  .workspace-actions>.btn{width:44px;min-width:44px;height:44px;padding:0;font-size:0;border-radius:13px}
  .workspace-actions>.btn .icon{font-size:19px!important}
}


/* v2.8.3 — minimalist workspace header + quiet helper language */
.topbar.workspace-header{
  position:relative!important;
  min-height:0!important;
  margin:0!important;
  padding:30px 0 24px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:34px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  isolation:auto!important;
}
.topbar.workspace-header:before,.topbar.workspace-header:after{content:none!important;display:none!important}
.workspace-copy{min-width:0;display:grid;gap:6px!important}
.workspace-badge{
  width:max-content!important;
  min-height:0!important;
  padding:0!important;
  gap:6px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#7b8b85!important;
  font-size:9px!important;
  font-weight:800!important;
  letter-spacing:.18em!important;
  text-transform:uppercase!important;
}
.workspace-badge b{color:#b8a27e!important;font-weight:700!important}
.workspace-status-dot{width:5px!important;height:5px!important;flex-basis:5px!important;background:#b99561!important;box-shadow:none!important}
.topbar.workspace-header h1{
  margin:2px 0 0!important;
  padding:0!important;
  font:500 clamp(34px,3.3vw,46px)/1.02 "Bricolage Grotesque",ui-sans-serif,sans-serif!important;
  letter-spacing:-.05em!important;
  color:var(--ink)!important;
}
.topbar.workspace-header h1:before,.topbar.workspace-header h1:after{content:none!important;display:none!important}
.topbar.workspace-header .topbar-copy{
  max-width:620px!important;
  margin:2px 0 0!important;
  padding:0!important;
  color:#74817c!important;
  font-size:12.5px!important;
  line-height:1.5!important;
  letter-spacing:-.005em!important;
}
.workspace-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.workspace-actions .currency-switch{
  height:44px!important;
  border:1px solid rgba(78,91,86,.12)!important;
  border-radius:13px!important;
  background:rgba(255,253,248,.72)!important;
  box-shadow:none!important;
}
.workspace-actions>.btn{min-height:44px!important;border-radius:13px!important;box-shadow:0 8px 18px rgba(31,111,95,.13)!important}

/* Onboarding should feel like guidance, not another hero card. */
.onboarding-journey{
  position:relative!important;
  padding:16px 18px!important;
  border:1px solid rgba(67,88,81,.10)!important;
  border-radius:18px!important;
  background:rgba(255,253,248,.58)!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.onboarding-journey:before,.onboarding-journey:after{content:none!important;display:none!important}
.onboarding-progress{display:none!important}
.onboarding-icon{
  width:40px!important;height:40px!important;border-radius:13px!important;
  background:#edf4f0!important;color:#1f6f5f!important;
  box-shadow:none!important;border:1px solid rgba(31,111,95,.08)!important;
}
.onboarding-copy{gap:2px!important}
.onboarding-copy .eyebrow{margin:0 0 2px!important;color:#81908a!important;font-size:8.5px!important}
.onboarding-copy h3{font-size:18px!important;letter-spacing:-.025em!important;margin:0!important}
.onboarding-copy p{font-size:11px!important;line-height:1.5!important;margin:4px 0 0!important;color:#78857f!important}
.onboarding-cta{
  min-height:40px!important;padding:0 14px!important;border-radius:12px!important;
  background:#1f6f5f!important;box-shadow:none!important;font-size:10.5px!important
}

/* Help text: compact, non-blocking, visually quiet. */
.guide-tip,.modal .guide-tip{
  position:relative!important;
  display:grid!important;
  grid-template-columns:26px minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:10px!important;
  padding:11px 0 11px 12px!important;
  border:0!important;
  border-left:2px solid rgba(31,111,95,.26)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.guide-tip:after,.modal .guide-tip:after{content:none!important;display:none!important}
.guide-symbol,.modal .guide-symbol{
  width:26px!important;height:26px!important;border-radius:9px!important;
  background:#edf4f0!important;color:#1f6f5f!important;box-shadow:none!important
}
.guide-body,.modal .guide-body{padding-top:0!important}
.guide-kicker{display:none!important}
.guide-body>strong,.modal .guide-body>strong{font-family:var(--body)!important;font-size:12.5px!important;font-weight:800!important;letter-spacing:-.01em!important}
.guide-body p,.modal .guide-body p{margin:3px 0 0!important;font-size:10.8px!important;line-height:1.5!important;color:#77857f!important}
.guide-body ul,.modal .guide-body ul{margin:6px 0 0!important;font-size:10px!important;line-height:1.45!important;color:#7a8782!important;gap:2px!important}
.guide-dismiss{
  min-height:30px!important;padding:0 9px!important;border:0!important;border-radius:9px!important;
  background:#f1eee7!important;color:#66736e!important;font-size:9.5px!important;box-shadow:none!important
}

/* Month navigator follows the same flat language. */
.month-navigator{
  border:1px solid rgba(64,87,79,.10)!important;
  background:rgba(255,253,248,.64)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

@media(max-width:900px){
  .topbar.workspace-header{
    position:relative!important;
    top:auto!important;
    z-index:auto!important;
    margin:0!important;
    padding:22px 0 18px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;
    gap:14px!important;
    background:transparent!important;
    backdrop-filter:none!important;
  }
  .topbar.workspace-header h1{font-size:31px!important}
  .topbar.workspace-header .topbar-copy{font-size:11.8px!important;line-height:1.45!important;max-width:520px!important}
  .workspace-badge{font-size:8px!important;letter-spacing:.16em!important}
  .workspace-actions .currency-switch{height:42px!important;min-width:60px!important}
  .workspace-actions>.btn{height:42px!important;min-height:42px!important}
}

@media(max-width:640px){
  .main{padding-left:14px!important;padding-right:14px!important}
  .topbar.workspace-header{
    position:sticky!important;
    top:0!important;
    z-index:38!important;
    margin:0 -14px 10px!important;
    padding:13px 14px 11px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    background:rgba(243,240,233,.94)!important;
    backdrop-filter:blur(18px)!important;
    -webkit-backdrop-filter:blur(18px)!important;
  }
  .workspace-copy{gap:3px!important}
  .workspace-badge{display:none!important}
  .topbar.workspace-header h1{font-size:25px!important;line-height:1.04!important}
  .topbar.workspace-header .topbar-copy{
    display:block!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
    font-size:10.5px!important;
    line-height:1.35!important;
  }
  .workspace-actions{gap:6px!important}
  .workspace-actions .currency-switch{width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;justify-content:center!important;border-radius:12px!important;background:rgba(255,253,248,.82)!important}
  .workspace-actions .currency-switch span{display:none!important}
  .workspace-actions .currency-switch select{width:36px!important;min-width:36px!important;font-size:0!important;text-align:center!important}
  .workspace-actions .currency-switch select option{font-size:13px!important}
  .workspace-actions>.btn{width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;font-size:0!important;border-radius:12px!important;box-shadow:none!important}
  .workspace-actions>.btn .icon{font-size:18px!important}

  .onboarding-journey{
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:10px!important;
    padding:13px!important;
    border-radius:15px!important;
  }
  .onboarding-icon{width:36px!important;height:36px!important;border-radius:11px!important}
  .onboarding-copy h3{font-size:15px!important}
  .onboarding-copy p{font-size:10.5px!important}
  .onboarding-cta{grid-column:1/-1!important;width:100%!important;margin-top:2px!important}

  .guide-tip,.modal .guide-tip{
    grid-template-columns:24px minmax(0,1fr) auto!important;
    gap:8px!important;
    padding:9px 0 9px 10px!important;
  }
  .guide-symbol,.modal .guide-symbol{width:24px!important;height:24px!important;border-radius:8px!important}
  .guide-body>strong,.modal .guide-body>strong{font-size:11.5px!important}
  .guide-body p,.modal .guide-body p{font-size:10.2px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .guide-body ul,.modal .guide-body ul{display:none!important}
  .guide-dismiss{align-self:start!important;min-height:28px!important;padding:0 8px!important}
}
