@font-face{font-family:Mabry;src:url('fonts/MabryU-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Mabry;src:url('fonts/MabryU-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Mabry;src:url('fonts/MabryU-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{color-scheme:light;--bg:#f5f5f7;--panel:#fff;--text:#1d1d1f;--muted:#68686d;--line:#e5e5ea;--accent:#0066cc;--accent-hover:#0055b3;--soft:#e8f1fc;--green:#217a42;--green-soft:#edf7f0;--warning:#89591b;--warning-soft:#fff5e3;--danger:#b42328;--danger-soft:#fceff0;--purple:#6851a0;--purple-soft:#f0edf9;--glass:#ffffffdb;--shadow:0 2px 8px #00000004,0 0 1px #0000000d;font-family:Mabry,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;font-synthesis:none;-webkit-text-size-adjust:100%}
:root[data-theme=dark]{color-scheme:dark;--bg:#161618;--panel:#222225;--text:#f5f5f7;--muted:#a2a2aa;--line:#38383e;--accent:#69aaff;--accent-hover:#8dbfff;--soft:#25364c;--green:#84d39d;--green-soft:#23392c;--warning:#efc47b;--warning-soft:#3b3224;--danger:#ff969a;--danger-soft:#3b252b;--purple:#c1b1fa;--purple-soft:#322c46;--glass:#222225e8;--shadow:0 2px 8px #0002}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);line-height:1.45}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 15px;background:var(--panel);color:var(--text);cursor:pointer;font-weight:500;line-height:1.3;transition:background .16s,box-shadow .16s}button:hover{background:color-mix(in srgb,var(--text) 4%,var(--panel))}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.48}a,button,input,select{-webkit-tap-highlight-color:transparent}:is(button,a,input,select,textarea):focus-visible{outline:3px solid #007aff80;outline-offset:3px}button svg,a svg{pointer-events:none}.icon{width:20px;height:20px;flex-shrink:0;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:36px;letter-spacing:-1.25px;line-height:1.15;font-weight:700}h2{font-size:19px;letter-spacing:-.35px;font-weight:700}h3{font-size:15px;font-weight:500}.muted{color:var(--muted)}.small{font-size:12px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}:root[data-theme=dark] .primary{color:#101e31}.quiet{border-color:transparent;background:transparent;color:var(--accent)}.icon-button{width:44px;padding:10px;border:0;background:transparent}.skip{position:fixed;top:-100px;left:16px;z-index:99;background:var(--panel);padding:12px}.skip:focus{top:10px}.loading{padding:70px 0;color:var(--muted)}
.preview-bar{height:43px;display:flex;justify-content:space-between;align-items:center;padding:0 36px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px}.preview-label{display:flex;gap:7px;align-items:center}.dot{width:5px;height:5px;background:var(--muted);border-radius:50%;display:inline-block}.preview-controls{display:flex;gap:10px;align-items:center}.preview-controls select{font-size:11px;border:0;background:transparent;color:var(--text);width:auto;min-height:32px;padding:3px 20px 3px 5px}.preview-controls .icon-button{width:32px;min-height:32px;padding:7px}.preview-controls .icon{width:16px;height:16px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:83px;padding:14px 36px;background:var(--glass);border-bottom:1px solid var(--line);backdrop-filter:blur(20px)}.brand{display:flex;align-items:center;gap:12px}.brand-symbol{font-size:37px;letter-spacing:-3px;font-weight:700;line-height:1;padding-right:3px}.brand-title{font-size:17px;font-weight:500;letter-spacing:-.4px}.navigation{display:flex;gap:8px;margin-left:auto}.navigation a{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 17px;min-height:44px;border-radius:11px;color:var(--muted);font-size:13px;font-weight:500}.navigation a.active{background:var(--soft);color:var(--accent)}.navigation a:hover{color:var(--accent)}.navigation .icon{width:18px;height:18px}.profile{border:0;background:transparent;gap:9px;padding:0 0 0 16px;border-radius:0;border-left:1px solid var(--line);font-size:12px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,var(--muted) 12%,var(--panel));font-size:11px;color:var(--muted);flex-shrink:0}.profile-text{max-width:140px}.page{max-width:1400px;margin:0 auto;padding:38px 36px 60px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:29px}.page-head .eyebrow{font-size:12px;color:var(--muted);margin-bottom:11px}.page-head p{color:var(--muted);margin-top:11px;font-size:13px}.head-actions{display:flex;gap:10px;align-items:center}.context-pill{display:inline-flex;gap:9px;align-items:center;color:var(--muted);font-size:12px}.context-pill .icon{width:16px;height:16px}.badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:var(--muted);background:var(--bg);border-radius:7px;padding:5px 9px;white-space:nowrap}.badge.blue{background:var(--soft);color:var(--accent)}.badge.green{background:var(--green-soft);color:var(--green)}.badge.amber{background:var(--warning-soft);color:var(--warning)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 24px 17px}.panel-head .quiet{font-size:12px;min-height:32px;padding:5px 0}.panel-body{padding:0 24px 24px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:20px}.focus-card{padding:28px 30px;position:relative;overflow:hidden;display:flex;min-height:220px;flex-direction:column;align-items:flex-start;background:var(--panel)}.focus-top{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);margin-bottom:23px}.focus-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:var(--soft);color:var(--accent)}.focus-card h2{font-size:25px;letter-spacing:-.7px;max-width:420px;line-height:1.22;margin-bottom:10px}.focus-card p{color:var(--muted);max-width:430px;font-size:13px;line-height:1.65;margin-bottom:24px}.focus-card .primary{margin-top:auto}.focus-art{position:absolute;right:32px;top:38px;width:112px;height:128px;opacity:.8;border-radius:16px;background:var(--bg);border:1px solid var(--line);transform:rotate(8deg);display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:38px 13px 14px;pointer-events:none}.focus-art:before{content:'ОКТЯБРЬ';position:absolute;left:15px;top:13px;font-size:9px;letter-spacing:1px;color:var(--muted)}.focus-art i{border-radius:4px;background:var(--line)}.focus-art i:nth-child(3n+2){background:var(--soft)}.focus-copy{position:relative;z-index:1;padding-right:125px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:20px}.metric{padding:22px 25px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric .label{font-size:12px;color:var(--muted);margin-bottom:10px}.metric .value{font-size:29px;letter-spacing:-1px;line-height:1.2}.metric .sub{margin-top:7px;font-size:11px;color:var(--muted)}.row{display:flex;align-items:center;gap:12px;padding:17px 0;border-top:1px solid var(--line);min-width:0}.row:first-child{border:0}.row .grow{flex:1;min-width:0}.row .title{font-size:13px;font-weight:500;line-height:1.45}.row .detail{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}.row .end{color:var(--muted);font-size:12px;margin-left:auto;white-space:nowrap}.row .chevron{width:16px;color:var(--muted)}button.row{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;text-align:left;width:100%;justify-content:flex-start;padding:17px 0;font-weight:400}.row-icon{width:36px;height:36px;border-radius:10px;background:var(--bg);display:grid;place-items:center;color:var(--muted);flex-shrink:0}.timeline-time{font-size:12px;color:var(--muted);min-width:40px}.timeline-now{color:var(--accent)}.task-check{width:22px;min-height:22px;padding:0;border-radius:50%;flex-shrink:0}.task-check.done{background:var(--green-soft);border-color:var(--green);color:var(--green)}.task-check .icon{width:14px;height:14px}.task-done .title{text-decoration:line-through;color:var(--muted)}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.module-card{padding:24px;text-align:left;display:flex;align-items:flex-start;flex-direction:column;border-radius:16px;min-height:155px;position:relative}.module-card .row-icon{color:var(--accent);background:var(--soft);margin-bottom:17px}.module-card h2{font-size:17px}.module-card p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.55}.module-card .arrow{position:absolute;right:21px;top:28px;color:var(--muted);width:16px}.section-label{font-size:12px;color:var(--muted);margin:28px 0 13px}.empty{padding:45px 22px;text-align:center;color:var(--muted);font-size:13px}.empty .icon{display:block;margin:0 auto 16px;width:28px;height:28px}.empty h2{color:var(--text);margin-bottom:9px}.empty button{margin-top:20px}.wide-list{max-width:820px}.note{font-size:12px;color:var(--muted);line-height:1.65;margin-top:15px}.notice{padding:14px 17px;background:var(--warning-soft);color:var(--warning);font-size:12px;line-height:1.65;border-radius:11px;display:flex;gap:10px;align-items:flex-start}.notice .icon{width:18px;height:18px;margin-top:1px}.notice.neutral{background:var(--bg);color:var(--muted)}
.schedule-head{margin-bottom:22px}.schedule-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.toolbar-group{display:flex;align-items:center;gap:12px}.segmented{display:inline-flex;padding:3px;background:color-mix(in srgb,var(--muted) 10%,var(--bg));border-radius:10px;gap:2px}.segmented button{border:0;background:transparent;min-height:32px;padding:6px 15px;font-size:12px;border-radius:8px;color:var(--muted)}.segmented button.selected{background:var(--panel);color:var(--text);box-shadow:0 1px 4px #00000010}.week-label{font-size:13px;font-weight:500}.schedule-table-wrap{overflow:auto;max-height:690px;border-radius:16px}.schedule-table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;font-size:12px}.schedule-table th,.schedule-table td{border-bottom:1px solid var(--line);border-right:1px solid var(--line)}.schedule-table th:last-child,.schedule-table td:last-child{border-right:0}.schedule-table tr:last-child td{border-bottom:0}.schedule-table th{background:var(--panel);font-weight:400;height:69px;text-align:center;padding:12px 8px;position:sticky;top:0;z-index:2}.schedule-table th:first-child{width:210px;text-align:left;padding-left:22px;left:0;z-index:4}.schedule-table .daynum{font-size:18px;display:block;color:var(--text);font-weight:500;margin-top:4px}.schedule-table .daynum.current{color:var(--accent)}.schedule-table .dayname{color:var(--muted);font-size:11px}.schedule-table td{padding:7px 6px;height:68px;background:var(--panel);vertical-align:middle}.schedule-table td:first-child{padding:12px 15px 12px 22px;position:sticky;left:0;z-index:1}.schedule-table .employee{display:flex;align-items:center;gap:10px}.employee .avatar{width:30px;height:30px;font-size:10px}.employee strong{display:block;font-size:12px;font-weight:500;line-height:1.4}.employee small{font-size:10px;color:var(--muted);margin-top:3px;display:block}.shift{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:50px;padding:9px 10px;border:0;border-radius:8px;background:var(--bg);color:var(--text);text-align:left;font-size:11px;line-height:1.25}.shift:hover{box-shadow:inset 0 0 0 1px currentColor}.shift strong{font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}.shift small{font-size:9px;opacity:.85}.free-cell{width:100%;border:0;background:transparent;color:var(--muted);font-size:20px;min-height:50px;opacity:0}.schedule-table td:hover .free-cell,.free-cell:focus-visible{opacity:1}.free-cell.readonly{opacity:.25;font-size:12px}.schedule-table .outside{background:var(--bg);color:var(--muted);font-size:11px;text-align:center}.schedule-table .weekend{background:color-mix(in srgb,var(--bg) 55%,var(--panel))}.schedule-table .hourscol{width:65px;border-right:0;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}.schedule-table.month{width:3300px}.schedule-table.month th:first-child{width:210px}.schedule-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.schedule-summary .source-link{margin-left:auto;color:var(--accent)}.schedule-bottom{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:20px}.coverage-chart{display:flex;align-items:flex-end;height:100px;gap:5px;border-bottom:1px solid var(--line);padding-top:12px}.bar-wrap{flex:1;display:flex;justify-content:flex-end;flex-direction:column;align-items:center;position:relative;height:100%;min-width:0}.bar{width:100%;max-width:20px;background:var(--soft);border-top:2px solid var(--accent);border-radius:4px 4px 0 0;min-height:2px}.bar.short{background:var(--warning-soft);border-top-color:var(--warning)}.bar-value{font-size:9px;color:var(--muted);margin-bottom:5px}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:9px}.coverage-select{border:0;background:var(--bg);color:var(--text);border-radius:8px;padding:7px 10px;min-height:34px;font-size:12px}.checks{display:grid;gap:14px}.checkline{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:var(--muted);line-height:1.55}.checkline .icon{width:16px;height:16px;color:var(--green);margin-top:1px}.checkline.warning .icon{color:var(--warning)}.mobile-schedule{display:none}.date-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:22px 0}.date-button{border:0;display:flex;flex-direction:column;gap:6px;background:transparent;padding:9px 2px;min-height:65px;border-radius:12px;color:var(--muted);font-size:11px}.date-button strong{font-size:18px;font-weight:500;color:var(--text)}.date-button.selected{background:var(--accent);color:white}.date-button.selected strong{color:white}.shift-card{padding:24px;border-radius:16px;background:var(--panel);border:1px solid var(--line)}.shift-card .shift-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px}.shift-time{font-size:37px;letter-spacing:-1.5px;line-height:1.2;margin-bottom:10px}.shift-card h2{font-size:18px}.shift-card .hours-explanation{display:flex;justify-content:space-between;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.shift-card .quiet{margin-top:22px;padding-inline:0}.wish-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wish-options button{font-size:12px;min-height:56px}.wish-options button.selected{color:var(--accent);border-color:var(--accent);background:var(--soft)}
dialog{padding:0;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--text);box-shadow:0 24px 100px #0003}dialog::backdrop{background:#1d1d1f55;backdrop-filter:blur(5px)}.modal-header{padding:24px 26px 18px;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.modal-header h2{font-size:23px;line-height:1.25;margin-top:3px}.modal-header .icon-button{margin:-5px -9px 0 0;flex-shrink:0;color:var(--muted)}.modal-body{padding:0 26px 24px}.modal-description{color:var(--muted);font-size:12px;line-height:1.65;margin-bottom:22px}.field{display:block;margin-bottom:17px;font-size:12px;font-weight:500}.field>span{display:block;margin-bottom:8px}.field input,.field select,.field textarea{border:1px solid var(--line);background:var(--bg);color:var(--text);width:100%;min-height:44px;border-radius:10px;padding:11px 12px;font-size:16px;font-weight:400}.field textarea{resize:vertical;min-height:75px}.field small{display:block;color:var(--muted);font-size:11px;font-weight:400;line-height:1.6;margin-top:7px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.type-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:22px}.type-options button{font-size:12px;padding:11px 5px}.type-options button.selected{background:var(--soft);color:var(--accent);border-color:var(--accent)}.pay-preview{border-radius:12px;background:var(--bg);padding:16px;font-size:12px;margin:4px 0 18px}.pay-preview strong{font-size:21px;letter-spacing:-.4px;font-weight:500;display:block;margin-bottom:5px}.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:23px;padding-top:20px;border-top:1px solid var(--line)}.modal-actions .danger{margin-right:auto;color:var(--danger);border:0;padding-left:0;background:transparent}.error-message{font-size:12px;line-height:1.6;color:var(--danger);margin:12px 0}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;border-top:1px solid var(--line);padding:17px 0}.toggle-row input{accent-color:var(--accent);width:22px;height:22px;flex-shrink:0}.toggle-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px;line-height:1.6}.settings-types{border:1px solid var(--line);border-radius:12px;padding:0 16px;margin-bottom:20px}.settings-types .row{gap:12px}.settings-types .field{margin:0;flex:1}.settings-types .field input{font-size:14px;padding:8px 9px}.settings-types .type-name{width:70px;font-size:12px;flex-shrink:0}.settings-caption{display:flex;gap:12px;margin:8px 0;color:var(--muted);font-size:10px}.settings-caption span:first-child{width:70px;flex-shrink:0}.settings-caption span:not(:first-child){flex:1}.coverage-config{width:100%;border-collapse:collapse;font-size:11px}.coverage-config td,.coverage-config th{border-bottom:1px solid var(--line);padding:8px 4px;text-align:center}.coverage-config td:first-child{text-align:left;white-space:nowrap}.coverage-config input{width:45px;padding:6px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);font-size:16px}.reason-check{display:flex;align-items:flex-start;gap:10px;margin-top:18px;font-size:12px;line-height:1.6}.reason-check input{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}.review-count{font-size:32px;letter-spacing:-1px;margin-bottom:8px}.history-list .row{align-items:flex-start}.history-list .title{font-size:12px}.history-list .detail{font-size:11px}#toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:var(--text);color:var(--panel);padding:13px 21px;border-radius:13px;font-size:13px;box-shadow:0 8px 32px #0002;z-index:99;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 32px);width:max-content;max-width:360px}#toast.visible{opacity:1;transform:translate(-50%,0)}.prototype-footer{margin-top:26px;font-size:11px;line-height:1.7;color:var(--muted);display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.prototype-footer a{color:var(--accent)}
@media(min-width:1600px){.page{padding-top:46px}.app-header,.preview-bar{padding-inline:max(36px,calc((100vw - 1328px)/2))}}
@media(max-width:1150px){.profile-text{display:none}.page{padding-inline:24px}.app-header,.preview-bar{padding-inline:24px}.dashboard-grid{grid-template-columns:1.4fr 1fr}.focus-copy{padding-right:85px}.focus-art{right:18px;width:90px;height:112px}.schedule-table{min-width:1020px}.schedule-table th:first-child{width:190px}.navigation a{padding-inline:13px}.focus-card{padding:26px}.metric{padding:21px}}
@media(max-width:760px){h1{font-size:31px;letter-spacing:-1px}.preview-bar{height:43px;padding-inline:16px}.preview-note,.role-label{display:none}.preview-controls{gap:3px}.preview-controls select{font-size:12px!important;min-height:38px;padding-right:4px}.app-header{padding:12px 20px;min-height:69px;background:var(--bg);border-bottom:0;backdrop-filter:none}.brand-symbol{font-size:33px}.brand-title{font-size:16px}.brand{gap:10px}.profile{border:0;padding:0}.avatar{width:32px;height:32px}.navigation{position:fixed;inset:auto 12px 13px;z-index:15;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid color-mix(in srgb,var(--line) 70%,transparent);background:var(--glass);box-shadow:0 5px 24px #0000000d;backdrop-filter:blur(25px);border-radius:25px;padding:5px 7px calc(5px + env(safe-area-inset-bottom));gap:0}.navigation a{padding:8px 5px;flex-direction:column;gap:4px;font-size:10px;border-radius:19px;min-height:54px}.navigation a.active{background:var(--soft)}.navigation .icon{width:21px;height:21px}.page{padding:21px 20px 105px}.page-head{align-items:flex-start;margin-bottom:24px;gap:15px}.page-head .eyebrow{font-size:11px;margin-bottom:9px}.page-head p{font-size:12px;line-height:1.6;margin-top:9px}.page-head .head-actions{display:none}.page-head h1{overflow-wrap:anywhere}.dashboard-grid,.lower-grid,.schedule-bottom{grid-template-columns:1fr;gap:17px}.focus-card{padding:23px;min-height:235px}.focus-copy{padding-right:0}.focus-card h2{font-size:24px;max-width:260px}.focus-art{display:none}.focus-card p{font-size:12px;margin-bottom:20px}.focus-top{margin-bottom:20px}.metrics{margin-top:17px}.metric{padding:19px 15px}.metric .label{font-size:11px;margin-bottom:9px}.metric .value{font-size:25px}.metric .sub{font-size:10px;line-height:1.5}.panel-head{padding:21px 20px 15px}.panel-body{padding:0 20px 20px}.lower-grid{margin-top:17px}.dashboard-grid>.right-column{margin-top:0}.panel h2{font-size:17px}.focus-card h2{font-size:24px}.module-grid{grid-template-columns:1fr 1fr;gap:12px}.module-card{padding:20px 17px;min-height:156px}.module-card h2{font-size:15px;line-height:1.3}.module-card p{font-size:11px}.module-card .row-icon{width:33px;height:33px;margin-bottom:14px}.module-card .arrow{top:27px;right:17px;width:14px}.schedule-toolbar{flex-wrap:wrap;gap:14px}.schedule-table-panel,.desktop-schedule-tools{display:none}.mobile-schedule{display:block}.schedule-bottom{margin-top:17px}.coverage-chart{height:85px}.schedule-head{margin-bottom:15px}.schedule-summary{font-size:10px}.notice{font-size:12px;padding:14px}.shift-time{font-size:34px}.modal-header{padding:22px 20px 17px}.modal-body{padding:0 20px 22px}dialog{max-height:calc(100dvh - 30px);border-radius:20px}.modal-header h2{font-size:21px}.type-options button{font-size:11px}.field-pair{gap:10px}.settings-types{padding-inline:10px}.settings-types .row{gap:7px}.settings-types .type-name{width:64px}.settings-types .field input{font-size:16px;padding:8px 5px}.settings-caption span:first-child{width:64px}.settings-caption{gap:7px}.settings-types .row .field{min-width:0}.settings-types .row .field input{width:100%}.coverage-config input{width:39px}.coverage-config td,.coverage-config th{padding:8px 2px}.prototype-footer{font-size:10px}.prototype-footer>span:last-child{display:none}#toast{bottom:102px}.schedule-edit-help{display:block;font-size:11px;color:var(--muted);margin:12px 0 20px;line-height:1.6}.date-strip{margin-top:17px}.schedule-toolbar .toolbar-group{width:100%;justify-content:space-between}.wide-list{max-width:none}}
@media(min-width:761px){.schedule-edit-help{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.schedule-table button.employee{padding:0;border:0;background:transparent;text-align:left;justify-content:flex-start;width:100%;color:var(--text)}
.source-link{display:inline-flex;align-items:center;gap:4px}.source-link .icon{width:13px;height:13px}
/* Двухнедельное планирование и календарь пожеланий. */
.flip{transform:rotate(180deg)}
.period-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.period-pager strong{font-size:14px;font-weight:500;line-height:1.4;text-align:center}.period-pager .icon-button{flex-shrink:0;color:var(--muted)}
.schedule-toolbar .period-pager{min-width:305px}.schedule-table.fortnight{min-width:1360px}.schedule-table.fortnight th:first-child{width:184px}.schedule-table.fortnight .hourscol{width:62px}.schedule-table.fortnight td{padding:6px 4px}.schedule-table.fortnight td:first-child{padding-left:16px}.schedule-table.fortnight .shift{padding:8px 5px}.schedule-table.fortnight .shift strong{font-size:11px}.schedule-table.fortnight .shift small{font-size:9px}.schedule-table .week-boundary{border-left:2px solid color-mix(in srgb,var(--muted) 30%,var(--line))}.schedule-table .unfilled{opacity:.25;font-size:16px}.schedule-table td:hover .unfilled{opacity:1}.schedule-table .employee .avatar{width:28px;height:28px}.schedule-table .employee{gap:8px}.schedule-table .employee strong{font-size:11px}
.personal-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:-2px;margin-bottom:15px}.personal-wishes-link{font-size:12px}.personal-pager{max-width:560px;margin:8px 0 16px}.personal-page>.date-strip{max-width:740px}.personal-month{padding:20px;margin:17px 0 23px}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;color:var(--muted);font-size:11px;padding:0 0 10px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.month-day{border:1px solid transparent;min-height:92px;border-radius:11px;flex-direction:column;gap:6px;padding:12px 5px;background:var(--bg);font-weight:400}.month-day strong{font-size:18px;font-weight:500}.month-day span{font-size:11px;color:var(--muted)}.month-day small{font-size:11px;color:var(--muted)}.month-day.has-shift{background:var(--bg)}.month-day.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.month-day.outside-month{opacity:.4}.personal-details{margin-top:22px}
.wishes-page{max-width:1100px}.wish-editor{padding:26px 30px}.wish-editor-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.wish-editor-head .period-pager{min-width:300px}.wish-intro{max-width:600px;color:var(--muted);font-size:13px;line-height:1.7;margin:16px 0 20px}.wish-selection-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 22px}.wish-selection-tools>span{font-size:11px;color:var(--muted);margin-right:3px}.wish-selection-tools button{font-size:11px;padding:7px 10px;min-height:34px;border-radius:8px}.wish-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:22px}.wish-date{min-height:99px;position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 13px;border:1px solid var(--line);background:var(--bg);border-radius:12px;font-weight:400}.wish-number{display:flex;align-items:baseline;gap:4px;font-size:22px;font-weight:500}.wish-number small{font-size:10px;font-weight:400;color:var(--muted)}.wish-value{font-size:11px;color:var(--muted)}.wish-date.work .wish-value{color:var(--accent)}.wish-date.unavailable .wish-value{color:var(--warning)}.wish-date.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--soft)}.wish-date .selection-check{position:absolute;right:9px;top:10px;width:14px;height:14px;color:var(--accent)}.wish-date:disabled{opacity:1;cursor:default}.wish-apply{border-top:1px solid var(--line);padding:18px 0 17px}.wish-apply-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.wish-apply-title strong{font-size:12px;font-weight:500}.wish-apply-title button{padding:4px 0;min-height:32px;font-size:11px}.wish-apply .wish-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.wish-apply .wish-options button{font-size:12px;min-height:49px;padding:10px 8px}.undo-wishes{font-size:11px;margin:9px 0 -5px;padding-left:0;min-height:36px}.undo-wishes .icon{width:15px;height:15px}.wish-send-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:20px;border-top:1px solid var(--line)}.wish-send-row strong{font-size:13px;font-weight:500}.wish-send-row .note{font-size:11px;margin-top:5px}.wish-send-row>.primary{flex-shrink:0}.wish-footer-note{max-width:700px}
@media(max-width:760px){.schedule-toolbar .period-pager{width:100%;min-width:0}.schedule-toolbar>.toolbar-group:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px}.schedule-toolbar .badge{font-size:10px}.period-pager strong{font-size:12px}.period-pager{gap:3px}.period-pager .icon-button{width:34px;padding:7px}.date-strip .date-button{min-height:61px;gap:4px}.date-strip .date-button small{font-size:9px}.personal-toolbar{margin-bottom:7px}.personal-pager{margin-bottom:12px}.personal-toolbar .segmented button{font-size:12px;min-height:36px;padding-inline:14px}.personal-wishes-link{padding-inline:0;font-size:11px}.personal-wishes-link .icon{width:17px}.personal-month{padding:13px 10px;margin:13px 0 20px}.month-grid{gap:4px}.month-day{min-height:65px;gap:4px;border-radius:9px;padding:8px 1px}.month-day strong{font-size:16px}.month-day span{font-size:9px}.month-day small{display:none}.calendar-weekdays{font-size:10px;padding-bottom:9px}.personal-details{margin-top:19px}.wish-editor{padding:18px 14px;border-radius:16px}.wish-editor-head{flex-direction:column;align-items:stretch;gap:10px}.wish-editor-head .period-pager{min-width:0}.wish-editor-head>.badge{align-self:flex-start;margin-left:3px}.wish-intro{font-size:12px;margin:14px 3px 16px;line-height:1.65}.wish-selection-tools{gap:6px;margin-bottom:19px}.wish-selection-tools>span{display:none}.wish-selection-tools button{font-size:10px;min-height:36px;padding:7px 9px}.wish-calendar{gap:4px;margin-bottom:17px}.wish-date{min-height:76px;border-radius:9px;padding:10px 4px;align-items:center;gap:8px}.wish-number{font-size:18px;display:flex;flex-direction:column;align-items:center;gap:0;line-height:1.15}.wish-number small{font-size:8px;margin-top:3px}.wish-value{font-size:9px;white-space:nowrap}.wish-date .selection-check{width:10px;height:10px;right:3px;top:4px}.wish-apply{padding:13px 0}.wish-apply-title{gap:5px;margin-bottom:10px}.wish-apply-title strong{font-size:11px}.wish-apply-title button{font-size:10px}.wish-apply .wish-options{grid-template-columns:1fr 1fr;gap:8px}.wish-apply .wish-options button{font-size:11px;min-height:44px}.undo-wishes{font-size:10px;margin-top:6px}.wish-send-row{align-items:stretch;flex-direction:column;gap:13px;padding-top:17px}.wish-send-row strong{font-size:12px}.wish-send-row .note{font-size:10px}.wish-send-row>.primary{width:100%;min-height:46px}.wishes-page .page-head{margin-bottom:20px}.wishes-page h1{font-size:30px}.wish-footer-note{font-size:11px}}

