:root{color:#1d2922;font-synthesis:none;--green:#245c43;--green-2:#174732;--green-soft:#e8f0ea;--ink:#1d2922;--muted:#6b776f;--line:#dce2dd;--surface:#fff;--danger:#b42318;background:#f4f6f3;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#f4f6f3;min-width:320px}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.035em;margin-bottom:6px;font-size:clamp(28px,3vw,38px);line-height:1.1}h2{letter-spacing:-.01em;font-size:19px}.muted,.hint{color:var(--muted)}.hint{text-align:center;font-size:13px}button:not(.link):not(.project-card):not(.icon-button):not(.quick-fab),.button{color:#fff;background:var(--green);border:1px solid var(--green);border-radius:9px;justify-content:center;align-items:center;gap:7px;min-height:42px;padding:9px 15px;font-weight:700;display:inline-flex}button:not(.link):not(.project-card):not(.icon-button):not(.quick-fab):hover{background:var(--green-2)}button.secondary{color:var(--ink)!important;border-color:var(--line)!important;background:#fff!important}button.secondary:hover{background:#f7f9f7!important;border-color:#b9c4bc!important}button.link{color:var(--green);background:0 0;border:0;padding:0;font-weight:700}.icon{justify-content:center;align-items:center;min-width:18px;font-size:20px;line-height:1;display:inline-flex}.logo{letter-spacing:-.03em;align-items:center;gap:10px;font-size:20px;display:flex}.logo img{border-radius:9px;width:34px;height:34px}.logo b{color:var(--green)}.app-shell{min-height:100vh;display:flex}.sidebar{z-index:20;border-right:1px solid var(--line);background:#fff;flex-direction:column;width:228px;padding:26px 18px 20px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar .logo{padding:0 9px 30px}.sidebar nav{gap:5px;display:grid}.sidebar nav a{color:#506057;border-radius:9px;align-items:center;gap:11px;min-height:45px;padding:0 12px;font-weight:650;display:flex}.sidebar nav a:hover{background:#f5f7f5}.sidebar nav a.active{color:var(--green);background:var(--green-soft)}.side-account{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding:15px 10px 0;display:flex}.side-account small{text-overflow:ellipsis;white-space:nowrap;max-width:120px;overflow:hidden}.workspace{width:calc(100% - 228px);min-width:0;margin-left:228px}.topbar{display:none}main{min-height:100vh}.page{width:min(1420px,100%);margin:0 auto;padding:38px 42px 80px}.page-head{justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;display:flex}.page-head small{color:var(--muted);margin-bottom:5px;font-weight:650;display:block}.section-title{margin:28px 0 14px}.loading,.splash{min-height:60vh;color:var(--muted);place-items:center;display:grid}.splash{align-content:center;gap:14px;min-height:100vh}.hero-card{color:#fff;background:var(--green);border-radius:16px;justify-content:space-between;align-items:flex-end;gap:30px;min-height:190px;padding:30px 34px;display:flex;overflow:hidden;box-shadow:0 14px 30px #245c431f}.hero-card>div{gap:5px;display:grid}.hero-card small{color:#dbe8df;font-weight:650}.hero-card strong{letter-spacing:-.04em;font-size:clamp(32px,6vw,54px)}.hero-card span{color:#dbe8df}.hero-card button{color:var(--green)!important;background:#fff!important;border-color:#fff!important}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.project-card{min-width:0;color:var(--ink);border:1px solid var(--line);text-align:left;background:#fff;border-radius:13px;padding:20px;transition:transform .15s,box-shadow .15s}.project-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px #1e2f2517}.project-icon{width:38px;height:38px;color:var(--green);background:var(--green-soft);border-radius:10px;place-items:center;margin-bottom:16px;font-size:22px;display:grid}.project-title{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.project-title h3{margin-bottom:8px;font-size:18px}.project-card p{min-height:20px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-bottom:16px;overflow:hidden}.project-card>strong{letter-spacing:-.025em;margin-bottom:16px;font-size:25px;display:block}.project-card footer{color:var(--muted);border-top:1px solid #edf0ed;justify-content:space-between;gap:10px;padding-top:13px;font-size:12px;display:flex}.status{color:#536159;white-space:nowrap;background:#edf0ee;border-radius:99px;align-items:center;width:max-content;padding:4px 8px;font-size:11px;font-weight:750;display:inline-flex}.status.active{color:#17613e;background:#dff3e7}.status.completed{color:#3153a1;background:#e4ebfb}.status.paused{color:#8a5710;background:#fff0d5}.search{border:1px solid var(--line);background:#fff;border-radius:9px;align-items:center;gap:8px;width:min(440px,100%);min-height:44px;margin-bottom:20px;padding:0 12px;display:flex}.search:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #245c4314}.search input{background:0 0;border:0;outline:none;width:100%;min-width:0;height:42px}.search.compact{margin:0}.empty{min-height:280px;color:var(--muted);text-align:center;background:#fff;border:1px dashed #cbd4cd;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;padding:35px;display:flex}.empty-mark{width:52px;height:52px;color:var(--green);background:var(--green-soft);border-radius:50%;place-items:center;margin-bottom:12px;font-size:26px;display:grid}.empty h3{color:var(--ink);margin-bottom:6px}.empty p{max-width:390px;margin-bottom:18px}.back-link{margin-bottom:18px;min-height:34px!important;color:var(--green)!important;background:0 0!important;border:0!important;padding:0!important}.project-head{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px;display:flex}.project-head p{color:var(--muted);margin:5px 0 0}.head-actions{gap:8px;display:flex}.stats{grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px;display:grid}.stats>div{border:1px solid var(--line);background:#fff;border-radius:12px;gap:6px;padding:19px 20px;display:grid}.stats small{color:var(--muted)}.stats strong{letter-spacing:-.025em;font-size:25px}.project-layout{grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:14px;display:grid}.project-layout aside{gap:14px;display:grid}.card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:20px}.card>h2:last-child{margin-bottom:0}.expenses-card{padding:0;overflow:hidden}.expenses-card>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;padding:18px 20px;display:flex}.expenses-card>header h2{margin:0}.expense-table{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid #edf0ed;padding:13px 14px;font-size:13px}th{color:var(--muted);letter-spacing:.02em;text-transform:uppercase;background:#fafbfa;font-size:11px}td:last-child,th:last-child{text-align:right;white-space:nowrap}tbody tr:hover{background:#fafcfa}.document-button{text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:11px;font-weight:650;overflow:hidden;min-height:0!important;color:var(--green)!important;background:0 0!important;border:0!important;justify-content:flex-start!important;padding:0!important;display:block!important}.expense-mobile{display:none}.category-totals{gap:12px;display:grid}.category-totals>div{grid-template-columns:10px 1fr auto;align-items:center;gap:8px;font-size:13px;display:grid}.category-totals i,.category-list i{border-radius:50%;width:9px;height:9px}.stack{gap:8px;display:grid}.modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#13231a8c;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:15px;width:min(620px,100%);max-height:min(90vh,850px);overflow-y:auto;box-shadow:0 26px 70px #0c1a1240}.modal>header{z-index:2;border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;min-height:66px;padding:0 22px;display:flex;position:sticky;top:0}.modal>header h2{margin:0}.icon-button{width:40px;height:40px;color:var(--muted);background:0 0;border:0;border-radius:50%;padding:0}.icon-button:hover{background:#f2f5f2}.form{gap:15px;padding:22px;display:grid}.form label{color:#405047;gap:6px;font-size:13px;font-weight:700;display:grid}input,select,textarea{width:100%;min-width:0;min-height:43px;color:var(--ink);background:#fff;border:1px solid #cfd7d1;border-radius:8px;outline:0;padding:9px 11px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #245c4314}.form-row,.quick-fields{grid-template-columns:1fr 1fr;gap:12px;display:grid}.quick-fields{background:var(--green-soft);border-radius:11px;padding:14px}.barcode-field{grid-template-columns:1fr auto;align-items:end;gap:8px;display:grid}.upload-box{background:#f7f9f7;border:1px dashed #b9c5bc;border-radius:10px;grid-template-columns:1fr 130px;align-items:end;gap:9px;padding:14px;display:grid}.upload-box label{cursor:pointer;min-width:0}.upload-box label input{opacity:0;width:1px;height:1px;position:absolute;overflow:hidden}.upload-box label{color:var(--green);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.upload-box label span{color:var(--ink);margin-bottom:5px;display:block}.form-actions{justify-content:flex-end;gap:8px;padding-top:4px;display:flex}.error{color:var(--danger);background:#fff0ef;border-radius:8px;padding:10px 12px;font-size:13px}.scanner{object-fit:cover;background:#17211b;border-radius:10px;width:calc(100% - 44px);min-height:260px;margin:22px;display:block}.settings-layout{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px;display:grid}.settings-layout .card{min-height:190px}.category-list{gap:10px;display:grid}.category-group{border:1px solid #e5e9e5;border-radius:10px;overflow:hidden}.category-group h3{background:#f7f9f7;align-items:center;gap:9px;margin:0;padding:12px 14px;font-size:14px;display:flex}.category-group>div{border-top:1px solid #edf0ed;padding:9px 14px 9px 32px;font-size:13px}.check-row{align-items:center;gap:9px;flex-direction:row!important;display:flex!important}.check-row input{width:auto}.auth-page{grid-template-columns:1.08fr .92fr;min-height:100vh;display:grid}.auth-intro{color:#fff;background:var(--green);flex-direction:column;justify-content:space-between;padding:44px 8vw 70px;display:flex}.auth-intro .logo b{color:#fff}.auth-intro .logo img{box-shadow:0 0 0 1px #ffffff59}.auth-intro h1{max-width:680px;font-size:clamp(42px,5vw,72px)}.auth-intro p{color:#d8e5dc;max-width:540px;font-size:18px;line-height:1.5}.auth-panel{place-items:center;padding:30px;display:grid}.auth-card{border:1px solid var(--line);background:#fff;border-radius:15px;gap:15px;width:min(390px,100%);padding:30px;display:grid;box-shadow:0 18px 42px #192c2014}.auth-card h2{margin-bottom:-9px;font-size:28px}.auth-card label{gap:6px;font-size:13px;font-weight:700;display:grid}.auth-card .primary{width:100%;margin-top:5px}.switch{justify-self:center;margin-top:4px;font-size:13px}.sync-state{color:#4b5b51;align-items:center;gap:5px;font-size:12px;font-weight:650;display:flex}.sync-state.offline{color:#9b4a21}.sync-state.syncing .icon{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.bottom-nav,.quick-fab{display:none}@media print{.sidebar,.topbar,.bottom-nav,.quick-fab,button,.search,.head-actions,.back-link{display:none!important}.workspace{width:100%;margin:0}.page{padding:20px}.project-layout{display:block}.project-layout aside{margin-top:15px}}@media (width<=1050px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-layout{grid-template-columns:1fr}.project-layout aside{grid-template-columns:1fr 1fr}}@media (width<=760px){body{padding-bottom:calc(67px + env(safe-area-inset-bottom))}.sidebar{display:none}.workspace{width:100%;margin:0}.topbar{z-index:30;height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.topbar .logo{font-size:17px}.topbar .logo img{width:29px;height:29px}.page{padding:22px 13px 35px}.page-head{align-items:flex-end;margin-bottom:18px}.page-head button{min-width:44px;font-size:0;padding:8px 11px!important}.page-head button .icon{font-size:22px}h1{font-size:28px}.hero-card{flex-direction:column;align-items:stretch;min-height:210px;padding:24px 20px}.hero-card button{width:100%}.project-grid{grid-template-columns:1fr;gap:9px}.project-card{padding:16px}.project-card .project-icon{display:none}.project-card>strong{font-size:22px}.project-card footer{justify-content:flex-start;gap:20px}.project-head{align-items:flex-start}.project-head h1{margin-top:5px}.head-actions button.secondary{display:none!important}.head-actions button{width:44px;font-size:0;padding:0!important}.head-actions button .icon{font-size:22px}.stats{grid-template-columns:1fr 1fr;gap:8px}.stats>div{padding:14px}.stats>div:first-child{grid-column:1/-1}.stats strong{font-size:21px}.project-layout aside{grid-template-columns:1fr}.expenses-card>header{display:grid}.expense-table{display:none}.expense-mobile{display:grid}.expense-mobile article{border-bottom:1px solid #edf0ed;justify-content:space-between;align-items:center;gap:10px;min-height:68px;padding:12px 15px;display:flex}.expense-mobile article>div{gap:4px;min-width:0;display:grid}.expense-mobile article b{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.expense-mobile article small{color:var(--muted)}.expense-mobile article>strong{white-space:nowrap}.bottom-nav{z-index:80;min-height:calc(63px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff7;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;inset:auto 0 0}.bottom-nav a,.bottom-nav button{color:#68776d;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:0;padding:5px 1px;display:flex}.bottom-nav a.active{color:var(--green)}.bottom-nav small{font-size:10px}.bottom-nav button{color:var(--green);font-weight:750;position:relative}.bottom-nav button .icon{color:#fff;background:var(--green);border:4px solid #fff;border-radius:50%;width:38px;height:38px;margin-top:-20px;font-size:25px;box-shadow:0 5px 12px #245c433d}.quick-fab{display:none}.modal-backdrop{align-items:flex-end;padding:0}.modal{width:100%;max-height:94svh;padding-bottom:env(safe-area-inset-bottom);border-radius:18px 18px 0 0}.modal>header{min-height:60px}.form{padding:17px 15px}.form-row,.quick-fields{grid-template-columns:1fr}input,select,textarea{min-height:46px;font-size:16px}.barcode-field{grid-template-columns:1fr 48px}.barcode-field button{width:48px;font-size:0;padding:0!important}.upload-box{grid-template-columns:1fr}.form-actions{padding:12px 15px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;margin:0 -15px -17px;position:sticky;bottom:0}.form-actions button{flex:1}.settings-layout{grid-template-columns:1fr}.settings-layout .card{min-height:auto}.auth-page{background:#fff;min-height:100svh;display:block}.auth-intro{min-height:230px;padding:calc(28px + env(safe-area-inset-top)) 22px 30px}.auth-intro h1{margin-top:48px;font-size:34px}.auth-intro p{display:none}.auth-panel{padding:0;display:block}.auth-card{width:100%;padding:25px 20px calc(30px + env(safe-area-inset-bottom));box-shadow:none;border:0;border-radius:0}}
