:root{--primary: #000000;--primary-container: #131b2e;--on-primary-container: #7c839b;--secondary: #904d00;--secondary-container: #fe932c;--on-secondary-container: #663500;--surface: #f8f9ff;--surface-lowest: #ffffff;--surface-low: #eff4ff;--surface-container: #e5eeff;--surface-high: #dce9ff;--on-surface: #0b1c30;--on-surface-variant: #45464d;--outline: #76777d;--outline-variant: #c6c6cd;--error: #ba1a1a;--st-paid: #059669;--st-scheduled: #2563eb;--st-completed: #0d9488;--st-candidate: #64748b;--st-progress: #d97706;--st-cancelled: #dc2626;--debt: #e11d48;--pending: #d97706;--radius: .75rem;--radius-sm: .5rem;--nav-h: 64px;--top-h: 56px;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:var(--on-surface);background:var(--surface);-webkit-text-size-adjust:100%}*{box-sizing:border-box}html,body{margin:0;padding:0;overflow-x:hidden}body{min-height:100vh;font-size:16px;line-height:1.45}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit}h1,h2,h3,p{margin:0}img,svg{display:block}.app{max-width:640px;margin:0 auto;min-height:100vh;padding-bottom:calc(var(--nav-h) + 24px + env(safe-area-inset-bottom))}.app.no-nav{padding-bottom:24px}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;height:var(--top-h);padding:0 12px;background:#f8f9ffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--outline-variant)}.topbar h1{flex:1;font-size:1.125rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .brand{display:flex;align-items:center;gap:8px}.topbar .brand-mark{width:28px;height:28px;border-radius:8px;background:var(--primary-container);color:var(--secondary-container);display:grid;place-items:center;font-weight:800;font-size:.8rem}.page{padding:16px;display:flex;flex-direction:column;gap:20px}.section{display:flex;flex-direction:column;gap:10px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-title{font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--on-surface-variant)}.muted{color:var(--on-surface-variant)}.small{font-size:.875rem}.tiny{font-size:.75rem}.bold{font-weight:700}.num{font-variant-numeric:tabular-nums}.right{text-align:right}.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.row{display:flex;align-items:center;gap:8px;min-width:0}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:8px}.debt{color:var(--debt)}.good{color:var(--st-paid)}.card{background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:8px;min-width:0}.card.flat{border:none;background:var(--surface-low)}.card.link{cursor:pointer;text-align:left;width:100%;transition:background .15s}.card.link:active{background:var(--surface-low)}.card.dark{background:var(--primary-container);color:#fff;border:none}.card.dark .muted{color:#aab0c4}.card.row{flex-direction:row;align-items:center}.icon-box{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--surface-container);color:var(--primary-container);flex:none}.list{display:flex;flex-direction:column;gap:8px}.list-plain{background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:var(--radius);overflow:hidden}.list-plain>*+*{border-top:1px solid var(--surface-container)}.item{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:56px;width:100%;background:none;border:none;text-align:left;cursor:pointer}.item:active{background:var(--surface-low)}.item .icon-box{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--surface-container);color:var(--primary-container);flex:none}.empty{padding:20px;text-align:center;color:var(--on-surface-variant);background:var(--surface-low);border-radius:var(--radius);font-size:.9rem}.job-card{border-left:4px solid var(--st-candidate)}.job-card.st-in_progress{border-left-color:var(--st-progress)}.job-card.st-scheduled{border-left-color:var(--st-scheduled)}.job-card.st-completed{border-left-color:var(--st-completed)}.job-card.st-paid{border-left-color:var(--st-paid)}.job-card.st-cancelled{border-left-color:var(--st-cancelled);opacity:.75}.job-card .title{font-weight:700;font-size:1rem}.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:.75rem;font-weight:700;white-space:nowrap;flex:none}.pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.pill.st-in_progress{color:var(--st-progress);background:#fef3c7}.pill.st-scheduled{color:var(--st-scheduled);background:#dbeafe}.pill.st-completed{color:var(--st-completed);background:#ccfbf1}.pill.st-paid{color:var(--st-paid);background:#d1fae5}.pill.st-candidate{color:var(--st-candidate);background:#f1f5f9}.pill.st-cancelled{color:var(--st-cancelled);background:#fee2e2}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:var(--radius);border:1px solid transparent;font-weight:700;font-size:.95rem;cursor:pointer;background:var(--surface-container);color:var(--primary-container);text-decoration:none;white-space:nowrap;-webkit-user-select:none;user-select:none}.btn:disabled{opacity:.5;cursor:default}.btn:active:not(:disabled){transform:scale(.98)}.btn.primary{background:var(--primary-container);color:#fff}.btn.accent{background:var(--secondary-container);color:var(--on-secondary-container)}.btn.outline{background:transparent;border-color:var(--outline-variant)}.btn.danger{background:transparent;border-color:#fecaca;color:var(--error)}.btn.ghost{background:transparent;min-height:40px;padding:0 10px}.btn.block{width:100%}.btn.small{min-height:36px;padding:0 12px;font-size:.85rem;border-radius:var(--radius-sm)}.icon-btn{width:44px;height:44px;display:grid;place-items:center;border-radius:999px;border:none;background:transparent;cursor:pointer;flex:none;color:inherit}.icon-btn:active{background:var(--surface-container)}.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn-row>.btn{min-width:0;padding-left:10px;padding-right:10px;white-space:normal;text-align:center;line-height:1.15}.btn-row.three{grid-template-columns:repeat(3,1fr)}.quick{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:72px;padding:8px 4px;border-radius:var(--radius);border:1px solid var(--outline-variant);background:var(--surface-lowest);font-weight:700;font-size:.85rem;cursor:pointer;color:var(--primary-container)}.quick:active{background:var(--surface-low)}.quick svg{color:var(--secondary)}.fab{position:fixed;right:max(16px,calc(50vw - 304px));bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));z-index:25;display:inline-flex;align-items:center;gap:8px;height:56px;padding:0 20px;border-radius:16px;border:none;background:var(--secondary-container);color:var(--on-secondary-container);font-weight:800;box-shadow:0 6px 18px #904d004d;cursor:pointer}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:center;background:var(--surface-lowest);border-top:1px solid var(--outline-variant);padding-bottom:env(safe-area-inset-bottom)}.bottom-nav .inner{display:grid;grid-template-columns:repeat(4,1fr);width:100%;max-width:640px;height:var(--nav-h)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;font-size:.72rem;font-weight:600;color:var(--on-surface-variant)}.bottom-nav a .ic{padding:3px 16px;border-radius:999px}.bottom-nav a.active{color:var(--primary-container)}.bottom-nav a.active .ic{background:var(--surface-high)}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span{font-size:.8rem;font-weight:600;color:var(--on-surface-variant)}.input,select.input,textarea.input{width:100%;min-height:48px;padding:10px 12px;border-radius:var(--radius-sm);border:1px solid var(--outline-variant);background:var(--surface-lowest);font-size:1rem;outline:none}textarea.input{min-height:88px;resize:vertical}.input:focus{border-color:var(--primary-container);box-shadow:0 0 0 2px var(--surface-high)}.input.money{text-align:right;font-variant-numeric:tabular-nums}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer}.switch{position:relative;width:48px;height:28px;flex:none}.switch input{opacity:0;width:0;height:0;position:absolute}.switch i{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:999px;background:var(--outline-variant);transition:.2s}.switch i:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:.2s}.switch input:checked+i{background:var(--secondary)}.switch input:checked+i:after{transform:translate(20px)}.err{color:var(--error);font-size:.875rem;font-weight:600}.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--surface-container);border-radius:var(--radius);padding:4px;gap:4px}.seg button{min-height:40px;border:none;border-radius:var(--radius-sm);background:transparent;font-weight:700;font-size:.9rem;color:var(--on-surface-variant);cursor:pointer;padding:0 6px}.seg button.on{background:var(--surface-lowest);color:var(--primary-container);box-shadow:0 1px 3px #00000014}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{flex:none;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--outline-variant);background:var(--surface-lowest);font-weight:600;font-size:.85rem;cursor:pointer}.chip.on{background:var(--primary-container);color:#fff;border-color:var(--primary-container)}.stepper{display:flex;align-items:center;gap:6px;flex:none}.stepper button{width:44px;height:44px;border-radius:12px;border:1px solid var(--outline-variant);background:var(--surface-lowest);font-size:1.3rem;font-weight:700;cursor:pointer;color:var(--primary-container)}.stepper input{width:64px;height:44px;text-align:center;border:1px solid var(--outline-variant);border-radius:12px;font-weight:700;font-size:1.05rem;background:var(--surface-low)}.presets{display:flex;gap:6px;flex-wrap:wrap}.presets button{min-width:44px;height:36px;border-radius:999px;border:1px solid var(--outline-variant);background:var(--surface-lowest);font-weight:700;cursor:pointer}.search{position:relative}.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--outline)}.search .input{padding-left:40px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0b1c3073;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}.sheet{width:100%;max-width:640px;max-height:92vh;overflow-y:auto;background:var(--surface);border-radius:20px 20px 0 0;padding:8px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;animation:up .2s ease-out}.sheet .grab{width:40px;height:4px;border-radius:4px;background:var(--outline-variant);margin:4px auto 0}.sheet-head{display:flex;align-items:center;gap:8px}.sheet-head h2{flex:1;font-size:1.1rem;font-weight:800}@keyframes up{0%{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}@keyframes fade{0%{opacity:0}to{opacity:1}}.toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--nav-h) + 90px);z-index:70;background:var(--primary-container);color:#fff;padding:12px 18px;border-radius:12px;font-weight:600;font-size:.9rem;max-width:calc(100vw - 32px);box-shadow:0 6px 20px #00000040;animation:fade .15s}.toast.error{background:var(--error)}.offline{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#131b2ef0;color:#fff;display:grid;place-items:center;padding:24px;text-align:center}.offline .box{max-width:320px;display:flex;flex-direction:column;gap:12px;align-items:center}.center-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--surface-high);border-top-color:var(--secondary);animation:spin .8s linear infinite;margin:24px auto}@keyframes spin{to{transform:rotate(360deg)}}.timer-card{background:var(--primary-container);color:#fff;border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:12px}.timer-card .clock{font-size:2.25rem;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.02em}.timer-card .live{display:inline-flex;align-items:center;gap:6px;color:var(--secondary-container);font-size:.75rem;font-weight:800;letter-spacing:.08em}.timer-card .live:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--secondary-container);animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.3}}.receivable-card{background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #fed7aa}.big-money{font-size:1.75rem;font-weight:800;font-variant-numeric:tabular-nums}.fin-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}.fin-grid .k{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#aab0c4;font-weight:700}.fin-grid .v{font-size:1.15rem;font-weight:800;font-variant-numeric:tabular-nums}.fin-balance{border-top:1px solid rgba(255,255,255,.15);padding-top:12px;display:flex;justify-content:space-between;align-items:center}.fin-balance .v{font-size:1.5rem;font-weight:800;color:var(--secondary-container)}.fin-balance .v.zero{color:#6ee7b7}details.block{background:var(--surface-lowest);border:1px solid var(--outline-variant);border-radius:var(--radius);overflow:hidden}details.block>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer;font-weight:700}details.block>summary::-webkit-details-marker{display:none}details.block>summary .chev{margin-left:4px;transition:transform .2s;color:var(--outline);flex:none}details.block[open]>summary .chev{transform:rotate(180deg)}details.block>.body{border-top:1px solid var(--surface-container)}.rec{display:flex;align-items:center;gap:10px;padding:10px 16px;min-height:52px}.rec+.rec{border-top:1px solid var(--surface-container)}.rec .grow>div:first-child{font-weight:600}.day-head{display:flex;align-items:baseline;gap:8px;font-weight:700;font-size:.9rem;padding:4px 2px}.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--surface-high);font-size:.95rem}.kv:last-child{border-bottom:none}.kv .v{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}.bars{display:flex;flex-direction:column;gap:10px}.bar-row{display:grid;grid-template-columns:88px 1fr auto;gap:8px;align-items:center;font-size:.85rem}.bar-row svg{width:100%;height:14px}.login{width:100%;max-width:380px;display:flex;flex-direction:column;gap:16px}.login .logo{width:64px;height:64px;border-radius:18px;background:var(--primary-container);color:var(--secondary-container);display:grid;place-items:center;font-weight:900;font-size:1.4rem;margin:0 auto}@media (max-width: 380px){.page{padding:12px}.btn{padding:0 12px}.fin-grid .v{font-size:1.02rem}.stepper button{width:40px;height:40px}.stepper input{width:56px;height:40px}}