.schedule-table.fortnight{min-width:1320px}.schedule-table.fortnight .shift{gap:3px}.schedule-table.fortnight .shift strong{font-size:12px}.schedule-table.fortnight .shift small{font-size:10px}.schedule-table.fortnight .employee strong{font-size:12px}

/* Один календарь сотрудника: выбор дня, смены и итог часов. */
.personal-calendar{padding:20px 22px 22px;margin-top:18px}.personal-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.personal-calendar-head .personal-pager{margin:0;flex:1;max-width:560px}.calendar-total{display:flex;align-items:baseline;gap:7px;flex-shrink:0;background:var(--bg);border-radius:9px;padding:10px 13px}.calendar-total strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}.calendar-total span{font-size:11px;color:var(--muted)}.personal-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.personal-week-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-height:152px;padding:15px 7px 13px;border-radius:12px;border:1px solid transparent;background:var(--bg);font-weight:400;min-width:0}.personal-week-day:hover{background:color-mix(in srgb,var(--text) 5%,var(--panel))}.personal-week-day.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--soft)}.week-day-name{font-size:11px;color:var(--muted)}.week-day-number{font-size:23px;font-weight:500;line-height:1.2;display:flex;align-items:baseline;gap:5px}.week-day-number small{font-size:10px;color:var(--muted);font-weight:400}.week-shift-time{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:35px;margin-top:5px;font-size:14px;font-weight:500;line-height:1.4;font-variant-numeric:tabular-nums}.week-shift-hours{font-size:11px;color:var(--muted);margin-top:auto;line-height:1.4}.personal-selected-shift{max-width:760px;margin-top:22px}.personal-calendar .personal-month{padding:0;margin:0}.personal-selected-shift .shift-card{padding:27px 28px}.personal-selected-shift .shift-time{font-size:35px}.personal-selected-shift .shift-card-top{margin-bottom:20px}
@media(max-width:760px){.personal-calendar{padding:15px 10px 12px;margin-top:14px}.personal-calendar-head{gap:11px;flex-wrap:wrap;margin-bottom:13px;padding-inline:1px}.personal-calendar-head .personal-pager{flex-basis:100%;max-width:none}.calendar-total{margin-left:auto;padding:6px 9px;gap:5px;border-radius:7px}.calendar-total strong{font-size:12px}.calendar-total span{font-size:10px}.personal-week-grid{gap:4px}.personal-week-day{min-height:130px;padding:11px 2px 9px;gap:6px;border-radius:9px}.week-day-name{font-size:9px}.week-day-number{font-size:18px;flex-direction:column;align-items:center;gap:2px;min-height:25px}.week-day-number small{font-size:8px}.week-shift-time{font-size:9px;min-height:30px;line-height:1.4;gap:2px;margin-top:4px}.week-shift-hours{font-size:8px;line-height:1.4;min-height:22px;display:flex;align-items:flex-end;justify-content:center}.personal-selected-shift{margin-top:17px;max-width:none}.personal-selected-shift .shift-card{padding:23px 21px}.personal-selected-shift .shift-time{font-size:30px}.personal-selected-shift .shift-card-top{margin-bottom:22px}.personal-calendar .personal-month{margin:0;padding:0}}

