:root{font-family:system-ui,-apple-system,sans-serif;color:#183c35;background:#f6f4ec;line-height:1.6}*{box-sizing:border-box}body{margin:0}header{max-width:1160px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dce2d8}.brand{font-size:21px;font-weight:750;text-decoration:none}.brand span{display:block;font-size:13px;letter-spacing:.04em;font-weight:400}a{color:#225c4d;text-underline-offset:4px}nav{display:flex;gap:22px;align-items:center;flex-wrap:wrap}nav form{margin:0}main{max-width:1050px;padding:64px 24px;margin:auto;min-height:75vh}.panel{background:#fffef8;border:1px solid #dce2d8;border-radius:20px;padding:40px}.narrow{max-width:580px;margin:auto}h1{font-size:clamp(26px,4vw,38px);line-height:1.2;margin:12px 0 24px;letter-spacing:-.025em}.eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:.13em;color:#627568}label{display:block;font-weight:550;margin-bottom:6px}input:not([type=checkbox]):not([type=hidden]),textarea,select{width:100%;font:inherit;padding:12px;border:1px solid #abbeb2;border-radius:8px;background:white;color:inherit}input[type=checkbox]{width:18px;height:18px;accent-color:#245749}button{font:inherit;background:#245749;color:white;border:0;border-radius:8px;padding:12px 22px;cursor:pointer}.quiet{background:transparent;color:#245749;padding:0}.links{display:flex;flex-wrap:wrap;gap:18px;font-size:14px;margin-top:26px}.error,.errorlist{color:#9d302a}.documents{background:#edf1e9;padding:16px;border-radius:10px;font-size:14px}footer{padding:28px;text-align:center;font-size:13px;color:#687b6f}.document-body{overflow-wrap:anywhere}:focus-visible{outline:3px solid #bb9c47;outline-offset:3px}@media(max-width:600px){header{padding:18px;align-items:flex-start;gap:12px}nav{gap:12px;font-size:14px}main{padding:28px 16px}.panel{padding:24px 20px}.brand{font-size:18px}.brand span{font-size:11px}}

.dashboard-heading{display:flex;justify-content:space-between;gap:24px;align-items:center}.status-card{background:#e8eee3;padding:20px;border-radius:12px;max-width:340px}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px}.field-wide{grid-column:1/-1}.help{font-size:13px;color:#597262;margin:6px 0}.profile-preview{width:100px;height:100px;object-fit:cover;border-radius:16px;margin-bottom:24px}.notice{background:#e8eee3;padding:16px 20px;border-radius:10px}.panel+ .panel,#profile-form .panel{margin-bottom:24px}.training-row{border:1px solid #c8d4c7;border-radius:12px;padding:20px;margin-bottom:20px;min-width:0}.secondary{background:#e8eee3;color:#245749}.form-actions{display:flex;flex-wrap:wrap;gap:12px}.request-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid #dce2d8;padding:14px 0}.request-row p{flex-basis:100%;margin:0}.profile-fields input[type=checkbox]{margin-right:8px}.profile-fields label:has(input[type=checkbox]){font-weight:400}#profile-form ul.errorlist{padding-left:20px}@media(max-width:600px){.profile-fields{grid-template-columns:1fr}.dashboard-heading{display:block}.status-card{max-width:none;margin-bottom:24px}.form-actions button{width:100%}}

.skip-link{position:absolute;top:-100px;left:12px;padding:10px;background:#fff;z-index:5}.skip-link:focus{top:8px}.public-main{max-width:1280px}.button{display:inline-block;background:#245749;color:#fff;border-radius:8px;padding:12px 22px;text-decoration:none;text-align:center}.button.secondary{background:#e8eee3;color:#245749}button:disabled{background:#d9dfd6;color:#667468;cursor:default}.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:50px;align-items:center;padding:24px 0 72px}.hero h1{font-size:clamp(42px,5.5vw,76px);font-weight:650;line-height:1.06}.hero h1 em,.art-core em{font-family:Georgia,serif;font-weight:400;color:#52724c}.hero-lead{max-width:520px;font-size:19px;color:#607269;margin:28px 0}.hero-art{height:440px;position:relative;overflow:hidden;background:#e7e8c9;border-radius:46% 46% 36% 36%;display:flex;align-items:center;justify-content:center}.art-core{text-align:center;font-size:32px;line-height:1.25;z-index:1;position:relative}.orbit{position:absolute;border:1px solid #99ad7c;border-radius:50%;width:85%;height:65%;transform:rotate(-35deg)}.orbit-two{transform:rotate(35deg)}.orbit-three{height:92%;width:40%;transform:rotate(20deg)}.art-dot{position:absolute;top:60px;right:80px;width:32px;height:32px;background:#c8a257;border-radius:50%;box-shadow:-270px 240px 0 -5px #427158}.mission{max-width:750px;margin:30px 0 52px}.mission h2{font-size:clamp(28px,4vw,46px);line-height:1.15;letter-spacing:-.025em}.mission p:last-child{font-size:18px;color:#607269}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin:60px 0}.benefits article{border-top:1px solid #adbda7;padding-top:20px}.benefits article>span{font-family:Georgia,serif;font-size:28px;color:#8d9a76}.benefits h3{font-size:22px}.benefits p{color:#607269}.join-panel{display:flex;align-items:center;justify-content:space-between;gap:30px;background:#e5eadb;border-radius:24px;padding:42px;margin:80px 0}.catalog-layout{display:grid;grid-template-columns:240px 1fr;gap:30px;align-items:start}.filter-panel{background:#e9eddf;border-radius:16px;padding:20px}.filter-panel>summary{font-weight:650;cursor:pointer}.filter-panel form{font-size:14px}.filter-panel button{width:100%;padding:12px}.filter-reset{display:block;text-align:center;margin-top:16px}.filter-panel label:has(input){font-weight:400}.teacher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.teacher-card{border:1px solid #c9d1c5;border-radius:25px;overflow:hidden;background:#fffef9;min-width:0;scroll-margin-top:20px}.teacher-card:target{outline:3px solid #5f7c55;outline-offset:5px}.teacher-card.level-3{border:2px solid #bfc6cd;background:linear-gradient(135deg,#f1f3f5,#fff 40%)}.teacher-card.level-4{border:2px solid #e5c873;background:linear-gradient(135deg,#fff3d3,#fff 40%)}.card-photo{height:260px;background:#e2e7da;position:relative}.card-photo img{width:100%;height:100%;object-fit:cover}.level-badge{position:absolute;bottom:16px;left:16px;right:16px;background:#edf0e8;color:#425847;border-radius:30px;padding:10px 14px;font-size:12px;font-weight:650;line-height:1.4}.level-3 .level-badge{background:#dce2e7;color:#465966}.level-4 .level-badge{background:#f0d780;color:#65501d}.card-body{padding:24px}.card-body h2{font-size:25px;line-height:1.2;margin:6px 0 20px}.location{color:#718178;font-size:14px}.recommended{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#96752b}.card-body dl>div{display:grid;grid-template-columns:90px 1fr;gap:12px;border-bottom:1px solid #dce2d8;padding:14px 0;font-size:14px}.card-body dt{text-transform:uppercase;font-size:11px;color:#748079;padding-top:3px;letter-spacing:.04em}.card-body dd{margin:0;font-weight:550}.card-note{background:#f4f5ef;border:1px dashed #cdd3c8;border-radius:15px;padding:18px;margin:18px 0;font-size:14px;overflow-wrap:anywhere}.card-note h3{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#718078;margin:0 0 10px}.card-note p{margin:0;white-space:pre-line}.card-body details{font-size:13px;overflow-wrap:anywhere}.card-body details summary{cursor:pointer}.tags{display:flex;flex-wrap:wrap;list-style:none;padding:0;gap:6px;font-size:11px}.tags li{background:#e9eddf;padding:4px 9px;border-radius:20px}.card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.card-actions>*{flex:1;font-size:14px;padding:11px 14px}.permalink{font-size:12px;display:inline-block;margin-top:16px;color:#738171}.pagination{justify-content:center;margin:38px 0;gap:8px}.pagination a{padding:7px 13px;border:1px solid #cad5c6;border-radius:7px;text-decoration:none}.pagination a[aria-current]{background:#245749;color:#fff}.empty-state{grid-column:1/-1}.results-count{margin-top:0;color:#718178;font-size:14px}.pedagog-layout{display:grid;grid-template-columns:minmax(0,440px) 1fr;gap:32px;align-items:start}.pedagog-layout>.panel{min-width:0;overflow-wrap:anywhere}dialog{border:1px solid #c7d4c2;border-radius:22px;padding:34px;max-width:calc(100vw - 32px);width:450px;color:#183c35;background:#fffef9}dialog::backdrop{background:#183c3580}.dialog-close{float:right;padding:0 0 14px 14px}.contact-links{list-style:none;padding:0}.contact-links li{margin:16px 0}@media(max-width:1000px){.hero{gap:25px}.hero-art{height:350px}.catalog-layout{grid-template-columns:210px 1fr;gap:20px}.teacher-grid{gap:16px}.card-body{padding:18px}.card-body h2{font-size:22px}}@media(max-width:900px){.catalog-layout{grid-template-columns:1fr}.filter-panel{margin-bottom:22px}.filter-panel form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.filter-panel form p{min-width:0}.hero-art{height:300px}.art-core{font-size:25px}.pedagog-layout{grid-template-columns:1fr 1fr;gap:20px}}@media(max-width:600px){.hero{grid-template-columns:1fr;padding:16px 0 30px;gap:30px}.hero h1{font-size:47px}.hero-lead{font-size:16px}.hero-art{height:280px;border-radius:40px}.mission{margin-top:40px}.mission p:last-child{font-size:16px}.benefits{grid-template-columns:1fr;gap:12px;margin:32px 0}.benefits article{padding-top:14px}.benefits h3{margin:8px 0}.join-panel{display:block;padding:25px;margin:45px 0}.join-panel .button{margin-top:12px}.teacher-grid,.pedagog-layout,.filter-panel form{grid-template-columns:1fr}.teacher-card{max-width:100%}.card-photo{height:280px}.card-body{padding:24px}.card-body h2{font-size:26px}.filter-panel{padding:18px}.filter-panel form{gap:0}.public-main>h1{font-size:34px}}

.articles-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.article-preview{overflow:hidden;padding:26px}.article-cover,.editor-cover{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-radius:14px}.editor-cover{max-width:700px;margin:24px 0}.article-page{max-width:860px;margin:auto}.article-page h1{font-size:clamp(30px,5vw,54px)}.article-text{font-size:18px;line-height:1.85;overflow-wrap:anywhere;white-space:normal}.article-text p{margin:26px 0}.profile-video{display:block;max-width:100%;max-height:650px;width:100%;background:#183c35;border-radius:14px;margin:20px 0}.public-review{margin:28px 0;padding:20px;border-left:3px solid #98b18a;background:#f1f4ea}.public-review cite{font-size:14px;color:#607269}@media(max-width:600px){.articles-grid{grid-template-columns:1fr}.article-text{font-size:17px}.article-preview{padding:20px}}
.consent-field{margin:22px 0}.consent-choice{display:flex;gap:10px;align-items:flex-start;font-weight:400;line-height:1.5}.consent-choice input[type=checkbox]{flex:0 0 18px;margin:3px 0 0}.consent-field .help{margin-left:28px}

.chat-message { overflow-wrap: anywhere; }

.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start}.profile-main,.profile-section,.profile-sidebar{min-width:0}.profile-sidebar{position:sticky;top:24px}.profile-sidebar .panel{padding:24px}.profile-section h2{font-size:23px;margin-top:0}.profile-section .field{margin:24px 0}.profile-section textarea{resize:vertical}.profile-section input[type=file]{max-width:100%;font-size:14px}.profile-intro{max-width:780px;margin-bottom:32px}.additional-toggle{margin:20px 0}.profile-section label:has(input[type=checkbox]){font-weight:400}.profile-section fieldset{margin-top:24px}.profile-section .errorlist{overflow-wrap:anywhere}.verification-entry{border-top:1px solid #dce2d8;padding:12px 0}.verification-entry p{margin:4px 0}.profile-main .request-history{margin-top:28px}.profile-sidebar h2{font-size:22px}.file-error{color:#9d302a;font-size:14px}.profile-section [hidden]{display:none!important}@media(max-width:900px){.profile-layout{grid-template-columns:minmax(0,1fr)}.profile-sidebar{position:static}.profile-sidebar .panel{margin-top:24px}}@media(max-width:600px){.profile-section .training-row{padding:14px}.profile-section h2{font-size:22px}.profile-section select{min-width:0;max-width:100%}}
.city-choice{display:block;margin:8px 0;text-align:left;width:100%}
#profile-form .profile-fields{display:block}
.profile-fields{border:0;padding:0;margin:0;min-width:0}#submission-confirmation{max-width:600px;width:calc(100% - 32px);box-sizing:border-box;border:0;border-radius:16px;padding:28px;color:#22332c}#submission-confirmation::backdrop{background:rgba(20,30,25,.55)}#submission-confirmation h2{margin-top:0}#submission-confirmation .form-actions{flex-wrap:wrap}#submission-confirmation button{white-space:normal}#verification-result{overflow-wrap:anywhere}

.location-field{position:relative;min-width:0}.location-field input{width:100%;box-sizing:border-box}.location-results{list-style:none;margin:4px 0;padding:4px;border:1px solid #c4cbd3;border-radius:8px;background:white;max-height:240px;overflow:auto}.location-results li{padding:10px 12px;cursor:pointer;overflow-wrap:anywhere}.location-results li:hover,.location-results li[aria-selected="true"]{background:#edf3fa;color:#153b67}.location-results[hidden]{display:none}

/* Общая навигация рабочего кабинета. */
.staff-workspace {text-align:left; min-width:0;}
.staff-heading {margin-bottom:2rem; border-bottom:1px solid var(--line,#d9e0d6); padding-bottom:1rem;}
.staff-tabs, .staff-admin nav {display:flex; flex-wrap:wrap; gap:.65rem; justify-content:flex-start;}
.staff-tabs a {display:block; padding:.65rem 1rem; border:1px solid var(--line,#d9e0d6); border-radius:.65rem; text-decoration:none;}
.staff-tabs a[aria-current="page"] {background:#24594b; color:#fff; font-weight:700;}
.staff-tabs a:focus-visible, .staff-admin summary:focus-visible {outline:3px solid #986418; outline-offset:3px;}
.staff-admin {margin-top:1rem;}
.staff-admin nav {margin-top:.65rem;}
.staff-workspace .profile-fields > button {align-self:end; justify-self:start; width:auto; min-height:0;}
@media(max-width:600px) {.staff-tabs {flex-direction:column;} .staff-tabs a {width:100%; box-sizing:border-box;}}

.staff-workspace .panel {overflow-wrap:anywhere;}
.staff-filter {display:flex; flex-wrap:wrap; align-items:end; gap:.75rem;}
.staff-filter label {flex-basis:100%;}
.staff-filter input {flex:1 1 14rem; width:auto; min-width:0;}
.staff-filter button {width:auto;}

.staff-workspace .new-task {border-left:4px solid var(--accent, #245a4d);}
.staff-workspace .staff-filter p {flex:1 1 14rem; min-width:0; margin:0;}
.staff-workspace .staff-filter p input,
.staff-workspace .staff-filter p select {width:100%;}
.staff-workspace nav a[aria-current="page"] {font-weight:700; text-decoration-thickness:3px;}
.staff-workspace .unread-thread {background:#edf3e7; border-left:4px solid #245749;}
.staff-workspace [data-unread-thread-count], .staff-workspace [data-new-task-count] {font-weight:700; white-space:nowrap;}

.staff-workspace pre {white-space:pre-wrap; overflow-wrap:anywhere;}
.staff-workspace input, .staff-workspace select, .staff-workspace textarea {max-width:100%; min-width:0;}

/* Кабинет: статус до действий, читаемые формы на любой ширине. */
.teacher-navigation{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.teacher-navigation a{display:flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid #cddbd3;border-radius:12px;text-decoration:none}.teacher-navigation a:hover{background:#eaf1ed}.teacher-status{border-top:4px solid #28594d}.teacher-status h2{overflow-wrap:anywhere}.status-level{font-size:1.25rem;font-weight:600}.profile-fields>[hidden]{display:none!important}.contact-links input{max-width:100%;width:100%;box-sizing:border-box}.contact-links li{overflow-wrap:anywhere;margin:18px 0}.contact-links button,.dialog-close{min-height:44px;min-width:44px}.contact-links [role=status]{display:block;font-size:.9rem}.profile-main .panel{overflow-wrap:anywhere}@media(max-width:600px){.teacher-navigation{display:grid;grid-template-columns:1fr 1fr}.teacher-navigation a{padding:10px}.teacher-status .form-actions{align-items:stretch}.teacher-status .button{white-space:normal}.profile-section input,.profile-section textarea{font-size:16px}}
.photo-card-preview{margin:20px 0;max-width:320px}.photo-card-preview img{width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;object-position:center;border-radius:16px 16px 0 0}.photo-card-preview figcaption{padding:12px;background:#edf2ef;border-radius:0 0 16px 16px;font-size:.9rem;overflow-wrap:anywhere}
.chat-attachment{margin:16px 0;overflow-wrap:anywhere}.chat-attachment img{display:block;max-width:240px;max-height:160px;width:auto;height:auto;object-fit:contain;border-radius:8px;margin:8px 0}input[data-chat-files]{max-width:100%;font-size:16px}
/* Подтверждённые основания и четыре оформления уровня. */
.teacher-card{--level-ink:#1656a3;--level-fill:#e4effe;overflow-wrap:anywhere}.level-2{--level-ink:#17685d;--level-fill:#e1efea}.level-3{--level-ink:#646e83;--level-fill:#e8ebf0}.level-4{--level-ink:#94601b;--level-fill:#fff0c9}.teacher-card .level-badge{position:static;border-radius:0;background:var(--level-fill);color:var(--level-ink);padding:14px 18px;font-size:14px}.teacher-card .card-photo{height:auto;background:var(--level-fill)}.card-photo img{height:auto;aspect-ratio:5/4;object-fit:cover}.brain-icons{display:inline-flex;gap:5px;align-items:center}.brain-icons img{width:32px;height:32px;object-fit:contain}.academy-status{padding:18px;background:#edf3ee;border-radius:14px;margin:20px 0}.academy-status h3{font-size:14px;margin:0 0 12px;line-height:1.5;color:#315749}.academy-basis p{margin:4px 0}.academy-status details{margin-top:14px}.academy-status summary{min-height:44px;display:list-item;padding:8px 0}.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.filter-chips a{padding:8px 12px;border:1px solid #cddbd3;border-radius:18px;min-height:44px;font-size:14px}.profile-share{margin-top:18px}.profile-share button{min-height:44px;white-space:normal}.profile-share [role=status]{display:block;font-size:14px}.teacher-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}.teacher-card{width:100%;max-width:420px}.card-actions button,.card-actions .button{min-height:44px}.specialist-hero{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:48px;align-items:center;margin:36px 0 48px}.specialist-portrait{border-radius:24px;overflow:hidden;background:var(--level-fill,#edf3ee)}.specialist-portrait>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}.specialist-level{padding:18px;display:flex;flex-direction:column;gap:10px;color:var(--level-ink);font-weight:600}.specialist-intro{min-width:0}.specialist-intro h1{font-size:clamp(28px,4vw,46px);line-height:1.2;overflow-wrap:anywhere}.specialist-lead{font-size:20px}.specialist-body{max-width:820px;margin:auto}.specialist-section{margin:48px 0;overflow-wrap:anywhere}.readable-text{font-size:18px;line-height:1.8;overflow-wrap:anywhere}.compact-video{width:auto;max-width:100%;max-height:360px;margin:20px auto;background:#183c35}.mobile-contact-bar{display:none}.specialist-body .article-cover{max-height:200px}.specialist-body .article-preview h3{font-size:20px;line-height:1.4}.specialist-page .contact-links{overflow-wrap:anywhere}@media(max-width:768px){.specialist-hero{grid-template-columns:1fr;gap:24px;margin:24px 0}.specialist-portrait{max-width:380px;width:100%;margin:auto}.specialist-body .panel{padding:22px}.specialist-section{margin:32px 0}.mobile-contact-bar{display:block;position:fixed;bottom:0;left:0;right:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fffef9ed;border-top:1px solid #cddbd3;z-index:5}.mobile-contact-bar button{width:100%;min-height:44px}.specialist-page:has(.mobile-contact-bar){padding-bottom:90px}.contacts-open .mobile-contact-bar{display:none}.compact-video{max-height:280px}.specialist-body .articles-grid{grid-template-columns:1fr}}
.rich-editor{min-height:24rem;background:white;border:1px solid var(--line,#b7c9be);border-radius:.6rem;padding:1rem;overflow-wrap:anywhere;white-space:pre-wrap}.rich-editor:focus{outline:2px solid #246052}.rich-toolbar{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.6rem}.rich-toolbar button{font-size:.85rem;padding:.5rem .7rem;min-height:44px}.rich-editor figure{padding:1rem;background:#e8ede3;border:1px dashed #678679}.article-image-field{margin:1rem 0;padding:1rem;border:1px solid #bccabd;border-radius:.6rem;min-width:0}.inline-preview{max-width:100%;max-height:220px;object-fit:contain}.article-illustration{margin:2rem 0}.article-illustration img,.article-text figure img{display:block;width:auto;max-width:100%;height:auto;max-height:none;margin:auto}.article-text figcaption{font-size:.9rem;color:#536a60;text-align:center;margin-top:.6rem}.article-text{overflow-wrap:anywhere}.article-text blockquote{border-left:3px solid #2a6155;margin:1.5rem 0;padding-left:1rem}.article-page>.article-cover{max-height:360px;object-fit:contain}.article-preview .article-cover{max-height:200px;object-fit:cover}
.topic-links{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;padding:0}.topic-links a{display:inline-flex;align-items:center;min-height:44px;padding:.4rem .8rem;border:1px solid #c9d5c9;border-radius:2rem;overflow-wrap:anywhere}.article-annotation{font-size:1.1rem;color:#45665b}
.public-review:has(details[open])>p{display:none}

/* Каталог сохраняет размер карточки при единственном результате. */
.teacher-grid .card-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.teacher-grid .level-badge { padding: 10px 16px; font-size: 13px; }
.teacher-grid .card-body { padding: 18px; }
.teacher-grid .card-body h2 { font-size: 22px; margin: 4px 0 12px; }
.teacher-grid .card-body dl > div { padding: 10px 0; }
.teacher-grid .card-note { padding: 12px; margin: 12px 0; }
.teacher-grid .academy-status { padding: 14px; margin: 14px 0; font-size: 14px; }
.teacher-grid .academy-status h3 { margin-bottom: 8px; }
.teacher-grid .card-actions { margin-top: 16px; }

.subject-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}
.subject-chip{display:inline-flex;align-items:center;gap:.4rem;max-width:100%;overflow-wrap:anywhere;padding:.25rem .6rem;border-radius:12px;background:#eaf3ef}
.subject-chip button{flex:none;margin:0;padding:.2rem .5rem;min-width:36px;min-height:36px}
.experience-collapsed{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.article-annotation{padding:18px 22px;border-radius:16px;background:#eef4f0;margin:22px 0}
.article-annotation h2{font-size:18px;margin:0 0 8px}.article-annotation p{margin:0}
.article-page .article-cover,.article-text .article-illustration img,.rich-editor figure img{width:auto;height:auto;max-width:min(100%,700px);max-height:450px;object-fit:contain;aspect-ratio:auto;display:block;margin:16px auto}
.article-text figure{margin:24px 0}.article-image-dialog{max-width:95vw;max-height:95vh;padding:12px}.article-image-dialog img{display:block;max-width:85vw;max-height:80vh;object-fit:contain}.article-image-dialog::backdrop{background:#123b35aa}
.notification-entry{overflow-wrap:anywhere;padding:16px 0;border-bottom:1px solid #d9e2d9}.notification-entry:last-of-type{border-bottom:0}
.required-mark{color:#a52b2b;font-weight:700}

.field-with-help .field-guidance{margin:6px 0 12px}.field-guidance>p{margin:6px 0}.field-guidance details{margin:8px 0}.field-guidance details ul{margin:8px 0;padding-left:24px}.field-with-help textarea{margin-top:0}

/* Редактор: одна обложка, инструменты рядом с текстом. */
.material-field{margin-bottom:1.25rem}
.material-field label{display:block;font-weight:600;margin-bottom:.4rem}
.material-field .editor-cover{display:block;max-height:240px;object-fit:contain;margin:1rem 0}
.material-field .editor-cover[hidden]{display:none}
.rich-editor-shell{position:relative;min-width:0}
.rich-editor-shell .rich-toolbar{position:sticky;top:8px;z-index:10;background:#fffef9;padding:.5rem;border:1px solid #dce4dc;border-radius:10px;box-shadow:0 3px 10px #183f3510}
.article-images-dialog{width:calc(100% - 24px);max-width:760px;max-height:85dvh;overflow:auto;padding:20px}
.article-images-dialog::backdrop{background:#153c3460}
.article-images-dialog>button{position:sticky;top:0;z-index:1;background:white}
.article-images-dialog .article-image-field{min-width:0}
.article-images-dialog input{max-width:100%}
.article-image-field.image-removed label:not(:has([type=checkbox])),.article-image-field.image-removed [data-insert-image]{display:none}
.rich-editor figure button{display:block;margin:.5rem auto 0;font-size:.85rem}
@media(max-width:600px){.rich-editor-shell .rich-toolbar{flex-wrap:nowrap;overflow-x:auto;top:0}.rich-toolbar button{flex-shrink:0}.article-images-dialog{padding:12px}}
/* Ошибка загрузки видна рядом с файлом, в том числе в длинной анкете. */
#profile-form .file-error{margin:10px 0;color:#365f52;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
#profile-form .file-error.is-error{padding:12px 14px;background:#fff0ed;border-left:4px solid #a5332b;border-radius:6px;color:#862a24;font-weight:600}
#profile-form [aria-invalid=true]{border-color:#a5332b;box-shadow:0 0 0 1px #a5332b}
#profile-form .errorlist{background:#fff0ed;padding:12px 14px 12px 30px;border-radius:6px}
#profile-form input,#profile-form textarea,#profile-form select{scroll-margin-block:100px}
#profile-form .list-error{margin:10px 0;padding:12px 14px;background:#fff0ed;border-left:4px solid #a5332b;border-radius:6px;color:#862a24;font-size:15px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}

/* Анкета: результат сохранения остаётся рядом с действиями. */
.profile-save-panel {position:sticky;bottom:0;z-index:12;background:#fffef9;border:1px solid #b5c9bf;border-radius:16px;padding:12px 16px;box-shadow:0 -3px 14px #173d3210;margin-top:20px;max-height:45vh;overflow:auto;}
#profile-save-status {font-weight:700;margin:0 0 6px;scroll-margin-bottom:160px;}
#profile-autosave-status {margin:4px 0 10px;font-size:.9rem;}
#profile-error-summary:not([hidden]) {padding:10px;border:1px solid #a53035;border-radius:8px;}
#profile-error-summary ul {margin:8px 0;padding-left:22px;}
.profile-section-nav {display:flex;flex-wrap:wrap;gap:10px 20px;margin:16px 0;}
.profile-section {scroll-margin-top:20px;}
.required-marker,.is-error,.server-field-error {color:#a53035;}
#profile-form [aria-invalid=true] {border-color:#a53035;}
#workspace-recovery button {margin:8px 8px 0 0;}
#workspace-recovery p {overflow-wrap:anywhere;}
@media(max-width:600px){.profile-save-panel {padding:10px;bottom:0;border-radius:12px;max-height:40vh;}.profile-save-panel .form-actions {gap:8px;}.profile-save-panel button {min-height:44px;flex:1 1 140px;}.profile-save-panel .help {font-size:.85rem;}}
#submission-confirmation {max-height:85vh;overflow:auto;}
#submission-review details {border-bottom:1px solid #d7e0d9;padding:10px 0;}
#submission-review p {white-space:pre-wrap;overflow-wrap:anywhere;font-size:.95rem;}
