/* «Лесная школа» — связка: рамка тренажёров Совы и Кукушки, стена подписки, экраны связки в оболочке (18.11.2026). Все классы — с приставкой ls- / lw-. */

/* ---------- рамка тренажёров: шапка и подвал сайтов Совы и Кукушки спрятаны, сверху — полоса школы ---------- */
html.ls-embed header.wrap.top, html.ls-embed footer.wrap.foot,
html.ls-embed header.sitebar, html.ls-embed footer.appfoot { display: none !important; }
.ls-bar { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #1f8f5f; color: #fff; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top));
  font: 700 16px/1.2 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; box-shadow: 0 3px 0 #166b47; }
.ls-bar a { color: #fff; text-decoration: none; }
.ls-brand { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 18px; margin-right: auto; }
.ls-brand img { background: #fff; border-radius: 50%; padding: 2px; }
.ls-subj { background: rgba(255,255,255,.18); border-radius: 99px; padding: 4px 10px; font-size: 15px; }
.ls-kid { font-size: 15px; opacity: .95; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-kid:empty { display: none; }
.ls-ac { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #27304a; border-radius: 99px; padding: 3px 10px 3px 6px; font-weight: 900; }
.ls-ac.pop { animation: lsPop .6s ease; }
.ls-acorn { width: 22px; height: 22px; vertical-align: middle; }
.ls-btn { display: inline-flex; align-items: center; gap: 4px; background: #ffc83d; color: #3b2a06 !important; border-radius: 14px; padding: 7px 12px;
  font-weight: 900; box-shadow: 0 3px 0 #d9a21d; text-decoration: none; white-space: nowrap; }
@keyframes lsPop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (max-width: 420px) { .ls-brand span { display: none; } .ls-subj { display: none; } .ls-bar { gap: 6px; } }

.ls-toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 1000; background: #27304a; color: #fff; border-radius: 16px;
  padding: 10px 16px; font: 800 17px/1.3 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.2); max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 6px; transition: opacity .5s, transform .5s; }
.ls-toast.out { opacity: 0; transform: translate(-50%, -12px); }
.ls-done { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 950; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; background: #fff; color: #27304a; border: 3px solid #1f8f5f; border-radius: 20px; padding: 12px 14px; max-width: 640px; margin: 0 auto;
  font: 700 17px/1.3 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: lsUp .4s ease; }
.ls-done span { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; }
@keyframes lsUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
html.ls-embed .sova-x, html.ls-embed .cookie-note, html.ls-embed .ck-note, html.ls-embed .kcookie { display: none !important; }   /* Метрики Совы и Кукушки в школе нет — и уведомления о её cookie тоже */

/* ---------- стена подписки (в тренажёрах — вместо их тарифов; в оболочке — после бесплатного) ---------- */
.ls-wall { background: #f1f8ec; border: 3px solid #1f8f5f; border-radius: 20px; padding: 16px; margin: 14px 0; color: #27304a; text-align: left;
  font: 600 16px/1.45 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; }
.ls-wall p { margin: 8px 0; }
.lw-h { font-weight: 900; font-size: 20px; }
.lw-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.lw-plan { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 2px solid #1f8f5f; border-radius: 16px; padding: 10px 6px;
  text-decoration: none !important; color: #27304a !important; box-shadow: 0 3px 0 #166b47; }
.lw-plan b { font-size: 16px; font-weight: 800; }
.lw-plan span { font-size: 19px; font-weight: 900; color: #1f8f5f; white-space: nowrap; }
.lw-small, .ls-wall .lw-small { font-size: 14px; color: #646d8a; }
.lw-small a, .ls-adult a { color: #1f8f5f; font-weight: 800; }
@media (max-width: 380px) { .lw-plans { grid-template-columns: 1fr; } .lw-plan { flex-direction: row; justify-content: space-between; padding: 10px 14px; } }
.ls-stena h1 { margin: 6px 0; }
.ls-adult { background: #f6efe2; border-radius: 18px; padding: 12px 14px; margin: 12px 0; text-align: left; }
.ls-adult p { margin: 6px 0; }

/* ---------- оболочка ---------- */
.ls-status { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.ls-st { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 14px; background: #f6efe2; font-size: 16px; }
.ls-st.on { background: #dff5e6; }
.ls-st span:last-child { font-weight: 800; }
.ls-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; }
@media (min-width: 700px) { .ls-tiles { grid-template-columns: repeat(4, 1fr); } }
.ls-tiles div { background: #f6efe2; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; }
.ls-tiles b { font-size: 24px; font-weight: 900; }
.ls-tiles span { font-size: 14px; color: var(--muted, #646d8a); }
.ls-log { list-style: none; padding: 0; margin: 8px 0; font-size: 15px; }
.ls-log li { padding: 6px 0; border-bottom: 1px dashed #eadfca; }
.ls-win h2 { margin-top: 8px; }
.onb-login { display: block; margin-top: 8px; font-weight: 800; color: #1f8f5f; }

/* ---------- 17.11.2026, разбор маркетолога: одно приложение и единая стена ---------- */
/* «Чтение»: звёзды и яйцо совёнка — внутри тренажёра, ребёнок видит жёлуди школы и общего питомца */
html.ls-read #petCard, html.ls-read #lvName, html.ls-read #donePet { display: none !important; }
.ls-me { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font: 800 16px/1.3 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; color: #27304a; text-decoration: none; }
.ls-me .ls-acorn { width: 20px; height: 20px; }
@media (max-width: 420px) { .ls-brand span { display: inline; font-size: 15px; } .ls-kid { display: none; } }
/* стена: что сделано → что повторить → что откроется → тарифы */
.lw-sec { margin: 10px 0; }
.lw-sec > b { display: block; font-weight: 900; font-size: 16px; margin-bottom: 2px; }
.lw-sec ul { margin: 0; padding-left: 20px; }
.lw-sec li { margin: 3px 0; }
.lw-plans { grid-template-columns: 1fr; }
.lw-plan { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; padding: 12px 14px; text-align: left; }
.lw-plan b { font-size: 17px; }
.lw-plan span { justify-self: end; font-size: 21px; }
.lw-plan small { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: #646d8a; line-height: 1.35; }
.lw-plan.best { border-color: #d9a21d; box-shadow: 0 3px 0 #d9a21d; background: #fffbea; }
.lw-tag { position: absolute; top: -11px; right: 12px; background: #ffc83d; color: #3b2a06; font-style: normal; font-weight: 900; font-size: 13px; border-radius: 99px; padding: 2px 10px; }
@media (min-width: 760px) { .lw-plans { grid-template-columns: repeat(3, 1fr); } .lw-plan { grid-template-columns: 1fr; } .lw-plan span { justify-self: start; } }
@media (max-width: 380px) { .lw-plan { flex-direction: unset; display: grid; } }
.ls-adult .ls-wall { background: transparent; border: 0; padding: 0; margin: 6px 0 0; }
.ls-adult .for-parent { background: #ffc83d; color: #3b2a06; display: inline-block; border-radius: 99px; padding: 3px 12px; font-weight: 900; font-size: 14px; margin-bottom: 6px; }
.day-sum > b { display: block; font-size: 18px; font-weight: 900; }
.ls-stena .si-hero .hero.big { width: 110px; height: 110px; }
.ls-stena .bubble { font-size: 17px; }
.ls-bar { flex-wrap: nowrap; }
.ls-brand { flex: 1; min-width: 0; }
.ls-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 420px) { .ls-brand img { width: 26px; height: 26px; } .ls-btn { padding: 6px 9px; } }
@media (max-width: 420px) { .ls-bar { padding-left: 10px; padding-right: 10px; } .ls-brand span { font-size: 14px; } .ls-btn { font-size: 14px; } .ls-ac { padding: 2px 8px 2px 5px; } }

/* Н15 (19.11.2026): узкие экраны в рамках тренажёров — без прокрутки вбок */
@media (max-width:360px){ html,body{overflow-x:hidden} }
@supports (overflow:clip){ @media (max-width:360px){ html,body{overflow-x:clip} } }   /* 19.11.2026: clip не ломает «липкие» кнопки */

/* ===== одна экосистема (19.11.2026): внутри чтения и счёта — без «второго мира» Совы и Кукушки ===== */
html.ls-embed .siteNav, html.ls-embed .wrap.foot, html.ls-embed .foot-links { display: none !important; }
html.ls-k-read #streak { display: none !important; }
html.ls-k-math #app > .top, html.ls-k-math .kscene, html.ls-k-math .kwallet, html.ls-k-math .carerow, html.ls-k-math .plan.card,
html.ls-k-math [data-go="nest"], html.ls-k-math .ghead2 > button.ghost { display: none !important; }
.ls-nav { display: none; }
html.ls-shelf .ls-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; justify-content: space-around; background: #fff; border-top: 2px solid #f1e6d2;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); font: 800 13px/1.15 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; }
html.ls-shelf .ls-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; color: #6b7280; text-decoration: none; padding: 4px 0; border-radius: 14px; min-height: 48px; justify-content: center; }
html.ls-shelf .ls-nav a span { font-size: 24px; line-height: 1.1; }
html.ls-shelf .ls-nav a.on { color: #166b47; background: #e3f3e8; }
html.ls-shelf body { padding-bottom: 84px; }

.ls-adult a.btn{color:#fff}
.ls-nomic{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:950;display:block;text-align:center;background:#ffc83d;color:#3b2a06!important;padding:12px;border-radius:16px;font-weight:900;text-decoration:none;box-shadow:0 4px 0 #d9a21d}

/* Both legacy trainers now read as stations of the same premium forest. */
html.ls-embed{--ls-night:#082f32;--ls-pine:#126f55;--ls-pine-dk:#09483b;--ls-gold:#f3bd50;--ls-paper:#fffdf8;--ls-ink:#17332f;background:#dfe9e0}
html.ls-embed body{min-height:100vh;color:var(--ls-ink)!important;background:radial-gradient(circle at 78% 5%,rgba(243,189,80,.18),transparent 22%),radial-gradient(circle at 10% 40%,rgba(35,131,99,.14),transparent 28%),linear-gradient(145deg,#e7eee5,#f3eee2)!important;background-attachment:fixed!important}
html.ls-embed body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M12 68c16-30 39-43 67-49M25 79c14-25 32-38 52-45' fill='none' stroke='%23126755' stroke-width='.7' stroke-linecap='round'/%3E%3C/svg%3E")}
.ls-bar{min-height:62px;padding:10px clamp(12px,3vw,30px);background:rgba(31,27,69,.94);backdrop-filter:blur(18px);box-shadow:0 1px 0 rgba(255,255,255,.12),0 12px 32px rgba(31,27,69,.2);border:0}.ls-brand{font-size:19px;letter-spacing:-.02em}.ls-brand img{width:34px!important;height:34px!important;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);padding:4px;box-shadow:0 6px 14px rgba(0,0,0,.18)}.ls-subj{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);padding:6px 12px}.ls-ac{background:#f7f2e7;color:var(--ls-ink);box-shadow:0 5px 14px rgba(0,0,0,.14)}.ls-btn{min-height:40px;padding:8px 15px;border-radius:13px;background:linear-gradient(180deg,#ffd46f,#f3bd50);box-shadow:0 4px 0 #a96c18,0 9px 18px rgba(0,0,0,.16)}
html.ls-embed main.wrap,html.ls-embed #app{position:relative;z-index:1}html.ls-read main.wrap{max-width:1020px!important;padding-top:18px!important}
html.ls-read main.wrap>section,html.ls-read main.wrap>.card,html.ls-read .start,html.ls-read .train,html.ls-read .result,html.ls-k-math .kent,html.ls-k-math .kentin,html.ls-k-math .card:not(.ls-wall){background:rgba(255,253,248,.94)!important;border:1px solid rgba(15,76,62,.12)!important;border-radius:28px!important;box-shadow:0 24px 60px rgba(9,55,47,.14),inset 0 1px rgba(255,255,255,.8)!important}
html.ls-read h1,html.ls-read h2,html.ls-read h3,html.ls-k-math h1,html.ls-k-math h2,html.ls-k-math h3{color:var(--ls-ink)!important;letter-spacing:-.035em!important}html.ls-read h1,html.ls-k-math .kent h1{font-size:clamp(34px,5vw,50px)!important;line-height:1.04!important}
html.ls-read .btn,html.ls-read button.primary,html.ls-k-math .btn{border-radius:15px!important;border:0!important;background:linear-gradient(180deg,#238f6c,#126f55)!important;color:#fff!important;box-shadow:0 5px 0 var(--ls-pine-dk),0 12px 24px rgba(12,85,63,.16)!important;font-weight:900!important;transition:transform .16s ease,filter .16s ease!important}html.ls-read .btn:hover,html.ls-read button.primary:hover,html.ls-k-math .btn:hover{transform:translateY(-2px);filter:saturate(1.06)}
html.ls-read .btn.brass,html.ls-k-math .btn.brass,html.ls-k-math .grades button.on{background:linear-gradient(180deg,#ffd46f,#f3bd50)!important;color:#3a2b0f!important;box-shadow:0 5px 0 #b47619,0 12px 24px rgba(93,61,10,.14)!important}
html.ls-read input,html.ls-read select,html.ls-k-math input,html.ls-k-math select{border:2px solid #d7dfd6!important;border-radius:14px!important;background:#fff!important;color:var(--ls-ink)!important;box-shadow:inset 0 2px 4px rgba(10,55,46,.04)!important}
html.ls-read .mikr,html.ls-k-math .mikr{background:linear-gradient(145deg,#edf3ef,#e6edf6)!important;border:1px solid #cbdad2!important;border-radius:20px!important;box-shadow:none!important}html.ls-k-math .kent{max-width:620px!important;margin:40px auto!important;padding:34px!important}html.ls-k-math .kent>svg,html.ls-k-math .kent>.egg{filter:drop-shadow(0 16px 15px rgba(43,82,65,.14))}
html.ls-k-math .grades{gap:12px!important}html.ls-k-math .grades button{border:1px solid rgba(15,76,62,.13)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 0 #d7dfd6!important}.ls-wall{background:linear-gradient(145deg,#eef6ec,#f8f4e8);border:1px solid rgba(18,111,85,.28);border-radius:22px;box-shadow:0 14px 32px rgba(10,70,54,.1)}.lw-plan{border:1px solid rgba(18,111,85,.22);box-shadow:0 7px 18px rgba(9,67,52,.08);border-radius:17px}.lw-plan.best{background:#fff9e8;border-color:#dfaa35}.ls-toast{background:rgba(31,27,69,.94);backdrop-filter:blur(14px)}
html.ls-shelf .ls-nav{background:rgba(255,253,248,.94);backdrop-filter:blur(18px);border-color:rgba(15,76,62,.12);box-shadow:0 -12px 30px rgba(9,55,47,.1)}html.ls-shelf .ls-nav a.on{background:linear-gradient(145deg,#e7e1ff,#cfc5f7);color:#342a82}html.ls-embed *:focus-visible{outline:4px solid rgba(243,189,80,.72)!important;outline-offset:3px!important}
@media(max-width:600px){.ls-bar{min-height:54px}.ls-subj{display:none}html.ls-k-math .kent{margin:18px 12px!important;padding:24px 16px!important;border-radius:22px!important}html.ls-read main.wrap{padding:12px!important}}

/* 22.11.2026 (П9-6): шапка рамок (.ls-bar), всплывашка (.ls-toast) и выбранный пункт меню (.ls-nav a.on) выше перекрашены как в приложении — header.top и .nav a.on из experience-theme.css */
/* 22.11.2026 (П3-доп-1, П3-1, П3-4): одна экосистема в «Счёте» — без гнезда, яйца, зёрнышек, очков роста, значков и событий Кукушки (страховка к проверкам в самом тренажёре) */
html.ls-k-math #gonest, html.ls-k-math .eggwarm, html.ls-k-math .res.r5, html.ls-k-math .res.r6, html.ls-k-math .newmedals, html.ls-k-math .evbanner, html.ls-k-math .award { display: none !important; }
html.ls-k-math .ls-res-ac { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 2px; font: 900 30px/1.2 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; color: #8a5530; }
html.ls-k-math .ls-res-ac .ls-acorn { width: 36px; height: 36px; object-fit: contain; vertical-align: -7px; }
/* 22.11.2026: итог игры в школе — без карточек зёрнышек/роста; оставшиеся карточки по центру (одна «верных ответов» или 4 в спринте) */
html.ls-k-math .resgrid:not(.chkres) { display: flex !important; flex-wrap: wrap; justify-content: center; margin-left: auto; margin-right: auto; }
html.ls-k-math .resgrid:not(.chkres) > .res { flex: 0 1 calc((100% - 24px) / 3); min-width: 0; box-sizing: border-box; }
@media (max-width: 420px) { html.ls-k-math .resgrid:not(.chkres) > .res { flex-basis: calc((100% - 12px) / 2); } }
/* 22.11.2026 (П3-2): «Чтение» — на полке вместо наград Совы ссылка на награды школы */
html.ls-k-read #awards > :not(.ls-aw) { display: none !important; }
.ls-aw { margin: 0; font: 800 17px/1.4 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; color: var(--ls-ink, #27304a); }
.ls-aw a { color: #342a82; text-decoration: underline; }

/* 22.11.2026: в школе награды Совы после серии не показываем — награды в «🏆 Награды» */
html.ls-k-read #doneAwards { display: none !important; }

/* 22.11.2026 (математика, B9): «Мини-урок ещё не пройден — сыграй ещё раз» — спокойная песочная плашка, не «победа» */
.ls-done.ls-retry { background: #fff6e0; border-color: #d9a21d; color: #3b2a06; }
.ls-done.ls-retry > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.ls-done.ls-retry small { font-size: 15px; font-weight: 700; color: #6b5420; }
.ls-retry-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ls-retry .ls-btn { min-height: 44px; border: 0; cursor: pointer; font: inherit; font-weight: 900; }
.ls-retry .ls-btn.ls-ghost { background: #fff !important; box-shadow: 0 3px 0 #d9c79a, 0 6px 14px rgba(0,0,0,.08) !important; }
@media (max-width: 420px) { .ls-retry-btns { width: 100%; } .ls-retry-btns .ls-btn { flex: 1 1 0; justify-content: center; } }

/* 22.11.2026 (математика, B8): «Ещё темы счёта — в школе» на экране игр «Счёта» */
.ls-mtopics { margin: 14px 0; padding: 16px; box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere; }
.ls-mtopics h2 { margin: 0 0 4px; font-size: 20px; }
.ls-mt-sub { margin: 0 0 10px; font: 600 15px/1.4 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; color: #646d8a; }
.ls-mt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.ls-mt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; box-sizing: border-box; min-width: 0;
  background: #fff; border: 1px solid rgba(15,76,62,.14); border-radius: 16px; box-shadow: 0 4px 0 #d7dfd6;
  color: var(--ls-ink, #27304a) !important; text-decoration: none !important; font: 800 16px/1.3 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; }
.ls-mt i { font-style: normal; flex: none; }
.ls-mt span { flex: 1; min-width: 0; }
.ls-mt b { flex: none; color: #126f55; }
.ls-mt:active { transform: translateY(2px); box-shadow: 0 2px 0 #d7dfd6; }

/* 22.11.2026: плашка «Мини-урок пройден / ещё не пройден» не закрывает кнопки итога — под ней место для прокрутки */
body:has(.ls-done) { padding-bottom: 140px; }

/* 22.11.2026: «Найди на слух» и другие игры с вариантами-словами — длинные слова («полмешка», «похлёбка») не вылезают за кнопку: не больше двух-трёх колонок, перенос вместо выхода за край */
html.ls-k-read .mg-opts:not(.two) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)) !important; }
html.ls-k-read .mg-opt { min-width: 0; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; line-height: 1.15; }
html.ls-k-read .mg-opts.two .mg-opt { font-size: clamp(18px, 4.6vw, 26px); }
/* 23.11.2026 (чтение — единое со школой): подпись станции над чтением, игрой и итогом у совёнка (sova-js/train.js, stHead) и итог игры без микрофона */
html.ls-k-read .ls-st-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #eef7f1; border: 1px solid #cfe5d8; color: #0f4c3e; }
html.ls-k-read .ls-st-head[hidden] { display: none; }
html.ls-k-read .ls-st-head span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
html.ls-k-read .ls-st-head b { font-size: 18px; overflow-wrap: anywhere; }
html.ls-k-read .ls-st-head small { flex-basis: 100%; font-size: 14px; opacity: .85; }
html.ls-k-read .ls-gdone .row button { min-height: 44px; }
/* 23.11.2026: итог игры совёнка с плохим результатом — без зелёной плитки (sova-js/train.js, mgFinLook) */
html.ls-k-read .mg-fin.ls-mg-bad .mg-tile { background: #fff6e0; border-color: #e2c27a; }

/* 25.11.2026 (этап 15): стишки и пересказ без микрофона — короткая надпись ребёнку; «Выйти» не ломается на две строки */
.ls-nomic { font: 700 18px/1.35 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; color: #3a2f1f; background: #fff6d6; border: 2px solid #f2d27a; border-radius: 14px; padding: 10px 12px; margin: 6px 0 8px; }
.poem-run #px, .poem-run #rx { white-space: nowrap; flex: none; }
/* 25.11.2026 (этап 15): итог «Счёта» — одна кнопка «🌲 На тропу» (та, что в итоге); незажжённые звёзды — явно пустые */
html.ls-resview .ls-bar .ls-back { display: none; }
.bigstars .off { color: #cbb58e; text-shadow: none; }
/* 25.11.2026 (этап 15): «Чтение с совёнком» в школе — без 🦊-героя Совы (герой ребёнка — питомец школы); без микрофона — крупная надпись ребёнку и кнопка сразу под ней */
html.ls-k-read #meAvatar, html.ls-k-read .me-chip { display: none !important; }
html.ls-k-read .ls-kid-nomic { display: block; font-size: 20px; line-height: 1.3; color: #3a2f1f; background: #fff6d6; border: 2px solid #f2d27a; border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-weight: 800; }
html.ls-k-read #startBox #btnSkip { display: block; width: 100%; margin: 6px 0 4px; font-size: 19px; }
html.ls-k-read #startBox #btnSkip.hidden { display: none; }
html.ls-k-read .ls-mic-help { margin: 6px 0 10px; font-size: 15px; color: #5a5040; }
html.ls-k-read .ls-mic-help summary { cursor: pointer; text-decoration: underline; color: #2a6b4a; font-weight: 700; }
html.ls-k-read .ls-mic-help p { margin: 6px 0 0; }
/* 25.11.2026 (этап 15): шапка тренажёров на телефоне — «Лесная школа · Счёт» целиком: имя ребёнка прячем, кнопка поменьше */
@media (max-width: 430px) {
  .ls-bar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .ls-bar .ls-kid { display: none; }
  .ls-brand { font-size: 16px; gap: 4px; }
  .ls-bar .ls-back { font-size: 14px; padding: 6px 9px; }
}

/* 25.11.2026 (этап 17): без микрофона — проверка. Стишок: «Какое слово пропущено?» (пропуск в тексте и 3 варианта);
   пересказ: «Расставь события по порядку» (карточки с номером). Надпись ребёнку — в потоке страницы, не плашкой поверх. */
p.ls-nomic, .poem-run .ls-nomic { position: static; box-shadow: none; text-align: left; }
.rtext .ls-gap { display: inline-block; min-width: 3.2em; border-bottom: 3px dashed #d9a21d; color: #b07a1f; font-weight: 900; }
.rtext .ls-gap.now { background: #fff1c2; border-radius: 8px 8px 0 0; border-bottom-style: solid; }
.ls-gapq { display: grid; gap: 8px; margin: 4px 0 10px; }
.ls-gapq > b { font-size: 18px; }
.ls-gapch { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-gapch .btn { min-height: 48px; font-size: 19px; flex: 1 1 30%; }
.ls-gapnote { font-weight: 800; color: #9a4a12; background: #fff1e6; border: 2px solid #f3c79f; border-radius: 12px; padding: 8px 10px; }
.ls-evs { display: grid; gap: 8px; margin: 4px 0 10px; width: 100%; }
.ls-ev { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; min-height: 52px; padding: 10px 12px; border-radius: 14px; border: 2px solid #e2cfa6; background: #fffaf0; font: 600 16px/1.35 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif; color: #3a2f1f; cursor: pointer; }
.ls-ev i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f2d27a; color: #3b2a06; font-style: normal; font-weight: 900; display: grid; place-items: center; }
.ls-ev.got { border-color: var(--ok, #2a9d6a); background: var(--ok-soft, #e3f6e9); }
.ls-ev.got i { background: var(--ok, #2a9d6a); color: #fff; }
.ls-nm-note { font-weight: 800; color: #6b4a12; }

/* ===== 25.11.2026 (этап 18, ревью дизайнера, п. 4 «один стиль»): Счёт и Чтение выглядят как школа =====
   фон — как в школе (тёплый, без «линейки» и точек); шапка — тёмная, как header.top школы, жёлуди и «← Учиться» — светлыми плашками, как в шапке школы;
   меню «Сегодня / Учиться / Рюкзак / Питомец» — на телефоне внизу, на компьютере под шапкой (как в школе); шрифт текста книги — Nunito, как везде */
html.ls-embed body{background:radial-gradient(circle at 10% 12%,rgba(247,170,129,.25),transparent 24%),radial-gradient(circle at 90% 25%,rgba(101,143,224,.22),transparent 27%),linear-gradient(180deg,#fbf6f0,#eeeaf8 56%,#fff1e5)!important;background-attachment:fixed!important}
html.ls-embed body:before{content:none!important;display:none!important}
.ls-bar{background:rgba(31,27,69,.94)}
.ls-brand img{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;filter:drop-shadow(0 5px 7px rgba(0,0,0,.25))}
.ls-bar .ls-ac{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.14);box-shadow:none;padding:4px 12px 4px 8px;font-size:17px}
.ls-bar .ls-back{background:rgba(255,255,255,.12)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22);box-shadow:none!important;border-radius:999px;min-height:40px;font-weight:800}
.ls-bar .ls-back:hover{background:rgba(255,255,255,.2)!important}
@media (min-width:860px){
  html.ls-shelf .ls-nav{position:sticky;top:62px;bottom:auto;left:auto;right:auto;max-width:720px;margin:10px auto 0;border:1px solid rgba(16,71,57,.1);border-radius:18px;padding:4px;z-index:880}
  html.ls-shelf .ls-nav a{flex-direction:row;gap:6px;font-size:16px;min-height:44px}
  html.ls-shelf .ls-nav a span{font-size:20px}
  html.ls-shelf body{padding-bottom:24px}
}
/* «Счёт»: значки тем вместо цветных кружков */
.ls-mi{flex:none;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;font-style:normal;font-weight:900;font-size:17px;line-height:1}
.ls-mi.learn{background:#fff3cf;color:#d99a12}
.ls-mi.repeat{background:#e7e1ff;color:#4a3fae}
.ls-mi.gap{background:#ffe1d6;color:#b3401e}
.ls-mi.none{display:none}

/* «Чтение с совёнком»: совёнок на экране, обложка крупно, одна строка над текстом, текст страницами, кнопка «читает вслух» — внизу экрана */
html.ls-k-read{--read:'Nunito','Segoe UI',Roboto,Arial,sans-serif}
html.ls-k-read #awards{display:none!important}
.ls-owl,.ls-owl-say{display:none}
html.ls-k-read .me{align-items:center;flex-wrap:nowrap}
html.ls-k-read .ls-owl{display:block;width:96px;height:96px;object-fit:contain;flex:none;filter:drop-shadow(0 8px 10px rgba(25,45,75,.25))}
html.ls-k-read .me-info{min-width:0}
html.ls-k-read .goal{background:linear-gradient(145deg,#6b5fd0,#4a3fae)!important;box-shadow:0 14px 30px rgba(59,50,139,.25)}
html.ls-k-read .ls-goalbook{display:flex;align-items:center;gap:14px;margin:10px 0 4px}
html.ls-k-read .ls-goalbook .cover.big{width:96px;height:96px;font-size:58px;margin:0;border-radius:18px;box-shadow:0 6px 0 rgba(0,0,0,.15)}
html.ls-k-read .ls-goalbook .goal-book{margin:0;display:grid;gap:2px;color:#fff}
html.ls-k-read .ls-goalbook .goal-book b{font-size:21px;line-height:1.2}
html.ls-k-read .ls-goalbook .goal-book small{font-size:16px;font-weight:700;opacity:.9}
html.ls-k-read .ls-owl-say{display:flex;align-items:center;gap:10px;width:100%}
html.ls-k-read .ls-owl-say[hidden]{display:none}   /* 26.11.2026 (этап 20, дизайнер п.72): совёнок молчит, если сказать нечего */
html.ls-k-read .ls-owl-say img{width:72px;height:72px;object-fit:contain;flex:none;filter:drop-shadow(0 6px 8px rgba(25,45,75,.25))}
html.ls-k-read .ls-owl-say .call-kid{position:relative;margin:0;background:#fff;border:2px solid #e3dcf7;border-radius:18px;padding:8px 14px;font-weight:800;font-size:18px;line-height:1.3;color:#20213e;box-shadow:0 4px 12px rgba(59,50,139,.1)}
html.ls-k-read .ls-owl-say .call-kid:before{content:"";position:absolute;left:-9px;top:50%;margin-top:-8px;border:8px solid transparent;border-right-color:#e3dcf7;border-left:0}
html.ls-k-read .mic-note{display:none!important}
html.ls-k-read .read-tools{justify-content:flex-end;gap:10px;margin:6px 0}
html.ls-k-read .ls-tips-b{width:36px;height:36px;border-radius:50%;border:2px solid #d8d0f3;background:#fff;color:#4a3fae;font:900 18px/1 'Nunito','Segoe UI',Roboto,Arial,sans-serif;cursor:pointer;padding:0}
html.ls-k-read .ls-tips{margin:0 0 8px;padding:8px 12px;border-radius:14px;background:#fff;border:1px solid #e3dcf7;font-size:15px;line-height:1.5;color:#3a3a55}
html.ls-k-read .reading{background-image:none!important;font-size:clamp(22px,5.2vw,28px);line-height:1.65}
html.ls-k-read .reading .ls-pg p.cont{text-indent:0}
html.ls-k-read .reading .ls-pg{animation:lsPg .25s ease}
@keyframes lsPg{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
html.ls-k-read .ls-pgnav{display:flex;align-items:center;justify-content:center;gap:18px;margin:10px 0 6px;font:800 16px/1 'Nunito','Segoe UI',Roboto,Arial,sans-serif;color:#6c6b7c}
html.ls-k-read .ls-pgnav[hidden]{display:none}
html.ls-k-read .ls-pgnav button{width:60px;height:56px;border-radius:18px;border:0;background:#fff;color:#4a3fae;font:900 34px/1 'Nunito','Segoe UI',Roboto,Arial,sans-serif;box-shadow:0 5px 0 #d8d0f3,0 8px 16px rgba(59,50,139,.12);cursor:pointer;padding:0 0 4px}
html.ls-k-read .ls-pgnav button:disabled{opacity:.35;box-shadow:none;cursor:default}
html.ls-k-read #viewRead #btnStart,html.ls-k-read #viewRead #btnFinish{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:860;max-width:560px;margin:0 auto;
  min-height:60px;font-size:21px;border-radius:20px;box-shadow:0 6px 0 rgba(0,0,0,.18),0 12px 28px rgba(31,27,69,.25)}
html.ls-k-read #viewRead{padding-bottom:96px}
@media (max-width:520px){
  html.ls-k-read .ls-owl{width:72px;height:72px}
  html.ls-k-read .ls-goalbook .cover.big{width:80px;height:80px;font-size:48px}
  html.ls-k-read .ls-owl-say img{width:60px;height:60px}
  html.ls-k-read .ls-owl-say .call-kid{font-size:17px}
}

/* ===== 26.11.2026 (этап 19, дизайнер п.74): на телефоне в шапке — «Чтение» / «Счёт» целиком, без «Лесная школа ·» ===== */
.ls-bn{font-style:normal}
@media (max-width:520px){ .ls-bn{display:none} .ls-brand span{overflow:visible} }
/* 26.11.2026 (этап 19, дизайнер «кнопки»): главная кнопка в Счёте и Чтении — зелёная, как .btn в школе (не жёлтая и не синяя) */
html.ls-k-math .btn.brass,html.ls-k-math .today .btn,html.ls-k-read .btn-main,html.ls-k-read button.btn-main,.ls-done .ls-btn:not(.ls-ghost),.ls-nomic.ls-btn{
  background:linear-gradient(180deg,#238f6c,#126f55)!important;color:#fff!important;box-shadow:0 5px 0 #09483b,0 10px 20px rgba(12,85,64,.18)!important;border:0!important}
html.ls-k-math .btn.ghost{background:#fff!important;color:#126f55!important;border:2px solid #cfe5d8!important;box-shadow:0 4px 0 #cfe5d8!important}
/* 26.11.2026 (этап 19, дизайнер п.2.5): конфетти — за карточкой итога, не поверх текста */
html.ls-k-math .rain,html.ls-k-read .confetti{z-index:0!important}
html.ls-k-math .card.result,html.ls-k-read #viewDone .panel{position:relative;z-index:1}
html.ls-k-math .ls-snappet svg{width:140px;height:140px;display:block;margin:0 auto}
.ls-mt-t{display:block;font-size:13px;font-weight:600;color:#646d8a;margin-top:1px}
/* ===== 26.11.2026 (этап 19, дизайнер п.2.14, п.77–80, новые п.16): «Чтение с совёнком» ===== */
html.ls-k-read .reading .w.ls-gl{text-decoration:underline dotted #7a5cf0;text-decoration-thickness:3px;text-underline-offset:5px;cursor:help}
html.ls-k-read .reading .w.ls-gl{background:#f1ecff;border-radius:6px;box-shadow:0 0 0 2px #f1ecff}
html.ls-k-read #btnSkip[data-notlast="1"]{display:none!important}
html.ls-k-read #viewRead > #btnSkip{display:block;width:100%;max-width:560px;margin:8px auto;font-size:19px;min-height:52px}
html.ls-k-read #viewRead > #btnSkip.hidden{display:none}
html.ls-k-read .ls-tips-adult{display:block;font-size:13px;color:#5a5040}
html.ls-k-read .ls-pgnav button{width:76px!important;height:66px!important;font-size:46px!important;border:2px solid #d8d0f3!important;display:grid!important;place-items:center;padding:0 0 6px!important;line-height:1!important;text-align:center}
html.ls-k-read .ls-pgnav button:disabled{opacity:.5!important;background:#f3f0fb!important}
html.ls-k-read .ls-pgnav span{font-size:18px}
html.ls-k-read #viewRead #btnStart,html.ls-k-read #viewRead #btnFinish{width:auto!important;box-sizing:border-box;max-width:min(560px,calc(100vw - 24px))!important;white-space:normal;overflow:hidden;text-overflow:ellipsis}
html.ls-k-read .ls-quiz-owl{display:flex;align-items:center;gap:12px;margin:6px 0 10px}
html.ls-k-read .ls-quiz-owl img{width:72px;height:72px;object-fit:contain;flex:none;filter:drop-shadow(0 6px 8px rgba(25,45,75,.25))}
html.ls-k-read .ls-quiz-owl h2{margin:0;background:#fff;border:2px solid #e3dcf7;border-radius:18px;padding:10px 14px;position:relative}
html.ls-k-read .ls-done-pic{display:inline-flex;align-items:flex-end;gap:6px}
html.ls-k-read .ls-done-pic img{width:110px;height:110px;object-fit:contain;filter:drop-shadow(0 8px 10px rgba(25,45,75,.25))}
html.ls-k-read .ls-done-pet svg{width:96px;height:96px;display:block}
html.ls-k-read #doneStreak:empty{display:none}
html.ls-k-read .cover .ls-cover-hero{width:84%;height:84%;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.2))}
html.ls-k-math .today .tgo{background:linear-gradient(180deg,#238f6c,#126f55)!important;color:#fff!important;box-shadow:0 4px 0 #09483b!important;border:0!important}

/* 26.11.2026 (этап 20, дизайнер п.75): ответ на вопрос по тексту — плашкой, как в школе (.qfb) */
html.ls-k-read .quiz-note.ls-qfb{border-radius:16px;padding:10px 14px;font-size:20px;font-weight:900;position:sticky;bottom:10px;z-index:6;box-shadow:0 6px 18px rgba(0,0,0,.14)}
html.ls-k-read .quiz-note.ls-qfb.ok{background:#dff5e6;color:#1f8a4c}
html.ls-k-read .quiz-note.ls-qfb.try,html.ls-k-read .quiz-note.ls-qfb.bad{background:#fff3d6;color:#8a5a00}
html.ls-k-read #quizA .ans.wrong{text-decoration:line-through}
/* 26.11.2026 (этап 20, дизайнер п.54): рекорд Ку-ку минутки на итоге */
.ls-win .v-rec{margin:6px auto 0;display:inline-block;background:#fff6d9;border:2px solid #f2d27a;border-radius:14px;padding:6px 14px;font-weight:800;color:#7a5200}
/* 26.11.2026 (этап 20, дизайнер п.76): «Серия на сегодня» — в палитре школы (белая карточка с зелёной рамкой, как «Остановки на сегодня»), не фиолетовая */
html.ls-k-read .goal{background:#fff!important;color:#27304a!important;border:3px solid #2e8b57;box-shadow:0 10px 24px rgba(31,90,60,.12)!important}
html.ls-k-read .goal h2{color:#27304a!important}
html.ls-k-read .goal p{color:#4a5270}
html.ls-k-read .ls-goalbook .goal-book{color:#27304a}
html.ls-k-read .ls-goalbook .cover.big{box-shadow:0 4px 0 rgba(39,48,74,.12)}
html.ls-k-read .goal .goal-btns .btn{border:2px solid #e3dccb}
/* 26.11.2026 (этап 20, дизайнер п.78): «Дальше на полке» под «Вся библиотека» */
.ls-nextbooks{margin:6px 0 18px}
.ls-nextbooks h2{font-size:20px;margin:6px 4px 10px;color:#27304a}
.ls-nb-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ls-nb{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border:2px solid #f1e6d2;border-radius:18px;padding:10px 6px 12px;text-align:center;color:#27304a;cursor:pointer;font:inherit}
.ls-nb .cover{width:64px;height:64px;font-size:38px;border-radius:14px;display:grid;place-items:center;margin:0}
.ls-nb b{font-size:15px;line-height:1.2;overflow-wrap:anywhere}
.ls-nb small{font-size:13px;color:#646d8a;font-weight:700}
/* 26.11.2026 (этап 21, озвучка п.3): кнопка звука 🔊/🔇 в шапке тренажёров — светлая круглая, как жёлуди в шапке; общий флаг lesnaya-sound */
.ls-bar .ls-snd{flex:none;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);color:#fff;font-size:20px;line-height:1;display:inline-grid;place-items:center;cursor:pointer;padding:0}
.ls-bar .ls-snd:hover{background:rgba(255,255,255,.2)}
.ls-bar .ls-snd[aria-pressed="true"]{background:rgba(255,255,255,.06);opacity:.85}
@media (max-width:430px){.ls-bar .ls-snd{width:36px;height:36px;font-size:18px}}
/* 26.11.2026 (этап 23, дизайнер п.7): кнопка звука тренажёров — та же, что в шапке школы (круг с кольцом), подпись при первом показе */
.ls-bar .ls-snd{border:2px solid rgba(255,255,255,.45);background:rgba(255,255,255,.14)}
.ls-bar .ls-snd[aria-pressed="true"]{border-style:dashed;background:rgba(255,255,255,.05)}
.snd-hint{position:fixed;z-index:1300;max-width:240px;background:#27304a;color:#fff;font-weight:800;font-size:14px;line-height:1.25;border-radius:12px;padding:8px 12px;box-shadow:0 6px 18px rgba(0,0,0,.25);pointer-events:none}
/* п.1: меню из 5 пунктов, как в школе */
html.ls-shelf .ls-nav a{font-size:12px;min-width:0}
@media (min-width:768px){ html.ls-shelf .ls-nav a{font-size:15px} }
@media (min-width:768px){ html.ls-shelf .ls-nav{isolation:isolate} html.ls-shelf .ls-nav::before{content:"";position:absolute;z-index:-1;left:50%;width:100vw;transform:translateX(-50%);top:-12px;bottom:-8px;background:rgba(240,240,236,.97);pointer-events:none} }
/* 26.11.2026 (этап 23, понятность): плашка «Это… / Что делать… / Что получишь…» на полке «Чтения» и в меню «Счёта» (тот же вид, что .ls-expl в школе) */
html.ls-shelf .ls-expl{display:block;background:#fffaf0;border:2px solid #f1e0bd;border-radius:16px;padding:8px 12px;margin:8px auto 12px;max-width:760px;text-align:left;box-shadow:none;font-family:inherit;box-sizing:border-box}
html.ls-shelf .ls-expl summary{list-style:none;cursor:pointer;display:flex;align-items:flex-start;gap:8px;min-height:32px}
html.ls-shelf .ls-expl summary::-webkit-details-marker{display:none}
html.ls-shelf .ls-expl .lx-is{flex:1;min-width:0}
html.ls-shelf .ls-expl .lx-is,html.ls-shelf .ls-expl p{margin:2px 0;font-size:15px;line-height:1.3;font-weight:600;color:#27304a}
html.ls-shelf .ls-expl b{font-weight:900}
html.ls-shelf .ls-expl .lx-q{flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:#f1e0bd;color:#6b4e16;font-style:normal;font-weight:900;font-size:16px;display:flex;align-items:center;justify-content:center}
html.ls-shelf .ls-expl[open] .lx-q{opacity:.45}
html.ls-shelf .ls-expl:not([open]) .lx-is{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:420px){ html.ls-shelf .ls-expl{padding:6px 10px;margin:6px 8px 10px} html.ls-shelf .ls-expl .lx-is,html.ls-shelf .ls-expl p{font-size:14px} }
