
:root{--bg:#f6f7f3;--surface:#fff;--ink:#182a21;--muted:#78877b;--line:#e5ece4;--pine:#183126;--pine-deep:#11261c;--mint:#d8edc3;--green:#387a4c;--green-soft:#e9f7ed;--blue:#447ab9;--blue-soft:#eaf3fe;--red:#bb6060;--red-soft:#fceeed;--violet:#836cba;--violet-soft:#f2eefb;--yellow:#b48a32;--yellow-soft:#faf4de;--orange:#b96e45;--orange-soft:#fff1e9;--shadow:0 7px 35px rgba(25,57,37,.042);}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.48 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}input,select{min-width:0}input:focus-visible,button:focus-visible,select:focus-visible{outline:2px solid #8bb98c;outline-offset:2px}a{text-decoration:none;color:inherit}
.app{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}
.sidebar{height:100vh;position:sticky;top:0;background:var(--pine);color:white;padding:25px 13px 18px;display:flex;flex-direction:column;z-index:6}
.home-link{font-size:12px;color:#a4b8aa;padding:0 14px}.home-link:hover{color:white}
.brand{display:flex;gap:12px;align-items:center;padding:32px 11px 31px;font-weight:800;font-size:20px;letter-spacing:-.7px}.brand-symbol{width:41px;height:41px;border-radius:13px;display:grid;place-items:center;background:var(--mint);color:#244832;font-size:25px}.brand small{font-size:10px;color:#a9bcae;display:block;letter-spacing:1.7px;font-weight:650}
.nav-heading{font-weight:800;font-size:10px;letter-spacing:1.8px;color:#7fa28c;margin:0 13px 11px}.nav{display:grid;gap:3px}.nav button{width:100%;text-align:left;border:0;background:none;color:#b8cabe;padding:12px 12px;border-radius:11px;display:flex;align-items:center;gap:12px;font-size:12px;font-weight:720;transition:background .15s,color .15s}.nav button:hover{background:#294534;color:#fff}.nav button.selected{background:#dbedc7;color:#233d2c}.nav .ico{width:23px;height:24px;display:grid;place-items:center;font-size:17px;opacity:.85}.sidebar-footer{margin-top:auto;padding:16px 12px 0;border-top:1px solid #ffffff1c;display:flex;gap:10px;align-items:center;font-size:11px;color:#b1c3b6;line-height:1.45}.status-light{height:8px;width:8px;border-radius:50%;background:#a6d28c;flex:none}
.main{padding:32px clamp(18px,3.3vw,55px) 22px;min-width:0;max-width:1800px;width:100%;margin:auto}
.page-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:23px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:2px;color:#7da27f;text-transform:uppercase}.page-title{font-size:clamp(25px,3vw,36px);line-height:1.16;letter-spacing:-1.25px;margin:7px 0 6px;font-weight:800}.page-desc{color:#7e8a80;font-size:13px;margin:0}.page-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.btn{border:1px solid #dfe7dc;color:#375040;background:#fff;padding:10px 14px;border-radius:11px;font-size:12px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;white-space:nowrap}.btn:hover{background:#f5faf3;border-color:#abc6aa}.btn.primary{background:#214632;color:#fff;border-color:#214632}.btn.primary:hover{background:#346342}.btn.icon-only{min-width:39px;padding:8px}.btn.tiny{padding:6px 10px;min-height:30px;font-size:11px;border-radius:9px}.btn.danger{color:var(--red);border-color:#efdad6}.btn.danger:hover{background:var(--red-soft)}.btn.soft{background:#f2f8ee}
.save-status{font-size:11px;color:#65866f;white-space:nowrap;margin-right:4px}
.alert{border:1px solid #edcfb0;border-radius:12px;padding:12px 16px;background:#fff4e6;color:#885a2b;font-size:12px;margin-bottom:17px}.alert[hidden]{display:none}
.content{display:grid;gap:20px}
.section{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:17px;min-width:0;overflow:hidden}
.section-pad{padding:20px 23px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 23px;border-bottom:1px solid #eef1eb;flex-wrap:wrap}.section-header .section-title{font-size:15px;font-weight:800;letter-spacing:-.25px;margin:0}.section-header .section-subtitle{font-size:11px;color:#8b998c;margin-top:3px}.section-header .side-tools{display:flex;align-items:center;gap:8px}.section-inner{padding:9px 22px 17px}
.subheading{font-size:10px;font-weight:850;letter-spacing:1.2px;color:#94a196;margin:12px 0 8px;text-transform:uppercase}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kpi{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px 18px;min-width:0}.kpi .kpi-label{color:#7e8d82;font-size:11px;font-weight:720}.kpi strong{display:block;font-weight:800;letter-spacing:-.7px;font-size:clamp(17px,1.9vw,25px);margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi .kpi-foot{font-size:10px;color:#8c998d;margin-top:3px}.kpi.positive{background:var(--green-soft);border-color:#d4ead8}.kpi.negative{background:var(--red-soft);border-color:#f2dad8}.kpi.blue{background:var(--blue-soft);border-color:#dce9f7}
.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.split.wide-right{grid-template-columns:minmax(0,.92fr) minmax(0,1.18fr)}
.panel{border:1px solid var(--line);border-radius:14px;background:#fff;min-width:0;overflow:hidden}.panel-head{background:#fbfcf9;border-bottom:1px solid #eef1ec;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head b{font-size:13px;font-weight:800}.panel-head small{font-size:11px;color:#8b968a}.panel-body{padding:6px 17px 12px}.panel-body.tight{padding:2px 14px 10px}
.field-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-height:44px;padding:7px 0;border-bottom:1px solid #f0f2ee}.field-row:last-child{border-bottom:0}.field-row .label{font-size:12px;color:#405446;min-width:0;overflow:hidden;text-overflow:ellipsis}.field-row .sublabel{font-size:10px;color:#95a397}.field-row .field-value{text-align:right;font-variant-numeric:tabular-nums;font-weight:750;color:#263c2d;white-space:nowrap}.field-row .label:focus,.field-row .field-value:focus{outline:0;background:#f2f8f0;border-radius:5px}.field-row.total{background:#eaf4e9;border-top:1px solid #deeadc;padding:12px 17px;margin:4px -17px -12px;border-bottom:0}.field-row.total .label,.field-row.total .field-value{font-weight:850;color:#275d3b}.field-row.negative-total{background:#fceeed}.field-row.negative-total .field-value{color:#a74d50}
.edit-text,.edit-money,.edit-date{width:100%;min-width:0;padding:5px 7px;margin:-5px -7px;border:1px solid transparent;border-radius:7px;background:transparent;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;outline:none}.edit-money{text-align:right;max-width:140px;font-variant-numeric:tabular-nums}.edit-date{max-width:108px}.edit-text:hover,.edit-money:hover,.edit-date:hover{border-color:#d5e4d2;background:#f8fbf6}.edit-text:focus,.edit-money:focus,.edit-date:focus{border-color:#79aa7c!important;background:#f2f9ee!important;box-shadow:0 0 0 3px #acd49c28}.edit-text.invalid,.edit-money.invalid,.edit-date.invalid{border-color:#d68583;background:#fff0ef}
.inner-total{border-top:1px solid #e4ebe2;background:#f6faf4;padding:16px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px}.inner-total strong{font-size:17px;letter-spacing:-.3px}
.strip{border-radius:14px;padding:18px 21px;display:flex;justify-content:space-between;gap:14px;align-items:center}.strip .strip-title{font-size:12px;font-weight:800;opacity:.85}.strip strong{font-size:24px;letter-spacing:-.7px}.strip.positive{background:#e7f5e7;color:#316945}.strip.negative{background:#fbe9e8;color:#a55050}.strip.dark{background:#1f3c2b;color:#fff}.strip small{display:block;font-size:10px;opacity:.7}
.triple{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.micro{background:#f6f9f3;border:1px solid #e5ede1;border-radius:12px;padding:15px 17px}.micro b{display:block;font-size:11px;color:#849187}.micro strong{display:block;font-size:20px;letter-spacing:-.5px;margin:5px 0 1px}.micro span{color:#8fa08f;font-size:11px}.empty{padding:40px 20px;text-align:center;color:#859186;font-size:13px}
.pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 9px;font-size:10px;line-height:1.15;font-weight:800;white-space:nowrap;background:#f1f3ef;color:#778476}.pill.green{background:var(--green-soft);color:var(--green)}.pill.blue{background:var(--blue-soft);color:var(--blue)}.pill.red{background:var(--red-soft);color:var(--red)}.pill.purple{background:var(--violet-soft);color:var(--violet)}.pill.yellow{background:var(--yellow-soft);color:var(--yellow)}.pill.orange{background:var(--orange-soft);color:var(--orange)}.dot{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between}.control-left,.control-right{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.search,.filter-select{background:white;border:1px solid #e0e9dd;border-radius:10px;height:39px;padding:0 13px;font-size:12px;color:#476050;outline:none}.search{min-width:215px}.search:focus,.filter-select:focus{border-color:#8bae8c;box-shadow:0 0 0 3px #c6e8c838}.filter-select{min-width:119px}.segmented{display:flex;gap:4px;padding:4px;background:#eaf0e7;border:1px solid #e1e9df;border-radius:11px}.segmented button{font-size:11px;font-weight:800;border:0;background:none;border-radius:8px;padding:8px 12px;color:#70816f}.segmented button.active{background:white;color:#2c5637;box-shadow:0 1px 6px #1c402115}
.month-tabs{display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-color:#bdcebb transparent}.month-tab{padding:11px 15px;border-radius:11px;border:1px solid #e0e8de;background:#fff;color:#718272;font-size:11px;font-weight:800;white-space:nowrap;min-width:64px}.month-tab:hover{border-color:#a5c3a5}.month-tab.active{background:#254a35;color:#fff;border-color:#254a35}.month-tab.small{padding:8px 11px;min-width:45px}.monthly-pick{display:grid;gap:12px}
.month-group{background:#fff;border:1px solid #e4ebe2;border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}.month-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 22px;background:#edf3e9;border-bottom:1px solid #dfeadd}.month-head h3{margin:0;font-size:15px}.month-head small{color:#7b927d;font-size:11px}.month-head .summary{display:flex;gap:13px;align-items:center;font-size:12px;color:#416c47;font-weight:800}
.tx-list{padding:2px 21px}.tx-row{display:grid;grid-template-columns:57px minmax(120px,1.4fr) minmax(95px,.85fr) minmax(90px,.8fr) minmax(95px,.75fr) 119px 28px;gap:12px;align-items:center;min-height:63px;border-bottom:1px solid #f0f2ee}.tx-row:last-child{border-bottom:0}.tx-row:hover{background:#fbfdfa}.tx-row .date-chip{display:grid;place-items:center;border-radius:10px;background:#f1f5ef;color:#677a68;text-align:center;padding:5px 4px;min-height:42px}.date-chip b{font-size:14px;line-height:1.1}.date-chip small{font-size:9px;letter-spacing:.5px;font-weight:750}.tx-row .merchant{font-size:12px;font-weight:800;color:#2d4133;min-width:0}.tx-row .merchant .edit-text{font-weight:800}.tx-row .hint{color:#9caaa0;font-size:10px}.tx-row .tx-amount{text-align:right;font-weight:850;font-variant-numeric:tabular-nums;font-size:13px}.tx-row.income .tx-amount{color:#408457}.tx-row.expense .tx-amount{color:#b45959}.tx-row.business{border-left:3px solid #a9cbed;margin-left:-21px;padding-left:18px}.tx-row.income{border-left:3px solid #a7d3b4;margin-left:-21px;padding-left:18px}.tx-row .scope-select,.tx-row .category-select,.tx-row .type-select{border:1px solid transparent;background:transparent;border-radius:8px;padding:7px 5px;max-width:100%;width:100%;color:#597062;font-size:11px;cursor:pointer;appearance:auto}.tx-row select:hover{border-color:#dce8d8;background:#f7faf4}.tx-row .delete{background:transparent;border:0;color:#b0bfb2;padding:5px;border-radius:6px}.tx-row .delete:hover{background:#fceaea;color:#ad5555}.tx-row .tx-amount input{font-weight:850;font-size:13px}
.month-empty{padding:27px;color:#98a69a;text-align:center;font-size:12px}
.budget-category{display:grid;gap:12px}.budget-item{padding:11px 0;border-bottom:1px solid #f1f3ee}.budget-item:last-child{border:0}.budget-item-header{display:flex;gap:12px;justify-content:space-between;align-items:center}.budget-item-title{font-size:12px;color:#4c5d4f;font-weight:680;min-width:0;flex:1}.budget-item-amount{font-weight:800;text-align:right;white-space:nowrap}.meter{background:#eff2ed;height:5px;border-radius:999px;margin-top:9px;overflow:hidden}.meter span{display:block;height:100%;border-radius:999px;background:#7ba980;min-width:1px}.meter.red span{background:#cc8a7a}.meter.blue span{background:#8eacd0}.budget-comparison{color:#92a194;font-size:10px;margin-top:4px}.budget-empty{padding:20px 2px;color:#96a297}
.calendar-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.calendar-list{display:grid;gap:14px}.group-card{border:1px solid #e2eae1;background:#fff;border-radius:15px;overflow:hidden}.group-title{background:#f4f8f1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px}.group-title strong{font-size:13px}.group-title span{font-size:12px;font-weight:800;color:#53745b}.rec-row{display:grid;grid-template-columns:minmax(125px,1.1fr) 97px 97px minmax(220px,1.4fr) 86px;gap:10px;align-items:center;min-height:68px;padding:10px 20px;border-bottom:1px solid #edf1ea}.rec-row:last-child{border:0}.rec-name{font-size:12px;font-weight:720;min-width:0}.rec-meta{text-align:right;font-size:11px;font-weight:730}.rec-meta small{display:block;color:#98a599;font-weight:500;font-size:9px;margin-bottom:4px}.rec-yearline{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;height:30px;align-items:end}.rec-yearline button{height:var(--bar-h,3px);min-height:3px;min-width:0;border-radius:3px 3px 2px 2px;border:0;background:#b6d3b0;position:relative;padding:0}.rec-yearline button:hover{background:#5b9c60}.rec-yearline button.active{background:#2b764a}.rec-yearline button:focus-visible{outline:2px solid #2b764a}.month-input{width:100%;max-width:82px}.rec-row .edit-money{font-size:12px}.year-mini{display:flex;justify-content:space-between;color:#99a59a;font-size:10px;margin:1px 20px 13px;max-width:250px}
.investment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.investment-card{border-radius:15px;border:1px solid #dfebf7;background:linear-gradient(150deg,#fff,#f6faff);padding:19px;min-width:0}.investment-card-head{display:flex;justify-content:space-between;align-items:center;gap:13px}.investment-title{font-size:15px;font-weight:850;min-width:0}.investment-card .value-label{margin-top:18px;color:#8b9ba9;font-size:11px}.investment-card .value-input{font-size:23px;font-weight:800;letter-spacing:-.8px;margin-top:5px;text-align:left;max-width:220px}.invest-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:18px}.invest-month{border:1px solid #e5edf5;border-radius:9px;padding:9px 6px;background:#fff}.invest-month small{font-weight:800;font-size:9px;color:#9aabbc}.invest-month input{margin-top:6px;font-size:11px;max-width:100%;padding:3px 1px;font-weight:760;color:#2f648d}.investment-card .delete{border:0;background:transparent;color:#b9c5cc;font-size:15px}.investment-card .delete:hover{color:#bf6565}
.check-progress{height:9px;border-radius:99px;background:#edf1e9;overflow:hidden;margin-top:13px}.check-progress span{display:block;height:100%;background:#7fb984;border-radius:99px}.check-list{padding:9px 22px 19px}.check-item{display:flex;align-items:center;gap:16px;padding:13px 0;min-height:56px;border-bottom:1px solid #f0f2ee}.check-item:last-child{border:0}.check-item input[type=checkbox]{width:19px;height:19px;accent-color:#46855b;cursor:pointer;flex:none}.check-item .edit-text{font-size:12px;font-weight:680}.check-item.checked .edit-text{color:#9cac9d;text-decoration:line-through}.check-item small{font-size:10px;color:#a2aea5;white-space:nowrap}
.helper{font-size:11px;color:#97a499}.muted{color:#91a193}.positive-text{color:#3f8454!important}.negative-text{color:#b85858!important}.link-button{border:0;background:none;color:#598866;padding:6px 4px;font-weight:750;font-size:11px}.link-button:hover{text-decoration:underline}
footer{margin:26px 0 0;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#9aa69c;font-size:10px}
@media(max-width:1200px){.app{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-left:9px;padding-right:9px}.main{padding:28px 23px}.tx-row{grid-template-columns:52px minmax(120px,1.3fr) 90px 82px 94px 90px 22px;gap:7px}.rec-row{grid-template-columns:minmax(105px,1.1fr) 74px 74px minmax(120px,1.1fr) 75px;gap:7px;padding:8px 13px}}
@media(max-width:960px){.split,.split.wide-right{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,1fr)}.calendar-summary{grid-template-columns:repeat(2,1fr)}.investment-list{grid-template-columns:1fr}.page-header{flex-wrap:wrap}.page-actions{justify-content:flex-start}.tx-list{overflow:auto}.tx-row{min-width:740px}}
@media(max-width:700px){.app{display:block}.sidebar{position:sticky;height:auto;top:0;padding:9px 10px 8px;box-shadow:0 3px 15px #0000001f}.home-link,.nav-heading,.sidebar-footer{display:none}.brand{margin:0 4px 9px;padding:0;font-size:15px;gap:8px}.brand-symbol{width:28px;height:28px;border-radius:9px;font-size:18px}.brand small{display:none}.nav{display:flex;gap:4px;overflow:auto}.nav button{white-space:nowrap;width:auto;padding:9px 10px;font-size:10px;gap:6px;flex:none}.nav .ico{display:none}.main{padding:19px 12px 24px}.page-header{gap:11px;margin-bottom:17px}.page-title{font-size:26px}.page-desc{font-size:12px}.btn{min-height:36px;padding:8px 11px}.section-header{padding:15px 15px}.section-inner{padding:8px 13px 15px}.section-pad{padding:15px}.panel-head{padding:13px}.panel-body{padding:6px 12px 10px}.field-row.total{margin:4px -12px -10px}.kpi{padding:13px}.kpi-grid{gap:8px}.kpi strong{font-size:18px}.triple{grid-template-columns:1fr 1fr}.rec-row{grid-template-columns:minmax(100px,1fr) 70px 70px;gap:9px}.rec-row .rec-yearline{display:none}.rec-row .rec-meta:nth-child(4){display:none}.calendar-summary{gap:8px}.search{min-width:0;max-width:170px}.investment-list{grid-template-columns:1fr}.invest-months{grid-template-columns:repeat(4,minmax(0,1fr))}.year-mini{display:none}}


/* Inline editing and consistent card rhythm: not a spreadsheet grid */
#content{display:grid;gap:20px;min-width:0}
.money-wrap{display:inline-flex;gap:2px;align-items:center;justify-content:flex-end;white-space:nowrap;max-width:100%}
.money-wrap .edit-money{max-width:112px;min-width:48px;padding:5px 2px;margin:0;text-align:right}
.money-wrap .suffix{font-size:11px;opacity:.63;margin-right:1px;font-weight:750}
.field-row .money-wrap .edit-money{width:102px}
.tx-amount .money-wrap{width:100%}
.tx-amount .money-wrap .edit-money{flex:1;min-width:48px;width:85px}
.invest-month .money-wrap .edit-money{max-width:75px;width:65px;font-size:11px}
.invest-month .money-wrap .suffix{font-size:10px}
.investment-card .value-input .money-wrap{justify-content:flex-start}
.investment-card .value-input .edit-money{font-size:22px;width:160px;max-width:100%}
.investment-card .value-input .suffix{font-size:16px}
.panel-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.panel-actions .btn{white-space:nowrap}
.section-inner .budget-item .edit-text{font-size:12px}
.controls .eyebrow{margin-right:5px}
.month-head .pill{font-size:11px}
@media(max-width:700px){#content{gap:14px}.field-row .money-wrap .edit-money{width:84px}.money-wrap .suffix{font-size:10px}.panel-actions{gap:5px}.panel-head small{display:none}}


/* Preserve the original balance hierarchy: results wide, ExpertoFlix secondary. */
.balance-top{grid-template-columns:minmax(0,2fr) minmax(245px,.78fr);align-items:start}
.balance-top>.section{align-self:stretch}
@media(max-width:1240px){.balance-top{grid-template-columns:1fr}}

/* Workbook semantic colors, expressed as app accents instead of spreadsheet fills. */
.meter.green span{background:#75b787}
.meter.blue span{background:#85a9d0}
.rec-yearline button{background:#edb4aa}
.rec-yearline button.active,.rec-yearline button:hover{background:#ca7a72}
.rec-row.is-reserve .rec-yearline button{background:#c5d7f0}
.rec-row.is-reserve .rec-yearline button.active,.rec-row.is-reserve .rec-yearline button:hover{background:#6c96cf}
