/* ПРО МЕДИА 2.1. Все border не толще 1px. */
:root{--portal-ink:#202327;--portal-muted:#646b75;--portal-surface:#f4f5f7;--portal-line:#e1e4e8}body{color:var(--portal-ink)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}button:disabled{cursor:wait;opacity:.6}.is-auth header,.is-auth footer,.is-auth .platform-bar{display:none}.auth-scene{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);background:#fff}.auth-art{background:#e9ecf2;position:relative;overflow:hidden;padding:62px 9%;display:flex;flex-direction:column;min-height:760px}.auth-art>.eyebrow{color:#535c6b;font-size:12px}.auth-art h1{font-size:clamp(48px,5.2vw,82px);letter-spacing:-.065em;line-height:1.02;position:relative;z-index:1;margin:36px 0 0}.auth-art img{position:absolute;top:29%;left:4%;width:106%;max-width:none;transform:rotate(-9deg);height:auto}.auth-art-bottom{position:relative;z-index:1;display:flex;justify-content:space-between;gap:20px;margin-top:auto;padding-top:480px;font-size:12px}.auth-panel{width:min(520px,100%);padding:58px 46px;margin:auto}.auth-panel>.text-link{font-size:13px;color:var(--portal-muted);margin-bottom:42px;display:inline-flex;gap:10px;align-items:center}.auth-panel>.text-link .icon{transform:rotate(180deg)}.auth-tabs{display:flex;gap:28px;border-bottom:1px solid var(--portal-line);margin-bottom:34px}.auth-tabs a{padding:13px 0;color:var(--portal-muted);font-size:15px;position:relative}.auth-tabs a[aria-current]{color:var(--portal-ink);font-weight:600}.auth-tabs a[aria-current]:after{content:'';height:1px;background:var(--portal-ink);position:absolute;bottom:-1px;left:0;right:0}.auth-panel h2{font-size:36px;line-height:1.13;letter-spacing:-.05em;margin:0 0 16px;text-wrap:balance}.auth-panel>p{font-size:15px;color:var(--portal-muted);line-height:1.65}.auth-form{margin-top:28px}.auth-form label{font-size:13px}.auth-form input,.auth-form select{min-height:50px;background:#fbfbfc;border-color:#cbd0d8;border-radius:10px;font-size:15px}.auth-form .btn{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:52px;margin-top:22px;font-size:14px}.auth-form .check-label{margin:18px 0 12px;align-items:flex-start;line-height:1.5}.auth-form .check-label input{min-height:0;width:18px;height:18px;flex:0 0 18px;margin-top:2px}.auth-form .check-label a{text-decoration:underline}.auth-form .help{font-size:12px;line-height:1.65}.auth-form .form-error{margin:0 0 16px}.form-error:empty{display:none}.auth-forgot{display:block;font-size:13px;text-align:right;text-decoration:underline;margin-top:-30px;padding:8px 0 8px 10px;margin-left:auto;width:fit-content;position:relative}.auth-privacy{font-size:12px!important;margin-top:32px;color:#6a7180!important}.auth-back{display:inline-block;margin-top:24px}.password-wrap{position:relative;display:flex;margin-bottom:18px}.password-wrap input{padding-right:90px;width:100%;margin-bottom:0}.password-wrap button{position:absolute;right:5px;top:3px;bottom:3px;background:transparent;border:0;padding:0 10px;font-size:12px;color:#4d586c;min-width:70px;min-height:44px}.auth-success{padding:24px 0}.auth-success>.icon{width:40px;height:40px;color:#3b58ed}.auth-success h3{font-size:26px;letter-spacing:-.04em}.auth-success p{color:var(--portal-muted);font-size:14px;line-height:1.7}.auth-success>.text-link{display:block;text-align:center;margin-top:20px}.is-workspace header,.is-workspace footer,.is-workspace .platform-bar{display:none}.is-workspace main{background:var(--portal-surface);min-height:100dvh}.workspace{grid-template-columns:242px minmax(0,1fr);gap:40px;padding:0 40px 0 0;max-width:1580px;margin:auto;min-height:100dvh}.workspace>section{padding:34px 0 70px;min-width:0}.portal-sidebar{background:#202329;border:0;padding:34px 18px 22px;color:#f7f8fc;min-height:100dvh;position:sticky;top:0;height:100dvh;align-self:start;overflow-y:auto}.workspace-brand{display:block;font-weight:700;letter-spacing:-.04em;font-size:26px;margin:4px 14px 35px}.workspace-brand span{display:block;font-size:11px;letter-spacing:0;font-weight:400;color:#b5bdc9;margin-top:5px}.portal-sidebar .role-switch{background:#30353e;border-color:#454d59;border-radius:13px;margin-bottom:22px;color:white;padding:13px 12px;min-height:80px}.portal-sidebar .role-switch small{font-size:10px;color:#c0c7d3}.portal-sidebar .role-switch strong{font-size:13px;line-height:1.4;font-weight:500}.portal-sidebar .role-emblem{background:#444b5a;color:#e0e6ff;width:34px;height:34px;flex-basis:34px}.portal-sidebar .side-links{gap:4px}.portal-sidebar .side-links a{font-size:13px;color:#c9d0db;min-height:46px;border-radius:9px;padding:11px 13px}.portal-sidebar .side-links a:hover{background:#303640;color:#fff}.portal-sidebar .side-links a.active{background:#eff2ff;color:#242e52}.portal-sidebar .side-links a .icon{width:18px;height:18px}.portal-sidebar .account-card{margin-top:auto;padding:24px 4px 10px;border-top:1px solid #454d59;display:flex;gap:10px;align-items:center}.portal-sidebar .account-card>span:nth-child(2){min-width:0;flex:1}.portal-sidebar .account-card strong{color:#fff;font-size:12px;overflow-wrap:anywhere}.portal-sidebar .account-card small{color:#c0c7d3;font-size:10px}.portal-sidebar .avatar{background:#444c5d;color:#fff;flex:0 0 34px;width:34px;height:34px;font-size:15px}.portal-sidebar .logout-link{color:#c9d0db;padding:15px 6px 0;font-size:12px}.portal-sidebar .cabinet-menu{margin-bottom:30px}.nav-dot{width:6px;height:6px;border-radius:50%;background:#ed997c;margin-left:auto}.school-top{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:26px;border-bottom:1px solid var(--portal-line);margin-bottom:36px}.school-top .eyebrow{font-size:10px;letter-spacing:.04em;display:block;margin-bottom:7px;color:#666f7e}.school-identity{font-size:13px;font-weight:500}.school-top-actions{display:flex;gap:12px;align-items:center}.school-top-actions select{max-width:190px;border:1px solid var(--portal-line);border-radius:9px;padding:10px;background:white;font-size:12px}.profile-chip{background:#fff;border:1px solid var(--portal-line);border-radius:100px;padding:10px 15px;display:flex;gap:10px;align-items:center;font-size:12px;min-height:44px}.profile-chip .icon{width:17px;height:17px}.school-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 30px}.school-heading h1,.profile-layout h1{font-size:clamp(30px,3.4vw,46px);line-height:1.12;letter-spacing:-.055em;margin:12px 0 16px}.school-heading p{font-size:14px;color:var(--portal-muted);line-height:1.7;margin:0}.school-heading .btn{white-space:nowrap;min-height:48px;font-size:12px}.school-heading .eyebrow{font-size:11px;color:#586278}.school-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 28px}.school-metrics a{background:white;border:1px solid var(--portal-line);border-radius:16px;padding:22px;position:relative;transition:border-color 160ms}.school-metrics a:hover{border-color:#6478c2}.school-metrics span{font-size:12px;color:var(--portal-muted);display:block}.school-metrics strong{font-size:40px;letter-spacing:-.05em;font-weight:500;display:block;margin-top:12px}.school-metrics .icon{position:absolute;right:20px;bottom:23px;color:#6f7a8e;width:18px}.school-dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;margin-bottom:24px}.school-section{padding:26px;border:1px solid var(--portal-line);border-radius:17px;background:#fff;min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.section-heading h2{font-size:20px;letter-spacing:-.035em;line-height:1.2;margin:0}.section-heading>a{font-size:12px;white-space:nowrap;color:#4d5e8f}.calm-empty{text-align:center;padding:35px 15px}.calm-empty>.icon{width:35px;height:35px;color:#6c79a5;margin-bottom:12px}.calm-empty h2,.calm-empty h3{font-size:20px;letter-spacing:-.03em;line-height:1.3;margin:10px 0}.calm-empty p{font-size:13px;color:var(--portal-muted);line-height:1.7;max-width:370px;margin:0 auto 20px}.calm-empty .text-link{font-size:13px}.school-note{background:#e6eaf1;border:1px solid #dce2ed;border-radius:17px;padding:28px;position:relative;overflow:hidden;min-height:340px}.school-note h2{font-size:29px;letter-spacing:-.05em;line-height:1.13;margin:16px 0}.school-note p{font-size:13px;line-height:1.7;color:#596373;max-width:75%;position:relative;z-index:1}.school-note>.eyebrow{font-size:10px}.school-note .text-link{font-size:12px;position:relative;z-index:1}.school-note img{width:170px;position:absolute;right:-45px;bottom:-40px;transform:rotate(-25deg);pointer-events:none}.inline-empty{padding:24px 0;color:var(--portal-muted);font-size:14px;line-height:1.7}.inline-notice{padding:18px 20px;border:1px solid #d7dfea;background:#f0f3f8;border-radius:12px;font-size:13px;line-height:1.7;color:#4e5d72;margin:15px 0}.inline-notice a{text-decoration:underline}.school-onboard{padding:20px 0}.school-onboard h1{font-size:52px;letter-spacing:-.055em;line-height:1.08}.school-onboard p{max-width:540px;line-height:1.8;color:var(--portal-muted)}.school-onboard ol{margin-top:40px;font-size:15px;line-height:2.5;padding-left:20px;color:var(--portal-muted)}.events-controls{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px;flex-wrap:wrap}.filter-tabs{display:flex;gap:5px;flex-wrap:wrap;background:#e8ebf0;border-radius:10px;padding:4px}.filter-tabs button{background:transparent;color:#576273;border:0;border-radius:7px;padding:10px 12px;min-height:44px;font-size:12px}.filter-tabs button[aria-pressed=true]{background:#fff;color:#252b35;box-shadow:0 1px 4px #28374a0c}.event-search{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #d7dce4;border-radius:10px;padding:8px 13px;min-height:52px;max-width:100%}.event-search input{border:0;background:transparent;font-size:13px;width:160px;min-width:0;outline:0}.event-search .icon{width:18px;height:18px;color:#657185}.school-event{display:flex;gap:22px;padding:26px 0;border-bottom:1px solid var(--portal-line)}.school-event:last-child{border:0;padding-bottom:0}.school-event:first-child{padding-top:0}.event-date-stamp{width:62px;flex:0 0 62px;height:76px;background:#f0f2f7;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center}.event-date-stamp strong{font-size:29px;letter-spacing:-.05em;line-height:1.2}.event-date-stamp span{font-size:12px;color:#586478}.school-event-info{min-width:0;flex:1}.school-event-info h3{font-size:20px;line-height:1.3;letter-spacing:-.03em;margin:12px 0;overflow-wrap:anywhere}.school-event-info>p{font-size:13px;color:var(--portal-muted);margin:0 0 16px}.event-tags{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px;color:#596578}.event-tags .tag{font-size:10px}.event-actions{display:flex;gap:18px;flex-wrap:wrap}.event-actions .text-link{font-size:12px;min-height:44px;display:inline-flex;align-items:center}.moderation-note{background:#fcf3e9;border-radius:10px;padding:15px;font-size:12px;line-height:1.6;margin-bottom:12px}.moderation-note p{margin:6px 0 0}.team-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.member-item{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:20px 0;border-bottom:1px solid var(--portal-line)}.member-item:last-child{border:0}.member-item>div:nth-child(2){flex:1;min-width:130px}.member-item strong,.member-item small{display:block}.member-item strong{font-size:14px}.member-item small{font-size:12px;color:var(--portal-muted);margin-top:5px}.member-item .avatar{width:40px;height:40px;flex-basis:40px}.member-item .actions{gap:12px;margin:0}.member-item .btn,.member-item .text-link{font-size:12px}.count-pill{background:#edf0f5;border-radius:30px;padding:4px 10px;font-size:12px}.context-head .eyebrow{font-size:10px}.context-head h2{font-size:34px;margin-top:15px}.context-head p{font-size:14px}.context-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:25px 0}.context-card{text-align:left;background:#f8f9fb;border:1px solid #dfe3ea;border-radius:14px;padding:20px;position:relative;min-height:218px;color:var(--portal-ink);transition:background 160ms,border-color 160ms}.context-card:hover{background:#eff2f9;border-color:#8191bb}.context-card.selected{background:#edf0ff;border-color:#667ac1}.context-card .role-emblem{width:37px;height:37px}.context-card strong{display:block;font-size:17px;letter-spacing:-.025em;margin:19px 0 8px}.context-card small{display:block;font-size:12px;color:#576277;line-height:1.6;min-height:38px}.context-check{position:absolute;right:18px;top:22px;color:#5d6f9e}.context-check .icon{width:18px;height:18px}.context-status{display:block;margin-top:18px;font-size:11px;color:#4a5b91}.context-help{padding-top:15px;border-top:1px solid var(--portal-line)}dialog:has(.context-grid){width:min(650px,calc(100% - 32px));padding:36px}.profile-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:24px}.profile-large-avatar{width:82px;height:82px;display:flex;align-items:center;justify-content:center;background:#e8edf8;color:#394a77;border-radius:24px;font-size:36px;margin-bottom:24px}.profile-main>h2{font-size:27px;letter-spacing:-.04em;margin:0 0 10px}.profile-main>p{font-size:14px;color:var(--portal-muted);margin-bottom:28px}.profile-completion{font-size:12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;background:#f5f6f9;padding:18px;border-radius:11px}.profile-completion>div{flex:0 0 100%;height:4px;background:#dde2eb;border-radius:10px;overflow:hidden}.profile-completion i{display:block;height:100%;background:#536da8}.profile-data{margin:25px 0 0;display:grid;grid-template-columns:1fr;gap:5px}.profile-data dt{font-size:11px;color:#6b7586;margin-top:14px}.profile-data dd{font-size:14px;line-height:1.65;margin:0;overflow-wrap:anywhere}.profile-data a{color:#405e9b;text-decoration:underline}.profile-secondary{display:flex;flex-direction:column;gap:24px}.profile-secondary h2{font-size:22px;letter-spacing:-.035em;margin:14px 0 18px}.profile-secondary .eyebrow{font-size:10px}.profile-secondary p{font-size:13px;color:var(--portal-muted);line-height:1.7}.profile-secondary .text-link{font-size:13px}.profile-role{display:flex;gap:14px;align-items:center;text-align:left;width:100%;border:0;border-bottom:1px solid var(--portal-line);padding:15px 0;background:none;min-height:65px}.profile-role:last-child{border:0}.profile-role>span:nth-child(2){flex:1}.profile-role strong,.profile-role small{display:block}.profile-role strong{font-size:13px;font-weight:500}.profile-role small{font-size:11px;color:#657187;margin-top:5px}.profile-role>.icon{width:17px;color:#66738e}.people-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.person-card{background:#fff;border:1px solid var(--portal-line);border-radius:15px;padding:22px}.person-card .profile-summary{gap:12px}.person-card h3{font-size:16px;margin:0}.person-card .profile-summary p{font-size:11px;overflow-wrap:anywhere;margin:5px 0 0}.person-card>p{font-size:12px;color:var(--portal-muted);line-height:1.7}.person-card>.text-link{display:inline-block;font-size:12px;margin-top:20px}.wizard-steps{display:flex;list-style:none;gap:15px;padding:0;border-bottom:1px solid var(--portal-line);padding-bottom:20px;margin:25px 0}.wizard-steps li{flex:1;font-size:12px;display:flex;align-items:center;gap:8px;color:#697588}.wizard-steps span{display:flex;align-items:center;justify-content:center;width:25px;height:25px;background:#edf0f5;border-radius:50%;font-size:11px}.wizard-steps li[aria-current]{color:#314d92;font-weight:600}.wizard-steps li[aria-current] span{background:#314d92;color:white}.wizard-buttons{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:25px}.wizard-buttons .btn{font-size:12px;min-height:46px;margin:0}.event-preview{padding:20px;border:1px solid var(--portal-line);border-radius:12px}.event-preview h3{font-size:23px;letter-spacing:-.04em}.event-preview>p{white-space:pre-line;font-size:14px}.platform-form input,.platform-form textarea,.platform-form select{font-size:15px}.platform-form label{font-size:13px}.platform-form .help,dialog p{font-size:13px;line-height:1.7}.platform-form input:not([type=checkbox]),.platform-form select{min-height:48px}.workspace .manage-nav{display:none}.workspace>section>.section-title h1{font-size:40px}.workspace>section>.section-title>p{font-size:14px}.portal-sidebar .cabinet-menu>summary{color:#e4e8f1}.workspace .card{border-color:var(--portal-line)}
@media(min-width:901px){.portal-sidebar .cabinet-menu{display:block;flex:1}.portal-sidebar .account-card{flex-shrink:0}}
@media(max-width:1150px) and (min-width:901px){.workspace{grid-template-columns:218px minmax(0,1fr);gap:26px;padding-right:26px}.school-heading{align-items:flex-start;flex-direction:column}.school-dashboard-grid,.team-columns{grid-template-columns:1fr}.school-note{min-height:280px}.profile-layout{grid-template-columns:1fr}.school-top-actions .profile-chip{font-size:0;gap:0}.school-top-actions .profile-chip .icon{width:18px}.auth-panel{padding-left:34px;padding-right:34px}}
@media(max-width:900px){.workspace{display:block;padding:0 5% 45px}.workspace>section{padding:20px 0 30px}.portal-sidebar{height:auto;min-height:0;position:relative;top:auto;margin:0 -5.55% 0;padding:18px 5%;display:grid;grid-template-columns:1.2fr 1fr;gap:12px;overflow:visible;z-index:5}.workspace-brand{display:none}.portal-sidebar .role-switch{margin:0;min-height:66px;padding:10px}.portal-sidebar .role-switch strong{font-size:12px}.portal-sidebar .role-switch small{font-size:9px}.portal-sidebar .cabinet-menu{margin:0;align-self:stretch}.portal-sidebar .cabinet-menu>summary{min-height:66px;border-color:#454d59;background:#30353e;border-radius:12px;display:flex;align-items:center;font-size:12px;gap:10px;padding:13px}.portal-sidebar .cabinet-menu[open] .side-links{position:absolute;left:5%;right:5%;top:94px;padding:14px;background:#252b33;border:1px solid #48515f;border-radius:12px;box-shadow:0 15px 30px #18223720}.portal-sidebar .account-card,.portal-sidebar .logout-link{display:none}.school-top{margin-bottom:28px;padding-bottom:20px;gap:10px}.school-top-actions .profile-chip{display:none}.school-top .eyebrow{font-size:9px}.school-identity{font-size:12px}.school-heading{align-items:flex-start}.school-heading h1{font-size:34px}.school-dashboard-grid{grid-template-columns:1fr 1fr;gap:16px}.school-section{padding:22px}.section-heading{gap:10px}.section-heading>a{font-size:11px}.school-note h2{font-size:27px}.school-note p{max-width:80%}.profile-layout{grid-template-columns:1fr 1fr}.auth-art{padding:50px 7%;min-height:740px}.auth-art h1{font-size:52px}.auth-panel{padding:40px 30px}.auth-panel h2{font-size:30px}.auth-art img{top:35%;left:-5%;width:120%}.auth-art-bottom{font-size:10px;padding-top:470px}.auth-forgot{margin-top:0;text-align:left;padding-left:0}.auth-panel>.text-link{margin-bottom:28px}.auth-form .check-label{font-size:12px}}
@media(max-width:650px){.auth-scene{display:block}.auth-art{display:none}.auth-panel{padding:30px 24px 45px;min-height:100dvh;max-width:480px}.auth-panel h2{font-size:34px}.auth-panel>.text-link{margin-bottom:30px}.auth-tabs{margin-bottom:30px}.auth-panel>p{font-size:14px}.auth-form{margin-top:25px}.school-heading{flex-direction:column;gap:17px}.school-heading h1{font-size:32px;margin-top:10px}.school-heading p{font-size:13px}.school-heading>.btn{width:100%;justify-content:center}.school-top{align-items:flex-start}.school-top-actions select{width:130px;max-width:130px;font-size:11px}.school-metrics{gap:9px;margin-bottom:20px}.school-metrics a{padding:17px 13px;border-radius:12px}.school-metrics span{font-size:11px}.school-metrics strong{font-size:31px;margin-top:10px}.school-metrics .icon{width:14px;right:10px;bottom:20px}.school-dashboard-grid,.team-columns,.profile-layout,.people-grid{grid-template-columns:1fr}.school-note{min-height:300px}.school-section{padding:21px}.section-heading h2{font-size:18px}.section-heading>a{font-size:11px}.school-event{gap:14px;padding:24px 0}.event-date-stamp{width:48px;flex-basis:48px;height:64px;border-radius:9px}.event-date-stamp strong{font-size:25px}.event-date-stamp span{font-size:11px}.school-event-info h3{font-size:18px}.school-event-info>p{font-size:12px}.event-actions{gap:5px 17px}.event-actions .text-link{font-size:11px}.events-controls{gap:14px}.filter-tabs{width:100%;gap:3px}.filter-tabs button{font-size:11px;padding:8px 9px}.event-search{width:100%}.event-search input{width:100%}.context-grid{gap:10px}.context-card{padding:16px 13px;min-height:225px}.context-card strong{font-size:15px}.context-card small{font-size:11px}.context-card .role-emblem{width:32px;height:32px}.context-check{right:12px;top:20px}.context-head h2{font-size:29px}.context-head p{font-size:13px}.context-status{font-size:10px;line-height:1.5}.context-help{font-size:12px}dialog:has(.context-grid){padding:30px 20px}.school-onboard h1{font-size:40px}.school-onboard ol{font-size:13px;line-height:2.1}.wizard-steps{gap:9px}.wizard-steps li{font-size:11px;gap:5px}.wizard-buttons .btn{flex:1;white-space:normal}.profile-main>h2{font-size:26px}.profile-secondary .school-section{padding:24px}.person-card .profile-summary>div{min-width:0}.workspace>section>.section-title h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){.context-card,.school-metrics a{transition:none}}

.local-test{position:fixed;bottom:10px;right:12px;z-index:100;background:#fff;color:#4d5c76;border:1px solid #c8d2e4;border-radius:8px;padding:7px 11px;font-size:10px;box-shadow:0 3px 15px #2437580c;pointer-events:none}

.school-settings-card{max-width:780px}.school-settings-card h2{font-size:30px;letter-spacing:-.04em;line-height:1.2}.school-settings-card>p{font-size:14px;line-height:1.8;color:var(--portal-muted);white-space:pre-line}.school-settings-card .actions{margin-top:30px}dialog h2:focus{outline:0}
html{margin-top:0!important}
@media(max-width:900px){.portal-sidebar .cabinet-menu{position:static}.portal-sidebar .cabinet-menu[open] .side-links{left:5%;right:5%;top:94px;min-width:0;max-width:none;width:auto;z-index:30}}
