:root[data-tema="escuro"] {
  color-scheme:dark; --fundo:#14181d; --superficie:#1b2027; --superficie-2:#232932;
  --borda:#333c47; --borda-forte:#47525f; --texto:#e6eaef; --texto-fraco:#b2bbc7;
  --primaria:#6bb2e2; --primaria-clara:#17303f; --ok:#5cc48d; --ok-fundo:#14301f;
  --violeta:#d5b5f4; --violeta-fundo:#30203f;
  --texto-botao:#14181d; --area-pigmento:40%;
  --aviso:#e0b063; --aviso-fundo:#322612; --erro:#f28b82; --erro-fundo:#3a1c1a;
  --sombra:0 1px 3px rgba(0,0,0,.4);
}
.controle-tema{display:flex;align-items:center;gap:.4rem;font-size:.8rem;margin:0}
.controle-tema select{width:auto;margin:0;padding:.3rem .4rem}
.login-alternativo button.secundario{background:var(--texto-fraco);border-color:var(--texto-fraco);color:var(--superficie)}
.nav-area,.subnav-area { --area-cor:color-mix(in srgb,var(--area-base) var(--area-pigmento),white); --area-fundo:color-mix(in srgb,var(--area-cor) 12%,var(--superficie)); }
.resumo-planejamento a{background:var(--superficie)}
.rodape-contatos,.producao-docente{border-color:var(--borda)}
.kanban-coluna.kanban-destino{outline-color:var(--primaria)}
.planejamento-tarefa{background:var(--superficie);border:1px solid var(--borda);border-radius:8px;padding:.75rem;margin:.75rem 0;overflow-wrap:anywhere}
.planejamento-tarefa:target{outline:3px solid var(--primaria);outline-offset:3px}
.tarefa-resumo{display:grid;grid-template-columns:12px minmax(0,1fr);gap:.35rem .4rem}
.tarefa-resumo::before{grid-column:1;grid-row:1}
.tarefa-resumo>.tarefa-titulo,.tarefa-resumo>small{grid-column:2}
.tarefa-resumo:focus-visible{outline-color:var(--primaria)}
.tarefa-detalhes fieldset{min-width:0;margin:.7rem 0;border:1px solid var(--borda);border-radius:var(--raio)}
.tarefa-detalhes .linha-campos{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.tarefa-resumo small{display:block;margin-top:.35rem;color:var(--texto-fraco);font-weight:normal}
.tarefa-resumo .tarefa-atrasada,.tarefa-atrasada{color:var(--erro);font-weight:600}
.planejamento-kanban{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}
.planejamento-controles,.planejamento-painel{padding:1.25rem;scroll-margin-top:1rem}
.planejamento-controles h2,.planejamento-painel h2{font-size:1.125rem}
.planejamento-nova-tarefa{margin-bottom:1.25rem;scroll-margin-top:1rem}
.planejamento-nova-tarefa>summary{margin:0}
.planejamento-nova-tarefa[open]>summary{margin-bottom:1rem}
.planejamento-controles-linha{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:1.25rem}
.planejamento-controles .acoes{margin:0}
.planejamento-controles .planejamento-legenda{margin-bottom:.5rem}
.planejamento-relatorios-nota{font-size:.85rem;margin:.75rem 0 1rem}
.planejamento-visualizacoes{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem 1.25rem;padding-top:1rem;border-top:1px solid var(--borda)}
.planejamento-visualizacoes .planejamento-legenda{margin:0}
.planejamento-retorno{margin:.75rem 0}
.planejamento-retorno:empty{margin:0}
.planejamento-painel-topo{display:flex;justify-content:space-between;align-items:flex-start;gap:1.25rem;padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid var(--borda)}
.planejamento-painel-topo>div:first-child{flex:1;min-width:0}
.planejamento-painel-topo h2{margin:0 0 .5rem}
.planejamento-painel-topo>h2{margin:0}
.planejamento-painel-topo .subtitulo{margin:0}
.planejamento-ordenacao{display:grid;gap:.35rem;flex:0 0 260px;font-size:.85rem}
.planejamento-ordenacao label{margin:0}
.planejamento-painel .kanban-coluna{margin:0;box-shadow:none}
.planejamento-painel .kanban-coluna>h3{margin-top:0}
.kanban-ordem{display:flex;align-items:center;gap:.35rem;margin-top:.6rem}
.kanban-ordem button,.kanban-puxador{padding:.25rem .6rem;min-height:32px}
.kanban-puxador{cursor:grab;user-select:none}
.kanban-puxador:active{cursor:grabbing}
.kanban-inserir-antes{border-top:4px solid var(--primaria)}
.kanban-inserir-depois{border-bottom:4px solid var(--primaria)}
.planejamento-filtros{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.7rem}
.planejamento-filtros .acoes{grid-column:1/-1}
.planejamento-checklist{list-style:none;margin:.6rem 0;padding:0}
.planejamento-checklist label{display:flex;gap:.5rem;align-items:baseline}
.planejamento-checklist input{width:auto}
.checklist-editor-linha{display:flex;gap:.35rem;align-items:center;margin:.4rem 0}
.checklist-editor-linha input[type=text]{flex:1;min-width:0}
.checklist-editor-linha input[type=checkbox]{width:auto}
.tempo-status-iniciar{--tempo-cor:var(--aviso)}
.tempo-status-execucao{--tempo-cor:var(--primaria)}
.tempo-status-aguardando{--tempo-cor:var(--aviso)}
.tempo-status-concluida{--tempo-cor:var(--ok)}
.tempo-status-cancelada,.tempo-status-arquivada{--tempo-cor:var(--texto-fraco)}
.timeline-mensal .tempo-barra{background:var(--tempo-cor,var(--primaria));display:block;border:0;padding:0;min-height:16px}
.timeline-mensal .tempo-prevista{background:transparent;border:2px dashed var(--tempo-cor,var(--primaria))}
.lista-prazos td{vertical-align:top}
.lista-prazos textarea{min-width:160px}
.planejamento-paineis [hidden]{display:none}
.planejamento-projetos{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
@media(max-width:1100px){.planejamento-kanban{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.planejamento-kanban{grid-template-columns:1fr}.lista-prazos{min-width:700px}.planejamento-controles,.planejamento-painel{padding:1rem}.planejamento-painel-topo{flex-direction:column}.planejamento-ordenacao{flex-basis:auto;width:100%}}
@media print{.planejamento-controles,.planejamento-painel{padding:0}}
@media print{:root[data-tema],:root:not([data-tema="claro"]){--fundo:white;--superficie:white;--superficie-2:#f0f2f5;--texto:#1c2530;--texto-fraco:#5c6675;--borda:#999;--primaria:#1c5d8c;--primaria-clara:#e5f0f8;--ok:#1f7a4d;--ok-fundo:#e6f5ed;--violeta:#7040a0;--violeta-fundo:#f1e8fa;--aviso:#9a6400;--aviso-fundo:#fdf3e0;--erro:#b3261e;--erro-fundo:#fdeceb;--area-pigmento:100%;--texto-botao:white;color-scheme:light}.controle-tema,.kanban-ordem{display:none}}
