.docente-editor {
 width: min(calc(100% - 32px), 960px);
 max-width: none;
 max-height: calc(100dvh - 32px);
 padding: 0;
 overflow: hidden;
 border: 1px solid #d9e0e9;
 border-radius: 14px;
 color: #243247;
 background: #fff;
 box-shadow: 0 16px 48px #192e4933;
}
.docente-editor[open] { display: flex; flex-direction: column; }
.docente-editor::backdrop { background: #172a4270; }
.docente-editor > header, .docente-ferramentas, .docente-editor > footer { flex: none; }
.docente-editor > header { padding: 16px 20px; }
.docente-editor > header h2 { margin: 0; font-size: 1.08rem; font-weight: 650; }
.docente-ferramentas {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 3px 0;
 padding: 6px 10px;
 border-block: 1px solid #e4e9f1;
 background: #fff;
}
.docente-grupo:not([hidden]) { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; }
.docente-grupo:not([hidden]) + .docente-grupo { border-inline-start: 1px solid #e1e6ee; }
.docente-comando, .docente-menu {
 height: 36px;
 border: 1px solid transparent;
 border-radius: 6px;
 background: transparent;
 color: inherit;
 font: inherit;
 cursor: pointer;
}
.docente-comando { display: inline-grid; width: 36px; padding: 0; place-items: center; }
.docente-menu { background-color: #f3f5f8; padding: 0 5px 0 7px; font-size: .84rem; }
.docente-menu-icone { position: relative; }
.docente-menu-icone .docente-menu { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; }
.docente-alinhamentos {
 position: fixed;
 inset: auto;
 margin: 0;
 padding: 4px;
 border: 1px solid #d9e0e9;
 border-radius: 8px;
 background: #fff;
 color: inherit;
 box-shadow: 0 6px 18px #192e4926;
}
.docente-alinhamentos:popover-open { display: grid; gap: 2px; }
.docente-menu option { color: #263630; background: white; }
.docente-comando:hover, .docente-menu:hover { background: #eef2f7; }
.docente-comando[aria-pressed="true"] { background: #d9eaff; border-color: #b7d5fb; color: #0756ad; }
.docente-comando:focus-visible, .docente-menu:focus-visible, .docente-menu-icone:focus-within { outline: 2px solid #246ed2; outline-offset: 1px; }
.docente-icone {
 width: 20px;
 height: 20px;
 fill: none;
 stroke: currentColor;
 stroke-width: 1.85;
 stroke-linecap: round;
 stroke-linejoin: round;
}
.docente-editor > footer {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: flex-end;
 gap: 8px;
 padding: 10px 16px;
 border-top: 1px solid #e4e9f1;
 background: white;
}
.docente-editor > footer span { flex: 1; font-size: .84rem; color: #526176; }
.docente-editor > footer span:empty { display: none; }
.docente-pagina { flex: 1 1 56vh; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px clamp(16px, 5vw, 58px); outline-offset: -3px; }
@media (pointer: coarse) {
 .docente-comando { width: 44px; }
 .docente-comando, .docente-menu { height: 44px; }
}
@media (max-width: 550px), (pointer: coarse) and (max-height: 550px) {
 .docente-editor {
  position: fixed;
  inset: calc(var(--docente-topo, 0px) + 6px) 0 auto;
  margin: 0 auto;
  width: calc(100% - 12px);
  height: calc(var(--docente-altura, 100dvh) - 12px);
  max-height: none;
 }
 .docente-editor > header { padding: 9px 12px; }
 .docente-ferramentas {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px 5px;
  scrollbar-width: thin;
  scrollbar-color: #aebfd5 transparent;
 }
 .docente-grupo:not([hidden]) { flex: none; padding-inline: 3px; }
 .docente-comando { width: 44px; }
 .docente-comando, .docente-menu { height: 44px; }
 .docente-menu { max-width: 84px; text-overflow: ellipsis; }
 .docente-pagina { flex-basis: 0; padding: 14px; }
 .docente-editor > footer { padding: 5px 8px; gap: 4px; }
 .docente-editor > footer .btn { min-height: 40px; padding: 5px 8px; font-size: .8rem; }
 .docente-editor > footer span { flex-basis: 100%; }
}
.docente-documento.plano-editorial {
 color: #182822;
 font-size: .95rem;
 line-height: 1.55;
}
.docente-documento.plano-editorial h1 {
 margin: 0 0 .45em;
 color: #000;
 font-size: clamp(1.75rem, 5vw, 2.375rem);
 font-weight: 800;
 letter-spacing: -.02em;
 line-height: 1.1;
 text-align: left;
}
.docente-documento.plano-editorial :is(h2, h3) {
 margin: 1.25em 0 .45em;
 padding: 0;
 border: 0;
 color: var(--plano-cor);
 font-weight: 750;
 line-height: 1.3;
}
.docente-documento.plano-editorial h2 { font-size: 1.22rem; }
.docente-documento.plano-editorial h3 { font-size: 1.05rem; }
.docente-documento p { margin: 0 0 .55em; }
.docente-documento img { max-width: 100%; height: auto; }
.docente-documento table { border-collapse: collapse; table-layout: fixed; width: 100%; font-size: .9rem; line-height: 1.45; }
.docente-documento th, .docente-documento td { padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.docente-documento table:not(.plano-etapas table) :is(th, td) { border: 1px solid var(--plano-faixa); }
.docente-documento thead :is(th, td) { color: #fff; background: var(--plano-cor); }
.docente-documento tbody tr:nth-child(odd) { background: var(--plano-faixa); }
.docente-documento tbody th span { display: block; margin-top: 3px; font-weight: 500; }
.docente-documento td p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
 .docente-documento th, .docente-documento td { padding: 8px; }
 .docente-documento table { font-size: .85rem; }
}
.docente-documento [data-formula="fracao"] { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.15; padding: 0 .15em; }
.docente-documento [data-formula="fracao"] > span:first-child { border-bottom: 1px solid currentColor; }
.docente-status:empty, .docente-documento:empty { display: none; }
.docente-editor .docente-pagina:empty { display: block; }
.sequencia-editada > header, .sequencia-editada > section, .sequencia-editada > #ativBody > :not(.no-print) { display: none; }
@media print {
 #ativPage > .ativbar.no-print { display: none !important; }
 body.ativ-on .page { padding: 0; }
 .docente-editor, .docente-status { display: none !important; }
 .docente-documento table { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
 .docente-documento img, .docente-documento tr { break-inside: avoid; }
}

.docente-documento [data-formula="raiz"]::before { content: '√'; }
.docente-documento [data-formula="raiz"] > span { border-top: 1px solid currentColor; }

.docente-documento [data-formula] { font-family: 'Cambria Math', 'STIX Two Math', serif; }
.docente-documento [data-formula="potencia"] > span + span { font-size: .72em; vertical-align: super; }
.docente-documento [data-formula="indice"] > span + span { font-size: .72em; vertical-align: sub; }
.docente-equacao { width: min(560px, calc(100% - 20px)); max-height: 88dvh; box-sizing: border-box; overflow: auto; border: 1px solid #d9e0e9; border-radius: 14px; padding: 0; color: #243247; background: white; }
.docente-equacao::backdrop { background: #172a4259; }
.docente-equacao form { display: grid; gap: 12px; padding: 16px; }
.docente-equacao h2 { margin: 0; font-size: 1.1rem; }
.docente-equacao label { display: grid; gap: 4px; min-width: 0; font-weight: 600; }
.docente-equacao input { width: 100%; box-sizing: border-box; min-height: 38px; padding: 6px 8px; border: 1px solid #b9c9da; border-radius: 6px; color: inherit; background: #fff; font-size: 16px; }
.docente-equacao-paleta { min-width: 0; background: #f5f8fc; border: 1px solid #d9e0e9; border-radius: 8px; }
.docente-equacao-abas { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid #d9e0e9; }
.docente-equacao-abas button { flex: 0 0 auto; min-height: 34px; padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }
.docente-equacao-abas button[aria-selected="true"] { background: #e4efff; border-color: #aecaf2; color: #164f99; font-weight: 650; }
.docente-equacao-simbolos { display: flex; flex-wrap: wrap; gap: 4px; align-content: start; min-height: 48px; padding: 6px; }
.docente-equacao-simbolos[hidden] { display: none; }
.docente-equacao-simbolos button { min-width: 34px; min-height: 34px; padding: 3px 7px; border: 1px solid #d9e0e9; border-radius: 5px; background: #fff; color: inherit; font: 1.05rem 'Cambria Math', 'STIX Two Math', serif; cursor: pointer; }
.docente-equacao-simbolos button:hover, .docente-equacao-simbolos button[aria-pressed="true"] { background: #e4efff; border-color: #aecaf2; color: #164f99; }
@media (pointer: coarse) {
 .docente-equacao-abas button, .docente-equacao-simbolos button { min-height: 40px; }
 .docente-equacao-simbolos button { min-width: 40px; }
}
.docente-equacao :focus-visible { outline: 2px solid #246ed2; outline-offset: 1px; }
.docente-equacao-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.docente-equacao-previa { display: grid; gap: 4px; padding: 8px 12px; border-radius: 6px; background: #f3f5f8; overflow-wrap: anywhere; }
.docente-equacao-previa output { font-size: 1.35rem; text-align: center; }
.docente-equacao footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media print { .docente-equacao { display: none !important; } }

.docente-documento img { object-fit: fill; }
.docente-pagina img { cursor: grab; touch-action: none; }
.docente-movendo-imagem, .docente-movendo-imagem img { cursor: grabbing; user-select: none; }
.docente-redimensionar-imagem {
 position: absolute;
 z-index: 2;
 transform: translate(-50%, -50%);
 width: 26px;
 height: 26px;
 padding: 0;
 border: 0;
 background: transparent;
 cursor: nwse-resize;
 touch-action: none;
 user-select: none;
}
.docente-redimensionar-imagem[data-diagonal="secundaria"] { cursor: nesw-resize; }
.docente-redimensionar-imagem::after {
 content: '';
 display: block;
 width: 10px;
 height: 10px;
 margin: auto;
 border: 1px solid #175fae;
 background: #fff;
 box-shadow: 0 0 2px #142a4659;
}
.docente-redimensionar-imagem:focus-visible { outline: 2px solid #246ed2; outline-offset: 2px; }
.docente-destino-imagem { position: absolute; z-index: 2; width: 2px; background: #246ed2; pointer-events: none; }
@media (pointer: coarse) {
 .docente-redimensionar-imagem { width: 34px; height: 34px; }
}