@media(max-width:760px){.personal-week-day{min-height:146px;padding-inline:2px}.week-day-name{font-size:10px}.week-day-number{font-size:19px}.week-shift-time{font-size:12px;line-height:1.3;max-width:100%;min-height:40px}.week-shift-time>span{max-width:100%}.week-shift-hours{font-size:10px;min-height:27px}}

@media(max-width:760px){.week-shift-time{font-size:11px}.week-shift-time .short-time{white-space:nowrap}}

/* Желаемая смена для выбранной группы дней. */
.wish-time{display:block;font-size:10px;margin-top:4px;white-space:nowrap;font-variant-numeric:tabular-nums}.wish-apply .wish-options button{flex-direction:column;gap:4px}.wish-options button small{font-size:10px;color:var(--muted);font-weight:400}.wish-time-options{display:grid;gap:8px;margin-bottom:20px}.wish-time-option{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:13px 15px;background:var(--bg);cursor:pointer}.wish-time-option:has(input:checked){background:var(--soft);border-color:var(--accent)}.wish-time-option input{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0}.wish-time-option span{display:flex;flex:1;justify-content:space-between;align-items:center;gap:15px}.wish-time-option strong{font-size:14px;font-weight:500}.wish-time-option small{font-size:12px;color:var(--muted)}#wish-start,#wish-end{font-size:16px}
@media(max-width:760px){.wish-date{min-height:87px}.wish-time{font-size:8px;letter-spacing:-.2px}.wish-time-option{padding:12px}.wish-time-option span{align-items:flex-start;flex-direction:column;gap:5px}.wish-time-option strong{font-size:14px}.wish-time-option small{font-size:12px}.wish-options button small{font-size:10px}}

