/* Skillkids тренажёр. Цвета взяты из логотипа: жёлтый, красный, бирюзовый, синий. */
@font-face { font-family: "Rubik"; src: url("../vendor/fonts/Rubik.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../vendor/fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #23304a; --muted: #66728c; --paper: #ffffff; --soft: #f1f6fb; --line: #dbe4ef;
  --yellow: #ffd93b; --yellow-d: #e0ad00; --red: #ff4b4f; --red-d: #cf2b30; --teal: #2ec4a9; --teal-d: #1a9a83; --blue: #247ba0; --blue-d: #17597a;
  --ok: #33b652; --ok-d: #238a3b; --ok-bg: #e4f9e9; --bad-bg: #ffe9ea; --warn-bg: #fff5d1;
  --head: "Rubik", "Segoe UI", sans-serif; --body: "Nunito", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink); font: 700 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-color: #1f7196;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23fff' fill-opacity='.03'%3E%3Cpath d='M0 0L150 70 40 190Z'/%3E%3Cpath d='M360 40L230 150 340 270Z'/%3E%3Cpath d='M120 360L250 210 300 360Z'/%3E%3C/g%3E%3Cg fill='%23000' fill-opacity='.025'%3E%3Cpath d='M170 0L290 0 220 90Z'/%3E%3Cpath d='M0 240L100 300 0 360Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(170deg, #2a8fb4 0%, #1f7196 45%, #185a7e 100%);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.15; }
.pic { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.ui { width: 1.15em; height: 1.15em; display: block; }

/* Заголовки на фоне страницы, как надпись на логотипе */
.title { font: 800 36px/1.1 var(--head); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); margin: 0 0 6px; letter-spacing: -.01em; }
.lead { color: #e2f2fa; margin: 0 0 20px; font-weight: 700; }
.sec { font: 700 22px/1.2 var(--head); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .22); margin: 30px 0 12px; }
.muted { color: var(--muted); }

/* Шапка */
.hud { background: var(--paper); box-shadow: 0 4px 0 rgba(0, 0, 0, .14); position: sticky; top: 0; z-index: 20; }
.hud-in { max-width: 1160px; margin: 0 auto; padding: 6px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; text-align: left; }
.brand img { width: 54px; height: 54px; object-fit: contain; display: block; transition: transform .2s; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand b { font: 800 17px/1.02 var(--head); }
.brand small { display: block; font: 600 13px/1.1 var(--head); color: var(--muted); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 13px; font: 600 15px var(--head); color: var(--muted); transition: background .15s, color .15s; }
.tab i { width: 26px; height: 26px; display: block; }
.tab:hover { background: var(--soft); color: var(--ink); }
.tab.on { background: #e3f4ff; color: var(--blue-d); box-shadow: inset 0 0 0 2px #9fd6f2; }
.stats { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 6px; padding: 4px 11px 4px 7px; border-radius: 13px; background: var(--soft); font: 700 15px var(--head); white-space: nowrap; }
.chip i { width: 24px; height: 24px; display: block; }
.chip.btnish:hover { background: #e3edf7; }
.lvl { display: flex; align-items: center; gap: 7px; padding: 4px 11px 4px 7px; border-radius: 13px; background: var(--soft); }
.lvl i { width: 26px; height: 26px; display: block; }
.lvl b { font: 700 13px/1 var(--head); display: block; margin-bottom: 4px; white-space: nowrap; }
.xpbar { width: 86px; height: 8px; border-radius: 5px; background: #d3deea; overflow: hidden; }
.xpbar u { display: block; height: 100%; background: linear-gradient(90deg, #ffc21a, #ff9b14); border-radius: 5px; transition: width .5s; }
.mode-pill { display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 13px; background: var(--ink); color: #fff; font: 800 14px var(--head); }
.mode-pill:hover { background: #33446a; }
.ava { width: 42px; height: 46px; display: block; transition: transform .15s; }
.ava:hover { transform: translateY(-2px); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 24px 18px 70px; }

/* Кнопки с объёмом */
.btn { --c: #fff; --d: #c5d0de; --t: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 14px; background: var(--c); color: var(--t); box-shadow: 0 5px 0 var(--d); font: 700 16px var(--head); transition: transform .08s, box-shadow .08s, filter .15s; position: relative; top: 0; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--d); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .choice:focus-visible, .tab:focus-visible, .world:focus-visible, .node:focus-visible { outline: 3px solid #1d9bf0; outline-offset: 3px; }
.btn.go { --c: var(--yellow); --d: var(--yellow-d); }
.btn.ok { --c: var(--ok); --d: var(--ok-d); --t: #fff; }
.btn.red { --c: var(--red); --d: var(--red-d); --t: #fff; }
.btn.blue { --c: var(--blue); --d: var(--blue-d); --t: #fff; }
.btn.big { padding: 15px 28px; font-size: 19px; border-radius: 17px; }
.btn.small { padding: 7px 13px; font-size: 14px; box-shadow: 0 4px 0 var(--d); }
.btn i { width: 24px; height: 24px; display: block; }

.card { background: var(--paper); border-radius: 22px; padding: 22px; box-shadow: 0 6px 0 rgba(13, 42, 66, .28); }

/* Персонаж */
.mascot { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot .m-flame { transform-origin: 60px 62px; animation: flicker 1.1s ease-in-out infinite alternate; }
.mascot .m-eyes { transform-origin: 60px 85px; animation: blink 4.6s infinite; }
.bob { animation: bob 2.6s ease-in-out infinite; }
.talking .m-mouth { transform-origin: 60px 102px; animation: talk .26s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(1, .94) rotate(-2deg); } to { transform: scale(1.03, 1.06) rotate(2deg); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.08); } }
@keyframes bob { 50% { transform: translateY(-7px); } }
@keyframes talk { from { transform: scaleY(.45); } to { transform: scaleY(1.25); } }
.bubble { position: relative; background: var(--paper); border-radius: 18px; padding: 12px 16px; font-weight: 800; box-shadow: 0 4px 0 rgba(13, 42, 66, .2); }
.bubble.left::before { content: ""; position: absolute; left: -12px; top: 22px; border: 8px solid transparent; border-right: 13px solid var(--paper); border-left: 0; }

/* Вход и выбор экзамена */
.gate { min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px 50px; text-align: center; }
.gate-logo { width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .2)); }
.gate .title { font-size: 40px; margin-top: 10px; }
.who-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0; max-width: 760px; }
.who { background: var(--paper); border-radius: 20px; padding: 12px 18px 12px; width: 134px; box-shadow: 0 6px 0 rgba(13, 42, 66, .28); transition: transform .12s; font: 700 16px var(--head); overflow-wrap: anywhere; }
.who:hover { transform: translateY(-4px) rotate(-1.5deg); }
.who span { display: block; width: 74px; height: 86px; margin: 0 auto 6px; }
.new-who { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; width: 100%; max-width: 440px; }
.new-who input { flex: 1 1 190px; }
.modes-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; width: 100%; max-width: 760px; margin-top: 22px; }
.exam-door { --c: #ffcf33; --d: #dea900; background: var(--c); border-radius: 28px; padding: 22px; box-shadow: 0 9px 0 var(--d); color: var(--ink); transition: transform .12s, box-shadow .12s; display: block; text-align: center; }
.exam-door:hover { transform: translateY(-4px); box-shadow: 0 13px 0 var(--d); }
.exam-door:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--d); }
.exam-door.ege { --c: #ff6166; --d: #cf2b30; color: #fff; }
.exam-door i { display: block; width: 104px; height: 104px; margin: 0 auto 6px; animation: bob 3s ease-in-out infinite; }
.exam-door b { display: block; font: 900 50px/1 var(--head); letter-spacing: .01em; }
.exam-door em { display: block; font: 700 17px var(--head); font-style: normal; margin: 4px 0 8px; }
.exam-door small { display: block; font-weight: 800; font-size: 14px; opacity: .85; }
.exam-door .last { display: inline-block; margin-top: 9px; padding: 2px 10px; background: rgba(255, 255, 255, .85); border-radius: 9px; color: var(--ink); font-size: 12px; }

/* Главная: приветствие */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 18px; margin-bottom: 8px; }
.hero-main { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, #ffe34f, #ffc61f); padding: 18px 24px; box-shadow: 0 6px 0 var(--yellow-d); position: relative; overflow: hidden; }
.hero-main::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 210px; height: 210px; background: rgba(255, 255, 255, .22); transform: rotate(28deg); }
.hero-mascot { flex: 0 0 auto; width: 112px; height: 130px; position: relative; z-index: 1; }
.hero-txt { position: relative; z-index: 1; min-width: 0; }
.hero-txt h1 { font: 800 30px/1.1 var(--head); }
.hero-txt p { margin: 5px 0 13px; font-size: 16px; }
.row-btn { display: flex; gap: 12px; flex-wrap: wrap; }
.goal { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.goal-top { display: flex; align-items: center; gap: 10px; }
.goal-top i { flex: 0 0 auto; width: 46px; height: 46px; display: block; }
.goal h3 { font-size: 17px; }
.goal small { color: var(--muted); font-size: 14px; display: block; line-height: 1.25; }
.goalbar { height: 15px; border-radius: 9px; background: #e2eaf3; overflow: hidden; }
.goalbar u { display: block; height: 100%; background: linear-gradient(90deg, #4ed36d, #2fb44f); border-radius: 9px; transition: width .5s; }

/* Карта миров */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.world { --c: #888; --d: #555; background: var(--c); border-radius: 22px; padding: 12px 12px 12px; box-shadow: 0 7px 0 var(--d); color: #fff; text-align: center; transition: transform .12s, box-shadow .12s; position: relative; overflow: hidden; display: block; width: 100%; }
.world::before { content: ""; position: absolute; left: -30px; top: -40px; width: 110px; height: 110px; background: rgba(255, 255, 255, .13); transform: rotate(35deg); }
.world:hover { transform: translateY(-4px); box-shadow: 0 11px 0 var(--d); }
.world:hover i { animation: wiggle .5s ease; }
.world:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--d); }
.world i { display: block; width: 76px; height: 76px; margin: 2px auto 5px; position: relative; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .18)); }
.world b { display: block; font: 700 16px/1.15 var(--head); min-height: 37px; position: relative; display: flex; align-items: center; justify-content: center; }
.world small { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; background: rgba(0, 0, 0, .2); padding: 1px 10px 1px 6px; border-radius: 10px; font: 700 13px var(--head); position: relative; }
.world small svg { width: 15px; height: 15px; }
.world small svg path { fill: #ffd93b; stroke: none; }
.world .mini { display: block; height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .22); margin-top: 8px; overflow: hidden; position: relative; }
.world .mini u { display: block; height: 100%; background: #ffe14d; border-radius: 4px; }
@keyframes wiggle { 25% { transform: rotate(-9deg) scale(1.08); } 75% { transform: rotate(9deg) scale(1.08); } }

/* Звёзды */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.st { width: 20px; height: 20px; display: block; }
.st path { fill: #dbe3ee; stroke: #9aa8bc; }
.st.on path { fill: #ffd21f; stroke: #c88b00; }

/* Экран мира */
.world-head { --c: #888; --d: #555; display: flex; align-items: center; gap: 16px; background: var(--c); color: #fff; border-radius: 24px; padding: 16px 20px; box-shadow: 0 7px 0 var(--d); margin-bottom: 8px; flex-wrap: wrap; }
.world-head i { flex: 0 0 auto; width: 84px; height: 84px; display: block; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .2)); }
.world-head h1 { font: 800 30px/1.1 var(--head); }
.world-head p { margin: 4px 0 0; font-weight: 800; }
.world-head .row-btn { margin-left: auto; }
.lesson-now { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 14px 0 6px; border-left: 6px solid #22c55e; }
.lesson-now small { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.lesson-now b { font: 800 22px/1.2 var(--head); }
.lesson-now { align-items: stretch; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.check-row.first { border-top: 0; }
.check-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-row b { font: 800 17px/1.25 var(--head); }
.lesson-learn { text-align: left; margin: 6px 0 10px; }
/* Игровые задания уроков: шаги по порядку, пары. */
.q .steps { display: grid; gap: 6px; margin: 12px 0; font-size: .92em; }
.q .steps.alt .step-row b { background: #ff9b14; }
.q .step-row { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(121, 198, 236, .14); text-align: left; }
.q .step-row b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #3aa0d8; color: #fff; font-size: .85em; }
/* Картинки в вопросах: окна программ, панели, клавиши, поле с роботом. Светлые, как скриншоты. */
.q .v-win, .q .v-grid, .q .v-row, .q .v-big, .q .v-rule, .q .v-nodes, .q .v-phone, .q .v-slide, .q .v-prog, .q .v-keys-wrap { margin: 10px 0 12px; }
.v-win { display: block; width: fit-content; max-width: 100%; border-radius: 10px; overflow: hidden; background: #fff; color: #1f2430; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); font: 500 13px/1.35 'Segoe UI', Arial, sans-serif; text-align: left; }
.v-bar { display: flex; align-items: center; gap: 5px; background: #e9ecf2; padding: 6px 10px; font-size: 12px; color: #555; }
.v-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .v-bar i:nth-child(2) { background: #febc2e; } .v-bar i:nth-child(3) { background: #28c840; }
.v-bar span { margin-left: 8px; font-weight: 600; }
.v-url { background: #fff; border-radius: 6px; padding: 2px 10px; font-weight: 400 !important; color: #2a6; min-width: 160px; }
.v-body { padding: 10px 12px; }
.v-dark { background: #1e2129; color: #e8eaf0; } .v-dark .v-bar { background: #2b2f3a; color: #bbb; }
.v-panel .v-body { padding: 4px 0; min-width: 210px; }
.v-layer { display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-bottom: 1px solid #eef0f4; }
.v-layer.sel { background: #dbe8ff; } .v-layer.off { opacity: .4; text-decoration: line-through; }
.v-keys kbd { display: inline-block; min-width: 26px; padding: 4px 8px; border-radius: 7px; background: #fff; color: #222; border: 1px solid #c8ccd6; box-shadow: 0 3px 0 #aab0bf; font: 700 14px/1 'Segoe UI', Arial, sans-serif; text-align: center; }
.v-keys b { margin: 0 5px; opacity: .7; }
.v-big { display: flex; flex-direction: column; align-items: center; width: fit-content; } .v-big span { font-size: 56px; line-height: 1.1; } .v-big small { opacity: .8; }
.v-row { display: flex; flex-wrap: wrap; gap: 10px; }
.v-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; padding: 10px 8px; border-radius: 12px; background: #fff; color: #222; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); text-align: center; }
.v-card span { font-size: 34px; line-height: 1; } .v-card small { font-size: 12px; font-weight: 600; }
.v-mark { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: #ff9b14; color: #fff; display: grid; place-items: center; font-size: 13px; }
.v-ev { border-collapse: collapse; font-size: 13px; } .v-ev th { background: #f1f3f7; padding: 5px 10px; text-align: left; } .v-ev td { padding: 6px 10px; border-top: 1px solid #e3e6ec; } .v-ev td:first-child { color: #3a6; } .v-ev td:last-child { color: #c63; }
.v-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: fit-content; padding: 8px; border-radius: 12px; background: #2d2f3a; color: #fff; font-weight: 600; }
.v-rule span { padding: 6px 10px; border-radius: 8px; background: #454857; } .v-rule .w { background: #2e8b57; } .v-rule .d { background: #c0392b; }
.v-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 0; padding: 12px; border-radius: 10px; background: #252830; width: fit-content; }
.v-node { display: flex; align-items: center; border-radius: 8px; overflow: hidden; background: #3b3f4b; color: #fff; font: 600 12px/1.2 'Segoe UI', Arial, sans-serif; }
.v-node b { padding: 7px 10px; } .v-node i { padding: 0 6px; font-style: normal; color: #fff; opacity: .8; }
.v-wire { width: 20px; height: 3px; background: #fff; opacity: .8; }
.v-track { display: flex; align-items: stretch; gap: 3px; margin: 4px 0; min-width: 260px; }
.v-track em { width: 34px; font-style: normal; font-size: 11px; opacity: .7; align-self: center; }
.v-track span { padding: 6px 8px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.v-phone { width: 170px; padding: 10px 8px; border-radius: 26px; background: #111; box-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
.v-phone > div { min-height: 230px; border-radius: 18px; background: #fff; color: #222; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; font: 600 13px/1.3 'Segoe UI', Arial, sans-serif; }
.v-btn { display: inline-block; padding: 7px 16px; border-radius: 10px; background: #3b82f6; color: #fff; font-weight: 700; }
.v-page .v-body { min-width: 240px; background: #fff; }
.v-fx { display: flex; gap: 8px; padding: 4px 6px; border: 1px solid #dfe3ea; border-radius: 4px; font-family: Consolas, monospace; margin-bottom: 6px; } .v-fx b { color: #2a7; font-style: italic; }
.v-sheet { border-collapse: collapse; font-size: 13px; } .v-sheet th { background: #f1f3f7; color: #667; font-weight: 600; padding: 3px 8px; border: 1px solid #dfe3ea; } .v-sheet td { min-width: 54px; padding: 4px 8px; border: 1px solid #dfe3ea; text-align: right; } .v-sheet td.sel { outline: 2px solid #1a8a3a; outline-offset: -2px; background: #e8f6ec; }
.v-slide { width: 220px; aspect-ratio: 16 / 9; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); color: #222; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font: 600 12px/1.3 'Segoe UI', Arial, sans-serif; text-align: left; } .v-slide b { font-size: 15px; }
.v-grid { border-collapse: separate; border-spacing: 3px; background: #2f6b3a; border-radius: 10px; padding: 3px; }
.v-grid td { width: 38px; height: 38px; border-radius: 6px; background: #8fd18f; text-align: center; vertical-align: middle; font-size: 22px; line-height: 1; }
.v-grid td.paint { background: #ffd34d; } .v-grid td.wall { background: #7a5b3a; } .v-grid td.water { background: #5bb7ff; }
.v-grid td.lbl { background: #fff3c4; color: #8a4b00; font: 800 16px/1 'Segoe UI', Arial, sans-serif; }
.v-prog { display: flex; flex-wrap: wrap; gap: 6px; font-size: 20px; }
.v-step, .v-loop { padding: 4px 10px; border-radius: 8px; background: #3b82f6; color: #fff; font-weight: 700; letter-spacing: 2px; } .v-loop { background: #ff9b14; letter-spacing: 0; }
@media (max-width: 520px) { .v-grid td { width: 32px; height: 32px; font-size: 18px; } .v-phone { width: 150px; } .v-slide { width: 190px; } }
/* Учитель: занятия без отметки сверху календаря, даты в журнале со временем. */
.cal-todo-box { margin: 12px 0; border-left: 4px solid #f59e0b; background: #fffbeb; }
.cal-todo-box b { display: block; margin-bottom: 8px; color: #92400e; }
.jg th.jg-d button small { display: block; font-size: 10px; font-weight: 500; opacity: .7; }
/* Руководитель: таблица учеников и родителей. */
.st-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 8px; }
.st-search { flex: 1 1 260px; min-width: 0; padding: 10px 14px; border: 1px solid #d6dde8; border-radius: 10px; font: 600 14px var(--body); background: #fff; color: #1f2937; }
.st-search:focus { outline: 2px solid #93c5fd; border-color: #93c5fd; }
.st-card { padding: 0; overflow: hidden; }
.st-table th { position: sticky; top: 0; background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; }
.st-table td { vertical-align: middle; }
.st-row { cursor: pointer; transition: background .12s; }
.st-row:hover { background: #f1f6ff; }
.st-go { color: #9ca3af; font-size: 22px; text-align: right; }
.st-dots { display: flex; align-items: center; gap: 4px; }
.st-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e5e7eb; }
.st-dots i.on { background: #22c55e; } .st-dots i.on.low { background: #f59e0b; }
.st-dots b { margin-left: 6px; font-size: 13px; } .st-dots b.bad { color: #dc2626; } .st-dots b.warn { color: #d97706; }
.warn-t { color: #d97706; }
.kid-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; margin: 2px 4px 2px 0; border-radius: 999px; background: #eef4ff; color: #1d4ed8; font: 700 13px var(--body); border: 0; cursor: pointer; }
.kid-chip:hover { background: #dbe8ff; }
.kid-chip i { flex: none; width: 8px; height: 8px; padding: 0; margin: 0; border-radius: 50%; background: #22c55e; } .kid-chip i.kd-warn { background: #f59e0b; } .kid-chip i.kd-bad { background: #dc2626; }
/* Расписание неделей: дни колонками, занятия карточками. */
.wk { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; }
.wk-day { background: #f8fafc; border-radius: 10px; padding: 8px; min-height: 140px; display: flex; flex-direction: column; gap: 6px; }
.wk-day.today { background: #eaf1ff; box-shadow: inset 0 0 0 2px #93c5fd; }
.wk-day > b { font-size: 13px; color: #374151; display: flex; justify-content: space-between; align-items: center; }
.wk-day > b button { color: #2563eb; font-weight: 800; font-size: 16px; padding: 0 4px; }
.wk-ev { text-align: left; padding: 7px 9px; border-radius: 9px; background: #fff; border-left: 4px solid #22c55e; box-shadow: 0 1px 4px rgba(31, 41, 55, .08); font: 600 12px/1.35 var(--body); color: #1f2937; width: 100%; cursor: pointer; }
.wk-ev:hover { background: #f1f6ff; }
.wk-ev.on { box-shadow: inset 0 0 0 2px #2563eb; }
.wk-ev b { display: block; font-size: 13px; }
.wk-ev small { display: block; color: #6b7280; }
.view-pills { display: inline-flex; background: #eef1f6; border-radius: 10px; padding: 3px; gap: 2px; margin-left: auto; }
.view-pills button { padding: 5px 12px; border-radius: 8px; font: 700 13px var(--body); color: #4b5563; }
.view-pills button.on { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
/* Варианты ответа картинками. */
.choice.has-pic { padding: 8px; min-height: 64px; }
.pic-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.pic-choice svg { width: 76px; height: 76px; }
.pic-choice small { font-size: 12px; opacity: .85; font-weight: 600; }
.pic-choice .v-keys kbd { font-size: 15px; }
.pic-choice .v-sw { width: 54px; height: 34px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .7); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.pic-choice .v-arrow { font-size: 34px; line-height: 1; }
.pic-choice .v-mini { background: #fff; color: #222; border-radius: 8px; padding: 6px 10px; min-width: 110px; text-align: left; font: 500 13px/1.3 'Segoe UI', Arial, sans-serif; }
.v-sw-big { display: inline-block; width: 90px; height: 56px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.v-shape-prog { display: flex; width: fit-content; margin: 10px 0 12px; flex-direction: column; gap: 3px; padding: 8px 12px; border-radius: 10px; background: #0f7a4a; color: #fff; font: 700 14px/1.3 'Segoe UI', Arial, sans-serif; }
.v-shape-prog span { padding-left: 16px; }
/* Блоки Scratch в вопросах: цвета как в редакторе Scratch 3. */
.sb-two { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.sb-two .sb-s { margin: 10px 0 12px; }
.sb-s { display: flex; width: fit-content; flex-direction: column; align-items: flex-start; margin: 10px 0 12px; font: 600 13px/1.25 'Helvetica Neue', Arial, sans-serif; max-width: 100%; text-align: left; }
.sb-b { --c: #4c97ff; background: var(--c); color: #fff; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; padding: 6px 10px; min-height: 30px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .18); margin-top: -1px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.sb-hat { border-radius: 18px 18px 5px 5px; padding-top: 11px; min-width: 150px; }
.sb-cw { display: flex; flex-direction: column; align-items: flex-start; margin-top: -1px; }
.sb-cw > .sb-ctop, .sb-cw > .sb-cmid { border-radius: 5px 5px 5px 0; }
.sb-cin { display: flex; flex-direction: column; align-items: flex-start; border-left: 16px solid var(--c); padding: 2px 0 2px 0; min-height: 22px; }
.sb-cbot { min-height: 14px; width: 70px; padding: 0; border-radius: 0 5px 5px 5px; }
.sb-n { background: #fff; color: #575e75; border-radius: 12px; padding: 1px 8px; font-weight: 500; }
.sb-d { background: rgba(0, 0, 0, .14); border-radius: 5px; padding: 1px 7px; }
.sb-r { background: var(--c); border: 1px solid rgba(0, 0, 0, .2); border-radius: 12px; padding: 1px 8px; }
.sb-q { background: var(--c); border: 1px solid rgba(0, 0, 0, .2); border-radius: 4px; padding: 2px 9px; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); padding: 2px 12px; }
.sb-sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; vertical-align: middle; }
.sb-flag { color: #4cbf56; font-size: 16px; text-shadow: 0 0 1px #1d6b25; }
.sb-m { --c: #4c97ff; } .sb-l { --c: #9966ff; } .sb-snd { --c: #cf63cf; } .sb-e { --c: #ffbf00; } .sb-c { --c: #ffab19; }
.sb-sen { --c: #5cb1d6; } .sb-o { --c: #59c059; } .sb-v { --c: #ff8c1a; } .sb-p { --c: #ff6680; }
@media (max-width: 520px) { .sb-s { font-size: 12px; } .sb-b { padding: 5px 8px; } .sb-cin { border-left-width: 12px; } }
.q .steps.code .step-row code { font-family: Consolas, 'Courier New', monospace; white-space: pre; }
.path { position: relative; margin: 24px auto 0; width: 100%; max-width: 480px; }
.path svg.road { position: absolute; left: 50%; top: 0; margin-left: -200px; width: 400px; pointer-events: none; }
.node { position: absolute; width: 190px; margin-left: -95px; text-align: center; left: 50%; }
.node-b { --c: #fff; --d: #c5d0de; display: grid; place-items: center; width: 84px; height: 78px; margin: 0 auto; border-radius: 50%; background: var(--c); box-shadow: 0 7px 0 var(--d); font: 800 28px var(--head); color: var(--ink); transition: transform .1s, box-shadow .1s; }
.node-b:hover { transform: translateY(-3px) scale(1.04); }
.node-b:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--d); }
.node.done .node-b { --c: var(--yellow); --d: var(--yellow-d); }
.node.next .node-b { --c: #5fe07d; --d: #2fa84c; color: #fff; animation: pulse-node 1.5s infinite; }
.node .ui { width: 42px; height: 42px; }
@keyframes pulse-node { 50% { filter: brightness(1.12); transform: scale(1.07); } }
.node-t { display: block; margin-top: 10px; background: var(--paper); border-radius: 13px; padding: 5px 9px 4px; font: 700 14px/1.15 var(--head); box-shadow: 0 3px 0 rgba(13, 42, 66, .25); }
.node-t .stars { margin-top: 3px; }
.node-t .st { width: 16px; height: 16px; }

/* Лист темы и диалоги */
.back { position: fixed; inset: 0; background: rgba(12, 32, 52, .62); z-index: 50; display: grid; place-items: center; padding: 14px; overflow: auto; }
.sheet { background: var(--paper); border-radius: 26px; width: min(470px, 100%); padding: 24px; text-align: center; box-shadow: 0 10px 0 rgba(0, 0, 0, .3); }
.sheet i.t { display: block; width: 84px; height: 84px; margin: 0 auto 8px; }
.sheet h3 { font-size: 24px; margin-bottom: 4px; }
.sheet p { margin: 6px 0 12px; color: var(--muted); }
.sheet .row-btn { justify-content: center; margin-top: 16px; }
.sheet .facts { display: flex; justify-content: center; gap: 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.sheet .facts b { color: var(--ink); }

/* Окно разбора: Искра объясняет */
.explain { background: var(--soft); border-radius: 28px; width: min(740px, 100%); max-height: calc(100vh - 28px); overflow: auto; box-shadow: 0 10px 0 rgba(0, 0, 0, .3); }
.ex-head { display: flex; gap: 14px; padding: 16px 20px 0; align-items: flex-start; position: sticky; top: 0; background: var(--soft); z-index: 2; padding-bottom: 8px; }
.ex-m { flex: 0 0 auto; width: 88px; height: 102px; }
.ex-say { flex: 1; min-width: 0; margin-top: 8px; font: 700 18px/1.3 var(--head); }
.ex-x { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #dfe7f1; display: grid; place-items: center; color: var(--muted); transition: background .15s; }
.ex-x:hover { background: #cfdae7; color: var(--ink); }
.ex-body { padding: 4px 20px 16px; }
.ex-q { background: var(--paper); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pair div { border-radius: 16px; padding: 8px 15px; overflow-wrap: anywhere; }
.pair small { display: block; font: 600 13px var(--head); opacity: .8; }
.pair b { font: 800 23px var(--head); }
.pair .yours { background: var(--bad-bg); color: #b4222b; }
.pair .right { background: var(--ok-bg); color: #1a7f35; }
.trap { padding: 11px 15px; background: var(--warn-bg); border-radius: 15px; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.trap i { flex: 0 0 auto; width: 32px; height: 32px; display: block; }
.ex-sol { background: var(--paper); border-radius: 16px; padding: 12px 18px; font-weight: 600; }
.ex-sol h4 { font-size: 17px; margin-bottom: 4px; }
.ex-sol p { margin: 6px 0; } .ex-sol ol { margin: 6px 0; padding-left: 24px; } .ex-sol li { margin: 3px 0; }
.ex-foot { padding: 4px 20px 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ex-foot .sp { flex: 1; }
.opts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.opts label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
select { font: 700 15px var(--body); padding: 7px 10px; border-radius: 11px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }

/* Экран задания */
.play { max-width: 860px; margin: 0 auto; padding: 18px 18px 60px; }
.play-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.quit { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; transition: background .15s; }
.quit:hover { background: rgba(255, 255, 255, .34); }
.prog { flex: 1 1 180px; min-width: 120px; color: #fff; font: 700 15px var(--head); }
.prog-bar { height: 16px; border-radius: 9px; background: rgba(0, 0, 0, .25); overflow: hidden; margin-top: 4px; }
.prog-bar u { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #ffe14d, #ffb31a); transition: width .4s; }
.pill { display: flex; align-items: center; gap: 6px; padding: 5px 13px 5px 8px; border-radius: 15px; background: var(--paper); font: 800 17px var(--head); box-shadow: 0 4px 0 rgba(13, 42, 66, .28); white-space: nowrap; }
.pill i { width: 26px; height: 26px; display: block; }
.pill.hot { background: #fff0d6; color: #d0541b; }
.task-card { padding: 20px 26px 24px; }
.task-tag { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 11px; }
.task-tag i { width: 36px; height: 36px; display: block; }
.task-tag b { font: 700 16px var(--head); }
.task-tag small { color: var(--muted); font-size: 14px; }
.task-tag .stars { margin-left: auto; }
.tno { font: 800 15px var(--head); background: var(--ink); color: #fff; padding: 3px 13px; border-radius: 10px; }
.q { font-size: 21px; line-height: 1.5; font-weight: 700; margin: 0 0 18px; overflow-wrap: anywhere; }
.q pre, .ex-q pre { background: #1c2740; color: #e7eeff; border-radius: 14px; padding: 12px 16px; font: 500 16px/1.5 Consolas, "Cascadia Mono", monospace; overflow-x: auto; margin: 10px 0; }
.q table.mt, .ex-q table.mt { border-collapse: collapse; margin: 10px 0; }
.q table.mt th, .q table.mt td, .ex-q table.mt th, .ex-q table.mt td { border: 2px solid var(--ink); padding: 5px 13px; text-align: center; min-width: 38px; font-size: 18px; }
.ex-q table.mt th, .ex-q table.mt td { font-size: 15px; padding: 3px 9px; border-width: 1.5px; }
.q table.mt th, .ex-q table.mt th { background: #eaf1f8; }
.q table.mt.wide td:first-child, .ex-q table.mt.wide td:first-child { text-align: left; }
input[type=text] { font: 800 21px var(--body); padding: 11px 16px; width: 100%; max-width: 280px; border: 3px solid var(--line); border-radius: 15px; background: var(--soft); color: var(--ink); transition: border-color .15s, background .15s; }
input[type=text]:focus { outline: none; border-color: #38a9de; background: #fff; }
input[type=text]::placeholder { color: #9aa8bc; font-weight: 700; }
input[type=text].right { border-color: var(--ok); background: var(--ok-bg); }
input[type=text].wrong { border-color: var(--red); background: var(--bad-bg); }
.ans { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.choice { --c: #fff; font: 700 18px/1.25 var(--head); padding: 13px 16px; border-radius: 16px; background: var(--c); box-shadow: inset 0 0 0 3px var(--line), 0 4px 0 #c5d0de; transition: transform .08s, box-shadow .08s, background .15s; overflow-wrap: anywhere; }
.choice:hover:not(:disabled) { background: #eef8ff; box-shadow: inset 0 0 0 3px #79c6ec, 0 4px 0 #79c6ec; }
.choice:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 0 0 3px #79c6ec, 0 1px 0 #79c6ec; }
.choice.picked { background: #e3f4ff; box-shadow: inset 0 0 0 3px #38a9de, 0 4px 0 #38a9de; }
.choice.right { background: var(--ok-bg); box-shadow: inset 0 0 0 3px var(--ok), 0 4px 0 var(--ok-d); }
.choice.wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 3px var(--red), 0 4px 0 var(--red-d); }
.choice:disabled { cursor: default; }
.tools { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.tools .sp { flex: 1; }
.hint { display: flex; gap: 10px; margin-top: 16px; padding: 11px 15px; background: var(--warn-bg); border-radius: 15px; }
.hint i { flex: 0 0 auto; width: 32px; height: 32px; display: block; }
.friend { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.friend > span { flex: 0 0 auto; width: 76px; height: 90px; }
.friend .bubble { max-width: 500px; }
.result-bar { position: sticky; bottom: 14px; margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; border-radius: 19px; font: 800 19px var(--head); z-index: 3; }
.result-bar.good { background: #d5f7dd; color: #16702e; box-shadow: 0 6px 0 var(--ok); }
.result-bar.bad { background: #ffdfe0; color: #ac1c26; box-shadow: 0 6px 0 var(--red); }
.result-bar .sp { flex: 1; }
.result-bar small { font: 700 15px var(--body); display: block; }

/* Испытания */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.flt { padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .17); color: #fff; font: 600 15px var(--head); transition: background .15s; }
.flt:hover { background: rgba(255, 255, 255, .28); }
.flt.on { background: var(--paper); color: var(--ink); }
.trial-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .trial-list { grid-template-columns: 1fr; } }
.trial { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; border-top: 8px solid var(--c); }
.trial-top { display: flex; align-items: center; gap: 12px; }
.trial-top i { flex: 0 0 auto; width: 54px; height: 54px; display: block; }
.trial h3 { font-size: 18px; }
.trial p { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); flex: 1; }
.trial-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.trial-foot .sp { flex: 1; }
.tagnum { font: 600 13px var(--head); background: var(--soft); padding: 3px 9px; border-radius: 8px; color: var(--muted); }

/* Экзамен */
.x-grid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; max-width: 1060px; margin: 0 auto; }
@media (max-width: 800px) { .x-grid { grid-template-columns: 1fr; } }
.x-side { padding: 16px; }
.x-side b { font: 700 16px var(--head); }
.nums { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.num { width: 44px; height: 44px; border-radius: 13px; background: var(--soft); box-shadow: inset 0 0 0 2px var(--line); font: 700 16px var(--head); position: relative; transition: transform .1s; }
.num:hover { transform: translateY(-2px); }
.num.done { background: #d9f0ff; box-shadow: inset 0 0 0 2px #79c6ec; color: var(--blue-d); }
.num.cur { background: var(--ink); box-shadow: none; color: #fff; }
.num.flag::after { content: ""; position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: #ff9b14; border: 2px solid #fff; }
.num.ok { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--ok); color: #1a7f35; }
.num.no { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--red); color: #b4222b; }
.legend { display: flex; gap: 11px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }
.timer { display: flex; align-items: center; gap: 7px; font: 800 20px var(--head); font-variant-numeric: tabular-nums; }
.timer i { width: 28px; height: 28px; display: block; }
.pill.low { background: #ffe0e1; color: #c5222c; animation: pulse-low 1s infinite; }
@keyframes pulse-low { 50% { transform: scale(1.05); } }

/* Итог */
.victory { text-align: center; padding: 26px 22px 28px; }
.victory .v-m { width: 124px; height: 144px; margin: 0 auto 2px; }
.big-stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.big-stars .st { width: 66px; height: 66px; animation: starpop .5s cubic-bezier(.3, 1.8, .5, 1) both; }
.big-stars .st:nth-child(2) { animation-delay: .18s; width: 80px; height: 80px; margin-top: -9px; }
.big-stars .st:nth-child(3) { animation-delay: .36s; }
@keyframes starpop { from { transform: scale(0) rotate(-50deg); opacity: 0; } to { transform: none; opacity: 1; } }
.victory h1 { font: 800 30px/1.15 var(--head); margin: 2px 0 6px; }
.score { font: 900 48px/1 var(--head); margin: 6px 0; }
.score small { font: 700 20px var(--head); color: var(--muted); }
.gain { display: inline-flex; align-items: center; gap: 6px; background: #fff3cf; padding: 5px 14px 5px 9px; border-radius: 14px; font: 800 18px var(--head); margin: 4px; }
.gain i { width: 28px; height: 28px; display: block; }
.victory .row-btn { justify-content: center; margin-top: 18px; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { padding: 9px 11px; text-align: left; border-bottom: 2px solid var(--soft); font-size: 15px; }
table.t th { color: var(--muted); font: 600 13px var(--head); }
.t-wrap { overflow-x: auto; }
.tagok { color: #1a7f35; font: 800 14px var(--head); }

/* Награды */
/* «Успехи»: статистика ребёнка (16.11.2026) */
.st-level { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.st-level b { font-size: 22px; display: block; }
.st-level small { opacity: .75; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.st-tile { background: var(--paper); border-radius: 18px; padding: 12px 14px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; box-shadow: 0 5px 0 rgba(13, 42, 66, .28); }
.st-tile i { grid-row: 1 / 3; width: 44px; height: 44px; display: block; }
.st-tile i > * { width: 44px !important; height: 44px !important; display: block; }
.st-tile b { font-size: 26px; line-height: 1.1; }
.st-tile small { opacity: .75; line-height: 1.3; }
.st-week { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.st-week b { font-size: 20px; }
.st-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 130px; }
.st-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.st-bar u { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#3fe0ff, #8a6bff); }
.st-bar.today u { background: linear-gradient(#ffd23f, #ff9f3f); }
.st-bar small { font-size: 11px; opacity: .6; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.badge { background: var(--paper); border-radius: 20px; padding: 14px 12px; text-align: center; box-shadow: 0 5px 0 rgba(13, 42, 66, .28); }
.badge i { display: block; width: 76px; height: 76px; margin: 0 auto 5px; }
.badge b { display: block; font: 700 15px/1.15 var(--head); }
.badge small { display: block; color: var(--muted); font-size: 13px; line-height: 1.25; margin-top: 3px; }
.badge.off { background: rgba(255, 255, 255, .55); }
.badge.off i { filter: grayscale(1) opacity(.45); }
.badge.off b { color: #485670; }
.badge.off small { color: #465369; }

/* Всплывающие уведомления и эффекты */
.toasts { position: fixed; top: 74px; right: 14px; z-index: 70; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 11px; background: var(--ink); color: #fff; padding: 9px 17px 9px 11px; border-radius: 17px; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); max-width: 320px; }
.toast i { flex: 0 0 auto; width: 44px; height: 44px; display: block; }
.toast b { display: block; font: 700 16px/1.15 var(--head); color: #ffe14d; }
.toast small { font-size: 14px; font-weight: 700; line-height: 1.2; display: block; }
.conf { position: fixed; left: 50%; top: 42%; width: 15px; height: 15px; z-index: 60; pointer-events: none; clip-path: polygon(50% 0, 100% 100%, 0 100%); animation: conf 1s cubic-bezier(.15, .7, .4, 1) forwards; }
@keyframes conf { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.fly { position: fixed; left: 50%; top: 44%; z-index: 61; pointer-events: none; font: 900 40px var(--head); color: #ffd21f; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; transform: translateX(-50%); animation: fly 1s ease-out forwards; }
@keyframes fly { from { opacity: 0; transform: translate(-50%, 16px) scale(.6); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } to { opacity: 0; transform: translate(-50%, -80px) scale(1); } }

.frac { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; font-size: .82em; line-height: 1.15; margin: 0 3px; }
.frac span:first-child { border-bottom: 2px solid currentColor; padding: 0 3px; }
.brk { overflow-wrap: anywhere; word-break: break-all; }
.note { color: #d5eaf5; font-size: 14px; margin-top: 18px; }
.warn { padding: 10px 14px; border-radius: 13px; background: var(--warn-bg); font-size: 15px; margin-top: 12px; }

@media (max-width: 1120px) { .tab span { display: none; } .tab { padding: 6px 9px; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .title { font-size: 29px; } .hero-txt h1 { font-size: 25px; } }
@media (max-width: 640px) { .brand span { display: none; } .hud-in { padding: 6px 10px; gap: 8px; } .stats { margin-left: 0; } .xpbar { width: 60px; } }
@media (max-width: 540px) { .hero-main { padding: 14px; } .hero-mascot { width: 76px; height: 90px; } .task-card { padding: 16px; } .q { font-size: 19px; } .pair b { font-size: 19px; } .world-head .row-btn { margin-left: 0; } .ex-m { width: 62px; height: 72px; } .ex-say { font-size: 16px; } .gate-logo { width: 140px; height: 140px; } .gate .title { font-size: 30px; } .friend > span { width: 56px; height: 66px; } .exam-door b { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }
@media print { .hud, .noprint, .back, .toasts { display: none !important; } body { background: #fff; } .card { box-shadow: none; } .title, .sec, .lead { color: #000; text-shadow: none; } }

/* ---------- Подписи и дорожка: общее ---------- */
.sec-count { font: 600 14px var(--head); opacity: .85; margin-left: 8px; text-shadow: none; }
.world em { display: block; font: 600 12px var(--head); font-style: normal; opacity: .92; margin-top: 2px; position: relative; }
.path svg.road polyline { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 22; }
.btn.big i { width: 28px; height: 28px; }

/* ---------- ОГЭ: тот же яркий стиль, но взрослее ---------- */
html[data-mode="oge"] .world { border-radius: 18px; }
html[data-mode="oge"] .card { border-radius: 18px; }
html[data-mode="oge"] .world:hover i { animation: none; transform: scale(1.06); transition: transform .15s; }
html[data-mode="oge"] .hero-main::after { background: rgba(255, 255, 255, .16); }

/* ---------- Кнопка ЕГЭ на входе: уже в новой теме ---------- */
.exam-door.ege { --d: #27e0ff; background: linear-gradient(150deg, #151a3f, #0a0d24); color: #eaf2ff; box-shadow: 0 0 0 1px rgba(39, 224, 255, .5), 0 0 34px rgba(109, 92, 255, .55); }
.exam-door.ege:hover, .exam-door.ege:active { box-shadow: 0 0 0 1px rgba(39, 224, 255, .9), 0 0 50px rgba(39, 224, 255, .5); }
.exam-door.ege b { background: linear-gradient(90deg, #27e0ff, #a78bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- ЕГЭ: тёмная неоновая тема ---------- */
html[data-mode="ege"] {
  --ink: #e8eeff; --muted: #93a0c4; --paper: rgba(20, 26, 56, .72); --soft: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .14);
  --ok: #2fe39a; --ok-d: #16a56d; --ok-bg: rgba(47, 227, 154, .14); --bad-bg: rgba(255, 79, 120, .15); --warn-bg: rgba(255, 196, 61, .13);
  --neon: #27e0ff; --violet: #7c5cff; --lime: #b6ff5c; --pink: #ff4f78;
}
html[data-mode="ege"] body {
  background-color: #070a18;
  background-image:
    radial-gradient(900px 520px at 12% -6%, rgba(124, 92, 255, .38), transparent 62%),
    radial-gradient(760px 480px at 96% 8%, rgba(39, 224, 255, .22), transparent 60%),
    radial-gradient(900px 620px at 60% 112%, rgba(255, 79, 216, .14), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='20' cy='34' r='1' opacity='.55'/%3E%3Ccircle cx='96' cy='12' r='.7' opacity='.4'/%3E%3Ccircle cx='180' cy='60' r='1.2' opacity='.5'/%3E%3Ccircle cx='60' cy='130' r='.8' opacity='.35'/%3E%3Ccircle cx='140' cy='170' r='1' opacity='.5'/%3E%3Ccircle cx='220' cy='210' r='.7' opacity='.4'/%3E%3Ccircle cx='30' cy='212' r='1.1' opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}
html[data-mode="ege"] .card, html[data-mode="ege"] .badge, html[data-mode="ege"] .bubble { background: var(--paper); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 18px; }
html[data-mode="ege"] .bubble.left::before { border-right-color: rgba(30, 36, 70, .9); }
html[data-mode="ege"] .hud { background: rgba(9, 12, 30, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, .09); }
html[data-mode="ege"] .brand img { filter: drop-shadow(0 0 10px rgba(39, 224, 255, .35)); }
html[data-mode="ege"] .tab:hover { background: rgba(255, 255, 255, .08); }
html[data-mode="ege"] .tab.on { background: rgba(39, 224, 255, .12); color: var(--neon); box-shadow: inset 0 0 0 1px rgba(39, 224, 255, .55); }
html[data-mode="ege"] .mode-pill { background: linear-gradient(90deg, var(--violet), var(--neon)); color: #06101f; }
html[data-mode="ege"] .xpbar { background: rgba(255, 255, 255, .12); }
html[data-mode="ege"] .xpbar u, html[data-mode="ege"] .prog-bar u { background: linear-gradient(90deg, var(--violet), var(--neon)); box-shadow: 0 0 12px rgba(39, 224, 255, .7); }
html[data-mode="ege"] .goalbar { background: rgba(255, 255, 255, .1); }
html[data-mode="ege"] .goalbar u { background: linear-gradient(90deg, #17c98a, var(--lime)); box-shadow: 0 0 12px rgba(182, 255, 92, .55); }
html[data-mode="ege"] .title { background: linear-gradient(90deg, #fff, #9fe9ff 55%, #b6a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
html[data-mode="ege"] .sec { text-shadow: none; }
html[data-mode="ege"] .lead, html[data-mode="ege"] .note { color: var(--muted); }

/* Кнопки: плоские, со свечением */
html[data-mode="ege"] .btn { --d: transparent; background: rgba(255, 255, 255, .08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17); border-radius: 12px; }
html[data-mode="ege"] .btn:hover:not(:disabled) { background: rgba(255, 255, 255, .14); filter: none; transform: translateY(-1px); }
html[data-mode="ege"] .btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
html[data-mode="ege"] .btn.go { background: linear-gradient(100deg, var(--violet), var(--neon)); color: #06101f; box-shadow: 0 6px 22px rgba(39, 224, 255, .32); }
html[data-mode="ege"] .btn.ok { background: linear-gradient(100deg, #18c98b, var(--lime)); color: #06101f; box-shadow: 0 6px 22px rgba(47, 227, 154, .3); }
html[data-mode="ege"] .btn.red { background: linear-gradient(100deg, #ff4f78, #ff4fd8); color: #fff; box-shadow: 0 6px 24px rgba(255, 79, 150, .38); }
html[data-mode="ege"] .btn.blue { background: rgba(39, 224, 255, .14); color: var(--neon); box-shadow: inset 0 0 0 1px rgba(39, 224, 255, .55); }
html[data-mode="ege"] .btn.go:hover:not(:disabled), html[data-mode="ege"] .btn.ok:hover:not(:disabled), html[data-mode="ege"] .btn.red:hover:not(:disabled) { filter: brightness(1.1); }

/* Приветствие */
html[data-mode="ege"] .hero-main { background: linear-gradient(120deg, rgba(124, 92, 255, .34), rgba(39, 224, 255, .12)); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
html[data-mode="ege"] .hero-main::after { background: rgba(39, 224, 255, .07); }
html[data-mode="ege"] .hero-txt p { color: #c3cdeb; }

/* Предметы: тёмные плитки с подсветкой своего цвета */
html[data-mode="ege"] .world { background: linear-gradient(165deg, color-mix(in srgb, var(--c) 32%, #0c1030), #0b0e26 78%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 58%, transparent), 0 10px 26px rgba(0, 0, 0, .4); border-radius: 16px; }
html[data-mode="ege"] .world::before { display: none; }
html[data-mode="ege"] .world:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--c), 0 0 30px color-mix(in srgb, var(--c) 55%, transparent); }
html[data-mode="ege"] .world:active { transform: translateY(0); }
html[data-mode="ege"] .world:hover i { animation: none; }
html[data-mode="ege"] .world i { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--c) 70%, transparent)); }
html[data-mode="ege"] .world small { background: rgba(255, 255, 255, .08); }
html[data-mode="ege"] .world .mini { background: rgba(255, 255, 255, .1); }
html[data-mode="ege"] .world .mini u { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
html[data-mode="ege"] .world-head { background: linear-gradient(120deg, color-mix(in srgb, var(--c) 40%, #0c1030), #0b0e26); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 58%, transparent), 0 14px 40px rgba(0, 0, 0, .4); border-radius: 18px; }

/* Темы как созвездие */
html[data-mode="ege"] .path svg.road polyline { stroke: rgba(39, 224, 255, .45); stroke-width: 2; stroke-dasharray: none; filter: drop-shadow(0 0 5px rgba(39, 224, 255, .9)); }
html[data-mode="ege"] .node-b { width: 64px; height: 64px; margin-top: 6px; background: #10143a; color: #cfd8f7; font-size: 21px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
html[data-mode="ege"] .node-b:active { transform: scale(.96); box-shadow: 0 0 0 2px var(--neon); }
html[data-mode="ege"] .node.done .node-b { background: radial-gradient(circle, #fff3b0, #ffc93c 62%, #a06a00); color: #2a1e00; box-shadow: 0 0 26px rgba(255, 201, 60, .85); }
html[data-mode="ege"] .node.next .node-b { background: radial-gradient(circle, #d6fbff, var(--neon) 62%, #0a7a99); color: #05202c; box-shadow: 0 0 30px rgba(39, 224, 255, .95); }
html[data-mode="ege"] .node-t { background: rgba(14, 18, 46, .85); border: 1px solid rgba(255, 255, 255, .13); box-shadow: none; }
html[data-mode="ege"] .st path { fill: rgba(255, 255, 255, .13); stroke: rgba(255, 255, 255, .28); }
html[data-mode="ege"] .st.on path { fill: #ffd54a; stroke: #ffd54a; filter: drop-shadow(0 0 4px rgba(255, 213, 74, .85)); }

/* Задание */
html[data-mode="ege"] .quit { background: rgba(255, 255, 255, .09); }
html[data-mode="ege"] .prog-bar { background: rgba(255, 255, 255, .1); height: 8px; }
html[data-mode="ege"] .prog { color: #cdd7f4; }
html[data-mode="ege"] .pill { background: rgba(20, 26, 56, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
html[data-mode="ege"] .pill.hot { background: rgba(255, 123, 28, .18); color: #ffb36b; box-shadow: inset 0 0 0 1px rgba(255, 123, 28, .6), 0 0 18px rgba(255, 123, 28, .4); }
html[data-mode="ege"] .pill.low { background: rgba(255, 79, 120, .2); color: #ff9db3; }
html[data-mode="ege"] .tno { background: linear-gradient(90deg, var(--violet), var(--neon)); color: #06101f; }
html[data-mode="ege"] input[type=text] { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); color: #fff; border-radius: 12px; }
html[data-mode="ege"] input[type=text]:focus { background: rgba(255, 255, 255, .09); border-color: var(--neon); box-shadow: 0 0 0 3px rgba(39, 224, 255, .22); }
html[data-mode="ege"] input[type=text].right { border-color: var(--ok); background: var(--ok-bg); }
html[data-mode="ege"] input[type=text].wrong { border-color: var(--pink); background: var(--bad-bg); }
html[data-mode="ege"] .choice { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); border-radius: 12px; }
html[data-mode="ege"] .choice:hover:not(:disabled) { background: rgba(39, 224, 255, .1); box-shadow: inset 0 0 0 1px var(--neon), 0 0 18px rgba(39, 224, 255, .25); }
html[data-mode="ege"] .choice:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 0 0 1px var(--neon); }
html[data-mode="ege"] .choice.picked { background: rgba(39, 224, 255, .16); box-shadow: inset 0 0 0 1px var(--neon), 0 0 18px rgba(39, 224, 255, .3); }
html[data-mode="ege"] .choice.right { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok), 0 0 18px rgba(47, 227, 154, .3); }
html[data-mode="ege"] .choice.wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 1px var(--pink); }
html[data-mode="ege"] .q table.mt th, html[data-mode="ege"] .q table.mt td, html[data-mode="ege"] .ex-q table.mt th, html[data-mode="ege"] .ex-q table.mt td { border-color: rgba(255, 255, 255, .3); }
html[data-mode="ege"] .q table.mt th, html[data-mode="ege"] .ex-q table.mt th { background: rgba(255, 255, 255, .08); }
html[data-mode="ege"] .q pre, html[data-mode="ege"] .ex-q pre { background: #050817; box-shadow: inset 0 0 0 1px rgba(39, 224, 255, .28); color: #9df3ff; }
html[data-mode="ege"] .result-bar { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 14px; }
html[data-mode="ege"] .result-bar.good { background: rgba(10, 56, 42, .92); color: #7dffc4; box-shadow: inset 0 0 0 1px var(--ok), 0 0 26px rgba(47, 227, 154, .3); }
html[data-mode="ege"] .result-bar.bad { background: rgba(64, 14, 32, .92); color: #ff9db3; box-shadow: inset 0 0 0 1px var(--pink), 0 0 26px rgba(255, 79, 120, .25); }
html[data-mode="ege"] .num { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17); }
html[data-mode="ege"] .num.done { background: rgba(39, 224, 255, .13); box-shadow: inset 0 0 0 1px rgba(39, 224, 255, .7); color: var(--neon); }
html[data-mode="ege"] .num.cur { background: linear-gradient(135deg, var(--violet), var(--neon)); color: #06101f; box-shadow: 0 0 16px rgba(39, 224, 255, .6); }
html[data-mode="ege"] .num.flag::after { border-color: #0a0e26; }
html[data-mode="ege"] .num.ok { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok); color: var(--ok); }
html[data-mode="ege"] .num.no { background: var(--bad-bg); box-shadow: inset 0 0 0 1px var(--pink); color: #ff9db3; }
html[data-mode="ege"] .trial { border-top: 0; box-shadow: inset 0 2px 0 var(--c), 0 14px 40px rgba(0, 0, 0, .35); }
html[data-mode="ege"] .flt { background: rgba(255, 255, 255, .07); color: #cdd7f4; border-radius: 10px; }
html[data-mode="ege"] .flt.on { background: var(--neon); color: #06101f; }
html[data-mode="ege"] .tagok { color: var(--ok); }

/* Окно разбора и диалоги */
html[data-mode="ege"] .back { background: rgba(3, 5, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-mode="ege"] .explain, html[data-mode="ege"] .sheet { background: #0e1230; box-shadow: 0 0 0 1px rgba(39, 224, 255, .28), 0 30px 80px rgba(0, 0, 0, .6); border-radius: 20px; }
html[data-mode="ege"] .ex-head { background: #0e1230; }
html[data-mode="ege"] .ex-x { background: rgba(255, 255, 255, .09); }
html[data-mode="ege"] .ex-x:hover { background: rgba(255, 255, 255, .17); }
html[data-mode="ege"] .ex-q, html[data-mode="ege"] .ex-sol { background: rgba(255, 255, 255, .05); border-radius: 12px; }
html[data-mode="ege"] .pair div { border-radius: 12px; }
html[data-mode="ege"] .pair .yours { color: #ff9db3; }
html[data-mode="ege"] .pair .right { color: #7dffc4; }
html[data-mode="ege"] .trap, html[data-mode="ege"] .hint { border-radius: 12px; }
html[data-mode="ege"] select { background: #161b42; border-color: rgba(255, 255, 255, .2); color: var(--ink); }
html[data-mode="ege"] .gain { background: rgba(39, 224, 255, .11); color: #b5f4ff; }
html[data-mode="ege"] table.t th, html[data-mode="ege"] table.t td { border-bottom-color: rgba(255, 255, 255, .08); }
html[data-mode="ege"] .badge.off { background: rgba(255, 255, 255, .03); }
html[data-mode="ege"] .badge.off b { color: #8f9bbd; }
html[data-mode="ege"] .badge.off small { color: #7f8bad; }
html[data-mode="ege"] .toast { background: rgba(14, 18, 48, .96); box-shadow: 0 0 0 1px rgba(39, 224, 255, .4), 0 14px 40px rgba(0, 0, 0, .5); border-radius: 14px; }
html[data-mode="ege"] .toast b { color: var(--neon); }
html[data-mode="ege"] .fly { color: var(--neon); -webkit-text-stroke: 0; text-shadow: 0 0 22px rgba(39, 224, 255, .95); }
html[data-mode="ege"] .ava:hover { transform: scale(1.06); }

/* Сфера-ассистент */
.orb { overflow: visible; filter: drop-shadow(0 0 14px rgba(39, 224, 255, .55)); }
.orb .o-ring { transform-origin: 60px 78px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb .m-flame { transform-origin: 60px 42px; }
html[data-mode="ege"] .bob { animation-duration: 4.4s; }
@media print { html[data-mode="ege"] body { background: #fff; color: #000; } html[data-mode="ege"] .title { color: #000; background: none; } }
.task-in { animation: taskin .22s ease-out; }
@keyframes taskin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.world-head .btn i { width: 24px; height: 24px; filter: none; flex: 0 0 auto; }
.hud-in { max-width: 1320px; }
@media (max-width: 1250px) { html[data-mode="ege"] .tab span { display: none; } html[data-mode="ege"] .tab { padding: 6px 9px; } }
.brand img { width: 62px; height: 62px; }
.brand b { font: 800 19px/1 var(--head); }
@media (max-width: 640px) { .brand img { width: 50px; height: 50px; } .brand b { font-size: 16px; } }

/* ---------- Входной тест и личный план ---------- */
.gate-m { width: 110px; height: 128px; }
.gate-pic { width: 110px; height: 110px; }
.gate-worlds { width: 100%; max-width: 900px; margin-top: 6px; }
.goal-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; width: 100%; max-width: 720px; margin-top: 14px; }
.goal-door { background: var(--paper); border-radius: 18px; padding: 16px 14px; box-shadow: 0 5px 0 rgba(13, 42, 66, .28), inset 0 0 0 3px transparent; transition: transform .1s, box-shadow .1s; color: var(--ink); }
.goal-door:hover { transform: translateY(-3px); }
.goal-door b { display: block; font: 800 21px/1.15 var(--head); }
.goal-door small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.goal-door.on { background: var(--yellow); box-shadow: 0 5px 0 var(--yellow-d), inset 0 0 0 3px var(--yellow-d); }
.goal-door.on small { color: var(--ink); }
.q-date { margin-top: 16px; padding: 12px 18px; width: 100%; max-width: 720px; }
.q-date label { font: 700 16px var(--head); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.q-date small { display: block; color: var(--muted); margin-top: 5px; font-size: 14px; }
input[type=date] { font: 700 15px var(--body); padding: 7px 10px; border-radius: 11px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.plan-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.plan-m { flex: 0 0 auto; width: 104px; height: 120px; }
.plan-head { flex: 1 1 280px; min-width: 0; }
.plan-head small { color: var(--muted); font-size: 14px; }
.plan-head h1 { font: 800 31px/1.15 var(--head); margin: 2px 0 5px; }
.plan-head p { margin: 0 0 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 400px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-grid h3 { margin-bottom: 8px; }
.plan-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-end; align-content: flex-start; }
.sum-num { font: 900 42px/1 var(--head); }
.sum-num small { display: block; font: 600 13px var(--head); color: var(--muted); margin-top: 4px; }
.verdict { flex: 1 0 100%; margin: 8px 0 0; padding: 11px 14px; border-radius: 13px; background: var(--ok-bg); font-weight: 800; }
.verdict.bad { background: var(--bad-bg); }
.plan-set { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; font-size: 14px; }
.plan-set label { display: flex; align-items: center; gap: 7px; }
tr.rec td { background: var(--ok-bg); }
.late { color: #c5222c; font-size: 14px; }
.plan-prog { margin-top: 16px; }
.plan-prog h3 { margin-bottom: 8px; }
.plan-prog small { display: block; margin-top: 6px; }
.topic-list { display: grid; gap: 4px; }
.topic-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) minmax(70px, 1fr) 46px; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 11px; text-align: left; color: var(--ink); transition: background .12s; }
.topic-row:hover { background: var(--soft); }
.topic-row em { font: 700 14px var(--head); font-style: normal; text-align: right; color: var(--muted); }
.tbar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; display: block; }
.tbar u { display: block; height: 100%; background: var(--red); border-radius: 6px; }
.tbar u.mid { background: #ffb31a; } .tbar u.hi { background: var(--ok); }
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 11px; }
.lesson { display: flex; gap: 12px; align-items: flex-start; padding: 12px 15px; font-size: 15px; }
.lesson b { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 800 15px var(--head); }
html[data-mode="ege"] .goal-door { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); border-radius: 14px; }
html[data-mode="ege"] .goal-door.on { background: rgba(39, 224, 255, .15); box-shadow: inset 0 0 0 1px var(--neon), 0 0 22px rgba(39, 224, 255, .35); }
html[data-mode="ege"] .goal-door.on small { color: #cdd7f4; }
html[data-mode="ege"] input[type=date] { background: #161b42; border-color: rgba(255, 255, 255, .2); color: var(--ink); color-scheme: dark; }
html[data-mode="ege"] .lesson b { background: linear-gradient(135deg, var(--violet), var(--neon)); color: #06101f; }
html[data-mode="ege"] .sum-num { background: linear-gradient(90deg, #fff, #9fe9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-mode="ege"] .sum-num small { -webkit-text-fill-color: var(--muted); }
html[data-mode="ege"] .tbar { background: rgba(255, 255, 255, .1); }
html[data-mode="ege"] .tbar u { background: var(--pink); }
html[data-mode="ege"] .tbar u.mid { background: #ffc43d; } html[data-mode="ege"] .tbar u.hi { background: var(--ok); }
html[data-mode="ege"] .late { color: #ff9db3; }
html[data-mode="ege"] .gate-worlds .world { min-height: 0; }
@media print { .plan .card { break-inside: avoid; border: 1px solid #ccc; } .sum-num, .plan-head h1 { color: #000; -webkit-text-fill-color: #000; } }

/* ---------- Шпаргалка, панель учителя ---------- */
.sheet.howto { width: min(680px, 100%); max-height: calc(100vh - 28px); overflow: auto; }
.howto .ex-q, .howto .ex-sol { border: 1px solid var(--line); margin-bottom: 10px; }
input[type=password] { font: 800 21px var(--body); padding: 11px 16px; flex: 1 1 190px; border: 3px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); }
input[type=password]:focus { outline: none; border-color: #38a9de; }
.teacher table.t td div { margin: 2px 0; font-size: 14px; }
.week { align-items: flex-start; }
.week .sum-num { font-size: 34px; flex: 1 1 110px; }
.sheet.howto .ex-sol p, .sheet.howto .ex-q p { color: var(--ink); }

/* ---------- Облако: вход и кабинеты ---------- */
.auth { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 12px; }
.auth.plain { margin: 12px auto 0; }
.auth label { display: flex; flex-direction: column; gap: 5px; font: 700 15px var(--head); }
.auth input { max-width: none; width: 100%; font: 800 19px var(--body); padding: 10px 14px; border: 3px solid var(--line); border-radius: 13px; background: var(--soft); color: var(--ink); }
.auth input:focus { outline: none; border-color: #38a9de; background: #fff; }
.auth .btn { align-self: stretch; }
.auth-err { color: #c5222c; margin: 0; font-size: 15px; min-height: 0; }
.blocked-box { max-width: 420px; width: 100%; background: #ffe4e5; color: #8d1820; text-align: left; margin-top: 10px; }
.blocked-box p { margin: 5px 0 0; font-weight: 600; }
.role-pill { padding: 5px 12px; border-radius: 11px; background: var(--ink); color: #fff; font: 700 14px var(--head); }
.cred-box { display: grid; gap: 9px; margin: 8px 0; text-align: left; background: var(--soft); padding: 12px 15px; border-radius: 13px; }
.cred-box small { display: block; color: var(--muted); font-size: 13px; }
.cred-box b { font: 800 19px var(--body); overflow-wrap: anywhere; }
.add-st { display: flex; gap: 10px; flex-wrap: wrap; }
.add-st input { flex: 1 1 220px; max-width: none; }
.chip-st { display: inline-block; padding: 3px 10px; border-radius: 9px; background: var(--soft); font: 700 13px var(--head); color: var(--muted); }
.chip-st.ok { background: var(--ok-bg); color: #1a7f35; }
.chip-st.bad { background: var(--bad-bg); color: #b4222b; }
.access-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.access-top b { font: 700 17px var(--head); }
.access-date { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rep-plan { padding: 7px 0; border-bottom: 2px solid var(--soft); }
.rep-plan:last-child { border-bottom: 0; }
.hw-list { display: grid; gap: 11px; }
.hw { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 13px 18px; }
.hw-t { flex: 1 1 240px; min-width: 0; }
.hw-t b { font: 700 17px var(--head); display: block; }
.hw-t small { display: block; margin-bottom: 6px; font-size: 14px; }
.hw-form { display: flex; flex-direction: column; gap: 11px; }
.hw-form > label, .hw-row label { display: flex; flex-direction: column; gap: 4px; font: 700 14px var(--head); }
.hw-form input[type=text] { max-width: none; font-size: 17px; padding: 8px 12px; }
.hw-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 11px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 3px 12px; }
.check { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 15px; cursor: pointer; }
html[data-mode="ege"] .auth input { background: rgba(255, 255, 255, .06); color: #fff; }
.auth input { flex: none; }
/* ---------- Программирование: тёмный редактор кода с зелёным курсором ---------- */
.exam-door.prog { --c: #16241c; --d: #3ddc84; background: linear-gradient(150deg, #1d2b23, #0f1712); color: #d9ffe8; box-shadow: 0 0 0 2px #3ddc84, 0 9px 0 #0a120d; }
.exam-door.prog b { font-family: Consolas, "Cascadia Mono", monospace; color: #3ddc84; letter-spacing: -.02em; font-size: 34px; }
.exam-door.prog b::after { content: "_"; animation: blink 1s steps(1) infinite; }
.exam-door.prog em { color: #9fe8bf; }
@keyframes blink { 50% { opacity: 0; } }
/* Кабинет ученика: светлый и тёплый — мятно-голубой фон, белые карточки, зелёные и бирюзовые акценты. */
html[data-mode="prog"] { --ink: #24324a; --muted: #6b7a90; --soft: #f2f8f6; --line: #d7e6e1; --accent: #12b886; --accent-d: #0c9a6f; }
html[data-mode="prog"] body {
  color: var(--ink);
  background-color: #eaf7f3;
  background-image: radial-gradient(circle at 8% 0%, #d6f5ea 0, transparent 40%), radial-gradient(circle at 95% 10%, #dcefff 0, transparent 38%), radial-gradient(circle at 50% 100%, #fff4d6 0, transparent 45%);
  background-attachment: fixed;
}
html[data-mode="prog"] .hud { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 14px rgba(36, 50, 74, .08); border-bottom: 0; }
html[data-mode="prog"] .hud .brand b { color: var(--ink); }
html[data-mode="prog"] .title, html[data-mode="prog"] h2.sec { color: var(--ink); text-shadow: none; }
html[data-mode="prog"] .tab { color: var(--muted); }
html[data-mode="prog"] .tab.on, html[data-mode="prog"] .tab:hover { background: #e3f6ef; color: var(--accent-d); }
html[data-mode="prog"] .card { background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 6px 22px rgba(36, 50, 74, .08), 0 1px 0 rgba(36, 50, 74, .04); }
html[data-mode="prog"] .muted, html[data-mode="prog"] .lead, html[data-mode="prog"] .note { color: var(--muted); }
html[data-mode="prog"] .hero-main { background: linear-gradient(120deg, #d9f7ec 0%, #e5f1ff 100%); box-shadow: 0 8px 26px rgba(18, 184, 134, .14); }
html[data-mode="prog"] .hero-main::after { background: rgba(255, 255, 255, .45); }
html[data-mode="prog"] .hero-txt h1 { color: #0c8a62; }
html[data-mode="prog"] .hero-txt p { color: #44566f; }
html[data-mode="prog"] .chip, html[data-mode="prog"] .lvl, html[data-mode="prog"] .mode-pill { background: #e3f6ef; color: #0c7a57; }
html[data-mode="prog"] .q pre, html[data-mode="prog"] .ex-q pre, .q pre.code, .ex-sol pre.code { background: #f4f7fb; color: #1d3557; box-shadow: inset 0 0 0 1px #dbe4ef; border-radius: 12px; }
html[data-mode="prog"] .q, html[data-mode="prog"] .task-tag b { color: var(--ink); }
html[data-mode="prog"] .ans input { background: #fff; color: var(--ink); border-color: var(--line); }
html[data-mode="prog"] .choice:not(.right):not(.wrong):not(.picked) { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #dce8f2, 0 4px 0 #dce8f2; }
html[data-mode="prog"] .choice:not(.right):not(.wrong):not(.picked):hover { box-shadow: inset 0 0 0 2px var(--accent), 0 4px 0 #bfe9d9; }
html[data-mode="prog"] .choice.picked { background: #e3f6ef; color: #0c7a57; box-shadow: inset 0 0 0 3px var(--accent), 0 4px 0 #bfe9d9; }
html[data-mode="prog"] .bubble { background: #fff; color: var(--ink); }
html[data-mode="prog"] .bubble.left::before { border-right-color: #fff; }
html[data-mode="prog"] .explain, html[data-mode="prog"] .sheet, html[data-mode="prog"] .explain .q, html[data-mode="prog"] .explain .card { color: var(--ink); }
html[data-mode="prog"] .explain .card { background: #fff; box-shadow: none; }
html[data-mode="prog"] .play-top .pill { background: #fff; box-shadow: 0 2px 10px rgba(36, 50, 74, .1); }
html[data-mode="prog"] .goalbar, html[data-mode="prog"] .world .mini, html[data-mode="prog"] .xpbar, html[data-mode="prog"] .prog-bar { background: #e2ece9; }
html[data-mode="prog"] .goalbar u, html[data-mode="prog"] .world .mini u, html[data-mode="prog"] .prog-bar u { background: linear-gradient(90deg, #12b886, #38d9a9); }
html[data-mode="prog"] .t th, html[data-mode="prog"] .t td { border-color: #e3ebf3; }
/* Значки ярче: насыщенный цвет и лёгкая тень, в шапке — цветные плашки, чтобы белые значки не терялись. */
html[data-mode="prog"] .pic { filter: saturate(1.25) contrast(1.05) drop-shadow(0 1px 1.5px rgba(36, 50, 74, .22)); }
html[data-mode="prog"] .tab i { width: 34px; height: 34px; padding: 4px; border-radius: 11px; background: #fff1c7; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
html[data-mode="prog"] .tab:nth-child(2) i { background: #ffe1e1; }
html[data-mode="prog"] .tab:nth-child(3) i { background: #fff1c7; }
html[data-mode="prog"] .tab:nth-child(4) i { background: #e3dcff; }
html[data-mode="prog"] .tab:nth-child(5) i { background: #cfe8ff; }
html[data-mode="prog"] .tab:nth-child(6) i { background: #d6f5e6; }
html[data-mode="prog"] .tab:nth-child(1) i { background: #d6f0ff; }
html[data-mode="prog"] .tab.on i { box-shadow: inset 0 0 0 2px var(--accent); }
html[data-mode="prog"] .prog { color: var(--ink); }
html[data-mode="prog"] .flt { background: #fff; color: var(--muted); box-shadow: 0 1px 6px rgba(36, 50, 74, .08); }
html[data-mode="prog"] .flt.on { background: #e3f6ef; color: #0c7a57; }
html[data-mode="prog"] .quit { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(36, 50, 74, .12); }
html[data-mode="prog"] .quit:hover { background: #e3f6ef; }
html[data-mode="prog"] .exam-door.prog { background: linear-gradient(150deg, #e3f6ef, #d9ecff); color: var(--ink); box-shadow: 0 8px 22px rgba(18, 184, 134, .18); }
html[data-mode="prog"] .exam-door.prog b { color: #0c8a62; }
html[data-mode="prog"] .exam-door.prog em { color: #44566f; }
/* Чёрные «окна» в вопросах (компьютер Minecraft, терминал) остаются тёмными, как настоящий экран. */
.chip-st.warn { background: #fff0cc; color: #7a5200; }
/* ---------- Кабинет руководителя: рабочий интерфейс с меню слева ---------- */
/* Светлый рабочий вид: белое меню слева, мягкий фон, синие акценты. */
html[data-mode="biz"] body { background: #f4f7fb; color: #1f2937; }
.biz { --b-ink: #1f2937; --b-muted: #6b7280; --b-line: #e5e9f0; --b-accent: #2563eb; --b-soft: #f4f7fb; display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; font-size: 15px; color: var(--b-ink); }
.biz-side { background: #fff; color: #374151; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; border-right: 1px solid #e5e9f0; box-shadow: 2px 0 14px rgba(31, 41, 55, .04); }
.biz-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid #eef1f6; margin-bottom: 12px; }
.biz-brand img { width: 40px; height: 40px; object-fit: contain; }
.biz-brand b { display: block; color: #111827; font: 700 16px var(--head); }
.biz-brand small { color: #6b7280; font-size: 12px; }
.biz-dirs { display: flex; flex-direction: column; gap: 4px; padding: 0 0 14px; margin-bottom: 12px; border-bottom: 1px solid #eef1f6; }
.biz-dirs small { color: #9ca3af; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 4px; }
.biz-dir { text-align: left; padding: 8px 10px; border-radius: 8px; color: #374151; font: 700 14px var(--body); border: 1px solid #e5e9f0; }
.biz-dir:hover { background: #f1f5fb; color: #111827; }
.biz-dir.on { background: #eaf1ff; color: #1d4ed8; border-color: #c7d8fb; }
.biz-dirname { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 6px; background: #e0ecff; color: #1d4ed8; font: 600 13px var(--body); }
.biz-menu { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.biz-nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #4b5563; font: 600 14px var(--body); text-align: left; width: 100%; }
.biz-nav svg { width: 18px; height: 18px; flex: none; }
.biz-nav em { margin-left: auto; font-style: normal; font-size: 12px; background: #eef1f6; color: #4b5563; padding: 1px 7px; border-radius: 10px; }
.biz-nav:hover { background: #f1f5fb; color: #111827; }
.biz-nav.on { background: #eaf1ff; color: #1d4ed8; box-shadow: inset 3px 0 0 #2563eb; }
.biz-nav.on em { background: #2563eb; color: #fff; }
.biz-user { border-top: 1px solid #eef1f6; padding: 14px 8px 0; display: flex; flex-direction: column; gap: 2px; }
.biz-user b { color: #111827; font-size: 14px; }
.biz-user small { color: #6b7280; font-size: 12px; }
.biz-user-btns { display: flex; gap: 12px; margin-top: 8px; }
.biz-link { color: #2563eb; font: 600 13px var(--body); padding: 0; }
.biz-link:hover { text-decoration: underline; }
.biz-main { padding: 24px 28px 60px; min-width: 0; }
.biz-top { margin-bottom: 18px; }
.biz-top h1 { font: 700 24px/1.2 var(--head); margin: 0; color: var(--b-ink); }
.biz-top p { margin: 4px 0 0; color: var(--b-muted); font-size: 14px; }
.biz-back { color: var(--b-accent); font: 600 14px var(--body); padding: 0; margin-bottom: 8px; }
/* Общие элементы внутри кабинета: плоско и аккуратно. */
.biz .card { border-radius: 10px; padding: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); border: 1px solid var(--b-line); background: #fff; color: var(--b-ink); }
.biz .title { color: var(--b-ink); text-shadow: none; font: 700 22px/1.25 var(--head); margin: 0 0 4px; }
.biz .lead, .biz .note { color: var(--b-muted); font-weight: 500; font-size: 14px; }
.biz .lead { margin: 0 0 16px; }
.biz .sec { color: var(--b-ink); text-shadow: none; font: 700 17px var(--head); margin: 26px 0 10px; }
.biz .muted { color: var(--b-muted); }
.biz .btn { box-shadow: none; border: 1px solid var(--b-line); border-radius: 8px; padding: 8px 14px; font: 600 14px var(--body); top: 0; }
.biz .btn:active:not(:disabled) { transform: none; box-shadow: none; }
.biz .btn.small { padding: 5px 10px; font-size: 13px; box-shadow: none; }
.biz .btn.big { padding: 10px 18px; font-size: 15px; }
.biz .btn.go { --c: #2563eb; --t: #fff; border-color: #2563eb; }
.biz .btn.blue { --c: #fff; --t: #2563eb; border-color: #bfdbfe; }
.biz .btn.red { --c: #fff; --t: #dc2626; border-color: #fecaca; }
.biz .btn.ok { --c: #fff; --t: #15803d; border-color: #bbf7d0; }
.biz .filters { gap: 6px; margin-bottom: 12px; }
.biz .flt { background: #fff; color: var(--b-muted); border: 1px solid var(--b-line); border-radius: 8px; padding: 5px 11px; font: 600 13px var(--body); }
.biz .flt:hover { background: var(--b-soft); }
.biz .flt.on { background: #eff6ff; color: var(--b-accent); border-color: #bfdbfe; }
.biz .dir-pills { gap: 0; display: inline-flex; border: 1px solid var(--b-line); border-radius: 9px; overflow: hidden; background: #fff; margin-bottom: 16px; flex-wrap: wrap; }
.biz .dir-pill { border-radius: 0; box-shadow: none; background: transparent; font: 600 14px var(--body); padding: 8px 14px; color: var(--b-muted); border-right: 1px solid var(--b-line); }
.biz .dir-pill:last-child { border-right: none; }
.biz .dir-pill.on, .biz .dir-pill.dir-prog.on, .biz .dir-pill.dir-ege.on { background: #eff6ff; color: var(--b-accent); box-shadow: none; }
.biz .chat .dir-pill { background: transparent; }
.biz .plan-sum.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; padding: 0; }
.biz .plan-sum.week .sum-num { padding: 16px 18px; border-right: 1px solid var(--b-line); font: 700 26px/1.1 var(--head); }
.biz .plan-sum.week .sum-num:last-child { border-right: none; }
.biz .sum-num small { font: 500 13px var(--body); color: var(--b-muted); margin-top: 6px; }
.biz .t { font-size: 14px; }
.biz .t th { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .03em; color: var(--b-muted); background: #f9fafb; }
.biz .t td, .biz .t th { padding: 9px 10px; border-color: var(--b-line); }
.biz .t tr:hover td { background: #f9fafb; }
.biz .t-wrap { padding: 0; }
.biz .t-wrap > .muted { display: block; padding: 16px; }
.biz .t .chip-st, .biz .t .dir-chip { white-space: nowrap; }
.biz .chip-st { border-radius: 6px; font: 600 12px var(--body); padding: 2px 8px; }
.biz .dir-chip { border-radius: 6px; font: 600 12px var(--body); }
.biz .hw-form > label, .biz .hw-row label { font: 600 13px var(--body); color: var(--b-muted); }
.biz input[type=text], .biz input[type=date], .biz select, .biz textarea, .biz .hw-form textarea, .biz .par-row input[type="text"], .biz .inline-edit input, .biz .chat-input input { border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font: 500 14px var(--body); padding: 8px 10px; color: var(--b-ink); box-shadow: none; }
.biz input:focus, .biz select:focus, .biz textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--b-accent); }
.biz .hw-form input[type=text] { font-size: 14px; padding: 8px 10px; }
.biz .add-st { border-radius: 10px; }
.biz .add-kid summary { color: var(--b-accent); font-weight: 600; }
.biz .add-kid summary b { font-weight: 600; }
.biz .par-row { border-color: var(--b-line); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.biz-main > * { max-width: 100%; box-sizing: border-box; }
/* ---------- Календарь занятий ---------- */
.cal { margin-top: 14px; padding: 14px; }
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-head > b { font: 700 17px var(--head); min-width: 150px; text-align: center; }
.cal-head .btn.go { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--b-line, #e5e7eb); border-left: 1px solid var(--b-line, #e5e7eb); }
.cal-w { padding: 6px 8px; font: 600 12px var(--body); color: var(--b-muted, #6b7280); text-transform: uppercase; border-right: 1px solid var(--b-line, #e5e7eb); border-bottom: 1px solid var(--b-line, #e5e7eb); background: #f9fafb; }
.cal-d { min-height: 96px; padding: 4px; border-right: 1px solid var(--b-line, #e5e7eb); border-bottom: 1px solid var(--b-line, #e5e7eb); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d.off { background: #fafafa; }
.cal-d.past { background: #fcfcfd; }
.cal-d.today { background: #eff6ff; }
.cal-n { display: flex; justify-content: space-between; align-items: center; font: 600 13px var(--body); color: var(--b-muted, #6b7280); padding: 2px 4px; border-radius: 6px; width: 100%; text-align: left; }
.cal-n span { opacity: 0; color: #2563eb; font-weight: 700; }
button.cal-n:hover { background: #eff6ff; }
button.cal-n:hover span { opacity: 1; }
.cal-d.today .cal-n { color: #2563eb; }
.cal-ev { display: block; width: 100%; text-align: left; font: 500 12px/1.25 var(--body); padding: 4px 6px; border-radius: 6px; background: #eef2ff; color: #3730a3; border-left: 3px solid #6366f1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev b { font-weight: 700; }
.cal-ev i { float: right; font-style: normal; color: #15803d; font-weight: 700; }
.cal-ev.dir-prog { background: #ecfdf3; color: #14532d; border-left-color: #22c55e; }
.cal-ev.dir-ege { background: #f5f3ff; color: #4c1d95; border-left-color: #8b5cf6; }
.cal-ev.dir-oge { background: #fffbeb; color: #78350f; border-left-color: #f59e0b; }
.cal-ev.on { outline: 2px solid #2563eb; }
.cal-agenda { display: none; }
.cal-shift { display: block; font: 600 11px var(--body); color: #475569; background: #f1f5f9; border-radius: 5px; padding: 2px 5px; }
.shift-grid th, .shift-grid td { padding: 4px 2px; text-align: center; font-size: 12px; }
.shift-grid th.we { color: #2563eb; }
.shift-grid th.td { background: #dbeafe; }
.shift-grid .sh-name { text-align: left; white-space: nowrap; padding: 4px 8px; position: sticky; left: 0; background: #fff; z-index: 1; }
.sh-c button { width: 100%; min-width: 34px; min-height: 34px; border-radius: 6px; font: 600 10.5px/1.15 var(--body); color: #1e3a8a; }
.sh-c button:hover { background: #eff6ff; }
.sh-c.on button { background: #dbeafe; }
.sh-c.sel button { outline: 2px solid #2563eb; }
.sh-c i { color: #d97706; font-style: normal; }
.ag-day { padding: 8px 0; border-bottom: 1px solid var(--b-line, #e5e7eb); display: flex; flex-direction: column; gap: 4px; }
.ag-day > b { font: 600 14px var(--body); }
.ag-day.today > b { color: #2563eb; }
.ag-day .cal-ev { white-space: normal; font-size: 14px; padding: 7px 9px; }
@media (max-width: 700px) { .cal-grid { display: none; } .cal-agenda { display: block; } }
.lesson-card { margin-top: 14px; border-left: 4px solid #2563eb; }
/* Учитель: уроки курса, задания урока, «назначить задание» */
.lesson-list { display: flex; flex-direction: column; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; background: none; border: 0; border-bottom: 1px solid var(--b-line, #e5e7eb); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover, .lesson-row.on { background: #eff6ff; }
.lesson-row > b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; display: grid; place-items: center; font-size: 13px; }
.lesson-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lesson-row span small { font-size: 12px; line-height: 1.3; }
.lesson-row i { flex: none; font-style: normal; font-size: 13px; color: #2563eb; font-weight: 600; }
.lp summary { cursor: pointer; font-weight: 600; margin: 10px 0 6px; }
.lp-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.lp-list > li { padding-bottom: 10px; border-bottom: 1px dashed var(--b-line, #e5e7eb); }
.lp-q { margin-bottom: 6px; line-height: 1.4; overflow-x: auto; }
.lp-steps { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
.assign-box { margin-top: 14px; border-left: 4px solid #22c55e; }
.assign-box select { max-width: 100%; }
.st-row { cursor: pointer; }
.lesson-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.lesson-head b { font: 700 17px var(--head); }
.lesson-topic { display: flex; flex-direction: column; gap: 4px; font: 600 13px var(--body); color: var(--b-muted, #6b7280); margin-bottom: 10px; }
.biz-link.dark { color: #2563eb; }
.seg.skills .seg-b { min-width: 34px; }
.lesson-card .seg-b { white-space: nowrap; padding: 6px 9px; }
.lesson-card .j-table td { padding: 7px 6px; }
.seg-b:disabled { opacity: .35; cursor: default; }
/* ---------- Курсы и отработки ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-top: 14px; }
.course-tile { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--b-line, #e5e7eb); border-radius: 10px; text-align: left; }
.course-tile:hover { border-color: #93c5fd; }
.course-tile.on { border-color: #2563eb; box-shadow: 0 0 0 2px #bfdbfe; }
.course-tile i { width: 36px; height: 36px; flex: none; }
.course-tile span { display: flex; flex-direction: column; min-width: 0; }
.course-tile b { font: 600 14px var(--body); }
.course-tile small { color: var(--b-muted, #6b7280); font-size: 12px; }
.mk-form td { background: #f8fafc; }
.mk-note { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; border-left: 4px solid #f59e0b; }
.mk-note.scheduled { border-left-color: #2563eb; }
.parent-makeup { background: #eff6ff; padding: 14px 16px; }
.parent-makeup h2 { margin: 0 0 3px; font-size: 16px; color: #17458b; }
.parent-makeup p { margin: 0; font-size: 18px; font-weight: 700; }
.parent-makeup p::first-letter { text-transform: uppercase; }
.parent-makeup small { color: #475569; }
.parent-password-button { margin: 0 0 12px; }
.parent-password-sheet input { width: 100%; padding: 10px; border: 1px solid #94a3b8; border-radius: 8px; font: 16px ui-monospace, monospace; }
.biz-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 20px; }
.biz-line { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--b-line); }
.biz-line:last-child { border-bottom: none; }
.biz .now-topic { border-left: 4px solid var(--b-accent); }
.biz .now-topic b { font: 700 19px var(--head); }
/* ---------- Обзор родителя ---------- */
.po-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.po-next { display: flex; flex-direction: column; gap: 3px; border-left: 4px solid #22c55e; justify-content: center; }
.po-next small, .po-tile small { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--b-muted); }
.po-next b { font: 700 18px var(--head); }
.po-next b::first-letter { text-transform: uppercase; }
.po-next span { color: var(--b-muted); font-size: 14px; }
.po-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.po-tile { background: #fff; border: 1px solid var(--b-line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.po-tile b { font: 700 26px/1.15 var(--head); color: var(--b-ink); }
.po-tile span { font-size: 13px; color: var(--b-muted); line-height: 1.35; }
.po-tile.good { border-top: 3px solid #22c55e; }
.po-tile.warn { border-top: 3px solid #f59e0b; }
.po-tile.bad { border-top: 3px solid #ef4444; }
.po-tile.bad b { color: #dc2626; }
.po-bar { height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.po-bar i { display: block; height: 100%; background: #22c55e; border-radius: 3px; }
.po-strip { display: flex; gap: 8px; overflow-x: auto; }
.po-day { flex: 1 0 58px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; background: #f8fafc; }
.po-day small { font: 600 12px var(--body); color: var(--b-muted); }
.po-day i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; }
.po-day span { font: 600 12px var(--body); color: var(--b-ink); }
.po-day.ok i { background: #22c55e; }
.po-day.bad i { background: #ef4444; }
.po-day.warn i { background: #f59e0b; }
.po-day.none i { background: #e2e8f0; color: #94a3b8; }
.po-day.none span { color: var(--b-muted); font-weight: 500; }
.po-day span { text-align: center; line-height: 1.25; }
.po-tile .po-pay { font: 700 13px var(--body); color: #dc2626; }
/* Главное у родителя: крупное «Следующее занятие», три плитки, короткие списки скиллов и заданий */
.po-next-big { padding: 18px 20px; background: linear-gradient(90deg, #f0fdf4, #fff 70%); }
.po-next-big b { font-size: 24px; }
.po-next-big span { font-size: 16px; color: var(--b-ink); }
.po-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.po-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--b-line); }
.po-row:last-child { border-bottom: 0; }
.po-row .po-d { flex: none; width: 44px; font: 600 13px var(--body); color: var(--b-muted); }
.po-row .po-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.po-row .chip-st { flex: none; }
@media (max-width: 600px) {
  .po-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .po-tiles.three .po-tile { padding: 10px; }
  .po-tiles.three .po-tile small { font-size: 10px; letter-spacing: 0; }
  .po-tiles.three .po-tile b { font-size: 20px; }
  .po-tiles.three .po-tile span { font-size: 12px; }
  .po-next-big b { font-size: 20px; }
}
.warn-note { color: #b45309; }
@media (max-width: 900px) { .po-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .po-hero { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .po-tiles { gap: 10px; }
  .po-tile { padding: 12px; }
  .po-tile b { font-size: 22px; }
  .po-strip { gap: 6px; }
  .po-day { flex-basis: 64px; }
  .biz-top h1 { font-size: 20px; }
}
/* ---------- Выпадающие списки с галочками ---------- */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid #d1d5db; border-radius: 8px; padding: 9px 12px; background: #fff; font: 500 14px var(--body); color: var(--b-ink); }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: '▾'; color: var(--b-muted); }
.dd[open] > summary { border-color: var(--b-accent); outline: 2px solid #bfdbfe; }
.dd > summary .dd-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-pane { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--b-line); border-radius: 8px; box-shadow: 0 10px 25px rgba(16, 24, 40, .12); max-height: 300px; overflow-y: auto; padding: 6px; }
.dd-pane label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; font: 500 14px var(--body); color: var(--b-ink); cursor: pointer; }
.dd-pane label:hover { background: #f1f5f9; }
.dd-tools { display: flex; gap: 12px; padding: 4px 8px 8px; border-bottom: 1px solid var(--b-line); margin-bottom: 4px; }
.hw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0; }
.hw-grid > .hw-f, .hw-grid > label { display: flex; flex-direction: column; gap: 4px; font: 600 13px var(--body); color: var(--b-muted); }
@media (max-width: 700px) { .hw-grid { grid-template-columns: 1fr; } }
/* ---------- Журнал учителя: сетка дети × занятия ---------- */
.jg th.jg-d { text-align: center; padding: 6px 4px; min-width: 46px; }
.jg th.jg-d button { font: 600 12px var(--body); color: var(--b-accent); padding: 2px 4px; border-radius: 5px; }
.jg th.jg-d button:hover { background: #eff6ff; }
.jg th.jg-d.on button { background: #2563eb; color: #fff; }
.jg td.jg-c { text-align: center; padding: 6px 4px; font-weight: 700; }
.jg td.jg-c.ok { color: #15803d; }
.jg td.jg-c.bad { color: #dc2626; }
.jg td.jg-c.warn { color: #b45309; }
.jg td.jg-c small { display: block; font: 500 11px var(--body); color: var(--b-muted); }
.jg td.jg-c.none { color: #cbd5e1; }
.jg td.jg-c.todo { color: #d97706; background: #fffbeb; }
.cal-ev .cal-todo { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 11px; }
.jg .jg-name { white-space: nowrap; position: sticky; left: 0; background: #fff; z-index: 1; }
.biz .rep-plan { padding: 8px 0; border-bottom: 1px solid var(--b-line); }
.biz .rep-plan:last-child { border-bottom: none; }
.biz .seg { box-shadow: inset 0 0 0 1px #d1d5db; border-radius: 8px; }
.biz .seg-b { border-right-color: #d1d5db; font-size: 13px; }
.biz .checks .check { font: 500 14px var(--body); }
.biz .hw-list .card { margin-bottom: 10px; }
.biz .hw-form h3 { font: 700 16px var(--head); margin: 0; }
.biz .sms-mode { border-radius: 10px; font-weight: 600; font-size: 14px; }
.biz .chat-list { background: var(--b-soft); border-radius: 10px; }
.biz .msg { box-shadow: none; border: 1px solid var(--b-line); }
.biz .row-btn { gap: 8px; }
@media (max-width: 700px) {
  .biz { grid-template-columns: minmax(0, 1fr); }
  .biz-side, .biz-menu, .biz-dirs { min-width: 0; }
  .biz-side { position: static; height: auto; padding: 10px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .biz-brand { border: none; padding: 0; margin: 0; flex: 1; }
  .biz-dirs { flex-direction: row; flex: 1 0 100%; order: 2; border: none; padding: 0; margin: 0; overflow-x: auto; }
  .biz-dirs small { display: none; }
  .biz-dir { white-space: nowrap; }
  .biz-menu { flex-direction: row; overflow-x: auto; flex: 1 0 100%; order: 3; gap: 4px; scrollbar-width: none; }
  .biz-menu::-webkit-scrollbar { display: none; }
  .biz-nav { width: auto; white-space: nowrap; }
  .biz-user { border: none; padding: 0; flex-direction: row; align-items: center; gap: 10px; }
  .biz-user b, .biz-user small { display: none; }
  .biz-user-btns { margin: 0; }
  .biz-main { padding: 16px; }
}
/* ---------- Направления ---------- */
.dir-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.dir-pill { padding: 9px 16px; border-radius: 14px; font: 800 15px var(--head); background: rgba(255, 255, 255, .78); color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.dir-pill small { opacity: .6; margin-left: 4px; }
.chat .dir-pill { background: var(--soft); box-shadow: 0 3px 0 rgba(0, 0, 0, .1); }
.dir-pill.on { background: #fff; box-shadow: inset 0 0 0 3px #ffcf33, 0 4px 0 rgba(0, 0, 0, .15); }
.dir-pill.dir-prog.on { box-shadow: inset 0 0 0 3px #2f9e44, 0 4px 0 rgba(0, 0, 0, .15); }
.dir-pill.dir-ege.on { box-shadow: inset 0 0 0 3px #7c5cf5, 0 4px 0 rgba(0, 0, 0, .15); }
.dir-chip { display: inline-block; padding: 2px 9px; border-radius: 9px; font: 800 12px var(--body); background: #fff3c4; color: #6b4e00; vertical-align: middle; }
.dir-chip.dir-prog { background: #d9f5e0; color: #165c26; }
.dir-chip.dir-ege { background: #ebe5ff; color: #43299e; }
h1 .dir-chip, h1 .chip-st { font-size: 14px; }
/* ---------- Детский чат ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; flex-direction: column; gap: 2px; }
.chat-list { height: min(56vh, 520px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--soft); border-radius: 16px; }
.msg { max-width: 78%; align-self: flex-start; background: #fff; border-radius: 14px 14px 14px 4px; padding: 7px 11px; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.msg.mine { align-self: flex-end; background: #e2f7ff; border-radius: 14px 14px 4px 14px; }
.msg.staff { background: #fff6d6; }
.msg-h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.msg-h small { opacity: .55; margin-left: auto; }
.msg-t { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.msg-del { font: 800 18px/1 var(--body); color: #b3261e; padding: 0 4px; }
.msg-mute { font: 700 11px/1 var(--body); color: #8a5a00; background: #fff3d6; border-radius: 8px; padding: 4px 7px; margin-left: 6px; }
.msg-mute.on { color: #1b6e2f; background: #dff5e3; }
.chat-muted { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #fff3d6; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chat-muted button { font-weight: 800; color: #b3261e; padding: 0 2px; }
.chat-input.muted-note { justify-content: center; color: #8a5a00; background: #fff3d6; border-radius: 10px; padding: 12px; font-size: 14px; }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; min-width: 0; font: 700 16px var(--body); padding: 10px 14px; border: 3px solid var(--line); border-radius: 13px; background: var(--soft); color: var(--ink); }
html[data-mode="prog"] .chat-list { background: #f3f8f6; }
html[data-mode="prog"] .msg { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(36, 50, 74, .08); }
html[data-mode="prog"] .msg.mine { background: #dff5ec; }
html[data-mode="prog"] .msg.staff { background: #fff4d6; }
html[data-mode="prog"] .chat-input input { background: #fff; color: var(--ink); border-color: var(--line); }
html[data-mode="ege"] .chat-list { background: rgba(255, 255, 255, .05); }
html[data-mode="ege"] .msg { background: rgba(255, 255, 255, .1); color: #eaf2ff; }
html[data-mode="ege"] .msg.mine { background: rgba(39, 224, 255, .18); }
/* ---------- CRM: журнал, карточки ---------- */
.seg { display: inline-flex; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.seg-b { padding: 7px 11px; font: 700 14px var(--body); color: var(--muted); background: transparent; border-right: 2px solid var(--line); }
.seg-b:last-child { border-right: none; }
.seg-b.on.ok { background: #dcf7e3; color: #14592b; }
.seg-b.on.bad { background: #ffe4e5; color: #8d1820; }
.seg-b.on.warn { background: #fff0cc; color: #6b4800; }
.j-table td { vertical-align: middle; }
.j-table select { font: 700 14px var(--body); padding: 6px 8px; border-radius: 10px; border: 2px solid var(--line); background: var(--soft); color: var(--ink); }
.hw-form label.grow { flex: 2 1 260px; }
.now-topic { display: flex; align-items: center; gap: 14px; }
.now-topic > i { width: 54px; height: 54px; flex: none; }
.now-topic > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.now-topic small { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; opacity: .65; }
.now-topic b { font-size: 20px; }
.add-kid summary { cursor: pointer; }
.add-kid[open] summary { margin-bottom: 10px; }
.inline-edit { display: flex; gap: 6px; align-items: center; }
.inline-edit input { width: 170px; font: 700 14px var(--body); padding: 6px 8px; border-radius: 10px; border: 2px solid var(--line); background: var(--soft); color: var(--ink); }
@media (max-width: 600px) { .seg-b { padding: 7px 7px; font-size: 13px; } .inline-edit { flex-wrap: wrap; } .inline-edit input { width: 100%; } }
.hw-form .note, .sms-note { color: var(--muted); }
.hw-form label.check, .par-row label.check { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; }
.hw-form label.check input, .par-row label.check input { width: auto; flex: none; margin: 0; }
.t tr.voided td { opacity: .55; text-decoration: line-through; }
.t tr.voided td:last-child { text-decoration: none; }
.hw-form textarea { width: 100%; font: 700 16px var(--body); padding: 10px 14px; border: 3px solid var(--line); border-radius: 13px; background: var(--soft); color: var(--ink); resize: vertical; box-sizing: border-box; }
.sms-mode.warn { background: #fff0cc; color: #6b4800; font-weight: 700; }
.sms-mode.ok { background: #dcf7e3; color: #14592b; font-weight: 700; }
.par-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 2px solid var(--line); }
.par-row input[type="text"] { width: 100%; box-sizing: border-box; font: 700 15px var(--body); padding: 8px 10px; border: 3px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); }
.par-new { border-bottom: none; }
@media (max-width: 720px) { .par-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .hero-main { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-mascot { width: 76px; height: 88px; align-self: center; flex: none; }
  .hero-txt { min-width: 0; }
  .hero-txt .row-btn { flex-direction: column; align-items: stretch; }
  .hero-txt .row-btn .btn { width: 100%; max-width: 100%; white-space: normal; justify-content: center; }
  .next-step .btn { width: 100%; justify-content: center; }
  .card .row-btn .btn.blue { max-width: 100%; white-space: normal; }
}
.next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; }
.next-step > i, .next-main > i, .next-type > i { width: 52px; height: 52px; flex: none; }
.next-main, .next-type { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.next-main + .next-type, .next-ex + .next-type { padding-top: 12px; border-top: 1px dashed rgba(127, 127, 160, .35); }
.next-type > i { width: 40px; height: 40px; }
.next-type .next-t b { font-size: 16px; }
.next-course { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(77, 200, 255, .16); color: #2a9fd8; }
html[data-neon] .next-course { color: #7fe3ff; }
.next-t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-t small { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; opacity: .65; }
.next-t b { font-size: 18px; }
.next-ex { flex: 1 0 100%; font-size: 14px; font-weight: 700; }
.hw-done summary { cursor: pointer; font-weight: 800; }
.hw-done-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 0; }
.demo-box { max-width: 420px; width: 100%; margin-top: 10px; text-align: left; }
.install-box { max-width: 420px; width: 100%; margin: 4px auto 12px; display: flex; gap: 12px; align-items: center; text-align: left; }
.install-box img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.install-box div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.35; }
.install-box .btn { align-self: flex-start; }
.demo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.demo-list .btn { white-space: normal; line-height: 1.15; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-width: 0; text-align: left; overflow-wrap: anywhere; hyphens: auto; }
.demo-list small { font-size: 11px; font-weight: 700; opacity: .7; white-space: normal; line-height: 1.15; }

/* ---------- Вход: кто входит ---------- */
.who-pick { margin: 0 0 14px; }
.who-pick > span { display: block; margin-bottom: 6px; font: 700 13px var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.who-pick > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.who-pick button { padding: 12px 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: 700 15px var(--body); color: var(--ink); cursor: pointer; }
.who-pick button.on { border-color: #2563eb; background: #eff6ff; color: #1e3a8a; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.login-help { display: flex; flex-direction: column; gap: 4px; background: #eff6ff; border-left: 4px solid #2563eb; }
code.cred { font: 700 15px ui-monospace, Consolas, monospace; background: #f1f5f9; padding: 3px 8px; border-radius: 7px; letter-spacing: .02em; }
code.cred.new { background: #dcfce7; color: #14532d; }

/* ---------- Учёт и деньги ---------- */
.mo-head { padding-bottom: 10px; }
.mo-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-tab { padding: 10px 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 700 15px var(--body); color: var(--muted); cursor: pointer; }
.mo-tab.on { border-color: #2563eb; background: #2563eb; color: #fff; }
.mo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.mo-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-top: 5px solid #94a3b8; }
.mo-tile small { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mo-tile b { font: 800 28px var(--head); }
.mo-tile span { font-size: 13px; color: var(--muted); }
.mo-tile.in { border-top-color: #16a34a; } .mo-tile.in b { color: #15803d; }
.mo-tile.out { border-top-color: #dc2626; } .mo-tile.out b { color: #b91c1c; }
.mo-tile.plus { border-top-color: #2563eb; background: #eff6ff; } .mo-tile.plus b { color: #1d4ed8; }
.mo-tile.minus { border-top-color: #dc2626; background: #fef2f2; } .mo-tile.minus b { color: #b91c1c; }
.mo-table td:last-child, .mo-table th:last-child { text-align: right; white-space: nowrap; }
.mo-table .biz-link { margin-left: 8px; font-size: 13px; }
.mo-p { color: #15803d; font-weight: 700; }
.mo-m { color: #b91c1c; font-weight: 700; }
.mo-total td { font-weight: 800; font-size: 16px; border-top: 2px solid var(--line); }
.mo-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.mo-col { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 10px; }
.mo-col.cur { background: #eff6ff; }
.mo-bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; }
.mo-bars i { width: 18px; min-height: 2px; border-radius: 5px 5px 0 0; }
.mo-bars i.in, .mo-legend i.in { background: #22c55e; }
.mo-bars i.out, .mo-legend i.out { background: #f87171; }
.mo-col b { font-size: 12px; } .mo-col small { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.mo-legend { grid-column: 1 / -1; display: flex; gap: 16px; justify-content: center; font-size: 13px; color: var(--muted); }
.mo-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mo-rate { display: flex; align-items: center; gap: 6px; }
.mo-rate input { width: 90px; padding: 7px 9px; border-radius: 9px; border: 2px solid var(--line); font: 700 15px var(--body); }
.mo-kinds { display: flex; gap: 8px; margin-bottom: 10px; }
.mo-kind { padding: 10px 18px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 700 15px var(--body); cursor: pointer; }
.mo-kind.on { border-color: #2563eb; background: #eff6ff; color: #1e3a8a; }
@media (max-width: 700px) {
  .mo-tiles { grid-template-columns: 1fr; }
  .mo-tile b { font-size: 24px; }
  .mo-bars i { width: 11px; }
  .mo-tab { flex: 1 1 45%; padding: 10px 8px; font-size: 14px; }
}

/* ---------- График сотрудников: неделя крупно ---------- */
.sh-week .cal-head > b { font-size: 20px; min-width: 220px; }
.sh-week .cal-head .btn:not(.small) { font-size: 20px; padding: 6px 16px; }
.sh-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.sh-table th { padding: 6px 2px; text-align: center; border-radius: 10px; }
.sh-table th span { display: block; font: 700 13px var(--body); color: var(--muted); text-transform: uppercase; }
.sh-table th b { display: block; font: 800 22px var(--head); }
.sh-table th.we span, .sh-table th.we b { color: #2563eb; }
.sh-table th.td { background: #2563eb; } .sh-table th.td span, .sh-table th.td b { color: #fff; }
.sh-table .sh-who { width: 170px; text-align: left; vertical-align: middle; }
.sh-table td.sh-who { padding: 8px 10px; background: #f8fafc; border-radius: 12px; }
.sh-who b { display: block; font-size: 15px; margin-bottom: 4px; }
.sh-h { display: block; font-size: 12.5px; color: var(--muted); }
.sh-day { padding: 0; vertical-align: top; }
.sh-day button { width: 100%; min-height: 92px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: 6px; border-radius: 12px; border: 2px dashed #cbd5e1; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.sh-day button:hover { border-color: #2563eb; background: #f8fbff; }
.sh-day.on button { border: 2px solid #93c5fd; background: #eff6ff; }
.sh-day.td button { box-shadow: inset 0 0 0 2px #bfdbfe; }
.sh-day.sel button { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.sh-plus { font: 300 28px var(--body); color: #cbd5e1; text-align: center; }
.sh-day button:hover .sh-plus { color: #2563eb; }
.sh-t { display: block; padding: 5px 4px; border-radius: 8px; background: #2563eb; color: #fff; font: 700 13px var(--body); text-align: center; white-space: nowrap; }
.sh-day small { font-size: 11.5px; color: #b45309; text-align: center; }
.sh-editor { border: 2px solid #2563eb; margin-bottom: 16px; }
.sh-editor h3 { margin: 16px 0 8px; font-size: 15px; color: var(--muted); }
.sh-ed-name { font-size: 20px; }
.sh-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 132px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: 800 18px var(--head); color: var(--ink); cursor: pointer; }
.sh-slot small { font: 600 12px var(--body); color: var(--muted); }
.sh-slot:hover { border-color: #2563eb; }
.sh-slot.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.sh-slot.on small { color: #dbeafe; }
.sh-own { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.sh-own label { display: flex; flex-direction: column; gap: 4px; font: 700 13px var(--body); color: var(--muted); }
.sh-own input[type="time"] { font: 800 20px var(--head); padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); min-width: 130px; }
.sh-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; }
.sh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: 999px; background: #dbeafe; color: #1e3a8a; font: 800 16px var(--head); }
.sh-chip button { width: 26px; height: 26px; border-radius: 50%; border: none; background: #fff; color: #1e3a8a; font: 700 17px/1 var(--body); cursor: pointer; }
.sh-chip button:hover { background: #fee2e2; color: #b91c1c; }
.sh-sum { margin-left: 6px; font-size: 15px; }
.sh-note { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; max-width: 420px; font: 700 13px var(--body); color: var(--muted); }
.sh-note input { padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); font: 600 15px var(--body); }
@media (max-width: 700px) {
  .sh-slot { min-width: 0; flex: 1 1 40%; font-size: 16px; }
  .sh-week .cal-head > b { min-width: 0; font-size: 17px; }
  .sh-table { min-width: 680px; }
  .sh-table .sh-who { width: 112px; position: sticky; left: 0; z-index: 2; background: #fff; }
  .sh-table td.sh-who { background: #f8fafc; box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .25); }
  .sh-who b { font-size: 13.5px; }
}

/* ---------- Расписание: вкладки; аренда; учебная программа ---------- */
.cs-tabs { margin-bottom: 16px; }
.mo-rent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mo-rent > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; }
.mo-rent small { font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mo-rent b { font: 800 24px var(--head); }
.pg-list { display: flex; flex-direction: column; gap: 10px; }
.pg-row { padding: 14px 16px; }
.pg-row.on { border: 2px solid #2563eb; }
.pg-head { display: flex; align-items: flex-start; gap: 14px; }
.pg-no { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #2563eb; color: #fff; font: 800 16px var(--head); }
.pg-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pg-text > b { font-size: 16px; }
.pg-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.pg-form textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); font: 500 15px var(--body); resize: vertical; box-sizing: border-box; }
.pg-row details.lp { margin-top: 8px; }
.pg-row details.lp summary { cursor: pointer; color: #2563eb; font-weight: 700; font-size: 14px; }
@media (max-width: 700px) { .mo-rent { grid-template-columns: 1fr; } .pg-head { flex-wrap: wrap; } }
.pg-text .chip-st { align-self: flex-start; }

/* ---------- График недели в формате бумажного графика ---------- */
.shp-table { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; background: #fff; }
.shp-table th, .shp-table td { border: 1.5px solid #1f2937; text-align: center; }
.shp-table thead tr:first-child th { background: #b9a7dc; font: 700 17px var(--body); padding: 8px 4px; }
.shp-table .shp-dates th { background: #dcdcdc; font: 600 16px var(--body); padding: 6px 4px; }
.shp-table .shp-dates th.shp-who { background: #b9a7dc; }
.shp-table thead th.td { box-shadow: inset 0 -4px 0 #2563eb; }
.shp-table .shp-who { width: 230px; text-align: center; }
.shp-table td.shp-who { padding: 10px 8px; vertical-align: bottom; font-size: 15.5px; }
.shp-who b { font-weight: 600; }
.shp-role { white-space: nowrap; }
.shp-role.assistant { color: #7c3aed; }
.shp-who small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.shp-c { height: 96px; padding: 0; vertical-align: bottom; }
.shp-c > div, .shp-c > button { width: 100%; height: 100%; min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; padding: 8px 4px; font: 500 16px var(--body); color: var(--ink); background: transparent; border: none; }
.shp-c > button { cursor: pointer; }
.shp-c > button:hover { background: #f3efff; }
.shp-c.on > button, .shp-c.on > div { background: #faf8ff; }
.shp-c.sel > button { box-shadow: inset 0 0 0 3px #2563eb; }
.shp-c i { font: 300 26px var(--body); color: #cbd5e1; font-style: normal; align-self: center; margin: auto 0; }
.shp-c small { font-size: 12px; color: #b45309; }
.sh-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.sh-addrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .shp-table .shp-who { width: 130px; } .shp-c > div, .shp-c > button { font-size: 14px; } }
@media print { .shp-table { min-width: 0; } .shp-c i { display: none; } }
/* График «Вся таблица» (16.11.2026): даты подряд, первый столбец закреплён, внизу заметки. */
.sh-modes { margin: 0 0 12px; }
.sh-all { overflow-x: auto; }
.shp-table.sh-long { width: auto; min-width: 0; table-layout: auto; }
.sh-long th, .sh-long td { min-width: 104px; }
.sh-long .shp-who { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 200px; width: 200px; }
.sh-long thead .shp-who { background: #b9a7dc; }
.sh-long .shp-c { height: 84px; }
.sh-long .shp-c > button { min-height: 84px; font-size: 14px; }
.sh-notes td { padding: 0; background: #fff; vertical-align: top; }
.sh-notes td.on { background: #4ade80; }
.sh-notes textarea { width: 100%; min-height: 58px; border: none; background: transparent; resize: vertical; font: 600 13px var(--body); text-align: center; padding: 6px 4px; color: #14532d; }
.sh-notes textarea:focus { outline: 2px solid #2563eb; background: #fff; }
.sh-notes .shp-who small { display: block; font-size: 12px; color: var(--muted); }
.sh-addrow input[type=date] { padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
/* Журнал групп у руководителя — как таблица владельца: зелёный «был», красный «пропуск», «Отработка». */
.jr-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 0 12px; font-size: 13.5px; }
.jr-legend span { display: inline-flex; align-items: center; gap: 6px; }
.jr-legend .jr-c { width: 46px; height: 20px; min-height: 0; font-size: 10px; }
.jr-card { padding: 14px; margin-bottom: 16px; }
.jr-title { margin: 0 0 10px; font-size: 17px; }
.jr-scroll { overflow-x: auto; }
.jr-table { border-collapse: collapse; background: #fff; font-size: 13.5px; }
.jr-table th, .jr-table td { border: 1px solid #9ca3af; text-align: center; padding: 0; }
.jr-table thead th { background: #d1d5db; font-weight: 700; padding: 5px 4px; white-space: nowrap; }
.jr-table thead th.td { box-shadow: inset 0 -3px 0 #2563eb; }
.jr-table thead th.fut { color: #6b7280; }
.jr-table .jr-n { width: 30px; min-width: 30px; color: #6b7280; position: sticky; left: 0; background: #f3f4f6; z-index: 2; }
.jr-table .jr-name { min-width: 210px; max-width: 240px; text-align: left; padding: 3px 8px; position: sticky; left: 30px; background: #fff; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-table thead .jr-name { background: #d1d5db; }
.jr-table .jr-name .biz-link { font-weight: 600; text-align: left; }
.jr-tl { font-weight: 600 !important; text-align: center !important; }
.jr-topic { padding: 0 !important; background: #e5e7eb !important; }
.jr-topic input { width: 100%; min-width: 120px; border: none; background: transparent; font: 600 12.5px var(--body); text-align: center; padding: 5px 4px; }
.jr-topic input:focus { outline: 2px solid #2563eb; background: #fff; }
.jr-cell { min-width: 74px; }
.jr-cell.out { background: #f9fafb; }
.jr-c { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 26px; border: none; background: transparent; cursor: pointer; font: 600 11.5px var(--body); color: #7f1d1d; }
.jr-c:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #2563eb; }
.jr-c:disabled { cursor: default; }
.jr-c.present { background: #22c55e; }
.jr-c.absent { background: #ef4444; }
.jr-c.makeup { background: #ef4444; color: #450a0a; text-decoration: underline; }
.jr-pop { position: fixed; z-index: 60; width: 250px; background: #fff; border: 1px solid #d1d5db; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 6px; display: grid; gap: 4px; }
.jr-opt { display: flex; align-items: center; gap: 10px; border: none; background: transparent; padding: 7px 8px; border-radius: 8px; cursor: pointer; font: 600 14px var(--body); text-align: left; color: #111827; }
.jr-opt:hover, .jr-opt.cur { background: #eff6ff; }
.jr-opt .jr-c { width: 64px; min-height: 26px; flex: none; border-radius: 4px; }
.jr-mark-mini, .jr-add-mobile, .jr-legend-mini { display: none; }
@media (max-width: 700px) {
  .biz .jr-card { padding: 8px; }
  .biz .jr-legend { gap: 8px 12px; margin-bottom: 5px; font-size: 12px; }
  .biz .jr-legend .jr-c { width: 23px; border-radius: 4px; color: #111827; text-decoration: none; }
  .biz .jr-legend .jr-mark-wide, .biz .jr-legend-wide { display: none; }
  .biz .jr-legend .jr-mark-mini { display: inline; font-weight: 600; }
  .biz .jr-legend-mini { display: block; margin: 0 0 10px; font-size: 12px; }
  .biz .jr-scroll { max-width: 100%; }
  .biz .jr-table { font-size: 12px; table-layout: auto; }
  .biz .jr-table .jr-n { display: none; }
  .biz .jr-table .jr-name { left: 0; min-width: 102px; width: 102px; max-width: 102px; padding: 2px 4px; }
  .biz .jr-table .jr-name .biz-link { padding: 0; line-height: 1.1; font-size: 12px; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; max-width: 72px; }
  .biz .jr-table .jr-rm { margin-left: 1px; padding: 0; width: 20px; min-height: 28px; vertical-align: middle; }
  .biz .jr-table .jr-add { display: none; }
  .biz .jr-add-mobile { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
  .biz .jr-add-mobile select { flex: 1; min-width: 0; min-height: 40px; }
  .biz .jr-table .jr-topic input { min-width: 0; width: 68px; font-size: 16px; padding: 2px; }
  .biz .jr-table .jr-cell { min-width: 40px; }
  .biz .jr-table .jr-sk { min-width: 30px; }
  .biz .jr-table .jr-sk input { width: 29px; min-height: 34px; font-size: 16px; padding: 0; }
  .biz .jr-table .jr-sum { min-width: 54px; }
  .biz .jr-table .jr-c { min-height: 34px; font-size: 17px; color: #334155; }
  .biz .jr-table .jr-c:is(.present, .absent, .makeup) { color: #111827; text-decoration: none; }
  .biz .jr-table .jr-mark-wide { display: none; }
  .biz .jr-table .jr-mark-mini { display: inline; }
  .biz .jr-pop { left: 10px !important; right: 10px; top: auto !important; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; }
  .biz .jr-pop .jr-opt { min-height: 44px; }
}
/* Достижения у родителя */
.ach-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ach-tile { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px 10px; text-align: center; }
.ach-tile i { display: block; width: 52px; height: 52px; margin: 0 auto 6px; }
.ach-tile b { display: block; font: 800 28px/1.1 var(--head); color: #111827; }
.ach-tile small { display: block; color: #4b5563; font-size: 13px; line-height: 1.25; margin-top: 4px; }
.ach-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ach-charts .card { margin: 0; }
.ach-h { margin: 0 0 10px; font-size: 16px; }
.ach-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 18px; }
.ach-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.ach-bar i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; }
.ach-bar small { color: #4b5563; font-size: 12px; }
.ach-v { font-weight: 700; font-size: 13px; color: #111827; }
.ach-unit, .ach-medals { margin: 8px 0 0; font-size: 13px; color: #4b5563; }
.ach-medals { font-size: 15px; color: #111827; }
.ach-empty { margin: 30px 0; text-align: center; }
.ach-next-t { margin: 14px 0 8px; font-weight: 700; color: #4b5563; }
.ach-badges { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ach-badges .badge { box-shadow: none; border: 1px solid #e5e7eb; }
@media (max-width: 700px) { .ach-charts { grid-template-columns: 1fr; } }
.jr-rm { margin-left: 6px; border: none; background: transparent; color: #9ca3af; cursor: pointer; font-size: 13px; padding: 2px 5px; border-radius: 6px; }
.jr-rm:hover { color: #dc2626; background: #fee2e2; }
.jr-add select { max-width: 220px; padding: 4px 6px; font: 14px var(--body); }
.jr-title small { font-weight: 500; font-size: 13px; margin-left: 6px; }
.jr-sk { min-width: 44px; background: #dbeafe; }
.jr-sk input { width: 42px; border: none; background: transparent; text-align: center; font: 600 13px var(--body); padding: 4px 0; }
.jr-sk input:focus { outline: 2px solid #2563eb; background: #fff; }
.jr-sk input.saved, .jr-topic input.saved, .sh-notes textarea.saved { background: #bbf7d0; }
.jr-sk input.err, .jr-topic input.err, .sh-notes textarea.err { background: #fecaca; }
.jr-sum { min-width: 84px; padding: 3px 6px !important; white-space: nowrap; }
.jr-sum small { display: block; color: #6b7280; font-size: 11.5px; }
.jr-left td { opacity: .6; }
/* Подтверждение недели графика (16.11.2026). */
.wc { padding: 14px 16px; margin-bottom: 14px; border-left: 5px solid #16a34a; }
.wc.draft { border-left-color: #f59e0b; background: #fffbeb; }
.wc-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wc-head b, .wc > b { font-size: 15.5px; }
.wc small { display: block; color: var(--muted); margin-top: 3px; font-size: 13px; }
.wc h4 { margin: 12px 0 6px; font-size: 13.5px; color: #92400e; }
.wc-plan { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-plan span { background: #fff; border: 1px solid #fde68a; border-radius: 8px; padding: 4px 9px; font-size: 13px; }
.wk-ev .wk-topic { display: block; font-style: normal; font-size: 12px; color: #1e40af; margin: 2px 0; }
.lf-kinds { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; font-weight: 600; }
.lf-kinds .view-pills { margin-left: 0; }
.lf-pick { display: block; margin: 0 0 12px; }
.lf-pick small { display: block; margin-top: 4px; }
.pay-out h3 { margin: 0 0 10px; font-size: 16px; }
.st-ph { white-space: nowrap; }
.st-in.phone { width: 150px; }
.st-call { text-decoration: none; margin-left: 2px; }
.st-table td.st-note { max-width: 320px; font-size: 13.5px; color: var(--muted); white-space: normal; }
#lg-table td:nth-child(1), #lg-table td:nth-child(3), #lg-table td:nth-child(5), #st-table td:nth-child(2), #st-table td:nth-child(4), #st-table td:nth-child(6) { white-space: nowrap; }

/* Ученики: Основные / Отказы и кнопка в строке */
.st-views { display: flex; gap: 8px; margin: 10px 0 6px; }
.st-view { border: 1px solid #cfd6e4; background: #fff; color: #33415c; border-radius: 10px; padding: 9px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.st-view small { font-weight: 600; color: #7a869e; margin-left: 4px; }
.st-view.on { background: #2f5bd3; border-color: #2f5bd3; color: #fff; }
.st-view.on small { color: #dfe7ff; }
.st-mv { margin-left: 8px; border: 1px solid #e3b4b4; background: #fff; color: #b33a3a; border-radius: 7px; padding: 2px 8px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.st-mv:hover { background: #fbeaea; }
.st-mv.ret { border-color: #a9c7ad; color: #2f7a3b; }
.st-mv.ret:hover { background: #e9f5eb; }
@media print { .st-mv, .st-views { display: none; } }

/* Родитель: занятие — тема и чему научится */
.pl-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f5; }
.pl-item:last-child { border-bottom: 0; }
.pl-d { flex: 0 0 44px; font-weight: 700; color: #5b6780; padding-top: 1px; }
.pl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pl-t span { color: #5b6780; font-size: 13.5px; line-height: 1.35; }
.pl-item .chip-st { flex: 0 0 auto; white-space: nowrap; }

/* Ученики: поля прямо в таблице */
.st-in { font: inherit; color: inherit; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 5px 7px; transition: border-color .15s, background .15s; }
.st-in:hover { border-color: #d5dbe7; background: #fff; }
.st-in:focus { outline: none; border-color: #2f5bd3; background: #fff; box-shadow: 0 0 0 3px rgba(47, 91, 211, .12); }
.st-in.num { width: 64px; font-weight: 700; text-align: right; }
.st-in.num.wide { width: 86px; font-weight: 600; }
.st-in.note { width: 100%; min-width: 180px; resize: vertical; line-height: 1.35; font-size: 13.5px; }
.st-in.saved { border-color: #3a9a4b; background: #eef8f0; }
.st-in.err { border-color: #d24545; background: #fdeeee; }
.st-money { white-space: nowrap; }

/* Ученики: номер строки слева (считает только видимые строки — при поиске нумерация идёт заново) */
#st-table tbody { counter-reset: strow; }
#st-table tbody tr.st-row { counter-increment: strow; }
#st-table td.st-n::before { content: counter(strow); }
#st-table .st-n { width: 34px; text-align: right; color: #7a869e; font-weight: 700; padding-right: 4px; }
/* Ученики: заметные линии между строками и лёгкая «зебра» */
#st-table tbody td { border-bottom: 3px solid #5b7fd6; }
#st-table tbody tr.st-row:nth-child(even) td { background: #f6f8fc; }
#st-table tbody tr.st-row:hover td { background: #eef3ff; }
#st-table td { vertical-align: middle; }

/* Ученики: сортировка по заголовку и отбор по посещениям */
#st-table th.st-sort { cursor: pointer; user-select: none; white-space: nowrap; }
#st-table th.st-sort i { font-style: normal; color: #a3adc2; margin-left: 2px; }
#st-table th.st-sort:hover, #st-table th.st-sort.on { color: #2f5bd3; }
#st-table th.st-sort.on i { color: #2f5bd3; }
.st-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; color: #33415c; font-weight: 600; }
.st-range input { width: 64px; font: inherit; padding: 6px 8px; border: 1px solid #cfd6e4; border-radius: 8px; text-align: center; }

/* ===== Магазин за скиллы: персонаж в кружке, рамки, фоны, звания, цвет имени ===== */
.sk-look { position: relative; display: inline-grid; place-items: center; border-radius: 50%; padding: 4px; background: #d9e2f0; flex: 0 0 auto; vertical-align: middle; box-sizing: border-box; }
.sk-look .sk-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: end center; position: relative; z-index: 1; }
.sk-look .sk-in > svg, .sk-look .sk-in > img { width: 100%; height: 100%; display: block; }
.sk-look .sk-ava { width: 108%; height: 108%; margin-bottom: -4%; }
/* Живые персонажи: движение туда и обратно (alternate), как «бумеранг» */
.sk-ava.anim .ava-hd { transform-origin: 60px 84px; animation: avaHead 1.8s ease-in-out infinite alternate; }
.sk-ava.anim .ava-bd { transform-origin: 60px 120px; animation: avaBody 1.8s ease-in-out infinite alternate; }
.sk-ava.anim .ava-eye { animation: avaEye 2.4s ease-in-out infinite alternate; }
.sk-ava.anim .ava-neon { animation: avaNeon 0.9s ease-in-out infinite alternate; }
@keyframes avaHead { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-2px) rotate(4deg); } }
@keyframes avaBody { from { transform: scaleY(1); } to { transform: scaleY(1.03); } }
@keyframes avaEye { 0%, 30% { transform: translateX(-2px); } 70%, 100% { transform: translateX(1.5px); } }
@keyframes avaNeon { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sk-ava.anim * { animation: none !important; } }
.hud .ava .sk-look { padding: 3px; }
/* рамки */
.fr-fr1 { background: linear-gradient(135deg, #5b8cff, #2f5bd3); }
.fr-fr2 { background: linear-gradient(135deg, #7fe8c4, #26b38a); }
.fr-fr3 { background: radial-gradient(circle, transparent 58%, #fff3c4 59%, #fff3c4 63%, transparent 64%), linear-gradient(135deg, #ffe27a, #d89a1c 50%, #ffe27a); padding: 6px; box-shadow: 0 0 0 2px #a8740f; }
.fr-fr4 { background: #1b1630; box-shadow: 0 0 0 2px #ff4fd8, 0 0 12px 2px #ff4fd8, inset 0 0 8px #2ad8ff; }
.fr-fr5 { background: conic-gradient(#ff4f6e, #ffb84d, #ffe94d, #4dff9a, #4dc8ff, #8a6bff, #ff4fd8, #ff4f6e); padding: 5px; }
.fr-fr6, .fr-fr7 { padding: 5px; overflow: visible; }
.fr-fr6::before, .fr-fr7::before { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: skSpin 3s linear infinite; }
.fr-fr6::before { background: conic-gradient(#ff2a00, #ffb000, #fff26b, #ff7a00, #ff2a00); box-shadow: 0 0 14px 3px rgba(255, 110, 0, .65); }
.fr-fr7::before { background: conic-gradient(#2a1a6e, #8a4dff, #ff6fd8, #4dc8ff, #2a1a6e); box-shadow: 0 0 14px 3px rgba(138, 77, 255, .6); }
@keyframes skSpin { to { transform: rotate(360deg); } }
/* Мемные рамки (16.11.2026): рамка + наклейка .sk-deco в правом нижнем углу */
.sk-deco { position: absolute; right: -6%; bottom: -6%; z-index: 3; line-height: 1; display: grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .18em; border-radius: .7em; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); font-weight: 900; font-family: system-ui, "Segoe UI Emoji", sans-serif; pointer-events: none; transform: rotate(-8deg); }
.fr-fr8 { background: linear-gradient(135deg, #ffd84d, #ffb000); box-shadow: 0 0 0 2px #e08a00; }
.fr-fr8 .sk-deco { background: #fff6c9; animation: skBob 1.6s ease-in-out infinite alternate; }
.fr-fr9 { background: repeating-linear-gradient(45deg, #2b2b2b 0 6px, #ffd400 6px 12px); padding: 5px; }
.fr-fr9 .sk-deco { background: #ff3b3b; color: #fff; font-size: .8em !important; letter-spacing: -.02em; }
.fr-fr10 { background: #0a64d8; box-shadow: 0 0 0 2px #0647a0, inset 0 0 0 2px #5aa2ff; }
.fr-fr10 .sk-deco { background: #0a64d8; color: #fff; border: 2px solid #fff; }
.fr-fr11 { background: conic-gradient(#ff3d6e, #ff9ac2, #ffe066, #ff3d6e); padding: 5px; box-shadow: 0 0 10px rgba(255,61,110,.6); }
.fr-fr11 .sk-deco { animation: skWiggle 1.2s ease-in-out infinite; }
.fr-fr12 { background: #3fe0ff; box-shadow: 5px -5px 0 0 #ff4fd8, 0 0 0 2px #1b1630; }
.fr-fr12 .sk-deco { background: #1b1630; color: #3fe0ff; }
.fr-fr13 { padding: 5px; overflow: visible; background: #1b1630; }
.fr-fr13::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#3fe0ff 0 25%, transparent 25% 50%, #3fe0ff 50% 75%, transparent 75%); animation: skSpin 1.4s linear infinite; }
.fr-fr13 .sk-deco { animation: skFlip 2s ease-in-out infinite; }
.fr-fr14 { padding: 5px; background: repeating-linear-gradient(180deg, #00ff6a 0 2px, #003b18 2px 5px); background-size: 100% 200%; animation: skRain 1.2s linear infinite; box-shadow: 0 0 12px rgba(0,255,106,.55); }
.fr-fr14 .sk-deco { background: #001a0b; color: #00ff6a; font-family: ui-monospace, Consolas, monospace; font-size: .75em !important; border: 1px solid #00ff6a; }
.fr-fr15 { padding: 5px; background: #fff; animation: skGlitch 1.1s steps(2) infinite; }
.fr-fr15 .sk-deco { background: #1b1630; color: #ffe94d; }
.fr-fr16 { background: linear-gradient(135deg, #ffb27a, #ff7aa8); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff7aa8; }
.fr-fr16 .sk-deco { animation: skBob 1.2s ease-in-out infinite alternate; }
.fr-fr17 { background: linear-gradient(135deg, #8a5a3c, #3d2416); box-shadow: 0 0 0 2px #c69c6d; }
.fr-fr17 .sk-deco { background: #fff1de; }
@keyframes skBob { from { transform: rotate(-10deg) translateY(0); } to { transform: rotate(6deg) translateY(-12%); } }
@keyframes skWiggle { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg) scale(1.1); } }
@keyframes skFlip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes skRain { to { background-position: 0 100%; } }
@keyframes skGlitch { 0% { box-shadow: -3px 0 0 #ff2a6d, 3px 0 0 #2ad8ff; } 50% { box-shadow: 3px 1px 0 #ff2a6d, -3px -1px 0 #2ad8ff; } 100% { box-shadow: -2px -1px 0 #ff2a6d, 2px 1px 0 #2ad8ff; } }
@media (prefers-reduced-motion: reduce) { .sk-deco, .fr-fr13::before, .fr-fr14, .fr-fr15 { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .fr-fr6::before, .fr-fr7::before, .nk-n5 { animation: none; } }
/* фоны */
.bg-bg0 { background: linear-gradient(#eaf3ff, #ffffff); }
.bg-bg1 { background: linear-gradient(#6cc4ff, #c9ecff); }
.bg-bg2 { background: linear-gradient(#ff9a5a, #ffd36b 60%, #ffe9b8); }
.bg-bg3 { background: linear-gradient(rgba(42, 216, 140, .16) 1px, transparent 1px) 0 0/10px 10px, linear-gradient(90deg, rgba(42, 216, 140, .16) 1px, transparent 1px) 0 0/10px 10px, #0f2a22; }
.bg-bg4 { background: radial-gradient(circle at 22% 28%, #fff 1.5px, transparent 2.5px), radial-gradient(circle at 76% 22%, #ffe0ef 1.5px, transparent 2.5px), radial-gradient(circle at 70% 78%, #fff 1px, transparent 2px), radial-gradient(circle at 50% 110%, #ffd1e8, transparent 60%), linear-gradient(#ff5f8f, #ff9ac2); }
.bg-bg5 { background: linear-gradient(transparent 62%, #1b1630 62%), repeating-linear-gradient(90deg, #2a1a5e 0 14px, #3a2a7e 14px 22px) bottom/100% 40% no-repeat, linear-gradient(#ff4fd8, #6b3dff 55%, #2ad8ff); }
.bg-bg6 { background: radial-gradient(circle at 30% 35%, rgba(255, 111, 216, .55), transparent 45%), radial-gradient(circle at 70% 65%, rgba(77, 200, 255, .5), transparent 45%), radial-gradient(circle at 60% 25%, #fff 1px, transparent 2px), radial-gradient(circle at 25% 80%, #fff 1px, transparent 2px), #120b2e; }
/* цвет имени */
.nk { font-weight: 800; }
.nk-n1 { color: #2f6bff; }
.nk-n2 { color: #12a36a; }
.nk-n3, .nk-n4, .nk-n5 { -webkit-background-clip: text; background-clip: text; color: transparent; }
.nk-n3 { background-image: linear-gradient(90deg, #ff5a3d, #ff9a1a, #ff4f8a); }
.nk-n4 { background-image: linear-gradient(90deg, #ff4f6e, #ffb84d, #3dc96b, #4dc8ff, #8a6bff); }
.nk-n5 { background-image: linear-gradient(90deg, #b8860b, #ffe27a, #fff6c9, #ffe27a, #b8860b); background-size: 200% 100%; animation: skShine 2.5s linear infinite; }
/* Дорогие живые стили имени (16.11.2026) */
.nk-n6 { font-family: ui-monospace, Consolas, monospace; color: #00e85c; text-shadow: 0 0 6px rgba(0,232,92,.6); }
.nk-n6::before { content: '> '; opacity: .7; }
.nk-n6::after { content: '_'; animation: skBlink 1s steps(1) infinite; }
.nk-n7 { color: #fff; text-shadow: 0 0 4px #ff4fd8, 0 0 10px #ff4fd8, 0 0 18px #2ad8ff; animation: skNeon 1.6s ease-in-out infinite alternate; }
.nk-n8 { -webkit-background-clip: text; background-clip: text; color: transparent; background-image: linear-gradient(90deg, #ff4f6e, #ffb84d, #ffe94d, #3dc96b, #4dc8ff, #8a6bff, #ff4fd8, #ff4f6e); background-size: 300% 100%; animation: skShine 3s linear infinite; }
.nk-n9 { color: inherit; text-shadow: -2px 0 #ff2a6d, 2px 0 #2ad8ff; animation: skGlitchTx 0.9s steps(2) infinite; }
.nk-n10 { -webkit-background-clip: text; background-clip: text; color: transparent; background-image: linear-gradient(0deg, #ff2a00, #ff8a00 45%, #ffe94d); background-size: 100% 200%; animation: skFire .8s ease-in-out infinite alternate; filter: drop-shadow(0 0 4px rgba(255,100,0,.7)); }
.nk-n11 { -webkit-background-clip: text; background-clip: text; color: transparent; background-image: linear-gradient(90deg, #b8860b, #ffe27a, #fff6c9, #ffe27a, #b8860b); background-size: 200% 100%; animation: skShine 2s linear infinite; filter: drop-shadow(0 0 5px rgba(255,210,80,.8)); }
.nk-n11::before, .nk-n11::after { content: '✦'; color: #ffd84d; -webkit-text-fill-color: #ffd84d; display: inline-block; margin: 0 .25em; animation: skTwinkle 1.4s ease-in-out infinite alternate; }
.nk-n11::after { animation-delay: .7s; }
@keyframes skBlink { 50% { opacity: 0; } }
@keyframes skNeon { from { text-shadow: 0 0 2px #ff4fd8, 0 0 6px #ff4fd8, 0 0 10px #2ad8ff; } to { text-shadow: 0 0 5px #ff4fd8, 0 0 14px #ff4fd8, 0 0 24px #2ad8ff; } }
@keyframes skGlitchTx { 0% { text-shadow: -2px 0 #ff2a6d, 2px 0 #2ad8ff; transform: translateX(0); } 50% { text-shadow: 2px 1px #ff2a6d, -2px -1px #2ad8ff; transform: translateX(1px); } 100% { text-shadow: -1px -1px #ff2a6d, 1px 1px #2ad8ff; transform: translateX(-1px); } }
@keyframes skFire { to { background-position: 0 100%; } }
@keyframes skTwinkle { from { transform: scale(.7) rotate(0); opacity: .6; } to { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.nk-n9, .nk-n11::before, .nk-n11::after { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .nk-n6::after, .nk-n7, .nk-n8, .nk-n9, .nk-n10, .nk-n11, .nk-n11::before, .nk-n11::after { animation: none !important; } }
.shop-d { display: block; font-size: 12px; opacity: .7; line-height: 1.3; margin: 2px 0 4px; }
@keyframes skShine { to { background-position: -200% 0; } }
/* звания и редкость */
.sk-title, .rar { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; letter-spacing: .2px; }
.rar-common { background: #e6ebf3; color: #4a5670; }
.rar-rare { background: #dceaff; color: #1f5ad8; }
.rar-epic { background: #efe1ff; color: #7a2fd8; }
.rar-legend { background: linear-gradient(90deg, #ffe27a, #ffb84d); color: #6b3d00; }
/* витрина */
.shop .shop-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, #f2f7ff, #fff6e8); }
.shop-me { display: flex; align-items: center; gap: 16px; }
.shop-name { font-size: 24px; margin-bottom: 4px; }
.shop-me .sk-title { margin-left: 0; font-size: 13px; }
.shop-bal { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.shop-bal small { color: #5b6780; font-weight: 700; }
.shop-bal b { display: flex; align-items: center; gap: 6px; font-size: 40px; line-height: 1; color: #e08a00; }
.shop-bal b i { width: 36px; height: 36px; display: inline-block; }
.shop-bal span { color: #5b6780; font-size: 13px; }
.shop-goal { color: #2f5bd3 !important; font-weight: 700; }
.shop-how { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 14px; background: #fffbe6; border: 1px solid #f3e1a0; border-radius: 12px; font-size: 14px; color: #5a4a12; }
.shop-how i { width: 26px; height: 26px; flex: 0 0 26px; }
.shop-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.shop-cat { font: inherit; font-weight: 800; padding: 9px 16px; border-radius: 12px; border: 2px solid #d5dde9; background: #fff; color: #33415c; cursor: pointer; }
.shop-cat small { margin-left: 6px; color: #8792a8; font-weight: 700; }
.shop-cat.on { background: #2f5bd3; border-color: #2f5bd3; color: #fff; }
.shop-cat.on small { color: #dfe7ff; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.shop-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 10px 12px; background: #fff; border-radius: 16px; border: 3px solid #e3e9f2; box-shadow: 0 4px 0 #e3e9f2; transition: transform .12s; }
.shop-item:hover { transform: translateY(-2px); }
.shop-item .rar { position: absolute; top: 7px; left: 7px; margin: 0; }
.shop-item.rb-rare { border-color: #9cc0ff; box-shadow: 0 4px 0 #9cc0ff; }
.shop-item.rb-epic { border-color: #c79cff; box-shadow: 0 4px 0 #c79cff; background: linear-gradient(#fbf7ff, #fff); }
.shop-item.rb-legend { border-color: #ffc94d; box-shadow: 0 4px 0 #e8a91c, 0 0 18px rgba(255, 190, 60, .35); background: linear-gradient(#fffaf0, #fff); }
.shop-item.on { outline: 3px solid #26b38a; outline-offset: 2px; }
.shop-item.locked .shop-pv { filter: saturate(.55); opacity: .8; }
.shop-pv { min-height: 108px; display: grid; place-items: center; }
.shop-n { font-size: 15px; text-align: center; }
.shop-price { display: flex; align-items: center; gap: 4px; font-weight: 800; color: #e08a00; min-height: 22px; }
.shop-price i { width: 20px; height: 20px; display: inline-block; }
.shop-tx { min-height: 108px; display: grid; place-items: center; }
.shop-tx .sk-title { font-size: 15px; padding: 6px 14px; margin: 0; }
.shop-tx.big { font-size: 24px; }
.shop-buy { background: #ffb800; border-color: #e09a00; color: #3a2400; font-weight: 800; }
.shop-on { background: #e6f7ef; color: #1d7a52; }
/* чат: аватар и звание */
.msg-h .msg-ava { margin-right: 6px; }
.msg-h .sk-title { font-size: 10.5px; padding: 1px 7px; }
@media (max-width: 600px) { .shop-bal { align-items: flex-start; text-align: left; } .shop-grid { grid-template-columns: repeat(2, 1fr); } .shop-name { font-size: 20px; } }

/* ---------- Телефон: кабинет ученика ---------- */
@media (max-width: 640px) {
  .hud { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .hud-in { flex-wrap: nowrap; padding: 6px 10px; gap: 6px; }
  .hud .brand img { width: 40px; height: 40px; }
  .hud .brand b, .hud .brand small, .hud .brand span { display: none; }
  .hud .stats { margin-left: auto; flex-wrap: nowrap; gap: 6px; }
  .hud .mode-pill { display: none; }
  .hud .lvl .xpbar { width: 44px; }
  .hud .chip { padding: 4px 8px; }
  /* вкладки — внизу экрана, как в приложении */
  .hud .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); box-shadow: 0 -3px 12px rgba(0, 0, 0, .14); display: flex; flex-wrap: nowrap; justify-content: space-around; gap: 0; padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); }
  .hud .tab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 1px; padding: 5px 1px 4px; border-radius: 12px; }
  .hud .tab i { width: 26px; height: 26px; }
  .hud .tab span { display: block; font-size: 10px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wrap { padding: 14px 12px 100px; }
  .toasts { top: auto; bottom: 84px; left: 12px; right: 12px; }
}
@media (max-width: 400px) { .hud .lvl > div { display: none; } .hud .chip-snd { display: none; } }
/* ---------- Телефон: таблицы карточками (все кабинеты) ---------- */
@media (max-width: 600px) {
  .t-wrap:has(> table.mcards) { overflow: visible; background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  table.t.mcards { display: block; width: 100% !important; min-width: 0 !important; border: 0; background: none; counter-reset: stn; }
  table.t.mcards > thead, table.t.mcards tr.mc-head { display: none; }
  table.t.mcards > tbody { display: block; }
  table.t.mcards tr { display: block; background: #fff; border: 1px solid #dfe5ee !important; border-radius: 14px; padding: 8px 14px; margin: 0 0 10px; box-shadow: 0 2px 6px rgba(31, 41, 55, .06); }
  table.t.mcards tr:nth-child(even) { background: #fff; }
  table.t.mcards td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 !important; border: 0 !important; border-bottom: 1px dashed #eef1f6 !important; text-align: right; white-space: normal !important; width: auto !important; min-height: 0; font-size: 15px; }
  table.t.mcards td:last-child { border-bottom: 0 !important; }
  table.t.mcards td::before { content: attr(data-label); flex: none; max-width: 46%; text-align: left; color: #6b7280; font: 600 13px var(--body); }
  table.t.mcards td[data-label=""]::before, table.t.mcards td:not([data-label])::before, table.t.mcards td[colspan]::before { display: none; }
  table.t.mcards td[data-label=""], table.t.mcards td[colspan] { justify-content: flex-start; text-align: left; }
  table.t.mcards td:empty { display: none; }
  table.t.mcards td:first-child { font-size: 16px; }
  table.t.mcards td:has(textarea) { flex-direction: column; align-items: stretch; text-align: left; }
  table.t.mcards td input, table.t.mcards td select { max-width: 58%; min-height: 38px; font-size: 16px; }
  table.t.mcards td textarea { width: 100%; font-size: 16px; }
  table.t.mcards td .btn, table.t.mcards td button.st-mv { min-height: 38px; }
  /* «Ученики» руководителя: номер — в углу карточки */
  #st-table.mcards tr { position: relative; padding-top: 10px; }
  #st-table.mcards td.st-n { position: absolute; top: 8px; right: 12px; border: 0 !important; padding: 0 !important; color: #94a3b8; font-size: 13px; }
  #st-table.mcards td.st-n::before { display: none; }
  #st-table.mcards td:nth-child(2) { padding-right: 40px !important; }
  #st-table.mcards input.st-in { width: 120px !important; text-align: right; }
}
/* ---------- Телефон: кабинеты взрослых ---------- */
@media (max-width: 700px) {
  .biz-side { padding: 8px 10px; gap: 6px; box-shadow: 0 2px 10px rgba(31, 41, 55, .08); }
  .biz-brand img { width: 32px; height: 32px; }
  .biz-brand b { font-size: 15px; }
  .biz-nav { padding: 9px 12px; min-height: 40px; font-size: 14px; }
  .biz-nav.on { box-shadow: inset 0 -3px 0 #2563eb; }
  .biz-menu .biz-nav { flex: 1 0 auto; justify-content: center; }
  .biz-menu { flex-wrap: wrap; overflow: visible; }
  .biz .seg-b { min-height: 38px; padding: 7px 10px; }
  .biz-main { padding: 14px 12px 60px; }
  .biz-top h1 { font-size: 20px; }
  .biz .btn { min-height: 40px; }
  .biz input, .biz select, .biz textarea { font-size: 16px; }
  .back > * { max-width: 100%; }
}
/* Приветствие ребёнка вверху главной */
.hello-top { margin: 0 0 14px; font: 800 28px/1.15 var(--head); color: var(--ink); }
.hello-top span { color: #2f9e44; font-family: Consolas, monospace; font-size: .8em; }
@media (max-width: 640px) { .hello-top { font-size: 22px; margin-bottom: 10px; } }@media (max-width: 420px) { .biz-nav svg { display: none; } .biz-nav { padding: 9px 10px; } }@media (max-width: 640px) { .play-top { flex-wrap: nowrap !important; gap: 8px; } .play-top .prog { min-width: 0; flex: 1; } .play-top .prog b, .play-top .prog span { font-size: 13px; } .play-top .chip { padding: 4px 8px; } }
/* ================= Неоновая тема кабинета ребёнка (14.11.2026) =================
   Тёмно-фиолетовый фон, карточки «стекло», бирюзовый и фиолетовый неон — как у персонажей «Неоновая» и «Неоновый». */
html[data-neon], html[data-biz-neon], html:has(.gate #c_login) { --ink: #eef0ff; --muted: #a9a8d8; --paper: #201b42; --soft: rgba(255, 255, 255, .07); --line: rgba(140, 120, 255, .28); --accent: #3fe0ff; --accent-d: #1fb6dc; --neon: #3fe0ff; --violet: #8a5cff; --ok-bg: rgba(51, 214, 120, .16); --bad-bg: rgba(255, 75, 110, .16); --warn-bg: rgba(255, 200, 60, .16); color-scheme: dark; }
html[data-neon] body,
html[data-biz-neon][data-mode="biz"] body,
html:has(.gate #c_login) body,
html:not(:has(#app > *)) body {
  color: var(--ink);
  background-color: #120f2a;
  background-image:
    radial-gradient(circle at 10% -5%, rgba(138, 92, 255, .38) 0, transparent 42%),
    radial-gradient(circle at 100% 15%, rgba(63, 224, 255, .22) 0, transparent 38%),
    radial-gradient(circle at 50% 110%, rgba(255, 79, 216, .18) 0, transparent 45%),
    linear-gradient(rgba(120, 110, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 110, 255, .07) 1px, transparent 1px);
  background-size: auto, auto, auto, 34px 34px, 34px 34px;
  background-attachment: fixed;
}
html:has(.gate #c_login) .gate .title { color: #fff; text-shadow: 0 0 18px #8a5cff88; }
html:has(.gate #c_login) .gate .lead { color: #c9c9ea; }
html:has(.gate #c_login) .gate .card:not(.blocked-box) {
  background: linear-gradient(160deg, #2c245ceb, #1c173ceb);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #8c78ff52, 0 10px 30px #0006;
}
html:has(.gate #c_login) .gate .auth input:focus { background: #221b49; border-color: #3fe0ff; }
html:has(.gate #c_login) .gate .auth-err { color: #ff99aa; }
html:has(.gate #c_login) .gate .who-pick button {
  display: grid; justify-items: center; align-content: center; gap: 6px; min-width: 0;
  min-height: 83px; padding: 7px 2px; border: 1px solid #65598f; background: #28234b;
  color: #eef0ff; font: 800 clamp(12px, 3.65vw, 15px) var(--head);
}
html:has(.gate #c_login) .gate .who-pick button i {
  display: grid; place-items: center; width: 34px; height: 31px; border-radius: 9px;
  background: #8a5cff2b; color: #d6c9ff;
}
html:has(.gate #c_login) .gate .who-pick button svg { width: 21px; height: 21px; }
html:has(.gate #c_login) .gate .who-pick button.on { background: linear-gradient(155deg, #234762, #302253); border-color: #3fe0ff; color: #fff; box-shadow: 0 0 14px #3fe0ff31; }
html:has(.gate #c_login) .gate .who-pick button.on i { color: #b9f7ff; background: #3fe0ff2b; }
html:has(.gate #c_login) .gate .who-pick button:focus-visible { outline: 2px solid #b9f7ff; outline-offset: 2px; }
html:has(.gate #c_login) #installBox { width: min(420px, 100%); }
html:has(.gate #c_login) .install-box > div { min-width: 0; }
html:has(.gate #c_login) .install-box .btn { max-width: 100%; white-space: normal; }
html:has(.gate #c_login) .gate .btn:not(.go) { --c: #302854; --d: #170f32; --t: var(--ink); }
html:has(.gate #c_login) .gate .btn.go { --c: linear-gradient(90deg, #3fe0ff, #8a5cff); --d: #3b2a8c; --t: #10102a; }
/* Шапка и вкладки */
html[data-neon] .hud { background: rgba(22, 18, 48, .88); box-shadow: 0 1px 0 rgba(63, 224, 255, .35), 0 6px 24px rgba(0, 0, 0, .35); }
html[data-neon] .hud .brand b, html[data-neon] .brand b { color: #fff; }
html[data-neon] .tab { color: var(--muted); }
html[data-neon] .tab.on, html[data-neon] .tab:hover { background: rgba(63, 224, 255, .12); color: var(--neon); box-shadow: inset 0 0 0 1.5px rgba(63, 224, 255, .55), 0 0 14px rgba(63, 224, 255, .25); }
html[data-neon] .tab i, html[data-neon] .tab:nth-child(n) i { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .35); }
html[data-neon] .tab.on i { box-shadow: inset 0 0 0 2px var(--neon), 0 0 10px rgba(63, 224, 255, .5); }
html[data-neon] .chip, html[data-neon] .lvl, html[data-neon] .mode-pill { background: rgba(255, 255, 255, .07); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .3); }
html[data-neon] .chip.btnish:hover { background: rgba(63, 224, 255, .14); }
html[data-neon] .xpbar, html[data-neon] .goalbar, html[data-neon] .world .mini, html[data-neon] .prog-bar { background: rgba(255, 255, 255, .1); }
html[data-neon] .goalbar u, html[data-neon] .world .mini u, html[data-neon] .prog-bar u, html[data-neon] .xpbar u { background: linear-gradient(90deg, #8a5cff, #3fe0ff); box-shadow: 0 0 8px rgba(63, 224, 255, .6); }
/* Заголовки */
html[data-neon] .title, html[data-neon] h2.sec, html[data-neon] .sec { color: #fff; text-shadow: 0 0 18px rgba(138, 92, 255, .55); }
html[data-neon] .lead, html[data-neon] .muted, html[data-neon] .note { color: var(--muted); }
html[data-neon] .hello-top { color: #fff; text-shadow: 0 0 22px rgba(138, 92, 255, .7); }
html[data-neon] .hello-top span { color: var(--neon); text-shadow: 0 0 10px rgba(63, 224, 255, .9); }
/* Карточки — тёмное стекло с неоновой кромкой */
html[data-neon] .card, html[data-neon] .bubble, html[data-neon] .who { background: linear-gradient(160deg, rgba(44, 36, 92, .92), rgba(28, 23, 60, .92)); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .32), 0 10px 30px rgba(0, 0, 0, .35); }
html[data-neon] .bubble.left::before { border-right-color: #2c245c; }
html[data-neon] .hero-main { background: linear-gradient(120deg, rgba(138, 92, 255, .35), rgba(63, 224, 255, .18)); box-shadow: inset 0 0 0 1px rgba(63, 224, 255, .4), 0 0 30px rgba(138, 92, 255, .25); }
html[data-neon] .hero-main::after { background: rgba(255, 255, 255, .05); }
html[data-neon] .hero-txt h1 { color: var(--neon); }
html[data-neon] .hero-txt p { color: #cfd0f5; }
/* Кнопки: неоновые */
html[data-neon] .btn { --c: rgba(255, 255, 255, .09); --d: rgba(0, 0, 0, .45); --t: var(--ink); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .4), 0 4px 0 var(--d); }
html[data-neon] .btn.go { --c: linear-gradient(90deg, #3fe0ff, #8a5cff); --t: #10102a; background: linear-gradient(90deg, #3fe0ff, #8a5cff); box-shadow: 0 4px 0 #3b2a8c, 0 0 18px rgba(63, 224, 255, .45); }
html[data-neon] .btn.red { background: linear-gradient(90deg, #ff4fd8, #ff6a3d); --t: #fff; box-shadow: 0 4px 0 #8c2a6a, 0 0 18px rgba(255, 79, 216, .4); }
html[data-neon] .btn.ok { box-shadow: 0 4px 0 var(--ok-d), 0 0 14px rgba(51, 182, 82, .4); }
html[data-neon] .btn.blue { background: linear-gradient(90deg, #5b7bff, #8a5cff); --t: #fff; box-shadow: 0 4px 0 #2e2a8c; }
html[data-neon] .quit, html[data-neon] .play-top .pill, html[data-neon] .flt { background: rgba(255, 255, 255, .08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .35); }
html[data-neon] .flt.on, html[data-neon] .quit:hover { background: rgba(63, 224, 255, .15); color: var(--neon); }
/* Задания */
html[data-neon] .q, html[data-neon] .task-tag b, html[data-neon] .prog, html[data-neon] .explain, html[data-neon] .sheet, html[data-neon] .explain .q { color: var(--ink); }
html[data-neon] .q pre, html[data-neon] .ex-q pre, html[data-neon] pre.code, html[data-neon] pre { background: #0d0b20; color: #d6f7ff; box-shadow: inset 0 0 0 1px rgba(63, 224, 255, .3); border-radius: 12px; }
html[data-neon] .choice:not(.right):not(.wrong):not(.picked) { background: rgba(255, 255, 255, .06); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(140, 120, 255, .45), 0 4px 0 rgba(0, 0, 0, .35); }
html[data-neon] .choice:not(.right):not(.wrong):not(.picked):hover { box-shadow: inset 0 0 0 2px var(--neon), 0 0 14px rgba(63, 224, 255, .35); }
html[data-neon] .choice.picked { background: rgba(63, 224, 255, .15); color: #fff; box-shadow: inset 0 0 0 2px var(--neon), 0 0 14px rgba(63, 224, 255, .4); }
html[data-neon] .explain .card { background: rgba(255, 255, 255, .05); }
/* Окно разбора ошибки — плотное, задний фон сквозь него не просвечивает (16.11.2026). */
html[data-neon] .back { background: rgba(6, 4, 20, .88); }
html[data-neon] .explain, html[data-neon] .explain .ex-head { background: #17132f; }
html[data-neon] .explain { box-shadow: 0 0 0 1.5px rgba(140, 120, 255, .5), 0 18px 50px rgba(0, 0, 0, .6); }
html[data-neon] .explain .ex-q { background: #221c46; }
html[data-neon] .sheet { background: #1c1740; }
/* Итог теста: плашки «+опыт» и «Лучшая серия» — тёмный фон, яркий текст (было светлое на светлом). */
html[data-neon] .gain { background: rgba(255, 200, 60, .14); color: #ffe08a; box-shadow: inset 0 0 0 1.5px rgba(255, 200, 60, .55); }
html[data-neon] .victory h1, html[data-neon] .score { color: #fff; }
html[data-neon] .score small { color: #c9c6f0; }
html[data-neon] input, html[data-neon] textarea, html[data-neon] select, html[data-neon] .ans input, html[data-neon] .chat-input input { background: rgba(10, 8, 28, .7); color: var(--ink); border: 1px solid rgba(140, 120, 255, .45); }
html[data-neon] input::placeholder, html[data-neon] textarea::placeholder { color: #7f7cb0; }
html[data-neon] .t th, html[data-neon] .t td { border-color: rgba(140, 120, 255, .22); color: var(--ink); }
html[data-neon] .t th { color: var(--muted); }
html[data-neon] .exam-door.prog { background: linear-gradient(150deg, rgba(138, 92, 255, .35), rgba(63, 224, 255, .2)); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(63, 224, 255, .4), 0 8px 24px rgba(0, 0, 0, .35); }
html[data-neon] .exam-door.prog b { color: var(--neon); }
html[data-neon] .exam-door.prog em { color: #cfd0f5; }
/* Чат */
html[data-neon] .chat-list { background: rgba(0, 0, 0, .25); }
html[data-neon] .msg { background: rgba(255, 255, 255, .07); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .25); }
html[data-neon] .msg.mine { background: rgba(63, 224, 255, .14); }
html[data-neon] .msg.staff { background: rgba(255, 200, 60, .14); }
/* Иконки ярче на тёмном */
html[data-neon] .pic { filter: saturate(1.3) drop-shadow(0 0 6px rgba(138, 92, 255, .45)); }
/* Телефон: нижняя панель */
@media (max-width: 640px) { html[data-neon] .hud .tabs { background: rgba(18, 15, 42, .97); box-shadow: 0 -1px 0 rgba(63, 224, 255, .35), 0 -6px 20px rgba(0, 0, 0, .4); } }/* Неон: магазин, награды, метки */
html[data-neon] .bg-bg0 { background: linear-gradient(#3b2f7e, #1d1840); }
html[data-neon] .late { color: #ff7a95; }
html[data-neon] .tagok { color: #5cf0a0; }
html[data-neon] .badge { background: linear-gradient(160deg, rgba(44, 36, 92, .92), rgba(28, 23, 60, .92)); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .32), 0 8px 22px rgba(0, 0, 0, .3); }
html[data-neon] .badge.off { background: rgba(255, 255, 255, .04); }
html[data-neon] .badge.off b, html[data-neon] .badge.off small { color: #8c89bd; }
html[data-neon] .rar-common { background: rgba(255, 255, 255, .12); color: #d6d8f0; }
html[data-neon] .rar-rare { background: rgba(80, 140, 255, .22); color: #8fbaff; }
html[data-neon] .rar-epic { background: rgba(170, 90, 255, .25); color: #d2a8ff; }
html[data-neon] .sk-title.rar-common { background: rgba(255, 255, 255, .12); color: #e6e7ff; }
html[data-neon] .shop-bal small, html[data-neon] .shop-bal span { color: var(--muted); }
html[data-neon] .shop-bal b, html[data-neon] .shop-price { color: #ffc93d; text-shadow: 0 0 12px rgba(255, 190, 60, .45); }
html[data-neon] .shop-goal { color: var(--neon) !important; }
html[data-neon] .shop-how { background: rgba(63, 224, 255, .08); border-color: rgba(63, 224, 255, .35); color: #cfeffa; }
html[data-neon] .shop-cat { background: rgba(255, 255, 255, .06); border-color: rgba(140, 120, 255, .4); color: var(--ink); }
html[data-neon] .shop-cat small { color: var(--muted); }
html[data-neon] .shop-cat.on { background: linear-gradient(90deg, #3fe0ff, #8a5cff); border-color: transparent; color: #10102a; box-shadow: 0 0 16px rgba(63, 224, 255, .45); }
html[data-neon] .shop-cat.on small { color: #241a50; }
html[data-neon] .shop-item { background: linear-gradient(170deg, #2a2358, #1c1740); border-color: rgba(140, 120, 255, .35); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); color: var(--ink); }
html[data-neon] .shop-item.rb-rare { border-color: #5b8cff; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(91, 140, 255, .35); }
html[data-neon] .shop-item.rb-epic { border-color: #a46bff; background: linear-gradient(170deg, #34236a, #1c1740); box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 16px rgba(164, 107, 255, .4); }
html[data-neon] .shop-item.rb-legend { border-color: #ffc94d; background: linear-gradient(170deg, #3d2f3a, #1c1740); box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 0 20px rgba(255, 190, 60, .45); }
html[data-neon] .shop-item.on { outline-color: var(--neon); }
html[data-neon] .shop-on { background: rgba(63, 224, 255, .15); color: var(--neon); }
html[data-neon] .shop-buy { background: linear-gradient(90deg, #ffd23f, #ff9a1a); border-color: transparent; color: #2a1600; }/* Неон: карточки курсов — тёмные с цветной светящейся кромкой */
html[data-neon] .world { background: linear-gradient(165deg, color-mix(in srgb, var(--c) 42%, #1c1740) 0%, #1a1538 85%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 85%, #fff 15%), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent), 0 6px 0 rgba(0, 0, 0, .35); }
html[data-neon] .world:hover { box-shadow: inset 0 0 0 2px var(--c), 0 0 28px color-mix(in srgb, var(--c) 70%, transparent), 0 10px 0 rgba(0, 0, 0, .35); }
html[data-neon] .world::before { background: rgba(255, 255, 255, .06); }
html[data-neon] .world .mini u { background: linear-gradient(90deg, #8a5cff, #3fe0ff); }
html[data-neon] .world-head { background: linear-gradient(120deg, color-mix(in srgb, var(--c) 45%, #1c1740), #1c1740); box-shadow: inset 0 0 0 2px var(--c), 0 0 24px color-mix(in srgb, var(--c) 45%, transparent); }
html[data-neon] .path svg.road polyline { stroke: rgba(63, 224, 255, .6); filter: drop-shadow(0 0 4px rgba(63, 224, 255, .8)); }html[data-neon] .result-bar.good { background: #13352c; color: #6cf5a8; box-shadow: inset 0 0 0 2px #33d17a, 0 0 22px rgba(51, 209, 122, .4); }
html[data-neon] .result-bar.bad { background: #3a1531; color: #ff8fb0; box-shadow: inset 0 0 0 2px #ff4f8a, 0 0 22px rgba(255, 79, 138, .4); }
html[data-neon] .choice.right { color: #fff; }
html[data-neon] .choice.wrong { color: #fff; }
html[data-neon] .ex-x { background: rgba(255, 255, 255, .1); color: var(--ink); }
html[data-neon] .node-b { --c: #2a2358; --d: #0f0c26; color: #fff; box-shadow: inset 0 0 0 2px rgba(140, 120, 255, .6), 0 7px 0 var(--d); }
html[data-neon] .node.done .node-b { --c: #ffc93d; --d: #a8780a; color: #2a1600; box-shadow: 0 7px 0 var(--d), 0 0 18px rgba(255, 200, 60, .5); }
html[data-neon] .node.next .node-b { --c: #3fe0ff; --d: #1b7f9c; color: #10102a; box-shadow: 0 7px 0 var(--d), 0 0 22px rgba(63, 224, 255, .7); }/* Главная ребёнка: его персонаж из магазина вместо маскота */
.hero-me { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; transition: transform .15s; }
.hero-me:hover { transform: translateY(-3px); }
.hero-me small { font: 700 12px var(--head); color: var(--muted); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .35); }
html[data-neon] .hero-me .sk-look { filter: drop-shadow(0 0 14px rgba(63, 224, 255, .45)); }
@media (max-width: 600px) { .hero-me { align-self: center; } .hero-me .sk-look { width: 120px !important; height: 120px !important; } }/* ---------- Неон: вкладки ребёнка — «док» цветных кнопок ---------- */
@media (min-width: 641px) {
  html[data-neon] .hud-in { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand stats" "tabs tabs"; row-gap: 8px; padding-top: 8px; padding-bottom: 10px; }
  html[data-neon] .hud .brand { grid-area: brand; }
  html[data-neon] .hud .stats { grid-area: stats; justify-self: end; }
  html[data-neon] .hud .tabs { grid-area: tabs; justify-content: center; gap: 10px; flex-wrap: wrap; }
  html[data-neon] .hud .tab { padding: 6px 16px 6px 6px; border-radius: 16px; gap: 9px; font: 700 15px var(--head); color: #e6e6ff; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 45%, transparent); transition: transform .12s, box-shadow .15s, background .15s; }
  html[data-neon] .hud .tab span { display: inline !important; }
  html[data-neon] .hud .tab.tab-settings { padding: 6px; }
}
html[data-neon] .hud .tab i { width: 38px; height: 38px; padding: 6px; border-radius: 12px; background: color-mix(in srgb, var(--tc) 22%, #15112f) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 70%, transparent), 0 0 12px color-mix(in srgb, var(--tc) 35%, transparent) !important; }
html[data-neon] .hud .tab:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--tc) 14%, transparent); color: #fff; box-shadow: inset 0 0 0 1.5px var(--tc), 0 0 16px color-mix(in srgb, var(--tc) 45%, transparent); }
html[data-neon] .hud .tab.on { background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 85%, #fff 10%), color-mix(in srgb, var(--tc) 55%, #8a5cff)); color: #120f2a; box-shadow: 0 0 22px color-mix(in srgb, var(--tc) 65%, transparent), 0 4px 0 rgba(0, 0, 0, .35); }
html[data-neon] .hud .tab.on i { background: rgba(255, 255, 255, .35) !important; box-shadow: none !important; }
html[data-neon] .hud .tab.on span { color: #120f2a; }
@media (max-width: 640px) {
  html[data-neon] .hud .tab { color: #cfcff0; box-shadow: none; background: none; }
  html[data-neon] .hud .tab i { width: 34px; height: 34px; padding: 5px; }
  html[data-neon] .hud .tab.on { background: none; box-shadow: none; color: var(--tc); }
  html[data-neon] .hud .tab.on span { color: var(--tc); }
  html[data-neon] .hud .tab.on i { background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 50%, #8a5cff)) !important; box-shadow: 0 0 16px color-mix(in srgb, var(--tc) 70%, transparent) !important; }
}@media (min-width: 641px) and (max-width: 1000px) {
  html[data-neon] .hud .tabs { gap: 6px; }
  html[data-neon] .hud .tab { padding: 4px 11px 4px 4px; font-size: 14px; gap: 7px; }
  html[data-neon] .hud .tab i { width: 32px; height: 32px; padding: 5px; }
}
/* ===== Клавиатурный тренажёр «Гонка на клавиатуре» (typing.js) ===== */
.typing .ty-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ty-kind { border: 2px solid rgba(255,159,63,.45); background: rgba(255,255,255,.06); color: inherit; border-radius: 14px; padding: 8px 16px; font: inherit; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.ty-kind small { font-weight: 600; font-size: 11px; opacity: .75; }
.ty-kind.on { background: linear-gradient(135deg, #ff9f3f, #ff4f8a); color: #1a1030; border-color: transparent; box-shadow: 0 0 18px rgba(255,159,63,.5); }
.ty-menu { text-align: center; }
.ty-menu p { font-size: 18px; max-width: 640px; margin: 8px auto 12px; }
.ty-cars { display: flex; justify-content: center; gap: 18px; }
.ty-cars .pic { width: 56px; height: 56px; }
.ty-rules { text-align: left; max-width: 560px; margin: 0 auto 18px; padding-left: 22px; }
.ty-rules li { margin: 4px 0; }
.btn.big { font-size: 20px; padding: 14px 34px; }
.ty-track { display: grid; gap: 6px; margin-bottom: 12px; }
.ty-lane { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px; }
.ty-ln { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-pic { width: 22px; height: 22px; flex: none; }
.ty-road { position: relative; height: 40px; border-radius: 10px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 18px, transparent 18px 36px) center / 100% 2px no-repeat, rgba(10,8,30,.55); border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.ty-lane.me .ty-road { border-color: #3fe0ff; box-shadow: 0 0 12px rgba(63,224,255,.35); height: 52px; }
.ty-lane.ghost { opacity: .6; }
.ty-flag { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: repeating-conic-gradient(#fff 0 25%, #222 0 50%) 0 0 / 10px 10px; opacity: .8; }
.ty-rider { position: absolute; left: 0; bottom: 3px; width: 56px; transition: left .1s linear; display: flex; flex-direction: column; align-items: center; }
.ty-car { width: 56px; height: 26px; display: block; filter: drop-shadow(0 0 6px rgba(63,224,255,.45)); }
.ty-meava { height: 26px; width: 30px; margin-bottom: -6px; overflow: hidden; display: block; }
.ty-meava .sk-ava { width: 30px !important; height: 30px !important; }
.ty-live { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 16px; margin-bottom: 8px; }
.ty-live b { font-size: 22px; color: #ff9f3f; }
.ty-live .btn { margin-left: auto; }
.ty-box { position: relative; border-radius: 16px; background: rgba(8,6,24,.7); border: 2px solid rgba(255,159,63,.5); padding: 16px 18px; cursor: text; }
.ty-box:focus-within { border-color: #ff9f3f; box-shadow: 0 0 22px rgba(255,159,63,.35); }
.ty-text { font: 600 24px/1.6 ui-monospace, Consolas, "Courier New", monospace; color: #8f8cc0; max-height: 7.2em; overflow: hidden; word-break: break-word; }
.ty-box.code .ty-text { white-space: pre-wrap; font-size: 21px; }
.ty-c.done { color: #3ff0a0; }
.ty-c.cur { color: #1a1030; background: #ffd23f; border-radius: 4px; box-shadow: 0 0 10px #ffd23f; }
.ty-c.cur.sp { background: #ffd23f; }
.ty-c.bad { background: #ff4f8a; box-shadow: 0 0 12px #ff4f8a; color: #fff; }
.ty-c.nl { opacity: .7; font-size: .8em; }
.ty-in { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; resize: none; }
.ty-count { position: absolute; inset: 0; display: grid; place-items: center; font: 900 64px/1 inherit; color: #ffd23f; text-shadow: 0 0 24px #ff9f3f; background: rgba(8,6,24,.75); border-radius: 14px; }
.ty-box.shake { animation: tyShake .25s; }
@keyframes tyShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ty-warn { min-height: 24px; margin: 6px 0; color: #ff9fbf; font-weight: 700; }
.ty-hintrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.ty-finger { color: #ffd23f; font-weight: 700; }
.ty-kb { margin-top: 10px; display: grid; gap: 5px; justify-items: center; user-select: none; }
.ty-kr { display: flex; gap: 5px; }
.ty-kr.r1 { margin-left: 20px; } .ty-kr.r2 { margin-left: 34px; } .ty-kr.r3 { margin-left: 0; }
.ty-k { min-width: 38px; height: 38px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-bottom: 3px solid var(--fc, #666); }
.ty-k.bump { text-decoration: underline; text-underline-offset: 4px; }
.ty-k.wide { min-width: 70px; font-size: 12px; }
.ty-k.space { min-width: 300px; font-size: 12px; }
.ty-k.on { background: var(--fc, #ffd23f); color: #1a1030; box-shadow: 0 0 16px var(--fc, #ffd23f); }
.ty-k.space.on, .ty-k.wide.on { background: #ffd23f; box-shadow: 0 0 16px #ffd23f; }
.ty-res { text-align: center; }
.ty-res-top { display: flex; justify-content: center; gap: 12px; align-items: center; font-size: 26px; margin-bottom: 12px; }
.ty-newrec { background: linear-gradient(135deg, #ffd23f, #ff9f3f); color: #1a1030; border-radius: 999px; padding: 4px 14px; font-size: 16px; font-weight: 900; box-shadow: 0 0 18px #ffd23f; }
.ty-res-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.ty-res-nums div { background: rgba(255,255,255,.06); border-radius: 14px; padding: 12px 6px; }
.ty-res-nums b { display: block; font-size: 30px; color: #ff9f3f; }
.ty-res-nums small { opacity: .8; }
.ty-tip { margin: 8px auto 14px; max-width: 560px; }
.ty-hist { display: flex; flex-wrap: wrap; gap: 8px; }
.ty-hist span { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.ty-hist b { color: #ff9f3f; }
.ty-top table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ty-top td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ty-top td.pl { width: 38px; text-align: center; font-weight: 700; font-size: 17px; }
.ty-top td.cpm { text-align: right; white-space: nowrap; }
.ty-top td.cpm b { color: #ff9f3f; }
.ty-top tr.me td { background: rgba(63,224,255,.12); }
.ty-top tr.gap td { text-align: center; opacity: .5; border: 0; padding: 2px; }
.ty-top tr:last-child td { border-bottom: 0; }
.install-steps { text-align: left; margin: 8px 0 14px; padding-left: 22px; line-height: 1.5; }
.install-steps li { margin: 6px 0; }
.install-box .btn { margin-top: 8px; }
.install-box span { display: block; }
/* Карточка ученика у учителя: имя и данные крупнее (16.11.2026) */
.tc-kid-name { font-size: 34px; font-weight: 900; margin: 6px 0 12px; }
.tc-kid-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tc-kid-info > div { background: #fff; border: 1px solid #dfe5ef; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 2px 6px rgba(20,40,80,.06); }
.tc-kid-info small { color: #6b7894; font-size: 13px; font-weight: 600; }
.tc-kid-info b { font-size: 19px; color: #17233d; line-height: 1.25; }
.tc-mk { margin-bottom: 16px; }
.tc-mk-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
.tc-mk-top h3 { margin: 0; }
.tc-mk-sum { font-size: 16px; }
.tc-mk-sum b { font-size: 18px; }
.tc-mk-sum .warn-t { color: #d9480f; }
.tc-mk-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #eef1f6; }
/* Вкладка «Программы» (ребёнок и учитель) */
.soft-lead { opacity: .85; margin: 0 0 6px; }
.soft-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.soft-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(127,127,160,.3); background: rgba(127,127,160,.08); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.soft-item:hover { border-color: #3fa9ff; transform: translateY(-1px); }
.soft-ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #3fa9ff, #6b5bff); color: #fff; font-size: 20px; font-weight: 900; }
.soft-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.soft-tx small { opacity: .8; line-height: 1.35; }
.soft-tx em { font-style: normal; font-size: 12px; opacity: .65; }
.soft-go { flex: 0 0 auto; font-weight: 800; font-size: 13px; color: #3fa9ff; }
.biz-nav small.soon { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #ffe7b8; color: #8a5a00; font-size: 11px; font-weight: 700; vertical-align: middle; }
.soon-card { text-align: center; padding: 34px 20px; }
.soon-card b { font-size: 18px; }
/* Стикеры на главной ребёнка (16.11.2026) */
.stk-wrap { position: relative; }
/* Слой стикеров — на всю ширину экрана, не только средняя колонка (16.11.2026). */
.stk-layer { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; pointer-events: none; z-index: 6; }
html:has(.stk-layer) { overflow-x: clip; }
.stk { position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1)); line-height: 1; user-select: none; touch-action: none;
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 6px 8px rgba(0,0,0,.4)) drop-shadow(0 0 14px rgba(138,107,255,.35)); }
/* Посимпатичнее: стикер мягко «дышит», надписи — с бликом и объёмом. */
.stk > * { animation: stk-float 4.5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
@keyframes stk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.stk-layer.edit .stk > * { animation: none; }
.stk-layer.edit .stk.sel { z-index: 2; }
.stk-layer.edit .stk:active { filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 14px 14px rgba(0,0,0,.45)); }
.stk .stk-tx { box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.2); text-shadow: 0 2px 0 rgba(0,0,0,.28); }
@media (prefers-reduced-motion: reduce) { .stk > * { animation: none; } }
/* Редкость стикера (16.11.2026): обычный — просто; редкий — блеск; эпический — светится и пульсирует; легендарный — голограмма с сиянием и искрами. */
.sfx { position: relative; display: inline-block; line-height: 1; isolation: isolate; }
.stk-tx { background: var(--c, #8a6bff); }
.sfx-rare .stk-tx, .sfx-epic .stk-tx, .sfx-legend .stk-tx { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,0) 50%), var(--c, #8a6bff); }
.sfx-rare .stk-tx::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); animation: sfx-shine 2.8s ease-in-out infinite; }
@keyframes sfx-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.sfx-rare .stk-em, .sfx-rare .stk-px { filter: saturate(1.3) contrast(1.06) drop-shadow(0 0 6px rgba(63, 224, 255, .7)); }
.sfx-epic > :first-child { animation: sfx-glow 2.2s ease-in-out infinite; }
@keyframes sfx-glow { 0%, 100% { filter: var(--sk-ol) saturate(1.35) contrast(1.08) drop-shadow(0 0 4px #b06bff); } 50% { filter: var(--sk-ol) saturate(1.5) contrast(1.1) brightness(1.06) drop-shadow(0 0 9px #b06bff) drop-shadow(0 0 16px #3fe0ff); } }
.shop-stk .sfx-legend::before { inset: -4%; opacity: .7; }
.sfx-legend::before { content: ''; position: absolute; inset: -6%; border-radius: 50%; z-index: -1; background: conic-gradient(#ff4fd8, #ffd84f, #4fffb0, #4fc3ff, #a66bff, #ff4fd8); filter: blur(9px); opacity: .8; animation: sfx-spin 4s linear infinite; }
@keyframes sfx-spin { to { transform: rotate(360deg); } }
.sfx-legend > :first-child { animation: sfx-holo 3.5s linear infinite; }
@keyframes sfx-holo { 0%, 100% { filter: var(--sk-ol) saturate(1.5) contrast(1.1) drop-shadow(0 0 7px #ffd84f) drop-shadow(0 0 14px #ff4fd8); } 33% { filter: var(--sk-ol) saturate(1.5) contrast(1.1) drop-shadow(0 0 7px #4fffb0) drop-shadow(0 0 14px #4fc3ff); } 66% { filter: var(--sk-ol) saturate(1.5) contrast(1.1) drop-shadow(0 0 7px #a66bff) drop-shadow(0 0 14px #ffd84f); } }
.sfx-sp { position: absolute; font-style: normal; color: #fff; font-size: 16px; text-shadow: 0 0 6px #fff, 0 0 12px #ffd84f; animation: sfx-twinkle 1.8s ease-in-out infinite; pointer-events: none; }
.sfx-sp.a { top: -10%; right: -8%; }
.sfx-sp.b { bottom: -6%; left: -10%; animation-delay: -.6s; font-size: 12px; }
.sfx-sp.c { top: 30%; left: -16%; animation-delay: -1.2s; font-size: 11px; }
@keyframes sfx-twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
.stk-pick .sfx-sp, .stk-pick .sfx-legend::before { display: none; }
.stk-pick .sfx-legend > :first-child { animation-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .sfx-rare .stk-tx::after, .sfx-epic > :first-child, .sfx-legend::before, .sfx-legend > :first-child, .sfx-sp { animation: none; } }
.stk-layer.edit { pointer-events: none; }
.stk-layer.edit .stk { pointer-events: auto; cursor: grab; }
.stk-layer.edit .stk:active { cursor: grabbing; }
.stk-layer.edit .stk.sel { outline: 2px dashed #3fe0ff; outline-offset: 6px; border-radius: 8px; }
.stk-em, .stk-tx { display: inline-block; }
.stk-tx { color: #fff; font-weight: 900; padding: .25em .55em; border-radius: .5em; white-space: nowrap; font-family: system-ui, sans-serif; letter-spacing: .02em; }
.stk-px { display: block; }
.stk-btn { position: absolute; right: 18px; top: 22px; z-index: 7; background: linear-gradient(135deg, #ff4fd8, #8a6bff); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(138,107,255,.45); }
.stk-tray { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(980px, calc(100% - 24px)); z-index: 50; background: rgba(20,14,44,.96); color: #fff; border: 1px solid rgba(63,224,255,.5); border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.stk-tray-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.stk-tray-top small { opacity: .75; flex: 1 1 260px; }
.stk-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.stk-packs { display: flex; gap: 14px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.stk-pack { flex: 0 0 auto; }
.stk-pack small { display: block; opacity: .7; font-size: 12px; margin-bottom: 4px; }
.stk-pack > div { display: flex; gap: 6px; }
.stk-pick { width: 58px; height: 58px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; cursor: pointer; padding: 2px; overflow: hidden; }
.stk-pick:hover { border-color: #3fe0ff; }
.stk-pick .stk-tx { font-size: 10px !important; }
.shop-stk { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 104px; flex-wrap: wrap; }
.shop-stk > span { display: inline-block; transform: rotate(var(--r)); filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.shop-stk .stk-tx { font-size: 13px !important; }
@media (max-width: 600px) { .stk { --s2: .7; } .stk-btn { top: 8px; right: 8px; padding: 6px 10px; font-size: 13px; } }
/* Тетрадь ребёнка */
.nb-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.nb-side { display: flex; flex-direction: column; gap: 10px; }
.nb-pills { margin: 0; flex-wrap: wrap; }
.nb-list { display: flex; flex-direction: column; gap: 8px; max-height: 65vh; overflow-y: auto; }
.nb-item { text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.nb-item:hover { border-color: rgba(63,224,255,.5); }
.nb-item.on { border-color: #3fe0ff; background: rgba(63,224,255,.1); }
.nb-item small { opacity: .6; font-size: 12px; }
.nb-item span { opacity: .75; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-edit { display: flex; flex-direction: column; gap: 10px; }
.nb-title { font: inherit; font-size: 20px; font-weight: 700; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.2); color: inherit; }
.nb-course select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.2); color: inherit; }
.nb-course option { color: #111; }
.nb-text { font: 15px/1.55 ui-monospace, Consolas, monospace; min-height: 50vh; resize: vertical; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: inherit; tab-size: 4; }
.nb-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px; }
.nb-empty i svg { width: 64px; height: 64px; }
@media (max-width: 700px) { .nb-grid { grid-template-columns: 1fr; } .nb-list { max-height: 30vh; } .nb-text { min-height: 40vh; } }
.ty-top-rule { margin: 10px 0 0; font-size: 13px; opacity: .75; }
.ty-prize { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,200,60,.15); border: 1px solid rgba(255,200,60,.5); font-weight: 700; }
/* Стенд скорости: правый нижний угол, у детей и у учителя */
.ty-board { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 250px; max-height: 60vh; overflow: auto; background: rgba(20,15,48,.94); color: #eef0ff; border: 1px solid rgba(255,159,63,.6); border-radius: 16px; box-shadow: 0 0 24px rgba(255,159,63,.3), 0 8px 24px rgba(0,0,0,.35); font-size: 14px; }
.ty-board.min { width: auto; }
.tb-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; font-weight: 900; padding: 10px 12px; cursor: pointer; }
.tb-head span { display: flex; align-items: center; gap: 6px; }
.tb-head .pic { width: 20px; height: 20px; }
.tb-head small { font-weight: 600; opacity: .7; font-size: 11px; }
.ty-board ol { list-style: none; margin: 0; padding: 0 8px 8px; }
.ty-board li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; }
.ty-board li:nth-child(1) .tb-pl { background: #ffd23f; } .ty-board li:nth-child(2) .tb-pl { background: #cfd6e6; } .ty-board li:nth-child(3) .tb-pl { background: #e0a46b; }
.tb-pl { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: rgba(255,255,255,.15); color: #1a1030; }
.ty-board li:nth-child(n+4) .tb-pl { color: #eef0ff; }
.tb-n { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 3px; }
.tb-n u { position: absolute; left: 0; bottom: 0; height: 2px; background: #3ff0a0; border-radius: 2px; transition: width .4s; }
.ty-board li b { color: #ff9f3f; display: flex; align-items: center; gap: 5px; }
.ty-board li.me { background: rgba(63,224,255,.16); outline: 1px solid rgba(63,224,255,.5); }
.tb-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ff0a0; box-shadow: 0 0 8px #3ff0a0; animation: tbPulse 1s infinite alternate; }
@keyframes tbPulse { to { opacity: .3; } }
.tb-empty { display: block !important; opacity: .7; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .tb-dot, .ty-box.shake { animation: none; } .ty-rider { transition: none; } }
@media (max-width: 640px) {
  .ty-lane { grid-template-columns: 1fr; gap: 2px; }
  .ty-road { height: 34px; } .ty-lane.me .ty-road { height: 44px; }
  .ty-text { font-size: 19px; }
  .ty-res-nums { grid-template-columns: repeat(2, 1fr); }
  .ty-kb { display: none; }
  .ty-board { bottom: 84px; right: 8px; width: 200px; font-size: 13px; max-height: 40vh; }
  html[data-mode="biz"] .ty-board { bottom: 10px; }
}
/* Напоминание сменить общий пароль */
.pw-nag { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; border: 1px solid rgba(255,159,63,.6); }
.pw-nag > span .pic { width: 36px; height: 36px; }
.pw-nag > div { flex: 1; display: flex; flex-direction: column; }
.pw-nag small { opacity: .8; }
@media (max-width: 520px) { .pw-nag { flex-wrap: wrap; } .pw-nag .btn { width: 100%; } }
/* Поправки гонки: персонаж целиком над машинкой, стенд не закрывает текст */
.ty-lane.me .ty-road { height: 64px; }
.ty-meava { height: 32px; width: 32px; margin-bottom: -4px; overflow: visible; }
.ty-meava .sk-ava { width: 32px !important; height: 32px !important; }
.tb-head span { white-space: nowrap; }
.tb-head small { white-space: nowrap; }
.ty-board { width: 260px; }
@media (min-width: 641px) and (max-width: 1240px) { body.has-board .wrap.typing { padding-right: 270px; } }
@media (max-width: 640px) { .ty-lane.me .ty-road { height: 54px; } }@media (max-width: 640px) {
  .ty-board { position: static; width: auto; max-height: none; margin: -80px 16px 110px; }
  body.has-board .wrap.typing { padding-bottom: 96px; }
  html[data-mode="biz"] .ty-board { position: fixed; width: 210px; margin: 0; bottom: 10px; right: 8px; max-height: 40vh; }
}
/* Сложность и длина заезда */
.ty-lv { font-size: 9px; letter-spacing: 1px; color: #ffd23f; opacity: .9; }
.ty-kind.on .ty-lv { color: #1a1030; }
.ty-lens { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; font-weight: 700; }
.ty-len { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: inherit; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.ty-len small { font-weight: 600; opacity: .7; }
.ty-len.on { background: #3fe0ff; color: #1a1030; border-color: transparent; box-shadow: 0 0 14px rgba(63,224,255,.5); }
.ty-step { color: #ffd23f; font-weight: 800; margin: 0 0 8px; }
.ty-text { position: relative; scroll-behavior: smooth; }
.ty-progbar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 10px; overflow: hidden; }
.ty-progbar u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3ff0a0, #3fe0ff); transition: width .2s; }.ty-text { max-height: 6.4em; }
/* Три уровня сложности */
.typing .ty-kinds .ty-kind { flex-direction: row; padding: 7px 18px; }
.ty-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.ty-level { border: 2px solid var(--lc); background: rgba(255,255,255,.05); color: inherit; border-radius: 16px; padding: 10px 8px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.ty-level.lv1 { --lc: #3ff0a0; } .ty-level.lv2 { --lc: #ffd23f; } .ty-level.lv3 { --lc: #ff4f8a; }
.ty-level b { font-size: 18px; }
.ty-level small { opacity: .8; font-size: 12px; }
.ty-level .ty-lv { color: var(--lc); font-size: 12px; letter-spacing: 2px; }
.ty-level .ty-rec { color: #ff9f3f; opacity: 1; font-weight: 800; }
.ty-level.on { background: var(--lc); color: #1a1030; box-shadow: 0 0 18px var(--lc); }
.ty-level.on .ty-lv, .ty-level.on .ty-rec { color: #1a1030; }
.ty-box.big .ty-text { font-size: 30px; letter-spacing: 2px; }
@media (max-width: 640px) { .ty-levels { gap: 6px; } .ty-level b { font-size: 15px; } .ty-box.big .ty-text { font-size: 22px; } }
/* Персонажи-картинки владельца (Неоновая, Неоновый) */
.sk-look .sk-in > img.sk-pic { width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 50%; }
.shop-soon { opacity: .85; border-style: dashed !important; }
.shop-soon .shop-pv { display: grid; place-items: center; }
.shop-soon .shop-pv b { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font: 800 46px var(--head); color: #7ff0ff; background: rgba(127, 240, 255, .08); box-shadow: inset 0 0 0 2px rgba(127, 240, 255, .35); }
/* Родитель: какой урок будет на следующем занятии */
.po-next .po-plan { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #d6eedd; display: flex; flex-direction: column; gap: 4px; }
.po-next .po-plan b { font-size: 17px; }
.po-next .po-plan span { font-size: 15px; color: var(--b-ink); line-height: 1.45; }
/* Значок скиллов: монетка с буквой «С» */
.sk-coin { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; vertical-align: middle; font: 800 13px/1 var(--head); color: #5a3a00; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 45%, #f0a500); box-shadow: inset 0 0 0 2px #e09a00, 0 0 8px rgba(255, 200, 60, .45); }
.chip .sk-coin { width: 24px; height: 24px; font-size: 14px; }
.shop-bal b .sk-coin { width: 36px; height: 36px; font-size: 21px; margin-right: 4px; }
.shop-price .sk-coin { width: 20px; height: 20px; font-size: 12px; margin-right: 3px; }
.sk-look .sk-in > img.sk-pic.head { padding: 7%; box-sizing: border-box; object-fit: contain; }
.po-next .po-plan p { margin: 2px 0 4px; font-size: 15px; line-height: 1.5; color: var(--b-ink); }
.po-next .po-plan span b { font-size: 15px; }
.po-stack { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.po-stack .pl-t span { line-height: 1.5; }
@media (max-width: 600px) { .po-stack .pl-item { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 6px; align-items: start; } .po-stack .pl-item > .chip-st { grid-column: 2; justify-self: start; } }

/* Назначенный тест — плитка среди курсов (14.11.2026) */
.world.world-task { position: relative; box-shadow: 0 0 0 2px #ff4f8a, 0 0 18px rgba(255, 79, 138, .55); }
.world-task .wt-new { position: absolute; top: 8px; right: 8px; background: #ff4f8a; color: #fff; font: 800 11px var(--head); padding: 2px 8px; border-radius: 10px; letter-spacing: .3px; animation: wtPulse 1.6s ease-in-out infinite; z-index: 1; }
.world-task small.late { background: rgba(255, 60, 60, .45); }
@keyframes wtPulse { 50% { transform: scale(1.08); box-shadow: 0 0 10px #ff4f8a; } }

/* Мой класс и профиль одноклассника (16.11.2026) */
.cls-hint{margin:-6px 0 14px}
.cls-card{margin-bottom:14px}
.cls-card h3{margin:0 0 12px}
.cls-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.cls-kid{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border-radius:16px;border:2px solid rgba(255,122,217,.35);background:rgba(255,255,255,.04);color:inherit;font:inherit;cursor:pointer;transition:transform .15s,border-color .15s;text-align:center}
.cls-kid:hover,.cls-kid:focus-visible{transform:translateY(-3px);border-color:#ff7ad9}
.cls-ava{display:block;margin-bottom:4px}
.mate-top{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.mate-top .row-btn{margin-top:12px}
.mate-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:18px 0 6px}
.mate-stats>div{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px;border-radius:14px;background:rgba(255,255,255,.05);text-align:center}
.mate-stats i img{width:34px;height:34px}
.mate-stats b{font-size:1.5em}
.mate-h{margin:16px 0 8px}
.mate-stk{display:flex;flex-wrap:wrap;gap:12px}
.mate-stk>span{display:inline-block;transform:rotate(var(--r))}
/* Анимированные стикеры (16.11.2026) */
.sa{display:inline-block}.sa>*{display:inline-block;transform-origin:50% 80%}
.sa-bounce>*{animation:sa-bounce 1.6s ease-in-out infinite}
.sa-sway>*{animation:sa-sway 2.4s ease-in-out infinite}
.sa-swing>*{transform-origin:50% 95%;animation:sa-swing 1.4s ease-in-out infinite}
.sa-shake>*{animation:sa-shake .5s linear infinite}
.sa-wobble>*{animation:sa-wobble 2s ease-in-out infinite}
.sa-beat>*{transform-origin:50% 50%;animation:sa-beat 1.2s ease-in-out infinite}
.sa-boom>*{transform-origin:50% 50%;animation:sa-boom 1.8s ease-in-out infinite}
.sa-spin>*{transform-origin:50% 50%;animation:sa-spin 2.2s linear infinite}
.sa-twirl>*{transform-origin:50% 50%;animation:sa-twirl 1.6s linear infinite}
.sa-flap>*{transform-origin:50% 50%;animation:sa-flap .7s ease-in-out infinite}
.sa-flicker>*{transform-origin:50% 100%;animation:sa-flicker .9s ease-in-out infinite}
.sa-flash>*{animation:sa-flash 1.5s steps(1) infinite}
.sa-fly>*{animation:sa-fly 2.4s ease-in-out infinite}
.sa-rainbow .stk-tx{animation:sa-rainbow 3s linear infinite}
.s67{display:inline-block;font-style:normal;animation:sa-67 .9s ease-in-out infinite}
.s67.dn{animation-delay:-.45s}
@keyframes sa-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-14%)}}
@keyframes sa-sway{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
@keyframes sa-swing{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(18deg)}}
@keyframes sa-shake{0%,100%{transform:translate(0,0) rotate(0)}25%{transform:translate(-3%,1%) rotate(-4deg)}50%{transform:translate(2%,-2%) rotate(3deg)}75%{transform:translate(-2%,2%) rotate(-2deg)}}
@keyframes sa-wobble{0%,100%{transform:rotate(0) scale(1)}25%{transform:rotate(-10deg) scale(1.04)}75%{transform:rotate(10deg) scale(1.04)}}
@keyframes sa-beat{0%,60%,100%{transform:scale(1)}15%{transform:scale(1.16)}30%{transform:scale(1.02)}45%{transform:scale(1.12)}}
@keyframes sa-boom{0%,70%,100%{transform:scale(1)}80%{transform:scale(1.3) rotate(-6deg)}90%{transform:scale(.92) rotate(4deg)}}
@keyframes sa-spin{0%{transform:rotateY(0)}100%{transform:rotateY(360deg)}}
@keyframes sa-twirl{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
@keyframes sa-flap{0%,100%{transform:scaleX(1)}50%{transform:scaleX(.55)}}
@keyframes sa-flicker{0%,100%{transform:scale(1,1)}25%{transform:scale(.94,1.08)}50%{transform:scale(1.05,.95)}75%{transform:scale(.97,1.06)}}
@keyframes sa-flash{0%,100%{opacity:1;filter:none}45%{opacity:1;filter:brightness(1.8) drop-shadow(0 0 8px #fff36b)}55%{opacity:.6}}
@keyframes sa-fly{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(10%,-10%) rotate(-8deg)}}
@keyframes sa-rainbow{0%{filter:hue-rotate(0)}100%{filter:hue-rotate(360deg)}}
@keyframes sa-67{0%,100%{transform:translateY(18%)}50%{transform:translateY(-18%)}}
@media (prefers-reduced-motion:reduce){.sa>*,.sa .stk-tx,.s67{animation:none!important}}
/* Яркие эпические и легендарные стикеры (16.11.2026): белая обводка — на самой картинке, а не на свечении (иначе белая дымка). */
:root { --sk-ol: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.shop-stk > span:has(.sfx-epic, .sfx-legend), .stk:has(.sfx-epic, .sfx-legend), .mate-stk > span:has(.sfx-epic, .sfx-legend) { filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.stk-layer.edit .stk:has(.sfx-epic, .sfx-legend):active { filter: drop-shadow(0 14px 14px rgba(0,0,0,.45)); }
@media (prefers-reduced-motion: reduce) { .sfx-epic > :first-child, .sfx-legend > :first-child { filter: var(--sk-ol) saturate(1.4) contrast(1.08); } }
/* Выбранная вкладка чата в кабинете ребёнка: тёмный текст на жёлтом, чтобы имя было видно (16.11.2026). */
html[data-neon] .chat .dir-pill.on { background: #ffcf33; color: #1b1630; box-shadow: 0 0 0 2px #ffe58a, 0 4px 14px rgba(255, 207, 51, .35); }

/* Личные сообщения: значок непрочитанных, «в сети», список переписок (16.11.2026) */
.tab { position: relative; }
.tab-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff3b5c; color: #fff; font: 800 12px/20px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #15112f, 0 0 10px rgba(255, 59, 92, .7); }
.tab .tab-badge { position: absolute; top: -4px; right: -4px; animation: badge-pop 1.6s ease-in-out infinite; }
.tab-badge[hidden] { display: none; }
@keyframes badge-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.on-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #6b6890; box-shadow: 0 0 0 2px #15112f; flex: none; }
.on-dot.on { background: #2fe07a; box-shadow: 0 0 0 2px #15112f, 0 0 8px #2fe07a; }
.cls-ava, .dm-ava { position: relative; display: inline-block; }
.cls-ava .on-dot, .dm-ava .on-dot { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; box-shadow: 0 0 0 3px #15112f; }
.cls-ava .on-dot.on, .dm-ava .on-dot.on { box-shadow: 0 0 0 3px #15112f, 0 0 10px #2fe07a; }
.on-txt { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--muted); font-weight: 700; }
.on-txt.on { color: #2fe07a; }
.chat-head .on-txt { margin: 2px 0 0; }
.dm-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-bottom: 8px; border-radius: 16px; border: 1.5px solid rgba(255, 177, 61, .25); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dm-row:hover, .dm-row:focus-visible { border-color: #ffb13d; }
.dm-row.new { background: rgba(255, 177, 61, .12); border-color: #ffb13d; }
.dm-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dm-mid small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row.new .dm-mid small { color: #fff; font-weight: 700; }
.dm-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); }

/* Меню ребёнка — панелью слева, сверху вниз (на компьютере, 16.11.2026). На телефоне — как было, внизу. */
@media (min-width: 1001px) {
  html[data-neon] body:has(.hud .tabs) { padding-left: 214px; }
  html[data-neon] .hud-in { grid-template-areas: "brand stats"; }
  html[data-neon] .hud .tabs { position: fixed; left: 0; top: 0; bottom: 0; width: 214px; z-index: 19; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 78px 14px 16px; overflow-y: auto;
    background: rgba(22, 18, 48, .94); box-shadow: 1px 0 0 rgba(63, 224, 255, .35), 6px 0 24px rgba(0, 0, 0, .35); }
  html[data-neon] .hud .tab { width: 100%; justify-content: flex-start; }
  html[data-neon] .hud .tab:hover { transform: translateX(3px); }
  html[data-neon] .hud .tab.tab-settings { padding: 6px 16px 6px 6px; }
  html[data-neon] .hud .brand { position: fixed; left: 14px; top: 10px; z-index: 21; }
  html[data-neon] .hud-in { padding-left: 18px; }
  html[data-neon] .hud .stats { grid-column: 1 / -1; }
  html[data-neon] .hud .tab .tab-badge { position: static; margin-left: auto; }
}
/* Продать стикер-пак */
.btn.shop-sell { background: transparent; color: #ffb13d; box-shadow: inset 0 0 0 1.5px #ffb13d; margin-left: 6px; }
.btn.shop-sell:hover { background: rgba(255, 177, 61, .14); }
@media (min-width: 1001px) { html[data-neon] .hud { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }

/* Неоновые стикеры-картинки (17.11.2026): своя белая обводка уже есть, вокруг — неон, цвет переливается. */
.stk-img { display: block; height: auto; max-width: none; user-select: none; }
.sfx.sfx-neo > :first-child { animation: neo-glow 3.2s linear infinite; }
@keyframes neo-glow {
  0%, 100% { filter: saturate(1.15) contrast(1.05) drop-shadow(0 0 3px #3fe0ff) drop-shadow(0 0 10px #3fe0ff); }
  25% { filter: saturate(1.15) contrast(1.05) drop-shadow(0 0 3px #ff4fd8) drop-shadow(0 0 10px #ff4fd8); }
  50% { filter: saturate(1.15) contrast(1.05) drop-shadow(0 0 3px #b06bff) drop-shadow(0 0 10px #b06bff); }
  75% { filter: saturate(1.15) contrast(1.05) drop-shadow(0 0 3px #ffd84f) drop-shadow(0 0 10px #ffd84f); }
}
.sfx-epic.sfx-neo > :first-child { animation-duration: 2.2s; }
.sfx-legend.sfx-neo > :first-child { animation-duration: 1.8s; }
.shop-stk > span:has(.sfx-neo), .stk:has(.sfx-neo), .mate-stk > span:has(.sfx-neo) { filter: none; }
.stk-layer.edit .stk:has(.sfx-neo):active { filter: drop-shadow(0 14px 14px rgba(0,0,0,.45)); }
.stk-pick .stk-img { width: 46px !important; }
.shop-stk .stk-img { width: 62px !important; }
@media (prefers-reduced-motion: reduce) { .sfx.sfx-neo > :first-child { animation: none; filter: drop-shadow(0 0 6px #3fe0ff); } }/* Паки с карточек: рисунки крупные — в магазине показываем больше. */
.shop-stk:has(> span:nth-child(2):last-child) .stk-img { width: 96px !important; }
.shop-stk:has(> span:only-child) .stk-img { width: 130px !important; }

/* Подпись «Настройки» — только в левой панели; в верхнем и нижнем меню — один значок. */
.hud .tab.tab-settings span { display: none !important; }

/* Левая панель ребёнка как на картинке владельца (17.11.2026): большие неоновые кнопки,
   у каждой свой цвет, значок слева, стрелка » справа; выбранная — ярче и светится. */
@media (min-width: 1001px) {
  html[data-neon] body:has(.hud .tabs) { padding-left: 268px; }
  html[data-neon] .hud .tabs { width: 268px; gap: 12px; padding: 86px 16px 20px 18px;
    background: linear-gradient(180deg, rgba(18, 14, 46, .97), rgba(26, 16, 60, .97));
    box-shadow: 2px 0 0 rgba(63, 224, 255, .55), 0 0 18px rgba(63, 224, 255, .35), 8px 0 30px rgba(0, 0, 0, .45); }
  html[data-neon] .hud .tab, html[data-neon] .hud .tab.tab-settings { position: relative; min-height: 60px; padding: 6px 40px 6px 10px; gap: 12px; border-radius: 18px;
    font: 800 17px var(--head); color: #fff; letter-spacing: .01em;
    background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 34%, #120f2a) 0%, color-mix(in srgb, var(--tc) 14%, #120f2a) 70%, color-mix(in srgb, var(--tc) 8%, #120f2a) 100%);
    box-shadow: inset 0 0 0 2px var(--tc), inset 0 0 18px color-mix(in srgb, var(--tc) 35%, transparent), 0 0 12px color-mix(in srgb, var(--tc) 55%, transparent); }
  html[data-neon] .hud .tab span { display: inline !important; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
  html[data-neon] .hud .tab i { width: 46px; height: 46px; padding: 3px; border-radius: 14px; background: none !important; box-shadow: none !important;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tc) 85%, transparent)); }
  html[data-neon] .hud .tab::after { content: '»'; position: absolute; right: 14px; top: 50%; transform: translateY(-54%); font: 900 26px/1 system-ui, sans-serif; color: var(--tc); opacity: .55; }
  html[data-neon] .hud .tab:hover { transform: translateX(4px); background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 45%, #120f2a), color-mix(in srgb, var(--tc) 20%, #120f2a)); box-shadow: inset 0 0 0 2px var(--tc), inset 0 0 22px color-mix(in srgb, var(--tc) 45%, transparent), 0 0 20px color-mix(in srgb, var(--tc) 70%, transparent); }
  html[data-neon] .hud .tab.on { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 70%, #120f2a), color-mix(in srgb, var(--tc) 38%, #120f2a));
    box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--tc) 60%, #fff), inset 0 0 26px color-mix(in srgb, var(--tc) 55%, transparent), 0 0 26px var(--tc), 0 0 46px color-mix(in srgb, var(--tc) 45%, transparent); }
  html[data-neon] .hud .tab.on span { color: #fff; }
  html[data-neon] .hud .tab.on i { background: none !important; box-shadow: none !important; filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 4px var(--tc)); }
  html[data-neon] .hud .tab.on::after { opacity: 1; color: #fff; text-shadow: 0 0 8px var(--tc); }
  html[data-neon] .hud .tab .tab-badge { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); margin: 0; animation: none; }
  html[data-neon] .hud .brand img { width: 64px; height: 64px; }
  html[data-neon] .hud .brand b { font-size: 22px; }
}
/* Логин в «Логины и пароли» — можно поправить прямо в таблице (17.11.2026). */
.lg-in { width: 100%; min-width: 120px; max-width: 220px; padding: 5px 8px; border: 1.5px solid transparent; border-radius: 8px; background: #f2f6fc; font: 600 14px ui-monospace, Consolas, monospace; color: #1b2a44; }
.lg-in:hover { border-color: #c9d8ee; }
.lg-in:focus { border-color: #4d7cff; background: #fff; outline: none; }
@media print { .lg-in { border: 0; background: none; padding: 0; } }

/* Мой профиль (17.11.2026) */
.my-prof { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; border: 1.5px solid rgba(180, 92, 255, .45); box-shadow: 0 0 18px rgba(180, 92, 255, .2); }
.my-prof-mid { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.my-prof-mid b { font-size: 1.15em; }
.pf-mood { font-size: 1.3em; vertical-align: middle; }
.cls-mood { position: absolute; left: -2px; top: -4px; font-style: normal; font-size: 22px; filter: drop-shadow(0 0 4px rgba(0,0,0,.6)); }
.pf-form h3 { margin: 18px 0 8px; }
.pf-form textarea, .pf-form input[type="text"] { width: 100%; max-width: 560px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(140, 120, 255, .45); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; resize: vertical; }
.pf-form textarea:focus, .pf-form input[type="text"]:focus { outline: none; border-color: #3fe0ff; box-shadow: 0 0 12px rgba(63, 224, 255, .35); }
.pf-form small.muted { display: block; margin-top: 4px; }
.pf-moods { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-mood-btn { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; border: 1.5px solid rgba(140, 120, 255, .35); background: rgba(255, 255, 255, .05); cursor: pointer; transition: transform .12s; }
.pf-mood-btn:hover { transform: translateY(-2px); }
.pf-mood-btn.on { border-color: #ffd23f; background: rgba(255, 210, 63, .18); box-shadow: 0 0 14px rgba(255, 210, 63, .5); }
.pf-favs { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-show { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-stk { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid rgba(140, 120, 255, .3); background: rgba(255, 255, 255, .04); cursor: pointer; padding: 4px; overflow: hidden; }
.pf-stk .stk-img { width: 70px !important; }
.pf-stk.on { border-color: #3fe0ff; background: rgba(63, 224, 255, .14); box-shadow: 0 0 14px rgba(63, 224, 255, .45); }
.pf-about { margin: 8px 0 0; font-style: italic; max-width: 460px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-chips span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(140, 120, 255, .4); font-size: 14px; font-weight: 700; }
/* «Программы» и «Настройки» — маленькие иконки внизу левой панели (17.11.2026). */
@media (min-width: 1001px) {
  html[data-neon] .hud .tabs { padding-bottom: 96px; }
  html[data-neon] .hud .tab.tab-soft, html[data-neon] .hud .tab.tab-settings { position: fixed; bottom: 18px; width: 58px; height: 58px; min-height: 0; padding: 0; justify-content: center; border-radius: 16px; z-index: 20; }
  html[data-neon] .hud .tab.tab-soft { left: 18px; }
  html[data-neon] .hud .tab.tab-settings { left: 88px; }
  html[data-neon] .hud .tab.tab-soft span, html[data-neon] .hud .tab.tab-settings span { display: none !important; }
  html[data-neon] .hud .tab.tab-soft::after, html[data-neon] .hud .tab.tab-settings::after { display: none; }
  html[data-neon] .hud .tab.tab-soft i, html[data-neon] .hud .tab.tab-settings i { width: 40px; height: 40px; }
  html[data-neon] .hud .tab.tab-soft:hover, html[data-neon] .hud .tab.tab-settings:hover { transform: translateY(-3px); }
}
/* «Сообщения»: чат группы и личные переписки в одном списке (17.11.2026) */
.dm-sec { margin: 6px 0 10px; font-size: 16px; opacity: .9; }
.dm-sec:not(:first-child) { margin-top: 18px; }
.grp-ava { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(63, 169, 255, .18); box-shadow: inset 0 0 0 2px rgba(63, 169, 255, .6); }
.grp-ava img { width: 32px; height: 32px; }
.dm-row.grp { border-color: rgba(63, 169, 255, .35); }
.dm-back { margin-bottom: 6px; }

/* Стикеры по бокам профиля (17.11.2026) */
.pf-wrap { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; gap: 10px; align-items: start; }
.pf-mid { min-width: 0; }
.pf-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 8px; }
.pf-side > span { display: inline-block; transform: rotate(var(--r)); }
.pf-side .stk-img { width: 92px !important; }
.pf-stk { position: relative; }
.pf-side-tag { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 10px; font-weight: 800; color: #071b2b; background: #3fe0ff; padding: 1px 0; text-align: center; }
@media (max-width: 700px) {
  .pf-wrap { grid-template-columns: 1fr; }
  .pf-side { flex-direction: row; justify-content: center; flex-wrap: wrap; padding-top: 0; }
  .pf-side-r { order: 3; }
  .pf-side .stk-img { width: 64px !important; }
}
/* Подсветка рамок стикер-паков (17.11.2026): радужный неон бежит по рамке, рамка мягко светится. */
@property --pk-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.shop-item.shop-pack { border-color: transparent !important; animation: pk-glow 3s ease-in-out infinite; }
.shop-item.shop-pack::before { content: ''; position: absolute; inset: -3px; border-radius: 16px; padding: 3px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--pk-a), #ff3fd8, #b45cff, #3fe0ff, #8fe03a, #ffd23f, #ff9a2e, #ff3fd8);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pk-spin 3.5s linear infinite; }
@keyframes pk-spin { to { --pk-a: 360deg; } }
@keyframes pk-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 63, 216, .55), 0 0 26px rgba(180, 92, 255, .35); }
  33% { box-shadow: 0 0 12px rgba(63, 224, 255, .6), 0 0 26px rgba(63, 224, 255, .3); }
  66% { box-shadow: 0 0 12px rgba(255, 210, 63, .55), 0 0 26px rgba(143, 224, 58, .3); }
}
@media (prefers-reduced-motion: reduce) { .shop-item.shop-pack, .shop-item.shop-pack::before { animation: none; } }

/* Детский магазин «Неоновая аркада». */
html[data-neon] .shop-arcade .shop-hero,
html[data-neon] .stk-wrap .hero-main:has(.hero-me) {
  background: radial-gradient(ellipse at 10% 90%, #273b73, transparent 62%),
    radial-gradient(ellipse at 96% 0%, #57285c, transparent 60%), #1a1736;
  border-color: #6857a7;
}
.shop-arcade .shop-me { gap: 18px; }
.shop-arcade details.shop-how { display: block; }
.shop-arcade .shop-how summary { cursor: pointer; font-weight: 800; }
.shop-arcade .shop-how p { margin: 8px 0 0; }
.shop-arcade .shop-me .sk-look { box-shadow: 0 0 26px #4adcff55; }
.shop-arcade .shop-try { border: 1px solid #5d8db8; color: #c5f4ff; background: #243c60; }
.shop-arcade .shop-pack {
  animation: none;
  box-shadow: 0 0 18px #8d63ff35;
}
.shop-arcade .shop-pack::before { animation: none; }
.shop-arcade .shop-item.locked .shop-pv { filter: none; opacity: 1; }
.shop-arcade .shop-pack .shop-stk {
  background: radial-gradient(ellipse at center, #6749c15c, transparent 73%);
  padding: 8px 2px;
}
.shop-arcade .shop-pack .shop-stk > span { filter: drop-shadow(0 0 5px #b4b1ff66); }
.shop-arcade .shop-pack .shop-stk .sa,
.shop-arcade .shop-pack .shop-stk .sfx { animation: none; }
.shop-pack-count { color: #bcb5ff; font-size: 12px; }
.arcade-compare { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 16px 0; }
.arcade-compare > div { display: grid; justify-items: center; gap: 8px; }
.arcade-compare > div:last-child .sk-look { box-shadow: 0 0 20px #4adcff66; }
@media (min-width: 1001px) {
  html[data-neon] .hud .tabs {
    background: radial-gradient(ellipse at 0 0, #30224f, transparent 54%), #14132c;
    box-shadow: inset -1px 0 #6857a7, 6px 0 24px #0004;
  }
  html[data-neon] .hud .tab {
    flex-shrink: 0;
    text-align: left;
    background: #201d3c;
    box-shadow: inset 0 0 0 1px #b1a4ff2b;
  }
  html[data-neon] .hud .tab.on {
    color: #fff;
    background: linear-gradient(105deg, color-mix(in srgb, var(--tc) 26%, #211c3d), #241a44);
    box-shadow: inset 3px 0 var(--tc), inset 0 0 0 1px color-mix(in srgb, var(--tc) 50%, transparent);
  }
  html[data-neon] .hud .tab.on span { color: #fff; }
}
html[data-neon] .hud .tab:focus-visible { outline: 2px solid #b7f3ff; outline-offset: 2px; }
@media (max-width: 400px) {
  .arcade-compare .sk-look { width: 106px !important; height: 106px !important; }
}

.admin-menu-toggle, .admin-quick, .admin-kpi-toggle, .admin-client-list, .admin-client-summary { display: none; }
@media (max-width: 700px) {
  .biz-admin .biz-side {
    position: sticky; top: 0; z-index: 15;
    padding: max(8px, env(safe-area-inset-top)) 12px 6px;
    background: #fff; column-gap: 10px;
  }
  .biz-admin .biz-brand { min-width: 0; }
  .biz-admin .admin-menu-toggle {
    display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
    padding: 0 12px; border-radius: 10px; color: #17458b; background: #edf4ff; font-weight: 700;
  }
  .biz-admin .biz-menu, .biz-admin .biz-user { display: none; }
  .biz-admin .admin-menu-open .biz-menu {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    order: 4; width: 100%; max-height: 48vh; overflow: auto; padding: 4px 0;
  }
  .biz-admin .admin-menu-open .biz-menu .biz-nav { min-height: 44px; justify-content: flex-start; white-space: normal; }
  .biz-admin .admin-menu-open .biz-user { display: flex; order: 5; width: 100%; }
  .biz-admin .biz-user .biz-link { min-height: 44px; }
  .biz-admin .admin-quick { order: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .biz-admin .admin-quick button {
    grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px;
    padding: 4px; border: 1px solid #e1e8f2; border-radius: 10px; color: #43536a; background: #f7f9fc; font-size: 12px; font-weight: 700;
  }
  .biz-admin .admin-quick button:nth-child(n+4) { grid-column: span 3; }
  .biz-admin .admin-quick svg { flex: 0 0 16px; width: 16px; height: 16px; }
  .biz-admin .admin-quick [aria-current='page'] { background: #e6efff; color: #17458b; }
  .biz-admin .biz-main { padding-bottom: max(60px, env(safe-area-inset-bottom)); }
  .biz-admin .st-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .biz-admin .st-tools .st-search { width: 100%; min-height: 44px; }
  .biz-admin .admin-kpi-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; margin-bottom: 10px; border-radius: 9px; background: #e8f0fd; color: #17458b; font-weight: 700; }
  .biz-admin .admin-kpi-toggle[aria-expanded='false'] + #admin-kpi { display: none; }
  .biz-admin .btn, .biz-admin .seg-b { min-height: 44px; }
  .biz-admin .hw-row > label, .biz-admin .hw-form input, .biz-admin .hw-form select, .biz-admin .hw-form textarea { min-width: 0; max-width: 100%; }
  .biz-admin .admin-client-table { display: none; }
  .biz-admin .admin-client-list { display: grid; gap: 8px; }
  .biz-admin .admin-client {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px;
    padding: 10px 12px; border: 1px solid #dfe7f2; border-radius: 12px;
    background: #fff; color: #18263b; text-align: left;
  }
  .biz-admin .admin-client[hidden] { display: none; }
  .biz-admin .admin-client > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .biz-admin .admin-client small { display: block; margin-top: 3px; color: #52647b; }
  .biz-admin .admin-client-arrow { color: #1d55a6; font-size: 24px; }
  .biz-admin .admin-client-summary { display: block; margin-bottom: 12px; }
  .biz-admin .admin-client-summary dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 12px; margin: 0 0 12px; }
  .biz-admin .admin-client-summary dt { color: #52647b; }
  .biz-admin .admin-client-summary dd { margin: 0; overflow-wrap: anywhere; }
}

.schedule-days { display: none; }
.biz-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; gap: 7px;
  min-height: 40px; padding: 0 10px; margin: 0 0 10px; border: 1px solid var(--b-line); border-radius: 10px;
  background: var(--b-soft); color: var(--b-ink); font: 750 13px var(--body); white-space: nowrap;
}
.biz-theme-toggle i {
  position: relative; flex: none; width: 28px; height: 16px; border: 1px solid #64748b; border-radius: 999px;
  background: #64748b;
}
.biz-theme-toggle i::before {
  content: ''; position: absolute; inset: 2px auto auto 2px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; transition: transform .15s ease;
}
.biz-theme-toggle[aria-checked="true"] { border-color: #3fe0ff; color: #c8fbff; }
.biz-theme-toggle[aria-checked="true"] i { border-color: #63e6ff; background: #266db5; }
.biz-theme-toggle[aria-checked="true"] i::before { transform: translateX(12px); }
@media (prefers-reduced-motion: reduce) { .biz-theme-toggle i::before { transition: none; } }
.biz-theme-toggle:focus-visible { outline: 2px solid var(--b-accent); outline-offset: 2px; }
@media (max-width: 700px) {
  .biz-theme-toggle { margin: 0; min-height: 44px; align-self: center; }
  .biz-side:has(.biz-theme-toggle) .biz-brand { min-width: 0; }
  .biz-side:has(.biz-theme-toggle) > .biz-user { margin-left: auto; }
}

html[data-biz-neon] .biz {
  --b-ink: #eef0ff; --b-muted: #bab6dc; --b-accent: #76edff; --b-line: #63558c;
  --b-soft: #201b3c; --b-panel: #211b43; --b-raised: #302851; --b-active: #263d60;
}
html[data-biz-neon] .biz-side { color: var(--b-ink); background: #191532; border-color: var(--b-line); box-shadow: 2px 0 16px #0a081c8a; }
html[data-biz-neon] .biz :is(.biz-brand, .biz-dirs, .biz-user) { border-color: var(--b-line); }
html[data-biz-neon] .biz :is(.biz-link, .biz-back) { color: var(--b-accent); }
html[data-biz-neon] .biz :is(.biz-nav, .biz-dir, .biz-user b) { color: var(--b-ink); }
html[data-biz-neon] .biz :is(.biz-dirs small, .biz-user small) { color: var(--b-muted); }
html[data-biz-neon] .biz :is(.biz-nav:hover, .biz-dir:hover, .biz-nav em) { background: var(--b-raised); color: var(--b-ink); }
html[data-biz-neon] .biz :is(.biz-nav.on, .biz-dir.on, .biz-dirname, .admin-menu-toggle, .admin-quick [aria-current='page'], .admin-kpi-toggle) {
  background: var(--b-active); color: #b9f7ff; border-color: #5596bc;
}
html[data-biz-neon] .biz .biz-nav.on { box-shadow: inset 3px 0 var(--b-accent); }
html[data-biz-neon] .biz .biz-nav.on em { background: #3fe0ff; color: #10102a; }
html[data-biz-neon] .biz .card { background: linear-gradient(155deg, #27204d, #1c1837); color: var(--b-ink); border-color: var(--b-line); }
html[data-biz-neon] .biz .btn { --c: var(--b-soft); --t: var(--b-ink); }
html[data-biz-neon] .biz .btn.go { --c: linear-gradient(90deg, #3fe0ff, #8a5cff); --t: #10102a; border-color: #3fe0ff; }
html[data-biz-neon] .biz .btn.red { --t: #ff9cae; border-color: #986079; }
html[data-biz-neon] .biz .btn.ok { --t: #9df0bc; border-color: #477361; }
html[data-biz-neon] .biz :is(input:not([type=checkbox], [type=radio]), select, textarea) { background: #18142f; color: var(--b-ink); border-color: var(--b-line); }
html[data-biz-neon] .biz :is(input, select, textarea):focus { outline-color: #76edff; }
html[data-biz-neon] .biz :is(.flt, .dir-pills, .mo-tabs, .mo-tab, .st-view, .view-pills, .admin-quick button, .admin-client, .st-mv) {
  background: var(--b-soft); color: var(--b-ink); border-color: var(--b-line);
}
html[data-biz-neon] .biz :is(.flt.on, .dir-pill.on, .mo-tab.on, .st-view.on, .view-pills button.on, .admin-quick [aria-current='page']) {
  background: var(--b-active); color: #b9f7ff; border-color: #5596bc;
}
html[data-biz-neon] .biz :is(.admin-client small, .admin-client-summary dt, .sum-num small, .ach-tile small, .ach-unit, .ach-bar small) { color: var(--b-muted); }
html[data-biz-neon] .biz :is(.st-range, .pl-t span, .po-row .po-d, .wk-topic) { color: var(--b-muted); }
html[data-biz-neon] .biz :is(input, textarea)::placeholder { color: #a9a3c8; }
html[data-biz-neon] .biz :is(.admin-client-arrow, .wk-day > b button, .pl-d) { color: var(--b-accent); }
html[data-biz-neon] .biz :is(.ach-tile, .po-plan, .po-strip, .wk-day, .wk-ev, .cal-d, .cal-w, .schedule-days button, .msg, .dm-row) {
  background: var(--b-panel); color: var(--b-ink); border-color: var(--b-line);
}
html[data-biz-neon] .biz :is(.wk-day.today, .cal-d.today, .schedule-days button[aria-pressed='true'], .msg.mine, .dm-row.new) { background: var(--b-active); }
html[data-biz-neon] .biz :is(.wk-day > b, .wk-ev small, .cal-n, .ach-tile b, .ach-h, .ach-v, .po-next-big span, .po-next .po-plan span, .parent-makeup h2, .parent-makeup small) { color: var(--b-ink); }
html[data-biz-neon] .biz :is(.t th, .jr-table thead th, .jr-table thead .jr-name, .jr-table thead .jr-n, .jr-table .jr-topic) { background: var(--b-raised) !important; color: var(--b-ink); }
html[data-biz-neon] .biz :is(.t tr:hover td, .t tr:nth-child(even) td, .jr-table .jr-name, .jr-table .jr-n, .jr-cell.out, .jr-sk) { background: var(--b-soft); }
html[data-biz-neon] #st-table tbody tr.st-row:nth-child(even) td { background: #241e49; }
html[data-biz-neon] #st-table tbody tr.st-row:hover td { background: var(--b-active); }
html[data-biz-neon] .biz :is(.sh-table td.sh-who, .sh-table .sh-who, .shp-table, .sh-long .shp-who) { background: var(--b-panel); color: var(--b-ink); }
html[data-biz-neon] .biz :is(.shp-table thead tr:first-child th, .shp-table .shp-dates th, .shp-c.on > button, .shp-c.on > div) { background: var(--b-raised); color: var(--b-ink); }
html[data-biz-neon] .biz :is(.shp-table td, .shp-table th) { border-color: var(--b-line); }
html[data-biz-neon] .biz :is(.sh-table th.we span, .sh-table th.we b, .shp-c i) { color: var(--b-accent); }
html[data-biz-neon] .biz :is(.shp-c small, .cal-todo-box b) { color: #ffd49d; }
html[data-biz-neon] .biz :is(.st-in.saved, .jr-sk input.saved, .jr-topic input.saved) { background: #173d33; color: #c8ffde; }
html[data-biz-neon] .biz :is(.st-in.err, .jr-sk input.err, .jr-topic input.err) { background: #48243b; color: #ffd9e0; }
html[data-biz-neon] .biz :is(.jr-table, .jr-pop, .wk-day > b button) { background: var(--b-panel); color: var(--b-ink); }
html[data-biz-neon] .biz :is(.jr-table td, .jr-table th) { border-color: var(--b-line); }
html[data-biz-neon] .biz :is(.jr-table .jr-n, .jr-table thead th.fut, .jr-sum small, .jr-opt, .msg-h b) { color: var(--b-ink); }
html[data-biz-neon] .biz .jr-opt:is(:hover, .cur) { background: var(--b-active); }
html[data-biz-neon] .biz .jr-c:not(.present, .absent, .makeup) { color: var(--b-muted); }
html[data-biz-neon] :is(.sheet, .explain) { background: #241d47; color: #eef0ff; }
html[data-biz-neon] .biz .course-tile {
  background: linear-gradient(155deg, #29214d, #1c1837); color: var(--b-ink); border-color: var(--b-line);
}
html[data-biz-neon] .biz .course-tile:is(:hover, :focus-visible, .on) { border-color: var(--b-accent); box-shadow: 0 0 0 1px #76edff66; }
html[data-biz-neon] .biz .course-tile i { display: grid; place-items: center; border-radius: 9px; background: #8a5cff2b; }
html[data-biz-neon] .biz .course-tile i .pic { width: 28px; height: 28px; }
html[data-biz-neon] .biz .pg-row.on { border-color: var(--b-accent); }
html[data-biz-neon] .biz .pg-no { background: var(--b-active); color: #cbf9ff; }
html[data-biz-neon] .biz .pg-row details.lp summary { color: var(--b-accent); }
html[data-biz-neon] .biz .lp-list .chip-st.ok { background: #173d33; color: #c8ffde; }
@media screen {
  html[data-biz-neon] .biz code.cred { background: #15122c; color: #e7faff; box-shadow: inset 0 0 0 1px #63558c; }
  html[data-biz-neon] .biz code.cred.new { background: #173d33; color: #c8ffde; box-shadow: inset 0 0 0 1px #538d74; }
  html[data-biz-neon] .biz .lg-in:focus { border-color: var(--b-accent); }
}
html[data-biz-neon] .biz :is(.mo-tile, .mo-rent > div) {
  background: var(--b-panel); color: var(--b-ink); border-color: var(--b-line);
}
html[data-biz-neon] .biz .mo-tile.in { border-top-color: #79e5a9; }
html[data-biz-neon] .biz :is(.mo-tile.out, .mo-tile.minus) { border-top-color: #ff8d9f; }
html[data-biz-neon] .biz .mo-tile.plus { border-top-color: var(--b-accent); }
html[data-biz-neon] .biz :is(.mo-tile.in b, .mo-p) { color: #a2f3c4; }
html[data-biz-neon] .biz :is(.mo-tile.out b, .mo-tile.minus b, .mo-m) { color: #ffabb9; }
html[data-biz-neon] .biz .mo-tile.plus b { color: #aff4ff; }
html[data-biz-neon] .biz .mo-col.cur { background: var(--b-active); }
html[data-biz-neon] .biz .mo-rent .mo-rate { flex-wrap: wrap; }
@media (max-width: 600px) {
  html[data-biz-neon] .biz table.t.mcards tr { background: var(--b-panel); border-color: var(--b-line) !important; }
  html[data-biz-neon] .biz table.t.mcards td { border-bottom-color: var(--b-line) !important; }
  html[data-biz-neon] .biz table.t.mcards td::before { color: var(--b-muted); }
}

.gate-logo.brand-wordmark { width: min(520px, 92vw); height: auto; }
.hud .hud-in .brand img.brand-wordmark { width: min(220px, 30vw); height: auto; }
.hud .brand:has(.brand-wordmark), .biz-brand:has(.brand-wordmark) { min-height: 44px; }
.hud .brand:hover img.brand-wordmark { transform: scale(1.025); }
.biz-brand:has(.brand-wordmark) { text-align: left; align-self: stretch; }
.biz-brand img.brand-wordmark { width: 100%; height: auto; }
button.logout-btn { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0; }
button.logout-btn svg { display: block; }
#app:has(> .hud .brand-wordmark),
.biz:has(.biz-brand .brand-wordmark) > .biz-main {
  position: relative;
  box-sizing: border-box;
  padding-bottom: calc(min(var(--footer-wordmark-width, 440px), 100vw - 32px) * 199 / 720 + 28px);
}
#app:has(> .hud .brand-wordmark) { min-height: 100dvh; }
#app:has(> .hud .brand-wordmark)::after,
.biz:has(.biz-brand .brand-wordmark) > .biz-main::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: max(4px, env(safe-area-inset-bottom));
  width: min(var(--footer-wordmark-width, 440px), calc(100% - 32px));
  aspect-ratio: 720 / 199;
  background: url("../img/skill-kids-wordmark.png") center / contain no-repeat;
  pointer-events: none;
}
.biz:has(.biz-brand .brand-wordmark) > .biz-main {
  --footer-wordmark-width: 374px;
}
@media (min-width: 1001px) {
  html[data-neon] .hud .hud-in .brand img.brand-wordmark { width: 236px; }
  html[data-neon] #app { --footer-wordmark-width: 472px; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  #app:has(> .hud .brand-wordmark) { --footer-wordmark-width: min(440px, 60vw); }
}
@media (max-width: 700px) {
  .biz-brand:has(.brand-wordmark) { min-width: 0; }
}
@media (max-width: 640px) {
  .hud .hud-in:has(.brand-wordmark) { flex-wrap: wrap; }
  .hud .brand:has(.brand-wordmark) { flex: 1 0 100%; justify-content: center; }
  .hud .hud-in .brand img.brand-wordmark { width: min(100%, 360px); }
}
.wrap.profile-page { max-width: none; }
.profile-center { width: min(100%, 660px); margin-inline: auto; }
.profile-desk {
  position: relative; display: grid; place-items: center; box-sizing: border-box;
  min-height: clamp(390px, 62vh, 640px); padding: 72px 12px; margin-bottom: 16px; overflow: hidden;
  border: 1px solid #8a75ea47; border-radius: 20px;
  background: radial-gradient(ellipse at center, #291e53a3, #16142d96 72%);
}
.profile-desk .profile-center { min-width: 0; }
.profile-desk .mate-card { margin: 0; }
.profile-desk .profile-stickers { inset: 0; width: 100%; }
.profile-stickers button.stk { display: block; padding: 0; border: 0; background: transparent; }
.profile-editor-tools { width: min(100%, 660px); margin: 0 auto 12px; }
.profile-editor-tools > p { margin: 0 0 6px; }
.profile-editor-tools .row-btn { margin-top: 8px; }
.profile-editor-tools .stk-packs { max-height: 110px; }
.profile-page .mate-card .row-btn { flex-wrap: wrap; }
@media (max-width: 600px) {
  .profile-desk { padding: 64px 10px; }
  .profile-desk .mate-top { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .admin-schedule { display: flex; flex-direction: column; }
  .admin-schedule .cs-tabs { order: -3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .admin-schedule .cs-tabs .mo-tab { min-height: 44px; padding: 6px; white-space: normal; font-size: 12px; }
  .admin-schedule > .plan-sum.week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-schedule > .plan-sum .sum-num { min-width: 0; padding: 8px 5px; font-size: 18px; }
  .admin-schedule > .plan-sum .sum-num small { font-size: 11px; }
  .admin-schedule > .cal { order: -1; padding: 10px; margin-bottom: 10px; }
  .admin-schedule .cal-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; }
  .admin-schedule .cal-head > b { min-width: 0; font-size: 15px; }
  .admin-schedule .cal-head > .btn:nth-child(4), .admin-schedule .cal-head > .btn.go, .admin-schedule .cal-head > .view-pills { grid-column: 1 / -1; margin-left: 0; }
  .admin-schedule .cal-head > .view-pills { display: flex; }
  .admin-schedule .view-pills button { min-height: 44px; flex: 1; }
  .admin-schedule .schedule-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
  .admin-schedule .schedule-days button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 56px; padding: 2px; border: 1px solid #dce5f1; border-radius: 8px; background: #f7f9fc; color: #334155; }
  .admin-schedule .schedule-days button[aria-pressed='true'] { border-color: #2563eb; background: #e9f1ff; color: #17458b; }
  .admin-schedule .schedule-days i { width: 5px; height: 5px; border-radius: 50%; }
  .admin-schedule .schedule-days .has-lessons { background: #2563eb; }
  .admin-schedule .schedule-week .wk { display: block; overflow: visible; }
  .admin-schedule .schedule-week .wk-day { display: none; min-height: 0; }
  .admin-schedule .schedule-week .wk-day.schedule-selected { display: flex; }
  .admin-schedule .wk-day > b > button { min-width: 44px; min-height: 44px; border-radius: 9px; background: #e6eeff; }
  .admin-schedule .wk-ev, .admin-schedule .cal-agenda .cal-ev { min-height: 54px; padding: 9px 10px; font-size: 14px; overflow-wrap: anywhere; }
  .admin-schedule .lesson-card { order: -2; scroll-margin-top: 170px; }
  .admin-schedule .lesson-card .hw-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-schedule .lesson-card .hw-row label { min-width: 0; }
  .admin-schedule .lesson-card .row-btn { flex-wrap: wrap; }
  .admin-schedule .lesson-card .row-btn .btn.go { flex: 1 0 100%; }
}
