:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#34383c;background:#f5f6f8;font-synthesis:none;--ink:#34383c;--muted:#7d858d;--line:#e5e8eb;--mint:#bad5c9;--lime:#e8ec93;--peach:#e8c3ab;--soft:#edf0f2;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:0;background:transparent}button:disabled{opacity:.45;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #84a896;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:620;letter-spacing:-.055em}h1{font-size:clamp(2.1rem,5vw,3.5rem);line-height:1.05}h2{font-size:1.35rem}small{font-size:.78rem;color:var(--muted)}svg{width:22px;height:22px;flex:none}.loading{min-height:65vh;display:grid;place-content:center;text-align:center;font-size:2.3rem;letter-spacing:-.06em;gap:12px}.loading span{font-size:.85rem;color:var(--muted);letter-spacing:0}.layout{max-width:1180px;margin:auto;padding:28px 36px 70px}.top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:35px}.brand{display:flex;align-items:center;gap:12px}.brand-logo{display:block;width:56px;height:56px;object-fit:contain;object-position:center;flex:none;border-radius:50%;border:1px solid var(--line);background:white}.brand-copy{min-width:0}.brand strong{display:block;line-height:1.2}.brand strong{font-size:1.15rem;font-weight:650;letter-spacing:-.04em}.brand small{display:block;margin-top:2px;font-size:.7rem}.top-right{display:flex;align-items:center;gap:22px}.top-date{font-size:.75rem;color:var(--muted)}.subtle{color:var(--muted);font-size:.8rem;padding:8px 0}.nav{display:flex;gap:6px;padding:5px;background:#e9ecef;border-radius:16px;width:max-content;margin-bottom:35px}.nav a{padding:10px 22px;border-radius:12px;font-size:.8rem}.nav a.active{background:white;box-shadow:0 2px 6px #34383c08;font-weight:600}.intro{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}.intro p{color:var(--muted);margin-top:12px;line-height:1.5;font-size:.88rem}.eyebrow{font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:13px}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.module{border-radius:28px;min-height:300px;padding:30px;display:flex;flex-direction:column;justify-content:space-between;position:relative;transition:transform .2s;background:var(--mint)}.module:hover{transform:translateY(-3px)}.module.cash{background:var(--lime)}.module-top{display:flex;justify-content:space-between;align-items:center}.module-icon{width:48px;height:48px;border-radius:50%;border:1px solid #34383c30;display:grid;place-items:center}.module-arrow{font-size:1.8rem;font-weight:300}.module h2{font-size:2rem;margin-bottom:10px}.module p{font-size:.84rem;max-width:270px;line-height:1.5;color:#4a514e}.module-foot{border-top:1px solid #34383c20;padding-top:20px;margin-top:30px;display:flex;justify-content:space-between;align-items:end;font-size:.76rem}.module-foot strong{font-size:2.1rem;font-weight:550;letter-spacing:-.07em}.quiet-foot{color:var(--muted);font-size:.74rem;margin-top:22px;line-height:1.6}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:30px;background:white;padding:8px 12px;font-size:.72rem}.pill i{height:6px;width:6px;border-radius:50%;background:#6d947f}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:13px 20px;border-radius:15px;background:var(--ink);color:white;font-size:.83rem;font-weight:550}.button.secondary{background:white;color:var(--ink);border:1px solid var(--line)}.button.ghost{background:transparent;color:var(--muted);padding-left:0;padding-right:0}.button.danger{background:#faece8;color:#985341}.icon-button{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:white;border:1px solid var(--line)}.day-switch{display:flex;gap:8px;align-items:center}.day-switch input{border:none;background:white;padding:12px 13px;border-radius:13px;font-size:.85rem;min-height:42px;max-width:165px}.cash-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:24px;align-items:start}.balance{background:var(--ink);color:white;padding:28px 30px;border-radius:27px;margin-bottom:18px}.balance-label{font-size:.8rem;opacity:.7}.balance-number{font-size:clamp(3rem,7vw,5rem);font-weight:520;letter-spacing:-.075em;line-height:1.15;margin-top:10px;font-variant-numeric:tabular-nums}.balance-sub{border-top:1px solid #ffffff28;margin-top:20px;padding-top:17px;display:flex;justify-content:space-between;font-size:.76rem;gap:12px;color:#d3d7da}.balance-sub strong{font-weight:550;color:white}.flow{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:22px}.flow>div{padding:17px 15px;background:white;border-radius:18px;min-width:0}.flow small{font-size:.68rem}.flow strong{display:block;margin-top:8px;font-size:1.2rem;letter-spacing:-.04em;font-weight:600}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:28px}.actions .button{flex:1}.panel{background:white;border-radius:25px;padding:23px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel-head .subtle{font-size:.72rem;white-space:nowrap}.envelopes{display:grid;gap:12px}.envelope{width:100%;padding:20px;border-radius:20px;text-align:left;background:#f2f4f5}.envelope:nth-child(3n+1){background:#dce9e2}.envelope:nth-child(3n+2){background:#f0e6da}.envelope:nth-child(3n){background:#e5e1ef}.envelope-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.84rem}.envelope-top span{overflow-wrap:anywhere;font-weight:550}.envelope strong{font-size:1.75rem;font-weight:550;letter-spacing:-.06em;display:block;margin-top:13px}.envelope small{display:block;color:#727c76;font-size:.69rem;margin-top:8px}.progress{margin-top:13px;height:4px;border-radius:8px;background:#34383c12;overflow:hidden}.progress i{display:block;background:#738d7f;height:100%}.envelope-total{display:flex;align-items:center;justify-content:space-between;font-size:.76rem;padding-top:19px;margin-top:18px;border-top:1px solid var(--line);color:var(--muted)}.envelope-total b{font-size:.9rem;font-weight:600;color:var(--ink)}.empty{padding:24px 0;text-align:center;color:var(--muted);font-size:.83rem;line-height:1.6}.empty strong{display:block;color:var(--ink);font-weight:550;margin-bottom:5px}.empty .button{margin-top:16px}.opening{padding:16px 18px;background:#e9eef1;border-radius:17px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:.78rem;margin-bottom:22px;line-height:1.5}.opening button{white-space:nowrap;font-weight:600;text-decoration:underline;text-underline-offset:3px}.ledger-list{display:grid}.entry{width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--line)}.entry:last-child{border:0}.entry-icon{width:37px;height:37px;display:grid;place-items:center;background:var(--soft);border-radius:12px;font-size:1.25rem;flex:none}.entry.in .entry-icon{background:#dfebe4;color:#567862}.entry.out .entry-icon{background:#f4e7df;color:#9c6b51}.entry-text{flex:1;min-width:0}.entry-text strong{display:block;font-size:.83rem;font-weight:550;overflow-wrap:anywhere}.entry-text small{display:block;font-size:.7rem;margin-top:5px;line-height:1.5;overflow-wrap:anywhere}.entry-amount{font-size:1rem;white-space:nowrap;font-weight:550;letter-spacing:-.035em}.entry.in .entry-amount{color:#527a61}.entry.voided{opacity:.5}.entry.voided .entry-amount{text-decoration:line-through}.demo-banner{padding:16px 20px;background:#e4ddf3;color:#5f5874;border-radius:17px;display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px;font-size:.8rem;line-height:1.5}.demo-banner button{text-decoration:underline;white-space:nowrap;font-weight:600}.save-state{font-size:.7rem;color:var(--muted);text-align:right;margin-top:16px}.save-state:before{content:'●';color:#719985;margin-right:6px}.error-banner{padding:14px 18px;border-radius:15px;background:#faece8;color:#985341;margin-bottom:20px;font-size:.8rem;line-height:1.6}.cash-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:25px}.cash-footer .subtle{font-size:.72rem}.login-layout{min-height:95dvh;display:grid;place-items:center;padding:25px}.login-card{width:100%;max-width:400px;text-align:center}.login-card .brand{justify-content:center;margin-bottom:45px}.login-card h1{font-size:2.4rem}.login-card p{color:var(--muted);font-size:.85rem;line-height:1.6;margin-top:12px}.login-card form{margin-top:30px}.pin-input{width:100%;padding:20px;text-align:center;letter-spacing:.55em;font-size:1.8rem;border:1px solid var(--line);border-radius:17px;background:white;outline:none;box-shadow:none}.login-card .button{width:100%;margin-top:16px;min-height:52px}.login-note{margin-top:24px!important;font-size:.72rem!important}.form-error{font-size:.79rem;line-height:1.5;color:#ac5947;margin-top:13px}.overlay{position:fixed;inset:0;z-index:100;background:#1d282955;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:24px}.dialog{background:#f8f9fa;border-radius:27px;width:100%;max-width:480px;padding:25px;max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.dialog-head h2{font-size:1.55rem}.dialog-head button{font-size:1.5rem;color:var(--muted);padding:3px 8px}.field{display:block;margin-bottom:17px;font-size:.77rem;color:#697179}.field input,.field select,.field textarea{display:block;width:100%;min-width:0;margin-top:8px;border:1px solid #e0e5e8;border-radius:13px;background:white;padding:13px 14px;min-height:47px;font-size:1rem;color:var(--ink);box-shadow:none}.field textarea{resize:vertical;min-height:75px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.preview{background:#e5ede8;padding:18px;border-radius:16px;display:flex;justify-content:space-between;align-items:center;font-size:.8rem;margin:10px 0 22px;gap:12px}.preview strong{font-size:1.6rem;letter-spacing:-.05em;font-weight:600}.form-actions{display:flex;gap:10px;margin-top:20px}.form-actions>*{flex:1}.detail-amount{font-size:3.1rem;letter-spacing:-.07em;margin-bottom:22px}.info-line{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--line);font-size:.82rem;line-height:1.5}.info-line span{color:var(--muted)}.info-line strong{font-weight:550;text-align:right;overflow-wrap:anywhere}.detail-note{font-size:.83rem;line-height:1.6;margin:18px 0;color:var(--muted);white-space:pre-wrap}.backdrop-open{overflow:hidden}#notice:not(:empty){position:fixed;z-index:150;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 20px;border-radius:16px;font-size:.79rem;max-width:calc(100% - 30px);box-shadow:0 8px 35px #1b252233;line-height:1.5;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:800px){.layout{padding:22px 18px max(35px,env(safe-area-inset-bottom))}.top{margin-bottom:25px}.top-right{gap:14px}.top-date{display:none}.nav{margin-bottom:30px;width:100%}.nav a{flex:1;padding:11px 12px;text-align:center}.intro{align-items:start;flex-wrap:wrap;gap:18px;margin-bottom:25px}.intro h1{font-size:2.25rem}.intro p{font-size:.8rem;margin-top:10px}.intro .day-switch{width:100%}.day-switch input{max-width:none;flex:1;text-align:center}.home-grid,.cash-grid{grid-template-columns:1fr;gap:20px}.module{min-height:275px;padding:25px}.module h2{font-size:1.9rem}.module-foot strong{font-size:2rem}.balance{padding:25px}.balance-number{font-size:4.2rem}.flow{gap:8px}.flow>div{padding:16px 12px}.flow strong{font-size:1.1rem}.flow small{font-size:.62rem}.actions{gap:8px}.actions .button{padding:13px 10px;font-size:.78rem}.panel{padding:21px}.cash-grid .right{order:0}.cash-grid .left{min-width:0}.cash-footer{align-items:start}.dialog{padding:22px;max-height:calc(100dvh - 20px);border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:max(24px,env(safe-area-inset-bottom));max-width:100%}.overlay{padding:10px 0 0;align-items:flex-end}.field input,.field select,.field textarea{font-size:16px}.form-actions .button{min-height:50px}.opening{font-size:.73rem;gap:10px}.demo-banner{font-size:.74rem;padding:14px 16px}.demo-banner button{white-space:normal;min-width:100px}.entry-amount{font-size:.95rem}.entry-text strong{font-size:.81rem}.entry-text small{font-size:.68rem}.envelopes{grid-template-columns:1fr 1fr;gap:10px}.envelope{padding:16px}.envelope strong{font-size:1.5rem}.envelope-top{font-size:.75rem}.save-state{text-align:left}.cash-footer .subtle{font-size:.69rem}.brand small{font-size:.65rem}}
@media(max-width:370px){.envelopes{grid-template-columns:1fr}.flow>div{padding:13px 9px}.flow strong{font-size:1rem}.balance-number{font-size:3.6rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:800px){.cash-grid{grid-template-areas:"balance" "flow" "actions" "envelopes" "ledger" "saved";gap:18px}.cash-grid:has(.opening){grid-template-areas:"balance" "flow" "actions" "opening" "envelopes" "ledger" "saved"}.cash-grid>.left{display:contents}.cash-grid>.left>.balance{grid-area:balance;margin:0}.cash-grid>.left>.flow{grid-area:flow;margin:0}.cash-grid>.left>.actions{grid-area:actions;margin:0}.cash-grid>.left>.opening{grid-area:opening;margin:0}.cash-grid>.left>.panel{grid-area:ledger}.cash-grid>.left>.save-state{grid-area:saved;margin:0}.cash-grid>.right{grid-area:envelopes}}
.history-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#e5eee9;border-radius:18px;padding:16px 20px;margin-bottom:24px}.history-banner strong{display:block;font-size:.85rem;font-weight:600}.history-banner small{display:block;margin-top:5px;font-size:.72rem;line-height:1.5}.history-banner .button{white-space:nowrap}.history-help{font-size:.83rem;color:var(--muted);line-height:1.6;margin-bottom:20px}.history-days{display:grid}.history-day{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;text-align:left;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid var(--line);font-size:.8rem}.history-day strong{font-size:.95rem;font-weight:550;white-space:nowrap}.history-day>span:last-child{font-size:1.4rem;color:var(--muted)}.sheet-layout{max-width:750px}.sheet-balance-note{font-size:.75rem;color:#d3d7da;margin-top:14px}.sheet-field{border-bottom:1px solid var(--line);padding:17px 0}.sheet-field small{display:block;font-size:.73rem;margin-bottom:8px}.sheet-field>div{font-size:1rem;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.source-link{display:inline-block;margin-top:14px}.sheet-day .quiet-foot{font-size:.77rem}.sheet-layout+.cash-footer{max-width:750px;flex-wrap:wrap}@media(max-width:600px){.history-banner{padding:15px;gap:12px}.history-banner .button{font-size:.72rem;padding:11px 13px}.history-banner small{font-size:.64rem}.history-banner strong{font-size:.78rem}.history-day{font-size:.77rem}.sheet-layout .balance-number{font-size:3.5rem}}
/* Everyday cash workflow */
[hidden]{display:none!important}.cash-overview{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;margin-bottom:20px}.cash-overview .balance{margin:0}.envelope-balance{background:#e6ede9;border-radius:27px;padding:28px;display:flex;flex-direction:column;justify-content:center;gap:13px}.envelope-balance>span{display:flex;align-items:center;gap:9px;font-size:.8rem;color:#65766b}.envelope-balance>strong{font-size:2.7rem;letter-spacing:-.06em;font-weight:550}.envelope-balance small{line-height:1.5}.cash-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cash-tile{text-align:left;border-radius:23px;padding:23px;background:#fff;display:flex;flex-direction:column;gap:14px;min-height:165px;transition:transform .15s}.cash-tile:hover{transform:translateY(-2px)}.tile-top{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%}.tile-top>strong{font-weight:600;font-size:1rem;letter-spacing:-.025em}.tile-top>span{border-radius:50%;width:29px;height:29px;display:grid;place-content:center;background:#fff8;font-size:1.3rem;flex:none}.tile-amount{font-size:2rem;font-weight:550;letter-spacing:-.05em}.cash-tile small{font-size:.75rem;line-height:1.5;color:#596b61}.payment-tile{background:#c7dfd2}.tip-tile{background:#e9e5f1}.tip-tile small{color:#766c86}.expense-tile{background:#eed6c6}.expense-tile small{color:#826b5c}.change-summary{display:flex;justify-content:space-between;gap:15px;padding:17px 4px 25px;font-size:.77rem;color:var(--muted)}.change-summary b{color:var(--ink);font-weight:550;margin-left:5px}.section-hint{font-size:.76rem;color:var(--muted);margin-top:6px}.day-journal{margin-bottom:22px}.envelopes-panel{margin:0}.envelopes-panel>.panel-head>.button{font-size:.75rem;min-height:40px;padding:10px 14px}.envelope-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.envelope-cards>.empty{grid-column:1/-1;max-width:420px;margin:0 auto}.envelope-cards>.empty p{margin-top:10px;font-size:.75rem}.envelope-card{background:#eef3ef;border-radius:20px;padding:18px;min-width:0}.envelope-card:nth-child(3n+2){background:#f2e9de}.envelope-card:nth-child(3n){background:#eee8f4}.envelope-open{display:block;width:100%;text-align:left;padding:0}.envelope-open .envelope-top strong{font-size:.91rem;font-weight:600;overflow-wrap:anywhere}.envelope-amount{display:block;font-size:2rem;letter-spacing:-.055em;margin:13px 0}.envelope-open small{display:block;font-size:.68rem;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}.envelope-open .progress{display:block}.envelope-history-link{display:block;font-size:.7rem;color:#68786e;margin-top:12px}.envelope-controls{display:flex;gap:8px;margin-top:18px}.envelope-controls .button{flex:1;min-height:39px;font-size:.75rem;padding:10px 8px;background:#ffffff9c;border:0}.journal-filters{display:flex;gap:5px;overflow-x:auto;padding-bottom:12px;scrollbar-width:thin}.journal-filters button{flex:none;padding:8px 13px;border-radius:11px;color:var(--muted);font-size:.73rem}.journal-filters .active{background:#edf1ee;color:#3b5547;font-weight:600}.receipt-facts{display:flex;flex-wrap:wrap;gap:7px 15px;font-size:.68rem;color:var(--muted);margin-top:9px;line-height:1.6}.receipt-facts>span{display:block}.receipt-facts b{display:block;color:var(--ink);font-size:.79rem;font-weight:550}.receipt-facts .change-fact b{color:#9a7055}.cash-footer{justify-content:flex-start;flex-wrap:wrap;gap:12px 23px}.payment-step{position:relative;background:white;border:1px solid var(--line);border-radius:17px;padding:18px 16px 15px 48px;margin-bottom:13px}.step-number{position:absolute;left:14px;top:17px;background:#f0f3f1;color:#6a7e70;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;font-size:.72rem}.payment-step .field{margin:0}.payment-step .field input{font-size:1.4rem;min-height:52px;border:0;background:#f5f7f6;padding:10px 12px}.field-hint{font-size:.72rem;line-height:1.6;color:var(--muted);margin:9px 0 16px}.payment-step .field-hint{margin-bottom:0}.change-step{background:#f7eee6;border-color:#eadfd5}.change-step input{background:white!important}.change-step .step-number{background:#ebdbcd;color:#997451}.text-button{text-decoration:underline;text-underline-offset:3px;font-size:inherit;padding:0;color:inherit}.payment-help{font-size:.76rem;color:#687b6e;line-height:1.6;margin-bottom:16px}.payment-help:empty{display:none}.payment-help.has-error{color:#a75b43}.date-details{margin:20px 0;color:var(--muted);font-size:.76rem}.date-details summary{cursor:pointer;min-height:25px}.date-details .field{margin-top:13px}.form-context{border-radius:13px;background:#e8efea;padding:14px 16px;font-size:.8rem;line-height:1.5;margin-bottom:20px}.envelope-detail .detail-amount{margin:8px 0 18px}.envelope-totals{display:flex;gap:24px;justify-content:space-between;font-size:.74rem;color:var(--muted);margin-bottom:24px}.envelope-totals b{display:block;color:var(--ink);font-size:1rem;font-weight:550;margin-top:7px}.event-date{display:block;margin-top:20px}.envelope-detail>small{display:block}.dialog h3{font-size:1.05rem;letter-spacing:-.025em}.field select{font-size:1rem}.day-journal .entry{align-items:flex-start}.day-journal .entry-icon{margin-top:2px}.day-journal .entry-amount{margin-top:6px}
@media(max-width:800px){.cash-overview{grid-template-columns:1fr;gap:11px}.cash-overview .balance{padding:23px}.envelope-balance{padding:17px 21px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 15px;border-radius:19px}.envelope-balance>span{font-size:.73rem}.envelope-balance>strong{font-size:1.7rem;grid-column:2;grid-row:1/3;align-self:center}.envelope-balance small{font-size:.65rem}.cash-tiles{grid-template-columns:1fr 1fr;gap:10px}.cash-tile{padding:18px 16px;min-height:145px;gap:10px;border-radius:19px}.cash-tile.payment-tile{grid-column:1/-1;min-height:130px}.tile-top>strong{font-size:.85rem}.tile-top>span{width:25px;height:25px}.tile-amount{font-size:1.7rem}.cash-tile small{font-size:.69rem}.change-summary{padding:15px 1px 22px;font-size:.69rem;gap:10px}.change-summary b{display:block;margin:5px 0 0;font-size:.85rem}.envelope-cards{grid-template-columns:1fr 1fr;gap:10px}.envelope-card{padding:16px}.envelope-amount{font-size:1.75rem}.envelope-controls{flex-wrap:wrap;gap:6px}.envelope-controls .button{font-size:.71rem;min-width:65px}.section-hint{font-size:.7rem}.envelopes-panel>.panel-head{align-items:start}.envelope-open .envelope-top strong{font-size:.8rem}.day-journal .entry{gap:9px}.day-journal .entry-icon{width:29px;height:29px;border-radius:9px;font-size:1.1rem}.day-journal .entry-amount{font-size:.9rem}.receipt-facts{gap:7px 10px;font-size:.62rem}.receipt-facts b{font-size:.72rem}.payment-step{padding:16px 14px 14px 46px}.cash-footer .subtle{font-size:.72rem}.payment-step .field input{font-size:1.25rem}}
@media(max-width:370px){.envelope-cards{grid-template-columns:1fr}.tile-top>strong{font-size:.81rem}.cash-tile{padding:16px 13px}.tile-top{gap:6px}.cash-tiles .tile-top>span{width:22px;height:22px;font-size:1.15rem}}
.cash-modes{display:flex;gap:5px;padding:5px;background:#e7eeea;border-radius:15px;width:max-content;max-width:100%;margin-bottom:25px}.cash-modes button{padding:10px 18px;border-radius:11px;font-size:.8rem;color:#6b7971}.cash-modes .active{background:white;color:#344a3c;font-weight:600}.sheet-sync-line{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;font-size:.76rem;color:#6a8071}.sheet-sync-line i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#779984;margin-right:7px}.source-day-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}.source-day{max-width:none}.source-envelopes{margin-top:25px}.source-envelopes>.quiet-foot{margin-top:14px}.sheet-info{color:var(--muted);font-size:.8rem;margin-top:18px;line-height:1.6}.local-edit-note{background:#f4ebdf;color:#8d7155;padding:13px 17px;border-radius:13px;font-size:.76rem;line-height:1.6;margin-top:14px}.sheet-field.local-field{border-left:3px solid #c8a97c;padding-left:14px}.sheet-field.local-field small:after{content:' · правка приложения';color:#a17c4c}.source-day-actions .subtle{margin-left:auto}@media(max-width:600px){.cash-modes{width:100%}.cash-modes button{flex:1;padding:11px 9px;font-size:.73rem}.sheet-sync-line{font-size:.69rem}.source-day-actions .button{font-size:.72rem;padding:12px 14px}.source-day-actions .subtle{margin-left:0}.sheet-day .panel-head{align-items:start}.sheet-day .panel-head small{font-size:.67rem;max-width:95px;text-align:right}}

/* Use the salon logo in the same circular badge on every screen. */
.top .brand{min-width:0}.top-right{flex:none}
@media(max-width:800px){.top{gap:12px}.brand{gap:10px}.brand-logo{width:56px;height:56px}.brand strong{font-size:1rem}.brand small{white-space:nowrap}.login-card .brand{flex-wrap:wrap}}

/* Cash statistics shares the portal's cards, typography and date controls. */
.cash-modes{flex-wrap:wrap}.stats-intro{margin-top:30px}.stats-source,.stats-segmented{display:flex;gap:4px;background:#e9ecef;border-radius:15px;padding:5px}.stats-source button,.stats-segmented button{padding:10px 15px;border-radius:11px;font-size:.77rem;color:var(--muted);min-height:40px}.stats-source button.active,.stats-segmented button.active{background:white;color:var(--ink);font-weight:600}.stats-period{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:28px 0 20px}.stats-period-nav,.stats-selectors{display:flex;align-items:center;gap:10px}.stats-period-nav h2{text-transform:capitalize;font-size:1.7rem;margin:0 9px}.stats-selectors select{background:white;border:1px solid var(--line);border-radius:13px;padding:12px;font-size:.85rem}.stats-update{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:.75rem;color:var(--muted);margin-bottom:17px}.stats-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stats-metric{padding:25px;border-radius:25px;min-width:0}.stats-income{background:var(--mint)}.stats-tips{background:#e9dfef}.stats-expenses{background:#f0e6da}.stats-metric>span{font-size:.88rem;font-weight:550;display:block}.stats-metric>strong{font-size:clamp(1.7rem,3.6vw,2.8rem);font-weight:550;letter-spacing:-.065em;display:block;margin:16px 0 10px;overflow-wrap:anywhere}.stats-metric>small{font-size:.72rem;color:#5e6763}.stats-metric>p{font-size:.73rem;color:#5e6763;line-height:1.5;margin-top:12px}.stats-caption{font-size:.73rem;line-height:1.6;color:var(--muted);margin:16px 0 23px}.stats-review{background:#f5ecd8;border-radius:20px;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px}.stats-review strong{font-size:.84rem;font-weight:600}.stats-review p{font-size:.75rem;line-height:1.5;margin-top:7px;color:#7e6d4d}.stats-review .button{white-space:nowrap;font-size:.77rem}.stats-chart-panel{margin-top:25px}.stats-chart-scroll{overflow-x:auto;overscroll-behavior-x:contain}.stats-chart{display:grid;grid-template-columns:repeat(var(--columns),minmax(35px,1fr));gap:8px;padding-top:15px;min-height:200px}.stats-chart.by-day{min-width:850px}.stats-bar{min-width:0;padding:0;display:flex;flex-direction:column;gap:9px;color:var(--muted);text-align:center}.stats-bar-track{height:145px;border-bottom:1px solid var(--line);display:flex;align-items:flex-end;justify-content:center}.stats-bar-track i{display:block;width:80%;max-width:38px;border-radius:7px 7px 0 0;background:#9ebead;min-width:5px}.stats-bar.current .stats-bar-track i{background:var(--ink)}.stats-bar.partial .stats-bar-track i{background:repeating-linear-gradient(45deg,#c8d5cd,#c8d5cd 5px,#e0e8e3 5px,#e0e8e3 10px)}.stats-bar-value{font-size:.62rem;white-space:nowrap;min-height:15px}.stats-bar-label{font-size:.72rem}.stats-chart-panel .stats-caption{margin-bottom:0}.stats-month-highlights{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.stats-month-highlights>div{border-radius:22px;background:white;padding:22px}.stats-month-highlights span{display:block;font-size:.75rem;color:var(--muted);margin-bottom:13px}.stats-month-highlights>div>strong{font-size:1rem;font-weight:550}.stats-month-link{text-align:left;display:grid;gap:8px}.stats-month-link strong{font-size:1.15rem;text-transform:capitalize;font-weight:600}.stats-month-link b{font-size:1.7rem;letter-spacing:-.05em;font-weight:550}.stats-rankings{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.stats-ranking h2{font-size:1.18rem;margin-bottom:12px}.stats-day-row{display:grid;grid-template-columns:1fr auto 10px;align-items:center;gap:12px;width:100%;text-align:left;min-height:55px;padding:14px 0;border-bottom:1px solid var(--line);font-size:.85rem}.stats-day-row strong{font-size:.95rem;font-weight:550;white-space:nowrap}.stats-day-row>span:last-child{font-size:1.4rem;color:var(--muted)}.stats-day-row:last-child{border-bottom:0}.stats-empty{padding:30px 20px;color:var(--muted);font-size:.85rem;line-height:1.6}.stats-weekdays{margin-bottom:25px}.stats-weekday{display:grid;grid-template-columns:135px 1fr 90px 50px;align-items:center;gap:15px;padding:13px 0;font-size:.83rem}.stats-week-track{background:var(--soft);height:8px;border-radius:20px;overflow:hidden}.stats-week-track i{display:block;background:#9ebead;height:100%;border-radius:20px}.stats-weekday strong{font-weight:550;text-align:right;font-variant-numeric:tabular-nums}.stats-weekday small{font-size:.7rem;text-align:right}.stats-weekdays .stats-caption{margin-bottom:0}.stats-all-days summary{font-size:.85rem;color:var(--muted);cursor:pointer;padding:12px 0}.stats-detail-metrics>div{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);font-size:.82rem}.stats-detail-metrics strong{font-size:1.15rem;white-space:nowrap;font-weight:550}.stats-original{margin:24px 0;line-height:1.6}.stats-original h3{font-size:1rem;margin-bottom:12px}.stats-original>div{padding:12px 0;border-bottom:1px solid var(--line)}.stats-original small{font-size:.74rem}.stats-original p{font-size:.87rem;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:5px}.stats-edit-button{width:100%}.stats-review-day{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);width:100%;text-align:left;font-size:.85rem}.stats-review-day small{display:block;font-size:.72rem;margin-top:7px;line-height:1.5}
@media(max-width:800px){.stats-intro{margin-top:25px}.stats-intro h1{font-size:2.1rem}.stats-source{width:100%}.stats-source button{flex:1;padding:10px 8px;font-size:.74rem}.stats-period{flex-wrap:wrap;gap:15px}.stats-period-nav{width:100%;gap:5px}.stats-period-nav h2{font-size:1.3rem;flex:1;margin:0 7px}.stats-selectors{width:100%}.stats-selectors select{flex:1}.stats-segmented{flex:2}.stats-segmented button{flex:1}.stats-metrics{grid-template-columns:1fr;gap:12px}.stats-metric{padding:21px}.stats-metric>strong{font-size:2.7rem;margin:10px 0 6px}.stats-metric>p{margin-top:8px}.stats-review{display:block;padding:19px}.stats-review .button{width:100%;margin-top:16px}.stats-chart.by-month{min-width:570px}.stats-chart.by-day{min-width:850px}.stats-bar-value{font-size:.59rem}.stats-month-highlights,.stats-rankings{grid-template-columns:1fr;gap:14px}.stats-month-highlights>div{padding:21px}.stats-weekday{grid-template-columns:100px 1fr 70px;gap:8px;font-size:.72rem}.stats-weekday small{grid-column:1;text-align:left;font-size:.64rem;margin-top:-8px}.stats-weekdays .panel-head{align-items:start;flex-wrap:wrap}.stats-weekdays .panel-head small{font-size:.7rem}.stats-review-day{font-size:.79rem}.stats-caption{font-size:.7rem}.stats-update{font-size:.69rem;align-items:start}.cash-modes{width:100%}.cash-modes button{flex:1;padding:10px 7px!important;font-size:.72rem!important}.stats-detail-metrics{font-size:.77rem}}

.stats-weekday-leaders{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:18px;margin-top:15px;font-size:.78rem;color:var(--muted)}.stats-weekday-leaders b{font-weight:550;color:var(--ink)}

.envelope-heading{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:1.35rem;font-weight:620;padding:0;color:var(--ink)}.envelope-heading>span:last-child{color:#7c9488;font-size:1.5rem;font-weight:400}.envelope-pin-form{margin-top:24px;max-width:320px}.envelope-pin-form input{letter-spacing:.35em}.envelope-contents{margin-top:22px}.envelope-add{display:flex;justify-content:flex-end;margin-bottom:16px}

/* Local card layout: same CASH source and write path. */
.cash-source-overview{margin-top:4px}.cash-opening-card{background:#eeebf3}.cash-opening-card>span{color:#7e748a}.cash-opening-card>strong{font-size:2.1rem;letter-spacing:-.05em}.cash-source-tiles{margin-top:20px}.cash-source-tiles .payment-tile{background:#e7dff0}.cash-source-tiles .payment-tile small{color:#786987}.cash-source-tiles .tip-tile{background:#f0e9dc}.cash-source-tiles .tip-tile small{color:#8b7b60}.cash-source-tiles .expense-tile{background:#f0dcd4}.cash-source-details{padding:0;overflow:hidden;margin-top:10px}.cash-source-details>summary{padding:22px 26px;font-size:1rem;font-weight:600;cursor:pointer}.cash-source-details>.source-day{padding:0 22px 22px}.cash-source-details .sheet-day{box-shadow:none;padding:10px 0 0}.cash-source-details .sheet-day>.panel-head{display:none}@media(max-width:600px){.cash-source-details>summary{padding:20px}.cash-opening-card>strong{font-size:1.7rem}.cash-source-tiles .tile-top>strong{font-size:.9rem}}

.cash-envelope-summary{width:100%;text-align:left;background:#eeeaf3}.cash-envelope-summary strong{font-size:2.1rem;letter-spacing:-.05em}.cash-envelope-summary:hover{background:#e6e0ee}.cash-source-overview .balance-sub{margin-top:22px}@media(max-width:600px){.cash-envelope-summary strong{font-size:1.8rem}.cash-envelope-summary{padding:20px}}
/* CASH: one balance, one journal, private wallets. */
.cash-workspace{display:grid;grid-template-columns:minmax(250px,.65fr) minmax(0,1.35fr);gap:22px;align-items:start;margin:18px 0 22px}.cash-main-balance{margin:0;position:sticky;top:20px}.cash-balance-caption{font-size:.78rem;color:#ddd;margin:20px 0 0;line-height:1.6}.cash-unified-journal{margin:0}.cash-unified-journal>.panel-head{align-items:center;gap:12px}.cash-unified-journal .panel-head .button{font-size:.78rem;padding:12px 16px;min-height:42px}.cash-journal-footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:18px;margin-top:12px}.cash-journal-footer .subtle{font-size:.7rem;text-align:left}.cash-source-entry{padding:20px 0;border-bottom:1px solid var(--line);font-size:.84rem;line-height:1.6;overflow-wrap:anywhere}.cash-source-entry>strong{font-weight:600}.cash-source-entry p{margin-top:9px}.cash-entry-heading{display:flex;justify-content:space-between;gap:10px}.cash-entry-heading small{color:var(--muted);font-size:.68rem}.cash-source-entry dl{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:16px}.cash-source-entry dt{color:var(--muted);font-size:.7rem}.cash-source-entry dd{margin:4px 0 0}.cash-operation-menu{display:grid;gap:10px}.cash-operation-menu>button{padding:18px;text-align:left;background:white;border:1px solid var(--line);border-radius:16px;min-height:58px}.cash-operation-menu strong,.cash-operation-menu small{display:block}.cash-operation-menu small{color:var(--muted);font-size:.75rem;margin-top:7px}.cash-receipt-tips{background:#eeebf3;border-radius:17px;padding:18px;margin-bottom:13px}.cash-receipt-tips .field:last-child{margin-bottom:0}.cash-receipt-tips #new-master-field{margin-top:12px}.cash-customer-results:empty{display:none}.cash-customer-results{border:1px solid var(--line);background:white;border-radius:14px;padding:6px;margin:-9px 0 18px;max-height:220px;overflow:auto;font-size:.8rem}.cash-customer-results button{display:block;text-align:left;width:100%;padding:13px 10px;border-radius:9px}.cash-customer-results button:hover,.cash-customer-results button:focus{background:#eeebf3}.cash-customer-results small{display:block;color:var(--muted);margin-top:5px}.stats-cash-carry{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#34383a;color:white;padding:24px;border-radius:22px;margin-bottom:20px}.stats-cash-carry span{font-size:.83rem}.stats-cash-carry strong{font-size:1.7rem;letter-spacing:-.04em}.cash-unified-journal .receipt-facts{display:grid;grid-template-columns:1fr 1fr}.cash-unified-journal .entry-amount{white-space:nowrap}
@media(max-width:800px){.cash-workspace{grid-template-columns:1fr;gap:18px}.cash-main-balance{position:static}.cash-source-entry dl{grid-template-columns:1fr}.cash-journal-footer{gap:12px}.cash-unified-journal .entry-text{min-width:0}.cash-unified-journal .entry-amount{font-size:.9rem}.stats-cash-carry{padding:20px}.stats-cash-carry strong{font-size:1.4rem}}
.cash-modes{background:#ece9f1}.cash-unified-journal .entry.in .entry-icon{background:#eeebf3;color:#685775}.cash-unified-journal .entry.in .entry-amount{color:#685775}.cash-receipt-tips+.change-step~.preview{background:#eeebf3}.cash-customer-results button:focus-visible{outline:2px solid #8e7ba0;outline-offset:-2px}
/* Money and savings stay together; the journal grows independently. */
.cash-money-column{display:grid;gap:16px;min-width:0}.cash-money-column .cash-main-balance{position:static}.cash-money-column .envelopes-panel{padding:23px;border-radius:25px;min-width:0}.cash-money-column .envelope-heading{font-size:1.05rem;gap:16px}.cash-money-column .envelope-cards{grid-template-columns:1fr}.cash-money-column .envelope-pin-form{padding-top:18px}.cash-money-column .envelope-pin-form .button{width:100%}.cash-money-column .envelope-add{margin-top:18px}.cash-money-column .envelope-controls .button{min-width:0}
@media(max-width:800px){.cash-money-column{gap:12px}.cash-money-column .envelopes-panel{padding:20px;border-radius:22px}.cash-money-column .envelope-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}}
.cash-month-leaders{margin-top:24px}.cash-month-table{margin-top:20px}.cash-month-table>summary,.stats-all-days>summary{font-size:1rem;font-weight:600;cursor:pointer}.cash-month-scroll{overflow:auto;margin-top:18px}.cash-month-table table{width:100%;border-collapse:collapse;font-size:.8rem}.cash-month-table th,.cash-month-table td{padding:15px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.cash-month-table th:first-child{text-align:left}.cash-month-table thead th{font-size:.7rem;font-weight:500;color:var(--muted)}.cash-month-table tbody th button{font-weight:550;text-align:left}.cash-month-table td:last-child{color:#685775}.cash-month-table button:disabled{color:var(--muted)}.cash-month-table+.stats-all-days{margin-top:20px}
.stats-metric.stats-income{background:#34383a;color:#fff}.stats-metric.stats-income>small,.stats-metric.stats-income>p{color:#d7d2dc}
.stats-metrics{align-items:start}.stats-metric{min-height:280px;display:flex;flex-direction:column}.cash-metric-details{margin-top:auto;padding-top:20px}.cash-metric-details>summary{font-weight:600;font-size:.82rem;cursor:pointer;padding:8px 0;min-height:34px}.cash-breakdown{font-size:.78rem;line-height:1.5;margin-top:10px}.cash-breakdown-row{display:flex;justify-content:space-between;align-items:start;gap:14px;padding:12px 0;border-bottom:1px solid #34383a18}.cash-breakdown-row>span{min-width:0;overflow-wrap:anywhere}.cash-breakdown-row b{white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}.cash-breakdown-row small{display:block;opacity:.75;font-size:.68rem;margin-top:4px}.cash-breakdown-deductions{margin-top:14px}.cash-breakdown-total{display:flex;justify-content:space-between;gap:14px;align-items:start;padding-top:16px;margin-top:8px;font-weight:600}.cash-breakdown-total strong{font-size:1rem;white-space:nowrap}.cash-breakdown-help,.cash-breakdown-empty{font-size:.7rem;opacity:.8;line-height:1.6;margin:14px 0 0}.cash-breakdown-note{display:flex;justify-content:space-between;gap:12px;font-size:.7rem;opacity:.85;padding:7px 0 0 10px;overflow-wrap:anywhere}.cash-breakdown-note>span:last-child{white-space:nowrap}.stats-income .cash-breakdown-row{border-color:#ffffff26}.stats-income .cash-breakdown-deductions{color:#e2dce7}@media(max-width:800px){.stats-metric{min-height:0}.cash-metric-details{padding-top:14px}.cash-breakdown-total strong{font-size:1rem}}
.stats-metric>p{min-height:3em}@media(max-width:800px){.stats-metric>p{min-height:0}}

.tip-split-heading,.tip-split-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.tip-split-heading{font-size:.9rem}.tip-split-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(90px,.8fr) 30px;align-items:center;gap:12px;margin-bottom:14px}.tip-split-row .field{margin:0;font-size:.75rem}.tip-split-row input,.tip-split-row select{width:100%;min-width:0;margin-top:8px}.tip-remove{font-size:1.2rem;color:var(--muted);padding:10px 2px;margin-top:22px}.tip-split-actions{margin:16px 0 0;font-size:.8rem}.tip-split-row:only-child .tip-remove{visibility:hidden}@media(max-width:420px){.tip-split-row{gap:8px;grid-template-columns:minmax(0,1fr) 90px 24px}}

.receipt-tip-person{display:block;margin-top:4px}

.tip-debt-panel{border:1px solid #ead7bc;background:#fff9f0}.tip-debt-panel .panel-head h2{font-size:1rem}.tip-debt-free{font-size:.78rem;color:var(--muted);margin-bottom:12px}.tip-debt-row{display:flex;justify-content:space-between;gap:12px;padding:16px 0;border-top:1px solid #eadfcf;font-size:.85rem}.tip-debt-row small{display:block;color:var(--muted);font-size:.72rem;margin-top:6px}.tip-debt-row>div:last-child{text-align:right}.tip-debt-row .text-button{display:block;margin-top:10px;margin-left:auto;font-size:.75rem}.tip-unpaid{color:#a56927}.cash-entry-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

.tip-debt-panel>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer}.tip-debt-panel>summary::-webkit-details-marker{display:none}.tip-debt-panel>summary h2{font-size:1rem;flex:1}.tip-debt-panel>summary:after{content:'+';color:var(--muted);font-size:1.3rem}.tip-debt-panel[open]>summary:after{content:'−'}.tip-debt-body{margin-top:20px}.tip-debt-date-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;font-size:.8rem;padding:12px 0}.tip-debt-date.unpaid .tip-debt-date-heading{color:#39744f}.tip-debt-date.paid{color:#8e9196}.tip-debt-date.paid .tip-debt-row{opacity:.7}.tip-debt-date-heading small{font-size:.68rem}.tip-debt-panel>.tip-debt-body>.text-button{margin-top:18px;font-size:.8rem}