/* Рабочие позиции: одна зона на смену. */
.schedule-view-switch{margin:0 0 20px}.shift-zone-label{color:inherit;border-top:1px solid color-mix(in srgb,var(--text) 10%,transparent);padding-top:3px;margin-top:2px}.zone-calendar{padding:20px 22px;margin-bottom:26px}.zone-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.zone-calendar-head .period-pager{max-width:560px;flex:1}.zone-days{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:6px}.zone-day{background:var(--bg);border-color:transparent;flex-direction:column;min-width:0;padding:11px 3px;gap:6px;font-weight:400}.zone-day>span{color:var(--muted);font-size:10px}.zone-day>strong{font-size:20px;font-weight:500;min-height:26px;display:flex;align-items:baseline;gap:3px}.zone-day small{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.zone-day strong small{font-size:8px}.zone-day.selected{background:var(--soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.zone-day-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.zone-day-heading h2{font-size:22px}.zone-unassigned{margin-bottom:24px}.zone-unassigned .panel-head{padding-bottom:14px}.zone-help{font-size:12px;color:var(--muted);padding:0 23px 15px}.zone-unassigned-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px;padding:0 22px 12px}.zone-person{display:flex;width:100%;justify-content:flex-start;min-width:0;text-align:left;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0;gap:10px}.zone-person .grow{min-width:0;flex:1}.zone-person strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.zone-person small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:4px}.zone-person .avatar{font-size:11px;width:31px;height:31px;flex-shrink:0}.zone-person .chevron{width:15px;color:var(--muted)}.zone-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}.zone-column{padding:20px 18px 8px;min-height:160px}.zone-column-head{display:flex;align-items:center;gap:10px;margin-bottom:16px}.zone-column-head h2{font-size:17px;flex:1}.zone-column-head .row-icon{width:33px;height:33px;border-radius:9px}.zone-column-head .icon{width:18px;height:18px}.zone-column-head .badge{font-size:11px;padding:5px 7px}.zone-column .zone-person .avatar{display:none}.zone-empty{font-size:12px;color:var(--muted);padding:5px 0 25px}.zone-all-done{display:flex;align-items:center;gap:9px;color:var(--green);padding:0 24px 22px;font-size:12px}.zone-footer-note{max-width:800px;margin-top:22px}.zone-choice-list{display:grid;gap:8px;margin-bottom:23px}.shift-work-zone{display:flex;gap:11px;align-items:center;margin:24px 0 0}.shift-work-zone>span{width:38px;height:38px;display:flex;justify-content:center;align-items:center;background:var(--bg);border-radius:10px;color:var(--muted)}.shift-work-zone small{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.shift-work-zone strong{font-size:15px;font-weight:500}.zones-page .empty>button{margin-top:20px}
@media(max-width:1100px){.zone-board{grid-template-columns:repeat(2,minmax(0,1fr))}.zone-days{grid-template-columns:repeat(7,minmax(0,1fr))}.zone-unassigned-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.schedule-view-switch{margin:0 0 18px}.schedule-view-switch button{min-height:40px;padding:9px 16px;font-size:12px}.zone-calendar{padding:15px 11px;margin-bottom:22px}.zone-calendar-head{margin-bottom:14px}.zone-calendar-head>span{display:none}.zone-calendar-head .period-pager{min-width:0}.zone-days{gap:4px}.zone-day{padding:10px 1px;gap:5px;min-height:86px;border-radius:9px}.zone-day>strong{font-size:18px;flex-direction:column;align-items:center;gap:0}.zone-day small{font-size:9px}.zone-day strong small{font-size:7px}.zone-day-heading{align-items:flex-start}.zone-day-heading h2{font-size:19px}.zone-day-heading .badge{font-size:10px;flex-shrink:0}.zone-unassigned-list{grid-template-columns:1fr;padding:0 19px 9px}.zone-help{padding-inline:19px;font-size:12px}.zone-person{padding:15px 0}.zone-person strong{font-size:13px}.zone-person small{font-size:12px}.zone-board{gap:11px}.zone-column{padding:16px 13px 3px;min-height:135px}.zone-column-head{gap:7px;flex-wrap:wrap;margin-bottom:12px}.zone-column-head h2{font-size:15px}.zone-column-head .row-icon{width:27px;height:27px}.zone-column-head .badge{font-size:10px;padding:4px 6px}.zone-column .zone-person{gap:3px}.zone-column .zone-person strong{font-size:12px}.zone-column .zone-person small{font-size:10px}.zone-column .zone-person .chevron{display:none}.zone-empty{font-size:11px;padding-bottom:22px}.zone-footer-note{font-size:11px}.shift-work-zone{margin-top:21px}}

/* Главный экран управляющего без боковой карточки ритма точки. */
.dashboard-grid.manager-dashboard{grid-template-columns:minmax(0,1fr)}

.zone-example-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;line-height:1.6;margin:-8px 0 20px}.zone-example-note .icon{width:17px;height:17px;flex-shrink:0}

