:root{--brand: #0f766e;--brand-dark: #115e59;--brand-soft: #ccfbf1;--ink: #1f2937;--muted: #6b7280;--line: #e2e8f0;--grid-line: #e5e7eb;--bg: #f8fafc;--card: #ffffff;--sel: #1a73e8;--sel-fill: rgba(26, 115, 232, .12);--danger: #dc2626;--radius: 8px;font-family:Inter,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}h1{font-size:22px;margin:0 0 4px}h2{font-size:17px;margin:0 0 4px}h3{font-size:15px;margin:0 0 8px}hr{border:0;border-top:1px solid var(--line);margin:16px 0}a{color:var(--brand)}.muted{color:var(--muted)}.small{font-size:12px}.right{text-align:right}kbd{border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;padding:0 4px;font-size:11px;background:#fff}.btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:34px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;cursor:pointer;white-space:nowrap}.btn:hover:not(:disabled){background:#f1f5f9}.btn:disabled{opacity:.45;cursor:default}.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}.btn-primary:hover:not(:disabled){background:var(--brand-dark)}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff;font-weight:600}.btn-danger:hover:not(:disabled){background:#b91c1c}.btn-danger-outline{color:var(--danger);border-color:#fecaca}.btn-block{width:100%}.btn-sm{height:28px;padding:0 10px;font-size:13px}.icon-btn{border:0;background:none;cursor:pointer;font-size:16px;padding:4px 8px;border-radius:6px}.icon-btn:hover{background:#f1f5f9}.link-btn{border:0;background:none;color:var(--brand);cursor:pointer;padding:2px 6px;font-size:13px}.link-btn:hover{text-decoration:underline}.link-btn.danger{color:var(--danger)}input:not([type=checkbox]):not([type=radio]):not([type=color]),select{height:34px;padding:0 10px;border:1px solid #cbd5e1;border-radius:var(--radius);background:#fff}input:focus,select:focus{outline:2px solid var(--brand);outline-offset:-1px;border-color:var(--brand)}input:disabled{background:#f1f5f9;color:var(--muted)}.field{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.field>span{font-size:13px;font-weight:600;color:#374151}.field input,.field select{width:100%}.check{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;margin:4px 0}.check input{width:16px;height:16px;accent-color:var(--brand)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.span-2{grid-column:span 2}.form-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:var(--radius);padding:8px 12px;margin:8px 0;font-size:13px}.pw-wrap{position:relative}.pw-wrap input{padding-right:60px!important}.pw-toggle{position:absolute;right:4px;top:4px;height:26px;border:0;background:#f1f5f9;border-radius:6px;font-size:12px;cursor:pointer;padding:0 8px}.search{width:180px}.badge{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:99px;margin-left:6px}td>.badge:first-child,.login-cell .badge{margin-left:0}.badge-teal{background:var(--brand-soft);color:var(--brand-dark)}.badge-blue{background:#dbeafe;color:#1e40af}.badge-gray{background:#f1f5f9;color:#475569}.code-chip{display:inline-block;font-weight:700;padding:3px 10px;border-radius:6px;font-size:13px}.auth-page{min-height:100vh;display:grid;place-items:center;padding:16px;background:linear-gradient(160deg,#f0fdfa,#f8fafc 50%)}.auth-card{width:100%;max-width:380px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:0 10px 30px #0f766e14}.auth-card h1{margin:18px 0 16px;font-size:20px}.auth-brand{display:flex;align-items:center;gap:12px}.auth-title{font-weight:700;font-size:18px}.auth-sub{color:var(--muted);font-size:13px}.auth-hint{text-align:center;color:var(--muted);font-size:13px;margin:14px 0 0}.auth-hint.left{text-align:left;margin:0 0 14px}.banner-error{background:#fef2f2;color:#991b1b;padding:8px 16px;font-size:13px;text-align:center}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:16px;height:56px;padding:0 16px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}.brand{display:flex;align-items:center;gap:10px}.brand-name{font-weight:700;line-height:1.1}.brand-sub{font-size:11px;color:var(--muted)}.demo-pill{background:#f59e0b;color:#fff;font-size:11px;font-weight:700;letter-spacing:.05em;padding:3px 8px;border-radius:99px}.tabs{display:flex;gap:4px;flex:1;overflow-x:auto}.tabs button{border:0;background:none;padding:8px 14px;border-radius:8px;cursor:pointer;font-weight:600;color:#475569;white-space:nowrap}.tabs button:hover{background:#f1f5f9}.tabs button.on{background:var(--brand-soft);color:var(--brand-dark)}.account-btn{display:flex;align-items:center;gap:8px;border:0;background:none;cursor:pointer;padding:4px 8px;border-radius:99px}.account-btn:hover{background:#f1f5f9}.avatar{width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:700}.account-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main{flex:1;min-height:0}.account-form{margin-top:12px}.page{padding:20px;max-width:1100px;margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.page-head.sub{margin-top:32px}.empty{padding:40px 20px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #cbd5e1;border-radius:12px}.empty.small{padding:16px}.table-wrap{background:#fff;border:1px solid var(--line);border-radius:12px;overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);background:#f8fafc;padding:10px 12px;border-bottom:1px solid var(--line)}.table td{padding:10px 12px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tr.inactive td{color:var(--muted)}.login-cell{display:flex;flex-direction:column;gap:2px;align-items:flex-start}.login-actions{display:flex;flex-wrap:wrap;margin-left:-6px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:grid;place-items:center;z-index:100;padding:16px}.modal{width:100%;max-width:480px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 20px 50px #00000040}.modal-wide{max-width:720px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 8px}.modal-head h2{margin:0}.modal-body{padding:8px 20px 16px;overflow-y:auto}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--line)}.confirm-text p{margin:0 0 10px}.toasts{position:fixed;bottom:20px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:8px;z-index:200;align-items:center;pointer-events:none}.toast{background:#1f2937;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;box-shadow:0 8px 20px #0003;max-width:90vw}.toast-ok{background:#065f46}.toast-error{background:#991b1b}.spinner-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;padding:60px;color:var(--muted)}.spinner{width:28px;height:28px;border:3px solid #e2e8f0;border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.swatches{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.swatch{width:26px;height:26px;border-radius:6px;border:2px solid transparent;cursor:pointer;box-shadow:inset 0 0 0 1px #00000014}.swatch.on{border-color:var(--ink)}.swatches input[type=color]{width:34px;height:30px;border:1px solid var(--line);border-radius:6px;padding:2px;background:#fff;cursor:pointer}.schedule{display:flex;flex-direction:column;height:calc(100vh - 56px);padding:10px 12px 6px;gap:8px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.toolbar-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.range-label{font-weight:700;font-size:16px;margin:0 6px}.date-jump{width:150px}.seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff}.seg button{border:0;background:none;padding:0 14px;height:32px;cursor:pointer;font-weight:600;color:#475569}.seg button+button{border-left:1px solid var(--line)}.seg button.on{background:var(--brand);color:#fff}.save-state{font-size:13px;margin-right:6px}.save-saved{color:#047857}.save-saving{color:var(--muted)}.save-error{color:var(--danger);font-weight:600}.palette{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;background:#fff;border:1px solid var(--line);border-radius:10px}.palette-hint{font-size:13px;color:var(--muted);margin-right:4px}.chip{border:1px solid rgba(0,0,0,.08);border-radius:99px;padding:4px 12px;cursor:pointer;font-size:13px}.chip:hover:not(:disabled){filter:brightness(.95);box-shadow:0 1px 3px #00000026}.chip:disabled{opacity:.5;cursor:default}.chip-clear{background:#fff}.grid-focus{flex:1;min-height:0;display:flex;flex-direction:column;outline:none}.grid-focus:focus-visible .grid-scroll{box-shadow:0 0 0 2px var(--brand-soft)}.grid-scroll{flex:1;min-height:0;overflow:auto;background:#fff;border:1px solid #d1d5db;border-radius:6px}.grid{border-collapse:separate;border-spacing:0;user-select:none;-webkit-user-select:none;font-size:13px}.grid th,.grid td{border-right:1px solid var(--grid-line);border-bottom:1px solid var(--grid-line)}.grid thead th{position:sticky;top:0;z-index:3;background:#f8f9fa;color:#3c4043;font-weight:600;padding:4px 2px;cursor:pointer}.grid .col-name{position:sticky;left:0;z-index:2;min-width:170px;max-width:170px;width:170px;background:#f8f9fa;text-align:left;padding:4px 10px;font-weight:500}.grid .col-hours{position:sticky;left:170px;z-index:2;min-width:52px;width:52px;background:#f8f9fa;text-align:center;font-weight:600;color:#374151;border-right:2px solid #d1d5db}.grid thead .col-name,.grid thead .col-hours{z-index:4;cursor:default}.grid tbody th.col-name{cursor:pointer}.sname{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spos{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.col-day{min-width:108px;text-align:center}.grid-compact .col-day{min-width:40px}.dname{font-size:11px;text-transform:uppercase;color:#5f6368}.ddate{font-size:13px}.grid thead th.weekend{background:#f1f3f4}.grid thead th.today{background:var(--brand-soft);color:var(--brand-dark)}.grid thead th.hdr-sel,.grid tbody th.hdr-sel{background:#d3e3fd}.section-row .section-cell{background:#eef2f7;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#475569;padding:4px 10px;height:26px}.section-row .col-name{position:sticky;left:0;z-index:2}.section-row .col-hours{position:sticky;left:170px;z-index:2}.cell{position:relative;height:42px;text-align:center;vertical-align:middle;cursor:cell;padding:2px 4px;line-height:1.15;background:#fff}.grid-compact .cell{height:34px;padding:0}.cell.weekend:not([style]){background:#fafafa}.cell.today:not([style]){background:#f0fdfa}.clabel{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ctime{display:block;font-size:11px;opacity:.8;white-space:nowrap}.ccode{font-weight:700}.ctime-custom,.ccode-custom{text-decoration:underline dotted;text-underline-offset:2px;font-weight:700;opacity:1}.ctime-custom:before{content:"⏱ "}.picker-times{display:flex;flex-direction:column;gap:4px}.picker-times-label{font-size:12px;font-weight:600;color:#374151}.picker-times-row{display:flex;align-items:center;gap:6px}.picker-times-row input{flex:1;min-width:0;padding:0 6px!important}.picker-times .link-btn{align-self:flex-start;padding-left:0}.cell.in-sel:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--sel-fill);pointer-events:none}.cell.e-t:after{border-top:2px solid var(--sel)}.cell.e-b:after{border-bottom:2px solid var(--sel)}.cell.e-l:after{border-left:2px solid var(--sel)}.cell.e-r:after{border-right:2px solid var(--sel)}.cell.active:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:2px solid var(--sel);pointer-events:none;z-index:1}.note-mark{position:absolute;top:0;right:0;width:0;height:0;z-index:2;pointer-events:none;border-top:9px solid #f59e0b;border-left:9px solid transparent}.cell-input{position:absolute;top:1px;right:1px;bottom:1px;left:1px;width:calc(100% - 2px)!important;height:calc(100% - 2px)!important;border:0!important;outline:none!important;text-align:center;font-weight:700;background:#fff!important;color:var(--ink);z-index:2;padding:0 2px!important}.type-hint{position:absolute;top:100%;left:50%;transform:translate(-50%);margin-top:3px;background:#1f2937;color:#fff;font-size:12px;padding:3px 8px;border-radius:6px;white-space:nowrap;z-index:5}.grid tfoot th,.grid tfoot td{background:#f8f9fa;text-align:center;font-size:12px;height:26px}.grid tfoot .col-name{text-align:left;font-weight:600}.foot-total td,.foot-total th{font-weight:700;border-top:2px solid #d1d5db;color:var(--ink)}.foot-shift td{color:#4b5563}.dot{display:inline-block;width:10px;height:10px;border-radius:3px;vertical-align:-1px;margin-right:4px;box-shadow:inset 0 0 0 1px #0000001a}.grid-help{font-size:12px;color:var(--muted);padding:2px 4px}.picker-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50}.picker{position:fixed;z-index:51;width:260px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #0000002e;padding:8px;max-height:calc(100vh - 16px);overflow-y:auto}.picker-title{font-size:12px;color:var(--muted);padding:4px 6px 8px;font-weight:600}.picker-list{display:flex;flex-direction:column;max-height:220px;overflow-y:auto}.picker-item{display:flex;align-items:center;gap:8px;border:0;background:none;padding:6px;border-radius:8px;cursor:pointer;text-align:left}.picker-item:hover,.picker-item:focus{background:#f1f5f9;outline:none}.picker-item.current{background:#e0f2fe}.pi-code{min-width:32px;text-align:center;font-weight:700;font-size:12px;padding:3px 4px;border-radius:6px}.pi-clear{background:#f1f5f9;color:#64748b}.pi-label{flex:1;font-weight:500}.pi-time{font-size:11px;color:var(--muted)}.picker-note{border-top:1px solid var(--line);margin-top:6px;padding:8px 6px 2px;display:flex;flex-direction:column;gap:6px}.picker-note label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#374151}.picker-note input{width:100%}.my-shifts{max-width:640px}.week-card{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:14px;overflow:hidden}.week-head{display:flex;justify-content:space-between;padding:10px 14px;background:#f8fafc;border-bottom:1px solid var(--line);font-weight:700}.day-row{display:flex;align-items:stretch;gap:10px;padding:6px 10px;border-bottom:1px solid #f1f5f9}.day-row:last-child{border-bottom:0}.day-row.today{background:#f0fdfa}.day-row.past{opacity:.55}.day-date{width:44px;text-align:center}.dnum{font-size:18px;font-weight:700}.day-shift{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:8px 12px;border-radius:8px}.day-shift.none{color:var(--muted);background:#f8fafc;font-style:italic}.day-note{width:100%;font-size:12px}@media (max-width: 720px){.topbar{gap:8px;padding:0 8px}.brand-sub,.account-name{display:none}.brand>div{display:none}.page{padding:14px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.grid .col-name{min-width:110px;max-width:110px;width:110px;padding:4px 6px}.grid .col-hours,.section-row .col-hours{left:110px;min-width:40px;width:40px}.grid-help{display:none}.schedule{height:auto;min-height:calc(100vh - 56px)}.grid-focus{flex:none}.grid-scroll{flex:none;height:70vh}.palette-hint{width:100%}.date-jump{display:none}.search{width:130px}}@media print{@page{size:landscape;margin:8mm}.topbar,.toolbar,.palette,.grid-help,.toasts,.banner-error{display:none!important}.schedule{height:auto;padding:0}.grid-scroll{overflow:visible;border:0}.grid thead th,.grid .col-name,.grid .col-hours,.grid tfoot th,.grid tfoot td{position:static}.cell.in-sel:after,.cell.active:before{display:none}.grid,.cell{-webkit-print-color-adjust:exact;print-color-adjust:exact}.cell{height:auto}}
