.schedule-app{max-width:1600px;margin:auto;padding:24px}.schedule-app header{display:flex;align-items:center;gap:12px;margin-bottom:24px}.schedule-app header img{width:42px}.schedule-app a{color:#83caff}.schedule-app header a{margin-left:auto;font-size:13px}.schedule-app h1{font-size:30px;margin:8px 0 18px}.schedule-app #login-panel{max-width:440px;margin:50px auto}.schedule-app input{background:#0b2b43;color:#fff;border:1px solid #315570;border-radius:10px;padding:12px;font:inherit;color-scheme:dark}.schedule-app #access-code{display:block;width:100%;margin:8px 0 16px}.schedule-heading,.schedule-toolbar,.month-control,.paint-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.schedule-heading{justify-content:space-between}.schedule-toolbar{margin:12px 0 20px}.schedule-toolbar button,.paint-bar button{padding:10px 16px;min-height:44px}.paint-bar{padding:12px;border:1px solid #24485d;border-radius:14px;background:#0d293b}.paint-bar span{font-size:13px;margin-right:8px}.paint-bar button{border:1px solid #426174}.paint-bar button[aria-pressed=true]{outline:2px solid #fff;outline-offset:2px}.paint-bar [data-mode=work]{background:#17613e;color:#d8ffe9}.paint-bar [data-mode=off]{background:#153e75;color:#dbeaff}.paint-bar [data-mode=""]{background:#163344;color:#c0d1dc}#schedule-status{min-height:24px;font-size:13px;margin:16px 0 4px}#schedule-summary{font-size:12px;margin:4px 0 12px}.schedule-scroll{max-height:68vh;overflow:auto;border:1px solid #315570;border-radius:14px;background:#092335}#schedule-grid{border-collapse:separate;border-spacing:0;font-size:12px;min-width:100%;width:max-content}#schedule-grid th,#schedule-grid td{padding:4px;border-right:1px solid #24485d;border-bottom:1px solid #24485d;text-align:center;min-width:42px;height:44px}#schedule-grid th:first-child,#schedule-grid td:first-child{position:sticky;left:0;z-index:2;min-width:165px;max-width:165px;text-align:left;background:#102d41;padding:10px;font-weight:bold}#schedule-grid thead th{position:sticky;top:0;z-index:3;background:#102d41;font-size:11px;white-space:pre-line}#schedule-grid thead th:first-child{z-index:4}#schedule-grid thead .weekend{background:#453144;color:#ffdce5}#schedule-grid .day-total{font-weight:bold;color:#83caff}#schedule-grid .group-row th{height:30px;font-size:12px;background:#0a3447;color:#a6d7ed;position:static;text-align:left}#schedule-grid .day-button{display:block;min-width:34px;min-height:36px;width:100%;padding:4px;border:1px solid transparent;border-radius:7px;background:#0c283b;color:#48687b;font-size:13px}#schedule-grid .day-button[data-state=work]{background:#17613e;color:#caffdf;font-weight:bold}#schedule-grid .day-button[data-state=off]{background:#153e75;color:#dbeaff;font-weight:bold}#schedule-grid .day-button:hover{border-color:#fff}#schedule-grid .day-button:focus-visible{outline:2px solid #fff;outline-offset:1px}.schedule-help{font-size:12px;line-height:1.7}.schedule-app button:disabled{opacity:.5;cursor:wait}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:650px){.schedule-app{padding:14px}.schedule-app h1{font-size:25px}.schedule-app header{font-size:12px}.schedule-app header a{font-size:11px}.paint-bar span{width:100%}.paint-bar button{padding:8px 11px;font-size:12px}#schedule-grid th:first-child,#schedule-grid td:first-child{min-width:125px;max-width:125px;font-size:11px}.schedule-scroll{max-height:65vh}.schedule-toolbar{gap:8px}.schedule-toolbar input{max-width:190px}}

#login-button,#save-schedule{min-height:44px;padding:12px 20px;border:1px solid #3ee39d;border-radius:12px;background:#3ee39d;color:#062b20;font-weight:bold}.schedule-app header img{height:42px}
/* Мобильная таблица: прокручивается контейнер, имя остаётся на месте. */
html,body{max-width:100%;overflow-x:hidden}.schedule-app{width:100%;min-width:0}.schedule-heading>div{min-width:0}.schedule-scroll{width:100%;max-width:100%;min-width:0;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#83caff #102d41}#schedule-grid{table-layout:fixed;user-select:none;-webkit-user-select:none}#schedule-grid th,#schedule-grid td{min-width:52px;width:52px}#schedule-grid th:first-child{width:180px;min-width:180px;max-width:180px;padding:8px}#schedule-grid tbody th:first-child span{display:block;padding-right:30px;overflow-wrap:anywhere}#schedule-grid .eye-button{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:42px;padding:4px;border:0;border-radius:8px;background:transparent;color:#9fd2ee;touch-action:pan-x pan-y}#schedule-grid .day-button{touch-action:pan-x pan-y;min-width:42px;min-height:42px}#schedule-grid .day-button[data-state=off]{background:#c72d47;color:white}.schedule-toolbar #screenshot-open{border-color:#65e5eb;background:#65e5eb;color:#061524;font-weight:bold}#hidden-people{font-size:12px;margin:20px 0}#hidden-list{display:flex;flex-wrap:wrap;gap:8px}#hidden-people summary{cursor:pointer;color:#9fd2ee;padding:10px 0}#shot-dialog{width:min(1100px,calc(100% - 20px));max-height:90dvh;border:1px solid #315570;border-radius:18px;padding:22px;background:#0b2539;color:#f5fbff;overflow:auto}#shot-dialog::backdrop{background:#000b}.shot-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.shot-heading h2{margin:0}.shot-options,.shot-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.shot-options button[aria-pressed=true]{background:#65e5eb;color:#061524;border-color:#65e5eb}#shot-period{display:flex;gap:16px;margin-top:18px}#shot-period label{flex:1;min-width:0;font-size:13px}#shot-period select{display:block;width:100%;font:inherit;color:#fff;background:#102e45;border:1px solid #315570;border-radius:10px;padding:12px;margin-top:8px;color-scheme:dark}#shot-error{color:#ffb1bd;font-size:13px}#shot-download{background:#3ee39d;color:#062b20;text-decoration:none;font-weight:bold;display:inline-flex;align-items:center}#shot-preview{margin-top:20px;overflow:auto;background:#071b2b;border-radius:10px}#shot-image{width:100%;height:auto;display:block}
@media(max-width:650px){.schedule-app{padding:12px 8px}.schedule-app header{margin-bottom:12px}.schedule-app h1{font-size:23px}.schedule-toolbar{gap:8px;margin-bottom:10px}.month-control{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}.month-control input{max-width:none;width:100%;min-width:0}.month-control button{padding:8px}.schedule-toolbar>button{flex:1;padding:10px 8px;font-size:11px}#sheet-link{font-size:12px;padding:8px 0}.schedule-scroll{max-height:68dvh;border-radius:10px}#schedule-grid th:first-child{width:130px;min-width:130px;max-width:130px;font-size:11px}#schedule-grid th,#schedule-grid td{padding:3px;min-width:50px;width:50px}#schedule-status{font-size:11px}.schedule-help{font-size:11px}#shot-dialog{padding:16px}.shot-options button{flex:1}.shot-actions>*{flex:1;justify-content:center;text-align:center;font-size:12px}#shot-period{gap:10px}}

#schedule-grid .work-check{display:block;margin:auto;pointer-events:none;color:#b6f1ce}
#hidden-count{width:100%;border-color:#4b7590;background:#153951;color:#d7efff;font-weight:bold;min-height:48px}#hidden-panel{margin-top:10px;padding:14px;background:#0b2539;border:1px solid #315570;border-radius:12px}#hidden-list button{border-color:#3ee39d;color:#b6f1ce}
/* На компьютере весь месяц помещается по ширине, без внутренней прокрутки. */
@media(min-width:1000px){
 .schedule-app{max-width:none;padding:16px}.schedule-app header{margin-bottom:10px}.schedule-app .eyebrow{margin:8px 0}.schedule-app h1{font-size:26px;margin:6px 0 10px}.schedule-toolbar{margin:8px 0 12px}.schedule-help{margin:8px 0}#schedule-status{margin:10px 0 4px}
 .schedule-scroll{max-height:none;overflow:visible}#schedule-grid{width:100%;min-width:0;table-layout:fixed}
 #schedule-grid th,#schedule-grid td{width:auto;min-width:0;padding:2px;height:38px}
 #schedule-grid th:first-child,#schedule-grid td:first-child{width:clamp(130px,13vw,180px);min-width:0;max-width:none;padding:7px;font-size:11px}
 #schedule-grid th:last-child,#schedule-grid td:last-child{width:44px;min-width:0;font-size:10px}
 #schedule-grid thead th{font-size:clamp(9px,.8vw,11px);height:54px}#schedule-grid .day-total{font-size:clamp(7px,.72vw,10px);white-space:nowrap}
 #schedule-grid .day-button{min-width:0;min-height:32px;height:32px;padding:2px 0;font-size:clamp(8px,.85vw,12px);border-radius:5px}#schedule-grid .work-check{width:14px;height:14px}
}

#assignment-dialog{width:min(440px,calc(100% - 24px));border:1px solid #315570;border-radius:18px;padding:20px;background:#0b2539;color:#f5fbff}#assignment-dialog::backdrop{background:#000b}#assignment-dialog h2{font-size:18px}#assignment-dialog .muted{font-size:12px;line-height:1.6}#assignment-dialog button{min-height:44px;padding:10px 14px}#assignment-pizza{margin-top:16px}#assignment-dialog button[aria-pressed=true]{background:#65e5eb;color:#061524;border-color:#65e5eb}#assignment-apply{width:100%;margin-top:8px;background:#3ee39d;color:#062b20;border-radius:10px;border:0;font-weight:bold}#schedule-grid .day-button[data-state=assignment]{background:#255773;color:#e7f9ff;font-size:10px;font-weight:bold}

#assignment-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#assignment-branches button{width:100%;height:52px;min-width:0;margin:0}#assignment-pizza{width:100%}

#assignment-branches button[data-branch="km"][aria-pressed=true],#schedule-grid .day-button[data-state=assignment][data-branch="km"]{background:#ef21f2;color:#260629;border-color:#ef21f2}
#assignment-branches button[data-branch="north"][aria-pressed=true],#schedule-grid .day-button[data-state=assignment][data-branch="north"]{background:#ffff32;color:#242400;border-color:#ffff32}
#assignment-branches button[data-branch="south-sunny"][aria-pressed=true],#schedule-grid .day-button[data-state=assignment][data-branch="south-sunny"]{background:#ffffff;color:#c71932;border-color:#ffffff}
#assignment-branches button[data-branch="south-height"][aria-pressed=true],#schedule-grid .day-button[data-state=assignment][data-branch="south-height"]{background:#00ffff;color:#062629;border-color:#00ffff}
#assignment-branches #assignment-pizza{margin:0;width:100%;height:52px;font-size:11px;padding:8px}

#lunch-mode[aria-pressed=true]{background:#ffd36a;color:#322007;border-color:#ffd36a}#schedule-grid .day-button.has-lunch{box-shadow:inset 0 0 0 2px #ffd36a;position:relative;padding-bottom:13px}#schedule-grid .lunch-badge{position:absolute;bottom:1px;left:1px;right:1px;background:#ffd36a;color:#322007;border-radius:3px;font-size:8px;line-height:12px;white-space:nowrap}#schedule-grid .lunch-group .day-button{font-size:10px;color:#9ebdce}#schedule-grid .lunch-group .has-lunch{background:#ffd36a;color:#322007;padding:2px}#schedule-grid .lunch-group th{color:#ffd36a}#schedule-grid .lunch-group button:disabled{opacity:1;cursor:default}

#schedule-grid .lunch-duty{background:#72451d!important;box-shadow:inset 0 0 0 1px #ff9f32}#business-picker select{padding:12px;background:#102e45;color:#fff;border:1px solid #315570;border-radius:10px;font:inherit}#business-picker label{font-size:12px}

html[data-business] .schedule-app>header,html[data-business] .schedule-help:not(#lunch-help){display:none}html[data-business] .day-button{cursor:pointer}

#business-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#business-picker button{min-height:46px;font-weight:bold}#business-picker button[aria-pressed=true]{background:#65e5eb;color:#061524;border-color:#65e5eb}#schedule-grid .personnel-section th:first-child{position:static;text-align:left;background:#173c52;color:#c9efff;padding:12px;font-size:13px;max-width:none}html[data-business] #schedule-grid tbody th:first-child span{padding-right:0}@media(max-width:500px){#business-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}

.group-lunch-button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;width:100%;padding:8px 0}.group-lunch-button:hover{background:#f6a33b55}
