:root{--bg:#f6f7ef;--paper:#fffef8;--ink:#213f31;--muted:#788175;--line:#e1e5d9;--green:#264c37;--lime:#dce8bf;--hero:#e9eedb;--radius:23px;--red:#ac4c40;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.48;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #8ba761;outline-offset:4px}button{border:0;background:none}button svg{flex-shrink:0}svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.app-shell{min-height:100vh}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:35px 23px;background:var(--bg);z-index:5}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:19px;font-weight:650;letter-spacing:-.5px}.brand-symbol{height:43px;width:43px;border-radius:14px;background:var(--green);color:#f2f3df;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:27px;letter-spacing:-2px;padding-bottom:4px;flex-shrink:0}.brand small{display:block;font-weight:400;font-size:11px;letter-spacing:.1px;color:var(--muted);margin-top:3px}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#939a88;margin:49px 15px 15px}.nav-link{width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:14px 15px;border-radius:12px;font-size:14px;min-height:48px;margin-bottom:5px;color:#75816e}.nav-link.active{background:#e7ecda;color:var(--ink);font-weight:600}.nav-link:hover{background:#edf0e3}.nav-link .nav-count{margin-left:auto;border-radius:6px;padding:2px 7px;background:#dce4cc;font-size:11px}.sidebar-bottom{margin-top:auto}.sidebar-help{padding:18px 14px;background:#edf0e3;border-radius:15px;line-height:1.5;margin:30px 0 25px}.sidebar-help svg{width:27px;height:27px;margin-bottom:8px}.sidebar-help strong{display:block;font-size:13px}.sidebar-help p{font-size:12px;color:var(--muted);margin:6px 0 10px}.text-link{font-size:12px;display:inline-flex;align-items:center;gap:7px;padding:0;font-weight:600;min-height:30px}.workspace{display:flex;align-items:center;gap:10px;padding-top:22px;border-top:1px solid var(--line);font-size:12px}.avatar{width:33px;height:33px;background:#e1e7d5;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:600}.workspace small{display:block;color:var(--muted);margin-top:4px;font-size:11px}.main-wrap{margin-left:236px;min-height:100vh}.topbar{height:90px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 48px;font-size:12px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:9px}.topbar-left svg{width:16px;height:16px}.topbar-left .slash{color:#adb4a4;margin:0 5px}.topbar-right{color:var(--muted)}.status-dot{width:6px;height:6px;border-radius:50%;background:#6a8a51;display:inline-block}.demo-badge{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#69764c;border:1px solid #d8dfc9;border-radius:6px;padding:4px 7px;margin-left:6px;font-weight:600}.page{max-width:1310px;margin:auto;padding:44px 48px 35px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:28px}.eyebrow{font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:1.6px;color:var(--muted);margin:0 0 12px}h1{font-size:34px;font-weight:550;letter-spacing:-1.3px;margin:0;line-height:1.2}h2{font-size:20px;font-weight:550;letter-spacing:-.5px;margin:0}h3{font-size:15px;font-weight:550;margin:0}.period-button{display:flex;align-items:center;gap:10px;border:1px solid #dce1d1;background:var(--paper);padding:12px 15px;border-radius:12px;font-size:13px;min-height:46px;white-space:nowrap}.period-button svg:first-child{width:17px;height:17px;color:#72825f}.period-button svg:last-child{width:14px;height:14px;margin-left:10px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.left-column,.right-column{display:grid;gap:25px;min-width:0}.hero{background:var(--hero);border:1px solid #e1e7d1;border-radius:var(--radius);padding:29px 31px;position:relative;overflow:hidden}.hero-top{display:flex;justify-content:space-between;align-items:center}.hero-label{font-size:13px;color:#64745b;display:flex;align-items:center;gap:8px}.hero-label svg{height:17px;width:17px}.hero-more{height:30px;width:30px;border:1px solid #d3ddc4;border-radius:50%;display:grid;place-items:center;color:#71815d}.amount{font-size:clamp(46px,5.1vw,70px);font-weight:500;letter-spacing:-3.5px;line-height:1.2;margin:22px 0 8px;font-variant-numeric:tabular-nums;white-space:nowrap}.amount .ruble{font-size:.73em;font-weight:400;margin-left:5px}.hero-period{font-size:12px;color:#78866a;margin:0}.hero-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:31px;gap:10px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:13px 19px;min-height:47px;font-size:13px;font-weight:550;white-space:nowrap}.primary{background:var(--green);color:#fffef6;box-shadow:0 3px 7px #223f3010}.primary:hover{background:#153d29}.secondary{background:var(--paper);border:1px solid #dce2d2;color:var(--ink)}.secondary:hover{background:#f0f3e7}.danger{background:#f6e7e0;color:var(--red)}.primary svg,.secondary svg,.danger svg{width:18px;height:18px}.hero-small{font-size:10px;color:#7a866e;display:flex;align-items:center;gap:5px}.hero-small svg{height:13px;width:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:4px 1px 18px}.all-link{display:flex;align-items:center;gap:8px;font-size:12px;min-height:35px;font-weight:500}.all-link svg{width:16px;height:16px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.project-row{width:100%;display:flex;align-items:center;gap:15px;padding:22px 22px;text-align:left;min-height:100px;position:relative}.project-row+.project-row:before{content:"";position:absolute;left:22px;right:22px;top:0;border-top:1px solid #ebede4}.project-row:hover{background:#f3f5e9}.project-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:15px;flex-shrink:0;background:var(--project-bg,#e7ebdc);color:var(--project-ink,#647654)}.project-icon svg{height:23px;width:23px}.project-text{min-width:0;flex:1}.project-text strong{font-size:14px;font-weight:550;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-meta{font-size:10px;color:var(--muted);display:flex;gap:7px;align-items:center;margin-top:8px}.project-total{font-size:17px;font-weight:550;letter-spacing:-.4px;white-space:nowrap;font-variant-numeric:tabular-nums}.row-arrow{height:18px;width:18px;color:#93a087;margin-left:4px}.list-footer{padding:15px 22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.list-footer strong{font-weight:500;color:var(--ink)}.mini-card{padding:24px}.card-title{font-size:13px;font-weight:550;display:flex;justify-content:space-between;align-items:center;gap:10px}.card-title svg{width:17px;height:17px;color:#869476}.stats{display:grid;grid-template-columns:1fr 1fr;margin-top:25px}.stat+.stat{border-left:1px solid var(--line);padding-left:24px}.stat strong{font-size:31px;letter-spacing:-1px;font-weight:500}.stat span{display:block;font-size:10px;color:var(--muted);margin-top:6px}.last-update{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);padding-top:20px;border-top:1px solid var(--line);margin-top:22px;gap:8px}.last-update strong{color:#526748;font-size:11px;font-weight:500}.distribution{display:flex;width:100%;height:10px;border-radius:4px;overflow:hidden;gap:3px;margin:25px 0 23px}.distribution span{height:100%;min-width:3px}.legend{display:grid;gap:17px}.legend-row{display:flex;align-items:center;gap:8px;font-size:11px}.legend-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.legend-row span:nth-child(2){flex:1}.legend-row strong{font-size:11px;font-weight:500;color:#7a846d}.side-note{background:#eaf0dc;padding:23px;border:1px solid #e0e7d0;border-radius:var(--radius)}.side-note-icon{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.side-note-icon svg{height:28px;width:28px;stroke-width:1.3}.side-note-icon .small-spark{height:18px;width:18px;color:#85946d}.side-note h3{font-size:14px}.side-note p{font-size:11px;color:#758367;line-height:1.7;margin:9px 0 13px}.side-note .text-link{font-size:11px}.page-footer{margin:29px 1px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:#929989}.page-footer span{display:flex;align-items:center;gap:5px}.page-footer svg{height:13px;width:13px}.mobile-brand,.mobile-nav{display:none}.back-button{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#718066;min-height:35px;padding:0;margin-bottom:19px}.back-button svg{width:17px;height:17px}.full-hero .amount{font-size:58px;margin-top:19px}.full-hero{padding:25px 30px;margin-bottom:25px}.full-hero .hero-bottom{margin-top:23px}.toolbar{display:flex;align-items:center;gap:12px;margin:0 0 18px}.search-box{display:flex;align-items:center;gap:10px;flex:1;padding:0 15px;border:1px solid var(--line);border-radius:12px;background:var(--paper);height:47px}.search-box svg{height:18px;width:18px;color:#8c967e}.search-box input{border:0;background:none;outline:0;width:100%;min-width:0;color:var(--ink);font-size:12px;height:100%}.search-box:focus-within{border-color:#829b68;box-shadow:0 0 0 2px #a4b58f22}.clear-search{padding:5px}.sort-wrap{position:relative;display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:0 10px;gap:7px}.sort-wrap>svg{height:17px;width:17px}.sort-wrap select{appearance:auto;max-width:165px;height:45px;border:0;background:transparent;color:var(--ink);font-size:12px;outline:0}.result-label{font-size:11px;color:var(--muted);margin:17px 2px}.detail-heading-left{display:flex;align-items:center;gap:15px}.detail-heading-left>.project-icon{width:52px;height:52px;border-radius:16px}.detail-heading-left h1{font-size:30px}.detail-heading-left .eyebrow{margin-bottom:6px}.day-group+.day-group{margin-top:25px}.day-heading{display:flex;align-items:center;justify-content:space-between;margin:0 3px 12px;font-size:11px;color:var(--muted)}.day-heading strong{color:#60744e;font-weight:500}.operation{display:flex;gap:13px;padding:21px 22px;align-items:flex-start;position:relative}.operation+.operation{border-top:1px solid var(--line)}.operation-icon{background:#eef0e5;border-radius:12px;width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;color:#809069}.operation-icon svg{height:18px;width:18px}.operation-main{flex:1;min-width:0}.operation-title{font-size:13px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.operation-sub{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:8px}.category-tag{padding:3px 7px;background:#edf1e4;border-radius:5px;color:#758363}.operation-amount{font-size:15px;font-weight:550;white-space:nowrap;padding-top:2px}.icon-button{width:34px;height:34px;display:inline-grid;place-items:center;border-radius:9px;flex-shrink:0}.icon-button:hover{background:#e8eddb}.icon-button svg{width:16px;height:16px;color:#7a8a6c}.operation-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.empty{padding:42px 20px;text-align:center}.empty-icon{width:60px;height:60px;display:grid;place-items:center;background:#edf1e1;border-radius:20px;margin:0 auto 18px;color:#83936e}.empty-icon svg{height:27px;width:27px}.empty h3{font-size:16px}.empty p{font-size:12px;line-height:1.8;color:var(--muted);max-width:290px;margin:10px auto 20px}.empty-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.storage-error{padding:15px;border:1px solid #e2c7a6;background:#fff2da;border-radius:12px;margin-bottom:20px;font-size:12px;line-height:1.6}.loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:var(--muted);font-size:13px}.loading .brand-symbol{width:60px;height:60px;font-size:38px}dialog{border:1px solid #dee3d5;background:var(--paper);color:var(--ink);width:min(510px,calc(100% - 32px));max-height:calc(100dvh - 50px);border-radius:24px;padding:0;box-shadow:0 28px 100px #18322622;overflow:auto}dialog::backdrop{background:#20352b70;backdrop-filter:blur(4px)}.dialog-head{padding:25px 26px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.dialog-head h2{font-size:22px}.dialog-head p{font-size:12px;line-height:1.6;color:var(--muted);margin:9px 0 0}.dialog-head .icon-button{margin-top:-4px;margin-right:-7px}.dialog-head .icon-button svg{height:20px;width:20px}.dialog-body{padding:5px 26px 26px}.dialog-footer{display:flex;align-items:center;gap:10px;justify-content:flex-end;padding-top:21px;border-top:1px solid var(--line);margin-top:22px}.dialog-footer .primary{flex:1}.fields{display:grid;gap:17px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500;min-width:0}.field>input,.field>select,.field>textarea{border:1px solid #dce2d2;border-radius:10px;background:#fffef8;padding:12px 13px;color:var(--ink);font-size:14px;outline:none;width:100%;min-height:46px;min-width:0}.field>input:focus,.field>select:focus,.field>textarea:focus{border-color:#819b69;box-shadow:0 0 0 2px #a4b58f22}.field>textarea{resize:vertical;min-height:75px}.field small{font-size:10px;font-weight:400;color:var(--muted);line-height:1.5}.field .amount-input{font-size:32px;letter-spacing:-1px;padding:14px;min-height:68px;font-variant-numeric:tabular-nums}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.optional{font-weight:400;color:#9a9f8f;font-size:10px}.form-error{color:var(--red);font-size:12px;line-height:1.6;margin:13px 0 0}.form-error:empty{display:none}.delete-link{color:var(--red);font-size:12px;min-height:35px;display:flex;align-items:center;gap:7px;padding:0;margin-top:12px}.delete-link svg{height:15px;width:15px}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:21px}.preset-button{border:1px solid var(--line);padding:13px 11px;border-radius:10px;text-align:left;min-height:45px;font-size:12px;display:flex;align-items:center;justify-content:space-between}.preset-button.active{border-color:#81976e;background:#eaf0dc;font-weight:500}.preset-button svg{height:16px;width:16px}.custom-label{font-size:11px;color:var(--muted);margin:0 0 11px}.export-option{display:flex;align-items:center;text-align:left;gap:14px;width:100%;padding:17px 14px;border:1px solid var(--line);border-radius:14px;margin:0 0 10px;min-height:78px}.export-option:hover{background:#f1f4e8}.file-icon{width:40px;height:45px;border-radius:10px;background:#e5edd9;color:#496d39;display:grid;place-items:center;flex-shrink:0}.file-icon.csv{background:#f0ecdd;color:#8a7a4f}.export-option strong{display:block;font-size:12px;font-weight:550}.export-option small{display:block;font-size:10px;color:var(--muted);margin-top:7px;line-height:1.5}.export-option .row-arrow{margin-left:auto}.google-block{border:1px solid var(--line);border-radius:14px;padding:17px 16px;margin:20px 0 12px}.google-title{font-size:13px;display:flex;align-items:center;gap:9px;margin-bottom:11px;font-weight:500}.google-title svg{color:#6c8a4d}.google-block p,.import-help{font-size:11px;color:var(--muted);line-height:1.7;margin:8px 0 15px}.google-block .secondary{width:100%;font-size:12px}.google-block details{font-size:11px;color:var(--muted);margin-top:13px}.google-block summary{cursor:pointer;min-height:30px;display:list-item}.google-block details .field{margin-top:10px}.google-block .save-google{margin-top:10px}.export-scope{font-size:11px;line-height:1.7;color:var(--muted);background:#eff2e6;padding:13px 15px;border-radius:10px;margin-bottom:17px}.export-scope strong{color:var(--ink);font-weight:550}.export-result{background:#e7efda;padding:14px;border-radius:10px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.notifications{position:fixed;bottom:25px;left:calc(50% + 118px);transform:translateX(-50%);z-index:100;max-width:min(520px,calc(100% - 32px));width:max-content}.toast{background:#244a36;color:#fafbef;padding:15px 18px;border-radius:14px;box-shadow:0 6px 35px #17342525;font-size:12px;line-height:1.7;display:flex;align-items:center;gap:15px}.toast.error{background:#764b39}.toast button{color:#e0ecc4;white-space:nowrap;text-decoration:underline;font-size:12px;padding:3px 0}.toast .dismiss-toast{padding:4px;color:#e1e7db}.toast .dismiss-toast svg{width:15px;height:15px}.help-step{display:flex;gap:13px;margin:18px 0;font-size:12px;line-height:1.8}.help-number{width:26px;height:26px;border-radius:50%;background:#e4ecd5;display:grid;place-items:center;flex-shrink:0;font-size:11px}.help-step strong{display:block;font-weight:550}.help-step p{margin:3px 0;color:var(--muted);font-size:11px}.visually-hidden{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.is-zero .project-total{color:#939d86}.is-zero .project-icon{opacity:.6}[hidden]{display:none!important}
@media(min-width:1500px){.page{padding-top:50px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 310px}.hero{padding:34px 36px}.hero-bottom{margin-top:36px}.project-row{padding-top:25px;padding-bottom:25px}}
@media(max-width:1160px){.sidebar{width:200px;padding:28px 17px}.brand{font-size:16px;gap:9px}.main-wrap{margin-left:200px}.topbar{padding:0 30px}.page{padding:32px 30px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.hero{padding:25px}.amount{font-size:56px}.hero-small{display:none}.project-row{padding:20px 18px;gap:12px}.project-total{font-size:16px}.mini-card{padding:21px}.project-meta{font-size:10px;gap:5px}.notifications{left:calc(50% + 100px)}}
@media(max-width:980px){.sidebar{width:180px;padding:28px 13px}.main-wrap{margin-left:180px}.brand{font-size:15px}.brand-symbol{height:36px;width:36px;font-size:24px;border-radius:12px}.nav-link{font-size:12px;padding:13px 12px}.sidebar-help{padding:15px 11px}.workspace{font-size:11px}.topbar{padding:0 26px;height:76px}.page{padding:30px 26px}.dashboard-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr;gap:20px}.side-note{display:none}.amount{font-size:65px}.hero-small{display:flex}.hero{padding:28px}.hero-bottom{margin-top:27px}.page-heading h1{font-size:31px}.notifications{left:calc(50% + 90px)}}
@media(max-width:700px){.sidebar,.topbar{display:none}.main-wrap{margin-left:0}.mobile-brand{display:flex;align-items:center;justify-content:space-between;height:81px;padding:0 23px;border-bottom:1px solid var(--line)}.mobile-brand .brand{font-size:17px}.mobile-brand .brand small{display:none}.mobile-brand .brand-symbol{height:35px;width:35px;font-size:23px;border-radius:11px}.mobile-brand .demo-badge{margin-left:0}.page{padding:27px 21px 110px}.page-heading{align-items:flex-start;margin-bottom:23px;gap:10px}.page-heading h1{font-size:29px;letter-spacing:-1px}.page-heading .eyebrow{font-size:9px;margin-bottom:10px;letter-spacing:1.4px}.period-button{font-size:11px;gap:6px;padding:10px;min-height:41px;margin-top:3px;border-radius:10px}.period-button svg:first-child{width:15px;height:15px}.period-button svg:last-child{margin-left:1px;width:12px;height:12px}.dashboard-grid{gap:24px}.left-column{gap:27px}.hero{padding:25px 23px;border-radius:21px}.hero-label{font-size:12px}.amount{font-size:58px;letter-spacing:-3px;margin-top:26px}.hero-period{font-size:11px}.hero-bottom{margin-top:29px}.hero-small{display:none}.hero-bottom .primary{min-height:47px;font-size:12px;padding:12px 16px}.hero-bottom>.secondary{background:transparent;border-color:#ccd6bc;padding:12px}.hero-bottom>.secondary .button-label{display:none}.hero-bottom>.secondary svg{width:20px;height:20px}.section-heading{margin:0 0 15px}.section-heading h2{font-size:19px}.all-link{font-size:11px}.project-row{padding:21px 17px;gap:11px;min-height:99px}.project-icon{height:43px;width:43px;border-radius:13px}.project-icon svg{height:22px;width:22px}.project-text strong{font-size:13px}.project-total{font-size:16px}.project-meta{font-size:9px;gap:4px;flex-wrap:wrap;line-height:1.5}.row-arrow{height:15px;width:15px;margin-left:0}.project-row+.project-row:before{left:17px;right:17px}.list-footer{font-size:10px;padding:14px 17px}.right-column{grid-template-columns:1fr;gap:20px}.right-column>.mini-card:first-child{display:none}.mini-card{padding:23px}.distribution{height:9px;margin:21px 0}.legend{gap:15px}.legend-row,.legend-row strong{font-size:11px}.card-title{font-size:13px}.page-footer{font-size:9px;line-height:1.6;margin-top:24px;align-items:flex-start}.page-footer span:last-child{max-width:120px;text-align:right;display:block}.mobile-nav{position:fixed;display:flex;align-items:center;justify-content:space-around;bottom:0;left:0;right:0;z-index:10;background:#fafbf3f5;backdrop-filter:blur(15px);border-top:1px solid #dfe5d4;padding:9px 12px calc(9px + env(safe-area-inset-bottom));height:calc(72px + env(safe-area-inset-bottom))}.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#8c967f;width:64px;min-height:50px;padding:5px}.mobile-nav button.active{color:var(--ink)}.mobile-nav button svg{height:21px;width:21px}.mobile-nav button small{font-size:9px}.mobile-nav .mobile-add{background:var(--green);color:var(--paper);border-radius:16px;width:46px;height:46px;min-height:46px;margin:0 8px}.mobile-nav .mobile-add svg{height:23px;width:23px}.notifications{left:50%;bottom:calc(87px + env(safe-area-inset-bottom))}.toast{font-size:11px;padding:13px 15px;gap:10px}.toast button{font-size:11px}.full-hero{padding:23px;margin-bottom:22px}.full-hero .amount{font-size:54px}.full-hero .hero-bottom{margin-top:24px}.toolbar{gap:8px}.search-box{padding:0 12px}.search-box input{font-size:11px}.sort-wrap{padding:0 7px;gap:4px}.sort-wrap select{max-width:120px;font-size:10px}.sort-wrap>svg{width:15px;height:15px}.detail-heading-left{gap:10px}.detail-heading-left>.project-icon{width:43px;height:43px;border-radius:13px}.detail-heading-left h1{font-size:25px}.detail-heading-left .eyebrow{font-size:9px}.detail-page .page-heading{flex-wrap:wrap;align-items:center;row-gap:15px}.detail-page .period-button{margin-top:0}.back-button{margin-top:-8px;margin-bottom:17px}.operation{padding:18px 15px;gap:11px}.operation-title{font-size:12px}.operation-icon{height:34px;width:34px;border-radius:10px}.operation-amount{font-size:14px}.operation-sub{font-size:9px;gap:5px}.operation-actions .icon-button{height:30px;width:32px}.day-heading{font-size:10px}.detail-page .right-column{display:none}dialog{max-height:calc(100dvh - 25px);width:calc(100% - 20px);border-radius:23px}.dialog-head{padding:24px 22px 16px}.dialog-body{padding:4px 22px 25px}.dialog-head h2{font-size:21px}.dialog-head p{font-size:11px}.field{font-size:11px}.field>input,.field>select,.field>textarea{font-size:16px;min-height:47px}.field .amount-input{font-size:32px}.dialog-footer .primary{min-height:49px}.preset-button{font-size:11px}.export-option strong{font-size:11px}.export-option small{font-size:10px}.export-option{padding:15px 12px;gap:11px}.export-scope{font-size:10px}}
@media(max-width:370px){.page{padding-left:16px;padding-right:16px}.page-heading h1{font-size:26px}.period-button{font-size:10px;padding:9px 7px}.period-button svg:first-child{display:none}.amount{font-size:51px}.full-hero .amount{font-size:49px}.project-total{font-size:14px}.project-row{padding-left:13px;padding-right:13px;gap:9px}.project-text strong{font-size:12px}.project-icon{width:38px;height:38px}.project-meta{font-size:8px}.detail-heading-left h1{font-size:23px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,color .15s,box-shadow .15s}.hero,.panel,.side-note{animation:appear .35s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}

.detail-heading-left,.detail-heading-left>div{min-width:0}h1{overflow-wrap:anywhere}.icon-button{width:44px;height:44px}.operation-actions .icon-button{width:44px;height:44px}.amount{max-width:100%;overflow-wrap:anywhere}.amount.long-amount{font-size:clamp(26px,4.3vw,48px);letter-spacing:-1.5px;white-space:normal}
@media(max-width:700px){.amount.long-amount{font-size:clamp(25px,7vw,40px)}}
/* Focused PWA shell: one primary screen, secondary tools in the account menu. */
.app-simple .page{max-width:1120px;padding:39px 36px 40px}.simple-header{height:92px;border-bottom:1px solid var(--line);max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:18px}.simple-header .brand{font-size:17px}.simple-header .brand small{font-size:11px}.header-actions{display:flex;align-items:center;gap:22px}.connection-label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.account-button{display:flex;align-items:center;gap:9px;padding:5px;min-height:44px;min-width:50px}.account-button>svg{width:13px;height:13px}.account-button .avatar{height:36px;width:36px}.app-simple .dashboard-grid{grid-template-columns:minmax(0,1fr) 280px}.app-simple .hero{padding:28px}.capture-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.voice-primary{min-height:49px;font-size:13px}.voice-primary svg{width:19px;height:19px}.manual-button{display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 2px;color:#657751;font-size:12px;font-weight:500}.manual-button svg{width:17px;height:17px}.hero-bottom:has(.capture-actions){gap:12px}.export-compact{padding:12px}.export-compact .button-label{display:none}.readonly-note{display:flex;align-items:center;gap:8px;font-size:12px;color:#6d7f5b}.readonly-note svg{height:17px;width:17px}.app-simple .all-link{min-height:44px}.app-simple .side-note{display:none}.app-simple .page-footer{margin-top:28px}.account-summary{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin:0 0 17px}.role-tag{background:#e6edda;color:#607c43;border-radius:6px;padding:6px 9px;font-size:10px;white-space:nowrap}.compact-menu{display:grid}.compact-menu>button,.compact-menu>a{min-height:51px;display:flex;align-items:center;text-decoration:none;gap:12px;text-align:left;border-bottom:1px solid var(--line);font-size:12px;padding:13px 4px}.compact-menu>button>svg:first-child{color:#7b8d65;width:20px;height:20px}.compact-menu>button>svg:last-child{margin-left:auto;width:15px;height:15px;color:#9ca88f}.compact-menu .signout-link{border:0;color:#8c6c59;font-size:11px;margin-top:12px}.access-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 24px;gap:30px}.access-screen>.brand-symbol{width:60px;height:60px;font-size:38px}.access-card{max-width:450px;text-align:center}.access-card h1{font-size:30px}.access-card>p{font-size:13px;color:var(--muted);line-height:1.8}.access-actions{display:flex;gap:10px;justify-content:center;margin:25px 0}.access-actions .primary{text-decoration:none}.access-card>.text-link{margin-top:10px}.admin-intro{font-size:13px;line-height:1.8;color:var(--muted);max-width:650px;margin-bottom:30px}.admin-section{margin:30px 0}.admin-section .section-heading h2{font-size:20px}.subtle-count{font-size:12px;color:var(--muted);margin-left:7px}.admin-project-list{display:grid;grid-template-columns:1fr 1fr}.admin-project{display:flex;align-items:center;gap:13px;padding:19px;border-bottom:1px solid var(--line)}.admin-project strong{font-size:13px;font-weight:500;overflow-wrap:anywhere;min-width:0}.admin-project .project-icon{width:38px;height:38px;border-radius:12px}.member-row{display:flex;align-items:center;gap:13px;padding:20px 22px}.member-row+.member-row{border-top:1px solid var(--line)}.member-main{min-width:0;flex:1;display:grid;gap:6px}.member-main>strong{font-size:13px;font-weight:550}.member-email{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.member-access{font-size:10px;color:#8a947e;line-height:1.7}.you-label{font-weight:400;font-size:9px;color:var(--muted);background:#edf1e6;border-radius:4px;padding:3px 5px;margin-left:5px}.member-disabled{opacity:.55}.admin-footnote{font-size:11px;color:var(--muted);line-height:1.8;margin:14px 0 0}.admin-access-note{padding:20px;background:#edf1e3;border-radius:15px;font-size:12px;line-height:1.8}.admin-access-note strong{font-weight:500}.admin-access-note p{margin:7px 0 0;color:var(--muted);font-size:11px}.access-fieldset{border:1px solid var(--line);border-radius:12px;padding:15px;margin:0}.access-fieldset legend{font-size:11px;color:var(--muted);padding:0 5px}.check-label{display:flex;align-items:flex-start;gap:10px;min-height:42px;padding:9px 0;font-size:12px;line-height:1.6;cursor:pointer}.check-label input{width:18px;height:18px;flex-shrink:0;accent-color:var(--green);margin:1px 0}.check-label small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.project-checkboxes{padding:5px 0 0 28px;margin-top:5px;border-top:1px solid var(--line)}.project-choice{font-size:11px;min-height:38px}.voice-capture{text-align:center;padding:9px 0 18px}.record-button{height:78px;width:78px;border-radius:50%;background:var(--green);color:#fafdf0;display:inline-grid;place-items:center;margin:3px 0 10px;box-shadow:0 0 0 9px #e9efdf}.record-button>svg{height:32px;width:32px;stroke-width:1.5}.record-button.recording{background:#9b5e46;box-shadow:0 0 0 9px #f1e1d8}.voice-status{font-size:12px;line-height:1.8;margin:13px 0 6px;color:var(--ink)}.voice-example{font-size:10px;line-height:1.9;color:var(--muted);max-width:330px;margin:0 auto}.field>.voice-transcript{min-height:120px;font-size:15px;line-height:1.6}.voice-privacy{font-size:9px;line-height:1.8;color:#959c8c;margin:14px 0 0}.voice-review{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #dce5cb;background:#eef3e3;border-radius:12px;margin:0 0 20px;font-size:11px}.voice-review>svg{height:19px;width:19px;flex-shrink:0;color:#7a8b61}.voice-review strong{font-size:11px;font-weight:550}.voice-review p{color:#7e8b6c;margin:7px 0 0;font-size:10px;line-height:1.8;overflow-wrap:anywhere}.voice-review .voice-warning{color:#9a744c}.install-visual{display:flex;align-items:center;flex-direction:column;gap:10px;padding:15px 0 21px}.install-visual img{border-radius:18px;box-shadow:0 6px 20px #24452b15}.install-visual strong{font-size:14px}.install-visual span{font-size:10px;color:var(--muted)}.install-instructions{font-size:13px;line-height:1.9;color:#687b58;margin:5px 0 21px}
@media(max-width:980px){.app-simple .dashboard-grid{grid-template-columns:1fr}.app-simple .right-column{grid-template-columns:1fr 1fr}.app-simple .hero-bottom{justify-content:flex-start}.app-simple .hero-bottom>.export-compact{margin-left:auto}}
@media(max-width:700px){.simple-header{height:77px;padding:0 21px}.simple-header .brand{font-size:16px;gap:9px}.simple-header .brand-symbol{height:35px;width:35px;border-radius:11px;font-size:24px}.simple-header .brand small{font-size:9px;margin-top:2px}.header-actions{gap:6px}.connection-label{display:none}.account-button .avatar{height:33px;width:33px;font-size:11px}.app-simple .page{padding:27px 21px 32px}.app-simple .hero{padding:25px 23px}.app-simple .dashboard-grid{gap:22px}.app-simple .right-column{grid-template-columns:1fr}.app-simple .right-column>.mini-card:first-child{display:none}.app-simple .hero-bottom{margin-top:25px}.capture-actions{gap:13px;flex-wrap:nowrap;max-width:100%}.hero-bottom .voice-primary{font-size:11px;padding:13px;min-height:48px}.voice-primary svg{width:18px;height:18px}.manual-button{font-size:11px;gap:3px}.manual-button svg{height:15px;width:15px}.app-simple .full-hero .capture-actions{gap:10px}.app-simple .full-hero .voice-primary{font-size:11px;padding:12px}.app-simple .full-hero .manual-button{font-size:10px}.app-simple .full-hero .export-compact{padding:10px;min-height:44px}.app-simple .full-hero .hero-bottom{gap:8px}.app-simple .notifications,.notifications{left:50%;bottom:22px}.admin-section .section-heading{gap:10px}.admin-section .section-heading h2{font-size:18px}.admin-section .section-heading .secondary,.admin-section .section-heading .primary{min-height:43px;font-size:10px;padding:10px 12px;gap:5px}.admin-section .section-heading svg{height:15px;width:15px}.admin-intro{font-size:12px;line-height:1.9;margin-bottom:23px}.admin-project-list{grid-template-columns:1fr}.admin-project{padding:16px}.admin-project strong{font-size:12px}.member-row{padding:18px 15px;gap:10px}.member-main>strong{font-size:12px}.member-email{font-size:10px}.member-access{font-size:9px}.member-row>.avatar{height:31px;width:31px}.admin-access-note{font-size:11px;padding:17px}.access-screen{padding:25px 20px}.access-actions{flex-wrap:wrap}.access-card h1{font-size:27px}.voice-capture{padding-top:10px}.field>.voice-transcript{font-size:16px}.app-simple .page-heading{align-items:center}}
@media(max-width:370px){.app-simple .page{padding-left:16px;padding-right:16px}.hero-bottom .voice-primary{padding:12px 10px;font-size:10px}.capture-actions{gap:10px}.manual-button{font-size:10px}.app-simple .full-hero .capture-actions{gap:7px}.app-simple .full-hero .voice-primary{font-size:10px;padding:11px 9px}.app-simple .full-hero .manual-button svg{display:none}.app-simple .full-hero .export-compact{padding:9px}.app-simple .full-hero .hero-bottom{flex-wrap:wrap}}

/* iOS date controls must fit their grid cell, including their native value. */
#expense-form input[type="date"],
#period-form input[type="date"] {
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
}
#expense-form input[type="date"]::-webkit-date-and-time-value,
#period-form input[type="date"]::-webkit-date-and-time-value {
  min-inline-size: 0;
  text-align: left;
}

/* Compact expense sheet: keep all regular fields and actions on a phone screen. */
@media (max-width: 700px) {
  dialog.expense-dialog {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  dialog.expense-dialog .dialog-head { padding: 16px 18px 12px; }
  dialog.expense-dialog .dialog-head h2 { font-size: 21px; }
  dialog.expense-dialog .dialog-head p { margin-top: 6px; font-size: 12px; line-height: 1.4; }
  dialog.expense-dialog .dialog-body { padding: 0 18px 16px; }
  #expense-form > .fields { gap: 10px; }
  #expense-form .field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    font-size: 14px;
    line-height: 17px;
    align-items: baseline;
  }
  #expense-form .field > .optional {
    grid-column: 2;
    grid-row: 1;
    font-size: 11px;
    line-height: 17px;
    white-space: nowrap;
  }
  #expense-form .field > input,
  #expense-form .field > select,
  #expense-form .field > textarea,
  #expense-form .field > small { grid-column: 1 / -1; }
  #expense-form .field > input,
  #expense-form .field > select {
    height: 44px;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 16px;
  }
  #expense-form .field > .amount-input { height: 52px; min-height: 52px; padding: 9px 12px; font-size: 29px; }
  #expense-form .field > small { font-size: 11px; line-height: 14px; }
  #expense-form .field > textarea { height: 56px; min-height: 56px; padding: 9px 10px; font-size: 16px; line-height: 18px; }
  #expense-form > .fields > .field-grid {
    grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
    gap: 10px;
  }
  #expense-form input[type="date"] { padding-inline: 6px; overflow: hidden; }
  #expense-form input[type="date"]::-webkit-date-and-time-value,
  #expense-form input[type="date"]::-webkit-datetime-edit { min-inline-size: 0; font-size: 14px; padding: 0; }
  #expense-form input[type="date"]::-webkit-calendar-picker-indicator { width: 13px; margin: 0; padding: 0; }
  #expense-form select[name="projectId"] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 27px;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%236d7d60' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
  }
  #expense-form .dialog-footer { gap: 10px; margin-top: 12px; padding-top: 12px; }
  #expense-form .dialog-footer button { height: 44px; min-height: 44px; padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 370px) {
  #expense-form > .fields > .field-grid { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (max-width: 700px) and (max-height: 640px) {
  dialog.expense-dialog .dialog-head { padding-top: 12px; padding-bottom: 10px; }
  dialog.expense-dialog .dialog-body { padding-bottom: 12px; }
  #expense-form > .fields { gap: 6px; }
  #expense-form .field { row-gap: 4px; }
  #expense-form .field > .amount-input { height: 48px; min-height: 48px; }
  #expense-form .field > textarea { height: 48px; min-height: 48px; }
  #expense-form .dialog-footer { margin-top: 10px; padding-top: 10px; }
}