/* Цвет сообщает рабочую зону; тип смены остаётся нейтральной подписью. */
.zone-cash{--zone-ink:var(--accent);--zone-bg:var(--soft)}.zone-machine{--zone-ink:var(--purple);--zone-bg:var(--purple-soft)}.zone-back{--zone-ink:var(--green);--zone-bg:var(--green-soft)}.zone-floor{--zone-ink:var(--warning);--zone-bg:var(--warning-soft)}.zone-none{--zone-ink:var(--muted);--zone-bg:var(--bg)}
.shift.zone-tone,.shift.zone-tone:hover{background:var(--zone-bg);color:var(--zone-ink)}.shift .shift-zone-label{font-weight:500;opacity:1}.zone-mark{background:var(--zone-bg);color:var(--zone-ink)}.zone-chip{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:5px 8px;font-size:11px;background:var(--zone-bg);color:var(--zone-ink);white-space:nowrap}.shift-mobile-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex-shrink:0}.shift-mobile-meta>small{font-size:11px;color:var(--muted)}
.zone-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 17px;font-size:11px;color:var(--muted)}.zone-legend-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.zone-legend-item i{width:10px;height:10px;border-radius:3px;background:var(--zone-bg);border:1px solid var(--zone-ink)}.personal-calendar>.zone-legend{margin-top:17px;border-top:1px solid var(--line);padding-top:15px}
.personal-week-day.has-shift{background:var(--zone-bg)}.personal-week-day.has-shift:hover{background:var(--zone-bg);box-shadow:inset 0 0 0 1px var(--zone-ink)}.personal-week-day .week-shift-time,.personal-week-day .week-zone-name{color:var(--zone-ink,var(--text))}.week-zone-name{font-size:11px;font-weight:500;line-height:1.4;min-height:15px}.personal-week-day.selected,.personal-week-day.selected:hover{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text);background:var(--zone-bg,var(--bg))}
.month-day.has-shift{background:var(--zone-bg)}.month-day .month-zone-name{color:var(--zone-ink,var(--muted));font-weight:500}.month-day.selected{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}.month-day small{line-height:1.5}.shift-work-zone>span{background:var(--zone-bg);color:var(--zone-ink)}.shift-work-zone strong{color:var(--zone-ink)}
.zone-column.zone-tone{border-top:3px solid var(--zone-ink)}.zone-choice-list .zone-choice-title{display:flex;align-items:center;gap:8px}.zone-choice-title:before{content:'';width:10px;height:10px;border-radius:3px;background:var(--zone-bg);border:1px solid var(--zone-ink);flex-shrink:0}.zone-choice-list .wish-time-option:has(input:checked){background:var(--zone-bg);border-color:var(--zone-ink)}.zone-choice-list input{accent-color:var(--zone-ink)}
@media(max-width:760px){.week-zone-name{font-size:9px;min-height:13px}.personal-week-day{min-height:162px}.personal-calendar>.zone-legend{gap:9px 12px;font-size:10px;padding-top:12px;margin-top:13px}.zone-chip{font-size:10px;padding:5px 7px}.month-day .month-zone-name{font-size:9px}}

.shift small:not(.shift-zone-label){color:var(--muted);opacity:1}

/* Компактная шапка планирования: две строки вместо отдельных уровней. */
@media(min-width:761px){.preview-bar{height:30px;font-size:10px}.preview-controls select{min-height:26px;font-size:10px}.preview-controls .icon-button{width:27px;min-height:26px;padding:5px}.app-header{min-height:64px;padding-block:8px;gap:18px}.brand-symbol{font-size:31px}.brand-title{font-size:15px}.navigation a{min-height:40px;padding:8px 13px;font-size:12px}.profile{min-height:40px;padding-block:4px}.profile .avatar{width:30px;height:30px}.profile-name{font-size:12px}}
.page.schedule-page{padding-top:18px}.planning-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.planning-title-group{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0}.planning-title-group h1{font-size:28px;letter-spacing:-.7px;line-height:1.25}.planning-location{font-size:12px;color:var(--muted)}.planning-title-group>.badge{align-self:center;font-size:10px;padding:4px 7px}.planning-header .head-actions{flex-shrink:0;gap:8px}.planning-header .head-actions button{min-height:38px;padding:8px 12px;font-size:12px}.planning-header .head-actions .icon{width:17px;height:17px}.planning-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:12px;min-height:40px;flex-wrap:wrap}.planning-toolbar .schedule-view-switch{margin:0;flex-shrink:0}.planning-toolbar .period-pager{width:300px;flex-shrink:0;gap:5px}.planning-toolbar .period-pager strong{font-size:12px}.planning-toolbar .period-pager .icon-button{width:34px;min-height:36px;padding:7px}.planning-counts{font-size:11px;color:var(--muted);white-space:nowrap}.planning-links{display:flex;gap:13px;margin-left:auto;align-items:center}.planning-links button{min-height:36px;font-size:12px;padding:7px 0}.planning-links .icon{width:18px;height:18px}.schedule-page .schedule-table.fortnight th{height:56px;padding-block:8px}.schedule-page .schedule-table-wrap{max-height:max(280px,calc(100dvh - 270px))}.schedule-page .zone-calendar{padding:14px 18px;margin-bottom:18px}.schedule-page .zone-day-heading{margin-bottom:14px}.schedule-page .zone-day-heading h2{font-size:20px}
@media(max-width:1180px){.planning-counts{display:none}}
@media(min-width:761px) and (max-width:1000px){.planning-links button>span{display:none}.planning-links{gap:10px}.planning-links button{width:32px}.planning-toolbar{gap:10px}.planning-toolbar .period-pager{width:270px}.planning-location{font-size:11px}}
@media(max-width:760px){.preview-bar{height:38px}.preview-controls select{min-height:34px}.app-header{min-height:58px;padding-block:8px}.page.schedule-page{padding-top:13px}.planning-header{margin-bottom:10px}.planning-title-group{gap:5px 10px}.planning-title-group h1{font-size:26px}.planning-location{order:3;flex-basis:100%;font-size:11px}.planning-header .head-actions{display:none}.planning-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:8px}.planning-toolbar .period-pager{grid-column:1/-1;grid-row:1;width:100%;min-width:0}.planning-toolbar .schedule-view-switch{justify-self:start;grid-column:1}.planning-toolbar .schedule-view-switch button{min-height:34px;font-size:11px;padding:7px 12px}.planning-links{gap:5px;margin:0;grid-column:2}.planning-links button{min-height:36px;width:32px;padding:7px}.planning-links button>span{display:none}.planning-counts{display:none}.schedule-page .schedule-edit-help{margin:8px 0 10px;font-size:10px}.schedule-page .mobile-schedule .date-strip{margin-top:10px;margin-bottom:14px}.schedule-page .zone-calendar{padding:12px 10px;margin-bottom:17px}.schedule-page .zone-day-heading h2{font-size:18px}}

.schedule-page .schedule-table th .daynum{line-height:1.15;margin-top:3px}.schedule-table th .daynum small{font-size:9px;font-weight:400;color:var(--muted);margin-left:3px}

