.av-study-overlay { position:fixed; inset:0; z-index:11000; background:rgba(0,0,0,.65); align-items:center; justify-content:center; padding:24px; }
.av-study-overlay.hidden { display:none !important; }
.av-study-dialog { width:min(900px,100%); max-height:calc(100dvh - 48px); overflow:auto; padding:24px; border:1px solid var(--av-ui-border); border-radius:20px; background:var(--av-ui-surface-1); color:var(--av-ui-text); }
.av-study-dialog header { display:flex; align-items:center; gap:16px; justify-content:space-between; }
.av-study-dialog h2 { margin:4px 0 0; font-size:24px; font-weight:700; }
.av-study-dialog h3 { margin:6px 0; font-size:17px; line-height:1.4; overflow-wrap:anywhere; font-weight:650; }
.av-study-dialog p,.av-study-discover p { color:var(--av-ui-text-muted); font-size:16px; line-height:1.6; margin:12px 0; }
.av-study-dialog small { color:var(--av-ui-text-muted); font-size:13px; }
.av-study-dialog button,.av-study-dialog select,.av-study-dialog input { min-height:44px; font-size:16px; border:1px solid var(--av-ui-border); border-radius:10px; color:var(--av-ui-text); background:var(--av-ui-surface-2); padding:10px 14px; }
.av-study-dialog button { cursor:pointer; font-weight:600; }
.av-study-dialog button:disabled { opacity:.5; cursor:default; }
.av-study-dialog button:focus-visible,.av-study-dialog input:focus-visible,.av-study-dialog select:focus-visible { outline:3px solid var(--av-ui-text-direction); outline-offset:3px; }
.av-study-dialog header button { min-width:44px; font-size:24px; }
.av-study-dialog label { display:block; font-size:14px; font-weight:600; margin:14px 0 6px; }
.av-study-search { display:flex; gap:8px; }
.av-study-search input { flex:1; min-width:0; }
.av-study-search button,.av-study-tabs button[aria-pressed="true"] { background:var(--av-ui-surface-soft); color:var(--av-ui-text-direction); }
.av-study-dialog select { width:100%; }
.av-study-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.av-study-result { display:flex; align-items:center; gap:20px; justify-content:space-between; padding:18px 0; border-bottom:1px solid var(--av-ui-border); }
.av-study-result>div { flex:1; min-width:0; }
.av-study-result>button { flex-shrink:0; }
.av-study-empty { padding:20px; background:var(--av-ui-surface-2); border-radius:12px; }
.av-study-dialog footer { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:16px; }
.av-study-dialog .av-study-note { font-size:13px; }
.av-study-discover h2 { font-size:20px; font-weight:650; }
.av-study-discover {padding:20px;}
.av-study-discover button {min-height:44px;font-size:14px;}
body.av-role-aluno .av-topic-breadcrumb { padding:16px 20px; color:var(--av-ui-text-muted); background:var(--av-ui-surface-1); border-bottom:1px solid var(--av-ui-border); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
body.av-role-aluno .av-topic-guide { margin:16px 0; padding:16px 20px; border:1px solid var(--av-ui-border); border-radius:12px; background:var(--av-ui-surface-2); color:var(--av-ui-text); }
body.av-role-aluno .av-topic-guide summary { min-height:44px; display:flex; align-items:center; cursor:pointer; font-weight:650; font-size:16px; }
body.av-role-aluno .av-topic-guide p { margin:10px 0; font-size:16px; line-height:1.65; color:var(--av-ui-text-muted); }
@media(max-width:600px) {
 .av-study-overlay { padding:12px; }
 .av-study-dialog { padding:20px; max-height:calc(100dvh - 24px); border-radius:16px; }
 .av-study-result { align-items:stretch; flex-direction:column; gap:8px; }
 .av-study-result>button { text-align:left; }
 .av-study-tabs>button { flex:1 1 auto; }
}
.md-leitor {background:var(--av-ui-surface-1)!important;color:var(--av-ui-text);}
.md-leitor>div:first-child,.md-leitor #ebLeitorRodape {background:var(--av-ui-surface-2)!important;border-color:var(--av-ui-border)!important;}
.md-leitor>div:first-child div[style*="color:#fff"] {color:var(--av-ui-text)!important;font-size:16px!important;}
.md-leitor #ebLeitorPaginas {background:var(--av-ui-surface-soft)!important;}
.md-leitor #ebLeitorStatus,.md-leitor #ebProgPct,.md-leitor>div:first-child div[style*="color:#9a90b0"] {color:var(--av-ui-text-muted)!important;}
.md-leitor button {background:var(--av-ui-surface-soft)!important;color:var(--av-ui-text)!important;min-height:44px;}
.md-leitor #ebLeitorRodape {flex-wrap:wrap;}
.av-reader-confirm,.av-reader-recovery button {padding:10px 16px;border:1px solid var(--av-ui-border);border-radius:10px;font-size:16px;}
.av-reader-recovery {padding:16px 20px;font-size:16px;line-height:1.5;color:var(--av-ui-text);background:var(--av-ui-surface-1);}
.av-reader-recovery p {margin:0 0 10px;}
.av-video-recovery {position:absolute;bottom:20px;left:20px;right:20px;padding:20px;background:var(--av-ui-surface-1);border:1px solid var(--av-ui-border);border-radius:12px;color:var(--av-ui-text);font-size:16px;line-height:1.6;}
.av-video-recovery button {min-height:44px;padding:10px 16px;border:1px solid var(--av-ui-border);border-radius:10px;background:var(--av-ui-surface-soft);color:var(--av-ui-text);}
#vizTrilhaBody {position:relative;}
.av-material-filter-summary {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0;padding:16px;background:var(--av-ui-surface-2);border:1px solid var(--av-ui-border);border-radius:12px;color:var(--av-ui-text);font-size:16px;line-height:1.5;}
.av-material-filter-summary button {padding:10px 16px;min-height:44px;border:1px solid var(--av-ui-border);border-radius:10px;background:var(--av-ui-surface-soft);color:var(--av-ui-text);}
/* A nota automática do simulado não inclui a avaliação dissertativa. */
.sim961-result-objective{display:inline-flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 auto}
.sim961-result-objective small{font-size:12px;line-height:1.3;color:var(--av-ui-text-muted);font-weight:600}
