/* V25.29.32 - layouts de estudo. Sem alterar os dados das aulas. */
.rw-yt-layout-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 14px;padding:11px 13px;border:1px solid #d7dfd9;border-radius:12px;background:#f6f9f6}
.rw-yt-layout-label{font-size:12px;font-weight:800;color:#334c3c;white-space:nowrap}
.rw-yt-layout-modes{display:flex;align-items:stretch;flex-wrap:wrap;gap:4px;padding:4px;border-radius:10px;background:#e8efea}
.rw-yt-layout-option{min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#3e5546;font:inherit;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}
.rw-yt-layout-option:hover{background:#f8fcf9}
.rw-yt-layout-option.is-active{border-color:#c8dacf;background:#fff;color:#165d3b;box-shadow:0 1px 5px rgba(19,48,29,.10)}
.rw-yt-layout-option:focus-visible{outline:2px solid #2f9866;outline-offset:2px}
.rw-yt-view-grid[data-layout="split"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.rw-yt-view-grid[data-layout="wide"]{grid-template-columns:minmax(0,7fr) minmax(290px,3fr)}
.rw-yt-view-grid[data-layout="wide"]>.rw-yt-frame{aspect-ratio:auto;min-height:420px}
.rw-yt-view-grid[data-layout="video"],.rw-yt-view-grid[data-layout="pdf"]{grid-template-columns:minmax(0,1fr)}
.rw-yt-view-grid[data-layout="video"]>.rw-yt-frame{aspect-ratio:16/9;min-height:0}
.rw-yt-view-grid[data-layout="video"]>.rw-yt-pdf-box{display:none!important}
.rw-yt-view-grid[data-layout="pdf"]>.rw-yt-frame{display:none!important}
.rw-yt-view-grid[data-layout="pdf"]>.rw-yt-pdf-box{min-height:580px}
.rw-yt-view-grid[data-layout="pdf"] .rw-yt-pdf-frame{height:min(78vh,1000px);min-height:480px}
html.dark .rw-yt-layout-controls{background:#26342b;border-color:#4a5d50}
html.dark .rw-yt-layout-label{color:#d7e8dc}
html.dark .rw-yt-layout-modes{background:#18251d}
html.dark .rw-yt-layout-option{color:#d0ded3}
html.dark .rw-yt-layout-option:hover{background:#334438}
html.dark .rw-yt-layout-option.is-active{background:#d9efe0;color:#1c4a31;border-color:#70997d}
@media(max-width:980px){
 .rw-yt-view-grid[data-layout="split"],.rw-yt-view-grid[data-layout="wide"]{grid-template-columns:minmax(0,1fr)}
 .rw-yt-view-grid[data-layout="split"]>.rw-yt-frame,.rw-yt-view-grid[data-layout="wide"]>.rw-yt-frame{aspect-ratio:16/9;min-height:0}
}
@media(max-width:600px){
 .rw-yt-layout-controls{align-items:stretch;padding:9px}
 .rw-yt-layout-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .rw-yt-layout-option{white-space:normal}
 .rw-yt-view-grid[data-layout="pdf"]>.rw-yt-pdf-box{min-height:0}
 .rw-yt-view-grid[data-layout="pdf"] .rw-yt-pdf-frame{height:65vh;min-height:320px}
}

/* Focus mode for study: expand the video without touching saved learning data. */
.rw-yt-focus-toggle{min-height:38px;margin-left:auto;padding:8px 14px;border:1px solid #b8d1c0;border-radius:9px;background:#fff;color:#175d3d;font:inherit;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}
.rw-yt-focus-toggle:hover{background:#e7f6ec;border-color:#77a88a}
.rw-yt-focus-toggle:focus-visible{outline:2px solid #2f9866;outline-offset:2px}
.rw-yt-focus-toggle.is-active{border-color:#28583d;background:#214932;color:#fff}
html.dark .rw-yt-focus-toggle{background:#27392e;border-color:#668573;color:#d7efdf}
html.dark .rw-yt-focus-toggle.is-active{background:#c3e8cd;color:#153923}
html.rw-yt-focus .revalida-sidebar,
html.rw-yt-focus .rw28-topbar{display:none!important}
html.rw-yt-focus main.rw-yt-mode{padding:8px!important;width:100%;min-width:0;max-width:none!important;min-height:100dvh}
html.rw-yt-focus main.rw-yt-mode > :not(#rw-youtube-lessons){display:none!important}
html.rw-yt-focus #rw-youtube-lessons{display:block!important;width:100%;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-top,
html.rw-yt-focus #rw-youtube-lessons .rw-yt-side,
html.rw-yt-focus #rw-youtube-lessons .rw-yt-status,
html.rw-yt-focus #rw-youtube-lessons .rw-yt-player-head,
html.rw-yt-focus #rw-youtube-lessons .rw-yt-actions,
html.rw-yt-focus #rw-youtube-lessons .rw-yt-hint{display:none!important}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-layout{display:block!important}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-content{width:100%;max-width:none!important;padding:8px;border:0;border-radius:12px}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-layout-controls{position:sticky;top:6px;z-index:40;margin:0 0 12px;border-color:#bbd2c2;background:rgba(246,249,246,.97);box-shadow:0 6px 24px rgba(17,35,23,.10);backdrop-filter:blur(12px)}
html.dark.rw-yt-focus #rw-youtube-lessons .rw-yt-layout-controls{background:rgba(31,46,36,.97);border-color:#567060}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="video"]>.rw-yt-frame{aspect-ratio:16/9}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="split"]>.rw-yt-frame,
html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="wide"]>.rw-yt-frame{min-height:calc(100dvh - 126px)}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="split"]>.rw-yt-pdf-box,
html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="wide"]>.rw-yt-pdf-box{min-height:calc(100dvh - 126px)}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid:not([data-layout="video"]) .rw-yt-pdf-frame{flex:1;min-height:400px;height:calc(100dvh - 270px);max-height:none}
@media(max-width:980px){html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="split"]>.rw-yt-frame,html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="wide"]>.rw-yt-frame{min-height:0;aspect-ratio:16/9}html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="split"]>.rw-yt-pdf-box,html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="wide"]>.rw-yt-pdf-box{min-height:0}}
@media(max-width:600px){.rw-yt-focus-toggle{margin-left:0;width:100%}html.rw-yt-focus main.rw-yt-mode{padding:4px!important}html.rw-yt-focus #rw-youtube-lessons .rw-yt-content{padding:5px}html.rw-yt-focus #rw-youtube-lessons .rw-yt-layout-controls{top:2px;padding:8px}html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid:not([data-layout="video"]) .rw-yt-pdf-frame{height:65vh;min-height:320px}}

/* Custom video/PDF split slider - optional, responsive, no DOM re-render. */
.rw-yt-ratio-control{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:10px;row-gap:5px;max-width:100%;margin-left:0;padding:6px 9px;border:1px solid #d4e1d8;border-radius:10px;background:#edf5ef}
.rw-yt-ratio-control[hidden]{display:none!important}
.rw-yt-ratio-caption{font-size:11px;color:#405c47;font-weight:800;white-space:nowrap}
.rw-yt-ratio-value{font-size:11px;font-weight:800;color:#1f6842;white-space:nowrap;font-variant-numeric:tabular-nums}
.rw-yt-ratio-slider{width:clamp(90px,13vw,200px);height:20px;margin:0;accent-color:#328c5b;cursor:ew-resize}
.rw-yt-ratio-slider:focus-visible{outline:2px solid #328c5b;outline-offset:3px}
.rw-yt-view-grid[data-layout="custom"]{grid-template-columns:minmax(0,var(--rw-video-fr,65fr)) minmax(0,var(--rw-pdf-fr,35fr))}
.rw-yt-view-grid[data-layout="custom"]>.rw-yt-frame{aspect-ratio:auto;min-height:420px}
.rw-yt-view-grid[data-layout="custom"]>.rw-yt-pdf-box{min-height:420px}
html.dark .rw-yt-ratio-control{background:#26362c;border-color:#526958}
html.dark .rw-yt-ratio-caption{color:#e0eadd}
html.dark .rw-yt-ratio-value{color:#a4e6b7}
html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="custom"]>.rw-yt-frame,
html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="custom"]>.rw-yt-pdf-box{min-height:calc(100dvh - 146px)}
@media(max-width:980px){
 .rw-yt-view-grid[data-layout="custom"]{grid-template-columns:minmax(0,1fr)}
 .rw-yt-view-grid[data-layout="custom"]>.rw-yt-frame,
 html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="custom"]>.rw-yt-frame{aspect-ratio:16/9;min-height:0}
 .rw-yt-view-grid[data-layout="custom"]>.rw-yt-pdf-box,
 html.rw-yt-focus #rw-youtube-lessons .rw-yt-view-grid[data-layout="custom"]>.rw-yt-pdf-box{min-height:0}
}
@media(max-width:600px){.rw-yt-ratio-control{width:100%}.rw-yt-ratio-slider{flex:1;min-width:90px}}
