/* Área Estudar: melhorias locais, preserva o resto do aplicativo. */
.rw-yt-study-shell{display:block;min-width:0}
.rw-yt-notes-panel{min-width:0;margin-top:15px;padding:14px;border:1px solid #dae5dc;border-radius:14px;background:#fff}
.rw-yt-view-grid[data-layout="split"]{grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr)}
.rw-yt-view-grid[data-layout="wide"]{grid-template-columns:minmax(0,7fr) 12px minmax(0,3fr)}
.rw-yt-view-grid[data-layout="custom"]{grid-template-columns:minmax(0,var(--rw-video-fr,65fr)) 12px minmax(0,var(--rw-pdf-fr,35fr))}
.rw-yt-view-grid[data-layout="video"],.rw-yt-view-grid[data-layout="pdf"]{grid-template-columns:minmax(0,1fr)}
.rw-yt-divider{position:relative;width:12px;min-width:12px;display:block;cursor:col-resize;touch-action:none;align-self:stretch;border-radius:10px;background:#dfeae2;outline:none;transition:background .15s}
.rw-yt-divider:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:54px;max-height:45%;border-radius:5px;background:repeating-linear-gradient(to bottom,#478360 0px,#478360 5px,transparent 5px,transparent 9px)}
.rw-yt-divider:hover,.rw-yt-divider:focus-visible{background:#b9dbc6;box-shadow:0 0 0 2px #40946a}
.rw-yt-view-grid[data-layout="video"]>.rw-yt-divider,
.rw-yt-view-grid[data-layout="pdf"]>.rw-yt-divider{display:none!important}
.rw-yt-notes-position{min-height:38px;padding:8px 11px;border:1px solid #b8d1c0;border-radius:9px;background:#fff;color:#1d5b39;font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.rw-yt-notes-position:hover{background:#eaf5ed}.rw-yt-notes-position:focus-visible{outline:2px solid #2f9866;outline-offset:2px}
.rw-yt-notes-position[aria-pressed="true"]{background:#e2f3e7;border-color:#62a178}
.rw-yt-save-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:750;color:#4b6753;white-space:nowrap}
.rw-yt-save-badge:before{content:"";display:inline-block;width:7px;height:7px;flex:none;border-radius:50%;background:#b2c5b7}
.rw-yt-save-badge[data-state="saving"]:before{background:#d8a53c}
.rw-yt-save-badge[data-state="saved"]:before{background:#2e9561}
.rw-yt-save-badge[data-state="error"]{color:#ad3333}
.rw-yt-save-badge[data-state="error"]:before{background:#ad3333}
.rw-yt-save-inline{margin-left:auto}
.rw-yt-save-inline + .rw-yt-notes-position + .rw-yt-focus-toggle{margin-left:0}
.rw-yt-study-shell[data-notes-position="side"]{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(330px,1fr);align-items:start;gap:14px}
.rw-yt-study-shell[data-notes-position="side"]>.rw-yt-view-grid{min-width:0;grid-template-columns:minmax(0,1fr)!important}
.rw-yt-study-shell[data-notes-position="side"] .rw-yt-divider{display:none!important}
.rw-yt-study-shell[data-notes-position="side"] .rw-yt-frame{aspect-ratio:16/9!important;min-height:0!important}
.rw-yt-study-shell[data-notes-position="side"] .rw-yt-pdf-box{min-height:0!important}
.rw-yt-study-shell[data-notes-position="side"] .rw-yt-pdf-frame{height:360px!important;min-height:240px!important}
.rw-yt-study-shell[data-notes-position="side"]>.rw-yt-notes-panel{position:sticky;top:84px;margin:0;max-height:calc(100dvh - 98px);overflow-y:auto}
.rw-yt-study-shell[data-notes-position="side"] .rw-yt-notebook{min-height:calc(100dvh - 300px)}
.rw-yt-formatbar-pro{gap:5px;flex-wrap:wrap;align-items:center}
.rw-yt-formatbar-pro .rw-yt-format-heading{align-self:center;margin-left:3px;color:#587263;font-size:10px;font-weight:850;letter-spacing:.02em}
.rw-yt-formatbar-pro .rw-yt-format-button{transition:background .14s,color .14s,border-color .14s;min-height:35px}
.rw-yt-formatbar-pro .rw-yt-format-button.is-active{background:#256947!important;color:#fff!important;border-color:#256947!important;box-shadow:inset 0 0 0 1px #256947}
.rw-yt-formatbar-pro .rw-yt-format-button.is-active svg{stroke:currentColor}
.rw-yt-formatbar-pro .rw-yt-pro-select{max-width:130px;min-height:35px}
.rw-yt-formatbar-pro .rw-yt-highlight-choice{display:grid;place-items:center;min-width:30px;min-height:35px;padding:4px 6px;border:1px solid #b7c7bb;border-radius:7px;background:var(--rw-highlight)!important;color:#1d3625!important;font-weight:900;font-size:14px;cursor:pointer}
.rw-yt-formatbar-pro .rw-yt-highlight-choice.is-active{outline:3px solid #2a6b48!important;outline-offset:1px}
.rw-yt-formatbar-pro .rw-yt-template-select{max-width:140px}
.rw-yt-pdf-suggestion{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px;padding:9px;border:1px solid #b7d7c3;border-radius:10px;background:#eaf6ee;color:#245138;font-size:12px;font-weight:750}
.rw-yt-pdf-suggestion[hidden]{display:none!important}
.rw-yt-pdf-suggestion span{flex:1 1 150px}
.rw-yt-suggest-accept,.rw-yt-suggest-dismiss{min-height:32px;padding:6px 9px;border-radius:7px;border:1px solid #accab7;background:white;color:#155b34;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.rw-yt-suggest-accept{background:#255b3d;color:white}
.rw-yt-suggest-accept:hover{background:#357752}
html.dark .rw-yt-notes-panel{background:#242c27;color:#edf5ef;border-color:#526456}
html.dark .rw-yt-notes-position{background:#27392e;color:#d7efdf;border-color:#668573}
html.dark .rw-yt-divider{background:#2c4738}html.dark .rw-yt-divider:after{background:repeating-linear-gradient(to bottom,#82c79b 0px,#82c79b 5px,transparent 5px,transparent 9px)}
html.dark .rw-yt-save-badge{color:#cee3d2}
html.dark .rw-yt-formatbar-pro .rw-yt-format-heading{color:#c1d9c8}
html.dark .rw-yt-formatbar-pro .rw-yt-format-button.is-active{background:#3b865c!important;border-color:#92c9a2!important}
html.dark .rw-yt-pdf-suggestion{background:#254333;border-color:#547f62;color:#e4f3e7}
@media(max-width:1180px){
 .rw-yt-study-shell[data-notes-position="side"]{grid-template-columns:minmax(0,1.3fr) minmax(285px,1fr)}
 .rw-yt-formatbar-pro .rw-yt-format-heading{display:none}
}
@media(max-width:980px){
 .rw-yt-view-grid[data-layout="split"],.rw-yt-view-grid[data-layout="wide"],.rw-yt-view-grid[data-layout="custom"]{grid-template-columns:minmax(0,1fr)}
 .rw-yt-view-grid>.rw-yt-divider{display:none!important}
 .rw-yt-study-shell[data-notes-position="side"]{display:block}
 .rw-yt-study-shell[data-notes-position="side"]>.rw-yt-notes-panel{position:static;max-height:none;margin-top:14px;overflow:visible}
 .rw-yt-study-shell[data-notes-position="side"] .rw-yt-notebook{min-height:240px}
}
@media(max-width:600px){
 .rw-yt-save-inline{margin-left:0}
 .rw-yt-notes-position{flex:1}
 .rw-yt-formatbar-pro{padding:6px}
 .rw-yt-formatbar-pro .rw-yt-pro-select{max-width:none;flex:1}
 .rw-yt-notes-panel{padding:9px}
}
