*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4f6f9;color:#1f2937}.app-shell{min-height:100vh}.brand{height:64px;display:flex;align-items:center;padding:0 20px;font-size:18px;font-weight:700;border-bottom:1px solid #e5e7eb}.topbar{height:64px;padding:0 24px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;justify-content:flex-end;align-items:center;gap:16px}.content{padding:24px}.wide{width:100%}.login-page{min-height:100vh;display:grid;place-items:center;background:#e9eef6}.login-card{width:min(420px,calc(100vw - 32px));border-radius:8px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.rooms-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}.rooms-header .ant-typography{justify-self:start;margin:0}.rooms-header-filter{justify-self:center;width:240px}.rooms-header>.ant-btn{justify-self:end}.schedule-title-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}.schedule-title-left{justify-content:flex-start}.schedule-title-row .ant-typography{margin:0}.schedule-filters{justify-self:end;justify-content:flex-end}.schedule-view-switch .ant-segmented-item-label{font-size:16px;font-weight:600;padding-inline:18px}.schedule-view-switch .ant-segmented-item-selected .ant-segmented-item-label{font-weight:700}.schedule-nav{position:relative;display:flex;align-items:center;justify-content:center;gap:8px}.schedule-footer{display:flex;justify-content:flex-end}.week-label{position:absolute;right:0;font-weight:600;color:#374151}.discipline-form{background:#fff;border:1px solid #d8dee8;border-radius:8px;padding:12px}.practice-form-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px 16px;align-items:end}.practice-comment{grid-column:1 / -1}.practice-actions{grid-column:1 / -1;display:flex;justify-content:flex-end}.group-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}.group-faculty-field{grid-column:1 / -1}.group-name-field{grid-column:1 / 4}.group-course-field{grid-column:4 / 5}.group-period-section{grid-column:1 / -1;display:flex;flex-direction:column;gap:8px;padding-top:2px}.group-checkbox-row{margin-bottom:0}.group-date-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:start}.group-date-range .ant-form-item{margin-bottom:0;min-width:0}.group-date-separator{padding-top:31px;color:#64748b;font-weight:700;line-height:32px}.curriculum-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}.curriculum-name{grid-column:1 / 4}.curriculum-type-hours{grid-column:1 / 3}.curriculum-type-option{grid-column:3 / 5;align-self:end}.curriculum-note{grid-column:1 / -1}.curriculum-import-errors{margin:0;padding-left:18px}.schedule-workspace{display:grid;grid-template-columns:300px minmax(760px,1fr);gap:16px;align-items:start}.unscheduled-panel{height:603px;background:#fff;border:1px solid #d8dee8;border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:8px;overflow:hidden}.unscheduled-panel-head{display:flex;justify-content:stretch;margin-bottom:2px}.unscheduled-panel-head .ant-btn{width:100%}.unscheduled-list{min-height:0;display:flex;flex:1;flex-direction:column;gap:8px;overflow-x:hidden;overflow-y:auto;padding-right:2px}.teacher-picker-panel{min-height:640px;background:#fff;border:1px solid #d8dee8;border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:12px}.teacher-picker-panel .ant-select{width:100%}.teacher-list{display:flex;flex-direction:column;gap:6px;overflow:auto}.teacher-list-item{width:100%;border:1px solid #d8dee8;background:#f8fafc;border-radius:6px;padding:9px 10px;text-align:left;color:#1f2937;cursor:pointer;font:inherit}.teacher-list-item:hover{border-color:#8aa8df;background:#eef4ff}.teacher-list-item.active{border-color:#2454a6;background:#dfeaff;font-weight:700}.unscheduled-panel.over,.schedule-cell.over{outline:2px solid #2454a6;outline-offset:-2px}.unscheduled-group{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}.unscheduled-group .lesson-chip{min-width:0}.unscheduled-hours{min-width:52px;border:1px solid #d8dee8;background:#eef2f7;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#334155;font-size:13px}.schedule-grid{display:grid;grid-template-columns:72px repeat(6,minmax(112px,1fr));background:#d8dee8;border:1px solid #d8dee8;gap:1px;overflow:auto}.template-schedule-grid{grid-template-columns:72px repeat(6,minmax(112px,1fr))}.grid-head,.slot-label{background:#eef2f7;min-height:42px;display:flex;align-items:center;justify-content:center;font-weight:700}.schedule-cell{background:#fff;min-height:112px;padding:6px;display:flex;flex-direction:column;gap:6px}.template-schedule-cell{min-height:124px}.template-grid-cell{position:relative;padding:0;background:#d8dee8}.template-slot-label.template-row-odd{background:#eef2f7}.template-slot-label.template-row-even{background:#e8f0f7}.template-grid-cell.template-row-odd{background:#d8dee8}.template-grid-cell.template-row-even{background:#cfd9e6}.template-manual-indicator{position:absolute;right:4px;bottom:4px;z-index:2}.template-cell-stack{display:flex;flex-direction:column;gap:1px;min-height:100%}.template-cell-stack-single,.template-cell-stack-paired{min-height:100%}.template-cell-band{flex:1 1 0;min-height:46px;background:#fff;display:flex;flex-direction:column;gap:4px;padding:4px;overflow:visible;transition:background-color .15s ease,box-shadow .15s ease}.template-cell-stack-single .template-cell-band{min-height:122px}.template-cell-stack-single .template-cell-band-content{justify-content:center;min-height:100%}.template-cell-stack-paired .template-cell-band.active{flex:1 0 auto;min-height:76px}.template-cell-stack-paired .template-cell-band.empty{flex:0 0 46px}.template-cell-band.empty{background:#f8fafc}.template-row-even .template-cell-band.empty{background:#f1f6fb}.template-cell-band.active{background:#fff}.template-cell-band.disabled{cursor:default}.template-cell-band.over{background:#e7f1ff;box-shadow:inset 0 0 0 2px #2454a6}.template-cell-band-content{display:flex;flex-direction:column;gap:4px;min-height:0;width:100%}.template-cell-band-content:empty{flex:1}.template-manual-modal-list{display:flex;flex-direction:column;gap:8px;max-height:70vh;overflow:auto;padding-right:2px}.template-manual-empty{padding:24px 12px;text-align:center;color:#64748b;font-weight:600}.template-manual-lesson-chip{width:100%;cursor:default}.schedule-cell.practice-day{position:relative;background:#fff2e8}.practice-mark{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;font-size:34px;font-weight:800;color:#d46b08;opacity:.8;pointer-events:none}.schedule-cell.holiday-day{position:relative;background:#fff1f0}.holiday-mark{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:8px;text-align:center;font-size:13px;font-weight:800;color:#cf1322;pointer-events:none}.schedule-cell.outside-semester{position:relative;background:#f1f5f9}.outside-semester-mark{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:8px;text-align:center;font-size:12px;font-weight:700;color:#64748b;pointer-events:none}.schedule-cell.two-subgroups{display:grid;grid-template-columns:1fr 1fr;gap:4px}.lesson-chip{position:relative;border:1px solid #b7c3d6;background:#f8fafc;border-radius:6px;padding:8px;min-height:58px;cursor:grab;display:flex;flex-direction:column;gap:4px;font-size:13px;box-shadow:0 1px 2px #0f172a14}.lesson-chip-manual{border-style:dashed}.lesson-chip-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.lesson-chip-actions{display:inline-flex;align-items:center;gap:2px;flex-shrink:0;margin-left:auto}.lesson-chip b{line-height:1.2}.lesson-chip span{color:#526071}.placement-badge{align-self:flex-start;border:1px solid rgba(82,96,113,.22);background:#ffffff8c;border-radius:4px;padding:1px 5px;font-size:11px;font-weight:700;color:#475569}.template-block{cursor:default}.manual-template-block{border-style:dashed;background:#fffaf0}.teacher-schedule-lesson{cursor:default}.lesson-overlay-card{width:220px;pointer-events:none;box-shadow:0 12px 28px #0f172a38}@media (max-width: 980px){.schedule-workspace{grid-template-columns:1fr}.unscheduled-panel{height:320px}.teacher-picker-panel{min-height:220px}.page-header{align-items:flex-start;flex-direction:column}.rooms-header{display:flex;align-items:flex-start}.rooms-header-filter{justify-self:auto;width:100%}.rooms-header>.ant-btn{justify-self:auto}.schedule-title-row{align-items:flex-start;grid-template-columns:1fr}.schedule-title-left,.schedule-view-switch,.schedule-view-switch .ant-segmented-group{width:100%}.schedule-view-switch .ant-segmented-item{flex:1}.schedule-filters{justify-content:flex-start;width:100%}.schedule-nav{justify-content:flex-start;flex-wrap:wrap}.week-label{position:static;width:100%;text-align:right}.practice-form-grid,.group-form-grid{grid-template-columns:1fr}.group-faculty-field,.group-name-field,.group-course-field,.group-period-section{grid-column:auto}.group-date-range{grid-template-columns:1fr}.group-date-separator{padding-top:0;line-height:1;text-align:center}.curriculum-form-grid{grid-template-columns:1fr}.curriculum-name,.curriculum-type-hours,.curriculum-type-option,.curriculum-note{grid-column:auto}}
