.sz-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 10px;border-top:1px solid #dce5ef;background:#fff}.sz-bar button,.sz-bar select,.wb-panel button,.wb-panel select,.wb-panel input,.wb-panel textarea{font:inherit;border:1px solid #becddd;border-radius:6px;padding:7px 9px;background:#fff;color:#152a43;min-height:36px}.sz-bar button,.wb-panel button{cursor:pointer}.sz-bar [aria-pressed=true],.wb-primary{background:#12335b!important;color:white!important}.sz-controls{display:flex;gap:5px;align-items:center;margin-left:auto}.sz-controls input{width:100px;accent-color:#12335b}.sz-note{font-size:11px;color:#526880}.sz-bar button:focus-visible,.wb-panel button:focus-visible{outline:3px solid #77a9d5;outline-offset:1px}
.sz-board{height:var(--board-height)!important;max-height:var(--board-height)!important;overflow:auto!important;scroll-padding:45px 100px}.sz-board table{width:max(1100px,100%);table-layout:fixed}.sz-board .room-table{width:max(1200px,100%)}.sz-board th{font-size:13px}.sz-board thead th{height:44px}.sz-board .pair-time,.sz-board .room-name{font-size:13px}.sz-board .pair-shift,.sz-board .room-cap{font-size:11px}.sz-board td,.sz-board .week-table td,.sz-board .week-table tbody th{height:auto!important;vertical-align:top;padding:5px}.sz-board .lesson,.sz-board .empty,.sz-board .gap,.sz-board .week-table .lesson,.sz-board .cell-stack .lesson{height:104px!important;min-height:104px!important;padding:7px;gap:3px}.sz-board .lesson span,.sz-board .week-table .lesson span,.sz-board .cell-stack .lesson span{font-size:13px!important;line-height:1.2}.sz-board .lesson .subject{font-size:14px!important;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:34px}.sz-board .cell-stack,.sz-board .week-table .cell-stack{height:auto!important;max-height:none!important;overflow:visible;display:grid;grid-template-columns:1fr;gap:5px}.sz-board .cell-count{display:none}.sz-board.sz-dense .lesson,.sz-board.sz-dense .empty,.sz-board.sz-dense .gap{height:88px!important;min-height:88px!important;gap:1px;padding:4px}.sz-overview .wb-card-tools{display:none!important}.sz-overview .lesson .capacity{display:none}.sz-expanded .top,.sz-expanded .stats,.sz-expanded footer{display:none!important}.sz-expanded .shell{max-width:none;padding-top:5px}
.wb-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.wb-layout.wb-open{grid-template-columns:minmax(0,1fr) minmax(300px,390px)}.wb-panel{background:white;border:1px solid #dce5ef;border-radius:10px;position:sticky;top:8px;max-height:calc(100dvh - 22px);overflow:auto;padding:14px;color:#152a43;font-size:14px;align-self:start;min-width:0}.wb-panel[hidden]{display:none}.wb-head{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px}.wb-head h2{font-size:17px;margin:0}.wb-panel label{display:block;margin:8px 0}.wb-panel select,.wb-panel input[type=date],.wb-panel input[type=search],.wb-panel textarea{width:100%}.wb-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.wb-card-wrap{position:relative;min-width:0}.wb-card-tools{display:flex;gap:3px;position:absolute;bottom:3px;right:3px;background:#f4f8fc;border-radius:4px;z-index:2}.wb-card-tools button{font:inherit;font-size:12px;min-height:24px;padding:2px 6px;border:1px solid #aec5d8;border-radius:4px;background:white;color:#153951;cursor:pointer}.sz-board .wb-card-wrap .lesson{padding-bottom:29px}.wb-card-tools .wb-delete{color:#a62a27}.wb-picked{outline:3px solid #286da5!important;outline-offset:-3px}.wb-result{padding:10px;margin-top:10px;background:#eef5fa;border-radius:7px;overflow-wrap:anywhere}.wb-result.bad{background:#fff0ee;color:#86251d}.wb-result.good{background:#ebf7f0;color:#17583d}.wb-line{border-bottom:1px solid #dae4ee;padding:10px 0}.wb-line small{display:block;color:#536980}.wb-toast{position:fixed;right:16px;top:16px;z-index:1001;max-width:calc(100vw - 32px);background:#12335b;color:white;padding:12px 16px;border-radius:10px;display:flex;align-items:center;gap:10px;box-shadow:0 5px 24px #12335b44}.wb-toast[hidden]{display:none}.wb-toast button{background:#fff;color:#12335b;border:0;border-radius:5px;min-height:36px;padding:6px 10px;cursor:pointer}.wb-checking{box-shadow:inset 0 0 0 2px #78879b}.wb-valid{box-shadow:inset 0 0 0 3px #208058!important}.wb-invalid{box-shadow:inset 0 0 0 3px #b1473a!important}.wb-cell-grid{overflow:auto}.wb-cell-grid table{width:100%;min-width:310px;border-collapse:collapse;table-layout:fixed}.wb-cell-grid th,.wb-cell-grid td{position:static;padding:2px;height:auto;font-size:11px;width:auto}.wb-cell-grid button{padding:3px;width:100%;min-height:30px;font-size:11px;touch-action:none}.wb-cell-grid button[data-rule=blocked]{background:#fce4e2}.wb-cell-grid button[data-rule=building_only]{background:#e1eff9}.wb-muted{font-size:12px;color:#536980}.wb-panel button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:850px){.wb-layout.wb-open{grid-template-columns:minmax(0,1fr)}.wb-panel{position:relative;max-height:none;grid-row:1}.wb-card-tools button{min-height:32px}.wb-toast{flex-wrap:wrap}.sz-controls{margin-left:0}.sz-bar{font-size:12px}}
@media print{.sz-bar,.wb-panel,.wb-card-tools,.wb-toast,#editHelp{display:none!important}.wb-layout.wb-open{display:block}.sz-board{height:auto!important;max-height:none!important;overflow:visible!important}.sz-board table{zoom:1!important;width:100%!important;min-width:0!important}.sz-board thead th,.sz-board tbody th{position:static}}

.wb-card-tools [data-room]{max-width:92px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-panel:has(.wb-teacher-current){top:80px;max-height:calc(100dvh - 94px);scroll-margin-top:80px}.sz-expanded .wb-panel:has(.wb-teacher-current){top:8px;max-height:calc(100dvh - 22px)}@media(max-width:850px){.wb-panel:has(.wb-teacher-current){top:0;max-height:none}}
.wb-teacher-current{display:grid;gap:7px;background:#eef4fa;border:1px solid #cfdeeb;border-radius:9px;padding:12px;margin:12px 0}.wb-teacher-current .wb-tag{justify-self:start}.wb-teacher-current strong{font-size:16px}.wb-teacher-current small,.wb-teacher-card small{display:block;color:#526880;line-height:1.5}.wb-tag{font-size:11px;font-weight:600;border-radius:5px;background:#dfebf5;color:#274c6e;padding:3px 6px;white-space:nowrap}.wb-teacher-section{margin-top:16px}.wb-teacher-section h3,.wb-teacher-section summary{font-size:14px;font-weight:700;margin:0;line-height:1.5}.wb-teacher-section summary{cursor:pointer;padding:10px 0;border-top:1px solid #dce5ef}.wb-teacher-section summary:focus-visible{outline:3px solid #77a9d5;outline-offset:2px}.wb-count{display:inline-block;min-width:22px;text-align:center;background:#edf2f7;color:#536980;border-radius:10px;padding:0 5px;font-size:12px;margin-left:4px}.wb-teacher-card{border:1px solid #dce5ef;border-radius:8px;padding:11px;margin-top:8px;overflow-wrap:anywhere;line-height:1.45}.wb-teacher-card strong{display:block;margin-bottom:5px}.wb-teacher-ready{border-color:#a8c9b9;background:#f5fbf8}.wb-panel .wb-teacher-select{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;padding:9px;margin-bottom:7px;border-color:#9bbfac;background:#fff;font-weight:600;min-height:44px}.wb-teacher-select:hover{background:#e9f5ef}.wb-teacher-select .wb-tag{background:#e4f3ea;color:#246045}.wb-teacher-reason{font-size:12px;color:#805122;background:#fff6e9;border-radius:5px;padding:7px;margin:7px 0 0}.wb-empty{font-size:13px;line-height:1.5;background:#f4f7fa;padding:11px;border-radius:7px}

.wb-modebar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:10px 12px;margin:8px 0;background:#eef5ff;border:1px solid #b7ceed;border-radius:9px;min-width:0;font-size:13px;color:#234260}.wb-modebar #scheduleEditToggle{background:#12335b;color:#fff;border-color:#12335b;flex-shrink:0}.wb-modebar .wb-edit-hint{display:none}.expert-on .wb-modebar .wb-view-hint{display:none}.expert-on .wb-modebar .wb-edit-hint{display:inline-block}.wb-modebar span{flex:1 1 260px;line-height:1.4}.wb-modebar .icon-btn{min-height:40px;white-space:normal}@media print{.wb-modebar{display:none!important}}