/* Плотная рабочая сетка во всю ширину: две строки данных в смене. */
@media(min-width:761px){
 .page.schedule-page{max-width:none;width:100%;padding-inline:12px}.app-header,.preview-bar{padding-inline:16px}
 .schedule-page .schedule-table.fortnight{min-width:1200px}.schedule-page .schedule-table.fortnight th:first-child{width:180px;padding-left:13px}.schedule-page .schedule-table.fortnight .hourscol{width:54px}
 .schedule-page .schedule-table.fortnight th{height:46px;padding-block:5px}.schedule-page .schedule-table th .daynum{font-size:16px;line-height:1.1;margin-top:2px}.schedule-page .schedule-table .dayname{font-size:10px}
 .schedule-page .schedule-table.fortnight tbody td{height:34px;padding:2px 3px}.schedule-page .schedule-table.fortnight tbody td:first-child{padding:2px 10px 2px 13px}
 .schedule-page .schedule-table button.employee{min-height:28px;padding:0;gap:7px}.schedule-page .schedule-table .employee .avatar{width:23px;height:23px;font-size:9px}.schedule-page .schedule-table .employee strong{font-size:12px;line-height:1.2;white-space:nowrap}.schedule-page .schedule-table .employee small{display:none}
 .schedule-page .schedule-table.fortnight .shift{min-height:28px;padding:2px 4px;gap:1px;border-radius:5px;justify-content:center}.shift-topline,.shift-metainfo{display:flex;align-items:center;justify-content:space-between;width:100%;gap:3px;min-width:0}.schedule-page .schedule-table.fortnight .shift strong{font-size:11px;line-height:12px;letter-spacing:-.15px}.schedule-page .schedule-table.fortnight .shift small{font-size:9.5px;line-height:11px;white-space:nowrap}.schedule-page .schedule-table .shift .shift-zone-label{border:0;margin:0;padding:0;font-weight:500}.schedule-page .schedule-table .shift-paid{margin-left:auto}.shift-more-segments{font-size:9px;font-weight:400}
 .schedule-page .schedule-table .free-cell{min-height:28px;height:28px;padding:0;font-size:14px}.schedule-page .schedule-table-wrap{max-height:max(260px,calc(100dvh - 260px))}.schedule-page .schedule-summary{padding:11px 16px;gap:14px;font-size:10px}.schedule-page .schedule-summary .zone-legend{font-size:10px;gap:8px 13px}
}
@media(min-width:761px) and (max-width:1400px){.schedule-page .schedule-table.fortnight th:first-child{width:170px}}
@media(min-width:761px) and (max-height:820px){.schedule-page .schedule-table.fortnight tbody td{height:30px;padding-block:1px}.schedule-page .schedule-table button.employee,.schedule-page .schedule-table.fortnight .shift,.schedule-page .schedule-table .free-cell{min-height:26px}.schedule-page .schedule-table.fortnight .shift{gap:0}.schedule-page .schedule-table .employee .avatar{width:22px;height:22px}}
@media(min-width:761px) and (max-height:820px){.schedule-page .schedule-table .free-cell{height:26px}}
@media(min-width:761px) and (max-height:820px){.schedule-page .schedule-table.fortnight tbody td:first-child{padding-block:1px}}

.schedule-page .schedule-bottom{grid-template-columns:minmax(0,1fr)}

/* Компактные предупреждения и недельные нормативы численности. */

.settings-staffing-link{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:13px;margin:0 0 24px;background:var(--bg);border-color:var(--line)}.settings-staffing-link span{flex:1}.settings-staffing-link small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.settings-staffing-link>.icon{width:19px;height:19px;color:var(--accent)}
.staffing-example{font-size:12px;line-height:1.5;background:var(--soft);color:var(--accent);padding:11px 13px;border-radius:9px;margin:0 0 17px}.staffing-week{width:100%;border-collapse:collapse;margin:5px 0 24px;font-size:13px}.staffing-week th,.staffing-week td{padding:5px 9px;border-bottom:1px solid var(--line);text-align:center}.staffing-week th{font-weight:500}.staffing-week th:first-child{text-align:left;padding-left:2px;width:24%}.staffing-week thead th{padding-bottom:12px}.staffing-week thead small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.staffing-week input{width:100%;max-width:130px;min-height:34px;text-align:center;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font:inherit;padding:5px}.staffing-custom-title{font-size:16px;margin-bottom:8px}.staffing-custom-card{border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:14px;margin-top:14px}.staffing-custom-head{display:flex;align-items:center;gap:14px}.staffing-custom-head .field{flex:1;min-width:0}.staffing-custom-head button{font-size:11px}.staffing-custom-card .field{margin-bottom:12px}.staffing-custom-card .field input{background:var(--panel)}.staffing-custom-counts{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.staffing-custom-counts .field{margin:0;min-width:0}.staffing-custom-counts .field span{font-size:11px;text-align:center}.staffing-custom-counts input{min-width:0;padding:7px 2px;text-align:center;width:100%;font-size:13px}.staffing-add{margin:12px 0 17px;padding-left:0;font-size:12px}.staffing-review-day{border-top:1px solid var(--line);padding:17px 0 9px}.staffing-review-day h3{font-size:15px;margin-bottom:10px}.staffing-rule-review{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:10px 12px;margin:6px 0;border-radius:9px;background:var(--bg);font-size:12px}.staffing-rule-review.shortage{background:var(--warning-soft);color:var(--warning)}.staffing-rule-review div{display:flex;gap:10px;align-items:baseline}.staffing-rule-review strong,.staffing-rule-review b{font-weight:500}.staffing-rule-review div span{font-size:11px;color:var(--muted)}.staffing-rule-review small,.staffing-rule-review p{grid-column:1/-1;font-size:11px;line-height:1.6}.staffing-rule-review small{color:var(--muted)}.staffing-rule-review p{margin-top:4px}
@media(max-width:760px){.staffing-week th,.staffing-week td{padding-inline:5px}.staffing-custom-card{padding:10px}.staffing-custom-counts{gap:4px}.staffing-custom-counts input{font-size:16px;padding:7px 0}.staffing-rule-review div{flex-direction:column;gap:3px}.staffing-ok-note{display:none}}

@media(min-width:761px) and (min-height:821px){.schedule-page .schedule-table.fortnight tbody td{height:33px}}

/* Предупреждение принадлежит дню, без отдельного списка дат. */
.day-staffing-warning{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:0;width:100%;border:0;border-radius:5px;background:var(--warning-soft);color:var(--warning);padding:3px 2px;margin-top:4px;font-size:9px;font-weight:500;line-height:11px;text-align:center;white-space:nowrap}.day-staffing-warning:hover{background:color-mix(in srgb,var(--warning) 15%,var(--warning-soft));color:var(--warning)}.day-staffing-warning span{display:block}.schedule-page .schedule-table.fortnight thead th{height:80px;vertical-align:top;padding-top:6px;padding-bottom:5px}.schedule-page .schedule-table.fortnight thead th:first-child,.schedule-page .schedule-table.fortnight thead th.hourscol{vertical-align:middle}.schedule-page .schedule-table-wrap{max-height:max(260px,calc(100dvh - 260px))}.mobile-day-staffing:empty,.zone-day-staffing:empty{display:none}.mobile-day-staffing .day-staffing-warning,.zone-day-staffing .day-staffing-warning{display:inline-flex;width:auto;flex-direction:row;gap:12px;min-height:30px;padding:7px 10px;font-size:11px;margin:0}.mobile-day-staffing{margin:0 20px 14px}.zone-day-staffing{margin:-3px 0 14px}
@media(max-width:760px){.planning-links{gap:3px}.planning-toolbar .schedule-view-switch button{padding-inline:10px}.zone-day-staffing .day-staffing-warning,.mobile-day-staffing .day-staffing-warning{flex-wrap:wrap;justify-content:flex-start;gap:5px 12px;white-space:normal}}

/* Фирменный металлический знак: исходный PNG с настоящим alpha. */
.brand-logo{display:block;width:36px;height:34px;object-fit:contain;flex-shrink:0}
@media(max-width:760px){.brand-logo{width:34px;height:32px}}

/* Отправленное пожелание занимает только свободную ячейку; цвета остаются у зон. */
.schedule-page .schedule-table .free-cell.has-wish{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:2px 3px;border:1px dashed var(--line);border-radius:5px;background:var(--bg);color:var(--muted);font-size:10px;line-height:11px;opacity:1}.schedule-page .schedule-table .free-cell.has-wish:hover{border-color:var(--accent);color:var(--accent);background:var(--soft)}.free-cell.has-wish strong{font-size:10px;line-height:11px;font-weight:500;white-space:nowrap}.free-cell.has-wish small{display:flex;align-items:center;gap:3px;font-size:8.5px;line-height:10px;white-space:nowrap}.free-cell.has-wish .icon{width:9px;height:9px;flex-shrink:0}.schedule-wish-legend{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.schedule-wish-legend .icon{width:12px;height:12px}.mobile-schedule-wishes{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.mobile-schedule-wishes h3{font-size:13px;margin-bottom:4px}.mobile-schedule-wishes .row-icon{color:var(--muted);background:var(--bg)}.assignment-wish{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;padding:11px 13px;border:1px dashed var(--line);background:var(--bg);border-radius:9px;margin-bottom:18px}.assignment-wish .icon{width:16px;height:16px;flex-shrink:0;color:var(--muted)}

.mobile-empty-day{font-size:12px;line-height:1.6;color:var(--muted);padding:14px 0}

/* Нежелательные дни отмечены красным; зона назначенной смены сохраняет свой цвет. */
.schedule-page .schedule-table .free-cell.has-wish.wish-negative{color:var(--danger);background:var(--danger-soft);border-color:color-mix(in srgb,var(--danger) 32%,var(--line))}.schedule-page .schedule-table .free-cell.has-wish.wish-negative:hover{color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,var(--danger-soft));border-color:var(--danger)}.mobile-schedule-wishes .wish-negative .detail,.mobile-schedule-wishes .wish-negative .row-icon{color:var(--danger)}.mobile-schedule-wishes .wish-negative .row-icon{background:var(--danger-soft)}.assignment-wish.wish-negative{background:var(--danger-soft);color:var(--danger);border-color:color-mix(in srgb,var(--danger) 32%,var(--line))}.assignment-wish.wish-negative .icon{color:var(--danger)}.wish-date.off .wish-value,.wish-date.unavailable .wish-value{color:var(--danger)}.wish-date.off:not(.selected),.wish-date.unavailable:not(.selected){background:var(--danger-soft);border-color:color-mix(in srgb,var(--danger) 25%,var(--line))}

/* Фирменные выпадающие списки: одинаковые в формах, шапке и обеих темах. */
.select-control{display:block;position:relative;min-width:0;width:100%;margin:0!important;font:inherit;color:var(--text)}.select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important}.select-trigger{display:flex;width:100%;min-width:0;justify-content:space-between;gap:12px;min-height:46px;padding:11px 13px;font:inherit;text-align:left;font-weight:400;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text)}.select-trigger:hover{background:color-mix(in srgb,var(--muted) 6%,var(--bg));border-color:color-mix(in srgb,var(--muted) 35%,var(--line))}.select-trigger[aria-expanded="true"]{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}.select-trigger:disabled{opacity:.5;cursor:default}.select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-chevron{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;transition:transform .15s}.select-trigger[aria-expanded="true"] .select-chevron{transform:rotate(180deg)}.preview-controls .select-role{display:inline-block;width:auto;max-width:190px}.preview-controls .select-trigger{min-height:26px;padding:4px 8px;border-radius:7px;font-size:10px;gap:8px;background:transparent}.preview-controls .select-chevron{width:13px;height:13px}
.select-menu{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--glass);backdrop-filter:blur(24px);color:var(--text);box-shadow:0 10px 36px #0002,0 2px 7px #0001;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;z-index:1000;font-size:13px;max-width:calc(100vw - 16px)}.select-menu::backdrop{background:transparent}.select-option{display:flex;align-items:center;gap:9px;min-height:36px;padding:8px 10px;border-radius:8px;line-height:1.4;cursor:pointer}.select-option.is-active{background:var(--soft);color:var(--accent)}.select-option[aria-selected="true"]{font-weight:500}.select-option-check{width:17px;flex-shrink:0;color:var(--accent);display:flex;align-items:center;justify-content:center}.select-option-check .icon{width:15px;height:15px}.select-option-label{min-width:0;overflow-wrap:anywhere}.select-option[aria-disabled="true"]{opacity:.4;cursor:default}.select-menu:focus{outline:none}:root[data-theme="dark"] .select-menu{box-shadow:0 12px 42px #0006,0 2px 8px #0003}
@media(max-width:760px){.select-trigger{font-size:16px;min-height:46px}.select-menu{font-size:14px;border-radius:14px}.select-option{min-height:44px;padding:10px}.preview-controls .select-trigger{font-size:11px;min-height:30px}.preview-controls .select-role{max-width:180px}}

