:root{--bg: #edf0f3;--surface: #ffffff;--surface-2: #f5f7f9;--ink: #1c2733;--muted: #5b6878;--line: #d5dbe2;--line-strong: #b9c2cc;--accent: #23507a;--accent-hover: #1b4062;--on-accent: #ffffff;--accent-soft: #dce7f2;--event: #2e7d6b;--on-event: #ffffff;--bad: #a9483f;--bad-soft: #f3dcd9;--ok: #2e7d6b;--ok-soft: #d6ede7;--warn: #9a6512;--warn-soft: #f6e7c8;--focus: #2f7fd0;--font-ui: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;--font-head: "Bricolage Grotesque", "Instrument Sans", "Segoe UI", system-ui, sans-serif;--room-col: 150px;--slot: 12px;--row-h: 60px;color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #131a22;--surface: #1a232e;--surface-2: #202b37;--ink: #e3e9ef;--muted: #9aa8b7;--line: #2e3b4a;--line-strong: #44546a;--accent: #7fb0de;--accent-hover: #9cc3e8;--on-accent: #0f1a25;--accent-soft: #22374d;--event: #5fb8a2;--on-event: #0f1a25;--bad: #e07f75;--bad-soft: #40241f;--ok: #5fb8a2;--ok-soft: #1d3a33;--warn: #e0b154;--warn-soft: #3d3220;--focus: #8fc1f0;color-scheme:dark}}*,*:before,*:after{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--ink);font-family:var(--font-ui);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}body.no-scroll{overflow:hidden}h1,h2{font-family:var(--font-head);font-weight:700;line-height:1.15;margin:0}h1{font-size:1.9rem;letter-spacing:-.01em}h2{font-size:1.25rem}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.nowrap{white-space:nowrap}.app{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:28px;padding:28px 18px;background:var(--surface);border-right:1px solid var(--line)}.brand{font-family:var(--font-head);font-size:1.35rem;font-weight:700;padding:0 10px;line-height:1.2}.nav{display:flex;flex-direction:column;gap:2px}.nav-item{text-align:left;border:0;background:none;cursor:pointer;padding:9px 10px;border-radius:6px;color:var(--muted);font-weight:500}.nav-item:hover{background:var(--surface-2);color:var(--ink)}.nav-item.is-active{background:var(--accent-soft);color:var(--accent);font-weight:600}.sidebar-cta{margin-top:auto}.main{min-width:0;padding:36px 40px 60px}.page{max-width:1280px}.page-narrow{max-width:760px}.page-header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:24px}.page-lede{margin:6px 0 0;color:var(--muted);max-width:64ch}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);cursor:pointer;font-weight:500;white-space:nowrap}.btn:hover:not(:disabled){border-color:var(--muted)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-small{min-height:30px;padding:0 10px;font-size:.875rem}.btn-ghost-danger{border-color:transparent;background:transparent;color:var(--bad)}.btn-ghost-danger:hover:not(:disabled){background:var(--bad-soft);border-color:transparent}.icon-btn{width:34px;height:34px;border:0;border-radius:6px;background:none;font-size:1.5rem;line-height:1;cursor:pointer;color:var(--muted)}.icon-btn:hover{background:var(--surface-2);color:var(--ink)}.link-btn{border:0;background:none;padding:0;cursor:pointer;color:var(--accent);font-weight:600;text-align:left}.link-btn:hover{text-decoration:underline}.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.segmented{display:inline-flex}.segmented .btn{border-radius:0;margin-left:-1px}.segmented .btn:first-child{border-radius:6px 0 0 6px;margin-left:0}.segmented .btn:last-child{border-radius:0 6px 6px 0}.stack{display:flex;flex-direction:column;gap:14px}.field{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.field>span{font-size:.85rem;font-weight:500;color:var(--muted)}.field-row{display:flex;flex-wrap:wrap;gap:12px}.field-row>.field{min-width:140px}.field-row>.field-time{flex:0 1 120px;min-width:110px}.field-price{max-width:200px}.field-price input{font-size:1.15rem;font-weight:600}input[type=text],input[type=tel],input[type=number],input[type=date],input[type=time],input[type=search],select,textarea{width:100%;min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}textarea{resize:vertical}input:hover,select:hover,textarea:hover{border-color:var(--muted)}.check{display:inline-flex;align-items:center;gap:8px;cursor:pointer}.check input{width:17px;height:17px;margin:0;accent-color:var(--accent)}.hint{margin:-6px 0 0;font-size:.85rem;color:var(--muted)}.notice{margin:0;padding:10px 12px;border-radius:6px;font-size:.9rem}.notice-error{background:var(--bad-soft);color:var(--bad)}.form-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding-top:6px}.form-actions .btn-ghost-danger{margin-right:auto}.timeline-scroll{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:10px}.timeline{min-width:max-content}.timeline-row{display:grid;min-height:var(--row-h);border-bottom:1px solid var(--line)}.timeline-row:last-child{border-bottom:0}.timeline-room{grid-row:1;grid-column:1;position:sticky;left:0;z-index:3;display:flex;align-items:center;padding:6px 14px;background:var(--surface);border-right:1px solid var(--line);font-family:var(--font-head);font-weight:700}.timeline-head{min-height:40px}.timeline-head .timeline-room{font-family:var(--font-ui);font-weight:500;font-size:.85rem;color:var(--muted)}.timeline-hour{grid-row:1;display:flex;align-items:center;padding-left:6px;border-left:1px solid var(--line-strong);font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}.timeline-cell{grid-row:1;border:0;border-left:1px dashed var(--line);background:transparent;cursor:pointer;padding:0}.timeline-cell.is-hour{border-left:1px solid var(--line-strong)}.timeline-cell:hover{background:var(--accent-soft)}.timeline-event{grid-row:1;z-index:2;align-self:stretch;margin:6px 1px;display:flex;flex-direction:column;justify-content:center;gap:1px;padding:4px 10px;border:0;border-radius:6px;cursor:pointer;overflow:hidden;text-align:left;background:var(--event);color:var(--on-event);font-size:.82rem;line-height:1.25}.timeline-event:hover{filter:brightness(1.08)}.timeline-event.clip-start{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0}.timeline-event.clip-end{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}.event-time{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.event-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline-empty{margin:0;padding:32px;color:var(--muted)}.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:18px}.filters .field{flex:1 1 150px}.filters .field-search{flex:2 1 240px}.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:10px}.table{width:100%;border-collapse:collapse;font-size:.92rem}.table th{text-align:left;font-weight:500;color:var(--muted);font-size:.82rem;padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover{background:var(--surface-2)}.table tr.is-clickable{cursor:pointer}.table tr.is-muted td{color:var(--muted)}.table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.cell-sub{display:block;font-size:.82rem;color:var(--muted)}.row-actions{white-space:nowrap;text-align:right;width:1%}.row-actions .btn+.btn{margin-left:4px}.empty{padding:40px 20px;text-align:center;color:var(--muted)}.empty p{margin:0 0 14px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:start center;padding:6vh 16px;background:#0f192373;overflow-y:auto}.modal{width:min(560px,100%);background:var(--surface);border-radius:10px;box-shadow:0 24px 60px #0f19234d;animation:rise .16s ease-out}.modal-wide{width:min(800px,100%)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}.modal-body{padding:20px 22px 22px}@keyframes rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.toast{position:fixed;right:24px;bottom:24px;z-index:60;padding:12px 16px;border-radius:8px;font-weight:500;background:var(--ink);color:var(--surface);box-shadow:0 10px 30px #0f192340;animation:rise .16s ease-out}.toast-error{background:var(--bad);color:#fff}@media (max-width: 900px){.app{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:20;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px 16px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0;font-size:1.1rem}.nav{flex-direction:row;overflow-x:auto}.nav-item{white-space:nowrap}.sidebar-cta{margin:0 0 0 auto}.main{padding:24px 16px 48px}:root{--room-col: 100px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.splash{min-height:100vh;display:grid;place-items:center;color:var(--muted)}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px 16px}.login-card{width:min(380px,100%);padding:32px 28px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.login-card h1{font-size:1.6rem}.btn-block{width:100%;min-height:42px}input[type=password]{width:100%;min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}input[type=password]:hover{border-color:var(--muted)}.notice-info{background:var(--accent-soft);color:var(--accent)}.sidebar-user{display:flex;flex-direction:column;gap:4px;padding:14px 10px 0;border-top:1px solid var(--line)}.sidebar-user-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-actions{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.875rem}@media (max-width: 900px){.sidebar-user{flex-direction:row;align-items:center;gap:12px;padding:0;border-top:0;width:100%;justify-content:flex-end}}.app-version{font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}.login-version{margin:0;text-align:center}@media (max-width: 900px){.sidebar-user .app-version{display:none}}.pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}.pill-admin{background:var(--accent-soft);color:var(--accent)}.report-period{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}.report-presets{display:flex;flex-wrap:wrap;gap:6px}.report-presets .btn.is-active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.report-period .field-row{max-width:420px}.report-total{padding:24px;margin-bottom:28px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.report-total p{margin:0}.report-period-label{color:var(--muted);font-size:.9rem}.report-amount{font-family:var(--font-head);font-size:2.6rem;font-weight:700;line-height:1.1;margin:6px 0 4px!important;font-variant-numeric:tabular-nums}.report-heading{margin:0 0 10px}.report .table-wrap+.report-heading{margin-top:28px}@media print{.sidebar,.no-print,.toast{display:none!important}.app{display:block}.main{padding:0}body{background:#fff;color:#000}.report-total,.table-wrap{border-color:#999}}.payment{display:flex;flex-direction:column;gap:12px;margin:0;padding:14px 16px 16px;border:1px solid var(--line);border-radius:8px}.payment legend{padding:0 6px;font-size:.85rem;font-weight:600;color:var(--muted)}.payment .field-row>.field-price{flex:1 1 140px;max-width:none}.payment-status{margin:0;font-weight:700}.payment-status.is-paid{color:var(--ok)}.payment-status.is-due{color:var(--warn)}.pill-paid{background:var(--ok-soft);color:var(--ok)}.pill-due{background:var(--warn-soft);color:var(--warn)}.report-split{margin-top:8px!important;font-weight:500}
