:root{--yellow:#ffd200;--black:#090909;--panel:#151515;--line:#34300f;--muted:#aaa}*{box-sizing:border-box}body{margin:0;background:var(--black);color:#f6f6f6;font:16px/1.55 Inter,Segoe UI,Arial,sans-serif}.topbar{min-height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:#0d0d0d}.brand{color:var(--yellow);font-weight:800;text-decoration:none;font-size:18px}.topbar nav,.actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.topbar nav a,.topbar nav span{color:#ddd;text-decoration:none}.link-button{background:none;border:0;color:var(--yellow);font:inherit;cursor:pointer}.page{max-width:1180px;margin:auto;padding:46px 24px 70px}h1{font-size:clamp(32px,5vw,54px);line-height:1.08;margin:0 0 20px}h2{line-height:1.2}a{color:var(--yellow)}.hero{max-width:720px;padding:72px 0}.hero>p:not(.eyebrow){color:#d1d1d1;font-size:19px;max-width:620px}.eyebrow{color:var(--yellow);font-weight:800;font-size:12px;letter-spacing:.12em;margin:0 0 12px}.button,.danger{border:0;border-radius:9px;background:var(--yellow);color:#111;display:inline-block;font-weight:800;padding:12px 18px;text-decoration:none;cursor:pointer;font:inherit}.button:hover{background:#ffe25e}.button.secondary{background:#242424;color:#fff;border:1px solid #555}.button.small,.danger.small{padding:8px 12px;font-size:14px}.danger{background:#492020;color:#fff}.auth-card,.form-card,.empty,.lesson,.course-banner{max-width:650px;margin:30px auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:30px}.form-card.wide{max-width:800px}.form-card label,.auth-card label{display:block;font-weight:700;margin:16px 0}.checkbox{font-weight:400!important;display:flex!important;gap:8px;align-items:center}input,textarea,select{display:block;width:100%;margin-top:6px;background:#0b0b0b;color:#fff;border:1px solid #555;border-radius:8px;padding:11px;font:inherit}input[type=checkbox]{width:auto;margin:0}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:26px}.heading h1,.heading h2{margin-bottom:0}section{margin-bottom:48px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px}.card h2{font-size:21px;margin:8px 0}.card p{color:#d3d3d3}.number,.badge{display:inline-block;color:var(--yellow);font-weight:800;margin:0}.muted{color:var(--muted)!important;font-size:14px}.table-wrap{overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid #292929}th{color:var(--yellow)}.back{display:inline-block;margin-bottom:8px;text-decoration:none}.lesson{max-width:850px}.lesson-content{font-size:17px}.lesson-content h2,.lesson-content h3{color:var(--yellow)}.complete{color:#93df82;font-weight:700}.flash{max-width:900px;margin:0 auto 20px;padding:13px 17px;border-radius:9px}.flash.success{background:#183c1b;color:#c9ffce}.flash.error{background:#481e1e}.flash.warning{background:#4b3f12}@media(max-width:600px){.topbar{padding:12px 20px;gap:10px;align-items:flex-start;flex-direction:column}.page{padding:30px 16px}.heading{align-items:flex-start;flex-direction:column}.hero{padding:34px 0}.actions{gap:8px}}
/* Smooth interaction for every field. */
input,textarea,select{transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease,background-color .2s ease}input:hover,textarea:hover,select:hover{border-color:#8b8b8b}input:focus,textarea:focus,select:focus{outline:0;border-color:var(--yellow);background:#101010;box-shadow:0 0 0 3px rgba(255,210,0,.16);transform:translateY(-1px)}input[type=checkbox]{transition:transform .18s ease,filter .18s ease}input[type=checkbox]:hover{transform:scale(1.08);filter:brightness(1.18)}.button,.danger,.side-nav a,.course-select summary{transition:transform .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.button:hover,.danger:hover{transform:translateY(-2px);box-shadow:0 7px 17px rgba(0,0,0,.25)}.course-select summary:hover{background:#171717}.menu-item-list{margin:20px 0;padding:0;border:1px solid #555;border-radius:9px;overflow:hidden;background:#202020}.menu-item-list legend{padding:0 8px;margin-left:8px;font-weight:800}.menu-item-list .checkbox{min-height:44px;margin:0!important;padding:10px 15px;cursor:pointer;transition:background .18s ease,color .18s ease}.menu-item-list .checkbox:hover{background:#323232}.menu-item-list .checkbox:has(input:checked){background:#54271d}.menu-item-list .checkbox:nth-of-type(even):not(:has(input:checked)){background:#252525}.section-collapse{padding:11px 0}.sidebar-settings-cards .card{animation:staff-card-in .35s both;transition:transform .2s ease,border-color .2s ease}.sidebar-settings-cards .card:hover{transform:translateY(-3px);border-color:var(--yellow)}
.nav-section{border-bottom:1px solid #272727}.nav-section summary{position:relative;display:flex;align-items:center;min-height:39px;padding:7px 10px;cursor:pointer;list-style:none;border-radius:8px;color:#bcbcbc;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;transition:background .2s ease,color .2s ease}.nav-section summary::-webkit-details-marker{display:none}.nav-section summary:after{content:'⌄';margin-left:auto;color:var(--yellow);font-size:18px;line-height:1;transition:transform .2s ease}.nav-section[open] summary:after{transform:rotate(180deg)}.nav-section summary:hover{background:#1c1a10;color:var(--yellow)}.nav-section-links{display:grid;gap:3px;padding:2px 0 9px;animation:nav-section-in .22s ease both}.nav-section:not([open]) .nav-section-links{display:none}@keyframes nav-section-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.developer-menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px}.developer-menu-card{display:block;min-height:210px;padding:24px;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:#f6f6f6;text-decoration:none;transition:transform .23s ease,border-color .23s ease,box-shadow .23s ease}.developer-menu-card:hover{transform:translateY(-6px);border-color:var(--yellow);box-shadow:0 16px 30px rgba(0,0,0,.32),0 0 18px rgba(255,210,0,.1)}.developer-menu-card span{color:var(--yellow);font-size:12px;font-weight:800;letter-spacing:.12em}.developer-menu-card h2{margin:18px 0 8px;font-size:22px}.developer-menu-card p{margin:0;color:#c5c5c5}.news-list{display:grid;gap:16px;max-width:1080px}.news-card{position:relative;padding:20px 20px 18px;border:1px solid #292929;border-radius:8px;background:#151515;box-shadow:0 8px 22px rgba(0,0,0,.2);animation:staff-card-in .4s both}.news-card:hover{border-color:#504a1b}.news-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.news-card h2{margin:0;font-size:21px}.developer-tag{display:inline-block;flex:0 0 auto;border-radius:999px;background:#4d251e;color:#ff7a5b;padding:3px 9px;font-size:10px;font-weight:900;letter-spacing:.08em}.news-content{margin-top:7px;white-space:pre-line}.news-content p{margin:5px 0}.news-card time{display:block;margin-top:12px;color:#777;font-size:12px}.news-content li::marker{color:#ff5b3d}@media(max-width:600px){.news-card-head{display:block}.developer-tag{margin-top:10px}}
.news-dot{display:inline-block;width:12px;margin-right:6px;font-size:0;line-height:1;vertical-align:middle}.news-dot:before{content:'●';color:#ffd200;font-size:14px;line-height:1}
.profile-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(300px,1.2fr);gap:18px;max-width:900px}.profile-card,.profile-info{padding:26px;border:1px solid var(--line);border-radius:15px;background:var(--panel)}.profile-card{display:flex;align-items:center;gap:20px}.profile-avatar{display:flex;width:78px;height:78px;flex:0 0 78px;align-items:center;justify-content:center;border:2px solid var(--yellow);border-radius:50%;background:#0b0b0b;color:var(--yellow);font-size:35px;font-weight:900}.profile-card h2{margin:0 0 7px}.profile-vk{display:inline-block;margin-top:10px;text-decoration:none;font-weight:800}.profile-info h2{margin-top:0}.profile-info dl{margin:0}.profile-info dl div{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid #292929}.profile-info dl div:last-child{border-bottom:0}.profile-info dt{color:var(--muted)}.profile-info dd{margin:0;font-weight:700}.profile-news{margin-top:8px}.news-feed-button{display:inline-flex;align-items:center;gap:9px;padding:12px 18px;border:1px solid var(--yellow);border-radius:9px;background:var(--yellow);color:#111;font-weight:900;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}.news-feed-button:hover{transform:translateY(-2px);background:#ffe25e;box-shadow:0 7px 17px rgba(0,0,0,.25)}.news-feed-button span{font-size:21px;line-height:1}@media(max-width:700px){.profile-layout{grid-template-columns:1fr}.profile-info dl div{grid-template-columns:1fr;gap:2px}}
.modal-open{overflow:hidden}.news-modal[hidden]{display:none}.news-modal{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:24px}.news-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}.news-modal-window{position:relative;width:min(860px,100%);max-height:min(82vh,820px);overflow:auto;padding:24px;border:1px solid #514d21;border-radius:10px;background:#191919;box-shadow:0 22px 70px rgba(0,0,0,.55);animation:modal-pop .22s ease both}.news-modal-window>h2{margin:0 0 18px;font-size:25px}.news-modal-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:2px solid var(--yellow);border-radius:50%;background:transparent;color:var(--yellow);font:32px/29px Arial;cursor:pointer;transition:transform .2s ease,background .2s ease}.news-modal-close:hover{transform:rotate(90deg);background:#28230c}.news-modal-card{margin:12px 0;padding:20px 23px;border-radius:9px;background:#111;border:1px solid #282828}.news-modal-card.newest{border-color:#48410f}.news-modal-card h3{margin:0 0 8px;font-size:20px}.news-modal-card p{margin:3px 0}.news-modal-card small{display:block;margin-top:12px;text-align:right;color:#777}.past-news-title{margin:28px 0 14px;font-size:23px}@keyframes modal-pop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:600px){.news-modal{padding:12px}.news-modal-window{padding:20px 14px}.news-modal-card{padding:16px}.news-modal-close{top:12px;right:12px}}
/* App navigation */
.app-shell{display:flex;max-width:1440px;margin:auto}.sidebar{width:220px;flex:0 0 220px;min-height:calc(100vh - 64px);padding:34px 18px;border-right:1px solid var(--line);background:#0d0d0d}.sidebar-title{margin:0 0 12px;color:#777;font-size:11px;font-weight:800;letter-spacing:.12em}.side-nav{display:grid;gap:5px}.side-nav a{padding:11px 12px;border-radius:8px;color:#ddd;text-decoration:none;font-weight:700}.side-nav a:hover,.side-nav a.active{background:#28230c;color:var(--yellow)}.app-shell .page{width:100%;max-width:1180px;margin:0 auto}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stats strong{display:block;margin:8px 0 14px;color:var(--yellow);font-size:42px;line-height:1}@media(max-width:760px){.app-shell{display:block}.sidebar{width:100%;min-height:0;padding:12px 16px;border-right:0;border-bottom:1px solid var(--line)}.side-nav{display:flex;overflow:auto}.side-nav a{white-space:nowrap}.stats{grid-template-columns:1fr}}
.lesson-content img{display:block;max-width:100%;height:auto;margin:20px auto;border:1px solid var(--line);border-radius:12px}.lesson-actions{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0}.image-upload{margin:20px 0;padding:16px;border:1px dashed #70651d;border-radius:10px}.image-upload label{margin-top:0!important}.image-upload input[type=file]{padding:8px}.image-upload .button{margin-top:10px}
.profile-page{max-width:1000px}.profile-hero-card{display:flex;align-items:center;gap:28px;padding:30px;background:linear-gradient(135deg,#171717,#111);border:1px solid var(--line);border-radius:18px}.profile-avatar-large{display:flex;align-items:center;justify-content:center;flex:0 0 132px;width:132px;height:132px;overflow:hidden;border:3px solid var(--yellow);border-radius:50%;background:#0a0a0a;color:var(--yellow);font-size:52px;font-weight:900}.profile-avatar-large img{width:100%;height:100%;object-fit:cover}.profile-hero-info h1{margin:0 0 4px;font-size:clamp(32px,5vw,48px)}.profile-username{margin:0;color:var(--muted);font-size:17px}.profile-badges{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.profile-rank,.nationality-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid #444;border-radius:999px;background:#101010;color:#ddd;font-size:13px;font-weight:700}.profile-actions{margin-top:18px}.profile-details-grid{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(300px,1.15fr);gap:18px;margin-top:18px}.profile-panel{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.profile-facts{margin:0}.profile-facts div{padding:11px 0;border-bottom:1px solid #292929}.profile-facts div:last-child{border-bottom:0}.profile-facts dt{color:var(--muted);font-size:13px}.profile-facts dd{margin:3px 0 0;font-weight:700}.bio-content{color:#ddd;line-height:1.7}.bio-content>*:first-child{margin-top:0}.bio-content>*:last-child{margin-bottom:0}.flag{display:inline-block;width:22px;height:15px;border:1px solid rgba(255,255,255,.22);border-radius:3px;background:#444}.flag-ru{background:linear-gradient(#fff 0 33%,#0039a6 33% 66%,#d52b1e 66%)}.flag-by{background:linear-gradient(#d22730 0 66%,#16874b 66%)}.flag-kz{background:#49b4d8}.flag-ua{background:linear-gradient(#0754a2 0 50%,#ffd700 50%)}.flag-de{background:linear-gradient(#111 0 33%,#d00 33% 66%,#ffce00 66%)}.flag-gb{background:#193c7d}.flag-fi{background:#fff;box-shadow:inset 8px 0 #174f95,inset 0 -4px #174f95}.flag-us{background:repeating-linear-gradient(#b22234 0 2px,#fff 2px 4px)}.flag-jp{background:radial-gradient(circle,#bc002d 0 35%,#fff 36%)}.flag-cn{background:#de2910}.flag-kr{background:#fff}.flag-fr{background:linear-gradient(90deg,#002395 0 33%,#fff 33% 66%,#ed2939 66%)}.flag-it{background:linear-gradient(90deg,#009246 0 33%,#fff 33% 66%,#ce2b37 66%)}.flag-es{background:linear-gradient(#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75%)}.flag-pl{background:linear-gradient(#fff 0 50%,#dc143c 50%)}.flag-ca{background:#fff;box-shadow:inset 6px 0 #d80621,inset -6px 0 #d80621}.flag-lv{background:linear-gradient(#9e1b32 0 40%,#fff 40% 60%,#9e1b32 60%)}.flag-lt{background:linear-gradient(#fdb913 0 33%,#006a44 33% 66%,#c1272d 66%)}.flag-ee{background:linear-gradient(#4891d9 0 33%,#111 33% 66%,#fff 66%)}.flag-uz,.flag-am,.flag-az,.flag-ge,.flag-md,.flag-kg{background:#555}@media(max-width:700px){.profile-hero-card{align-items:center;flex-direction:column;text-align:center}.profile-badges,.profile-actions{justify-content:center}.profile-details-grid{grid-template-columns:1fr}.profile-avatar-large{width:112px;height:112px;flex-basis:112px}}
.score-wrap{max-width:100%}.score-table{min-width:1450px;font-size:14px}.score-table th{background:#1b1b1b;white-space:nowrap}.score-table th small{color:#c7c7c7;font-weight:500}.score-table td{text-align:center;white-space:nowrap}.score-table td:first-child{text-align:left;font-weight:700}.score-table input[type=number]{min-width:58px;width:70px;margin:0;padding:7px;text-align:center}.score-table input[type=checkbox]{display:inline-block;width:20px;height:20px;accent-color:var(--yellow)}.save-scores{margin-top:20px}
.score-table th,.score-table td{border-right:1px solid #4a4a4a;border-bottom:1px solid #4a4a4a}.score-table th:last-child,.score-table td:last-child{border-right:0}.score-table thead th{border-bottom:2px solid var(--yellow)}
.not-current{opacity:.65;border-color:#625c5c}.material-content{margin:12px 0}.material-actions{margin-top:16px}
/* Nationality badges: flags are drawn inside their own rectangle, not with an inset shadow. */
.flag{flex:0 0 22px;overflow:hidden}
.flag-fi{background:linear-gradient(to right,transparent 0 27%,#174f95 27% 43%,transparent 43% 100%),linear-gradient(to bottom,transparent 0 37%,#174f95 37% 61%,transparent 61% 100%),#fff;box-shadow:none}
.flag-gb{background:linear-gradient(33deg,transparent 43%,#fff 43% 48%,#c8102e 48% 52%,#fff 52% 57%,transparent 57%),linear-gradient(-33deg,transparent 43%,#fff 43% 48%,#c8102e 48% 52%,#fff 52% 57%,transparent 57%),linear-gradient(to right,transparent 0 40%,#fff 40% 44%,#c8102e 44% 56%,#fff 56% 60%,transparent 60%),linear-gradient(to bottom,transparent 0 35%,#fff 35% 40%,#c8102e 40% 60%,#fff 60% 65%,transparent 65%),#193c7d}
.flag-kr{background:radial-gradient(circle at 50% 48%,#cd2e3a 0 19%,#0047a0 20% 33%,transparent 34%),#fff}
/* Keep uploaded profile photos fully visible inside the avatar frame. */
.profile-avatar-large img{object-fit:contain;background:#0a0a0a}
.user-profile-link{display:inline-flex;align-items:center;gap:10px;color:#f6f6f6;font-weight:800;text-decoration:none}.user-profile-link:hover{color:var(--yellow)}.user-list-avatar{display:inline-flex;width:34px;height:34px;flex:0 0 34px;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--yellow);border-radius:50%;background:#0a0a0a;object-fit:contain}.user-list-avatar-placeholder{color:var(--yellow);font-size:15px}
.user-list-avatar-wrap{position:relative;display:inline-flex;width:38px;height:38px;flex:0 0 38px;align-items:center;justify-content:center}.user-list-avatar-wrap .user-list-avatar{width:38px;height:38px;flex-basis:38px}.user-online-dot{position:absolute;right:-1px;bottom:0;width:12px;height:12px;border:2px solid #151515;border-radius:50%;background:#22c55e;box-shadow:0 0 10px rgba(34,197,94,.85)}.user-offline-dot{background:#e5484d;box-shadow:0 0 9px rgba(229,72,77,.7)}.user-list-nickname{font-weight:850}
.user-admin-list{overflow:hidden;border:1px solid rgba(255,214,0,.24);border-radius:16px;background:#171717}.user-admin-table-head,.user-admin-card summary{display:grid;grid-template-columns:56px minmax(220px,1.25fr) minmax(190px,1fr) minmax(150px,.8fr) minmax(280px,1.4fr)}.user-admin-table-head{min-height:50px;background:#181818;border-bottom:1px solid #303030;color:var(--yellow);font-weight:900}.user-admin-table-head span{display:flex;align-items:center;padding:0 16px;border-left:1px solid #303030}.user-admin-table-head span:first-child{border-left:0}.user-admin-card{border-bottom:1px solid #303030}.user-admin-card:last-child{border-bottom:0}.user-admin-card summary{min-height:82px;cursor:pointer;list-style:none;transition:background .18s ease}.user-admin-card summary::-webkit-details-marker{display:none}.user-admin-card summary:hover,.user-admin-card[open] summary{background:#1e1e1e}.user-admin-chevron{align-self:center;justify-self:center;width:30px;height:30px;border:2px solid var(--yellow);border-radius:50%;position:relative;transition:transform .2s ease}.user-admin-chevron:after{content:'';position:absolute;left:8px;top:7px;width:9px;height:9px;border-right:2px solid var(--yellow);border-bottom:2px solid var(--yellow);transform:rotate(45deg)}.user-admin-card[open] .user-admin-chevron{transform:rotate(180deg)}.user-admin-field{display:flex;min-width:0;align-items:center;padding:12px 16px;border-left:1px solid #303030;color:#f1f1f1;line-height:1.45}.user-admin-person{gap:12px}.user-admin-avatar-wrap{position:relative;display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border:1px solid var(--yellow);border-radius:50%;overflow:visible;background:#111;color:var(--yellow);font-weight:900}.user-admin-avatar-wrap img{display:block;width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important;border-radius:50%;object-fit:cover}.user-admin-avatar-wrap i{position:absolute;right:-3px;bottom:-2px;width:11px;height:11px;border:2px solid #1e1e1e;border-radius:50%;background:#22c55e}.user-admin-avatar-wrap i.is-offline{background:#e5484d}.user-admin-profile-link{overflow:hidden;color:#f8f8f8!important;font-weight:850;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.user-admin-profile-link:hover{color:var(--yellow)!important;text-decoration:underline}.user-presence.online{color:#33d17a}.user-presence.offline b{color:#ef5c60}.user-admin-body{padding:16px 20px 20px 76px;background:#181818;border-top:1px solid #303030}.user-admin-body p{margin:2px 0;color:#eee}.user-admin-body .user-presence span{color:#a9a9a9}.user-admin-actions{display:flex;gap:10px;align-items:center;margin-top:16px}.user-admin-actions form{margin:0}@media(max-width:840px){.user-admin-list{overflow-x:auto}.user-admin-table-head,.user-admin-card summary{min-width:900px}.user-admin-body{min-width:900px}}@media(max-width:640px){.user-admin-body{padding:15px 14px}.user-admin-actions{flex-wrap:wrap}}

/* Personal main page */
.home-dashboard{max-width:1100px;margin:0 auto;padding:20px 0 35px;animation:home-enter .55s ease-out}.home-profile-hero{display:flex;align-items:center;gap:32px;padding:30px 36px;border:1px solid rgba(255,210,0,.14);border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.012));box-shadow:inset 0 1px 0 rgba(255,255,255,.03);transition:border-color .25s ease,background .25s ease}.home-profile-hero:hover{border-color:rgba(255,210,0,.28);background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.018))}.home-avatar-wrap{position:relative;flex:0 0 130px;width:130px;height:130px}.home-avatar{display:grid;width:130px;height:130px;overflow:hidden;place-items:center;border:4px solid var(--yellow);border-radius:50%;background:#0b0b0b;color:var(--yellow);font-size:52px;font-weight:900;box-shadow:0 0 30px rgba(255,210,0,.18);transition:transform .25s ease,box-shadow .25s ease}.home-profile-hero:hover .home-avatar{transform:scale(1.04);box-shadow:0 0 48px rgba(255,210,0,.27)}.home-avatar img{width:100%;height:100%;object-fit:contain;background:#0a0a0a}.home-online{position:absolute;right:5px;bottom:5px;width:21px;height:21px;border:4px solid #121212;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:home-online 2s ease-in-out infinite}.home-user-copy{min-width:0}.home-user-copy .eyebrow{margin-bottom:8px}.home-user-copy h1{margin:0;font-size:clamp(28px,4vw,43px);letter-spacing:-.8px}.home-user-copy h1 span{color:var(--yellow)}.home-user-meta{display:flex;gap:11px 22px;flex-wrap:wrap;margin-top:16px;color:#9e9e9e;font-weight:650}.home-user-meta span{display:inline-flex;align-items:center;gap:5px}.home-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:36px}.home-action{position:relative;display:flex;min-height:190px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:22px;overflow:hidden;border:1px solid #262626;border-radius:17px;background:linear-gradient(145deg,#151515,#0d0d0d);color:#fff;text-align:center;text-decoration:none;transition:transform .27s cubic-bezier(.2,.8,.2,1),border-color .27s ease,box-shadow .27s ease,background .27s ease;animation:home-card .55s both}.home-action:nth-child(2){animation-delay:.05s}.home-action:nth-child(3){animation-delay:.1s}.home-action:nth-child(4){animation-delay:.15s}.home-action:nth-child(5){animation-delay:.2s}.home-action:nth-child(6){animation-delay:.25s}.home-action:nth-child(7){animation-delay:.3s}.home-action:nth-child(8){animation-delay:.35s}.home-action:nth-child(9){animation-delay:.4s}.home-action:before{content:'';position:absolute;inset:-70%;background:radial-gradient(circle,rgba(255,210,0,.12),transparent 55%);opacity:0;transition:opacity .3s ease}.home-action:hover{transform:translateY(-6px) scale(1.015);border-color:var(--yellow);background:linear-gradient(145deg,#1d1d1d,#121212);box-shadow:0 14px 35px rgba(0,0,0,.34),0 0 22px rgba(255,210,0,.08)}.home-action:hover:before{opacity:1}.home-action>*{position:relative;z-index:1}.home-action-icon{display:grid;place-items:center;width:40px;height:40px;color:var(--yellow);font-size:33px;line-height:1;transition:transform .25s ease}.home-action:hover .home-action-icon{transform:scale(1.15) rotate(3deg)}.home-action strong{font-size:14px;letter-spacing:.45px;text-transform:uppercase}.home-action small{color:#999;font-size:13px;line-height:1.4}.home-action-updates{border-color:rgba(255,210,0,.28);background:linear-gradient(145deg,#1c1603,#0d0b03)}@keyframes home-enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes home-card{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes home-online{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}50%{box-shadow:0 0 0 8px rgba(34,197,94,0)}}@media(max-width:780px){.home-profile-hero{flex-direction:column;padding:25px;text-align:center}.home-user-meta{justify-content:center}.home-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:22px}.home-action{min-height:145px;padding:16px}.home-action-icon{width:32px;height:32px;font-size:27px}.home-action strong{font-size:12px}.home-action small{font-size:11px}}@media(max-width:390px){.home-actions-grid{grid-template-columns:1fr}.home-action{min-height:125px}}
.profile-comments{margin-top:18px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.comments-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.comments-heading h2{margin:0}.comments-heading .eyebrow{margin-bottom:4px}.comments-count{display:grid;place-items:center;min-width:34px;height:34px;padding:0 9px;border:1px solid #544e15;border-radius:999px;color:var(--yellow);font-weight:800}.comment-form{display:grid;gap:10px;margin:20px 0}.comment-form textarea{resize:vertical}.comment-form .button{justify-self:start}.comments-list{display:grid;gap:12px}.profile-comment{display:flex;gap:12px;padding:14px;border:1px solid #2d2d2d;border-radius:12px;background:#101010}.comment-avatar{display:flex;width:38px;height:38px;flex:0 0 38px;align-items:center;justify-content:center;overflow:hidden;border:1px solid #555;border-radius:50%;background:#080808;color:var(--yellow);font-weight:800}.comment-avatar img{width:100%;height:100%;object-fit:contain}.comment-body{min-width:0;flex:1}.comment-meta{display:flex;align-items:center;gap:9px}.comment-meta strong{color:var(--yellow)}.comment-meta time{color:#888;font-size:12px}.comment-meta form{margin-left:auto}.comment-delete{width:25px;height:25px;border:0;border-radius:6px;background:transparent;color:#999;font-size:22px;line-height:1;cursor:pointer}.comment-delete:hover{background:#4c2222;color:#fff}.comment-body p{margin:7px 0 0;white-space:pre-wrap;word-break:break-word}.comments-empty{margin:0;color:var(--muted)}@media(max-width:600px){.profile-comments{padding:18px}.profile-comment{padding:12px}.comment-meta{flex-wrap:wrap}.comment-meta form{margin-left:0}}
.profile-rating-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid #554d13;border-radius:999px;background:#161406;color:#f2f2f2;font-size:13px;font-weight:800}.profile-rating-pill>span{color:var(--yellow);font-size:16px;line-height:1}.profile-rating-pill small{color:#aaa;font-weight:600}.rating-editor{margin:8px 0 0}.rating-editor summary{display:inline-flex;align-items:center;gap:7px;cursor:pointer;color:var(--yellow);font-weight:800;list-style:none}.rating-editor summary::-webkit-details-marker{display:none}.rating-editor summary:before{content:'★';font-size:17px}.rating-editor form{display:flex;align-items:end;gap:10px;max-width:330px;margin-top:10px;padding:12px;border:1px solid #3d3917;border-radius:10px;background:#101010}.rating-editor label{display:grid;flex:1;gap:4px;color:#ccc;font-size:13px;font-weight:700}.rating-editor select{margin:0;padding:7px 9px}.rating-editor .button{padding:9px 11px;white-space:nowrap}@media(max-width:600px){.rating-editor form{align-items:stretch;flex-direction:column}.rating-editor .button{width:100%}}
.rating-editor .rating-delete-form{display:block;margin-top:6px;padding:0;background:transparent;border:0}.rating-remove{border:0;background:transparent;color:#c77f7f;text-decoration:underline;cursor:pointer;font:13px inherit}.rating-remove:hover{color:#ff9b9b}
.my-rating-list{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px;color:#aaa;font-size:13px}.my-rating-list form{display:flex;align-items:center;gap:4px;width:auto;margin:0;padding:4px 7px;border:1px solid #39351b;border-radius:999px;background:#161511}.my-rating-list b{color:var(--yellow);font-size:12px}.my-rating-list .rating-remove{padding:0;color:#d28d8d;font-size:17px;line-height:1;text-decoration:none}
.auth-separator{text-align:center;color:var(--muted);margin:18px 0}.vk-button{background:#0077ff;color:#fff;text-align:center}.vk-button:hover{background:#1685ff}
.staff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}.staff-card{position:relative;overflow:hidden;text-align:center;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px;animation:staff-card-in .55s both;transition:transform .26s ease,border-color .26s ease,box-shadow .26s ease}.staff-card:nth-child(2){animation-delay:.07s}.staff-card:nth-child(3){animation-delay:.14s}.staff-card:nth-child(4){animation-delay:.21s}.staff-card:nth-child(5){animation-delay:.28s}.staff-card:nth-child(6){animation-delay:.35s}.staff-card:hover{transform:translateY(-7px);border-color:var(--yellow);box-shadow:0 14px 32px rgba(0,0,0,.4),0 0 22px rgba(255,210,0,.13)}.staff-photo,.staff-placeholder{position:relative;display:flex;width:100%;height:270px;margin:0 auto;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--yellow);border-radius:12px;background:#050505;text-decoration:none;transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease}.staff-photo:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.2) 49%,transparent 66%);transform:translateX(-130%);transition:transform .65s ease}.staff-card:hover .staff-photo{transform:scale(1.025);border-color:#ffe25e;box-shadow:0 0 0 3px rgba(255,210,0,.13)}.staff-card:hover .staff-photo:after{transform:translateX(130%)}.staff-photo img{display:block;width:100%;height:100%;object-fit:contain}.staff-placeholder{color:var(--yellow);font-size:72px;font-weight:800}.staff-actions{justify-content:center;margin-top:16px}.course-label{display:block;font-weight:700;margin:16px 0}.course-select{margin-top:6px;border:1px solid #555;border-radius:8px;background:#0b0b0b;font-weight:400;box-shadow:0 7px 18px rgba(0,0,0,.2)}.course-select summary{display:flex;align-items:center;gap:12px;min-height:46px;padding:11px;cursor:pointer;list-style:none;font-weight:700}.course-select summary::-webkit-details-marker{display:none}.course-select summary:after{content:"⌄";margin-left:auto;color:#fff;font-size:20px;line-height:1;transition:transform .2s ease}.course-select[open] summary{border-bottom:1px solid #444}.course-select[open] summary:after{transform:rotate(180deg)}.course-select-options{overflow:hidden;padding:0;background:#202020}.course-select-options .checkbox{display:flex!important;align-items:center;gap:10px;width:100%;min-height:46px;margin:0!important;padding:11px 16px;cursor:pointer;transition:background .16s ease,color .16s ease}.course-select-options .checkbox:hover{background:#323232}.course-select-options .checkbox:has(input:checked){background:#54271d;color:#fff}.course-select-options .checkbox:nth-child(even):not(:has(input:checked)){background:#252525}.course-select-options input[type=checkbox]{display:inline-block;width:21px;height:21px;margin:0;accent-color:#ff5b22;cursor:pointer}@keyframes staff-card-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.staff-card{animation:none;transition:none}.staff-photo:after{display:none}.staff-card:hover,.staff-card:hover .staff-photo{transform:none}}
/* Стартовая страница */
.landing-body {
  min-height: 100vh;
  background: #090909;
}

.profile-password-fields { margin: 24px 0; padding: 16px 18px 4px; border: 1px solid #45400d; border-radius: 10px; background: #111; }
.profile-password-fields legend { padding: 0 8px; color: var(--yellow); font-weight: 800; }
.profile-password-fields small { color: var(--muted); }

.landing-body > .topbar { display: none; }
.landing-body > .app-shell { display: block; min-height: 100vh; }
.landing-body .app-shell > .page { width: 100%; max-width: none; margin: 0; padding: 0; }

.hospital-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 74% 47%, rgba(255, 214, 0, .10), transparent 29%), #090909;
}

.landing-container { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }

.landing-header { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.landing-header .landing-container { display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.landing-brand { display: inline-flex; align-items: center; gap: 11px; color: rgba(255,255,255,.66); text-decoration: none; font-size: 14px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.landing-brand b { color: var(--yellow); }
.landing-brand img { width: 42px; height: 42px; object-fit: cover; mix-blend-mode: screen; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.brand-logo { display: inline-flex; align-items: center; height: 52px; }
.brand-logo img { width: 48px; height: 48px; object-fit: cover; mix-blend-mode: screen; filter: drop-shadow(0 3px 5px rgba(0,0,0,.55)); }

/* Верхняя панель: профиль пользователя */
.topbar{min-height:64px;padding:0 24px;background:#090909;border-bottom-color:#1b1b1b}.brand-logo img{width:42px;height:42px;object-fit:contain}.topbar .account-nav{gap:0!important}.account-menu{margin:0}.account-menu summary{display:flex!important;align-items:center;gap:11px;padding:6px 10px;border-radius:9px;color:#f5f5f5;cursor:pointer;transition:background .2s ease}.account-menu summary:after{content:none!important}.account-menu summary:hover{background:rgba(255,255,255,.045)}.header-avatar-wrap{position:relative;display:flex;width:38px;height:38px;flex:0 0 38px}.header-user-avatar{display:grid!important;width:38px;height:38px;place-items:center;overflow:hidden;border:2px solid var(--yellow);border-radius:50%;background:#111;color:var(--yellow);font-size:15px;font-weight:900;object-fit:contain}.header-user-avatar-placeholder{display:grid}.header-online-dot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border:2px solid #090909;border-radius:50%;background:#22c55e;box-shadow:0 0 9px rgba(34,197,94,.9);animation:header-online-pulse 2s ease-in-out infinite}.header-user-name{max-width:190px;overflow:hidden;color:#f6f6f6;font-size:14px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.header-menu-arrow{color:#858585;font-size:18px;line-height:1;transition:transform .2s ease,color .2s ease}.account-menu[open] .header-menu-arrow{transform:rotate(180deg);color:var(--yellow)}.account-menu[open] summary{background:#151515}@keyframes header-online-pulse{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.45)}50%{box-shadow:0 0 0 5px rgba(34,197,94,0)}}@media(max-width:520px){.topbar{padding:0 12px}.brand-logo img{width:38px;height:38px}.header-user-name{max-width:110px}.account-menu summary{gap:8px;padding:6px}.header-menu-arrow{display:none}}
.topbar{height:51px;min-height:51px;padding:0 24px!important}.brand-logo{height:51px}.brand-logo img{width:34px;height:34px}.topbar .account-nav{height:51px;gap:24px!important}.header-time{display:grid;justify-items:end;line-height:1.05}.header-time strong{color:var(--yellow);font-size:13px;font-weight:900}.header-time small{margin-top:3px;color:#676767;font-size:11px;font-weight:700}.account-menu summary{height:51px;padding:0!important;background:transparent!important}.account-menu summary:hover{background:transparent!important}.header-avatar-wrap{width:36px;height:36px;flex-basis:36px}.header-user-avatar{width:36px;height:36px;border-width:2px}.header-user-name{font-size:14px}.header-menu-arrow{font-size:14px;color:var(--yellow)}.account-menu[open] .header-menu-arrow{transform:rotate(180deg)}.account-menu-popover.online-popover{top:51px;right:0;display:none;width:280px;min-width:280px;padding:0;border-color:#1d1d1d;border-radius:0 0 12px 12px;background:#111;box-shadow:0 12px 32px rgba(0,0,0,.5)}.account-menu[open] .online-popover{display:block}.online-popover-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #1e1e1e}.online-popover-head strong{color:#858585;font-size:12px;letter-spacing:.04em}.online-popover-head span{padding:3px 9px;border-radius:999px;background:rgba(34,197,94,.12);color:#22c55e;font-size:11px;font-weight:800}.online-popover-list{display:grid;padding:6px 0}.online-person{display:grid!important;grid-template-columns:28px 1fr auto;align-items:center;gap:11px;padding:10px 16px!important;border:0!important;border-radius:0!important;color:#f3f3f3!important;text-decoration:none}.online-person:hover{background:#171717!important;color:#fff!important}.online-person-avatar{display:grid;width:28px;height:28px;place-items:center;overflow:hidden;border-radius:50%;background:var(--yellow);color:#111;font-size:11px;font-weight:900}.online-person-avatar img{width:100%;height:100%;object-fit:contain;background:#0b0b0b}.online-person b{font-size:13px}.online-person small{color:#777;font-size:11px;font-weight:600}@media(max-width:600px){.topbar{padding:0 12px!important}.topbar .account-nav{gap:10px!important}.header-time{display:none}.header-user-name{max-width:120px}.account-menu-popover.online-popover{right:-12px;width:min(280px,calc(100vw - 24px));min-width:0}}

.landing-nav { display: flex; gap: 30px; margin-left: auto; }
.landing-nav a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 14px; font-weight: 700; transition: color .2s ease; }
.landing-nav a:hover { color: var(--yellow); }

.landing-login { padding: 11px 17px; border: 1px solid rgba(255, 214, 0, .68); border-radius: 8px; color: var(--yellow); font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.landing-login:hover { color: #111; background: var(--yellow); transform: translateY(-2px); }

.landing-hero { flex: 1; display: flex; align-items: center; padding: 64px 0; }
.landing-hero-grid { display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; gap: 48px; }
.landing-badge { margin: 0 0 18px; color: var(--yellow); font-size: 13px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.landing-copy h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 5.2vw, 72px); line-height: .98; letter-spacing: -2.6px; }
.landing-copy h1 span { color: var(--yellow); }
.landing-subtitle { max-width: 650px; margin: 27px 0 0; color: rgba(255,255,255,.63); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.65; }

.landing-message { max-width: 600px; margin: 34px 0 0; padding: 18px 21px; border-left: 3px solid var(--yellow); background: rgba(255,255,255,.035); color: rgba(255,255,255,.77); font-size: 15px; line-height: 1.55; }
.landing-message p { margin: 0; }
.landing-message footer { margin-top: 9px; color: var(--yellow); font-weight: 800; }

.landing-visual { display: flex; justify-content: center; align-items: center; min-height: 390px; }
.landing-logo-orbit { position: relative; display: grid; place-items: center; width: min(410px, 78vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,220,25,.18), transparent 59%); animation: landing-logo-breathe 4s ease-in-out infinite; }
.landing-logo-orbit::before { content: ''; position: absolute; inset: 10%; border: 1px solid rgba(255,220,0,.18); border-radius: 50%; }
.landing-logo-orbit img { position: relative; z-index: 1; width: 100%; height: auto; mix-blend-mode: screen; filter: drop-shadow(0 14px 20px rgba(0,0,0,.7)); }

@keyframes landing-logo-breathe { 50% { transform: translateY(-8px) scale(1.02); } }

.landing-footer { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.36); font-size: 13px; text-align: center; }
.landing-footer b { color: rgba(255,214,0,.8); }

@media (max-width: 760px) {
  .landing-container { padding: 0 18px; }
  .landing-header .landing-container { gap: 12px; }
  .landing-brand { font-size: 11px; letter-spacing: 1px; }
  .landing-brand img { width: 34px; height: 34px; }
  .landing-nav { display: none; }
  .landing-login { margin-left: auto; padding: 9px 11px; font-size: 12px; }
  .landing-hero { padding: 42px 0 50px; }
  .landing-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .landing-copy h1 { font-size: clamp(39px, 12vw, 58px); letter-spacing: -1.8px; }
  .landing-subtitle { margin-top: 21px; font-size: 16px; }
  .landing-message { margin-top: 27px; font-size: 14px; }
  .landing-visual { min-height: 250px; }
  .landing-logo-orbit { width: min(315px, 86vw); }
}
/* Disease directory */
.disease-search-panel { max-width: 720px; margin-bottom: 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.disease-search-panel label { display: block; font-weight: 800; }
.disease-search-panel p { margin: 8px 0 0; }
.disease-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.disease-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--panel); transition: border-color .2s ease, transform .2s ease; }
.disease-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.disease-card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 900; }
.disease-card summary::-webkit-details-marker { display: none; }
.disease-card-toggle { display: grid; width: 28px; height: 28px; place-items: center; flex: 0 0 28px; border: 1px solid var(--yellow); border-radius: 50%; color: var(--yellow); font-size: 0; line-height: 0; transition: transform .2s ease, background .2s ease; }
.disease-card-toggle::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.table-title-link { color: var(--yellow); font-weight: 800; text-decoration: none; }
.table-title-link:hover { color: #fff2a1; text-decoration: underline; }
.page-access-fieldset { margin: 18px 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; }
.page-access-fieldset legend { padding: 0 6px; color: var(--yellow); font-weight: 800; }
.page-access-fieldset .muted { margin-top: 0; }
.page-access-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 16px; margin-top: 12px; }
.page-access-list .checkbox { margin: 0; }
[hidden]{display:none!important}.rich-editor{margin-top:7px;border:1px solid #3e3e43;border-radius:10px;overflow:hidden;background:#14161d}.rich-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:8px;border-bottom:1px solid #2a2c32;background:#1b1d25}.rich-tool{display:grid;min-width:32px;height:31px;place-items:center;border:0;border-radius:6px;background:transparent;color:#d8d9e1;font:700 15px/1 inherit;cursor:pointer}.rich-tool:hover,.rich-tool:focus{background:#323541;color:#fff;outline:0}.rich-tool:disabled{opacity:.55;cursor:wait}.rich-select{display:block!important;width:auto!important;height:31px!important;margin:0!important;padding:3px 7px!important;border:1px solid #3c3f4b!important;border-radius:6px!important;background:#252832!important;color:#d8d9e1!important;font-size:12px!important}.rich-color{display:block!important;width:31px!important;height:31px!important;margin:0!important;padding:3px!important;border:1px solid #3c3f4b!important;border-radius:6px!important;background:#252832!important;cursor:pointer}.rich-edit-area,.rich-preview{min-height:250px;padding:15px 17px;background:#15171e;color:#f0f1f4;line-height:1.65;outline:0}.rich-edit-area:focus{box-shadow:inset 0 0 0 1px var(--yellow)}.rich-edit-area h2,.rich-preview h2{color:var(--yellow)}.rich-edit-area blockquote,.rich-preview blockquote{margin:14px 0;padding:8px 14px;border-left:3px solid var(--yellow);background:#101114;color:#cfd1d9}.rich-edit-area img,.rich-preview img{display:block;max-width:100%;height:auto;margin:15px auto;border-radius:8px}.rich-editor-modes{display:flex;align-items:center;gap:7px;margin-left:auto;color:#777;font-weight:800}.rich-editor-modes button{padding:0;border:0;background:transparent;color:#aaa;font:inherit;cursor:pointer}.rich-editor-modes button.active,.rich-editor-modes button:hover{color:var(--yellow)}@media(max-width:700px){.rich-editor-modes{margin-left:0}.rich-select{max-width:92px}}
.disease-card[open] { border-color: var(--yellow); }
.disease-card[open] .disease-card-toggle { transform: rotate(180deg); background: #28230c; }
.disease-card-content { padding: 0 18px 17px; border-top: 1px solid #2a2a2a; animation: disease-reveal .2s ease; }
.disease-card-content .eyebrow { margin-top: 14px; }
.disease-card-content ul { margin: 8px 0 0; padding-left: 20px; color: #ddd; }
.disease-card-content li { margin: 5px 0; }
.disease-card-content li::marker { color: var(--yellow); }
@keyframes disease-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.rich-field{display:block;margin:16px 0;font-weight:700}.rich-field>span{display:block;margin-bottom:6px}.rich-tool.active{background:#4c4210!important;color:var(--yellow)!important;box-shadow:inset 0 0 0 1px rgba(255,210,0,.42)}
.rich-edit-area.dragover{box-shadow:inset 0 0 0 2px var(--yellow);background:#24200f}
.rich-colour-white{color:#fff!important;border:1px solid #777!important}.rich-colour-yellow{color:var(--yellow)!important;border:1px solid var(--yellow)!important;background:#322d12!important}
.lesson-content strong,.lesson-content b,.honour-story-text strong,.honour-story-text b,.material-content strong,.material-content b,.public-page strong,.public-page b{font-weight:800!important}.lesson-content em,.lesson-content i,.honour-story-text em,.honour-story-text i,.material-content em,.material-content i,.public-page em,.public-page i{font-style:italic!important}.lesson-content u,.honour-story-text u,.material-content u,.public-page u{text-decoration:underline!important}