.field .select-trigger{font-size:14px}
@media(max-width:760px){.field .select-trigger{font-size:16px}}

/* Единственный вид расписания: на телефоне оставшиеся действия без пустого места вкладок. */
@media(max-width:760px){.planning-toolbar .planning-links{grid-column:1/-1;width:100%;justify-content:space-between;margin:0;gap:10px}.planning-toolbar .planning-links button{width:auto;gap:6px;padding-inline:0;font-size:11px}.planning-toolbar .planning-links button>span{display:inline}}

/* Пожелание со временем: быстрое назначение слева, полная настройка справа. */
.wish-split-tile{display:flex;align-items:stretch;min-width:0;height:28px;border:1px dashed var(--line);border-radius:5px;background:var(--bg);overflow:hidden}.schedule-page .schedule-table .wish-split-tile .wish-quick{flex:1;min-width:0;min-height:26px;height:26px;margin:0;padding:1px 3px;border:0;border-radius:0;background:transparent}.wish-quick strong{max-width:100%;overflow:hidden;text-overflow:ellipsis}.wish-split-tile .wish-quick-caption{display:none}.wish-config{display:flex;align-items:center;justify-content:center;flex:0 0 0;width:0;min-width:0;min-height:26px;padding:0;border:0;border-left:0 solid var(--line);border-radius:0;background:transparent;color:var(--muted);opacity:0;pointer-events:none;transition:flex-basis .12s,opacity .12s}.wish-config .icon{width:13px;height:13px}.wish-split-tile:hover .wish-config,.wish-split-tile:focus-within .wish-config{flex-basis:24px;width:24px;border-left-width:1px;opacity:1;pointer-events:auto}.wish-split-tile:hover .wish-idle-caption,.wish-split-tile:focus-within .wish-idle-caption{display:none}.wish-split-tile:hover .wish-quick-caption,.wish-split-tile:focus-within .wish-quick-caption{display:flex}.schedule-page .schedule-table .wish-split-tile .wish-quick:hover,.wish-config:hover{background:var(--soft);color:var(--accent)}.wish-split-tile:hover,.wish-split-tile:focus-within{border-color:var(--accent)}.quick-zone-popup{padding:8px}.quick-zone-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:5px 5px 8px}.quick-zone-heading strong{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500}.quick-zone-heading strong .icon{width:15px;height:15px;color:var(--green)}.quick-zone-heading small{display:block;margin-top:5px;font-size:11px;color:var(--muted)}.quick-zone-heading .icon-button{min-height:26px;width:26px;padding:5px;color:var(--muted)}.quick-zone-caption{font-size:11px;color:var(--muted);padding:3px 6px 7px}.quick-zone-choice{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:7px 9px;border:0;border-radius:7px;background:transparent;text-align:left;justify-content:flex-start;font-size:12px;font-weight:400}.quick-zone-choice:hover,.quick-zone-choice:focus-visible{background:var(--soft);color:var(--accent)}.quick-zone-dot{width:8px;height:8px;border-radius:50%;background:var(--zone-ink,var(--muted));flex-shrink:0}.quick-zone-check{margin-left:auto;display:flex;color:var(--accent)}.quick-zone-check .icon{width:14px;height:14px}.quick-zone-popup .quick-zone-undo{width:100%;font-size:11px;min-height:30px;justify-content:flex-start;margin-top:5px;padding:7px 9px;border-radius:7px;border-top:1px solid var(--line)}
@media(hover:none){.wish-split-tile .wish-config{flex-basis:24px;width:24px;border-left-width:1px;opacity:1;pointer-events:auto}.wish-split-tile .wish-idle-caption{display:none}.wish-split-tile .wish-quick-caption{display:flex}}
@media(min-width:761px) and (max-height:820px){.wish-split-tile{height:26px}.schedule-page .schedule-table .wish-split-tile .wish-quick,.wish-config{height:24px;min-height:24px}.wish-quick strong{font-size:9px}}
.wish-split-tile .wish-quick strong,.wish-split-tile .wish-quick small{flex-shrink:0}.wish-split-tile .wish-quick .wish-quick-caption{display:none}.wish-split-tile:hover .wish-quick .wish-quick-caption,.wish-split-tile:focus-within .wish-quick .wish-quick-caption{display:flex}.wish-split-tile:hover .wish-quick .wish-idle-caption,.wish-split-tile:focus-within .wish-quick .wish-idle-caption{display:none}.quick-zone-popup .quick-zone-undo{color:var(--danger)}
@media(hover:none){.wish-split-tile .wish-quick .wish-idle-caption{display:none}.wish-split-tile .wish-quick .wish-quick-caption{display:flex}}

