/* Мисиариум 2.9.1 — чист учителски панел, изолиран от учебните светове */
.m291-hub{--m291-ink:#183d46;--m291-teal:#087d72;--m291-soft:#eaf7f2;color:var(--m291-ink);margin:22px 0 42px}
.m291-hub *{box-sizing:border-box}
.m291-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;background:linear-gradient(114deg,#133846,#16665d);border-radius:23px;padding:31px 33px;color:#fff;box-shadow:0 16px 45px #173e4330}
.m291-welcome h1{font-size:clamp(1.5rem,2.6vw,2.35rem);line-height:1.13;color:#fff;margin:8px 0 10px;max-width:610px}
.m291-welcome p{color:#e0f3ed;max-width:700px;line-height:1.5;margin:0}
.m291-welcome .m291-eyebrow{color:#bbf4d4;font-size:.76rem;text-transform:uppercase;letter-spacing:.12em;font-weight:850}
.m291-switch{display:flex;background:#082c36a8;padding:5px;gap:4px;border:1px solid #ffffff43;border-radius:13px;align-self:flex-start;flex-shrink:0}
.m291-switch a{color:#d7ede5;text-decoration:none;font-size:.83rem;font-weight:800;padding:10px 14px;border-radius:9px;white-space:nowrap}
.m291-switch a.is-current{background:#d8ffdf;color:#105043}
.m291-section-heading{display:flex;gap:15px;justify-content:space-between;align-items:center;margin:32px 0 16px}
.m291-section-heading h2,.m291-more-title{color:#1c4650;font-size:1.29rem;margin:0}
.m291-section-heading p{color:#5b7174;font-size:.86rem;margin:0}
.m291-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.m291-card{display:flex;flex-direction:column;gap:10px;min-height:216px;padding:21px;border-radius:17px;background:#fff;border:1px solid #d3e3dc;text-decoration:none;color:#1c4550;box-shadow:0 9px 25px #1c414212;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.m291-card:hover,.m291-card:focus-visible{transform:translateY(-3px);border-color:#0a8176;box-shadow:0 13px 25px #1b554022}
.m291-card-icon{font-size:1.9rem;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;background:#e6f5eb;width:55px;height:55px;border-radius:13px}
.m291-card strong{font-size:1.03rem;line-height:1.27;color:#153d45}
.m291-card>span:not(.m291-card-icon){font-size:.85rem;color:#536a71;line-height:1.5}
.m291-card small{font-size:.82rem;color:#076e65;font-weight:850;margin-top:auto}
.m291-more-title{margin:37px 0 14px}
.m291-folds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.m291-fold{background:#fff;border:1px solid #d2e3dd;border-radius:13px;overflow:hidden}
.m291-fold summary{list-style:none;display:flex;flex-direction:column;gap:4px;padding:18px 19px;cursor:pointer;color:#174b51;position:relative;padding-right:44px}
.m291-fold summary::-webkit-details-marker{display:none}
.m291-fold summary:after{content:'+';position:absolute;right:17px;top:17px;color:#106b60;font-size:1.4rem;font-weight:500}
.m291-fold[open] summary:after{content:'−'}
.m291-fold summary span{font-size:1rem;font-weight:850}
.m291-fold summary small{font-size:.78rem;color:#63777a}
.m291-fold[open]{border-color:#80c5b0}
.m291-links{border-top:1px solid #e2eee8;padding:7px 11px 12px;display:grid;gap:4px}
.m291-world-links{max-height:390px;overflow:auto}
.m291-list-link{display:flex;align-items:center;gap:10px;padding:10px 9px;border-radius:8px;text-decoration:none;color:#25535b;font-weight:650;font-size:.87rem}
.m291-list-link:hover,.m291-list-link:focus-visible{background:#e8f5ee;color:#065c52}
.m291-list-link>span:first-child{font-size:1.07rem}
.m291-arrow{margin-left:auto;color:#5f8178}
.m291-admin-hint{margin-top:23px;color:#566b72;font-size:.9rem}
.m291-admin-hint a{font-weight:800;color:#066d62}
.m291-foot{margin-top:30px;border-top:1px solid #d9e5df;padding:16px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;color:#627c7e;font-size:.82rem}
.m291-footer-actions{display:flex;gap:15px;align-items:center}
.m291-footer-actions form{margin:0}
.m291-footer-actions button,.m291-exit{font:inherit;font-weight:800;background:#fff2ee;border:1px solid #edc6c0;color:#a1382f;padding:8px 12px;border-radius:8px;cursor:pointer}
.m291-footer-actions a{font-weight:800;color:#13695d}
.m291-utility{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:10px 0 14px;border-bottom:1px solid #dbe8e2;margin:9px 0 18px}
.m291-utility>a{padding:8px 12px;border-radius:9px;color:#16675e;background:#ebf5ef;text-decoration:none;font-size:.85rem;font-weight:800}
.m291-utility>a:hover{background:#d3ede1}
.m291-utility>a.m291-return{background:#0c7468;color:#fff}
.m291-utility form{margin:0 0 0 auto}
.m291-teacher-hero{background:linear-gradient(105deg,#133b49,#166259);border-radius:20px;padding:26px 29px;margin:15px 0 21px;color:#fff}
.m291-teacher-hero h1{margin:0 0 7px;color:#fff;font-size:clamp(1.4rem,2.7vw,2.2rem)}
.m291-teacher-hero p{max-width:720px;line-height:1.5;color:#deede8;margin:0 0 15px}
.m291-teacher-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px}
.m291-teacher-links a{display:flex;align-items:center;gap:8px;border:1px solid #b4ead18a;background:#ffffff18;padding:14px 10px;color:#fff;border-radius:11px;text-decoration:none;font-weight:800;font-size:.88rem}
.m291-teacher-links a:hover{background:#ffffff34}
.m291-teacher-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.m291-teacher-bottom form{margin:0}
.m291-teacher-bottom button{background:transparent;color:#e0eeea;border:1px solid #b6d8ce;border-radius:8px;padding:8px 11px;cursor:pointer}
.m291-create-box{padding:0!important}
.m291-create-box>summary{font-size:1.11rem;font-weight:850;color:#18524e;cursor:pointer;padding:21px 24px;list-style:none}
.m291-create-box>summary:before{content:'+ ';color:#0b7b69}
.m291-create-box>summary::-webkit-details-marker{display:none}
.m291-create-box[open]>summary{border-bottom:1px solid #d8e7df}
.m291-create-box>.admin-form{padding:5px 24px 24px}
.m291-hub a:focus-visible,.m291-hub summary:focus-visible,.m291-teacher-hero a:focus-visible{outline:3px solid #f2bf58;outline-offset:3px}
@media(max-width:1060px){.m291-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.m291-teacher-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.m291-welcome{display:block;padding:23px 20px}.m291-switch{display:inline-flex;margin-top:18px}.m291-folds{grid-template-columns:1fr}.m291-section-heading{display:block}.m291-section-heading p{margin-top:5px}.m291-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.m291-card{min-height:190px;padding:15px}.m291-teacher-hero{padding:20px}.m291-utility{gap:7px}}
@media(max-width:440px){.m291-cards,.m291-teacher-links{grid-template-columns:1fr}.m291-card{min-height:0}.m291-switch a{padding:9px}.m291-footer-actions{width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.m291-card{transition:none}.m291-card:hover{transform:none}}