/* Keep iOS native date metrics inside a regular, predictable control. */
#expense-form .expense-date-control {
  grid-column: 1 / -1;
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
}
#expense-form .expense-date-value,
#expense-form .expense-date-control > svg { display: none; }
#expense-form .expense-date-control > input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #dce2d2;
  border-radius: 10px;
  background: #fffef8;
  padding: 12px 13px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
#expense-form .expense-date-control:focus-within {
  border-color: #819b69;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #a4b58f22;
}
@media (max-width: 700px) {
  #expense-form > .fields > .field-grid,
  #expense-form > .fields > .field-grid > .field { align-items: start; }
  #expense-form .expense-date-control {
    display: flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 9px;
    border: 1px solid #dce2d2;
    border-radius: 10px;
    background: #fffef8;
    overflow: hidden;
    isolation: isolate;
  }
  #expense-form .expense-date-value {
    display: block;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    font-size: 14px;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }
  #expense-form .expense-date-value.is-empty { color: var(--muted); font-size: 12px; }
  #expense-form .expense-date-control > svg {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #7a8a6c;
    pointer-events: none;
  }
  #expense-form .expense-date-control > input[type="date"] {
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 0;
    border: 0;
    margin: 0;
    opacity: 0;
    font-size: 16px;
    cursor: pointer;
  }
  #expense-form .expense-date-control:has(input:user-invalid) { border-color: var(--red); }
}
@media (max-width: 370px) {
  #expense-form .expense-date-control > svg { display: none; }
}
