/* Бета-режим: плашка внизу, значок «β», окно сообщения и приветствие. Свои классы stb-*, чтобы не задевать страницы. */
.stb-root,.stb-dialog{--stb-accent:#5b5ee6;--stb-ink:#192238;--stb-muted:#5d6782}
.stb-root{font:14px/1.45 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--stb-ink)}
html.stb-has-bar body{padding-bottom:64px}
dialog.stb-host{padding-bottom:64px!important}
.stb-bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:2147483000;display:flex;align-items:center;gap:12px;max-width:1100px;margin:0 auto;padding:9px 10px 9px 12px;border:1px solid #dcdffa;border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(25,34,56,.16);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);animation:stb-up .3s cubic-bezier(.05,.7,.1,1) both}
.stb-bar[hidden],.stb-badge[hidden],.stb-menu[hidden]{display:none}
.stb-mark,.stb-badge{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#7b7ef0,#5b5ee6);color:#fff;font:800 18px/1 Georgia,serif}
.stb-text{flex:1;min-width:0;margin:0;font-size:13.5px;color:var(--stb-muted)}
.stb-text strong{color:var(--stb-ink)}
.stb-actions{display:flex;gap:8px;flex:none}
.stb-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border:1.5px solid var(--stb-accent);border-radius:10px;background:var(--stb-accent);color:#fff;font-family:inherit;font-size:13.5px;font-weight:600;line-height:1;cursor:pointer;white-space:nowrap}
.stb-btn:hover{filter:brightness(1.07)}
.stb-btn.is-ghost{background:#fff;color:#3b3fb8;border-color:#c9cbf6}
.stb-btn:disabled{opacity:.6;cursor:wait}
.stb-close{flex:none;width:32px;height:32px;padding:0;border:0;border-radius:9px;background:transparent;color:#7a8396;font-size:22px;line-height:1;cursor:pointer}
.stb-close:hover{background:#f0f1f8;color:var(--stb-ink)}
.stb-badge{position:fixed;right:14px;bottom:14px;z-index:2147483000;width:44px;height:44px;border:3px solid #fff;font-size:22px;box-shadow:0 8px 22px rgba(91,94,230,.35);cursor:pointer;transition:transform .15s}
.stb-badge:hover,.stb-badge[aria-expanded="true"]{transform:scale(1.08)}
.stb-badge:focus-visible,.stb-btn:focus-visible,.stb-close:focus-visible{outline:3px solid #9fa2f3;outline-offset:2px}
.stb-badge.is-hint{animation:stb-pulse 1.2s ease-out 4}
.stb-menu{position:fixed;right:14px;bottom:68px;z-index:2147483000;display:grid;gap:2px;min-width:250px;padding:8px;border:1px solid #e4e7f1;border-radius:14px;background:#fff;box-shadow:0 16px 40px rgba(25,34,56,.2);animation:stb-up .18s ease-out both}
.stb-menu-title{margin:2px 8px 6px;font-size:12px;font-weight:700;color:var(--stb-muted);text-transform:uppercase;letter-spacing:.04em}
.stb-menu button{display:flex;align-items:center;gap:10px;padding:10px;border:0;border-radius:10px;background:transparent;color:var(--stb-ink);font-family:inherit;font-size:14px;font-weight:600;line-height:1.2;text-align:left;cursor:pointer}
.stb-menu button:hover,.stb-menu button:focus-visible{background:#f2f3fe;outline:none}
.stb-menu .stb-menu-more{font-weight:500;color:var(--stb-muted);font-size:13px}
.stb-ico{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;font-weight:900;color:#fff}
.stb-ico.is-bug{background:#d6453d}.stb-ico.is-idea{background:#1f8a55}

.stb-dialog{position:fixed;inset:0;margin:auto;height:fit-content;width:min(560px,calc(100vw - 24px));box-sizing:border-box;max-height:calc(100vh - 32px);padding:24px;border:0;border-radius:20px;background:#fff;color:#192238;box-shadow:0 24px 70px rgba(25,34,56,.3);font:14px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow:auto}
.stb-dialog::backdrop{background:rgba(20,24,40,.45)}
.stb-dialog h2{margin:0 36px 14px 0;font-size:21px;line-height:1.25}
.stb-x{position:absolute;line-height:1;top:14px;right:14px;width:34px;height:34px;padding:0;border:0;border-radius:10px;background:#f2f3f8;color:#5d6782;font-size:22px;cursor:pointer}
.stb-form{display:grid;gap:12px}
.stb-types{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stb-type{position:relative;display:block;cursor:pointer}
.stb-type input{position:absolute;opacity:0;pointer-events:none}
.stb-type span{display:grid;gap:2px;padding:10px 12px;border:1.5px solid #e1e4ef;border-radius:12px;background:#fff;transition:border-color .15s,background .15s}
.stb-type strong{font-size:14px}.stb-type small{font-size:12px;color:#687189}
.stb-type input:checked+span{border-color:#5b5ee6;background:#eeefff}
.stb-type input:focus-visible+span{outline:3px solid #9fa2f3;outline-offset:2px}
.stb-field{display:grid;gap:5px;font-weight:600;font-size:13px}
.stb-field textarea,.stb-field input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d6daea;border-radius:12px;font-family:inherit;font-size:14px;line-height:1.5;color:#192238;background:#fff;resize:vertical}
.stb-field textarea:focus,.stb-field input:focus{outline:3px solid #c9cbf6;border-color:#5b5ee6}
.stb-shot{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.stb-shot small{color:#687189}
.stb-attach{position:relative;display:inline-flex;align-items:center;padding:8px 12px;border:1.5px dashed #c9cbf6;border-radius:10px;color:#3b3fb8;font-weight:600;cursor:pointer}
.stb-attach:focus-within{outline:3px solid #9fa2f3}
.stb-file{position:absolute;inset:0;opacity:0;cursor:pointer}
.stb-shot-preview{display:flex;align-items:center;gap:12px}.stb-shot-preview img{max-width:160px;max-height:100px;border-radius:8px;border:1px solid #e4e7f1}
.stb-link{border:0;background:none;padding:0;color:#3b3fb8;font:inherit;text-decoration:underline;cursor:pointer}
.stb-note{margin:0;font-size:12.5px;color:#687189}
.stb-status{margin:0;min-height:1em;color:#b3261e;font-weight:600}
.stb-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap}
.stb-thanks{display:grid;justify-items:center;gap:6px;padding:12px 0;text-align:center}
.stb-thanks h3{margin:4px 0 0;font-size:18px}.stb-thanks p{margin:0 0 8px;color:#5d6782}
.stb-thanks-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#e5f5ec;color:#1f8a55;font-size:26px;font-weight:900}
.stb-welcome{width:min(600px,calc(100vw - 24px));text-align:left}
.stb-welcome-art{display:grid;place-items:center;width:64px;height:64px;margin:0 0 12px;border-radius:20px;background:linear-gradient(135deg,#7b7ef0,#5b5ee6);color:#fff;font:800 34px/1 Georgia,serif;box-shadow:0 12px 26px rgba(91,94,230,.3)}
.stb-welcome p{margin:0 0 12px;color:#3b4560}
.stb-welcome-list{display:grid;gap:10px;margin:0 0 14px;padding:0;list-style:none}
.stb-welcome-list li{padding:10px 12px;border-radius:12px;background:#f6f7fc;color:#3b4560}
.stb-welcome-list strong{color:#192238}
.stb-inline-badge{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#5b5ee6;color:#fff;font:800 13px/1 Georgia,serif;vertical-align:-4px}
.stb-welcome-thanks{font-weight:600;color:#192238!important}
.stb-welcome .stb-form-actions{justify-content:space-between}
@keyframes stb-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes stb-pulse{0%{box-shadow:0 0 0 0 rgba(91,94,230,.55)}100%{box-shadow:0 0 0 18px rgba(91,94,230,0)}}
@media(max-width:760px){
 .stb-bar{flex-wrap:wrap;left:8px;right:8px;bottom:8px;gap:8px}
 .stb-text{flex-basis:calc(100% - 90px);font-size:12.5px}
 .stb-text-more{display:none}
 .stb-actions{order:3;flex-basis:100%}.stb-actions .stb-btn{flex:1;padding:0 8px;font-size:12.5px}
 html.stb-has-bar body,dialog.stb-host{padding-bottom:120px!important}
 .stb-types{grid-template-columns:1fr}
 .stb-dialog{padding:18px}
}
@media(prefers-reduced-motion:reduce){.stb-bar,.stb-menu,.stb-badge.is-hint{animation:none}}
@media print{.stb-root{display:none}}
/* Пояснение «i» у ученика тоже прижато к низу — поднимаем его над плашкой. */
html.stb-has-bar .help-sheets{bottom:72px}
@media(max-width:760px){html.stb-has-bar .help-sheets{bottom:122px}}
