:root{--bg:#f3f6f8;--surface:#fff;--surface-strong:#e9f0f5;--ink:#152b42;--muted:#61758a;--line:#d8e1e8;--accent:#d5a84d;--accent-dark:#a97920;--accent-soft:#f7e6bc;--info:#1d538a;--info-soft:#e6eff6;--shadow:none;--shadow-soft:none;--focus:0 0 0 3px rgba(213,168,77,.35);font-family:'Manrope',Arial,sans-serif;color-scheme:light}
html{scroll-behavior:smooth}body[data-page]{background:#f3f6f8;color:#152b42;font-family:'Manrope',Arial,sans-serif}.app-shell{width:100%;max-width:none;margin:0}.portal-header{min-height:68px;margin:0;padding-inline:28px;border-bottom:3px solid #d5a84d;border-radius:0;background:#102b4d;box-shadow:none}.portal-brand{letter-spacing:-.02em;text-transform:lowercase;font-size:1.15rem}.portal-brand__mark{width:38px;height:38px;background:#d5a84d;color:#102b4d;border-radius:50%;font-family:'Manrope',sans-serif}.portal-header__section,.portal-header__nav a{color:#c4d3e0}.portal-header__nav a:hover{background:#1d538a}.sync-status{margin:14px 28px 10px auto;border-color:#cbd8e2!important;border-radius:40px;background:#fff!important;color:#36536c!important;box-shadow:none}.sync-status__dot{background:#d5a84d!important}.login-panel,.role-view{border:1px solid #d8e1e8;border-radius:4px;box-shadow:none}.login-panel .inline-bar{background:#102b4d;border-bottom:3px solid #d5a84d}.login-panel .inline-bar .eyebrow{color:#f2d894}.login-panel h1{font-family:'Manrope',sans-serif;font-weight:500}.login-form .primary-action,.primary-action{background:#102b4d!important;color:#fff!important;border-color:#102b4d!important;border-radius:3px!important}.login-form .primary-action:hover,.primary-action:hover{background:#1d538a!important;border-color:#1d538a!important}.secondary-action{background:#fff!important;border:1px solid #a8bccd!important;color:#102b4d!important;border-radius:3px!important}.secondary-action:hover{background:#e8f0f6!important;border-color:#1d538a!important;color:#102b4d!important}.eyebrow,.kicker{color:#a97920}.visual-panel::after{background:linear-gradient(90deg,rgba(16,43,77,.92),rgba(16,43,77,.48),transparent)}.visual-panel img{filter:saturate(.88)}input,select,textarea{border:1px solid #b5c5d1;border-radius:3px;color:#152b42}input:focus,select:focus,textarea:focus{border-color:#1d538a;box-shadow:var(--focus)}
body:has(.portal-dashboard:not([hidden])) .portal-header{display:none}body:has(.portal-dashboard:not([hidden])) .sync-status{position:fixed;right:18px;bottom:14px;z-index:50;margin:0;font-size:.68rem;min-height:30px;padding:5px 10px}body:has(.portal-dashboard:not([hidden])) .app-shell{margin:0}.portal-dashboard,.booking-board.portal-dashboard,.instructor-shell.portal-dashboard{display:block;width:100%;min-height:100vh;margin:0;border:0;border-radius:0;background:#f3f6f8;box-shadow:none;overflow:visible;animation:none!important}.portal-layout{display:grid;grid-template-columns:248px minmax(0,1fr);align-items:start;min-height:100vh}.portal-side{position:sticky;top:0;display:flex;flex-direction:column;min-height:100vh;padding:30px 18px 24px;background:#102b4d;color:#fff}.portal-side__brand{display:flex;align-items:center;gap:11px;padding:0 12px 32px;text-decoration:none;color:#fff}.portal-side__brand span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#d5a84d;color:#102b4d;font-family:'Manrope',sans-serif;font-size:1.4rem}.portal-side__brand strong{font-size:1.27rem;letter-spacing:-.05em}.portal-side__person{display:flex;align-items:center;gap:12px;padding:20px 10px;border-top:1px solid #35516d;border-bottom:1px solid #35516d}.portal-avatar,.portal-profile-avatar{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;overflow:hidden;border-radius:50%;background:#d5a84d;color:#102b4d;font-size:1.1rem;font-weight:800}.portal-avatar img,.portal-profile-avatar img{width:100%;height:100%;object-fit:cover}.portal-side__person small,.portal-side__person strong{display:block}.portal-side__person small{margin-bottom:4px;color:#adc2d3;font-size:.63rem}.portal-side__person strong{font-size:.76rem;line-height:1.4}.portal-side__nav{display:grid;gap:3px;margin:28px -18px}.portal-side__nav button{min-height:49px;display:flex;align-items:center;width:100%;padding:0 24px;border:0;border-left:4px solid transparent;border-radius:0;background:transparent;color:#ccdae6;text-align:left;font-size:.79rem;font-weight:700}.portal-side__nav button:hover{background:#1d456e;color:#fff}.portal-side__nav button.active{border-left-color:#d5a84d;background:#1d456e;color:#fff}.portal-side__home{margin-top:auto;padding:12px;color:#e4cc92;text-decoration:none;font-size:.7rem;font-weight:800}.portal-main{min-width:0;padding:0 36px 70px}.portal-main__bar{display:flex;align-items:center;justify-content:space-between;min-height:88px;margin:0 -36px 28px;padding:0 36px;border-bottom:1px solid #d8e1e8;background:#fff}.portal-main__bar small,.portal-main__bar strong{display:block}.portal-main__bar small{color:#61758a;font-size:.65rem;font-weight:700}.portal-main__bar strong{margin-top:5px;color:#102b4d;font-size:.85rem}.portal-main__bar .secondary-action{min-height:37px;padding:0 17px}.portal-screen{min-width:0}.portal-screen.admin-panel{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;animation:none!important}.portal-screen__heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px;padding-bottom:20px;border-bottom:2px solid #d5a84d}.portal-screen__heading span{color:#1d538a;font-size:.72rem;font-weight:800}.portal-screen__heading h1{margin:8px 0 5px;color:#102b4d;font-family:'Manrope',sans-serif;font-size:clamp(2.6rem,3.5vw,4rem);font-weight:500;line-height:1.05}.portal-screen__heading p{margin:0;color:#61758a;font-size:.83rem}.portal-screen__heading .primary-action{min-height:43px;padding:0 17px;white-space:nowrap}.portal-welcome{position:relative;min-height:420px;overflow:hidden;background:#102b4d;color:#fff}.portal-welcome>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 52%}.portal-welcome::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,38,64,.94),rgba(13,38,64,.69) 49%,rgba(13,38,64,.08))}.portal-welcome>div{position:relative;z-index:1;max-width:570px;padding:65px 40px}.portal-welcome span{color:#edcd82;font-size:.76rem;font-weight:700}.portal-welcome h1{margin:15px 0;font-family:'Manrope',sans-serif;font-size:clamp(3.1rem,5vw,5.8rem);font-weight:500;line-height:1.05}.portal-welcome p{max-width:480px;color:#dce9f2;font-size:.88rem;line-height:1.6}.portal-welcome button{min-height:43px;margin-top:8px;padding:0 16px;border:0;border-radius:3px;background:#d5a84d;color:#102b4d;font-weight:800}.portal-welcome--instructor>img{object-position:center 60%}.portal-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:15px}.portal-quick-grid button{display:grid;justify-items:start;align-content:start;gap:12px;min-height:125px;padding:19px;border:1px solid #d8e1e8;border-top:4px solid #d5a84d;border-radius:0;background:#fff;text-align:left}.portal-quick-grid button:hover{background:#e9f0f5}.portal-quick-grid strong{font-family:'Manrope',sans-serif;color:#102b4d;font-size:1.45rem;font-weight:500}.portal-quick-grid span{color:#61758a;font-size:.72rem;line-height:1.45}.portal-explainer{margin-top:37px;padding:28px 30px;background:#fff}.portal-explainer h2{margin:0 0 17px;font-family:'Manrope',sans-serif;color:#102b4d;font-size:1.8rem;font-weight:500}.portal-explainer>div{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.portal-explainer p{display:grid;gap:6px;margin:0;padding-left:14px;border-left:3px solid #d5a84d}.portal-explainer b{font-size:.77rem}.portal-explainer span{color:#61758a;font-size:.72rem}
.portal-screen>.scheduler{padding:24px;background:#fff;border:1px solid #d8e1e8}.scheduler>.section-heading{border-color:#d5a84d}.scheduler h2,.student-bookings-panel h3,.admin-panel h2,.mini-panel h3{font-family:'Manrope',sans-serif;color:#102b4d;font-weight:500}.scheduler h2{font-size:2rem}.student-bookings-panel{position:static;margin:0;padding:26px;background:#fff;border:1px solid #d8e1e8;border-radius:0;color:#152b42}.student-bookings-panel .eyebrow{color:#a97920}.student-bookings-panel h3{color:#102b4d;font-size:2rem}.student-bookings-panel .empty-state{background:#e9f0f5;border-color:#c6d4df;color:#61758a}.segmented-filter{width:max-content;max-width:100%;background:#e9f0f5;border-color:#bdcdd9;overflow:auto}.segmented-filter button{color:#36536c}.segmented-filter button.active{background:#102b4d;color:#fff}.student-choice-summary div,.student-booking-card,.compact-booking-card,.notification-item,.booking-card,.school-card,.calendar-day,.analytics-card,.settings-summary{border-color:#d8e1e8;background:#fff;color:#152b42;box-shadow:none}.student-choice-summary div:first-child{border-top-color:#d5a84d}.student-choice-summary div:nth-child(2),.student-choice-summary div:nth-child(3){border-top-color:#1d538a}.booking-steps{border-color:#c5d3dd}.booking-steps span{border-color:#c5d3dd}.booking-steps span.complete{background:#102b4d}.booking-steps span.complete i{background:#d5a84d;color:#102b4d}.student-week-day{border-color:#cbd8e3;background:#f3f6f8}.student-week-day-head,.calendar-day-head{border-color:#1d538a;background:#1d538a}.week-slot-button.available:hover{background:#e9f0f5;border-color:#1d538a}.week-slot-button.selected{background:#d5a84d;border-color:#d5a84d;color:#102b4d}.empty-state{background:#e9f0f5;border-color:#c9d6e1;color:#61758a}.success-banner{margin-top:16px}
.portal-profile-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}.portal-profile-card{display:grid;justify-items:start;gap:13px;padding:27px;background:#e4edf3}.portal-profile-avatar{width:105px;height:105px;font-size:2.3rem}.portal-profile-card strong{margin-top:8px;color:#102b4d;font-family:'Manrope',sans-serif;font-size:1.7rem;font-weight:500}.portal-profile-card p{margin:0;color:#61758a;font-size:.72rem;line-height:1.5}.portal-avatar-upload{display:inline-flex;align-items:center;min-height:39px;padding:0 13px;border:1px solid #a7bdce;border-radius:3px;background:#fff;color:#102b4d;font-size:.7rem;font-weight:800;cursor:pointer}.portal-avatar-upload:focus-within{outline:3px solid #d5a84d;outline-offset:2px}.portal-avatar-upload input{position:absolute;width:1px;height:1px;opacity:0}.portal-profile-form,.portal-security{padding:30px;background:#fff;border:1px solid #d8e1e8}.portal-profile-form h2,.portal-security h2{margin:0 0 22px;color:#102b4d;font-family:'Manrope',sans-serif;font-size:2rem;font-weight:500}.portal-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.portal-field-grid .full{grid-column:1/-1}.portal-field-grid label,.portal-security label{display:grid;gap:7px;color:#36536c;font-size:.72rem;font-weight:800}.portal-field-grid input,.portal-field-grid textarea,.portal-security input{width:100%;min-height:45px;padding:10px 12px;background:#fff}.portal-field-grid textarea{resize:vertical}.portal-profile-form .primary-action,.portal-security .primary-action{min-height:44px;margin-top:20px;padding:0 18px}.portal-demo-hint,.portal-security>p{margin:16px 0 0;color:#61758a;font-size:.7rem}.portal-form-status{margin:10px 0 0;color:#32634a;font-size:.7rem}.portal-security{max-width:760px}.portal-security label{max-width:520px;margin-top:17px}.portal-security--compact{max-width:none;margin-top:17px}.portal-security--compact>div{display:grid;grid-template-columns:1fr 1fr;gap:16px}.portal-security--compact .secondary-action{margin-top:18px;padding:10px 16px}
.admin-panel>.section-heading{border-bottom-color:#d5a84d}.admin-panel>.section-heading h2{font-size:2.4rem}.admin-panel .eyebrow{color:#a97920}.admin-panel .section-description{color:#61758a}.instructor-dashboard-grid{gap:15px}.mini-panel{background:#fff;border-color:#d8e1e8}.journal-filters{background:#e4edf3;border-color:#cfdae4}.settings-section{border-color:#d8e1e8}.settings-section legend span{background:#d5a84d;color:#102b4d}.check-tile input:checked+span{background:#102b4d;border-color:#102b4d}.analytics-card{border-top-color:#d5a84d}.analytics-card strong{color:#a97920}.analytics-track i{background:#d5a84d}.drawer-backdrop{background:rgba(16,43,77,.6)}.edit-drawer,.booking-drawer{border-left-color:#d5a84d}.drawer-heading{border-bottom-color:#d5a84d}.icon-button{background:#102b4d;border-color:#102b4d}.icon-button:hover{background:#1d538a;border-color:#1d538a;transform:none}body[data-demo-preview=true]::after{content:'Предпросмотр дизайна · действия с сервером отключены';position:fixed;right:13px;bottom:13px;z-index:60;max-width:calc(100vw - 26px);padding:9px 12px;border-radius:3px;background:#d5a84d;color:#102b4d;font-size:.68rem;font-weight:800;box-shadow:0 5px 18px rgba(16,43,77,.14)}
@media(max-width:1080px){.portal-layout{grid-template-columns:210px minmax(0,1fr)}.portal-main{padding-inline:25px}.portal-main__bar{margin-inline:-25px;padding-inline:25px}.portal-quick-grid{gap:9px}.portal-profile-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:750px){.portal-layout{display:block}.portal-side{position:sticky;top:0;z-index:20;min-height:0;display:block;padding:0 12px 7px}.portal-side__brand{display:none}.portal-side__person{display:none}.portal-side__nav{display:flex;gap:2px;overflow-x:auto;margin:0;scrollbar-width:thin}.portal-side__nav button{flex:0 0 auto;min-height:53px;width:auto;padding:0 16px;border-left:0;border-bottom:3px solid transparent;white-space:nowrap}.portal-side__nav button.active{border-bottom-color:#d5a84d;border-left:0}.portal-side__home{display:none}.portal-main{padding:0 15px 60px}.portal-main__bar{min-height:66px;margin:0 -15px 16px;padding:0 15px}.portal-welcome{min-height:340px}.portal-welcome>div{padding:42px 24px}.portal-welcome h1{font-size:3.4rem}.portal-quick-grid{grid-template-columns:1fr}.portal-quick-grid button{min-height:85px}.portal-explainer>div{grid-template-columns:1fr}.portal-profile-layout{grid-template-columns:1fr}.portal-profile-card{grid-template-columns:auto 1fr;align-items:center}.portal-profile-avatar{grid-row:span 3}.portal-profile-card strong{margin:0}.portal-profile-card p{grid-column:1/-1}.portal-header{padding-inline:13px}.portal-header__section{display:none}.portal-header__nav a:first-child{display:none}.sync-status{max-width:200px}.admin-panel .journal-filters{grid-template-columns:1fr 1fr}.portal-screen>.scheduler{padding:15px}.portal-security--compact>div{grid-template-columns:1fr}}
@media(max-width:520px){.portal-main{padding-inline:10px}.portal-main__bar{margin-inline:-10px;padding-inline:10px}.portal-screen__heading{align-items:start;flex-direction:column}.portal-screen__heading h1{font-size:2.6rem}.portal-welcome{min-height:380px}.portal-welcome h1{font-size:3.25rem}.portal-profile-form,.portal-security{padding:21px}.portal-field-grid{grid-template-columns:1fr}.portal-field-grid .full{grid-column:auto}.portal-profile-card{padding:19px}.portal-security label{max-width:none}.admin-panel .journal-filters{grid-template-columns:1fr}.portal-main .admin-panel>.section-heading{display:block}.portal-main .admin-actions{margin-top:18px}.portal-main .admin-actions button{margin-bottom:7px}.portal-explainer{padding:22px}.portal-screen>.scheduler{padding:12px}.portal-welcome>div{padding:45px 20px}.student-bookings-panel{padding:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:1ms!important;transition-duration:1ms!important}}
/* Authentication has its own composition and shares the cabinet visual language. */
body[data-page="student"] #studentLoginView,body[data-page="instructor"] #instructorLoginView{width:min(1050px,calc(100% - 32px));max-width:none;display:grid;grid-template-columns:.9fr 1.1fr;align-items:stretch;margin:40px auto 70px;overflow:hidden}
body[data-page="student"] #studentLoginView>.top-bar,body[data-page="instructor"] #instructorLoginView>.top-bar{grid-column:1/-1}
.portal-login-visual{position:relative;grid-column:1;grid-row:2/4;min-height:540px;overflow:hidden;background:#102b4d;color:#fff}
.portal-login-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.portal-login-visual::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(16,43,77,.96),rgba(16,43,77,.12) 75%)}
.portal-login-visual>div{position:absolute;z-index:1;left:30px;right:30px;bottom:30px}
.portal-login-visual span{color:#f1d492;font-size:.72rem;font-weight:800}
.portal-login-visual h2{margin:12px 0;font-family:'Manrope',sans-serif;font-size:2.8rem;font-weight:500;line-height:1.08}
.portal-login-visual p{max-width:380px;margin:0;color:#d7e5ef;font-size:.79rem;line-height:1.6}
body[data-page="student"] #studentLoginView>.login-form,body[data-page="instructor"] #instructorLoginView>.login-form{grid-column:2;grid-row:2;width:100%;max-width:none;margin:0;padding:65px 52px;align-self:center}
body[data-page="student"] #studentLoginView>.login-form[hidden],body[data-page="instructor"] #instructorLoginView>.login-form[hidden]{display:none!important}
@media(max-width:750px){body[data-page="student"] #studentLoginView,body[data-page="instructor"] #instructorLoginView{display:block;margin:16px auto 50px}.portal-login-visual{min-height:180px}.portal-login-visual>div{left:20px;right:20px;bottom:17px}.portal-login-visual h2{font-size:1.9rem}.portal-login-visual p{display:none}body[data-page="student"] #studentLoginView>.login-form,body[data-page="instructor"] #instructorLoginView>.login-form{padding:29px 22px}}
