/* Clear, spacious schedule UI. */
:root{--accent:#245bc9;--accent-dark:#19469e;--accent-soft:#edf3ff;--ink:#192b48;--muted:#64748b;--line:#e1e7f0;--canvas:#f3f6fb;--radius:16px;font-family:"Segoe UI",Arial,sans-serif}
.topbar{height:76px;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);padding:0 32px}.brand-mark{background:var(--accent);color:#fff;border:0}.brand strong{letter-spacing:.5px}.brand-divider{color:#b0bdce}.header-caption{color:var(--muted);font-size:13px}.layout{min-height:calc(100dvh - 76px);grid-template-columns:340px minmax(0,1fr)}
.sidebar{max-height:calc(100dvh - 76px);padding:28px 22px 0}.sidebar h1{font-size:25px;margin-bottom:22px}.eyebrow{color:#708098;letter-spacing:1.4px}.entity-tabs{background:#f0f3f8;gap:1px;padding:4px}.entity-tabs button{font-size:12px;min-height:44px;padding:10px 2px;color:#5c6c82}.entity-tabs button[aria-selected=true]{color:var(--accent);box-shadow:0 2px 6px #1a345a12}.search-field{min-height:50px;border-color:#d4deeb}.search-field input{font-size:14px}.search-hint{font-size:12px;color:var(--muted);line-height:1.6;margin:9px 2px 16px}.period-selects{margin-top:12px}.period-selects label{font-size:11px}.period-selects select,.group-filters select{font-size:12px;min-height:42px;color:#485a73}.catalog-caption{font-size:12px}.catalog-item{padding:12px 9px}.catalog-item .item-mark{background:#f0f4fa;color:#7a8fae;width:36px;height:36px}.catalog-item.selected{border-color:#cbdafa}.catalog-item.selected .item-mark{background:#dce8ff}.catalog-item:hover{background:#f3f6fc;border-color:#e4ebf5}.item-copy strong{font-size:14px}.item-copy small{font-size:12px;color:#6b7c93}.catalog-status{font-size:13px}.sidebar-bottom{font-size:11px;color:#738399}.favorites-section h2{font-size:12px}.favorite-chip{color:#345eaa;background:#f2f6ff;border-color:#d6e2fa;font-size:12px;min-height:38px}
.main{padding:28px 36px 24px;gap:0}.personal-panel{padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:30px;box-shadow:0 3px 14px #213d6503}.personal-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.personal-heading h2{font-size:21px;font-weight:650;letter-spacing:-.5px;margin:6px 0 0}.change-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid #d3e0f6;background:#f4f8ff;color:var(--accent);border-radius:10px;font-size:13px;font-weight:600}.change-button:hover{background:#e8f0ff}.change-button svg{width:17px;height:17px}.quick-access{display:flex;gap:10px;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin}.quick-card{display:flex;align-items:center;gap:11px;flex:0 0 auto;max-width:300px;min-width:150px;padding:13px 16px;border:1px solid var(--line);background:#fff;border-radius:12px;text-align:left;min-height:72px}.quick-card:hover{border-color:#b6ccef;background:#f7faff}.quick-card.active{border-color:#8eafe9;background:#eef4ff}.quick-icon{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;background:#f0f4fa;color:#6a80a1}.active .quick-icon{color:var(--accent);background:#dce8ff}.quick-copy{min-width:0}.quick-copy small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.quick-copy strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-check{color:var(--accent);margin-left:8px}.quick-empty{font-size:13px;line-height:1.7;color:var(--muted);padding:14px 16px;width:100%;border-radius:10px;background:#f7f9fc;border:1px dashed #d4deeb}.remember-hint{font-size:12px;line-height:1.6;color:#74849b;margin:12px 0 0;overflow-wrap:anywhere}
.schedule-heading{margin-bottom:18px}.entity-heading h1{font-size:34px;letter-spacing:-1px}.entity-heading p{font-size:13px;color:var(--muted)}.heading-actions{gap:8px}.icon-button{color:#667c9a;width:42px;height:42px}.icon-button:hover{border-color:#bdcfeb;background:#f3f7ff}.toolbar{padding:15px 0}.week-label{min-width:160px}.week-label strong{font-size:15px}.week-label>span{font-size:12px;color:#6b7d97}.today-button{font-size:13px;min-height:40px;color:#4f6380;padding:9px 14px}.view-switch{background:#e5ebf4}.view-switch button{font-size:13px;min-height:36px;padding:8px 16px}.date-button{height:42px;width:42px}.day-tabs{gap:8px;padding-bottom:18px}.day-tab{min-height:88px;padding:13px 6px;border-radius:12px}.day-tab .weekday{font-size:11px;color:#6d7f99}.day-tab .day-number{font-size:23px;color:#415574}.day-tab:hover{background:#e9eff8}.day-tab.is-today:not([aria-pressed=true]){border-color:#bcd0f2;background:#eef4ff}.day-tab[aria-pressed=true]{box-shadow:0 4px 12px #245bc922}.day-tab[aria-pressed=true] .weekday{color:#dce8ff}.day-tab .day-dot{width:4px;height:4px;background:#829bc3}.schedule-options{min-height:68px}.schedule-options>label{font-size:12px;color:#64748b}.schedule-options select{font-size:13px;min-height:38px;color:#415574}.freshness{font-size:11px;color:#73839a}.day-events{max-width:100%;margin:0}.day-title-row h2{font-size:19px}.day-title-row>span{font-size:12px;background:#e8eef7;color:#61748e}.lesson-row{grid-template-columns:85px minmax(0,1fr);gap:20px;margin-bottom:16px}.lesson-time strong{font-size:16px}.lesson-time>span{font-size:13px;color:#75849b}.lesson-card{padding:21px 24px;border-color:#e0e7f1;border-left-width:4px;box-shadow:0 3px 10px #213d6503}.lesson-card h3{font-size:18px;line-height:1.5;color:#20334f;margin-bottom:16px}.lesson-kind{font-size:11px;padding:5px 9px}.cycle-tag{font-size:11px;color:#78889d}.detail-row{font-size:13px;color:#5d718d;gap:8px 16px}.detail-row svg{width:15px;height:15px;color:#879bb8}.detail-row .room-line{color:#5d718d}.detail-row .subgroup-badge{font-size:11px;background:#eff3fa;color:#5b7294;padding:2px 7px}.detail-link{border:0;background:transparent;color:#345eaa;font-size:inherit;padding:2px 0;text-align:left;text-decoration:underline;text-decoration-color:#becfea;text-underline-offset:3px}.detail-link:hover{color:#173f89}.group-link{font-size:11px;background:#edf3ff;color:#486a9f;padding:6px 9px}.lesson-comment{font-size:12px;background:#f6f8fc;color:#66768e}.lesson-row.is-past{opacity:.8}.empty-day h3{font-size:16px;color:#60748e}.empty-day p{font-size:13px;color:#71849e}.empty-day{background:#fff;border-color:#cfdbea}.schedule-footer{font-size:12px;color:#76869d}.text-button{font-size:12px;color:#42679e}.page-footer{font-size:11px;color:#8391a5}.welcome{min-height:430px;padding:30px 0 55px}.welcome h2{color:#203859;font-size:42px;letter-spacing:-1.4px}.welcome>p{font-size:14px;color:#6a7d98}.welcome-icon{background:#e6efff;color:#5481d0}.welcome-spark{color:#90aedf}.welcome-features{font-size:12px;color:#7085a4;margin-top:34px}.primary-button{font-size:14px}.quick-examples{font-size:12px}.quick-examples button{font-size:12px;color:#4f6d9d;background:#eaf0fa;border-color:#d8e3f3}
@media(min-width:1600px){.main{padding:32px 64px}.day-events{max-width:1100px}}
@media(max-width:1200px){.layout{grid-template-columns:310px minmax(0,1fr)}.sidebar{padding-left:17px;padding-right:17px}.main{padding:24px}.week-label{min-width:115px}.week-label strong{font-size:13px}.week-label>span{font-size:11px}.view-switch button{padding:8px 10px}.entity-tabs button{font-size:11px}}
@media(max-width:850px){.layout{display:block}.topbar{height:68px;padding:0 20px}.mobile-search{color:var(--accent);border-color:#d4e1f6;background:#eff5ff;width:40px;height:40px}.sidebar{max-height:100dvh;padding:28px 20px 0;width:min(390px,94vw)}.main{padding:20px}.personal-panel{padding:18px;margin-bottom:24px}.personal-heading h2{font-size:20px}.entity-heading h1{font-size:30px}.entity-heading p{font-size:12px}.heading-actions .icon-button{width:38px;height:38px}.page-footer{font-size:10px}.welcome-features{font-size:11px}.entity-tabs button{font-size:12px}.toolbar{gap:8px}.week-label{min-width:145px}.week-label strong{font-size:14px}.week-label>span{font-size:12px}.view-switch button{font-size:12px}.lesson-row{grid-template-columns:72px minmax(0,1fr);gap:14px}.lesson-card h3{font-size:17px}.detail-row{font-size:13px}}
@media(max-width:500px){.topbar{padding:0 16px}.brand>span:last-child>span:last-child{font-size:13px}.main{padding:16px 12px}.personal-panel{border-radius:14px;padding:16px;margin-bottom:23px}.personal-heading{gap:8px;margin-bottom:14px}.personal-heading h2{font-size:19px}.personal-heading .eyebrow{font-size:9px}.change-button{font-size:12px;padding:9px 10px;min-height:42px;gap:5px}.change-button svg{width:14px}.quick-card{padding:11px 12px;min-width:155px;max-width:255px;min-height:68px}.quick-copy strong{font-size:14px}.remember-hint{font-size:11px}.entity-heading h1{font-size:28px;margin:8px 0}.entity-heading p{font-size:12px;max-width:250px}.heading-actions{max-width:86px;gap:5px}.heading-actions .icon-button{width:38px;height:38px}.toolbar{flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:4px;padding-bottom:14px}.week-navigation{width:100%;justify-content:space-between;gap:5px}.week-navigation>.icon-button{width:38px;height:40px}.week-label{flex:1;min-width:125px}.week-label strong{font-size:15px}.week-label>span{font-size:12px}.today-button{font-size:12px;padding:9px 12px}.view-tools{width:100%;justify-content:space-between}.view-switch{flex:1;max-width:240px}.view-switch button{flex:1;font-size:13px;min-height:36px}.date-button{width:42px;height:42px}.day-tabs{gap:3px}.day-tab{min-height:77px;padding:12px 2px 8px;border-radius:10px}.day-tab .weekday{font-size:10px;letter-spacing:.5px}.day-tab .day-number{font-size:21px}.schedule-options{gap:8px;flex-wrap:wrap;padding:10px 0 16px}.schedule-options>label{font-size:12px}.schedule-options select{font-size:12px;max-width:150px}.freshness{font-size:10px;max-width:none;margin-left:auto}.day-title-row{gap:8px;margin-bottom:16px}.day-title-row h2{font-size:16px}.day-title-row>span{font-size:11px;white-space:nowrap}.lesson-row{display:block;margin-bottom:20px}.lesson-time{padding:0 2px 9px;gap:6px}.lesson-time strong{font-size:14px;color:#3f5c86}.lesson-time>span{font-size:13px;color:#687e9d}.lesson-card{padding:18px 16px;border-radius:13px}.lesson-card h3{font-size:16px;line-height:1.5}.lesson-kind{font-size:10px}.detail-row{font-size:12px;line-height:1.8}.detail-row .room-line{width:100%}.detail-row .subgroup-badge{font-size:10px}.group-link{font-size:11px}.schedule-footer{font-size:10px;line-height:1.7}.schedule-footer button{font-size:11px}.welcome{min-height:400px}.welcome h2{font-size:32px}.welcome>p{font-size:13px}.welcome-features{flex-wrap:wrap;justify-content:center;gap:14px;font-size:11px}.page-footer{font-size:10px}.week-grid .lesson-card h3{font-size:13px}.week-grid .detail-row{font-size:11px}.week-grid .lesson-time strong,.week-grid .lesson-time>span{font-size:12px}.week-grid .lesson-kind{font-size:10px}.week-grid .group-link{font-size:10px}.week-grid .week-day-title h2{font-size:13px}}

/* Compact lessons: one assignment per group / teacher / room. */
.lesson-card{padding:16px 20px}.lesson-topline{margin-bottom:9px}.lesson-card h3{margin-bottom:11px;font-size:17px}.lesson-details{gap:7px}.detail-row{gap:5px 14px}.detail-line{min-width:0;max-width:100%}.detail-line>span,.detail-link{overflow-wrap:anywhere}.group-badge-link{border:0;cursor:pointer;text-align:left;font:inherit}.group-badge-link:hover{background:#dce8ff;color:var(--accent)}.lesson-groups:empty{display:none}.lesson-groups{margin-top:9px}.lesson-row{margin-bottom:12px}.detail-row .subgroup-badge{white-space:normal}.lesson-card .detail-link{line-height:1.55}
@media(max-width:850px){.lesson-card{padding:15px 17px}.lesson-card h3{font-size:16px}}
@media(max-width:500px){.lesson-card{padding:14px;border-radius:12px}.lesson-topline{margin-bottom:8px}.lesson-card h3{font-size:16px;line-height:1.4;margin-bottom:10px}.lesson-row{margin-bottom:14px}.lesson-time{padding-bottom:6px}.lesson-details{gap:10px}.detail-row{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;font-size:12px}.detail-row .subgroup-badge{justify-self:start;font-size:11px;padding:3px 7px}.detail-row .detail-line{gap:7px;align-items:flex-start;line-height:1.55}.detail-row svg{flex:none;margin-top:3px;width:14px;height:14px}.detail-row .room-line{width:auto}.lesson-card .detail-link{padding:2px 0;min-height:28px}.group-badge-link{min-height:28px}.week-grid .lesson-card{padding:12px}.week-grid .detail-row{font-size:11px}.week-grid .lesson-card h3{font-size:13px}}

@media(hover:hover){
.day-tab:hover,.day-tab.is-today:hover,.day-tab[aria-pressed=true]:hover{background:var(--accent);border-color:var(--accent);box-shadow:0 4px 12px #245bc922}
.day-tab:hover .weekday{color:#dce8ff}.day-tab:hover .day-number{color:#fff}.day-tab:hover .day-dot{background:#c5d7ff}
}

.day-tab[aria-pressed=true],.day-tab[aria-pressed=true]:hover{background:var(--accent);border-color:var(--accent)}
.day-tab[aria-pressed=true] .weekday{color:#dce8ff}.day-tab[aria-pressed=true] .day-number{color:#fff}

/* Week view uses the same readable cards as day view. */
.week-list{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;min-width:0}
.week-section{width:100%;min-width:0;padding-bottom:18px;border-bottom:1px solid var(--line)}
.week-section:last-child{border-bottom:0;padding-bottom:0}
.week-section .empty-day{padding:18px 20px;text-align:left;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.week-section .empty-day svg{width:22px;height:22px;margin:0}.week-section .empty-day h3{margin:0}.week-section .empty-day p{flex-basis:100%;padding-left:34px}
@media(max-width:500px){.week-list{gap:22px}.week-section{padding-bottom:14px}.week-section .empty-day{padding:14px}.week-section .empty-day p{padding-left:0}}

.day-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}

.header-mobile-actions{display:none}.personal-dialog{border:1px solid var(--line);border-radius:20px;padding:0;width:min(460px,calc(100vw - 24px));max-height:85dvh;overflow:auto;color:var(--ink);background:#fff;box-shadow:0 24px 80px #14264633}
.personal-dialog::backdrop{background:#172a4966;backdrop-filter:blur(3px)}.personal-close{position:absolute;right:14px;top:14px;z-index:1;border:0;background:#f2f5fa}.favorites-open{overflow:hidden}
.personal-dialog .personal-panel{border:0;box-shadow:none;margin:0;padding:24px 20px}.personal-dialog .personal-heading{padding-right:40px;flex-wrap:wrap;gap:18px;margin-bottom:20px}.personal-dialog .change-button{width:100%}.personal-dialog .quick-access{display:grid;gap:10px;overflow:visible}.personal-dialog .quick-card{width:100%;max-width:none;min-width:0}.personal-dialog .quick-copy{flex:1}.personal-dialog .remember-hint{margin-top:18px}
@media(max-width:850px){.header-mobile-actions{display:flex;gap:8px;flex:none}.mobile-favorites{display:inline-flex;color:var(--accent);border-color:#d4e1f6;background:#eff5ff;width:40px;height:40px}.topbar{gap:10px}.brand{min-width:0}.brand>span:last-child{min-width:0}.brand>span:last-child>span:last-child{font-size:12px}}
@media(max-width:380px){.brand-divider,.brand>span:last-child>span:last-child{display:none}.topbar{padding:0 14px}.personal-dialog .personal-panel{padding:22px 16px}}

.brand-logo{display:block;width:48px;height:51px;object-fit:contain;flex:none}
@media(max-width:850px){.brand-logo{width:38px;height:41px}.brand{gap:9px}}

/* Consistent select arrows with comfortable spacing. */
.period-selects select,.group-filters select,.schedule-options select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:14px 14px;padding-right:40px;padding-left:13px}
@media(forced-colors:active){.period-selects select,.group-filters select,.schedule-options select{appearance:auto;background-image:none}}

.group-filters{grid-template-columns:minmax(0,1fr) 116px}.schedule-options select{max-width:180px}
