:root{--bg:#f0f1f4;--surface:#fff;--surface2:#f5f6f8;--surface-hover:#ebedf1;--border:#e2e4ea;--border2:#cdd0d8;--ink:#14151a;--ink-soft:#50535e;--text3:#8b8f98;--accent:#534ab7;--accent-deep:#3c3489;--accent-soft:#f0edff;--ok:#1b8a63;--ok-bg:#e8f7f0;--warn:#ba7517;--warn-bg:#fff8ed;--danger:#c23b3b;--danger-bg:#fdeeee;--shadow:0 2px 8px #14151a0f;--radius:8px;--sidebar:268px;--font:"Segoe UI", system-ui, -apple-system, sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{min-height:100%}body{font-family:var(--font);background:var(--bg);color:var(--ink);line-height:1.45}button,input,select,textarea{font:inherit;color:inherit}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{appearance:none;border:1px solid var(--border2);max-width:100%;height:36px;min-height:36px;color:var(--ink);vertical-align:middle;box-shadow:none;background:#fff;border-radius:6px;padding:7px 10px;line-height:1.3;transition:border-color .12s,box-shadow .12s}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):hover,select:hover,textarea:hover{border-color:#b6bac4}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus,select:focus,textarea:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #534ab729}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):disabled,select:disabled,textarea:disabled{background:var(--surface2);color:var(--text3);cursor:not-allowed;opacity:1}input::placeholder,textarea::placeholder{color:var(--text3);opacity:1}select{cursor:pointer;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2350535e' d='M1.1 1.1 6 6 10.9 1.1'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;background-size:12px 8px;padding-right:30px}textarea{resize:vertical;width:100%;height:auto;min-height:84px;padding:10px}input[type=date],input[type=time],input[type=datetime-local],input[type=month],input[type=week]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;min-width:148px}input[type=date]::-webkit-calendar-picker-indicator{opacity:.55;cursor:pointer;margin-left:4px;padding:0}input[type=time]::-webkit-calendar-picker-indicator{opacity:.55;cursor:pointer;margin-left:4px;padding:0}input[type=datetime-local]::-webkit-calendar-picker-indicator{opacity:.55;cursor:pointer;margin-left:4px;padding:0}input[type=date]::-webkit-calendar-picker-indicator:hover{opacity:.9}input[type=time]::-webkit-calendar-picker-indicator:hover{opacity:.9}input[type=datetime-local]::-webkit-calendar-picker-indicator:hover{opacity:.9}input[type=date]::-webkit-datetime-edit{padding:0}input[type=time]::-webkit-datetime-edit{padding:0}input[type=datetime-local]::-webkit-datetime-edit{padding:0}input[type=date]::-webkit-datetime-edit-fields-wrapper{padding:0}input[type=time]::-webkit-datetime-edit-fields-wrapper{padding:0}input[type=search]{-webkit-appearance:none}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}input[type=checkbox],input[type=radio]{appearance:none;border:1px solid var(--border2);cursor:pointer;vertical-align:middle;width:16px;min-width:16px;height:16px;min-height:16px;box-shadow:none;background:#fff;flex:none;align-self:center;margin:0;transition:border-color .12s,background .12s,box-shadow .12s;position:relative}input[type=checkbox]{border-radius:4px}input[type=radio]{border-radius:50%}input[type=checkbox]:hover,input[type=radio]:hover{border-color:#b6bac4}input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #534ab729}input[type=checkbox]:checked,input[type=radio]:checked{background:var(--accent);border-color:var(--accent)}input[type=checkbox]:checked:after{content:"";border:2px solid #fff;border-width:0 2px 2px 0;width:5px;height:9px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}input[type=radio]:checked:after{content:"";background:#fff;border-radius:50%;width:6px;height:6px;position:absolute;top:4px;left:4px}input[type=checkbox]:disabled,input[type=radio]:disabled{background:var(--surface2);border-color:var(--border);cursor:not-allowed;opacity:.7}input[type=checkbox]:checked:disabled,input[type=radio]:checked:disabled{background:#9a94d4;border-color:#9a94d4}label.row,.row>label{cursor:pointer;align-items:center;gap:8px;margin:0;line-height:1.35;display:inline-flex}a{color:var(--accent);text-decoration:none}button{cursor:pointer}.app-shell{grid-template-columns:var(--sidebar) 1fr;min-height:100vh;display:grid}.app-shell__side{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:18px;padding:20px 14px;display:flex}.app-shell__brand{padding:4px 10px;font-size:18px;font-weight:700}.app-shell__nav{flex-direction:column;flex:1;gap:4px;display:flex}.nav-link{border-radius:var(--radius);color:var(--ink);text-align:left;background:0 0;border:none;padding:10px 12px;display:block}.nav-link:hover{background:var(--surface-hover)}.nav-link.is-active{background:var(--accent-soft);color:var(--accent-deep);font-weight:600}.nav-link.is-disabled{color:var(--text3);opacity:.65;cursor:not-allowed}.app-shell__user{border-top:1px solid var(--border);color:var(--ink-soft);padding-top:14px;font-size:14px}.app-shell__main{min-width:0;padding:24px 28px 40px}.page-head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.page-head h1{font-size:24px;font-weight:700}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.btn{background:var(--accent);color:#fff;border:1px solid #0000;border-radius:6px;padding:8px 14px;font-weight:600}.btn:hover{background:var(--accent-deep)}.btn--ghost{color:var(--ink);border-color:var(--border2);background:0 0}.btn--ghost:hover{background:var(--surface-hover)}.btn--danger{background:var(--danger)}.btn:disabled{opacity:.55;cursor:not-allowed}.field{flex-direction:column;gap:6px;min-width:0;margin-bottom:12px;display:flex}.field>label{color:var(--ink-soft);font-size:13px;font-weight:500;line-height:1.3}.field>input,.field>select,.field>textarea,.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{width:100%}.app-shell__side .field{margin-bottom:0}.app-shell__side .field>select{text-overflow:ellipsis;width:100%}.muted{color:var(--ink-soft);font-size:14px}.chip{border:1px solid var(--border2);background:var(--surface2);border-radius:999px;align-items:center;gap:4px;padding:4px 10px;font-size:12px;display:inline-flex}.chip--ok{background:var(--ok-bg);color:var(--ok);border-color:#b7e2cf}.chip--accent{background:var(--accent-soft);color:var(--accent-deep);border-color:#c9c3f5}.chip--warn{background:var(--warn-bg);color:var(--warn)}.table{border-collapse:collapse;width:100%}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:10px 8px;font-size:14px}.table th{color:var(--ink-soft);text-transform:uppercase;letter-spacing:.02em;font-size:12px;font-weight:600}.login-page{background:radial-gradient(ellipse at top left, #e8e6ff 0%, transparent 45%), radial-gradient(ellipse at bottom right, #e8f7f0 0%, transparent 40%), var(--bg);place-items:center;min-height:100vh;display:grid}.login-card{background:var(--surface);border:1px solid var(--border);width:min(420px,92vw);box-shadow:var(--shadow);border-radius:12px;padding:28px}.login-card h1{margin-bottom:6px;font-size:22px}.status-link-page{background:radial-gradient(ellipse at top left, #e8e6ff 0%, transparent 45%), radial-gradient(ellipse at bottom right, #e8f7f0 0%, transparent 40%), var(--bg);place-items:center;min-height:100vh;padding:24px;display:grid}.status-link-card{background:var(--surface);border:1px solid var(--border);width:min(420px,92vw);box-shadow:var(--shadow);text-align:center;border-radius:12px;padding:28px}.status-link-card h1{margin-bottom:8px;font-size:24px}.status-link-card__state{color:var(--text2);margin-bottom:18px;font-size:15px;font-weight:600}.status-link-card__error{color:#b42318;margin-bottom:12px;font-size:13px}.status-link-card__actions{justify-content:center;gap:10px;display:flex}.status-link-card__actions .btn.is-on{outline:2px solid var(--accent);outline-offset:1px}.toast{background:var(--ink);color:#fff;z-index:50;border-radius:8px;padding:10px 14px;font-size:14px;position:fixed;bottom:20px;right:20px}.subnav{flex-wrap:wrap;gap:6px;margin-bottom:16px;display:flex}.subnav__item{border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:7px 12px;font-size:13px}.subnav__item.is-active{background:var(--accent);border-color:var(--accent);color:#fff}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.kpi{padding:14px}.kpi__value{font-size:28px;font-weight:700}.drawer-backdrop{z-index:30;background:#14151a59;position:fixed;inset:0}.drawer{background:var(--surface);z-index:31;flex-direction:column;width:min(520px,100vw);height:100%;display:flex;position:fixed;top:0;right:0;box-shadow:-8px 0 24px #00000014}.drawer__head,.drawer__foot{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.drawer__foot{border-bottom:none;border-top:1px solid var(--border);margin-top:auto}.drawer__body{flex:1;padding:16px 20px;overflow:auto}.pipe-list{flex-direction:column;gap:8px;max-width:360px;display:flex}.pipe-tile{box-shadow:none;gap:8px;padding:8px 10px}.pipe-tile__head{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.pipe-tile__label{flex:1;gap:8px;min-width:0}.pipe-tile__label strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pipe-tile__toggle{flex:none;width:32px;min-width:32px;height:32px;padding:0}.pipe-tile__statuses{flex-direction:column;gap:6px;padding-left:8px;display:flex}.toggle{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;display:inline-flex}.toggle input[type=checkbox]{appearance:none;border:1px solid var(--border2);background:var(--surface2);cursor:pointer;width:36px;min-width:36px;height:20px;min-height:20px;box-shadow:none;border-radius:999px;transition:background .15s,border-color .15s;position:relative}.toggle input[type=checkbox]:after{content:"";background:#fff;border:0;border-radius:50%;width:14px;height:14px;transition:transform .15s;position:absolute;top:2px;left:2px;transform:none;box-shadow:0 1px 2px #14151a33}.toggle input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}.toggle input[type=checkbox]:checked:after{content:"";background:#fff;border:0;border-radius:50%;width:14px;height:14px;top:2px;left:2px;transform:translate(16px)}.toggle input[type=checkbox]:focus-visible{outline:none;box-shadow:0 0 0 3px #534ab729}.bar{background:var(--surface2);border-radius:999px;height:8px;overflow:hidden}.bar>span{background:var(--accent);height:100%;display:block}.stack{flex-direction:column;gap:12px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.row>input:not([type=checkbox]):not([type=radio]),.row>select{width:auto;min-width:0}.row>.field{margin-bottom:0}.filter-bar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.filter-bar__group{align-items:center;gap:8px;min-width:0;margin:0;display:inline-flex}.filter-bar__label{color:var(--ink-soft);white-space:nowrap;font-size:14px}.filter-bar__sep{color:var(--text3);line-height:1}.filter-bar>select{min-width:160px}.btn.is-on{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.sched-page{min-height:0}.sched-toolbar{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px 16px;display:flex}.dist-cal-nav{align-items:center;gap:8px;display:inline-flex}.dist-cal-range{text-align:center;font-variant-numeric:tabular-nums;min-width:140px;font-weight:600}.dist-cal-wrap{border:1px solid var(--border);background:#fff;border-radius:4px;max-height:calc(100vh - 220px);overflow:auto}.dist-cal{border-collapse:separate;border-spacing:0;table-layout:fixed;background:var(--surface);width:100%;font-size:12px}.dist-cal th,.dist-cal td{border-bottom:1px solid var(--border);vertical-align:middle;background:var(--surface);padding:0}.dist-cal thead th{z-index:4;color:var(--text3);text-align:center;border-bottom:1px solid var(--border);padding:6px 4px 10px;font-size:11px;font-weight:500;position:sticky;top:0}.dist-cal thead th.is-weekend{color:#c0392b;background:#f7ecec}.dist-cal thead .dist-cal__dow{text-transform:lowercase;font-weight:500;display:block}.dist-cal thead .dist-cal__dom{color:var(--ink);margin-top:2px;font-size:13px;font-weight:600;display:block}.dist-cal thead th.is-weekend .dist-cal__dow,.dist-cal thead th.is-weekend .dist-cal__dom{color:#c0392b;font-weight:700}.dist-cal thead th.is-today{box-shadow:inset 0 -2px 0 var(--accent);background:#ede8ff}.dist-cal thead th.is-today .dist-cal__dow,.dist-cal thead th.is-today .dist-cal__dom{color:var(--accent);font-weight:700}.dist-cal thead th.is-weekend.is-today{background:#ede8ff}.dist-cal thead th.is-weekend.is-today .dist-cal__dow,.dist-cal thead th.is-weekend.is-today .dist-cal__dom{color:var(--accent)}.dist-cal tbody .dist-cal__name,.dist-cal thead th.dist-cal__name{background:var(--surface);width:148px;min-width:148px;max-width:148px;position:sticky;left:0;box-shadow:6px 0 10px -6px #1412232e;text-align:left!important;border-right:1px solid var(--border)!important}.dist-cal thead th.dist-cal__name{z-index:9;color:var(--text3);font-size:11px;font-weight:500;padding:6px 4px 10px 10px!important}.dist-cal tbody .dist-cal__name{z-index:5;color:var(--ink);white-space:normal;font-size:12px;font-weight:600;line-height:1.25;padding:8px 10px!important}.dist-cal tbody tr:hover .dist-cal__name{background:var(--surface2)}.dist-cal__name-actions{flex-direction:column;gap:1px;margin-top:3px;display:flex}.dist-cal__name-sub{color:var(--accent);cursor:pointer;text-align:left;white-space:nowrap;background:0 0;border:0;padding:0;font-size:11px;font-weight:500;line-height:1.3;display:block}.dist-cal__name-sub:hover{color:var(--accent-deep);text-decoration:underline}.dist-cal__cell{text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;height:64px;min-height:64px;transition:background .12s}.dist-cal__cell.is-readonly{cursor:default}.dist-cal__cell.is-selected{outline:2px solid var(--accent);outline-offset:-2px;background:var(--accent-soft)!important}.sched-sel-bar{border:1px solid var(--border);background:var(--accent-soft);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:13px;display:flex}.dist-cal__cell.is-today{background:#f2f0fc}.dist-cal__cell.is-today:hover{background:#e8e4f8}.dist-cal__cell.is-weekend:not(.is-today){background:#fbf8f8}.dist-cal__cell.is-weekend:not(.is-today):hover{background:#f5eeee}.dist-cal__cell.is-off:hover{background:var(--surface2)}.dist-cal__cell.is-off.is-weekend:not(.is-today){background:#fbf8f8}.dist-cal__off{color:#b0b3bd;pointer-events:none;font-size:11px;font-weight:600;display:block}.dist-cal__slots{pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:4px;display:flex}.dist-cal__slot{color:var(--accent);pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:1px;font-size:11px;font-weight:600;line-height:1.15;display:flex}.dist-cal__slots .dist-cal__slot+.dist-cal__slot{border-top:1px solid #4f5cd62e;padding-top:3px}.sched-range-row{align-items:flex-end;gap:8px;display:flex}.sched-range-row .field{margin:0}.sched-range-row>.btn{flex:none;min-width:36px;height:36px;margin-bottom:1px;padding:0}.sched-modal{background:var(--surface);z-index:32;border-radius:12px;flex-direction:column;width:min(440px,100vw - 32px);max-height:calc(100vh - 48px);display:flex;position:fixed;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%);box-shadow:0 16px 48px #14151a2e}.sched-modal--wide{width:min(520px,100vw - 32px)}.sched-modal.is-dayoff{outline:2px solid #f0b4b4}.sched-modal__head,.sched-modal__foot{justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;display:flex}.sched-modal__head{border-bottom:1px solid var(--border)}.sched-modal__foot{border-top:1px solid var(--border)}.sched-modal__body{padding:16px;overflow:auto}.dist-shift-preset{gap:0;padding:0;overflow:hidden}.dist-shift-preset.is-on{background:var(--accent-soft);color:var(--accent-deep);border-color:#c9c3f5}.dist-shift-preset__pick,.dist-shift-preset__remove{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:4px 8px;line-height:1.2}.dist-shift-preset__remove{opacity:.65;padding-left:2px;padding-right:8px}.dist-shift-preset__remove:hover:not(:disabled){opacity:1}.dist-shift-preset__pick:disabled,.dist-shift-preset__remove:disabled{cursor:not-allowed;opacity:.5}.dist-week-list{border:1px solid var(--border);background:#fff;border-radius:12px;overflow:hidden}.dist-week-row{border-bottom:1px solid var(--border);grid-template-columns:40px 44px minmax(0,1fr);align-items:start;gap:12px;min-height:52px;padding:12px 14px;display:grid}.dist-week-row:last-child{border-bottom:0}.dist-week-row.is-off{background:var(--surface2);align-items:center}.dist-week-row__day{padding-top:10px;font-size:13px;font-weight:600}.dist-week-row.is-off .dist-week-row__day{color:var(--text3);padding-top:0}.dist-week-row .toggle{margin-top:8px}.dist-week-row.is-off .toggle{margin-top:0}.dist-week-row__ranges{flex-direction:column;gap:8px;min-width:0;display:flex}.dist-week-row__range{align-items:center;gap:6px;min-width:0;display:flex}.dist-week-row__times{flex:1;align-items:center;gap:8px;min-width:0;display:flex}.dist-week-row__times input[type=time]{width:108px;max-width:100%;padding:8px 10px}.dist-week-row__sep{color:var(--text3);font-size:12px;font-weight:600}.dist-week-row__actions{flex-wrap:wrap;align-items:center;gap:4px 12px;display:flex}.dist-week-row__off{color:var(--text3);font-size:13px;font-weight:600}.dist-week-allday{font:inherit;color:var(--accent);cursor:pointer;background:0 0;border:0;padding:4px 0;font-size:12px;font-weight:700}.dist-week-allday:hover{text-decoration:underline}@media (width<=900px){.app-shell{grid-template-columns:1fr}.app-shell__side{border-right:none;border-bottom:1px solid var(--border)}.grid-2,.grid-3{grid-template-columns:1fr}.dist-week-row{grid-template-columns:36px 40px 1fr}.dist-week-row__times input[type=time]{width:96px}}
