:root{color-scheme:dark;--bg: #0b1020;--surface: #151b30;--surface-2: #1c2340;--border: #232b46;--text: #e8ecf5;--muted: #9aa4bf;--accent: #6ea8fe;--accent-press: #4a86f0;--ok: #4ade80;--err: #f87171;--radius: 14px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}a{color:var(--accent);text-decoration:none}button{font:inherit;cursor:pointer;border:none;border-radius:10px;padding:12px 16px;background:var(--accent);color:#071023;font-weight:700;transition:background .15s,opacity .15s;min-height:44px}button:active{background:var(--accent-press)}button:disabled{opacity:.5;cursor:default}button.ghost{background:transparent;color:var(--muted);border:1px solid var(--border);font-weight:600}button.ghost:active{background:var(--surface-2)}input,select{font:inherit;width:100%;padding:12px 14px;border-radius:10px;background:var(--surface-2);border:1px solid var(--border);color:var(--text);min-height:44px}input:focus,select:focus{outline:none;border-color:var(--accent)}label{display:block;font-size:13px;color:var(--muted);margin:0 0 6px}.field{margin-bottom:16px}.muted{color:var(--muted)}.ok{color:var(--ok)}.err{color:var(--err)}.error-box{background:#f871711f;border:1px solid rgba(248,113,113,.4);color:#fca5a5;padding:10px 12px;border-radius:10px;font-size:14px;margin-bottom:14px}.center-screen{min-height:100dvh;display:grid;place-items:center;padding:20px}.card{width:min(94vw,400px);background:var(--surface);border-radius:var(--radius);padding:24px;box-shadow:0 10px 40px #00000059}.card h1{margin:0 0 4px;font-size:22px}.card .sub{margin:0 0 20px;color:var(--muted);font-size:13px}.app{min-height:100dvh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border)}.topbar .brand{font-weight:800;font-size:16px}.topbar .who{font-size:12px;color:var(--muted)}.content{flex:1;padding:16px;max-width:720px;width:100%;margin:0 auto}.tabbar{position:sticky;bottom:0;display:flex;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.tabbar a{flex:1;text-align:center;padding:10px 4px;color:var(--muted);font-size:12px;font-weight:600}.tabbar a.active{color:var(--accent)}.tabbar a .ic{display:block;font-size:20px;line-height:1.2}.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:12px}.tile h2{margin:0 0 10px;font-size:15px}.row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--border);font-size:14px}.row:first-of-type{border-top:none}.spinner{display:grid;place-items:center;min-height:60dvh;color:var(--muted)}.toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}.toolbar .nav{padding:8px 12px;min-height:40px}.toolbar .range{flex:1;text-align:center;font-weight:700;font-size:15px}.grid-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}table.sched{border-collapse:collapse;width:100%;font-size:13px}table.sched th,table.sched td{border-bottom:1px solid var(--border);border-right:1px solid var(--border)}table.sched th{padding:6px 4px;color:var(--muted);font-weight:600;text-align:center;position:sticky;top:0;background:var(--surface-2);z-index:2}table.sched th.we,table.sched td.we{background:#ffffff08}table.sched th .d{font-size:15px;color:var(--text)}.name-col{position:sticky;left:0;background:var(--surface);z-index:1;padding:8px;min-width:116px;max-width:140px;text-align:left;font-weight:600}table.sched th.name-col{z-index:3;background:var(--surface-2)}.cell{padding:4px;text-align:center;min-width:44px;height:46px;cursor:pointer;position:relative}.cell:active{background:var(--surface-2)}.chip{display:inline-block;border-radius:7px;padding:3px 5px;font-size:11px;font-weight:700;color:#071023;line-height:1.2;max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip.off{background:transparent;color:var(--muted);border:1px dashed var(--border);font-weight:600}.chip.vac{background:#fbbf24}.cell .add{color:#38406a;font-size:18px;font-weight:700}.review-dot{position:absolute;top:3px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--err)}.note-dot{position:absolute;top:3px;right:4px;width:7px;height:7px;border-radius:50%;background:var(--muted)}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:flex-end;justify-content:center;z-index:100}.sheet{width:min(100vw,560px);background:var(--surface);border-radius:18px 18px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));max-height:88dvh;overflow-y:auto;border-top:1px solid var(--border)}.sheet h3{margin:0 0 2px;font-size:17px}.sheet .sub{margin:0 0 16px;color:var(--muted);font-size:13px}.seg{display:flex;gap:8px;margin-bottom:14px}.seg button{flex:1;background:var(--surface-2);color:var(--text);border:1px solid var(--border);font-weight:600}.seg button.on{background:var(--accent);color:#071023;border-color:var(--accent)}.sheet-actions{display:flex;gap:8px;margin-top:8px}.sheet-actions button{flex:1}.comment{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:10px;margin-bottom:8px;font-size:13px}.comment .meta{color:var(--muted);font-size:11px;margin-top:4px}.badge-review{display:inline-block;font-size:10px;font-weight:700;padding:1px 6px;border-radius:999px;background:#f8717133;color:#fca5a5;margin-left:6px}.badge-done{background:#4ade802e;color:#86efac}@media (min-width: 640px){.overlay{align-items:center}.sheet{border-radius:18px}}.list-item{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin-bottom:10px;cursor:pointer}.list-item:active{background:var(--surface-2)}.list-item .title{font-weight:600;font-size:15px}.list-item .desc{color:var(--muted);font-size:12px;margin-top:2px}.list-item .amount{font-weight:700;white-space:nowrap}.pill{display:inline-block;font-size:11px;font-weight:700;padding:2px 9px;border-radius:999px;background:var(--surface-2);color:var(--muted)}.pill.open{background:#6ea8fe2e;color:#93c5fd}.pill.calc{background:#fbbf242e;color:#fcd34d}.pill.appr{background:#a78bfa33;color:#c4b5fd}.pill.paid{background:#4ade802e;color:#86efac}.pill.closed{background:#94a3b833;color:#cbd5e1}.line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid var(--border)}.line:first-child{border-top:none}.line .lt{font-size:14px}.line .ld{color:var(--muted);font-size:11px;margin-top:2px}.line .lv{text-align:right;font-weight:700;white-space:nowrap}.line .lv.neg{color:var(--err)}.mode-badge{display:inline-block;font-size:10px;font-weight:700;padding:1px 6px;border-radius:999px;background:#fbbf2433;color:#fcd34d;margin-left:6px;vertical-align:middle}.line .calc-note{color:var(--muted);font-size:11px}.totals .row .v{font-weight:700}.totals .row.big{font-size:16px}.totals .row.big .v{color:var(--accent)}.pos{color:var(--ok)}.neg{color:var(--err)}.back-link{display:inline-block;margin-bottom:12px;color:var(--muted);font-size:14px}
