.cw-edu-lesson--legacy {
  --cw-bg:#efefef;
  --cw-line:#dfd6ca;
  --cw-text:#5a4636;
  --cw-text-strong:#6b441d;
  --cw-shadow:0 10px 28px rgba(80,52,24,.10);
  --cw-green-bg:#dcece4;
  --cw-green-bd:#b5d2c1;
  --cw-green-tx:#165f41;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0;
  color: var(--cw-text);
  background: linear-gradient(180deg,#f8f6f2 0%,#f3eee7 100%);
  border: 1px solid var(--cw-line);
  border-radius: 26px;
  box-shadow: var(--cw-shadow);
  overflow: hidden;
}

.cw-topbar{padding:22px 20px 18px;text-align:center;border-bottom:1px solid var(--cw-line);background:linear-gradient(180deg,#f4efe8 0%,#eee7de 100%)}
.cw-logo{display:inline-flex;align-items:center;justify-content:center;min-width:220px;min-height:58px;padding:0 26px;border-radius:16px;color:#3e2410;font-size:20px;font-weight:700;letter-spacing:.2px;text-decoration:none;background:radial-gradient(circle at 25% 20%, rgba(255,255,255,.35) 0, rgba(255,255,255,0) 35%),repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, rgba(0,0,0,.02) 2px 4px),linear-gradient(180deg, #d9b07a 0%, #a86d37 52%, #8c5629 100%);border:1px solid rgba(93,54,24,.35);box-shadow:0 8px 18px rgba(111,66,31,.22), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(73,42,18,.18)}
.cw-body{padding:18px}

.cw-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;margin-bottom:18px}
.cw-card,.cw-panel,.cw-board-shell,.cw-note{background:rgba(255,255,255,.52);border:1px solid var(--cw-line);border-radius:22px;box-shadow:0 5px 18px rgba(103,77,48,.08)}
.cw-card{padding:24px}
.cw-kicker{display:inline-flex;align-items:center;gap:10px;background:var(--cw-green-bg);color:var(--cw-green-tx);border:1px solid var(--cw-green-bd);border-radius:999px;padding:10px 16px;font-size:14px;font-weight:700;margin-bottom:16px}
.cw-title{margin:0 0 10px;color:var(--cw-text-strong);font-size:clamp(34px,4vw,56px);line-height:1.08}
.cw-lead{margin:0;font-size:18px;line-height:1.65;color:#6f5b4c;max-width:720px}
.cw-side{display:grid;grid-template-columns:1fr;gap:14px;align-content:start}
.cw-mini{padding:16px;border-radius:18px;background:linear-gradient(180deg,#fbf8f4 0%,#f2ebe3 100%);border:1px solid var(--cw-line)}
.cw-mini strong{display:block;color:var(--cw-text-strong);font-size:17px;margin-bottom:6px}
.cw-mini span{display:block;font-size:15px;line-height:1.55;color:#6d5b4a}
.cw-hero-tools{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:16px}
.cw-kicker{margin-bottom:0;align-self:center;margin-left:auto;margin-right:auto;text-align:center}
.cw-font-tools{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;width:100%}
.cw-font-btn{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:0 12px;border-radius:999px;border:1px solid rgba(113,67,31,.28);background:linear-gradient(180deg,#fbf8f4 0%,#f1ebe3 100%);color:var(--cw-text-strong);font-size:14px;font-weight:700;box-shadow:0 4px 12px rgba(103,77,48,.08)}
.cw-font-btn.is-active{background:var(--cw-green-bg);border-color:var(--cw-green-bd);color:var(--cw-green-tx);box-shadow:0 0 0 3px rgba(22,95,65,.10),0 8px 16px rgba(103,77,48,.10)}
.cw-font-btn--share{width:50px;min-width:50px;height:50px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-color:var(--cw-green-bd);color:var(--cw-green-tx);background:linear-gradient(180deg,#f2f8f4 0%,#e4efe8 100%)}
.cw-font-btn--share:disabled{opacity:.92;cursor:default}
.cw-share-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;color:inherit}
.cw-share-icon-svg{width:22px;height:22px;display:block;fill:currentColor}
.cw-share-icon-svg path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.cw-visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important}

.cw-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
.cw-main-col{display:grid;gap:18px;align-items:start;min-width:0}
.cw-panel{padding:18px;background:linear-gradient(180deg,#f7f3ed 0%,#efe7dc 100%)}
.cw-panel h2,.cw-board-head h2,.cw-mobile-title{margin:0;color:var(--cw-text-strong);line-height:1.15}
.cw-panel h2{font-size:24px;margin-bottom:12px}
.cw-tabs{display:grid;gap:10px}
.cw-edu-scenario-item{width:100%;text-align:left;border:1px solid rgba(113,67,31,.16);border-left:5px solid #c88d47;border-radius:16px;padding:14px 14px 14px 16px;background:linear-gradient(180deg,#fffaf4 0%,#f4ede4 100%);color:#4b2e1a;font-size:16px;font-weight:700;box-shadow:0 4px 10px rgba(103,77,48,.08);cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease}
.cw-edu-scenario-item:hover{transform:translateY(-1px);filter:saturate(1.03);box-shadow:0 8px 16px rgba(103,77,48,.12);border-color:rgba(113,67,31,.24)}
.cw-edu-scenario-item.is-active{border-color:rgba(22,95,65,.26);border-left-color:#2f7d32;background:linear-gradient(180deg,#eef6f1 0%,#e5f0ea 100%);box-shadow:0 0 0 3px rgba(22,95,65,.08),0 8px 16px rgba(103,77,48,.10)}
.cw-edu-scenario-item__title{display:block;font-weight:700;margin-bottom:6px}
.cw-edu-scenario-item__subtitle{display:block;font-size:13px;font-weight:400;color:#6f5b4c;line-height:1.35}

.cw-board-shell{overflow:hidden}
.cw-board-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--cw-line);background:linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(245,239,232,.6) 100%)}
.cw-badge{display:inline-flex;align-items:center;justify-content:center;min-width:120px;padding:10px 14px;border-radius:999px;background:var(--cw-green-bg);border:1px solid var(--cw-green-bd);color:var(--cw-green-tx);font-size:14px;font-weight:700;text-align:center}
.cw-board-body{padding:18px;display:grid;grid-template-columns:minmax(280px,520px) minmax(250px,1fr);gap:18px;align-items:start}
.cw-board-left,.cw-board-right{min-width:0}
.cw-board-shell,.cw-board-body,.cw-board-left,.cw-board-right,.cw-step-head,.cw-caption-viewport,.cw-arrow-note-row,.cw-mobile-scenario-nav,.cw-desktop-scenario-nav,.cw-progress{overflow-anchor:none}
.cw-board-left,.cw-board-wrap{width:100%;max-width:100%}
.cw-board-wrap{display:block}
.cw-mobile-stage{display:none;margin:0 0 12px}
.cw-mobile-stage-top{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin-bottom:12px}
.cw-mobile-title{width:100%;text-align:center;font-size:28px}
.cw-mobile-scenario-nav{display:none}
.cw-mobile-scenario-btn,.cw-desktop-scenario-btn{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:999px;border:1px solid rgba(113,67,31,.22);background:linear-gradient(180deg,#fbf8f4 0%,#f1ebe3 100%);color:var(--cw-text-strong);font-size:22px;font-weight:700;box-shadow:0 4px 12px rgba(103,77,48,.08);cursor:pointer}
.cw-mobile-scenario-pill,.cw-desktop-scenario-pill{min-width:0;flex:1 1 auto;display:flex;align-items:center;justify-content:center;text-align:center;padding:11px 16px;min-height:46px;border-radius:999px;background:var(--cw-green-bg);border:1px solid var(--cw-green-bd);color:var(--cw-green-tx);font-size:15px;font-weight:700;line-height:1.25;box-shadow:0 4px 12px rgba(103,77,48,.06)}
.cw-desktop-scenario-nav{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:520px;margin:10px auto 0}
.cw-step-head{--cw-caption-lines:3;--cw-caption-line-height:1.6em;--cw-caption-box-height:calc(var(--cw-caption-lines) * var(--cw-caption-line-height));margin-bottom:14px;padding:16px 18px;border-radius:18px;background:linear-gradient(180deg,#fbf8f4 0%,#f1ebe3 100%);border:1px solid var(--cw-line);min-height:116px;height:116px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cw-caption-viewport{position:relative;width:100%;height:var(--cw-caption-box-height);max-height:var(--cw-caption-box-height);overflow:hidden;display:block}
.cw-caption-track{width:100%;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:transform .24s ease;will-change:transform}
.cw-caption-viewport[data-cw-caption-overflow="1"] .cw-caption-track{transition-duration:.26s;transition-timing-function:cubic-bezier(.22,.61,.36,1)}
@media (min-width: 1024px){.cw-caption-viewport[data-cw-caption-overflow="1"] .cw-caption-track{transition-duration:.42s;transition-timing-function:cubic-bezier(.22,.61,.36,1)}}
.cw-step-head p{margin:0;width:100%;font-size:16px;line-height:1.6;color:#6d5a49;text-align:center}
.cw-step-head--mobile{display:none}
.cw-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 16px}
.cw-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:10px 14px;border-radius:16px;border:1px solid rgba(113,67,31,.28);background:radial-gradient(circle at 22% 18%, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 30%),repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.018) 2px 4px),linear-gradient(180deg, #e6bc81 0%, #c88d47 55%, #a66b35 100%);color:#442817;font-size:16px;font-weight:700;box-shadow:0 8px 16px rgba(124,79,35,.18), inset 0 1px 0 rgba(255,255,255,.3);cursor:pointer}
.cw-btn--ghost{background:#fffdfa;box-shadow:0 4px 12px rgba(103,77,48,.08);border:1px solid var(--cw-line);color:var(--cw-text-strong)}
.cw-controls [data-cw-action="play"]{grid-column:1 / -1}
.cw-controls-footer{grid-column:1 / -1;display:grid;grid-template-columns:52px minmax(0,180px) 52px;gap:12px;align-items:center;justify-content:center}
.cw-controls-footer [data-cw-action="reset"]{width:100%;min-width:0}
.cw-controls .cw-controls-footer [data-cw-action="reset"]{grid-column:2 / 3 !important;grid-row:auto !important;justify-self:stretch !important;align-self:auto !important}
.cw-btn--icon{position:relative;width:52px;min-width:52px;min-height:52px;padding:0;border-radius:16px;overflow:hidden}
.cw-btn-icon{display:inline-flex;align-items:center;justify-content:center;font-size:22px;line-height:1}
.cw-btn--icon.is-active{background:var(--cw-green-bg);border-color:var(--cw-green-bd);color:var(--cw-green-tx);box-shadow:0 0 0 3px rgba(22,95,65,.08),0 8px 16px rgba(103,77,48,.10)}
.cw-btn--icon[data-cw-board-theme-button].is-active .cw-btn-icon{color:#2f7d32}
.cw-btn--icon[data-cw-board-theme-button][data-board-theme-current="slate"]{background:#eef3f6;border-color:#bfd0d8;color:#33586a;box-shadow:0 0 0 3px rgba(87,127,147,.10),0 8px 16px rgba(81,108,121,.12)}
.cw-btn--icon[data-cw-board-theme-button][data-board-theme-current="slate"] .cw-btn-icon{color:#33586a}
.cw-controls [data-cw-action="reset"]{grid-column:1 / -1;justify-self:center;width:min(180px,100%)}
.cw-progress{padding:14px 16px;border:1px solid var(--cw-line);border-radius:18px;background:#fff;box-shadow:0 4px 12px rgba(103,77,48,.06)}
.cw-progress-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:14px;color:#7c6a59}.cw-bar{width:100%;height:10px;border-radius:999px;background:#efe7dc;overflow:hidden;border:1px solid var(--cw-line)}.cw-bar>span{display:block;height:100%;width:0;background:linear-gradient(90deg, #d8a65f 0%, #a66b35 100%);transition:width .24s ease}
.cw-arrow-note-row{display:flex;justify-content:center;align-items:flex-start;min-height:58px;margin-top:12px;margin-bottom:8px}.cw-arrow-note{display:inline-flex;align-items:center;justify-content:center;gap:10px;max-width:100%;min-height:46px;padding:9px 14px;border-radius:999px;background:rgba(255,251,244,.96);border:1px solid rgba(113,67,31,.20);box-shadow:0 8px 18px rgba(80,52,24,.12);font-size:14px;font-weight:700;color:var(--cw-text-strong);text-align:center;line-height:1.25}
.cw-arrow-note[hidden]{display:none}
.cw-arrow-note::before{content:'➜';display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:rgba(54,130,66,.12);color:#2f7d32;font-size:14px;flex:0 0 auto}
.cw-arrow-note.is-capture{border-color:rgba(166,59,48,.24);color:#7a2f28}
.cw-arrow-note.is-capture::before{background:rgba(166,59,48,.12);color:#a63b30}
.cw-arrow-note.is-move{border-color:rgba(54,130,66,.24);color:#2f6135}

.cw-note{margin-top:18px;padding:18px}
.cw-note .cw-edu-text-block{margin-top:16px;padding:20px;border:1px solid var(--cw-line);border-radius:18px;background:linear-gradient(180deg,#fbf8f4 0%,#f4eee7 100%);box-shadow:0 4px 12px rgba(103,77,48,.05)}
.cw-note .cw-edu-text-block:first-child{margin-top:0}
.cw-note h2,.cw-note h3{margin-top:0;color:var(--cw-text-strong)}
.cw-note p,.cw-note li{line-height:1.75;color:#6d5a49}

.cw-jump-stack{display:grid;gap:16px}
.cw-jump-card{padding:18px;border:1px solid var(--cw-line);border-radius:22px;background:rgba(255,255,255,.52);box-shadow:0 5px 18px rgba(103,77,48,.08)}
.cw-jump-card h3{margin:0 0 8px;color:var(--cw-text-strong);font-size:22px;line-height:1.15;text-align:center}
.cw-jump-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:14px}
.cw-jump-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border-radius:14px;border:1px solid rgba(177,136,87,.34);background:radial-gradient(circle at 22% 18%, rgba(255,255,255,.40) 0, rgba(255,255,255,0) 30%),repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 2px, rgba(0,0,0,.012) 2px 4px),linear-gradient(180deg, #f6eedf 0%, #ead7b5 55%, #dcb887 100%);color:#6b441d;font-size:14px;font-weight:700;text-decoration:none;text-align:center;box-shadow:0 8px 16px rgba(148,112,67,.14), inset 0 1px 0 rgba(255,255,255,.40)}
.cw-jump-link--wide{min-width:min(100%, 320px)}

@media (max-width:980px){.cw-hero,.cw-layout,.cw-board-body{grid-template-columns:1fr}.cw-board-wrap{max-width:none}}
@media (max-width:760px){.cw-body{padding:10px}.cw-card{padding:18px 14px}.cw-title{font-size:31px}.cw-lead{font-size:17px}.cw-board-head{display:none}.cw-board-body{display:flex;flex-direction:column;padding:12px;gap:14px}.cw-mobile-stage{display:block}.cw-mobile-stage .cw-badge,[data-cw-step-badge-mobile]{display:none !important}.cw-layout{display:flex;flex-direction:column;gap:14px}.cw-main-col{display:flex;flex-direction:column;gap:14px;order:2;width:100%}.cw-board-right{display:flex;flex-direction:column;align-items:center}.cw-step-head--desktop{display:none}.cw-step-head--mobile{display:flex;width:min(100%,340px);min-height:116px;height:116px;margin:0 auto 14px;order:1}.cw-desktop-scenario-nav{display:none}.cw-mobile-scenario-nav{display:flex;width:min(100%,320px);margin:0 auto 14px;align-items:center;justify-content:center;gap:10px;order:2}.cw-controls{width:min(100%,320px);margin:0 auto 16px;order:3}.cw-progress{width:min(100%,320px);margin:0 auto;order:4}.cw-btn{width:100%}.cw-controls-footer{grid-template-columns:48px minmax(0,180px) 48px}.cw-btn--icon{width:48px;min-width:48px;min-height:48px}.cw-kicker{margin-left:auto;margin-right:auto;text-align:center}.cw-title,.cw-lead{text-align:center}.cw-font-tools{justify-content:center}.cw-font-btn--share{width:48px;min-width:48px;height:48px}.cw-jump-links{flex-direction:column;align-items:center}.cw-jump-link,.cw-jump-link--wide{width:min(100%,340px)}}



.cw-speak-word{display:inline;border-radius:10px;padding:0 2px;transition:background-color .14s ease,color .14s ease,box-shadow .14s ease}
.cw-speak-word.is-done{background:rgba(220,236,228,.92);color:#165f41}
.cw-speak-word.is-active{background:rgba(230,188,129,.52);color:var(--cw-text-strong);box-shadow:0 0 0 1px rgba(166,107,53,.18)}
.cw-step-head p.is-speaking{color:var(--cw-text-strong)}

.cw-voice-stack{display:contents}
.cw-voice-btn{display:flex;align-items:center;justify-content:flex-start;gap:10px;background:#fffdfa;box-shadow:0 4px 12px rgba(103,77,48,.08);padding-left:14px;padding-right:14px;min-height:52px}
.cw-voice-btn.is-on{background:linear-gradient(180deg,#eef6f1 0%,#e5f0ea 100%);border-color:rgba(22,95,65,.28);color:#165f41;box-shadow:0 0 0 3px rgba(22,95,65,.08),0 8px 16px rgba(103,77,48,.10)}
.cw-voice-btn.is-off .cw-voice-icon{opacity:.92}
.cw-voice-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:rgba(22,95,65,.10);font-size:18px;line-height:1;flex:0 0 auto}
.cw-voice-btn.is-off .cw-voice-icon{background:rgba(138,44,36,.10)}
.cw-voice-copy{display:flex;align-items:center;min-width:0;flex:1 1 auto}
.cw-voice-label{font-weight:700;line-height:1.2;display:block}
.cw-voice-volume{display:grid;gap:8px;width:100%;padding:12px 14px;border:1px solid var(--cw-line);border-radius:16px;background:#fff;box-shadow:0 4px 12px rgba(103,77,48,.06)}
.cw-voice-volume-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:#6d5a49}
.cw-voice-volume-label{font-weight:700;color:var(--cw-text-strong)}
.cw-voice-volume-value{font-variant-numeric:tabular-nums}
.cw-voice-volume input[type="range"]{width:100%;accent-color:#a66b35;cursor:pointer}
.cw-voice-volume.is-disabled{opacity:.7}

.cw-edu-lesson--voice-ready .cw-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="toggle-play"]{grid-column:1;grid-row:1;width:100%;min-width:0}
.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="prev"]{grid-column:1;grid-row:3;width:100%;min-width:0}
.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="next"]{grid-column:2;grid-row:3;width:100%;min-width:0}
.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="reset"]{grid-column:1 / -1;grid-row:4;justify-self:center;width:min(180px,100%)}
.cw-edu-lesson--voice-ready .cw-controls .cw-controls-footer{grid-column:1 / -1;grid-row:4}
.cw-edu-lesson--voice-ready .cw-controls .cw-voice-btn{grid-column:2;grid-row:1;width:100%;min-width:0}
.cw-edu-lesson--voice-ready .cw-controls .cw-voice-volume{grid-column:1 / -1;grid-row:2}

@media (max-width:760px){
  .cw-voice-btn{min-height:44px;font-size:14px}
  .cw-voice-volume{padding:10px 12px}
  .cw-voice-volume-row{font-size:13px}
  .cw-edu-lesson--voice-ready .cw-controls{width:min(100%,320px);margin:0 auto 16px}
  .cw-edu-lesson--voice-ready .cw-controls [data-cw-action="toggle-play"]{font-size:13px;line-height:1;white-space:nowrap}
}

/* Knight classic layout: restore previous skoczek composition */
.cw-edu-lesson--knight-classic .cw-topbar{display:none}
.cw-edu-lesson--knight-classic{padding:18px;background:transparent;border:none;box-shadow:none;overflow:visible}
.cw-edu-lesson--knight-classic .cw-body{padding:0}
.cw-edu-lesson--knight-classic .cw-hero{grid-template-columns:minmax(0,1.12fr) minmax(320px,.92fr);gap:18px;margin-bottom:18px}
.cw-edu-lesson--knight-classic .cw-card,
.cw-edu-lesson--knight-classic .cw-panel,
.cw-edu-lesson--knight-classic .cw-board-shell,
.cw-edu-lesson--knight-classic .cw-note{background:rgba(255,255,255,.52);border:1px solid var(--cw-line);border-radius:22px;box-shadow:0 5px 18px rgba(103,77,48,.08)}
.cw-edu-lesson--knight-classic .cw-card{padding:24px 22px}
.cw-edu-lesson--knight-classic .cw-kicker{align-self:center;margin-left:auto;margin-right:auto;text-align:center}
.cw-edu-lesson--knight-classic .cw-font-tools{justify-content:center;width:100%;margin-left:auto;margin-right:auto}
.cw-edu-lesson--knight-classic .cw-title{font-size:clamp(25px,3vw,37px);max-width:12ch;line-height:1.02}
.cw-edu-lesson--knight-classic .cw-lead{max-width:32ch;font-size:17px;line-height:1.62}
.cw-edu-lesson--knight-classic .cw-side{gap:16px}
.cw-edu-lesson--knight-classic .cw-mini{min-height:126px;display:flex;flex-direction:column;justify-content:center}
.cw-edu-lesson--knight-classic .cw-layout{grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}
.cw-edu-lesson--knight-classic .cw-panel h2{font-size:27px;line-height:1.08}
.cw-edu-lesson--knight-classic .cw-tabs{gap:12px;max-height:none;overflow:visible}
.cw-edu-lesson--knight-classic .cw-edu-scenario-item{padding:16px 16px 14px 18px;border-radius:18px}
.cw-edu-lesson--knight-classic .cw-edu-scenario-item__title{font-size:17px;line-height:1.2}
.cw-edu-lesson--knight-classic .cw-edu-scenario-item__subtitle{font-size:14px;line-height:1.45}
.cw-edu-lesson--knight-classic .cw-arrow-note{min-height:44px;padding:9px 16px;font-size:15px;color:#165f41;border-color:rgba(54,130,66,.22)}
.cw-edu-lesson--knight-classic .cw-arrow-note::before{background:rgba(54,130,66,.14);color:#2f7d32}
.cw-edu-lesson--knight-classic .cw-arrow-note.is-capture{color:#7a2f28;border-color:rgba(166,59,48,.24)}
.cw-edu-lesson--knight-classic .cw-arrow-note.is-capture::before{background:rgba(166,59,48,.12);color:#a63b30}
.cw-edu-lesson--knight-classic .cw-board-head h2{font-size:26px}
.cw-edu-lesson--knight-classic .cw-board-body{grid-template-columns:minmax(360px,1fr) 260px;gap:18px;align-items:start}
.cw-edu-lesson--knight-classic .cw-step-head{min-height:118px;padding:18px}
.cw-edu-lesson--knight-classic .cw-step-head p{font-size:16px;line-height:1.6}
.cw-edu-lesson--knight-classic .cw-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.cw-edu-lesson--knight-classic .cw-controls [data-cw-action="toggle-play"]{grid-column:1 / -1}
.cw-edu-lesson--knight-classic .cw-controls [data-cw-action="prev"]{grid-column:1 / 2}
.cw-edu-lesson--knight-classic .cw-controls [data-cw-action="next"]{grid-column:1 / 2}
.cw-edu-lesson--knight-classic .cw-controls [data-cw-action="reset"]{grid-column:2 / 3;align-self:end}
.cw-edu-lesson--knight-classic .cw-controls .cw-controls-footer{grid-column:1 / -1}
.cw-edu-lesson--knight-classic .cw-btn{min-width:0;width:100%}
.cw-edu-lesson--knight-classic .cw-controls [data-cw-action="prev"],
.cw-edu-lesson--knight-classic .cw-controls [data-cw-action="next"]{font-size:13px;line-height:1.12;white-space:nowrap;letter-spacing:-0.01em;padding-left:10px;padding-right:10px}
.cw-edu-lesson--knight-classic .cw-progress{margin-top:0}
.cw-edu-lesson--knight-classic .cw-desktop-scenario-nav{margin-top:14px}
.cw-edu-lesson--knight-classic .cw-jump-stack{display:grid;gap:18px}
.cw-edu-lesson--knight-classic .cw-jump-card{padding:18px 16px 18px}
.cw-edu-lesson--knight-classic .cw-jump-card h3{font-size:24px;line-height:1.18}
.cw-edu-lesson--knight-classic .cw-jump-links--figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;justify-content:stretch}
.cw-edu-lesson--knight-classic .cw-jump-links--figures .cw-jump-link{width:100%;min-height:44px;padding:10px 8px;font-size:13px;line-height:1.1;white-space:nowrap;letter-spacing:-0.01em}
.cw-edu-lesson--knight-classic .cw-jump-links:not(.cw-jump-links--figures){justify-content:center}
.cw-edu-lesson--knight-classic .cw-jump-links:not(.cw-jump-links--figures) .cw-jump-link{min-width:min(100%,320px)}
@media (max-width:980px){
  .cw-edu-lesson--knight-classic .cw-hero,
  .cw-edu-lesson--knight-classic .cw-layout,
  .cw-edu-lesson--knight-classic .cw-board-body{grid-template-columns:1fr}
}
@media (max-width:980px){
  .cw-edu-lesson--knight-classic .cw-jump-links--figures{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .cw-edu-lesson--knight-classic{padding:8px}
  .cw-edu-lesson--knight-classic .cw-card{padding:18px 14px}
  .cw-edu-lesson--knight-classic .cw-kicker,
  .cw-edu-lesson--knight-classic .cw-font-tools,
  .cw-edu-lesson--knight-classic .cw-title,
  .cw-edu-lesson--knight-classic .cw-lead{text-align:center;justify-content:center;margin-left:auto;margin-right:auto}
  .cw-edu-lesson--knight-classic .cw-title{max-width:none;font-size:clamp(28px,9vw,36px)}
  .cw-edu-lesson--knight-classic .cw-controls{width:min(100%,320px);margin:0 auto 16px}
  .cw-edu-lesson--knight-classic .cw-controls [data-cw-action="reset"]{grid-column:2 / 3}
  .cw-edu-lesson--knight-classic .cw-jump-stack{justify-items:stretch;width:100%}
  .cw-edu-lesson--knight-classic .cw-jump-card{display:flex;flex-direction:column;align-items:center;width:100%;max-width:none;margin-left:auto;margin-right:auto}
  .cw-edu-lesson--knight-classic .cw-jump-links--figures{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;width:100%;max-width:none;margin-left:auto;margin-right:auto}
  .cw-edu-lesson--knight-classic .cw-jump-links--figures .cw-jump-link{display:inline-flex;width:auto;max-width:100%;min-width:0;padding:10px 22px;white-space:nowrap;margin-left:auto;margin-right:auto}
  .cw-edu-lesson--knight-classic .cw-jump-links:not(.cw-jump-links--figures){width:100%;max-width:none;margin-left:auto;margin-right:auto}
  .cw-edu-lesson--knight-classic .cw-jump-card h3{font-size:22px}
  .cw-about-nav-list{display:flex;flex-direction:column;align-items:center;gap:12px}
  .cw-about-nav-list a{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;min-width:0;padding:15px 18px;text-align:center;white-space:nowrap}
}




.cw-edu-lesson--knight-classic.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="toggle-play"]{grid-column:1;grid-row:1}
.cw-edu-lesson--knight-classic.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="prev"]{grid-column:1;grid-row:3}
.cw-edu-lesson--knight-classic.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="next"]{grid-column:2;grid-row:3}
.cw-edu-lesson--knight-classic.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="reset"]{grid-column:1 / -1;grid-row:4;justify-self:center;width:min(180px,100%);align-self:auto}
.cw-edu-lesson--knight-classic.cw-edu-lesson--voice-ready .cw-controls .cw-controls-footer{grid-column:1 / -1;grid-row:4}
.cw-edu-lesson--knight-classic.cw-edu-lesson--voice-ready .cw-controls .cw-voice-btn{grid-column:2;grid-row:1}
.cw-edu-lesson--knight-classic.cw-edu-lesson--voice-ready .cw-controls .cw-voice-volume{grid-column:1 / -1;grid-row:2}
@media (max-width:760px){
  .cw-edu-lesson--knight-classic.cw-edu-lesson--voice-ready .cw-controls [data-cw-action="reset"]{grid-column:1 / -1}
}


.cw-export-status.is-error{color:#8a2c24;}


/* ===== Lower lesson/test sections restored from the working knight page ===== */
.cw-note{
  padding:22px;
}

.cw-about-grid{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:22px;
  align-items:start;
}

.cw-about-nav{
  position:sticky;
  top:18px;
  align-self:start;
  padding:18px;
  border:1px solid var(--cw-line);
  border-radius:22px;
  background:linear-gradient(180deg,#fbf8f4 0%,#f3eee7 100%);
  box-shadow:0 8px 20px rgba(103,77,48,.08);
}

.cw-about-nav-title{
  margin:0 0 16px;
  color:var(--cw-text-strong);
  font-size:calc(22px + var(--cw-font-bump, 0px));
  line-height:1.1;
}

.cw-about-nav-list{
  display:grid;
  gap:12px;
}

.cw-about-nav-list a{
  display:block;
  width:100%;
  text-decoration:none;
  text-align:left;
  border:1px solid rgba(113,67,31,.28);
  border-radius:18px;
  padding:15px 14px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 30%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.018) 2px 4px),
    linear-gradient(180deg, #e6bc81 0%, #c88d47 55%, #a66b35 100%);
  color:#442817;
  font-size:calc(16px + var(--cw-font-bump, 0px));
  font-weight:700;
  box-shadow:0 8px 16px rgba(124,79,35,.16), inset 0 1px 0 rgba(255,255,255,.30);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cw-about-nav-list a:hover{
  transform:translateY(-1px);
  filter:saturate(1.03);
  box-shadow:0 10px 20px rgba(124,79,35,.20), inset 0 1px 0 rgba(255,255,255,.34);
}

.cw-about-content{
  min-width:0;
  display:grid;
  gap:18px;
}

.cw-about-section{
  overflow:hidden;
  border:1px solid var(--cw-line);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.68) 0%, rgba(248,244,238,.78) 100%);
  box-shadow:0 6px 18px rgba(103,77,48,.08);
}

.cw-about-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px;
  border-bottom:1px solid var(--cw-line);
  background:linear-gradient(180deg, rgba(255,255,255,.56) 0%, rgba(245,239,232,.62) 100%);
}

.cw-about-section-head h2{
  margin:0;
  color:var(--cw-text-strong);
  font-size:calc(20px + var(--cw-font-bump, 0px));
  line-height:1.15;
}

.cw-about-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:90px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--cw-green-bg);
  border:1px solid var(--cw-green-bd);
  color:var(--cw-green-tx);
  font-size:calc(13px + var(--cw-font-bump, 0px));
  font-weight:700;
  white-space:nowrap;
}

.cw-about-section-body{
  padding:20px;
}

.cw-about-section-body > p:first-child{
  margin-top:0;
}

.cw-about-section-body p{
  font-size:calc(16px + var(--cw-font-bump, 0px));
  line-height:1.75;
  color:#6d5a49;
}

.cw-about-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 18px;
}

.cw-about-tag{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--cw-line);
  background:#fffdfa;
  color:#7a614c;
  font-size:calc(13px + var(--cw-font-bump, 0px));
  line-height:1.2;
  box-shadow:0 3px 10px rgba(103,77,48,.05);
}

.cw-about-tag--accent{
  color:var(--cw-text-strong);
  font-weight:700;
}

.cw-about-tags a.cw-about-tag{
  text-decoration:none;
  cursor:pointer;
}

.cw-about-box[id],
.cw-about-section[id]{
  scroll-margin-top:24px;
}

.cw-lesson-divider{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:8px 0 2px;
}

.cw-lesson-divider .cw-about-btn{
  min-width:260px;
}

.cw-about-box,
.cw-q,
.cw-key,
.cw-result{
  margin-top:16px;
  padding:18px;
  border:1px solid var(--cw-line);
  border-radius:18px;
  background:linear-gradient(180deg,#fbf8f4 0%,#f4eee7 100%);
  box-shadow:0 4px 12px rgba(103,77,48,.05);
}

.cw-about-box h3,
.cw-q .cw-qt{
  margin:0 0 10px;
  color:var(--cw-text-strong);
  font-size:calc(16px + var(--cw-font-bump, 0px));
  line-height:1.3;
  font-weight:700;
}

.cw-about-hint,
.cw-small{
  margin:0 0 10px;
  color:#8a6e58;
  font-size:calc(13px + var(--cw-font-bump, 0px));
  line-height:1.55;
}

.cw-about-points{
  margin:0;
  padding-left:22px;
  color:#5f4c3e;
  font-size:calc(16px + var(--cw-font-bump, 0px));
  line-height:1.75;
}

.cw-about-points li + li{
  margin-top:6px;
}

.cw-about-quote{
  margin-top:18px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid var(--cw-line);
  background:linear-gradient(180deg, rgba(255,255,255,.74) 0%, rgba(247,242,235,.88) 100%);
  color:#6a5445;
  font-style:italic;
  line-height:1.7;
  box-shadow:0 4px 12px rgba(103,77,48,.05);
}

.cw-kbd{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--cw-line);
  background:#fffdfa;
  color:var(--cw-text-strong);
  font-size:calc(12px + var(--cw-font-bump, 0px));
  font-weight:700;
  vertical-align:middle;
}

.cw-fill-list li{
  line-height:2.05;
}

.cw-fill-blank{
  display:inline-block;
  width:140px;
  max-width:100%;
  min-height:38px;
  margin:0 6px;
  padding:8px 10px;
  border:1.5px solid #c9b39a;
  border-radius:12px;
  background:#fffdfa;
  color:#5a4636;
  font:inherit;
  line-height:1.2;
  vertical-align:middle;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.03);
}

.cw-fill-blank:focus,
.cw-q input[type="text"]:focus,
.cw-q textarea:focus{
  outline:none;
  border-color:#b88952;
  box-shadow:0 0 0 3px rgba(200,141,71,.14), inset 0 1px 2px rgba(0,0,0,.03);
}

.cw-pf-list{
  display:grid;
  gap:12px;
}

.cw-pf-list li{
  padding-left:0;
  list-style:none;
}

.cw-pf-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  line-height:1.7;
}

.cw-pf-question{
  flex:1 1 320px;
  min-width:0;
}

.cw-pf-choices{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  padding-top:1px;
}

.cw-pf-choices label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  font-weight:700;
  color:var(--cw-text-strong);
}

.cw-opt{
  display:block;
  margin:10px 0 0;
  font-size:calc(16px + var(--cw-font-bump, 0px));
  line-height:1.65;
  color:#5f4c3e;
  cursor:pointer;
}

.cw-opt input{
  margin-right:8px;
  accent-color:#a66b35;
}

.cw-answer-pill{
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  width:auto;
  max-width:100%;
  min-height:40px;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid transparent;
  box-shadow:0 4px 12px rgba(103,77,48,.06);
}

.cw-answer-pill--correct{
  background:var(--cw-green-bg);
  border-color:var(--cw-green-bd);
  color:var(--cw-green-tx) !important;
}

.cw-answer-pill--wrong{
  background:#f4dfdb;
  border-color:#ddb6ae;
  color:#8a2c24 !important;
}

.cw-pf-choices label.cw-answer-pill{
  margin:0;
  min-height:38px;
  padding:4px 12px;
}

.cw-opt.cw-answer-pill{
  display:flex !important;
  width:fit-content;
  max-width:100%;
  margin-top:10px;
}

.cw-fill-blank--correct{
  background:var(--cw-green-bg) !important;
  border-color:var(--cw-green-bd) !important;
  color:var(--cw-green-tx) !important;
  box-shadow:0 0 0 3px rgba(22,95,65,.08), inset 0 1px 2px rgba(0,0,0,.03);
}

.cw-fill-blank--wrong{
  background:#f4dfdb !important;
  border-color:#ddb6ae !important;
  color:#8a2c24 !important;
  box-shadow:0 0 0 3px rgba(138,44,36,.08), inset 0 1px 2px rgba(0,0,0,.03);
}

.cw-q input[type="text"],
.cw-q textarea{
  display:block;
  width:100%;
  margin-top:10px;
  padding:12px 14px;
  border:1.5px solid #c9b39a;
  border-radius:12px;
  background:#fffdfa;
  color:#5a4636;
  font:inherit;
  line-height:1.5;
  resize:vertical;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.03);
}

.cw-q textarea{
  min-height:74px;
}

.cw-scorebar{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--cw-line);
  border-radius:18px;
  background:linear-gradient(180deg,#fbf8f4 0%,#f4eee7 100%);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  box-shadow:0 4px 12px rgba(103,77,48,.05);
}

.cw-big{
  margin:0 0 6px;
  color:var(--cw-text-strong);
  font-size:calc(22px + var(--cw-font-bump, 0px));
  font-weight:700;
  line-height:1.2;
}

.cw-btnrow,
.cw-about-cta-buttons,
.cw-about-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.cw-about-actions{
  margin-top:18px;
}

.cw-about-actions--center,
.cw-about-cta-buttons{
  justify-content:center;
  align-items:center;
}

.cw-about-actions-note{
  margin:0 0 14px;
  text-align:center;
  color:#7b6552;
  font-size:calc(13px + var(--cw-font-bump, 0px));
  line-height:1.6;
}

.cw-result--compact,
.cw-inline-key{
  margin-top:14px;
}

.cw-about-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(113,67,31,.28);
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 30%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.018) 2px 4px),
    linear-gradient(180deg, #e6bc81 0%, #c88d47 55%, #a66b35 100%);
  color:#442817;
  font-size:calc(14px + var(--cw-font-bump, 0px));
  font-weight:700;
  text-decoration:none;
  box-shadow:0 8px 16px rgba(124,79,35,.16), inset 0 1px 0 rgba(255,255,255,.30);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cw-about-btn:hover{
  transform:translateY(-1px);
  filter:saturate(1.03);
  box-shadow:0 10px 20px rgba(124,79,35,.20), inset 0 1px 0 rgba(255,255,255,.34);
}

.cw-about-btn--ghost,
.cw-export-action--ghost{
  background:#fffdfa;
  box-shadow:0 4px 12px rgba(103,77,48,.08);
  color:var(--cw-text-strong);
  border:1px solid var(--cw-line);
}

.cw-key{
  padding:0;
  overflow:hidden;
}

.cw-key summary{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  color:var(--cw-text-strong);
  font-weight:700;
  background:linear-gradient(180deg, rgba(255,255,255,.60) 0%, rgba(245,239,232,.70) 100%);
  border-bottom:1px solid var(--cw-line);
}

.cw-key summary::-webkit-details-marker{
  display:none;
}

.cw-key summary::before{
  content:'▼';
  display:inline-block;
  margin-right:8px;
  font-size:11px;
  color:#9a6a34;
  transform:translateY(-1px);
}

.cw-key[open] summary::before{
  content:'▲';
}

.cw-key > *:not(summary){
  padding:16px 18px 18px;
}

.cw-result{
  color:#5f4c3e;
  line-height:1.7;
}

.cw-about-cta{
  margin-top:18px;
  padding:24px 20px;
  border:1px solid var(--cw-line);
  border-radius:22px;
  background:linear-gradient(180deg,#fbf8f4 0%,#f4eee7 100%);
  text-align:center;
  box-shadow:0 6px 18px rgba(103,77,48,.06);
}

.cw-about-cta h3{
  margin:0 0 10px;
  color:var(--cw-text-strong);
  font-size:calc(24px + var(--cw-font-bump, 0px));
  line-height:1.15;
}

.cw-about-cta p{
  max-width:760px;
  margin:0 auto 16px;
  color:#6d5a49;
  line-height:1.75;
}

.cw-answer-help{
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid var(--cw-line);
  border-radius:14px;
  background:linear-gradient(180deg,#fffdfa 0%,#f7f1ea 100%);
  color:#6d5a49;
  line-height:1.65;
  box-shadow:0 3px 10px rgba(103,77,48,.04);
}

@media (max-width:980px){
  .cw-about-grid{
    grid-template-columns:1fr;
  }

  .cw-about-nav{
    position:static;
  }
}

@media (max-width:760px){
  .cw-note{
    padding:14px;
  }

  .cw-about-nav,
  .cw-about-section-head,
  .cw-about-section-body,
  .cw-about-box,
  .cw-q,
  .cw-scorebar,
  .cw-about-cta,
  .cw-export-head,
  .cw-export-body{
    padding-left:14px;
    padding-right:14px;
  }

  .cw-about-nav-title{
    font-size:calc(20px + var(--cw-font-bump, 0px));
  }

  .cw-about-section-head{
    align-items:stretch;
    flex-direction:column;
  }

  .cw-about-section-head h2{
    font-size:calc(18px + var(--cw-font-bump, 0px));
    text-align:center;
  }

  .cw-about-badge{
    align-self:center;
  }

  .cw-big{
    font-size:calc(20px + var(--cw-font-bump, 0px));
  }

  .cw-btnrow,
  .cw-about-cta-buttons,
  .cw-about-actions{
    width:100%;
  }

  .cw-about-btn{
    width:100%;
  }

  .cw-lesson-divider .cw-about-btn{
    width:auto;
    min-width:0;
  }
}

.cw-export-host{
  position:fixed;
  left:-200vw;
  top:0;
  width:1120px;
  max-width:none;
  padding:0;
  margin:0;
  background:#fff;
  z-index:-1;
  pointer-events:none;
  opacity:0;
}

.cw-export-page{
  width:100%;
  padding:0;
  background:#fff;
  color:var(--cw-text);
}

.cw-export-page-head{
  margin:0 0 18px;
  padding:18px 20px;
  border:1px solid var(--cw-line);
  border-radius:22px;
  background:linear-gradient(180deg,#fbf8f4 0%,#f2ebe3 100%);
  box-shadow:none;
}

.cw-export-page-head h1{
  margin:0 0 8px;
  color:var(--cw-text-strong);
  font-size:30px;
  line-height:1.12;
}

.cw-export-page-head p{
  margin:0;
  color:#6d5a49;
  line-height:1.65;
  font-size:calc(15px + var(--cw-font-bump, 0px));
}

.cw-export-page .cw-about-section,
.cw-export-page .cw-about-box,
.cw-export-page .cw-q,
.cw-export-page .cw-scorebar,
.cw-export-page .cw-result,
.cw-export-page .cw-key{
  box-shadow:none;
  break-inside:avoid;
  page-break-inside:avoid;
}

.cw-export-page .cw-about-section{
  margin:0;
  background:#fff;
}

.cw-export-page .cw-about-section-head{
  background:linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(245,239,232,.78) 100%);
}

.cw-export-page .js-print-hide{
  display:none !important;
}

.cw-export-page .cw-export-inline-field{
  display:inline-flex;
  align-items:center;
  min-width:150px;
  max-width:100%;
  min-height:38px;
  margin:0 6px;
  padding:8px 10px;
  border:1.5px solid #c9b39a;
  border-radius:12px;
  background:#fffdf9 !important;
  background-image:none !important;
  color:#5a4636;
  font:inherit;
  line-height:1.2;
  vertical-align:middle;
  white-space:pre-wrap;
  box-shadow:none !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.cw-export-page .cw-export-block-field{
  display:block;
  width:100%;
  margin-top:10px;
  padding:12px 14px;
  border:1.5px solid #c9b39a;
  border-radius:12px;
  background:#fffdf9 !important;
  background-image:none !important;
  color:#5a4636;
  font:inherit;
  line-height:1.55;
  min-height:48px;
  white-space:pre-wrap;
  box-shadow:none !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.cw-export-page .cw-export-block-field--textarea{
  min-height:74px;
}

.cw-export-page .cw-export-radio{
  display:inline-flex;
  width:15px;
  height:15px;
  margin-right:8px;
  border-radius:50%;
  border:1.5px solid #9d876f;
  background:#fff;
  position:relative;
  flex:0 0 auto;
  box-shadow:none;
}

.cw-export-page .cw-export-radio--checked::after{
  content:'';
  position:absolute;
  left:50%;
  top:50%;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#5a4636;
  transform:translate(-50%, -50%);
}

.cw-export-page .cw-opt,
.cw-export-page .cw-pf-choices label{
  display:inline-flex;
  align-items:center;
}

.cw-export-page .cw-export-cta{
  margin-top:18px;
}

.cw-export-page .cw-export-cta .cw-about-cta-buttons{
  display:flex !important;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
}

.cw-export-page .cw-export-cta .cw-about-btn{
  text-decoration:none;
}

.cw-export-modal[hidden]{
  display:none !important;
}

.cw-export-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(35,24,15,.46);
  backdrop-filter:blur(4px);
}

.cw-export-dialog{
  width:min(100%, 520px);
  border:1px solid var(--cw-line);
  border-radius:24px;
  background:linear-gradient(180deg,#fbf8f4 0%,#f2ebe3 100%);
  box-shadow:0 20px 50px rgba(65,42,21,.25);
  overflow:hidden;
}

.cw-export-head{
  padding:20px 20px 14px;
  border-bottom:1px solid var(--cw-line);
  background:linear-gradient(180deg, rgba(255,255,255,.65) 0%, rgba(245,239,232,.78) 100%);
}

.cw-export-head h3{
  margin:0 0 8px;
  color:var(--cw-text-strong);
  font-size:calc(24px + var(--cw-font-bump, 0px));
  line-height:1.12;
}

.cw-export-head p{
  margin:0;
  color:#6d5a49;
  line-height:1.65;
}

.cw-export-body{
  padding:18px 20px 20px;
}

.cw-export-grid{
  display:grid;
  gap:12px;
  margin-bottom:14px;
}

.cw-export-action{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(113,67,31,.28);
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 30%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.018) 2px 4px),
    linear-gradient(180deg, #e6bc81 0%, #c88d47 55%, #a66b35 100%);
  color:#442817;
  font:inherit;
  font-size:calc(15px + var(--cw-font-bump, 0px));
  font-weight:700;
  box-shadow:0 8px 16px rgba(124,79,35,.16), inset 0 1px 0 rgba(255,255,255,.30);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cw-export-action:hover{
  transform:translateY(-1px);
  filter:saturate(1.03);
  box-shadow:0 10px 20px rgba(124,79,35,.20), inset 0 1px 0 rgba(255,255,255,.34);
}

.cw-export-action:disabled,
.cw-about-btn:disabled{
  opacity:.55;
  cursor:default;
  transform:none;
  filter:none;
  box-shadow:0 4px 10px rgba(103,77,48,.08);
}

.cw-export-foot{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:6px;
}

.cw-export-status,
.cw-export-status.is-error{
  min-height:22px;
  margin:0 0 10px;
  font-size:14px;
  line-height:1.5;
}

.cw-export-status{
  color:#6d5a49;
}

.cw-export-status.is-error{
  color:#8a2c24;
}

body.cw-export-open,
body.cw-modal-open{
  overflow:hidden;
}

@media (max-width:760px){
  .cw-export-modal{
    padding:12px;
  }

  .cw-export-head h3{
    font-size:calc(22px + var(--cw-font-bump, 0px));
  }

  .cw-export-foot{
    flex-direction:column;
  }

  .cw-export-foot .cw-export-action{
    width:100%;
  }
}


/* PDF feedback parity + unified brown buttons */
.cw-about-btn--ghost,
.cw-export-action--ghost{
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 30%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.018) 2px 4px),
    linear-gradient(180deg, #e6bc81 0%, #c88d47 55%, #a66b35 100%);
  color:#442817;
  border:1px solid rgba(113,67,31,.28);
  box-shadow:0 8px 16px rgba(124,79,35,.16), inset 0 1px 0 rgba(255,255,255,.30);
}

.cw-export-page .cw-answer-pill,
.cw-export-page .cw-pf-choices label.cw-answer-pill,
.cw-export-page .cw-opt.cw-answer-pill{
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  width:auto;
  max-width:100%;
  min-height:40px;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid transparent;
  box-shadow:none !important;
}

.cw-export-page .cw-pf-choices label.cw-answer-pill{
  min-height:38px;
  padding:4px 12px;
}

.cw-export-page .cw-answer-pill--correct,
.cw-export-page .cw-export-radio.cw-answer-pill--correct-source{
  background:#dcece4 !important;
  border-color:#b5d2c1 !important;
  color:#165f41 !important;
}

.cw-export-page .cw-answer-pill--wrong,
.cw-export-page .cw-export-radio.cw-answer-pill--wrong-source{
  background:#f4dfdb !important;
  border-color:#ddb6ae !important;
  color:#8a2c24 !important;
}

.cw-export-page .cw-answer-pill--correct .cw-export-radio,
.cw-export-page .cw-pf-choices label.cw-answer-pill--correct .cw-export-radio{
  border-color:#8ebda5;
  background:#eef6f1;
}

.cw-export-page .cw-answer-pill--wrong .cw-export-radio,
.cw-export-page .cw-pf-choices label.cw-answer-pill--wrong .cw-export-radio{
  border-color:#d3aaa1;
  background:#f9ece8;
}

.cw-export-page .cw-answer-pill--correct .cw-export-radio--checked::after,
.cw-export-page .cw-export-radio.cw-answer-pill--correct-source.cw-export-radio--checked::after{
  background:#165f41;
}

.cw-export-page .cw-answer-pill--wrong .cw-export-radio--checked::after,
.cw-export-page .cw-export-radio.cw-answer-pill--wrong-source.cw-export-radio--checked::after{
  background:#8a2c24;
}

.cw-export-page .cw-export-inline-field.cw-fill-blank--correct,
.cw-export-page .cw-export-block-field.cw-fill-blank--correct{
  background:#dcece4 !important;
  border-color:#b5d2c1 !important;
  color:#165f41 !important;
}

.cw-export-page .cw-export-inline-field.cw-fill-blank--wrong,
.cw-export-page .cw-export-block-field.cw-fill-blank--wrong{
  background:#f4dfdb !important;
  border-color:#ddb6ae !important;
  color:#8a2c24 !important;
}


/* PDF layout hardening: keep answers line-by-line and avoid split/cut blocks */
.cw-export-page .cw-opt{
  display:flex !important;
  align-items:flex-start;
  width:fit-content;
  max-width:100%;
  clear:both;
  flex-wrap:wrap;
}

.cw-export-page .cw-opt + .cw-opt{
  margin-top:10px;
}

.cw-export-page .cw-opt.cw-answer-pill{
  display:flex !important;
  width:fit-content;
  max-width:100%;
}

.cw-export-page .cw-opt .cw-export-radio,
.cw-export-page .cw-pf-choices .cw-export-radio{
  margin-top:3px;
}

.cw-export-page .cw-about-cta,
.cw-export-page .cw-export-cta,
.cw-export-page .cw-export-page-head,
.cw-export-page .cw-result,
.cw-export-page .cw-scorebar{
  break-inside:avoid;
  page-break-inside:avoid;
}

.cw-export-page .cw-about-cta h3,
.cw-export-page .cw-about-cta p,
.cw-export-page .cw-about-btn,
.cw-export-page .cw-opt,
.cw-export-page .cw-q,
.cw-export-page .cw-about-section-body,
.cw-export-page .cw-export-inline-field,
.cw-export-page .cw-export-block-field{
  overflow-wrap:break-word;
  word-break:normal;
  white-space:normal;
}


/* 0.1.8.7: mobile width + scenario scroll + title/font tuning */
@media (max-width:760px){
  .cw-board-right{
    width:100%;
    align-items:stretch;
  }
  .cw-mobile-scenario-nav,
  .cw-controls,
  .cw-progress,
  .cw-edu-lesson--voice-ready .cw-controls,
  .cw-edu-lesson--knight-classic .cw-controls{
    width:100%;
    max-width:none;
    margin-left:auto;
    margin-right:auto;
  }
  .cw-edu-lesson--knight-classic .cw-panel{
    width:100%;
  }
  .cw-edu-lesson--knight-classic .cw-tabs{
    max-height:332px;
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:4px;
    -webkit-overflow-scrolling:touch;
  }
  .cw-edu-lesson--knight-classic .cw-tabs::-webkit-scrollbar{
    width:8px;
  }
  .cw-edu-lesson--knight-classic .cw-tabs::-webkit-scrollbar-thumb{
    background:rgba(166,107,53,.35);
    border-radius:999px;
  }
}

.cw-title--knight{
  font-size:calc(30px + var(--cw-font-bump));
  line-height:1.08;
}


/* ===== Global font controls: make A− / A+ / +A+ affect the whole lesson shell ===== */
.cw-edu-lesson--legacy{
  --cw-font-bump:0px;
}

.cw-edu-lesson--legacy .cw-kicker{font-size:calc(14px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-title{font-size:calc(38px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-lead{font-size:calc(18px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-mini strong{font-size:calc(17px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-mini span{font-size:calc(15px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-font-btn{font-size:calc(14px + var(--cw-font-bump, 0px));cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;}
.cw-edu-lesson--legacy .cw-font-btn:hover{transform:translateY(-1px);filter:saturate(1.03);box-shadow:0 8px 16px rgba(103,77,48,.14);}
.cw-edu-lesson--legacy .cw-panel h2{font-size:calc(24px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-edu-scenario-item{font-size:calc(16px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-edu-scenario-item__subtitle{font-size:calc(13px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-badge{font-size:calc(14px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-mobile-title{font-size:calc(28px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-mobile-scenario-btn,
.cw-edu-lesson--legacy .cw-desktop-scenario-btn{font-size:calc(22px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-mobile-scenario-pill,
.cw-edu-lesson--legacy .cw-desktop-scenario-pill{font-size:calc(15px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-step-head p{font-size:calc(16px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-btn{font-size:calc(16px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-progress-top{font-size:calc(14px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-arrow-note{font-size:calc(14px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-arrow-note::before{font-size:calc(14px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-jump-card h3{font-size:calc(22px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-jump-link{font-size:calc(14px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-voice-btn{font-size:calc(14px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--legacy .cw-voice-volume-row{font-size:calc(14px + var(--cw-font-bump, 0px));}

.cw-edu-lesson--knight-classic .cw-title{font-size:clamp(calc(25px + var(--cw-font-bump, 0px)), calc(3vw + var(--cw-font-bump, 0px)), calc(37px + var(--cw-font-bump, 0px)));}
.cw-edu-lesson--knight-classic .cw-lead{font-size:calc(18px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--knight-classic .cw-panel h2{font-size:calc(27px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--knight-classic .cw-edu-scenario-item__title{font-size:calc(17px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--knight-classic .cw-edu-scenario-item__subtitle{font-size:calc(14px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--knight-classic .cw-arrow-note{font-size:calc(15px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--knight-classic .cw-board-head h2{font-size:calc(26px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--knight-classic .cw-step-head p{font-size:calc(16px + var(--cw-font-bump, 0px));}
.cw-edu-lesson--knight-classic .cw-jump-card h3{font-size:calc(24px + var(--cw-font-bump, 0px));}

@media (max-width:760px){
  .cw-edu-lesson--legacy .cw-title{font-size:calc(31px + var(--cw-font-bump, 0px));}
  .cw-edu-lesson--legacy .cw-lead{font-size:calc(17px + var(--cw-font-bump, 0px));}
  .cw-edu-lesson--legacy .cw-mobile-title{font-size:calc(28px + var(--cw-font-bump, 0px));}
  .cw-edu-lesson--legacy .cw-mobile-scenario-pill{font-size:calc(12px + var(--cw-font-bump, 0px));}
  .cw-edu-lesson--legacy .cw-mobile-scenario-btn{font-size:calc(18px + var(--cw-font-bump, 0px));}
  .cw-edu-lesson--legacy .cw-panel h2{font-size:calc(22px + var(--cw-font-bump, 0px));}
  .cw-edu-lesson--legacy .cw-voice-btn{font-size:calc(13px + var(--cw-font-bump, 0px));}
  .cw-edu-lesson--legacy .cw-voice-volume-row{font-size:calc(13px + var(--cw-font-bump, 0px));}
  .cw-edu-lesson--knight-classic .cw-title{font-size:calc(28px + var(--cw-font-bump, 0px));max-width:none;}
  .cw-edu-lesson--knight-classic .cw-jump-card h3{font-size:calc(22px + var(--cw-font-bump, 0px));}
}

@media (max-width:520px){
  .cw-edu-lesson--legacy .cw-mobile-title{font-size:calc(24px + var(--cw-font-bump, 0px));}
}


/* ===== Lesson appearance toggles ===== */
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"]{
  --cw-bg:#101413;
  --cw-line:#32433d;
  --cw-text:#d8dfd8;
  --cw-text-strong:#f1eadb;
  --cw-shadow:0 14px 30px rgba(0,0,0,.28);
  --cw-green-bg:#173227;
  --cw-green-bd:#2f5d49;
  --cw-green-tx:#d2f1df;
  background:linear-gradient(180deg,#121917 0%,#0d1311 100%);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-topbar{
  background:linear-gradient(180deg,#17211d 0%,#121916 100%);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-card,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-panel,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-board-shell,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-note,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-jump-card,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-mini,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-progress,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-step-head,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-arrow-note,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-voice-volume,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-nav,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-note .cw-edu-text-block{
  background:linear-gradient(180deg,rgba(28,38,34,.96) 0%,rgba(21,29,26,.96) 100%);
  border-color:var(--cw-line);
  box-shadow:0 10px 24px rgba(0,0,0,.20);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-board-head{
  background:linear-gradient(180deg,rgba(27,37,33,.95) 0%,rgba(21,29,26,.95) 100%);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-logo{
  color:#f4eadb;
  box-shadow:0 8px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.20), inset 0 -2px 0 rgba(73,42,18,.18);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-lead,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-mini span,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-step-head p,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-note p,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-note li,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-edu-scenario-item__subtitle,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-progress-top,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-voice-volume-row{
  color:#c1cbc4;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-edu-scenario-item,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-mobile-scenario-btn,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-desktop-scenario-btn,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-font-btn,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-btn--ghost{
  background:linear-gradient(180deg,#1e2925 0%,#141b18 100%);
  border-color:#3a4b44;
  color:var(--cw-text-strong);
  box-shadow:0 6px 14px rgba(0,0,0,.20);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-edu-scenario-item{
  border-left-color:#8e6d43;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-edu-scenario-item.is-active,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-font-btn.is-active,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-btn--icon.is-active{
  background:linear-gradient(180deg,#1d3a2e 0%,#14271f 100%);
  border-color:#3e6e5a;
  color:#d2f1df;
  box-shadow:0 0 0 3px rgba(45,97,72,.20),0 8px 16px rgba(0,0,0,.20);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-mobile-scenario-pill,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-desktop-scenario-pill,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-kicker,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-badge{
  background:linear-gradient(180deg,#173227 0%,#12281f 100%);
  border-color:#2f5d49;
  color:#d2f1df;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-bar{
  background:#1a2420;
  border-color:#32433d;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-jump-link{
  color:#f2e3cb;
  border-color:#6f5837;
  box-shadow:0 8px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-arrow-note::before{
  background:rgba(54,130,66,.18);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-voice-icon{
  background:rgba(210,241,223,.10);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-voice-btn.is-off .cw-voice-icon{
  background:rgba(255,120,120,.12);
}


/* ===== Dark mode refinement: lesson article, tests, CTA and jump buttons ===== */
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-jump-card,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-nav,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-section,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-box,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-q,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-key,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-result,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-scorebar,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-quote,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-cta,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-answer-help{
  background:
    radial-gradient(circle at top, rgba(38,72,57,.16) 0, rgba(38,72,57,0) 42%),
    linear-gradient(180deg, rgba(23,33,29,.98) 0%, rgba(12,18,16,.98) 100%);
  border-color:#385247;
  box-shadow:0 16px 30px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.03);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-section-head,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-key summary{
  background:linear-gradient(180deg, rgba(32,45,40,.98) 0%, rgba(20,28,25,.98) 100%);
  border-bottom-color:#385247;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-section-head h2,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-box h3,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-q .cw-qt,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-big,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-cta h3,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-nav-title,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-key summary,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-jump-card h3{
  color:#f0e4cf;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-section-body p,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-points,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-opt,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-result,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-quote,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-cta p,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-hint,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-small,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-actions-note,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-answer-help,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-export-head p,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-export-status{
  color:#c9d5cc;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-tag,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-kbd{
  background:linear-gradient(180deg, rgba(24,36,31,.96) 0%, rgba(13,20,17,.96) 100%);
  border-color:#385247;
  color:#e8dbc6;
  box-shadow:0 6px 14px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.03);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-tag--accent{
  color:#f0e4cf;
  border-color:#5c7d6d;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-pf-choices label,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-fill-list li{
  color:#f0e4cf;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-fill-blank,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-q input[type="text"],
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-q textarea{
  background:#0d1412;
  border-color:#476559;
  color:#f0e4cf;
  box-shadow:inset 0 1px 2px rgba(255,255,255,.03), 0 2px 6px rgba(0,0,0,.18);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-fill-blank:focus,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-q input[type="text"]:focus,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-q textarea:focus{
  border-color:#c59256;
  box-shadow:0 0 0 3px rgba(197,146,86,.18), inset 0 1px 2px rgba(255,255,255,.03);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-opt input,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-pf-choices input{
  accent-color:#c59256;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-jump-link,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-btn,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-nav-list a,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-export-action{
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 30%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.018) 2px 4px),
    linear-gradient(180deg, #f5e8cd 0%, #dfbf85 52%, #b77a3c 100%);
  border-color:#c69358;
  color:#4f3018 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.20);
  box-shadow:0 10px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.34);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-jump-link:hover,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-btn:hover,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-nav-list a:hover,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-export-action:hover{
  filter:saturate(1.04) brightness(1.02);
  box-shadow:0 14px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.38);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-btn--ghost,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-export-action--ghost{
  background:linear-gradient(180deg, rgba(23,34,29,.96) 0%, rgba(12,18,16,.96) 100%);
  border-color:#4a665a;
  color:#f0e4cf !important;
  text-shadow:none;
  box-shadow:0 8px 18px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-btn--ghost:hover,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-export-action--ghost:hover{
  filter:none;
  border-color:#6b897c;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-badge,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-mobile-scenario-pill,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-desktop-scenario-pill,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-kicker,
.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-badge{
  background:linear-gradient(180deg,#204736 0%,#123024 100%);
  border-color:#3f745e;
  color:#dbefdf;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-scorebar{
  align-items:center;
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-export-dialog{
  background:linear-gradient(180deg, rgba(23,33,29,.99) 0%, rgba(12,18,16,.99) 100%);
  border:1px solid #385247;
  box-shadow:0 20px 40px rgba(0,0,0,.34);
}

.cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-export-head{
  border-bottom-color:#385247;
}

@media (max-width:760px){
  .cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-section-head,
  .cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-section-body,
  .cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-box,
  .cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-q,
  .cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-about-cta,
  .cw-edu-lesson--legacy[data-cw-ui-theme="dark"] .cw-scorebar{
    border-radius:18px;
  }
}

/* 0.1.8.27: desktop dark shell extends into page gutters */
@media (min-width:761px){
  .cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"]{
    position:relative;
    z-index:0;
    background:
      radial-gradient(circle at top, rgba(38,72,57,.16) 0, rgba(38,72,57,0) 34%),
      linear-gradient(180deg,#111917 0%,#0c1210 100%);
    border:1px solid #24352f;
    border-radius:28px;
    box-shadow:
      0 20px 40px rgba(0,0,0,.26),
      0 0 0 100vmax #0f1614;
    clip-path:inset(0 -100vmax);
    overflow:hidden;
  }
}

/* 0.1.8.22: slightly wider mobile full-bleed for lesson shell */
@media (max-width:760px){
  .cw-edu-lesson--knight-classic{
    width:calc(100% + 36px);
    max-width:none;
    margin-left:-18px;
    margin-right:-18px;
    padding-left:12px;
    padding-right:12px;
    box-sizing:border-box;
  }

  .cw-edu-lesson--knight-classic .cw-body{
    width:100%;
  }
}


/* 0.1.8.25: mobile — spis treści pills centered and content-width */
@media (max-width:760px){
  .cw-about-nav-list{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    width:100%;
  }
  .cw-about-nav-list a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    max-width:100%;
    min-width:0;
    padding:15px 22px;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
    white-space:nowrap;
  }
}


/* 0.1.8.29: night mode — lower nav/jump buttons aligned with pause button tone + darker section shells */
.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-jump-card,
.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-about-nav{
  background:
    radial-gradient(circle at top, rgba(38,72,57,.14) 0, rgba(38,72,57,0) 36%),
    linear-gradient(180deg, rgba(17,25,23,.98) 0%, rgba(10,16,14,.98) 100%);
  border-color:#2f4640;
  box-shadow:0 16px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
}

.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-jump-link,
.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-about-btn,
.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-about-nav-list a,
.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-export-action{
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.34) 0, rgba(255,255,255,0) 30%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.018) 2px 4px),
    linear-gradient(180deg, #e6bc81 0%, #c88d47 55%, #a66b35 100%);
  border-color:rgba(113,67,31,.28);
  color:#442817 !important;
  text-shadow:none;
  box-shadow:0 8px 16px rgba(124,79,35,.18), inset 0 1px 0 rgba(255,255,255,.30);
}

.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-jump-link:hover,
.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-about-btn:hover,
.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-about-nav-list a:hover,
.cw-edu-lesson--knight-classic[data-cw-ui-theme="dark"] .cw-export-action:hover{
  filter:saturate(1.03);
  box-shadow:0 10px 20px rgba(124,79,35,.22), inset 0 1px 0 rgba(255,255,255,.34);
}
