:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#243b31;background:#edf0e9;font-synthesis:none;font-weight:400;--studio-muted:#647367}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6d74d8;outline-offset:3px}button:disabled{cursor:default}h1,h2,h3,h4,p{margin:0}.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}button{touch-action:manipulation}button svg{pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.studio-header{max-width:1120px;margin:0 auto;padding:30px 36px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:inherit;font-size:24px;font-weight:750;letter-spacing:-1px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:#244c3d;color:#e1f5bd;border-radius:14px;font-size:29px;padding-bottom:4px}.brand-caption{display:block;font-size:10px;letter-spacing:1.2px;font-weight:500;text-transform:uppercase;margin-top:1px;color:var(--studio-muted)}.demo-pill{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.2px;padding:9px 12px;border:1px solid #cdd5cb;border-radius:30px}.demo-pill>span{width:5px;height:5px;border-radius:50%;background:#5f8064}
main{max-width:1120px;margin:auto;padding:0 36px}.studio-intro{display:flex;align-items:end;justify-content:space-between;gap:30px;margin:22px 0 38px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.4px;text-transform:uppercase}h1{font-size:43px;line-height:1.08;font-weight:520;letter-spacing:-1.7px;margin:13px 0 14px}.intro-copy{font-size:13px;color:var(--studio-muted);line-height:1.65}.design-controls{padding-bottom:4px;display:flex;align-items:end;flex-direction:column;gap:12px}.switcher{display:flex;background:#dfe5db;padding:4px;border-radius:14px;gap:3px}.switcher button{display:flex;align-items:center;justify-content:center;gap:7px;background:transparent;padding:12px 16px;border-radius:10px;font-size:12px;color:#4b5c50;min-height:44px;white-space:nowrap}.switcher button[aria-pressed=true]{background:#fff;box-shadow:0 2px 8px #243b3110;color:#243b31}.swatch{width:10px;height:10px;border-radius:3px}.swatch.sage{background:#739478}.swatch.ink{background:#7468b9}.compare-button{background:transparent;color:#3a5542;padding:3px 0;min-height:30px;font-size:12px;display:flex;gap:26px;align-items:center}.compare-button[aria-pressed=true]{text-decoration:underline;text-underline-offset:5px}.design-note{font-size:10px;color:var(--studio-muted)}
.screens{display:flex;justify-content:center;gap:32px;align-items:start}.design-column{width:420px;max-width:100%;min-width:0}.direction-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.7px;text-transform:uppercase;margin:0 10px 12px;color:#69796a}.direction-label span:first-child{font-weight:700}.phone{border:1px solid #d6dcd2;border-radius:30px;overflow:hidden;padding:24px 22px 0;box-shadow:0 12px 50px #2e45300a;--surface:#fff;--bg:#fafbf7;--text:#263c31;--muted:#6c786d;--line:#e5e9e0;--accent:#294e3c;--accent-text:#f1f7ec;background:var(--bg);color:var(--text)}.theme-b{--surface:#26262e;--bg:#1d1d24;--text:#f2f0f5;--muted:#aaa7b5;--line:#3b3945;--accent:#d4c1ff;--accent-text:#292135;color:var(--text);background:var(--bg)}.phone.theme-b{border-color:#3c3a45}.app-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.app-wordmark{font-size:24px;font-weight:750;letter-spacing:-1px}.wordmark-dot{color:#79a66b}.theme-b .wordmark-dot{color:var(--accent)}.profile-button{display:flex;align-items:center;gap:5px;background:var(--surface);border:1px solid var(--line);border-radius:22px;color:var(--muted);padding:8px 12px;font-size:11px;min-height:38px}.profile-button .icon{width:15px;height:15px}.period-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.small-label{font-size:10px;color:var(--muted);margin-bottom:5px}.period-heading h2{font-size:23px;font-weight:570;letter-spacing:-.7px;text-transform:capitalize}.month-control{display:grid;place-items:center;position:relative;width:42px;height:42px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}.month-control input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.month-control:focus-within{outline:3px solid #6d74d8;outline-offset:2px}.month-control input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;cursor:pointer}
.summary-card{background:#e5eddd;border:1px solid #dce6d3;border-radius:22px;padding:22px 20px 18px}.summary-main{display:flex;align-items:start;justify-content:space-between;gap:10px}.summary-label{font-size:11px;color:#55684f;margin-bottom:9px}.total{font-size:39px;font-weight:550;letter-spacing:-1.5px;line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.summary-caption{font-size:10px;color:#6e7c65;margin-top:7px}.summary-symbol{display:grid;place-items:center;min-width:32px;height:32px;border:1px solid #b8cbb0;border-radius:50%;transform:rotate(-45deg)}.summary-symbol .icon{width:18px}.limit-row{display:flex;justify-content:space-between;font-size:11px;margin-top:27px;gap:10px}.limit-row strong{font-weight:600}.progress-track{height:6px;border-radius:5px;background:#cbd9be;overflow:hidden;margin:10px 0}.progress-track>span{display:block;height:100%;border-radius:inherit;background:#577747}.limit-caption{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#5a7052}.limit-caption.over{color:#9c442e}.primary-add{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;min-height:51px;border-radius:15px;background:var(--accent);color:var(--accent-text);font-size:13px;font-weight:600;margin:14px 0 28px;padding:12px 15px}.primary-add .icon{width:20px}.add-arrow{margin-left:auto}.primary-add>span{margin-right:auto}.theme-b .summary-card{border:0;border-radius:0;background:transparent;padding:5px 0 0}.theme-b .summary-label,.theme-b .summary-caption{color:var(--muted)}.theme-b .summary-main{align-items:center}.theme-b .total{font-size:39px;letter-spacing:-1.8px}.theme-b .limit-row{margin-top:23px}.theme-b .progress-track{background:#3d364d;height:3px}.theme-b .progress-track>span{background:var(--accent)}.theme-b .limit-caption{color:var(--muted)}.theme-b .limit-caption.over{color:#ffb7a1}.ring{flex:0 0 68px;width:68px;height:68px;border-radius:50%;background:conic-gradient(var(--accent) var(--progress),#3d364d 0);display:grid;place-items:center;position:relative}.ring:before{content:"";position:absolute;inset:4px;background:var(--bg);border-radius:50%}.ring>span{font-size:21px;font-weight:550;position:relative;line-height:1.2;text-align:center}.ring small{display:block;font-size:8px;color:var(--muted);font-weight:400}.theme-b .primary-add{border-radius:4px;margin-top:22px;min-height:49px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-heading h3{font-size:15px;font-weight:600;letter-spacing:-.3px}.section-heading>span{font-size:10px;color:var(--muted)}.section-hint{font-size:9px;margin-top:6px;color:var(--muted)}.category-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.summary-category{display:flex;align-items:center;gap:10px;min-width:0;min-height:76px;padding:12px;border:1px solid var(--line);border-radius:16px;text-align:left;color:var(--text);background:var(--surface)}.category-icon{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:12px;flex-shrink:0}.category-icon .icon{width:20px;height:20px}.category-info{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.category-info>span{font-size:10px;color:var(--muted)}.category-info>strong{font-weight:600;font-size:13px;font-variant-numeric:tabular-nums}.color-green{background:#e7efdc;color:#51733d}.color-peach{background:#f8eadd;color:#a97545}.color-blue{background:#e5edf6;color:#567a9d}.color-purple{background:#ece8f6;color:#8b6caf}.color-pink{background:#f6e7e8;color:#b07682}.color-sand{background:#eeede6;color:#8b856e}.theme-b .category-summary{display:flex;flex-direction:column;gap:0}.theme-b .summary-category{border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0;min-height:59px;padding:10px 0;gap:12px;position:relative;flex-wrap:wrap}.theme-b .category-icon{width:29px;height:29px;border-radius:8px;background:#36313e;color:#c9b2eb}.theme-b .category-icon .icon{width:18px;height:18px}.theme-b .category-info{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding-right:0}.theme-b .category-info>span{font-size:12px;color:var(--text)}.theme-b .category-info>strong{font-size:13px;font-weight:500}.mini-track{height:2px;width:calc(100% - 41px);margin-left:41px;background:#35303e;position:absolute;bottom:4px}.mini-track>span{display:block;height:100%;background:#75658b}.theme-b .category-section{margin-top:0}.theme-b .section-hint{font-size:10px}.theme-b .recent-section{margin-top:29px}.recent-section{margin-top:28px}.day-group{margin-top:17px}.day-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.day-heading h4{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:600;color:var(--muted)}.day-heading h4>span{font-weight:400;font-size:9px}.day-add{display:flex;align-items:center;gap:2px;min-height:34px;font-size:9px;color:var(--muted);background:none;padding:3px 0 3px 5px}.day-add .icon{width:13px;height:13px}.expense-row{display:flex;align-items:center;gap:9px;padding:13px 0;border-bottom:1px solid var(--line)}.expense-icon{display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:10px}.expense-icon .icon{width:17px;height:17px}.expense-description{min-width:0;flex:1}.expense-description strong{display:block;font-size:11px;font-weight:550;overflow-wrap:anywhere}.expense-description>span{display:block;font-size:9px;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}.expense-amount{font-size:11px;font-weight:600;flex-shrink:0;max-width:42%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.theme-b .expense-icon{background:#302c38;color:#b5a0cc}.theme-b .expense-row{padding:15px 0}.app-disclaimer{display:flex;align-items:center;justify-content:center;gap:6px;font-size:9px;color:var(--muted);margin:24px -22px 0;padding:16px;background:#f0f3eb}.app-disclaimer .icon{width:12px;height:12px}.theme-b .app-disclaimer{background:#26232d}.empty-state{font-size:12px;line-height:1.7;color:var(--muted);padding:24px 0}.new-expense{animation:highlight 1.5s ease-out}@keyframes highlight{from{background:#93ad6730}to{background:transparent}}.studio-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:10px;line-height:1.6;color:var(--studio-muted);margin:30px 0 22px}
/* Input sheet: the same fast path in both visual directions. */
.modal-open{overflow:hidden}dialog{border:0;padding:0;color:#263c31;--surface:#fff;--bg:#fafbf7;--text:#263c31;--muted:#6c786d;--line:#e5e9e0;--accent:#294e3c;--accent-text:#f1f7ec;background:var(--bg);box-shadow:0 20px 100px #161c2440}dialog.theme-b{--surface:#26262e;--bg:#1d1d24;--text:#f2f0f5;--muted:#aaa7b5;--line:#3b3945;--accent:#d4c1ff;--accent-text:#292135;color:var(--text)}dialog::backdrop{background:#18211c85;backdrop-filter:blur(6px)}.entry-dialog{width:460px;max-width:100%;max-height:94dvh;height:740px;border-radius:25px}.entry-dialog[open]{display:flex;flex-direction:column}.sheet-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:24px 22px 18px;border-bottom:1px solid var(--line);flex-shrink:0}.sheet-header .eyebrow{font-size:8px;color:var(--muted);margin-bottom:6px}.sheet-header h2{font-size:22px;letter-spacing:-.7px;font-weight:550}.close-button{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:50%}.close-button .icon{width:18px;height:18px}#entry-content{display:flex;flex-direction:column;min-height:0;flex:1}#expense-form{display:flex;flex-direction:column;min-height:0;flex:1}.sheet-scroll{overflow-y:auto;overscroll-behavior:contain;padding:22px;min-height:0;flex:1;scroll-padding:18px}.field-label{font-size:12px;display:block;font-weight:550;color:var(--muted);margin-bottom:10px}.amount-field{display:flex;align-items:center;gap:10px}.amount-field input{background:transparent;border:0;color:var(--text);font-size:44px;letter-spacing:-1.6px;font-weight:500;min-width:0;width:100%;padding:0;line-height:1.3;border-radius:5px}.amount-field>span{font-size:30px;color:var(--muted)}.amount-field input::placeholder{color:#adb5a7}.amount-hint{font-size:9px;color:var(--muted);margin-top:6px}.meta-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}.meta-fields>label{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:10px 9px;min-width:0}.meta-fields .icon{width:17px;height:17px;color:var(--muted)}.meta-fields label>span{font-size:9px;color:var(--muted);min-width:0;flex:1}.meta-fields input,.meta-fields select{display:block;width:100%;max-width:100%;min-width:0;border:0;background:transparent;color:var(--text);font-size:11px;margin-top:5px;padding:0;min-height:22px;color-scheme:light}.theme-b .meta-fields input,.theme-b .meta-fields select{color-scheme:dark}.account-note{font-size:9px;color:var(--muted);line-height:1.5;margin-top:9px}.picker-heading{display:flex;justify-content:space-between;align-items:center;margin-top:25px;gap:8px}.picker-heading h3{font-size:14px;font-weight:600}.picker-heading>span{font-size:9px;color:var(--muted)}.breadcrumbs{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:9px 0 10px;font-size:10px;color:var(--muted)}.breadcrumbs button{background:none;color:var(--muted);font-size:10px;min-height:32px;padding:4px 5px;overflow-wrap:anywhere;max-width:100%}.breadcrumbs button:last-child{color:var(--text);font-weight:600}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.category-option{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;position:relative;overflow:hidden}.category-option.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.category-select{width:100%;min-height:87px;display:flex;flex-direction:column;align-items:center;gap:8px;background:none;color:var(--text);font-size:10px;font-weight:500;padding:12px 5px;overflow-wrap:anywhere}.category-select>span:last-of-type:not(.selection-check){max-width:100%}.category-select .category-icon{width:32px;height:32px;border-radius:10px}.selection-check{position:absolute;top:3px;right:3px;display:grid;place-items:center;width:17px;height:17px;background:var(--accent);color:var(--accent-text);border-radius:50%}.selection-check .icon{width:11px;height:11px}.category-expand{display:flex;justify-content:center;align-items:center;gap:3px;width:100%;border-top:1px solid var(--line);background:transparent;color:var(--muted);font-size:9px;min-height:32px}.category-expand .icon{width:12px;height:12px}.choose-branch{display:flex;align-items:center;gap:8px;padding:10px 12px;margin-bottom:10px;text-align:left;width:100%;font-size:11px;min-height:44px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.choose-branch span{min-width:0;flex:1}.choose-branch.selected{border-color:var(--accent)}.choose-branch .icon{width:17px;height:17px}.create-category{background:transparent;border:1px dashed #aebba7;border-radius:12px;min-height:44px;margin-top:12px;padding:10px;width:100%;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:var(--text)}.create-category .icon{width:16px;height:16px}.leaf-hint{font-size:11px;color:var(--muted);line-height:1.5;margin:14px 0}.sheet-footer{border-top:1px solid var(--line);padding:12px 22px 16px;background:var(--bg);flex-shrink:0}.selected-label{font-size:10px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere;margin-bottom:10px}.selected-label .icon{width:13px;height:13px;color:var(--text)}.save-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;border-radius:12px;padding:12px 16px;background:var(--accent);color:var(--accent-text);font-size:13px;font-weight:600}.save-button .icon{width:19px;height:19px}.local-caption{text-align:center;font-size:9px;color:var(--muted);margin-top:9px}.error{font-size:11px;line-height:1.5;color:#aa3b2b;margin-bottom:8px}.error:empty{display:none}.theme-b .error{color:#ffb7a1}.hidden{display:none!important}.text-button{display:flex;align-items:center;gap:5px;color:var(--muted);background:none;font-size:11px;min-height:38px;padding:0;margin-bottom:14px}.text-button .icon{width:14px}.creation-view h3{font-weight:550;font-size:21px;letter-spacing:-.5px;margin-bottom:8px}.muted{font-size:12px;color:var(--muted);line-height:1.6}.creation-view .muted{font-size:11px;margin-bottom:26px}.creation-view input,.profile-body select{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;font-size:16px;padding:12px;width:100%;min-height:46px}.icon-picker{margin:22px 0 0;padding:0;border:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}.icon-picker legend{font-size:12px;color:var(--muted);margin-bottom:10px}.icon-picker button{min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 4px;font-size:9px;min-height:72px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text)}.icon-picker button.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.inline-note{font-size:10px;color:var(--muted);line-height:1.65;margin:20px 0}.theme-b .save-button{border-radius:5px}.profile-dialog{width:420px;max-width:calc(100% - 24px);border-radius:22px;max-height:90dvh}.profile-body{padding:22px}.profile-body .muted{margin-top:12px;font-size:11px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);width:max-content;max-width:calc(100% - 32px);background:#244535;color:#f0f6ea;padding:14px 20px;border:1px solid #6d8b65;box-shadow:0 5px 30px #18211c30;border-radius:14px;font-size:12px;text-align:center;line-height:1.5;opacity:0;pointer-events:none;z-index:10;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(hover:hover){.summary-category:hover{border-color:var(--accent)}.primary-add:hover,.save-button:hover{filter:brightness(1.08)}.category-select:hover,.category-expand:hover{background:#90a47a12}.profile-button:hover,.close-button:hover{border-color:var(--accent)}.text-button:hover,.breadcrumbs button:hover{text-decoration:underline}}
@media(min-width:1000px){.screens:not(.comparing){justify-content:flex-end;padding-right:42px}.studio-intro:has(+.screens:not(.comparing)){float:left;width:43%;display:block;margin-top:95px}.studio-intro:has(+.screens:not(.comparing)) .design-controls{align-items:start;margin-top:38px}.studio-intro:has(+.screens:not(.comparing)) h1{font-size:48px}.screens:not(.comparing) .design-column{width:420px}.studio-footer{clear:both;padding-top:12px}}
@media(max-width:700px){.studio-header{padding:20px 20px 14px}.brand{font-size:21px}.brand-mark{width:36px;height:36px;font-size:25px;border-radius:12px}.brand-caption{font-size:8px}.demo-pill{font-size:9px;padding:7px 8px;gap:5px}main{padding:0 16px}.studio-intro{display:block;margin:15px 0 22px}.studio-intro .eyebrow{font-size:9px}h1{font-size:31px;line-height:1.1;margin:10px 0}.intro-copy{font-size:11px;line-height:1.5}.intro-copy br{display:none}.design-controls{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:20px;padding:0}.switcher{grid-column:1 / -1;width:100%;border-radius:12px}.switcher button{flex:1;font-size:11px;padding:10px 8px}.design-note{font-size:8px;grid-column:1;grid-row:2;align-self:center;line-height:1.5}.compare-button{grid-column:2;grid-row:2;font-size:10px;gap:8px;min-height:36px}.direction-label{font-size:8px;margin:0 5px 10px}.screens{gap:28px}.screens.comparing{flex-direction:column;align-items:center}.design-column{width:420px}.phone{padding:21px 17px 0;border-radius:24px}.app-header{margin-bottom:24px}.period-heading h2{font-size:22px}.summary-card{padding:19px 16px 16px;border-radius:18px}.total{font-size:36px}.summary-symbol{min-width:28px;height:28px}.summary-symbol .icon{width:16px}.primary-add{min-height:49px;font-size:12px;margin-bottom:25px}.category-info>strong{font-size:12px}.category-icon{width:30px;height:30px;border-radius:10px}.category-icon .icon{width:18px;height:18px}.summary-category{padding:11px 9px;min-height:70px;gap:8px;border-radius:13px}.category-info>span{font-size:9px}.section-heading h3{font-size:14px}.section-heading>span{font-size:9px}.category-summary{gap:7px}.recent-section{margin-top:25px}.expense-description strong{font-size:10px}.expense-description>span{font-size:8px}.expense-amount{font-size:10px}.expense-row{gap:7px}.expense-icon{flex-basis:28px;height:28px;border-radius:9px}.day-heading h4{font-size:9px;gap:4px}.day-heading h4>span{font-size:8px}.day-add{font-size:8px}.app-disclaimer{margin-left:-17px;margin-right:-17px;font-size:8px}.studio-footer{font-size:9px;margin:22px 4px}.theme-b .total{font-size:34px;letter-spacing:-1.3px}.ring{width:61px;height:61px;flex-basis:61px}.ring>span{font-size:19px}.ring small{font-size:7px}.theme-b .category-info>span{font-size:11px}.theme-b .category-info>strong{font-size:12px}.entry-dialog{margin:auto auto 0;max-height:96dvh;height:780px;border-radius:23px 23px 0 0;width:460px}.sheet-header{padding:20px 18px 16px}.sheet-header h2{font-size:21px}.sheet-scroll{padding:18px}.sheet-footer{padding:12px 18px max(14px,env(safe-area-inset-bottom))}.sheet-footer .save-button{min-height:49px}.meta-fields{gap:7px}.meta-fields>label{padding:10px 7px;gap:5px}.meta-fields .icon{width:15px;height:15px}.meta-fields input,.meta-fields select{font-size:10px}.amount-field input{font-size:42px}.creation-view input{font-size:16px}.category-select{min-height:84px;font-size:10px}.sheet-header .eyebrow{font-size:7px}.toast{bottom:16px;font-size:11px;padding:12px 16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* 0.2: the selected light direction, one period and category for every view. */
.release-home{position:relative;padding-bottom:0}
.release-home .app-header{margin-bottom:20px}
.period-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.period-arrow{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font-size:29px;line-height:1;padding-bottom:4px}
.period-arrow:disabled{opacity:.35}
.period-title{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:0;background:none;color:var(--text);font-size:18px;font-weight:560;text-transform:capitalize;padding:4px}
.period-title span{min-width:0;overflow-wrap:anywhere}.period-title .icon{width:15px;height:15px}
.overview-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px;font-size:10px;color:var(--muted);margin:3px 0 11px}
.overview-crumbs button{background:none;color:var(--muted);padding:7px 4px;min-height:36px;max-width:100%;overflow-wrap:anywhere;font-size:10px;text-align:left}
.overview-crumbs button[aria-current]{color:var(--text);font-weight:650}.direct-caption{font-size:9px}
.overview-summary{padding:22px 16px 14px}
.total-line{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.overview-summary .total{font-size:39px;font-weight:550;min-width:0;max-width:100%}
.period-suffix{font-size:10px;color:#6e7c65;white-space:nowrap;letter-spacing:0}
.overview-summary .limit-row{margin-top:25px}
.segmented-chart{display:flex;height:30px;margin:11px 0 10px;border-radius:9px;background:#cbd9be;isolation:isolate}
.chart-segment{flex:0 0 auto;min-width:0;padding:0;display:flex;align-items:center;justify-content:center;color:#fff;background:var(--segment);position:relative;border-right:1px solid #ffffff60}
.chart-segment:first-child{border-radius:9px 0 0 9px}.chart-segment:last-of-type{border-right:0}
.chart-segment .icon{width:min(19px,85%);height:19px;flex-shrink:1;pointer-events:none}
.chart-segment:before{content:"";position:absolute;inset:-7px 0}
.chart-segment:focus-visible,.chart-segment.peeked{outline:2px solid #263c31;outline-offset:2px;z-index:1}
.chart-remainder{flex:1;min-width:0;border-radius:0 9px 9px 0}
.chart-preview{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;color:#314a2c;margin-top:7px}
.chart-preview>span{min-width:0;overflow-wrap:anywhere}.chart-preview button{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;color:#294e3c;background:#d1dec6}
.chart-preview .icon{width:17px;height:17px}
.chart-help{font-size:9px;line-height:1.55;color:#5a7052;min-height:28px}
.detail-section{margin-top:24px;padding-bottom:32px}
.filter-button{display:flex;align-items:center;gap:5px;min-height:44px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:12px;font-size:10px;padding:7px 10px}
.filter-button .icon{width:16px;height:16px}.detail-count{font-size:10px;color:var(--muted);margin:3px 0 8px}
.release-home .day-heading h4{font-size:10px;font-weight:600;line-height:1.5}
.release-home .day-add{min-height:44px;font-size:9px}
.release-home .expense-row{min-height:63px}.release-home .expense-description strong{font-size:11px;line-height:1.4}.release-home .expense-description>span{font-size:9px;line-height:1.5}
.release-home .expense-amount{font-size:11px;max-width:43%}
.release-home .app-disclaimer{margin-top:0;padding-bottom:92px}
.fab{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));right:max(32px,calc((100vw - 420px)/2 + 22px));z-index:5;display:grid;place-items:center;width:56px;height:56px;border-radius:19px;background:var(--accent);color:var(--accent-text);box-shadow:0 6px 22px #294e3c40;border:1px solid #ffffff40}
.fab .icon{width:27px;height:27px}.toast{bottom:94px}
.overview-dialog{width:420px;max-width:calc(100% - 24px);max-height:90dvh;border-radius:22px;overflow:auto}
.overview-dialog .sheet-header h2{font-size:20px}.overview-options{padding:22px;display:flex;flex-direction:column;gap:12px;min-width:0}
.overview-options label{font-size:12px;font-weight:550}.overview-options select,.overview-options input{min-width:0;width:100%;max-width:100%;min-height:46px;font-size:16px;padding:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px}
.overview-options .muted{font-size:11px}.form-error{font-size:12px;color:#aa3b2b}.form-error:empty{display:none}
@media(hover:hover){.period-arrow:not(:disabled):hover,.filter-button:hover{border-color:var(--accent)}.overview-crumbs button:hover{text-decoration:underline}.fab:hover{filter:brightness(1.12)}}
@media(min-width:1000px){.screens:not(.comparing) .fab{right:max(32px,calc((100vw - 1120px)/2 + 100px))}}
@media(min-width:701px){.screens.comparing .fab{right:calc(50vw + 38px)}}
@media(max-width:700px){.overview-summary .total{font-size:36px}.overview-summary{padding:20px 13px 14px}.release-home .period-title{font-size:17px}.overview-options{padding:18px}.overview-dialog .sheet-header{padding:18px}.overview-dialog .sheet-header h2{font-size:19px}}

/* 0.3 lifecycle controls extend the existing light sheet/list, not a new design. */
button.expense-row{width:100%;background:transparent;color:var(--text);text-align:left;cursor:pointer}
.expense-description .expense-comment{white-space:pre-wrap;color:var(--text)}
.comment-label{margin-top:18px}
#comment{display:block;width:100%;max-width:100%;resize:vertical;min-height:64px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:13px}
.entry-actions{display:flex;justify-content:space-between;gap:12px;margin-top:4px}
.entry-actions .text-button{margin:0;min-height:36px}
.danger{color:#a13d2e}.theme-b .danger{color:#ffb7a1}
.confirm-danger{margin:12px 0 0;min-height:44px}
.storage-status{max-width:860px;margin:0 auto 24px;padding:18px;background:#fff2e5;border:1px solid #d5b69d;border-radius:14px;color:#623d29;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.storage-status[hidden]{display:none}
.storage-status button{margin:10px 12px 0 0;min-height:44px;padding:8px 12px;border:1px solid #b9977c;border-radius:8px;background:#fffaf5;color:inherit}

/* 0.3 / 2: optional line items in the existing expense sheet. */
.item-section{margin-top:24px;min-width:0}.item-section h3{font-size:14px;font-weight:600}.item-section .inline-note{margin:8px 0 14px}.item-row{min-width:0;margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.item-row legend{font-size:11px;color:var(--muted);padding:0 4px}.item-row input{display:block;min-width:0;width:100%;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font-size:16px;min-height:44px;margin-bottom:12px}.item-row .field-label{margin-bottom:6px;font-size:11px}.item-row .text-button{margin:0;min-height:44px;overflow-wrap:anywhere}.items-summary{font-size:11px;line-height:1.6;margin-top:12px;overflow-wrap:anywhere}.items-summary .error,.items-summary .muted{margin-top:6px;font-size:11px}.save-button:disabled{opacity:.55}.item-row input:focus-visible{outline:3px solid #6d74d8;outline-offset:2px}

/* Online release: reuse the light palette and the existing form controls. */
[hidden]{display:none!important}
.gate{max-width:420px;margin:32px auto;padding:24px;border-radius:22px;background:#fafbf7;color:#263c31;border:1px solid #dbe4d8;--accent:#294e3c;--accent-text:#f1f7ec;--muted:#546658}
.gate h2{margin:8px 0;font-size:24px;letter-spacing:-.5px}
.gate .field-label{margin:16px 0 6px}
.plain-input{display:block;width:100%;min-height:44px;padding:10px;border:1px solid #d9e0d6;border-radius:10px;background:#fff;color:#263c31;font-size:16px}
.gate .save-button,.gate .error:not(:empty){margin-top:14px}
#server-status{clear:both}
.entry-dialog .conflict-panel{background:#f4ecd9;padding:12px;border-radius:12px;overflow-wrap:anywhere}
.conflict-panel :is(p,ul){margin-top:8px}
.conflict-panel ul{padding-left:18px}
.draft-fields[inert]{opacity:.75}
