.workshop h1{font-size:clamp(30px,4vw,46px);margin:12px 0}.workshop-eyebrow{font-size:12px;letter-spacing:.12em;color:#008c91;font-weight:700}.workshop-lead{font-size:20px;color:#60708b}.workshop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:30px 0 42px}.workshop-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;padding:26px;border:1px solid #d7e1f4;border-radius:20px;background:#fff;transition:transform .15s,box-shadow .15s}.workshop-choice:hover{transform:translateY(-3px);box-shadow:0 10px 28px #26385e12}.workshop-choice strong{font-size:23px}.workshop-choice>span:not(.workshop-example){color:#61728b;line-height:1.5}.workshop-example{display:flex;align-items:center;justify-content:center;width:100%;min-height:110px;border-radius:14px;background:#edf2ff;color:#2855d9;font-size:clamp(23px,3vw,36px);font-weight:700}.workshop-gaps .workshop-example{background:#e9f8f4;color:#157d71}.workshop-order .workshop-example{background:#fff4e4;color:#986023}.workshop-lesson .workshop-example{background:#f1eafe;color:#7441b1}.workshop-choice small{color:#2855d9}.workshop-recent{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.workshop-recent button{display:grid;gap:8px;text-align:left;padding:20px;overflow-wrap:anywhere}.workshop-recent small{color:#61728b}.workshop-fields{border:0;padding:0;min-width:0}.workshop-fields label{display:grid;gap:8px;margin:14px 0}.workshop-item{margin:20px 0;padding:24px;background:white;border:1px solid #d7e1f4;border-radius:18px}.workshop-item textarea{min-height:90px;resize:vertical}.workshop-item .heading{gap:10px;flex-wrap:wrap}.workshop-letters,.workshop-tiles{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.workshop-letters button{font-size:28px;min-width:46px}.workshop-letters small{display:block;font-size:10px}.workshop-tiles>span,.workshop-tiles button,.workshop-answer-row button{border:1px solid #c6d4ed;border-radius:10px;background:white;padding:12px 18px;font-size:clamp(18px,2.6vw,32px);overflow-wrap:anywhere;max-width:100%}.workshop-letters .selected,.workshop-answer-letters .selected{background:#e7f6f0;border-color:#178c77;color:#166552}.workshop-word-preview{font-size:22px;overflow-wrap:anywhere}.workshop-hint-image{max-height:120px;max-width:100%;object-fit:contain}.workshop-player{background:white;padding:24px;border:1px solid #dae3f4;border-radius:18px}.workshop-player header,.workshop-player footer{gap:14px;flex-wrap:wrap}.workshop-full{width:100%;height:100%;overflow:auto;border-radius:0;box-sizing:border-box;background:#fff}.workshop-round{padding:24px 0;min-height:260px}.workshop-play-image{display:block;max-width:90%;height:clamp(100px,26vh,280px);object-fit:contain;margin:0 auto 20px}.workshop-answer-letters{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;margin:28px 0}.workshop-answer-letters>*{font-size:clamp(26px,5vw,68px);padding:4px;min-width:30px}.workshop-answer-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:110px;background:#f2f5ff;border:2px dashed #b6c7ea;border-radius:16px;padding:20px;overflow-wrap:anywhere}.workshop-answer-row .drop-before{border-left:5px solid #253453}.workshop-answer-row.drop-end{border-right:5px solid #253453}.workshop-hint{text-align:center;font-size:22px}.workshop-result{font-size:20px;color:#265d67}.lesson-dialog .workshop-item{padding:16px}.workshop-player .buttons{flex-wrap:wrap}.workshop-player [draggable=true]{cursor:grab}.workshop-player [draggable=true]:active{cursor:grabbing}@media(max-width:650px){.workshop-grid,.workshop-recent{grid-template-columns:1fr}.workshop-choice{padding:20px}.workshop-player{padding:14px}.workshop-item{padding:16px}}

.workshop-answer-letters>*,.workshop-round .workshop-tiles>*,.workshop-answer-row button,.workshop-answer-row strong{font-family:TaskLatin,Montserrat,sans-serif}
.workshop-fields input,.workshop-fields textarea{box-sizing:border-box;width:100%}

.gaps-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gaps-stage .hand-zone{min-width:0;min-height:360px;display:flex;flex-direction:column;padding:14px}.gaps-stage .gaps-hint>button{align-self:flex-start}.gaps-stage.is-swapped .gaps-word{order:2}.gaps-word-content{flex:1;display:flex;flex-direction:column;justify-content:center;background:white;border-radius:12px;margin-top:12px;min-width:0}.gaps-stage .hand-image{flex:1;min-height:240px;margin-top:12px}.gaps-stage .hand-image img{height:100%;max-height:55vh;width:100%;object-fit:contain}.gaps-stage .workshop-tiles{justify-content:center}.gaps-swap{text-align:center;margin-bottom:12px}.gaps-stage .workshop-answer-letters{gap:3px}.gaps-stage .workshop-answer-letters>*{font-size:clamp(24px,3.5vw,58px);min-width:24px}.workshop-full .gaps-stage .hand-zone{min-height:55vh}.workshop-player .superquiz-player{margin-top:16px}@media(max-width:600px){.gaps-stage{gap:8px}.gaps-stage .hand-zone{padding:8px;min-height:300px}.gaps-stage .workshop-answer-letters>*{font-size:24px;min-width:18px;padding:2px}}

.pair-gap-details{margin:18px 0;padding:16px;background:#f3f6ff;border:1px solid #d4def5;border-radius:14px}.pair-gap-details summary{cursor:pointer;font-weight:600}.pair-gap-row{padding:14px 0;border-bottom:1px solid #e0e7f2}.pair-gap-row small{display:block;color:#697991;margin-top:8px}.pair-gap-settings .workshop-letters{margin:10px 0}

.gap-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gap-options-grid label,.gap-choice-label{display:grid;gap:6px;margin:10px 0}.gap-presets{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.gap-presets strong{min-width:75px}.gaps-stage .workshop-answer-letters .gap-fragment{width:var(--gap-width,3ch);min-width:3ch;max-width:100%;white-space:nowrap}.pair-gap-row details{margin-top:14px}.pair-gap-row summary{cursor:pointer}@media(max-width:550px){.gap-options-grid{grid-template-columns:1fr}}

.schulte-frame{display:block;width:100%;height:850px;max-height:88dvh;border:1px solid #dbe4f4;border-radius:18px;background:#f5f7fb;margin:16px 0}.lesson-player .schulte-frame{height:75dvh}.gap-live-preview{padding:16px;background:#f5f8ff;border-radius:14px;margin:14px 0}.gap-live-word{font-size:28px;margin:6px 0 14px}.gap-choice-chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.gap-choice-chips button,.gap-choice-chips .gap-correct{font-size:22px;min-width:46px;padding:8px 12px;border:1px solid #cedbf0;border-radius:10px;background:white}.gap-choice-chips .gap-correct{border-color:#179e8a}.gap-custom-letter{display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}.gap-custom-letter input{width:100px}.gap-choice-chips small{font-size:12px;margin-left:8px}

/* Embedded Schulte uses the page scroll, including its save action. */
.schulte-frame,.lesson-player .schulte-frame{max-height:none;height:auto;overflow:hidden}
.shell:has(.schulte-frame) .sticky,div:has(>.schulte-frame)~.sticky,div:has(>section .schulte-frame)>.sticky{position:static;margin-top:20px}

/* Schulte desktop: use the available window, not a long embedded document. */
body:has(.schulte-editor) .shell{max-width:none;width:100%;padding:6px 18px;margin:0 auto}
body:has(.schulte-editor) .top{padding-top:6px;padding-bottom:6px;gap:8px}
body:has(.schulte-editor) .nav{margin-top:0;gap:5px}
.schulte-editor>.breadcrumbs{margin:3px 0;font-size:11px}
.schulte-editor>label{display:flex;align-items:center;gap:12px;font-size:12px}
.schulte-editor>label input{max-width:600px;padding:7px 12px;margin:0;font-size:16px}
.schulte-editor>p.muted{margin:5px 0;font-size:11px}
.schulte-frame{margin:6px 0;border-radius:12px;max-height:none}
.shell:has(.schulte-editor) .sticky{position:static;margin:5px 0 0;padding:8px 12px;min-height:0}
.lesson-pdf-dialog{width:min(700px,95vw);max-height:88dvh;overflow:auto;text-align:left}.lesson-pdf-dialog input:not([type=checkbox]){width:100%;margin:8px 0 14px}.lesson-pdf-selection{display:grid;gap:10px;margin:18px 0}.lesson-pdf-selection label{display:flex;gap:12px;align-items:center}.lesson-pdf-selection input{width:auto}.lesson-pdf-selection small{display:block;color:#687890;margin-top:4px}.lesson-pdf-dialog .buttons{margin-top:20px}

/* Reference layout: a compact document row, native settings scroll, large canvas. */
body:has(.shell .schulte-editor)>.top,body:has(.shell .schulte-editor) #root>.top,body:has(.shell .schulte-editor) .top{display:none}
body:has(.schulte-editor) .shell{max-width:1680px;padding:0 16px;box-sizing:border-box}
.schulte-editor{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding-top:8px}
.schulte-editor>.schulte-back{font-size:13px;padding:7px 12px}
.schulte-editor>label{margin:0;font-size:12px;gap:10px}
.schulte-editor>label input{width:300px;max-width:50vw;padding:8px 12px;font-size:14px;box-sizing:border-box}
.schulte-editor>div{width:100%;min-width:0}
.schulte-editor .schulte-frame{margin:0;border-radius:16px;box-sizing:border-box}
.shell:has(.schulte-editor) .sticky{margin:6px 0 0;padding:6px 12px;box-sizing:border-box}
.shell:has(.schulte-editor) .sticky button{padding:8px 12px}
@media(max-width:740px){body:has(.schulte-editor) .shell{padding:0 6px}.schulte-editor{gap:6px;padding-top:6px}.schulte-editor>label input{width:220px}.shell:has(.schulte-editor) .sticky>.muted{display:none}}

.reading-frame{display:block;width:100%;border:1px solid #dbe4f4;border-radius:16px;background:#f1f4fa}.reading-editor .reading-title{display:flex;align-items:center;gap:16px;margin:10px 0;flex-wrap:wrap}.reading-title label{display:flex;align-items:center;gap:10px;font-size:13px}.reading-title input{width:300px;max-width:55vw}.shell:has(.reading-editor){max-width:1660px}.reading-editor~.sticky{position:sticky;bottom:0;z-index:5}.reading-player{min-width:0}
.lesson-pdf-dialog{width:min(1420px,96vw);max-height:94dvh;padding:22px;overflow:auto}.lesson-pdf-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.lesson-pdf-top h2{margin:0 0 5px}.lesson-pdf-top .buttons{margin:0;flex-wrap:wrap}.lesson-pdf-workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:24px}.lesson-pdf-settings{max-height:68dvh;overflow:auto;padding-right:12px}.lesson-pdf-settings>label{display:block;margin-bottom:14px}.lesson-pdf-settings select{width:100%;padding:10px;border:1px solid #cbd5e8;border-radius:8px}.lesson-pdf-settings .pdf-check{display:flex;align-items:flex-start;gap:10px}.lesson-pdf-dialog input[type=checkbox]{width:auto;flex-shrink:0}.lesson-pdf-settings .muted{font-size:12px;line-height:1.5}.pdf-logo-preview{display:block;max-width:180px;max-height:110px;object-fit:contain;margin:10px auto}.lesson-pdf-preview{background:#edf1f8;border-radius:12px;padding:16px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px}.lesson-pdf-preview-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pdf-page-preview{display:block;max-width:100%;width:auto;height:auto;max-height:64dvh;object-fit:contain;box-shadow:0 3px 14px #19264018}.lesson-pdf-selection>div{padding:10px 0;border-bottom:1px solid #e1e7f0}.lesson-pdf-selection .pdf-break{font-size:12px;margin:10px 0 0 24px}.lesson-pdf-dialog>p[role=status]{font-size:13px;margin-bottom:0}@media(max-width:800px){.lesson-pdf-workspace{grid-template-columns:1fr}.lesson-pdf-settings{max-height:none;overflow:visible;padding:0}.lesson-pdf-top{align-items:flex-start;flex-direction:column}.lesson-pdf-preview{min-height:250px}.pdf-page-preview{max-height:none;width:100%}}

.reading-frame{display:block;width:100%;border:0;background:white;min-height:500px}.reading-title{display:flex;gap:16px;align-items:end;margin:16px 0}.reading-title label{flex:1}.reading-title input{width:100%}

/* Скорочтение: спокойная вариация каталожной системы математики. */
.speed-reading-catalog { max-width: 1480px; margin-inline: auto; }
.speed-reading-catalog .workshop-eyebrow { color: #34786b; letter-spacing: .08em; }
.speed-reading-catalog h1 { font-size: 34px; line-height: 1.2; margin: 8px 0; color: #293640; }
.speed-reading-catalog > p:not(.workshop-eyebrow) { max-width: 620px; margin: 0; color: #65736f; font-size: 16px; line-height: 1.55; }
.speed-reading-catalog > section { margin-top: 30px; padding-top: 16px; border-top: 1px solid #d9e3e0; }
.speed-reading-catalog > section > h2,
.speed-reading-catalog > h2 { margin: 0 0 14px; color: #293640; font-size: 19px; line-height: 1.35; }
.speed-reading-catalog .workshop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.speed-reading-catalog .workshop-recent { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 0; }
.speed-reading-catalog .workshop-choice { min-width: 0; min-height: 0; padding: 0; gap: 0; border: 1px solid #d9e3e0; border-radius: 18px; background: #fff; box-shadow: none; overflow: hidden; }
.speed-reading-catalog .workshop-recent > button { min-width: 0; padding: 16px; gap: 9px; border: 1px solid #d9e3e0; border-radius: 10px; background: #fff; box-shadow: none; }
.speed-reading-catalog .workshop-choice:hover,
.speed-reading-catalog .workshop-recent > button:hover { transform: translateY(-1px); border-color: #a9c2ba; box-shadow: 0 3px 12px #233c3510; }
.speed-reading-catalog .workshop-choice .speed-generator-preview { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; height: 140px; border-bottom: 1px solid #dfe8e2; background: #edf5f1; color: #34786b; }
.speed-reading-catalog .workshop-choice:nth-child(3n+2) .speed-generator-preview { background: #f7f3ec; }
.speed-reading-catalog .workshop-choice:nth-child(3n) .speed-generator-preview { background: #eef3f7; }
.speed-reading-catalog .speed-generator-preview svg { display: block; width: 100%; max-width: 320px; height: 140px; }
.speed-reading-catalog .speed-generator-body { display: flex; flex-direction: column; align-items: stretch; flex: 1; width: 100%; min-height: 195px; padding: 20px; }
.speed-reading-catalog .workshop-choice strong { color: #293640; font-size: 20px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.speed-reading-catalog .speed-generator-description { margin: 12px 0 20px; color: #65736f; font-size: 13px; line-height: 1.8; }
.speed-reading-catalog .speed-generator-open { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #e6ece8; color: #34786b; font-size: 12px; font-weight: 600; }
.speed-reading-catalog .speed-generator-open > span { font-size: 17px; }
.speed-reading-catalog .workshop-recent strong { color: #293640; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.speed-reading-catalog .workshop-recent small { color: #65736f; font-size: 13px; line-height: 1.5; }
.speed-reading-catalog .workshop-choice:focus-visible,
.speed-reading-catalog .workshop-recent > button:focus-visible { outline: 3px solid #a9c9bf; outline-offset: 2px; }
@media (max-width: 1080px) { .speed-reading-catalog .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .speed-reading-catalog h1 { font-size: 30px; }
  .speed-reading-catalog > section { margin-top: 22px; padding-top: 13px; }
  .speed-reading-catalog .workshop-grid,
  .speed-reading-catalog .workshop-recent { grid-template-columns: minmax(0, 1fr); }
  .speed-reading-catalog .workshop-recent > button { padding: 14px; }
  .speed-reading-catalog .speed-generator-body { min-height: 180px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .speed-reading-catalog .workshop-choice { transition: none; } .speed-reading-catalog .workshop-choice:hover { transform: none; } }
@media(max-width:700px){body:has(.speed-reading-catalog) .top .account-chip{min-width:0;max-width:100%;flex-wrap:wrap;gap:6px}}
/* Keep editor actions after long embedded worksheets instead of covering them. */
.shell:has(iframe.reading-frame[src*="/reading-tools/"])>.sticky{position:static;background:#fff}
@media(max-width:700px){.shell:has(iframe.reading-frame[src*="/reading-tools/"])>.sticky{flex-wrap:wrap;gap:8px;padding:10px 12px}.shell:has(iframe.reading-frame[src*="/reading-tools/"])>.sticky>span{flex:1 1 100%}.shell:has(iframe.reading-frame[src*="/reading-tools/"])>.sticky>.buttons{width:100%;justify-content:flex-end;flex-wrap:nowrap}}
