/* Только четыре уточнённых блока PWA; навигация экранов прежняя. */
.about-video-grid.pwa-video-rail{display:flex;flex-wrap:nowrap;gap:14px;max-width:100%;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin-inline:0;padding:2px 2px 12px;scroll-padding-inline:2px}
.pwa-video-rail .video-surface.about-video-card{flex:0 0 min(70%,170px);width:170px;height:260px;max-height:260px;aspect-ratio:auto;scroll-snap-align:start;margin:0}
.pwa-video-rail:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.lesson-view .lesson-intro.pwa-lesson-intro{max-width:65ch;margin:26px 0 32px;text-align:left}
.lesson-view .pwa-lesson-intro p{font-family:var(--font,inherit);font-size:16px;font-weight:400;line-height:1.85;letter-spacing:0;margin:0;color:var(--ink);text-align:left}
.lesson-view .pwa-lesson-intro p+p{margin-top:16px}
.pwa-friends-slider{min-width:0;width:100%}
.pwa-friends-panel[hidden]{display:none!important}
.pwa-friends-stage .video-surface{margin:0;aspect-ratio:16/9;overflow:hidden}
.pwa-friends-stage .video-surface>img,.pwa-friends-stage .video-surface>video.auto-video{width:100%;height:100%;max-height:100%;object-fit:contain}
.pwa-friends-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.pwa-friends-choice{display:flex;flex-direction:column;gap:8px;min-width:0;padding:8px;background:var(--cream);border:1px solid var(--line);border-radius:8px;text-align:left;color:var(--ink);font:inherit;font-size:12px;line-height:1.5;cursor:pointer;touch-action:manipulation}
.pwa-friends-choice img{display:block;width:100%;height:62px;object-fit:cover;border-radius:4px}
.pwa-friends-choice[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--soft)}
.pwa-friends-choice:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Главная PWA: исходная палитра до переносов desktop, без новых размеров/сеток. */
[data-design="color-09"] #overview{--paper:#f7f4eb;--cream:#fdfaf2;--ink:#102f29;--muted:#53675e;--accent:#306b5b;--soft:#eeede3;--line:#d7dbce;--gold:#a84a22;--persimmon:#ed7843;--jade:#356d5b;--on-jade:#fffdf5;background:var(--paper)}
[data-design="color-09"] #overview .announcement{border-color:var(--accent)}

/* Одна строка каждого слайдера, подпись под каждым материалом. */
.pwa-video-rail .pwa-media-slide{flex:0 0 min(72%,190px);width:190px;min-width:0;scroll-snap-align:start}
.pwa-video-rail .pwa-media-slide .about-video-card{width:100%;height:240px;max-height:240px;margin:0}
.pwa-video-rail .pwa-slide-caption{display:block;font-size:13px;line-height:1.6;font-weight:400;color:var(--ink);margin:10px 0 0;text-align:left;overflow-wrap:anywhere}
.pwa-video-rail .video-control-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pwa-video-rail .play-icon svg{display:block;width:18px;height:18px;fill:currentColor;flex:none}
.pwa-author-rail.pwa-video-rail{display:flex;flex-wrap:nowrap;gap:14px;max-width:100%;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:2px 2px 12px;margin:22px 0 0}
.pwa-author-rail .pwa-media-slide{flex-basis:min(86%,320px);width:320px}
.pwa-author-rail .selected-video,.pwa-author-rail .pwa-author-photo{display:block;position:relative;width:100%;height:220px;aspect-ratio:auto;margin:0;overflow:hidden;border-radius:12px;background:var(--soft)}
.pwa-author-rail .selected-video>img,.pwa-author-rail .pwa-author-photo>img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain}

/* Управляемые ленты: нативный touch + мышь + клавиатура, без расширения диалога. */
.screen-app .topic-dialog .about-videos,.screen-app .topic-dialog .author-works{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.pwa-video-rail{touch-action:pan-x pan-y;cursor:grab;user-select:none}
.pwa-video-rail.is-dragging{cursor:grabbing;scroll-snap-type:none}
.pwa-video-rail img{-webkit-user-drag:none;user-select:none}
.pwa-rail-controls{display:flex;justify-content:flex-end;gap:8px;margin:4px 0 14px}
.pwa-rail-controls button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border:1px solid var(--line);border-radius:50%;background:var(--cream);color:var(--ink);touch-action:manipulation;cursor:pointer}
.pwa-rail-controls button svg{width:20px;height:20px}
.pwa-rail-controls button:disabled{opacity:.35;cursor:default}
.pwa-rail-controls button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
