:root{color-scheme:light;--bg: #f4f6fb;--surface: #ffffff;--surface-2: #eef1f7;--border: #dde3ec;--text: #17202e;--muted: #5b6676;--accent: #2f6feb;--accent-press: #2357c4;--ok: #16a34a;--err: #dc2626;--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:#fff;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)}input[type=date]{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;line-height:20px}input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0;padding:0}input[type=date]::-webkit-calendar-picker-indicator{margin:0}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:#dc262614;border:1px solid rgba(220,38,38,.35);color:#b91c1c;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:18px}.topbar .who{font-size:12px;color:var(--muted)}.burger{display:flex;flex-direction:column;justify-content:center;gap:4px;width:44px;min-height:44px;padding:0;background:transparent;border:1px solid var(--border)}.burger:active{background:var(--surface-2)}.burger span{display:block;width:20px;height:2px;background:var(--text);border-radius:2px;margin:0 auto}.drawer{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)}.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:12px}table.sched th,table.sched td{border-bottom:1px solid var(--border);border-right:1px solid var(--border)}table.sched th{padding:4px 2px;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:#00000009}table.sched th .d{font-size:13px;color:var(--text)}.name-col{position:sticky;left:0;background:var(--surface);z-index:1;padding:6px;min-width:82px;max-width:104px;text-align:left;font-weight:600;font-size:12px;line-height:1.15}table.sched th.name-col{z-index:3;background:var(--surface-2)}.cell{padding:2px;text-align:center;min-width:34px;height:50px;cursor:pointer;position:relative}.cell:active{background:var(--surface-2)}.off-def{color:#c3cad6;font-size:12px}.cw{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:6px;padding:3px 1px;min-height:44px;line-height:1.1}.cw-store{font-weight:800;font-size:11px}.cw-time{font-size:9px;margin-top:1px;opacity:.9}.store-btns{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px;padding-bottom:2px;-webkit-overflow-scrolling:touch}.store-btns button{min-height:36px;padding:6px 14px;font-size:13px;font-weight:600;border-radius:999px;background:var(--surface);border:1px solid var(--border);color:var(--text);white-space:nowrap}.store-btns button.on{background:var(--accent);color:#fff;border-color:var(--accent)}.brush-row{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px;align-items:center;padding-bottom:2px;-webkit-overflow-scrolling:touch}.brush-row button{min-height:34px;padding:5px 12px;font-size:13px;font-weight:600;border-radius:999px;background:var(--surface);border:1px solid var(--border);color:var(--text);white-space:nowrap}.brush-row button.on{background:var(--accent);color:#fff;border-color:var(--accent)}.note-badge{position:absolute;top:1px;left:2px;font-size:9px;line-height:1;z-index:1}.temp-drow td{background:var(--surface-2);border-top:2px solid var(--border)}.temp-head{position:sticky;left:0;z-index:1;background:var(--surface-2);color:var(--muted);font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:5px 6px;text-align:left}.temp-day{padding:4px 2px;color:var(--muted);font-weight:600;font-size:12px;text-align:center}.temp-day .d{font-size:13px;color:var(--text)}.temp-day.we{background:#0000000d}.temp-name{color:var(--muted)}.temp-tag{display:inline-block;margin-left:4px;font-size:9px;font-weight:700;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:0 4px;vertical-align:middle}.chip{display:inline-block;border-radius:6px;padding:2px 3px;font-size:10px;font-weight:700;color:#071023;line-height:1.15;max-width:36px;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}.chip.resv{background:#fde8e8;color:#8a1c1c;border:1px solid #f3b4b4}.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:#fff;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:#dc26261f;color:#b91c1c;margin-left:6px}.badge-done{background:#16a34a21;color:#15803d}@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:#2f6feb1f;color:#1d4ed8}.pill.calc{background:#d9770624;color:#b45309}.pill.appr{background:#7c3aed1f;color:#6d28d9}.pill.paid{background:#16a34a21;color:#15803d}.pill.closed{background:#64748b26;color:#475569}.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:#d9770626;color:#b45309;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}@media (min-width: 1024px){.content.wide{max-width:none;padding:16px 24px}.content.wide .sched-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:10px}.content.wide .sched-controls>*{margin-bottom:0!important}.content.wide .sched-controls .toolbar{flex:0 0 340px}.content.wide .sched-controls .store-btns{padding-bottom:0}.content.wide .sched-controls .sc-emp{flex:0 0 260px}.content.wide .sched-controls .sc-break{flex-basis:100%;height:0}.content.wide .sched-controls .sched-edit{width:auto!important;padding:8px 18px}.content.wide .grid-wrap{max-height:calc(100dvh - 230px);overflow:auto}.content.wide table.sched{font-size:13px}.content.wide .name-col{min-width:150px;max-width:200px;font-size:13px;padding:6px 10px}.content.wide .cell{min-width:40px;height:46px}.content.wide .cell:hover{background:var(--surface-2)}.content.wide .cw-store{font-size:12px}.content.wide .cw-time{font-size:10px}.content.wide .chip{max-width:64px;font-size:11px}.content.wide>.tile,.content.wide>p{max-width:720px}}.desk-only{display:none}table.sched th.today{background:#e8efff;color:var(--accent)}table.sched th.today .d{color:var(--accent);font-weight:800}@media (min-width: 1024px){.content.wide .desk-only{display:block}.content.wide .grid-wrap{scrollbar-width:auto;scrollbar-color:#b9c1cf var(--surface-2)}.content.wide .grid-wrap::-webkit-scrollbar{height:14px;width:12px}.content.wide .grid-wrap::-webkit-scrollbar-track{background:var(--surface-2);border-radius:0 0 var(--radius) var(--radius)}.content.wide .grid-wrap::-webkit-scrollbar-thumb{background:#c3cad6;border-radius:10px;border:3px solid var(--surface-2)}.content.wide .grid-wrap::-webkit-scrollbar-thumb:hover{background:#98a2b3}.content.wide .grid-wrap::-webkit-scrollbar-corner{background:var(--surface-2)}}.fired-tag{display:inline-block;margin-left:4px;font-size:9px;font-weight:700;color:#b91c1c;background:#fde8e8;border:1px solid #f3b4b4;border-radius:6px;padding:0 4px;vertical-align:middle;white-space:nowrap}.grp-row td{background:var(--surface-2);border-top:2px solid var(--border)}.grp-head{position:sticky;left:0;z-index:1;font-weight:800;font-size:13px;padding:5px 6px;text-align:left;background:var(--surface-2)}.grp-fill{padding:0}td.cell.outside{background:repeating-linear-gradient(135deg,#f3f4f6,#f3f4f6 4px,#e9ebef 4px,#e9ebef 8px);cursor:default}.seg-tag{display:inline-block;margin-left:4px;font-size:9px;font-weight:700;color:#1d4ed8;background:#2f6feb1a;border:1px solid rgba(47,111,235,.25);border-radius:6px;padding:0 4px;vertical-align:middle;white-space:nowrap}