/* Schedule-only navigation fills the mobile tab bar. */
@media(max-width:760px){.navigation{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The first column is measured from the longest name, without clipping. */
.schedule-page .schedule-table.fortnight .employee .avatar{flex-shrink:0}
.schedule-page .schedule-table.fortnight .employee strong{max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap}

/* Federal production calendar: only date markers, preserving assigned zone colours. */
:root{--calendar-off-bg:color-mix(in srgb,var(--danger) 7%,var(--panel));--calendar-off-ink:color-mix(in srgb,var(--danger) 72%,var(--text))}
.schedule-page .schedule-table thead th.calendar-offday{background:var(--calendar-off-bg)}
.schedule-page .schedule-table th.calendar-offday .daynum,.calendar-offday .week-day-number,.calendar-offday .wish-number,.calendar-offday.date-button strong,.calendar-offday.month-day>strong{color:var(--calendar-off-ink)}
.calendar-offday.date-button:not(.selected),.calendar-offday.wish-date:not(.selected):not(.wish-negative),.calendar-offday.personal-week-day:not(.has-shift):not(.selected),.calendar-offday.month-day:not(.has-shift):not(.selected){background:var(--calendar-off-bg)}
.schedule-page .schedule-table th.calendar-workday{background:var(--panel)}
.calendar-legend{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.calendar-legend i{width:9px;height:9px;border:1px solid color-mix(in srgb,var(--danger) 22%,var(--line));border-radius:3px;background:var(--calendar-off-bg)}
.employee-row{display:flex;align-items:center;gap:4px;min-width:0}.employee-row>.employee{min-width:0;flex:1}
.employee-reorder-handle{display:flex;align-items:center;justify-content:center;flex:0 0 10px;width:10px;min-height:24px;padding:0;border:0;background:transparent;color:var(--muted);opacity:.2;cursor:grab;touch-action:none;border-radius:4px;transition:opacity .15s,background .15s}
.employee-reorder-handle svg{width:8px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}.schedule-table tr:hover .employee-reorder-handle{opacity:.6;background:transparent}.employee-reorder-handle:hover,.employee-reorder-handle:focus-visible{opacity:1;background:var(--soft)}
.row-dragging,.row-dragging *{cursor:grabbing!important;user-select:none!important}.row-drag-source>td{opacity:.25}.row-drag-source>td:first-child{background:var(--soft)}
.row-drag-ghost{border-radius:7px;box-shadow:0 8px 28px #0002,0 1px 4px #0001;opacity:.97;border-collapse:separate;overflow:hidden}.row-drag-ghost td{border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}.row-drag-ghost .employee-reorder-handle{opacity:1}.schedule-page .row-drag-ghost td:first-child{position:static}
@media(hover:none){.employee-reorder-handle{display:none}}
@media(prefers-reduced-motion:reduce){.employee-reorder-handle{transition:none}}

/* Keep a fixed row height and animate only the contents of each shift pill. */
.schedule-page .schedule-table.fortnight{min-width:calc(200px + var(--planning-days,14)*100px)}
.schedule-page .schedule-table.fortnight tbody td{height:33px}
.planning-links .wish-view-toggle,.passage-page .toolbar-group .wish-view-toggle{padding:7px 8px;border-radius:8px;transition:background .15s,color .15s}
.wish-view-toggle[aria-pressed="true"]{background:var(--soft);color:var(--accent)}
.schedule-page .schedule-table.fortnight .shift.shift-wish-card{position:relative;display:block;height:28px;min-height:28px;padding:0 4px;border:1px solid transparent;overflow:hidden;text-align:left;transition:background .28s,color .28s,border-color .28s}
.schedule-page .schedule-table.fortnight .shift-wish-card>.shift-wish-time{position:absolute;top:3px;left:4px;right:4px;display:flex;align-items:baseline;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:12px;letter-spacing:-.15px;transform:translateY(0);transform-origin:left center;transition:transform .36s cubic-bezier(.22,1,.36,1),font-size .3s,color .24s}
.schedule-page .schedule-table .shift-wish-card>.shift-metainfo{position:absolute;left:4px;right:4px;bottom:1px;width:auto;line-height:10px;opacity:1;transform:translateY(0);transition:opacity .18s .1s,transform .28s .08s}
.schedule-page .schedule-table .shift-wish-card>.shift-metainfo small{font-size:8px;line-height:10px}
.shift-wish-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shift-assigned-value{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shift-wish-time .shift-more-segments{font-size:inherit;line-height:inherit}
.shift-wish-content{position:absolute;top:14px;left:4px;right:4px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:0;opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity .14s,transform .25s}
.shift-wish-caption{flex:0 0 auto;font-size:7.5px;line-height:11px;font-weight:400;color:var(--muted);white-space:pre}
.schedule-page .schedule-table.fortnight .shift-wish-content .shift-wish-value{display:flex;align-items:baseline;width:100%;font-size:10px;line-height:11px;letter-spacing:-.1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.schedule-page .schedule-table .shift.shift-wish-card.shift-wish-inspection{background:var(--bg);color:var(--text);border-color:var(--line);text-align:left}
.schedule-page .schedule-table .shift.shift-wish-card.shift-wish-inspection:hover{border-color:var(--accent);background:var(--soft)}
.schedule-page .schedule-table .shift-wish-card.shift-wish-inspection>.shift-wish-time{transform:translateY(-2px);font-size:11px;font-weight:500;color:var(--text)}
.schedule-page .schedule-table .shift-wish-card.shift-wish-inspection>.shift-metainfo{opacity:0;transform:translateY(5px);transition-delay:0s;pointer-events:none}
.shift-wish-inspection>.shift-wish-content{opacity:1;transform:translateY(0);transition:opacity .22s .08s,transform .32s .06s}
.schedule-page .schedule-table .shift.shift-wish-card.shift-wish-inspection.wish-conflict{background:var(--danger-soft);border-color:color-mix(in srgb,var(--danger) 30%,var(--line))}
.shift-wish-inspection.wish-conflict .shift-wish-value,.mobile-wish-inspection.wish-conflict .shift-wish-value{color:var(--danger)}
.shift-wish-value.wish-absent{color:var(--muted);font-weight:400}.wish-mode-legend{color:var(--muted);font-size:10px}
.schedule-summary .zone-legend[hidden],.wish-mode-legend[hidden]{display:none}
.mobile-wish-inspection{text-align:left}.mobile-wish-inspection .shift-wish-caption{font-size:10px;line-height:13px}.mobile-wish-inspection .shift-wish-value,.mobile-wish-inspection .shift-wish-time{display:block;font-size:12px;margin-top:3px}.mobile-wish-inspection .shift-wish-time{font-size:11px;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.schedule-page .schedule-table.fortnight .shift.shift-wish-card,.schedule-page .schedule-table.fortnight .shift-wish-card>.shift-wish-time,.schedule-page .schedule-table .shift-wish-card>.shift-metainfo,.shift-wish-card>.shift-wish-content{transition:none}}
@media(max-width:760px){.navigation:has(>a:only-child),.mobile-nav:has(>a:only-child){grid-template-columns:1fr}}

/* Instant calendar card, outside scroll containers and above sticky headers. */
.calendar-day-popup{position:fixed;inset:auto;margin:0;width:356px;max-width:calc(100vw - 24px);padding:22px;display:flex;align-items:flex-start;gap:18px;border:1px solid color-mix(in srgb,var(--danger) 16%,var(--line));border-radius:18px;background:var(--panel);color:var(--text);box-shadow:0 16px 48px #0000001c,0 3px 10px #0000000a;z-index:1200;text-align:left;line-height:1.4;animation:calendar-popup-in .12s ease-out}
.calendar-day-popup[hidden]{display:none}.calendar-day-popup::backdrop{background:transparent;pointer-events:none}
.calendar-popup-main{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;flex:1}
.calendar-popup-label{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:var(--calendar-off-ink)}.calendar-popup-label i{width:6px;height:6px;border-radius:50%;background:currentColor}
.calendar-popup-title{display:block;font-size:21px;font-weight:500;line-height:1.2;letter-spacing:-.35px;overflow-wrap:anywhere}

:root[data-theme=dark] .calendar-day-popup{box-shadow:0 16px 48px #0006,0 3px 10px #0003}
.calendar-offday[tabindex="0"]:focus-visible{outline:2px solid var(--calendar-off-ink);outline-offset:-3px}
@keyframes calendar-popup-in{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.calendar-day-popup{animation:none}}
@media(max-width:420px){.calendar-day-popup{padding:19px;gap:14px}.calendar-popup-title{font-size:20px}}

/* Shared schedule controls stay outside the scaled table. */
.schedule-viewport{position:relative;min-width:0}.schedule-scale{position:absolute;right:10px;bottom:10px;z-index:6;display:flex;align-items:center;gap:2px;padding:4px;border:1px solid transparent;border-radius:12px;background:transparent;box-shadow:none;color:var(--text);opacity:.35;transition:background .16s,opacity .16s,box-shadow .16s}
.schedule-scale:is(:hover,:has(button:focus-visible)){background:#fff;border-color:#dedee3;box-shadow:0 3px 16px #00000012;color:#1d1d1f;opacity:1}.schedule-scale[hidden]{display:none}.schedule-scale button{display:flex;align-items:center;justify-content:center;width:34px;min-height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:20px;line-height:1;cursor:pointer}.schedule-scale button:hover:not(:disabled){background:#0000000b}.schedule-scale button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.schedule-scale button:disabled{opacity:.3;cursor:default}.schedule-scale .schedule-scale-value{width:54px;font-size:12px;font-variant-numeric:tabular-nums}
.schedule-page .day-staffing-warning[data-staffing-day],.schedule-page .day-staffing-warning[data-coverage]{background:transparent;padding:0;gap:2px;white-space:normal;color:var(--muted)}
.day-staffing-warning .staffing-shortage,.day-staffing-warning .staffing-surplus,.day-staffing-warning .staffing-more{display:block;width:100%;padding:2px 3px;border-radius:4px;line-height:1.2}
.day-staffing-warning .staffing-shortage{color:var(--danger);background:var(--danger-soft)}.day-staffing-warning .staffing-surplus{color:var(--warning);background:var(--warning-soft)}.day-staffing-warning .staffing-more{background:var(--bg);color:var(--muted)}.staffing-rule-review.surplus b,.staffing-surplus-text{color:var(--warning)}
@media(max-width:760px){.schedule-scale{bottom:10px;right:10px}.schedule-scale button{width:36px;min-height:36px}.mobile-day-staffing .day-staffing-warning{gap:7px}.mobile-day-staffing .day-staffing-warning span{width:auto}}

/* Rest transitions stay in the grid gutter and match the rendered shift height. */
.schedule-table td.rest-seam-in{position:relative;z-index:1}.schedule-table tbody td:first-child{z-index:2}.rest-transition-line{position:absolute;left:0;top:0;width:2px;height:28px;border-radius:1px;background:#df414a;pointer-events:none;z-index:1}.rest-transition-line[hidden]{display:none}
