/* Финален общ визуален слой. Не променя функции, права или данни. */
:root{--ui-navy:#112d4e;--ui-blue:#58728b;--ui-coral:#df3d38;--ui-coral-dark:#bd302c;--ui-coral-soft:#fff0ed;--ui-teal:#168b8d;--ui-teal-soft:#eaf7f5;--ui-green:#2d8a50;--ui-green-soft:#e5f6ea;--ui-amber:#a86d13;--ui-amber-soft:#fff2d8;--ui-red-soft:#fde3e1;--ui-bg:#f7faf9;--ui-card:#fff;--ui-cream:#fffaf5;--ui-line:#dfe7e9;--ui-muted:#71828e;--ui-shadow:0 12px 34px rgba(23,45,61,.07)}
html{background:var(--ui-bg)}body,button,input,select,textarea{font-family:"Segoe UI",Arial,sans-serif!important}body{color:var(--ui-navy)!important;background:var(--ui-bg)!important}.app-shell{background:linear-gradient(135deg,#fffdfa 0,#f7fbfa 64%,#fff8f2 100%)!important}
.content:not(.calendar-home){padding:30px 34px 60px!important}.content>.welcome-row{align-items:flex-end!important;margin:0 0 22px!important;padding:0!important}.welcome-row h1{margin:0!important;color:var(--ui-navy)!important;font-size:31px!important;font-weight:800!important;letter-spacing:-.035em!important}.welcome-row .subtitle{margin:6px 0 0!important;color:var(--ui-blue)!important;font-size:14px!important}.welcome-row>.primary-button,.welcome-row>div:last-child{margin-left:auto}
.panel,.records-panel,.students-panel,.statistics-panel,.feedback-panel,.personal-info-card,.enrollment-card,.program-entry-card,.group-category,.homework-notebook,.day-status-panel,.statistics-summary-card,.statistics-chart,.feedback-controls,.parent-portal-controls,.test-library-card,.permission-section,.profile-permissions{border:1px solid var(--ui-line)!important;border-radius:14px!important;background:var(--ui-card)!important;box-shadow:var(--ui-shadow)!important}
.panel-title,.group-category-head,.small-group-detail-head,.feedback-list-head,.homework-notebook-head,.day-status-head{padding:16px 18px!important;border-bottom:1px solid #e9eef0!important;background:linear-gradient(180deg,#fff,#fffdfa)!important}.panel-title h2,.group-category-head h2,.small-group-detail-head h2,.feedback-list-head h2,.homework-notebook-head h2,.day-status-head h2{color:var(--ui-navy)!important;font-size:17px!important}.panel-title p,.group-category-head p,.small-group-detail-head p,.feedback-list-head p{color:var(--ui-muted)!important}
.primary-button{min-height:42px!important;padding:0 18px!important;border:0!important;border-radius:10px!important;background:var(--ui-coral)!important;color:#fff!important;font-weight:800!important;box-shadow:0 10px 22px rgba(223,61,56,.20)!important}.primary-button:hover{background:var(--ui-coral-dark)!important;transform:translateY(-1px)}.outline-button,.row-button,.danger-outline-button{min-height:39px!important;padding:0 15px!important;border:1px solid #d9e3e7!important;border-radius:9px!important;background:#fff!important;color:#34536f!important;font-weight:700!important}.outline-button:hover,.row-button:hover{border-color:#b9cbd4!important;background:#f5f9fa!important}.text-button{color:var(--ui-coral-dark)!important;font-weight:750!important}
input,select,textarea,.table-input{border:1px solid #d7e2e7!important;border-radius:9px!important;background:#fff!important;color:var(--ui-navy)!important;outline:none!important}input:focus,select:focus,textarea:focus,.table-input:focus{border-color:#d7837e!important;box-shadow:0 0 0 3px rgba(223,61,56,.08)!important}label{color:#294965!important}label>small{color:var(--ui-muted)!important}
.records-toolbar,.profile-toolbar,.statistics-controls,.feedback-controls,.parent-portal-controls{padding:14px 17px!important;border-bottom:1px solid #e9eef0!important;background:#fbfdfd!important}.record-row,.student-row,.group-student-row,.statistics-student-row,.feedback-student-row{min-height:52px!important;padding:9px 16px!important;border-bottom:1px solid #e9eef0!important;background:#fff!important}.record-row:hover,.student-row:hover,.group-student-row:hover,.statistics-student-row:hover,.feedback-student-row:hover{background:#fff9f6!important}
.badge,.status,.model-status,.student-active,.student-program{border-radius:999px!important;font-weight:750!important}.badge{background:var(--ui-coral-soft)!important;color:var(--ui-coral-dark)!important}.status.success,.model-status.ok,.student-active.yes{background:var(--ui-green-soft)!important;color:var(--ui-green)!important}.status.warning,.model-status.wait{background:var(--ui-amber-soft)!important;color:var(--ui-amber)!important}.status.danger,.model-status.bad,.student-active.no{background:var(--ui-red-soft)!important;color:#b53c37!important}
.empty-state{min-height:250px!important;border:1px dashed #ccd9de!important;border-radius:14px!important;background:linear-gradient(145deg,#fff,#f7fbfa)!important}.empty-state .empty-icon{background:var(--ui-teal-soft)!important;color:var(--ui-teal)!important}.empty-state h2{color:var(--ui-navy)!important}.empty-state p{color:var(--ui-muted)!important}
.education-group-grid{gap:18px!important}.group-category{overflow:hidden!important}.small-group-card,.education-small-group{border:1px solid #e1e8eb!important;border-radius:12px!important;background:#fff!important;box-shadow:0 8px 22px rgba(23,45,61,.045)!important}.small-group-card:hover,.education-small-group:hover{border-color:#c7d7dc!important;box-shadow:0 12px 28px rgba(23,45,61,.08)!important}
.personal-info-card{overflow:hidden!important}.personal-info-grid,.student-profile-summary,.profile-stat-grid{gap:12px!important}.personal-detail,.profile-stat,.enrollment-summary{border:1px solid #e4eaec!important;border-radius:11px!important;background:#fbfdfc!important}.enrollment-card{overflow:hidden!important}.enrollment-card.active{border-top:4px solid var(--ui-teal)!important}.enrollment-card.inactive{background:#fafbfa!important;box-shadow:none!important}
.homework-notebook,.day-status-panel{overflow:hidden!important}.homework-table-header{background:#f3f7f8!important;color:#49667d!important}.homework-row{border-bottom:1px solid #e8eef0!important}.academic-day-tabs button,.feedback-mode button,.filter-buttons button,.test-grade-tabs button{border:1px solid #dde6e9!important;border-radius:10px!important;background:#fff!important;color:#49637a!important}.academic-day-tabs button.selected,.feedback-mode button.selected,.filter-buttons button.selected,.test-grade-tabs button.selected{border-color:#efb2ad!important;background:var(--ui-coral-soft)!important;color:var(--ui-coral-dark)!important;box-shadow:0 6px 16px rgba(223,61,56,.08)!important}
.homework-subject{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.homework-subject>span{font-size:17px;line-height:1.3;font-weight:800}.homework-subject>input[name="subject"]{font-size:17px;font-weight:700}.no-homework-option{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#49667d;white-space:nowrap;cursor:pointer}.no-homework-option input{width:17px;height:17px;accent-color:var(--ui-coral-dark)}.homework-table-row.no-homework-row{background:#f8fbfa}.homework-table-row.no-homework-row .table-input:disabled{opacity:.45;background:#f3f6f6}
.add-subject-resource{border:0;background:transparent;color:#2e6f9f;font-family:inherit;font-size:12px;font-weight:700;padding:0;cursor:pointer}.add-subject-resource:hover{text-decoration:underline}
.statistics-summary-grid{gap:14px!important}.statistics-summary-card{min-height:115px!important;padding:18px!important;border-top:4px solid var(--ui-teal)!important}.statistics-summary-card strong{color:var(--ui-navy)!important;font-size:28px!important}.statistics-chart{padding:20px!important}.statistics-chart h2{color:var(--ui-navy)!important}
.feedback-controls,.parent-portal-controls{gap:12px!important}.feedback-subject-card{border:1px solid #e1e8eb!important;border-radius:13px!important;background:#fff!important}.feedback-subject-card h3{color:var(--ui-navy)!important}.feedback-list-head{background:#f7fafb!important}.feedback-student-row button{white-space:nowrap}.email-draft-meta,.gmail-send-preparation,.ai-test-intro,.ai-review-note,.system-safety-note,.security-note{border:1px solid #dce7e8!important;border-radius:12px!important;background:var(--ui-teal-soft)!important;color:#31576a!important}
.test-grade-tabs{gap:10px!important}.test-grade-tabs button{min-height:66px!important}.test-subject-heading{margin-top:24px!important;padding:0 3px 10px!important;border-bottom:1px solid #e0e7e9!important}.test-library-grid{gap:14px!important}.test-library-card{padding:18px!important;border-top:4px solid var(--ui-teal)!important}.test-card-actions{gap:8px!important}
.profile-tabs{gap:8px!important}.profile-tabs button{border:1px solid #dce5e8!important;border-radius:9px!important;background:#fff!important}.profile-tabs button.active{border-color:#efb2ad!important;background:var(--ui-coral-soft)!important;color:var(--ui-coral-dark)!important}.profile-permissions{padding:18px!important}.permissions-grid{gap:13px!important}.permission-section{padding:14px!important;box-shadow:none!important}.permission-section legend{color:var(--ui-navy)!important;font-weight:800!important}.password-reset-request{border:1px solid #e1e8eb!important;border-radius:11px!important;background:#fff!important}
.modal-backdrop{padding:24px!important;background:rgba(17,35,51,.48)!important;backdrop-filter:blur(7px)!important}.modal-card{width:min(820px,100%)!important;max-height:min(90vh,920px)!important;border:1px solid #dfe7e9!important;border-radius:18px!important;background:#fff!important;box-shadow:0 28px 80px rgba(17,35,51,.24)!important}.modal-head{padding:19px 22px 15px!important;border-bottom:1px solid #e6edef!important;background:#fff!important}.modal-head h2{color:var(--ui-navy)!important;font-size:22px!important}.modal-close{border-radius:9px!important;background:#f3f6f6!important}.modal-actions{position:sticky!important;bottom:-22px!important;margin:20px -22px -22px!important;padding:15px 22px!important;border-top:1px solid #e6edef!important;background:#fff!important}.form-grid{gap:14px!important}.form-grid label{gap:7px!important}.form-grid input,.form-grid select{min-height:42px!important}.form-grid textarea{padding:11px!important}.delete-profile-warning{border:1px solid #efc4c0!important;border-radius:12px!important;background:#fff4f2!important}
.back-navigation{margin-bottom:18px!important}.back-navigation button{border:1px solid #dce5e8!important;border-radius:10px!important;background:#fff!important;color:#3d5c74!important}.student-actions-dialog button{border-radius:10px!important}.student-actions-dialog button:hover{background:#f3f8f9!important}
@media(max-width:1100px){.content:not(.calendar-home){padding:24px 24px 50px!important}.statistics-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.education-group-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){.topbar{height:auto!important;min-height:112px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:42px 42px!important;gap:8px!important;padding:10px 14px!important}.topbar .search{grid-column:1/-1!important;grid-row:1!important;width:100%!important;min-width:0!important}.topbar .branch-select-card{grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important}.topbar .profile-menu-wrap{grid-column:2!important;grid-row:2!important;align-self:center!important}.topbar>.icon-button,.topbar>.mobile-menu{display:none!important}.profile-button{width:42px!important;height:42px!important;padding:0!important}.profile-button-copy,.profile-chevron{display:none!important}.content:not(.calendar-home){padding:18px 14px 42px!important}.welcome-row{align-items:flex-start!important}.welcome-row h1{font-size:25px!important}.statistics-summary-grid{grid-template-columns:1fr!important}.modal-backdrop{padding:10px!important}.modal-card{border-radius:14px!important}.form-grid{grid-template-columns:1fr!important}.wide-field{grid-column:auto!important}}

/* Monthly programme selection: academic, summer, or both per branch. */
.program-mode-control{min-width:210px;height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border:1px solid #e6ded8;border-radius:10px;background:#fffaf7;box-sizing:border-box}.program-mode-control span{display:grid;gap:1px}.program-mode-control small{font-size:8px!important;line-height:1.1;color:#8a7770}.program-mode-control strong{font-size:10px;line-height:1.2;color:#193755}.program-mode-control select{width:128px;height:34px;padding:0 7px;border:1px solid #ded8d2;border-radius:8px;background:#fff;color:#193755;font-size:9px;font-weight:700}.program-mode-control i{font-size:8px;color:#849094;font-style:normal;white-space:nowrap}.program-month-settings{overflow:hidden;margin-bottom:18px}.program-month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 18px}.program-month-grid label{display:grid;gap:6px}.program-month-grid span{font-size:10px;font-weight:800;color:#304f68}.program-month-grid select{height:39px;padding:0 9px;border:1px solid #dce4e7;border-radius:9px;background:#fff;color:#193755}.program-month-note{margin:0 18px 18px;padding:11px 13px;border-radius:10px;background:#eef8f6;color:#416774;font-size:10px;line-height:1.5}
@media(max-width:1100px){.program-mode-control{min-width:180px}.program-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.topbar{min-height:162px!important;grid-template-rows:42px 42px 42px!important}.program-mode-control{grid-column:1/-1!important;grid-row:3!important;width:100%!important;min-width:0}.program-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Exact visual system from the approved Max Progress model. */
:root{--model-red:#d84d47;--model-red-dark:#bc3d38;--model-navy:#143252;--model-teal:#178e92;--model-cream:#fffaf4;--model-mint:#edf8f5;--model-sand:#fff3df;--model-sky:#edf6fb;--model-line:#dfe8eb;--model-muted:#748694}
.app-shell{background:radial-gradient(circle at 100% 0,#f7e4dc 0 72px,transparent 73px),radial-gradient(circle at 95% 3%,#cbe7e2 0 50px,transparent 51px),linear-gradient(135deg,#fffdfa 0,#f7fbfa 68%,#fff8f1 100%)!important}
.sidebar{width:216px!important;padding:18px 16px 16px!important;background:linear-gradient(180deg,#fffdf9 0,#fffaf5 72%,#fff1e8 100%)!important;border-right:1px solid #ede5de!important;box-shadow:none!important}.workspace{width:calc(100% - 216px)!important;margin-left:216px!important}.brand-mark{width:44px!important;height:45px!important;min-height:45px!important;margin:0 0 4px 2px!important;display:grid!important;place-items:center!important;border:0!important;background:transparent!important}.brand-mark .sidebar-book-logo{width:42px!important;height:42px!important;filter:drop-shadow(0 4px 8px rgba(21,79,83,.12))}.sidebar-platform-name{position:absolute!important;top:20px!important;left:68px!important;margin:0!important;padding:0!important;border:0!important}.sidebar-platform-name strong{color:var(--model-navy)!important;font-size:17px!important;font-weight:850!important;letter-spacing:-.035em!important}.sidebar-platform-name small{color:#758790!important;font-size:7px!important;line-height:1.35!important}.sidebar nav{margin-top:17px!important;gap:4px!important}.sidebar .nav-item,.sidebar-bottom>#admin-profiles{min-height:44px!important;padding:0 12px!important;border:0!important;border-radius:9px!important;color:#38536c!important;font-size:11px!important;font-weight:750!important;box-shadow:none!important}.sidebar .nav-item:hover{background:#f8efea!important;color:var(--model-red-dark)!important}.sidebar .nav-item.active{background:linear-gradient(135deg,#df5a54,#cf4640)!important;color:#fff!important;box-shadow:0 9px 20px rgba(207,70,64,.18)!important}.nav-icon{width:30px!important;height:30px!important;border-radius:8px!important;background:#eef3f3!important;color:#7990a0!important}.nav-item.active .nav-icon{background:rgba(255,255,255,.14)!important;color:#fff!important}.sidebar-bottom{border-top:1px solid #eadfd8!important;padding-top:9px!important}.sidebar-bottom .user-card{border-radius:11px!important;background:#fff7f2!important}.sidebar:after{content:""!important;position:absolute!important;left:16px!important;bottom:74px!important;width:82px!important;height:92px!important;margin:0!important;background:radial-gradient(ellipse at 45% 90%,#168b8d 0 9%,transparent 10%),radial-gradient(ellipse at 29% 66%,#78b9a9 0 13%,transparent 14%),radial-gradient(ellipse at 62% 55%,#168b8d 0 14%,transparent 15%),radial-gradient(ellipse at 35% 36%,#a7d0c2 0 13%,transparent 14%),linear-gradient(76deg,transparent 48%,#168b8d 49% 51%,transparent 52%)!important;opacity:.78!important;pointer-events:none!important}.sidebar:before{position:absolute!important;left:18px!important;bottom:36px!important;margin:0!important;color:#65818a!important;font-size:7px!important;z-index:2!important}
.topbar{height:72px!important;padding:12px 30px!important;border-bottom:1px solid #e7eceb!important;background:rgba(255,255,255,.88)!important;backdrop-filter:blur(14px)!important;box-shadow:0 5px 18px rgba(22,44,58,.035)!important}.topbar .search{height:44px!important;max-width:630px!important;border:1px solid #dfe6e7!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important}.branch-select-card,.program-mode-control{height:44px!important;border-radius:9px!important}.profile-button{min-height:44px!important}.content{position:relative!important;z-index:1}.content:not(.calendar-home){max-width:1500px!important;margin:0 auto!important;padding:34px 38px 64px!important}.content>.welcome-row{position:relative!important;min-height:74px!important;margin-bottom:20px!important}.welcome-row:after{content:"Малки стъпки.\A Големи постижения.";position:absolute;right:8px;top:-5px;white-space:pre;text-align:right;color:#2c6480;font-family:"Segoe Print","Comic Sans MS",cursive;font-size:13px;font-style:italic;font-weight:700;line-height:1.2;transform:rotate(-3deg);pointer-events:none}.welcome-row:has(.primary-button):after,.welcome-row:has(.test-create-actions):after{display:none}.welcome-row .eyebrow{margin:0 0 6px!important;color:#b84540!important;font-size:10px!important;font-weight:850!important;letter-spacing:.08em!important;text-transform:uppercase!important}.welcome-row h1{font-size:32px!important;line-height:1.03!important}.welcome-row .subtitle{max-width:820px!important;font-size:13px!important;line-height:1.45!important}
.panel,.records-panel,.students-model-panel,.group-category,.feedback-controls,.statistics-controls,.statistics-kpis article,.statistics-layout>article,.statistics-students,.test-library-card,.test-subject-section,.program-month-settings{border:1px solid var(--model-line)!important;border-radius:13px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 10px 28px rgba(20,50,82,.055)!important}.panel-title,.group-category-head,.feedback-list-head,.statistics-section-head{background:linear-gradient(180deg,#fff,#fffdfa)!important}.primary-button{border-radius:9px!important;background:linear-gradient(135deg,#df5b55,#cf4640)!important;box-shadow:0 10px 22px rgba(207,70,64,.18)!important}.outline-button{border-color:#dbe4e7!important;border-radius:8px!important}.students-model-panel{overflow:hidden!important}.students-model-filters{display:grid!important;grid-template-columns:minmax(200px,1.35fr) repeat(3,minmax(130px,1fr)) auto!important;gap:9px!important;padding:14px 16px!important;background:#fff!important}.students-model-filters input,.students-model-filters select{height:40px!important}.students-model-head{min-height:38px!important;background:#f1f6f8!important;color:#38546c!important;font-size:9px!important;font-weight:850!important}.students-model-row{min-height:52px!important;border-color:#e3ebed!important}.students-model-row:hover{background:#f9fcfc!important}.student-model-avatar{background:#edf7f7!important;color:var(--model-teal)!important}.student-program{border-radius:6px!important;background:#e7f6eb!important;color:#2b8750!important}.student-active{border-radius:6px!important}.student-actions-button{border-radius:8px!important}.students-pagination{background:#fff!important}
.education-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.group-category{min-height:185px!important}.group-category-head{min-height:92px!important}.group-category-head:before{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border-radius:11px!important;background:var(--model-sky)!important;color:#3183c5!important}.group-category:nth-child(2) .group-category-head:before{background:var(--model-sand)!important;color:#b77913!important}.statistics-controls,.feedback-controls{border-radius:12px!important;background:#fff!important}.statistics-kpis{gap:12px!important}.statistics-kpis article{min-height:112px!important;padding:17px!important}.statistics-kpis article small{color:#718796!important;text-transform:uppercase!important}.statistics-kpis article strong{color:var(--model-navy)!important;font-size:27px!important}.statistics-layout{gap:14px!important}.feedback-list{overflow:hidden!important}.feedback-student-row:nth-child(even){background:#fffaf7!important}.test-grade-tabs button{border-radius:11px!important}.test-library-card{border-top:0!important}.test-library-card:before{content:"";display:block;width:35px;height:4px;margin-bottom:12px;border-radius:10px;background:var(--model-teal)}
.modal-card{border-radius:16px!important}.modal-head{background:linear-gradient(180deg,#fff,#fffaf7)!important}.form-grid label{font-size:10px!important;font-weight:800!important}.form-grid input,.form-grid select,.form-grid textarea{background:#fbfdfd!important}.permission-section{border-radius:12px!important;background:#fbfdfc!important}.program-month-grid{background:#fff!important}.calendar-shell,.calendar-card{border-radius:14px!important}.calendar-day{border-color:#e4ebed!important}.calendar-day.weekend{background:#f3f9f7!important}.calendar-day.today{border:2px solid var(--model-red)!important;background:#fff2ef!important}
@media(max-width:1180px){.students-model-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.education-group-grid{grid-template-columns:1fr!important}.welcome-row:after{display:none}}
@media(max-width:900px){.sidebar{width:190px!important}.workspace{width:calc(100% - 190px)!important;margin-left:190px!important}.sidebar-platform-name{left:62px!important}.content:not(.calendar-home){padding:26px 24px 54px!important}}
@media(max-width:760px){.sidebar{width:260px!important;transform:translateX(-100%)!important}.sidebar.open{transform:translateX(0)!important}.workspace{width:100%!important;margin-left:0!important}.topbar>.mobile-menu{position:fixed!important;left:8px!important;top:12px!important;z-index:30!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border:1px solid #dfe7e8!important;border-radius:9px!important;background:#fff!important;color:var(--model-navy)!important}.topbar .search{padding-left:46px!important}.content:not(.calendar-home){padding:20px 14px 48px!important}.welcome-row h1{font-size:27px!important}.students-model-filters{grid-template-columns:1fr!important}.students-model-panel{overflow-x:auto!important}.education-group-grid{grid-template-columns:1fr!important}.sidebar:after{display:none!important}}

/* 2026-09-21 — authoritative visual model from the three approved screens. */
:root{--mp-navy:#0b2f63;--mp-red:#d84b45;--mp-red2:#c93f39;--mp-teal:#128e91;--mp-cream:#fffaf3;--mp-paper:#fffefd;--mp-bg:#f8f8f4;--mp-line:#d9e5eb;--mp-blue:#577998;--mp-mint:#e4f5ea;--mp-yellow:#fff0ce;--mp-pink:#fde5e2}
body{background:#f5f2eb!important;color:var(--mp-navy)!important}.app-shell{background:linear-gradient(120deg,#fffdfa,#f7faf8)!important}.sidebar{width:205px!important;padding:14px 12px 18px!important;background:linear-gradient(180deg,#fffdf9 0%,#fffaf3 75%,#fff0e5 100%)!important}.workspace{width:calc(100% - 205px)!important;margin-left:205px!important}.topbar{height:64px!important;padding:9px 22px!important;background:rgba(255,255,255,.94)!important}.topbar .search{height:40px!important;max-width:620px!important}.branch-select-card{height:40px!important}.profile-button{min-height:40px!important}.content:not(.calendar-home){max-width:none!important;padding:28px 30px 58px!important}.welcome-row h1{font-size:32px!important;color:var(--mp-navy)!important}.welcome-row .subtitle{font-size:14px!important;color:#527491!important}.welcome-row:before{content:"";position:absolute;right:-30px;top:-28px;width:105px;height:100px;border-radius:0 0 0 100%;background:radial-gradient(circle at 100% 0,#bfe3df 0 38%,transparent 39%),radial-gradient(circle at 100% 70%,#f7d8cc 0 37%,transparent 38%);opacity:.8;z-index:-1}.welcome-row:after{right:82px!important;top:-4px!important;color:#145b91!important;font-size:14px!important}.sidebar .nav-item,.sidebar-bottom>#admin-profiles{min-height:42px!important;font-size:12px!important;border-radius:6px!important}.sidebar .nav-item.active{background:linear-gradient(180deg,#df5852,#cc423c)!important}.nav-icon{background:transparent!important;color:#5f81a0!important;font-size:17px!important}.sidebar:after{width:105px!important;height:142px!important;left:26px!important;bottom:55px!important;background:radial-gradient(ellipse at 52% 92%,#118c8e 0 8%,transparent 9%),radial-gradient(ellipse at 27% 77%,#6bb5a6 0 14%,transparent 15%),radial-gradient(ellipse at 69% 65%,#118c8e 0 16%,transparent 17%),radial-gradient(ellipse at 38% 46%,#9cccbc 0 15%,transparent 16%),radial-gradient(ellipse at 76% 28%,#118c8e 0 15%,transparent 16%),linear-gradient(72deg,transparent 48%,#118c8e 49% 51%,transparent 52%)!important}.sidebar:before{content:"Знанието\A създава\A възможности\A\A „По-уверени ученици.\A По-светло бъдеще.“"!important;white-space:pre!important;left:18px!important;bottom:20px!important;color:#168b8d!important;font-size:8px!important;line-height:1.35!important}
.panel,.records-panel,.students-model-panel,.group-category,.statistics-controls,.statistics-kpis article,.statistics-layout>article,.statistics-students,.feedback-controls,.feedback-list,.test-subject-section,.program-month-settings{border:1px solid var(--mp-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 8px 24px rgba(30,58,74,.05)!important}.primary-button{min-height:40px!important;border-radius:7px!important;background:linear-gradient(#df5852,#cc423c)!important}.outline-button,.row-button{border-radius:6px!important}.students-model-filters{grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(135px,1fr)) auto!important;padding:12px!important;gap:8px!important}.students-model-filters input,.students-model-filters select{height:38px!important}.students-model-head,.students-model-row{grid-template-columns:minmax(210px,1.35fr) minmax(130px,.9fr) minmax(80px,.55fr) minmax(90px,.65fr) minmax(100px,.7fr) 82px!important}.students-model-head{min-height:36px!important;background:#eef4f7!important}.students-model-row{min-height:47px!important;padding-top:5px!important;padding-bottom:5px!important}.student-program,.student-active{padding:5px 9px!important;border-radius:5px!important}.students-pagination{min-height:44px!important}
.education-group-grid{display:grid!important;grid-template-columns:390px minmax(0,1fr)!important;align-items:start!important}.group-category{min-height:0!important}.group-category-head{min-height:74px!important;padding:13px!important}.group-category .small-group-card,.education-small-group{min-height:72px!important;margin:8px 10px!important;padding:11px!important}.small-group-detail,.group-detail-panel{border:1px solid var(--mp-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 8px 24px rgba(30,58,74,.05)!important}.small-group-detail-head{padding:14px 16px!important}.group-student-row{min-height:43px!important}.statistics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.statistics-layout{grid-template-columns:repeat(2,minmax(0,1fr))!important}.statistics-chart{min-height:250px!important}.feedback-layout{display:grid!important;grid-template-columns:minmax(260px,34%) minmax(0,1fr)!important;gap:12px!important;align-items:start!important}.feedback-list{max-height:690px!important;overflow:auto!important}.feedback-student-row{min-height:62px!important}.feedback-subject-card{border-radius:7px!important}.test-grade-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}.test-grade-tabs button{min-height:44px!important}.test-library-grid{display:block!important}.test-library-card{min-height:48px!important;margin:0!important;border-radius:0!important;border-width:0 0 1px!important;box-shadow:none!important;display:grid!important;grid-template-columns:minmax(180px,1.5fr) minmax(260px,2fr) auto!important;align-items:center!important}.test-library-card:before{display:none!important}.profile-tabs{border-bottom:1px solid var(--mp-line)!important}.profile-toolbar{background:#fff!important}.profile-row{min-height:44px!important;border-bottom:1px solid #e6edef!important}.profile-permissions{background:#fff!important}.permissions-grid{grid-template-columns:minmax(210px,.65fr) minmax(0,1.35fr)!important}.permission-section{box-shadow:none!important}.calendar-day.weekend{background:#f0f8f6!important}.calendar-day.today{border-color:var(--mp-red)!important;background:#fff0ed!important}
@media(max-width:1200px){.students-model-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.education-group-grid{grid-template-columns:340px minmax(0,1fr)!important}.welcome-row:after{display:none!important}}
@media(max-width:900px){.education-group-grid,.feedback-layout{grid-template-columns:1fr!important}.statistics-layout{grid-template-columns:1fr!important}}
.model-group-filters{display:flex;gap:10px;padding:12px;margin-bottom:12px;border:1px solid var(--mp-line);border-radius:9px;background:#fff}.model-group-filters select{height:38px;min-width:190px}.model-groups-layout{display:grid;grid-template-columns:390px minmax(0,1fr);gap:12px}.model-group-list,.model-group-detail{overflow:hidden;border:1px solid var(--mp-line);border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(30,58,74,.05)}.model-group-list>header{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid var(--mp-line)}.model-group-list h2{margin:0;font-size:16px}.model-group-list header span{font-size:9px;color:#617c92}.model-group-card{width:calc(100% - 16px);min-height:72px;margin:8px;padding:9px;display:grid;grid-template-columns:44px 1fr 32px;align-items:center;gap:9px;text-align:left;border:1px solid #e3ebee;border-radius:8px;background:#fff;color:var(--mp-navy)}.model-group-card.selected{border-color:#ef8f88;background:#fff8f6;box-shadow:0 0 0 1px #ef8f88}.model-group-card>i,.model-group-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e4f5ea;color:#1b8b55;font-style:normal;font-weight:800}.model-group-card span{display:grid;gap:3px}.model-group-card small{color:#6c8293;font-size:9px}.model-group-card em{height:5px;border-radius:9px;background:#edf1f1}.model-group-card em b{display:block;height:100%;border-radius:9px;background:#2fac63}.model-group-card u{text-decoration:none}.model-group-detail>header{display:flex;align-items:center;gap:10px;padding:16px;border-bottom:1px solid var(--mp-line)}.model-group-detail>header div{flex:1}.model-group-detail h2{margin:0;font-size:19px}.model-group-detail p{margin:3px 0;color:#658096}.model-group-meta{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--mp-line)}.model-group-meta span{display:grid;gap:4px;padding:14px;border-right:1px solid var(--mp-line)}.model-group-meta small{color:#6b8294}.model-group-tabs{display:flex;gap:22px;padding:13px 16px;border-bottom:1px solid var(--mp-line);font-size:11px}.model-group-tabs b{color:var(--mp-red)}.model-group-actions{display:flex;gap:8px;padding:10px 16px}.model-group-students{padding:0 16px 16px}.model-group-students button{width:100%;min-height:39px;display:grid;grid-template-columns:1fr 100px 40px;align-items:center;text-align:left;border:0;border-bottom:1px solid #e5ecee;background:#fff;color:var(--mp-navy)}.model-group-students em{padding:4px 7px;border-radius:5px;background:var(--mp-mint);color:#25824d;font-style:normal;font-size:9px}.model-group-students b{text-align:center}@media(max-width:900px){.model-groups-layout{grid-template-columns:1fr}}
/* Authoritative model — administration, review, feedback, tests and statistics */
.admin-model-tabs{display:flex;gap:4px;margin:0 0 14px;padding:5px;background:#f3f6f5;border:1px solid var(--line);border-radius:12px}.admin-model-tabs button{min-width:120px;padding:10px 18px;border:0;border-radius:9px;background:transparent;color:var(--navy);font-weight:800}.admin-model-tabs .selected{background:var(--red);color:#fff;box-shadow:0 8px 18px #d9544d25}.admin-model-users{overflow:hidden}.admin-model-columns,.profile-record{display:grid!important;grid-template-columns:minmax(360px,1fr) 150px 140px;align-items:center;gap:18px}.admin-model-columns{padding:10px 22px;background:#f3f7f8;color:#60758a;font-size:12px;font-weight:800}.profile-record{padding:12px 22px!important;border-top:1px solid var(--line)}.profile-record>span:nth-child(2){display:flex;flex-direction:column}.profile-record .avatar{display:none}.profile-actions{justify-content:flex-end}.program-month-settings{margin-top:16px}.program-month-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px}.program-month-grid label{padding:10px;background:#fbfdfd;border:1px solid var(--line);border-radius:10px}.program-month-grid label span{display:block;margin-bottom:6px;font-size:12px;font-weight:800;color:var(--navy)}
.review-model-filters,.feedback-controls{display:grid!important;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:10px;padding:14px!important}.review-model-panel{overflow:hidden;margin-top:16px}.review-model-panel h2{padding:14px 18px;margin:0;border-bottom:1px solid var(--line)}.review-model-head,.review-model-row{display:grid;grid-template-columns:105px minmax(170px,1.2fr) minmax(130px,1fr) 110px 130px 100px;align-items:center;gap:12px;padding:10px 16px}.review-model-head{background:#f3f7f8;color:#61758a;font-size:12px;font-weight:800}.review-model-row{border-top:1px solid var(--line);font-size:13px}.review-model-row .status{justify-self:start}.review-model-row button{justify-self:end}
.feedback-layout{gap:14px}.feedback-list{border-radius:14px}.feedback-list-head{background:#fff}.feedback-row{border:1px solid var(--line);border-radius:10px;margin:8px;background:#fff}.feedback-row.selected{border-color:var(--red);box-shadow:0 0 0 2px #d9544d18}.feedback-detail,.feedback-editor{border-radius:14px}.feedback-subject-card,.feedback-section-card{border:1px solid var(--line);border-radius:10px}.feedback-achievements{background:var(--mint-soft)}.feedback-support{background:var(--pink-soft)}.feedback-recommendations{background:#e9f7fb}
.test-grade-tabs{border:1px solid var(--line);border-radius:12px;background:#f5f8f8;overflow:hidden}.test-grade-tabs button{border-radius:0!important}.test-grade-tabs button.selected{background:var(--red)!important;color:#fff}.test-subject-section{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;margin-top:14px}.test-subject-heading{padding:14px 18px;background:#fbfcfc;border-bottom:1px solid var(--line)}.test-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.test-library-card{margin:0!important;box-shadow:none!important;border:1px solid var(--line)}
.statistics-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.statistics-layout{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-subject-row progress{accent-color:var(--teal)}
@media(max-width:1000px){.program-month-grid{grid-template-columns:repeat(2,1fr)}.admin-model-columns,.profile-record{grid-template-columns:1fr 110px 110px}.review-model-head{display:none}.review-model-row{grid-template-columns:100px 1fr 1fr}.test-library-grid{grid-template-columns:1fr}}
/* Home page breathing room — 2026-09-21 */
.content.calendar-home{padding:32px 36px 44px!important}
.home-dashboard-heading{align-items:center!important;margin:0 4px 24px!important;padding:2px 0 4px}
.home-dashboard-heading h1{font-size:22px!important;line-height:1.2!important;letter-spacing:-.02em}
.home-dashboard-heading p{margin-top:7px!important;font-size:13px!important}
.home-dashboard-heading em{font-size:12px!important;line-height:1.4!important}
.home-model-grid{grid-template-columns:minmax(0,4fr) minmax(250px,1fr)!important;gap:22px!important;align-items:stretch}
.home-side-stack{display:block!important;min-width:0}
.home-attention{height:100%;min-height:260px}
.home-calendar-card .calendar-titlebar{padding:18px 20px 16px!important}
.home-calendar-card .calendar-layout{padding:14px 18px 20px!important}
.home-calendar-card .calendar-day{min-height:82px!important;padding:8px!important}
.home-students-quick{margin-top:22px!important}
.home-students-quick .home-card-title{padding:17px 18px 13px!important}
.home-quick-filters{gap:12px!important;padding:14px 18px!important}
.home-student-head{padding:10px 18px!important}
.home-student-row{min-height:44px!important;padding:8px 18px!important}
@media(max-width:1100px){.content.calendar-home{padding:24px!important}.home-model-grid{grid-template-columns:1fr!important}.home-attention{min-height:180px}}
/* Left-aligned section titles and group interaction fixes — 2026-09-21 */
.content:not(.calendar-home)>.welcome-row{justify-content:flex-start!important;align-items:flex-start!important;text-align:left!important}
.content:not(.calendar-home)>.welcome-row>div:first-child{margin:0!important;text-align:left!important}
.content:not(.calendar-home)>.welcome-row:before,.content:not(.calendar-home)>.welcome-row:after{display:none!important}

/* Birthdays are generated from student profiles and stay visually distinct
   from manually created assessments. */
.calendar-day i.birthday-event{
  border-left:3px solid #b85aa5!important;
  background:linear-gradient(135deg,#fff0f8,#f4ecff)!important;
  color:#7d2f70!important;
  font-weight:800!important;
}
.birthday-calendar-card{
  border-color:#e8c5df!important;
  background:linear-gradient(135deg,#fffafd,#fbf5ff)!important;
}
.birthday-calendar-card .calendar-day-event-type{
  background:linear-gradient(135deg,#ffe8f5,#eee6ff)!important;
}
.birthday-calendar-card .calendar-day-event-type small,
.birthday-calendar-card .calendar-day-event-type strong{color:#7d2f70!important}
.page-back-nav+.welcome-row{margin-top:26px!important}
.model-group-card{text-align:left!important}
.model-group-card>span{align-items:flex-start!important;text-align:left!important}
.model-group-card strong,.model-group-card small{display:block;text-align:left!important}
.model-group-card u{margin-left:auto;text-decoration:none;font-size:22px;color:var(--mp-blue)}

/* По-четливи данни и контроли в екрана за вход. */
.login-card #login-form>label{font-size:16px!important;line-height:1.35!important}
.login-card #login-form input{font-size:18px!important;font-weight:650!important;line-height:1.3!important}
.login-card #toggle-login-password{font-size:15px!important;font-weight:750!important}
.login-card .login-submit{font-size:18px!important;font-weight:800!important}
.login-card .forgot-password-details>summary{font-size:14px!important;font-weight:750!important}
.login-card .forgot-password-panel,.login-card .forgot-password-panel label,.login-card .login-help{font-size:14px!important}

/* Статистика и обратна връзка следват единствено занималнята,
   избрана в горната лента за текущия месец. */
.statistics-controls .statistics-program-tabs button:not(.selected),
.feedback-controls .statistics-program-tabs button:not(.selected){display:none!important}
.statistics-controls .statistics-program-tabs button.selected,
.feedback-controls .statistics-program-tabs button.selected{pointer-events:none!important;cursor:default!important}
.model-group-detail>header{justify-content:flex-start!important;text-align:left!important}
.model-group-detail>header>div{margin-right:auto;text-align:left!important}
.model-group-detail>header h2,.model-group-detail>header p{text-align:left!important}
.small-group-detail-head{justify-content:flex-start!important;text-align:left!important}
.small-group-detail-head>div:first-child{margin-right:auto;text-align:left!important}
.small-group-head-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}

/* Цветова идентичност на филиала. */
html[data-active-branch="terter"]{--branch-ui:#d4433e;--branch-ui-dark:#a92f2b;--branch-ui-soft:#fff1ef;--branch-ui-ring:#d4433e2e}
html[data-active-branch="mladost"]{--branch-ui:#397fbe;--branch-ui-dark:#286494;--branch-ui-soft:#edf6fd;--branch-ui-ring:#397fbe2e}
html[data-active-branch="lyulin"]{--branch-ui:#2d9668;--branch-ui-dark:#20764f;--branch-ui-soft:#edf8f2;--branch-ui-ring:#2d96682e}
html[data-active-branch]{--ui-coral:var(--branch-ui);--ui-coral-dark:var(--branch-ui-dark);--ui-coral-soft:var(--branch-ui-soft);--model-red:var(--branch-ui);--model-red-dark:var(--branch-ui-dark);--mp-red:var(--branch-ui);--mp-red2:var(--branch-ui-dark);--mp-coral:var(--branch-ui);--mp-coral-soft:var(--branch-ui-soft);--red:var(--branch-ui);--red-dark:var(--branch-ui-dark)}
html[data-active-branch] .sidebar .nav-item.active,
html[data-active-branch] .sidebar-bottom>#admin-profiles.active,
html[data-active-branch] .primary-button,
html[data-active-branch] .test-grade-tabs button.selected,
html[data-active-branch] .admin-model-tabs .selected{background:linear-gradient(135deg,var(--branch-ui),var(--branch-ui-dark))!important;box-shadow:0 9px 20px var(--branch-ui-ring)!important;color:#fff!important}
html[data-active-branch] .welcome-row .eyebrow,
html[data-active-branch] .text-button,
html[data-active-branch] .model-group-tabs b{color:var(--branch-ui-dark)!important}
html[data-active-branch] input:focus,
html[data-active-branch] select:focus,
html[data-active-branch] textarea:focus,
html[data-active-branch] .table-input:focus{border-color:var(--branch-ui)!important;box-shadow:0 0 0 3px var(--branch-ui-ring)!important}
html[data-active-branch] .academic-day-tabs button.selected,
html[data-active-branch] .feedback-mode button.selected,
html[data-active-branch] .filter-buttons button.selected,
html[data-active-branch] .profile-tabs button.active{border-color:var(--branch-ui)!important;background:var(--branch-ui-soft)!important;color:var(--branch-ui-dark)!important;box-shadow:0 6px 16px var(--branch-ui-ring)!important}
html[data-active-branch] .calendar-day.today,
html[data-active-branch] .model-group-card.selected,
html[data-active-branch] .feedback-row.selected{border-color:var(--branch-ui)!important;background:var(--branch-ui-soft)!important;box-shadow:0 0 0 2px var(--branch-ui-ring)!important}
html[data-active-branch] .brand-mark .sidebar-book-logo path:nth-child(1),html[data-active-branch] .brand-mark .sidebar-book-logo path:nth-child(2){fill:var(--branch-ui)!important}
html[data-active-branch] .profile-button .avatar,html[data-active-branch] .profile-button .avatar.small{background:var(--branch-ui)!important;color:#fff!important;box-shadow:0 0 0 4px var(--branch-ui-ring)!important}
html[data-active-branch] .home-calendar-card{border-top-color:var(--branch-ui)!important}
html[data-active-branch] .home-calendar-card .calendar-titlebar p{color:var(--branch-ui-dark)!important}
html[data-active-branch] .content.calendar-home #assessment-calendar:before{background:var(--branch-ui)!important}
@media(min-width:761px){
  .topbar .program-mode-control{
    flex:0 0 320px!important;
    width:320px!important;
    min-width:320px!important;
    height:44px!important;
    gap:10px!important;
    padding:5px 8px 5px 12px!important;
  }
  .topbar .program-mode-control>span{display:block!important;flex:1 1 auto!important;white-space:nowrap!important}
  .topbar .program-mode-control>span small{font-size:10px!important;line-height:1!important;white-space:nowrap!important}
  .topbar .program-mode-control>span strong{display:none!important}
  .topbar .program-mode-control select{
    flex:0 0 190px!important;
    width:190px!important;
    height:34px!important;
    font-size:11px!important;
    white-space:nowrap!important;
  }
}

/* Balanced breathing room for the dashboard heading and calendar. */
.content.calendar-home{
  padding:42px 44px 56px!important;
}
.content.calendar-home .home-dashboard-heading{
  margin:0 8px 28px!important;
  padding:4px 0!important;
}
.content.calendar-home .home-dashboard-heading h1{
  font-size:28px!important;
  line-height:1.15!important;
}
.content.calendar-home .home-model-grid{
  gap:24px!important;
}
.content.calendar-home .home-calendar-card .calendar-titlebar{
  padding:22px 24px 20px!important;
}
.content.calendar-home .home-calendar-card .calendar-layout{
  padding:18px 22px 24px!important;
}
@media(max-width:760px){
  .content.calendar-home{padding:22px 14px 36px!important}
  .content.calendar-home .home-dashboard-heading{margin:0 4px 18px!important;padding:0!important}
  .content.calendar-home .home-dashboard-heading h1{font-size:24px!important}
  .content.calendar-home .home-calendar-card .calendar-titlebar{padding:16px 14px 14px!important}
  .content.calendar-home .home-calendar-card .calendar-layout{padding:12px 10px 16px!important}
}
@media(min-width:761px){
  .content.calendar-home #assessment-calendar{
    padding:18px 18px 26px!important;
  }
  .home-students-quick .home-student-head{
    min-height:42px!important;
    font-size:10px!important;
  }
  .home-students-quick .home-student-row{
    min-height:58px!important;
    padding:10px 18px!important;
    font-size:12px!important;
  }
  .home-students-quick .home-student-row strong{
    font-size:14px!important;
    line-height:1.3!important;
  }
  .home-students-quick .home-student-row>span{
    font-size:12px!important;
  }
  .home-students-quick .home-student-row .status{
    padding:7px 10px!important;
    font-size:11px!important;
  }
  .home-students-quick .home-row-actions{
    font-size:13px!important;
  }
}
.annual-promotion{overflow:hidden;margin:16px 0}.annual-promotion-controls{display:grid;grid-template-columns:minmax(220px,1.35fr) minmax(130px,.65fr) minmax(130px,.65fr) auto;align-items:end;gap:12px;padding:18px}.annual-promotion-controls label{display:grid;gap:7px;font-size:11px;font-weight:800}.annual-promotion-controls select{min-height:42px}.annual-promotion-summary{display:flex;align-items:center;gap:10px;margin:0 18px 16px;padding:12px 14px;border-radius:10px;background:var(--branch-ui-soft);color:var(--branch-ui-dark)}.annual-promotion-summary strong{font-size:22px}.annual-promotion-summary span{font-size:12px}.promotion-student-list{max-height:260px;overflow:auto;margin:12px 0;padding:10px 10px 10px 32px;border:1px solid var(--ui-line);border-radius:10px;background:#fbfdfd}.promotion-student-list li{padding:5px 2px}@media(max-width:900px){.annual-promotion-controls{grid-template-columns:1fr 1fr}.annual-promotion-controls label:first-child,.annual-promotion-controls .primary-button{grid-column:1/-1}}

/* Uniform section-heading rhythm after removing the explanatory subtitles. */
@media (min-width:761px){
  .content:not(.calendar-home){padding-top:24px!important}
  .content:not(.calendar-home)>.welcome-row{
    min-height:0!important;
    margin:0 0 18px!important;
    padding:0 2px!important;
    align-items:center!important;
  }
  .content:not(.calendar-home)>.welcome-row .eyebrow:empty{display:none!important}
  .content:not(.calendar-home)>.welcome-row h1{margin:0!important;line-height:1.08!important}
  .content:not(.calendar-home)>.page-back-nav+.welcome-row{margin-top:18px!important}
}

.schedule-timetable{display:grid!important;gap:14px!important}
.schedule-day{margin:0;padding:14px;border:1px solid var(--ui-line);border-radius:12px;background:#fbfdfd}
.schedule-day legend{padding:0 7px;color:var(--ui-navy);font-size:13px;font-weight:800}
.schedule-periods{display:grid;gap:8px}
.schedule-period-row{display:grid;grid-template-columns:120px minmax(220px,1fr) 38px;gap:8px;align-items:center}
.schedule-period-row input{width:100%;min-height:42px;padding:0 12px;border:1px solid #d7e1e5;border-radius:9px;background:#fff;color:var(--ui-navy);font:inherit}
.schedule-period-row button{width:38px;height:38px;border:1px solid #efd0ce;border-radius:9px;background:#fff4f2;color:#b63833;font-size:20px;cursor:pointer}
.add-schedule-period{display:inline-flex!important;width:auto!important;min-height:38px!important;margin-top:10px!important}
@media(max-width:600px){.schedule-day{padding:11px}.schedule-period-row{grid-template-columns:92px minmax(0,1fr) 36px}.schedule-period-row input{min-height:40px;padding:0 8px}.add-schedule-period{display:flex!important;width:100%!important}}

.schedule-grid-editor,.profile-schedule-table{min-width:880px;overflow:hidden;border:1px solid #cfdadd;border-radius:10px;background:#fff}
.modal-card.schedule-modal-card{width:min(1240px,96vw)!important}
.schedule-copy-bar{display:grid;grid-template-columns:minmax(280px,1fr) auto;align-items:end;gap:10px;margin-bottom:14px;padding:13px;border:1px solid #dce5e6;border-radius:10px;background:#f7faf9}.schedule-copy-bar label{display:grid;gap:6px;color:var(--ui-navy);font-size:11px;font-weight:800}.schedule-copy-bar select{min-height:42px}
.schedule-grid-head,.schedule-grid-row,.profile-schedule-header,.profile-schedule-row{display:grid;grid-template-columns:180px repeat(5,minmax(130px,1fr))}
.schedule-grid-head>* , .profile-schedule-header>*{padding:12px 10px;border-right:1px solid #d7dfe1;background:#f2f6f6;color:var(--ui-navy);font-size:12px;text-align:left}
.schedule-grid-row>*,.profile-schedule-row>span{min-height:48px;border-top:1px solid #d7dfe1;border-right:1px solid #d7dfe1}
.schedule-grid-row>input{width:100%;padding:9px;border:0;background:#fff;font:inherit}
.schedule-grid-row>label{display:grid;grid-template-columns:34px 1fr;align-items:center;padding:6px 8px}
.schedule-grid-row>label span{font-weight:800}
.schedule-grid-row>label input,.schedule-grid-row>label select{width:100%;min-width:0;padding:7px;border:1px solid #dce4e6;border-radius:7px;background:#fff;font:inherit}
.schedule-time-pair{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:4px}.schedule-time-pair select{padding:6px 3px!important;font-size:12px!important}.schedule-time-pair i{font-style:normal;color:#718496}
.profile-schedule-card{margin-top:14px!important;overflow:hidden}
.profile-schedule-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--ui-line)}
.profile-schedule-head h2{margin:0 0 4px;font-size:18px}.profile-schedule-head small{color:var(--ui-muted)}
.profile-schedule-table{min-width:760px;border:0;border-radius:0}
.profile-schedule-header,.profile-schedule-row{grid-template-columns:150px repeat(5,minmax(110px,1fr))}
.profile-schedule-row>span{display:flex;align-items:center;padding:10px;font-size:12px}.profile-schedule-row>span:first-child{display:grid;grid-template-columns:24px 1fr;gap:7px}.profile-schedule-row>span:first-child small{font-size:10px!important}
.schedule-grid-editor{overflow-x:auto}.profile-schedule-card{overflow-x:auto}
@media(max-width:760px){.schedule-copy-bar{grid-template-columns:1fr}.schedule-copy-bar button{width:100%}.schedule-grid-editor{min-width:760px}.schedule-grid-head,.schedule-grid-row{grid-template-columns:135px repeat(5,125px)}.profile-schedule-head{position:sticky;left:0;min-width:calc(100vw - 28px);background:#fff}.profile-schedule-table{min-width:760px}}
.resource-editor{display:grid;gap:6px;padding:8px}
.resource-editor .table-input{width:100%;min-width:0}
.homework-notebook.homework-locked .homework-table{background:#fbfcfc}
.homework-notebook.homework-locked .homework-table input:disabled,.homework-notebook.homework-locked .homework-table select:disabled{color:#18364f;background:#f5f7f7;opacity:1;cursor:default}
