:root{color-scheme:dark;--bg:#07131f;--panel:#0e2132;--line:#233b4d;--text:#edf4f8;--muted:#98afbf;--cyan:#52c8ea;--yellow:#ffd34a;--blue:#2874ec;--green:#0a8d5b;--red:#ce3446;--brown:#89552c;font:14px/1.5 'Segoe UI',Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:10px 16px;color:var(--text);background:#173044;transition:background .15s}button:hover{background:#25455e}button.primary{background:var(--yellow);border-color:var(--yellow);color:#111b25;font-weight:700}button.primary:hover{background:#ffe185}button.subtle{background:transparent}button.danger{background:#5c2430;border-color:#b73b4a}button.small{padding:6px 10px;font-size:12px}button:disabled{opacity:.5;cursor:default}a{color:var(--cyan)}input,select,textarea{width:100%;border:1px solid #355064;border-radius:7px;background:#091a28;padding:10px 12px;color:var(--text)}textarea{resize:vertical;min-height:94px}input[type=checkbox]{width:17px;height:17px;accent-color:var(--yellow)}label{display:block;color:#c7d6e0;font-size:13px}label input,label select,label textarea{margin-top:6px}label.check{display:flex;align-items:center;gap:8px;white-space:nowrap}.check input{margin:0}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.2;letter-spacing:-.6px;margin-bottom:8px}h2{font-size:22px}h3{font-size:16px}p{color:var(--muted)}.muted{color:var(--muted)}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:var(--cyan);margin-bottom:12px}.app-shell{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100vh}.sidebar{background:#0a1927;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;padding:27px 17px;display:flex;flex-direction:column;gap:22px}.logo{background:#fff;border-radius:6px;padding:13px 12px;display:block}.logo img{display:block;width:100%;height:37px;object-fit:contain}.product{margin:10px 6px 0;font-size:11px;letter-spacing:2.4px;color:var(--muted);text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:5px}.nav button{text-align:left;border-color:transparent;background:none;color:var(--muted);display:flex;align-items:center;gap:12px}.nav button.active{color:var(--text);background:#1b3446;border-color:#31526a}.nav-icon{font-size:19px;width:22px;color:var(--cyan)}.sidebar-bottom{margin-top:auto;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:18px}.identity{display:flex;gap:10px;align-items:center;margin-bottom:15px}.avatar{display:grid;place-items:center;background:#25546a;border-radius:50%;width:33px;height:33px;font-weight:700;color:#e0f5ff}.main{padding:30px 32px 22px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.topbar p{margin:0}.actions{display:flex;gap:9px;align-items:center}.pill{border:1px solid #355062;color:var(--muted);border-radius:20px;padding:5px 11px;font-size:11px;white-space:nowrap}.pill.demo{color:#ffdc85;border-color:#795e2b;background:#392d17}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.stat{padding:17px 20px;background:var(--panel);border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;justify-content:space-between}.stat strong{font-size:30px;line-height:1.1}.stat span{font-size:12px;color:var(--muted);display:block;margin-top:4px}.stat .stat-icon{font-size:25px;color:var(--cyan)}.stat:nth-child(3) .stat-icon,.stat:nth-child(4) .stat-icon{color:var(--yellow)}.toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 16px}.week-nav{display:flex;align-items:center;gap:12px}.week-title{min-width:210px;text-align:center}.week-title strong{display:block;font-size:18px}.week-title span{font-size:12px;color:var(--muted)}.filters{display:flex;align-items:center;gap:15px}.filters select{width:160px}.calendar-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#091a28}.calendar{min-width:1000px;display:grid;gap:8px;padding:9px}.cal-head{background:#17364b;display:flex;align-items:center;justify-content:center;min-height:55px;border-radius:5px;text-align:center;font-size:12px;line-height:1.4}.cal-head strong{display:block;text-transform:uppercase;font-size:13px}.cal-head.today{background:var(--yellow);color:#152330}.cal-head.weekend{background:#233343}.person{display:flex;align-items:center;gap:10px;padding:13px 9px;background:#102437;border-radius:5px;min-height:103px}.person .number{color:#6c8c9f;font-size:11px}.person strong{font-size:12px;display:block}.person span.dept{display:block;color:var(--muted);font-size:10px}.cell{min-height:103px;display:flex;flex-direction:column;gap:5px;background:#0d2031;border:1px solid transparent;border-radius:6px;padding:5px}.cell.today{border-color:#b39632;background:#1b2830}.slot{display:grid;grid-template-columns:36% 64%;border-radius:5px;border:1px solid #ffffff1f;min-height:30px;flex:1;text-align:left;padding:0;overflow:hidden;font-size:11px;line-height:1.3}.slot .time{padding:9px 6px;display:flex;align-items:center;justify-content:center;font-weight:650;white-space:nowrap;border-right:1px solid #ffffff30;font-size:10px}.slot .details{padding:7px 9px;min-width:0;display:flex;justify-content:center;flex-direction:column}.slot strong,.slot small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.slot small{font-size:10px;opacity:.86;margin-top:2px}.slot.reserved{background:var(--blue)}.slot.locked{background:var(--green)}.slot.absent{background:var(--red)}.slot.rest{background:var(--brown)}.slot:hover{filter:brightness(1.15)}.cell.count-3 .slot .details,.cell.count-3 .slot .time{padding-top:3px;padding-bottom:3px}.empty-slot{background:transparent;border:1px dashed #284052;color:#6d889d;flex:1;font-size:11px;min-height:40px;padding:8px}.empty-slot:hover{background:#183246}.overflow{font-size:9px;text-align:right;color:var(--muted)}.legend{display:flex;justify-content:space-between;gap:20px;margin-top:17px;flex-wrap:wrap;color:var(--muted);font-size:11px}.legend-item{display:flex;align-items:center;gap:8px}.swatch{height:12px;width:24px;border-radius:3px;display:inline-block}.footnote{font-size:11px;margin:17px 0 0;color:#6b889c}.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-intro{padding:20px 22px;border-bottom:1px solid var(--line)}.panel-intro p{margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-weight:600;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px;background:#12293c}th,td{padding:15px 18px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}td strong{display:block}td small{color:var(--muted)}.status{font-size:11px;border-radius:20px;background:#153e30;color:#8de4b1;padding:4px 9px;display:inline-block}.status.inactive{background:#44303a;color:#e8adb6}.searchbar{display:flex;gap:12px;margin-bottom:18px;align-items:end;flex-wrap:wrap}.searchbar label{flex:1;min-width:140px}.searchbar label:first-child{flex:2}.empty{padding:50px 25px;text-align:center;color:var(--muted)}.timeline{padding:0 22px}.event{padding:21px 0;border-bottom:1px solid var(--line)}.event:last-child{border:0}.event-head{display:flex;justify-content:space-between;gap:20px;font-size:13px}.event-head time{font-size:11px;color:var(--muted)}.event-title{color:var(--muted);font-size:12px;margin:5px 0 10px}.change{display:grid;grid-template-columns:150px 1fr 20px 1fr;gap:10px;padding:5px 0;font-size:12px;overflow-wrap:anywhere}.change .old{color:#a6b5c0;text-decoration:line-through}.auth{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 70% 0,#153d56,transparent 60%)}.auth-card{width:min(440px,100%);padding:36px;background:#102536;border:1px solid #355164;border-radius:16px}.auth-card .logo{margin-bottom:30px}.auth-card label{margin-bottom:17px}.auth-card button{width:100%;margin-top:10px}.auth-card h1{font-size:25px}.auth-note{font-size:12px;margin:22px 0 0}.error{color:#ffb0b0;background:#4a2530;border:1px solid #7d3f4b;padding:10px;border-radius:6px;font-size:13px;margin-bottom:15px}.error:empty{display:none}dialog{color:var(--text);background:#102536;border:1px solid #3a5a70;border-radius:13px;max-width:720px;width:calc(100% - 36px);padding:0;box-shadow:0 25px 90px #0008}dialog::backdrop{background:#030b13bc;backdrop-filter:blur(4px)}.dialog-head{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0;font-size:21px}.dialog-body{padding:23px 27px;max-height:65vh;overflow:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid .full{grid-column:1/-1}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 27px;border-top:1px solid var(--line);background:#0d2030}.meta{font-size:11px;color:var(--muted);margin:18px 0 0;padding-top:15px;border-top:1px solid var(--line)}.meta p{margin:4px 0}.inline-history{margin-top:20px}.inline-history h3{color:var(--cyan)}#toast{position:fixed;right:25px;bottom:25px;background:#153c33;border:1px solid #4b977c;color:white;border-radius:9px;padding:14px 20px;z-index:10;max-width:440px;display:none}#toast.show{display:block}.screen .sidebar{display:none}.screen.app-shell{grid-template-columns:1fr}.screen .main{padding:20px}.screen .person,.screen .cell{min-height:calc((100vh - 340px)/12)}.screen .calendar{min-width:1000px}.screen .topbar h1{font-size:25px}.screen-brand{display:none}.screen .screen-brand{display:block;width:200px;padding:8px;background:white;border-radius:4px}.screen-brand img{width:100%;height:45px;object-fit:contain}.screen .topbar .eyebrow{display:none}.clock{text-align:right;font-size:30px;font-weight:650}.clock small{display:block;font-size:12px;font-weight:400;color:var(--muted)}.screen .stats{margin-bottom:14px}.screen .stat{padding:12px 20px}.screen .toolbar{margin-bottom:12px}.screen .legend{margin-top:11px}.screen .footnote{display:none}.screen .empty-slot{border:0;color:#607f94}.screen .slot{font-size:clamp(10px,.85vw,20px)}.screen .slot .time{font-size:clamp(9px,.7vw,18px)}.screen .slot small{font-size:clamp(9px,.65vw,17px)}.screen .person strong{font-size:clamp(12px,.9vw,23px)}@media(min-width:1800px){.calendar{gap:12px}.person,.cell{min-height:112px}.slot{font-size:14px}.slot .time{font-size:12px}.slot small{font-size:12px}}@media(max-width:1050px){.app-shell{grid-template-columns:175px minmax(0,1fr)}.main{padding:24px 18px}.sidebar{padding:22px 12px}.stats{gap:8px}.stat{padding:13px}.stat .stat-icon{display:none}.filters{flex-wrap:wrap;gap:10px}.topbar{align-items:flex-start}.topbar .actions{flex-wrap:wrap;justify-content:end}}@media(max-width:700px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:13px;gap:12px}.sidebar .logo{width:170px;padding:5px}.sidebar .logo img{height:27px}.product,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow:auto}.nav button{white-space:nowrap;padding:8px;font-size:12px;gap:5px}.nav-icon{font-size:14px;width:auto}.main{padding:20px 12px}.topbar{flex-direction:column;gap:12px}.stats{grid-template-columns:repeat(2,1fr)}h1{font-size:24px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.change{grid-template-columns:95px 1fr 10px 1fr;font-size:11px;gap:5px}.event-head{flex-direction:column;gap:4px}.week-title{min-width:165px}.toolbar{gap:17px}.filters{width:100%}.dialog-body,.dialog-head{padding:20px}.dialog-footer{padding:15px}.clock{font-size:23px}.searchbar label{min-width:120px}}
.swatch.reserved{background:var(--blue)}.swatch.locked{background:var(--green)}.swatch.absent{background:var(--red)}.swatch.rest{background:var(--brown)}.history-heading{margin-top:30px}.screen .main{height:100dvh;display:flex;flex-direction:column}.screen #content{flex:1;display:flex;flex-direction:column;min-height:0}.screen .calendar-wrap{flex:1;min-height:0}.screen .calendar{height:100%}.screen .person,.screen .cell{min-height:0}.screen .slot{min-height:0}.screen .count-3 .slot{font-size:clamp(9px,.75vw,17px)}.screen .count-3 .slot small{font-size:clamp(8px,.6vw,14px)}
.screen .count-3 .slot{font-size:clamp(9px,.6vw,14px);line-height:1.15}.screen .count-3 .slot small{font-size:clamp(8px,.5vw,12px)}.screen .count-3 .slot .time{font-size:clamp(8px,.55vw,14px)}@media(min-width:1800px){.screen .screen-brand{width:300px}.screen-brand img{height:65px}.screen .topbar h1{font-size:42px}.screen .clock{font-size:46px}.screen .clock small{font-size:17px}.screen .stat strong{font-size:42px}.screen .stat span{font-size:17px}.screen .cal-head{font-size:17px}.screen .cal-head strong{font-size:20px}.screen .legend{font-size:16px}.screen .week-title strong{font-size:26px}.screen .week-title span{font-size:17px}.screen .person .dept{font-size:14px}.screen .person .number{font-size:14px}.screen .count-3 .slot{font-size:14px}.screen .count-3 .slot .details{padding-top:2px;padding-bottom:2px}}
.history-help{font-size:12px;margin-bottom:20px}.slot[draggable=true]{cursor:grab}.slot[draggable=true]:active{cursor:grabbing}.cell.drop-target{outline:2px solid var(--cyan);outline-offset:1px;background:#16445b}.slot.drag-source{opacity:.5}.history-help{max-width:1050px}
.team-picker{border:1px solid var(--line);border-radius:8px;padding:15px;min-width:0}.team-picker legend{padding:0 7px;font-weight:600;color:var(--text)}.team-picker p{font-size:12px;margin-bottom:12px}.team-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:210px;overflow:auto}.team-options label{white-space:normal;align-items:flex-start;font-size:12px}.team-options input{flex-shrink:0}.team-options small{color:var(--muted);font-size:10px}.schedule-picker{border:1px solid var(--line);border-radius:8px;padding:15px}.schedule-picker .form-grid{margin-top:17px}[hidden]{display:none!important}@media(max-width:600px){.team-options{grid-template-columns:1fr}}
.bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}.bulk-toolbar span{font-size:12px}.slot.selected{outline:3px solid var(--yellow);outline-offset:0;box-shadow:inset 0 0 0 2px #07131f}.slot.selected .time:before{content:"✓";color:var(--yellow);margin-right:6px}.bulk-field{border:1px solid var(--line);border-radius:8px;padding:14px}.bulk-field>div{margin-top:15px}.batch-preview{color:var(--cyan);font-weight:600;margin:0}.team-options input{margin-top:2px}
.slot.agreed .time{box-shadow:inset 0 0 0 1.5px #ff344e;border-radius:4px;gap:4px}.agreed-clock{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.screen .agreed-clock{width:20px;height:20px}.screen .count-3 .agreed-clock{width:14px;height:14px}
.slot.agreed .time{font-size:9px;padding-left:3px;padding-right:3px;gap:2px}.slot.agreed .agreed-clock{width:10px;height:10px}.seven-days .slot.agreed .time{font-size:7px;padding-left:2px;padding-right:2px}.seven-days .slot.agreed .agreed-clock{width:9px;height:9px}.screen .slot.agreed .time,.screen .seven-days .slot.agreed .time{font-size:clamp(8px,.55vw,17px);padding-left:4px;padding-right:4px;gap:4px}.screen .slot.agreed .agreed-clock,.screen .seven-days .slot.agreed .agreed-clock{width:clamp(9px,.65vw,18px);height:clamp(9px,.65vw,18px)}.screen .count-3 .slot.agreed .time{font-size:clamp(8px,.5vw,14px)}

.local-test-login{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.local-test-login p{font-size:12px;color:var(--muted)}.local-test-login .actions{flex-wrap:wrap}

.auth-card label.remember-login{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:400}.auth-card .remember-login input{width:18px;height:18px;flex:0 0 18px;margin:0}

.dialog-footer .actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}
