/* ==========================================================================
   Edital — estilos da aba (Edital V2). A tela nova usa o prefixo `edt-` e só tokens do design system; o legado `.edital-*`
   (styles.css) não é mais usado pela aba. Carregado depois de styles.css e antes de mobile-shell.css. Ficam aqui, no
   começo, as duas regras que servem a outras telas (selo "Edital ativo" do gerenciador e a variante positiva da
   confirmação de concluir/reabrir).
   ========================================================================== */

/* Etiqueta "Edital ativo" (gerenciador de editais): a versão verde/roxa de contorno se confundia com os botões Editar e
   Excluir do mesmo cartão. Agora é um selo ciano preenchido, sem cara de botão. */
.exam-manager-card .exam-manager-active-badge {
  border: 0;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.35);
}
html[data-theme="light"] .exam-manager-card .exam-manager-active-badge { background: rgba(8, 145, 178, 0.12); color: #0e7490; box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.35); }

/* Confirmações do Edital: variante positiva (concluir/reabrir) do diálogo de exclusão. */
.history-delete-confirm.is-positive .history-confirm-icon { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.history-delete-confirm.is-positive .history-confirm-record { color: #86efac; }
html[data-theme="light"] .history-delete-confirm.is-positive .history-confirm-icon { color: #15803d; }
html[data-theme="light"] .history-delete-confirm.is-positive .history-confirm-record { color: #15803d; }

/* ==========================================================================
   Edital V2 — boas-vindas, colar conteúdo e "Seu edital está pronto" (prefixo `edt-`, sem tocar no legado `.edital-*`).
   Compatível com o design system (tokens em design-system.css; os apelidos abaixo derivam deles), sem cor nova.
   Faixas: <= 900px celular (coluna única); 901–1800px sidebar fixa; >= 1801px desenho aprovado.
   ========================================================================== */
.edt-page,
html[data-theme="light"] .edt-page {
  --edt-attention: var(--warning);
  --edt-hair: color-mix(in srgb, var(--card-border) 55%, transparent);
  --edt-hair-strong: var(--card-border);
  --edt-row-hover: var(--surface-soft);
}

.edt-page [hidden] { display: none !important; }
/* ds-page-shell é um grid de coluna implícita "auto": com cargo/disciplina compridos a coluna crescia até o texto (nowrap do
   seletor) e a página ganhava rolagem horizontal. A coluna única é limitada à largura do contêiner. */
.edt-page { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.edt-page .edt-num { font-variant-numeric: tabular-nums; }
.edt-page .edt-muted { color: var(--muted); font-size: 12.5px; }
.edt-page :is(button, input, select, textarea, summary, [role="button"]):focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- ligações e botões pequenos ---------- */
.edt-page .edt-link { border: 0; background: none; padding: 0; color: var(--primary); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.edt-page .edt-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.edt-page .edt-icon-btn { width: 30px; height: 30px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.edt-page .edt-icon-btn:hover { background: var(--edt-row-hover); color: var(--ink); }
.edt-page .edt-icon-btn svg, .edt-page .edt-chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edt-page .ds-status-badge.edt-soon { font-size: 11.5px; }
.edt-page .edt-badge-attention { color: var(--edt-attention); border-color: color-mix(in srgb, var(--edt-attention) 45%, transparent); background: color-mix(in srgb, var(--edt-attention) 10%, transparent); cursor: pointer; }
.edt-page .edt-badge-attention svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: 4px; }
.edt-page .edt-badge-ok { color: var(--success); }

/* ---------- 1. boas-vindas ---------- */
.edt-welcome { max-width: 980px; margin: 28px auto 0; text-align: center; }
.edt-welcome h2 { font-size: 24px; margin: 0 0 8px; }
.edt-welcome > p { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }
.edt-welcome > p.edt-welcome-prefill { margin: -12px 0 22px; font-size: 13.5px; color: var(--text-secondary); }
.edt-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); text-align: left; }
.edt-choice { padding: 24px; display: grid; gap: 12px; align-content: start; }
.edt-choice.is-soon { opacity: 0.78; }
.edt-choice-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--primary-2); color: var(--primary); }
.edt-choice-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edt-choice-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.edt-choice h3 { margin: 0; font-size: 17px; }
.edt-choice p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.edt-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.edt-checks li { display: flex; gap: 8px; align-items: flex-start; }
.edt-checks svg { width: 15px; height: 15px; margin-top: 2px; color: var(--success); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.edt-choice-cta { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.edt-choice-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edt-welcome-back { justify-self: start; margin: 6px 0 0; text-align: left; }
.edt-page .edt-welcome-back .edt-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 12.5px; min-height: 28px; }
.edt-page .edt-welcome-back .edt-link:hover { color: var(--ink); }
.edt-welcome-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edt-welcome-foot { margin-top: 18px; font-size: 12.5px; color: var(--muted); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 2. colar conteúdo ---------- */
.edt-page .edt-title-input { width: 100%; border: 0; background: transparent; box-shadow: none; font: inherit; font-size: 28px; font-weight: 800; color: var(--ink); padding: 0; margin: 4px 0 10px; border-radius: 0; height: auto; }
.edt-page .edt-title-input::placeholder { color: var(--text-muted); }
.edt-page .edt-title-input:focus { outline: 0; }
.edt-page .edt-field-error { margin: -4px 0 10px; font-size: 12.5px; color: var(--danger); }
.edt-fields { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.edt-fields label { display: inline-flex; gap: 8px; align-items: center; }
.edt-page .edt-fields input { border: 0; border-bottom: 1px solid var(--edt-hair-strong); background: transparent; box-shadow: none; border-radius: 0; height: 30px; color: var(--ink); font: inherit; font-size: 13.5px; min-width: 120px; padding: 0 2px; }
.edt-page .edt-fields input:focus { outline: 0; border-bottom-color: var(--primary); }
.edt-page .edt-fields input[type="date"] { min-width: 140px; }
.edt-ref-note { font-size: 12.5px; color: var(--muted); }

.edt-compose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--card-border); border-radius: var(--radius-lg); align-items: start;
  background: linear-gradient(90deg, transparent calc(50% - 1px), var(--edt-hair) calc(50% - 1px), var(--edt-hair) 50%, transparent 50%), var(--surface); }
.edt-mtabs { display: none; }
.edt-c-left { padding: 18px 20px 20px; display: grid; gap: 12px; position: sticky; top: 0; min-width: 0; }
.edt-c-right { min-width: 0; padding: 18px 20px 20px; }
.edt-c-tool { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.edt-c-tool strong { font-size: 15px; }
.edt-pdf-soon { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.edt-org { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; min-height: 20px; font-size: 12.5px; color: var(--muted); }
.edt-org svg { width: 14px; height: 14px; color: var(--success); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.edt-org summary { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.edt-org ul { margin: 4px 0 0; padding-left: 18px; }

/* Editor do texto colado: a camada de destaque fica atrás da caixa, com a mesma fonte, tamanho e quebra de linha;
   o destaque é só de cor (nada de negrito, que mudaria a largura e desalinharia o cursor). */
.edt-ed-wrap { position: relative; height: 560px; }
.edt-page .edt-hl, .edt-page textarea.edt-paste { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 14px 16px; font-family: "Aptos", "Segoe UI", system-ui, sans-serif; font-size: 13.5px; font-weight: 400; line-height: 1.75; letter-spacing: 0; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; border: 1px solid transparent; border-radius: var(--radius-lg); box-sizing: border-box; scrollbar-width: thin; scrollbar-gutter: stable; }
.edt-page .edt-hl { overflow: hidden; color: var(--text-secondary); background: var(--input-bg); border-color: var(--edt-hair-strong); pointer-events: none; }
.edt-page textarea.edt-paste { background: transparent; color: transparent; caret-color: var(--ink); resize: none; overflow-y: auto; box-shadow: none; }
.edt-page textarea.edt-paste:focus { outline: 0; border-color: var(--primary); }
.edt-page textarea.edt-paste::placeholder { color: var(--text-muted); }
.edt-page textarea.edt-paste::selection { background: color-mix(in srgb, var(--warning) 42%, transparent); color: transparent; }
.edt-hl .edt-hl-block { color: var(--edt-attention); }
.edt-hl .edt-hl-disc { color: var(--primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 5px; }
.edt-hl .edt-hl-num { color: var(--text-muted); }
.edt-hl .edt-hl-long { color: var(--ink); background: color-mix(in srgb, var(--edt-attention) 16%, transparent); border-radius: 3px; }

/* ---------- prévia ---------- */
.edt-pv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.edt-pv-top strong { font-size: 15px; }
.edt-pv-tabs { margin-bottom: 12px; }
.edt-page .edt-pv-tabs .ds-segmented-option, .edt-page .edt-mtabs .ds-segmented-option { font-weight: 600; font-size: 12.5px; }
/* Seletores segmentados do Edital: todas as opções com a largura da maior (colunas iguais, texto centralizado) e o
   seletor só do tamanho do conteúdo, mesmo dentro de uma coluna que estica os itens (campos do celular). Os de largura
   total no celular (Texto/Prévia, abas da prévia) sobrescrevem mais abaixo. */
.edt-page .ds-segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-self: flex-start; justify-self: start; }
.edt-page .ds-segmented-option { text-align: center; white-space: nowrap; }
.edt-formats { display: grid; gap: 18px; font-size: 13px; color: var(--text-secondary); padding-top: 6px; }
.edt-formats h4 { margin: 0 0 4px; font-size: 13px; color: var(--ink); }
.edt-formats pre { margin: 6px 0 0; font-family: "Cascadia Mono", Consolas, monospace; font-size: 11.5px; line-height: 1.55; color: var(--muted); white-space: pre-wrap; padding-left: 12px; border-left: 2px solid var(--edt-hair-strong); }
.edt-pv-box { border: 1px solid var(--card-border); border-radius: var(--radius-lg); overflow: hidden; }
.edt-pv-band { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-soft); border-top: 1px solid var(--card-border); }
.edt-pv-band:first-child { border-top: 0; }
.edt-pv-item { border-top: 1px solid var(--edt-hair); }
.edt-pv-band + .edt-pv-item { border-top: 0; }
.edt-pv-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto 30px; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13.5px; }
.edt-page .edt-chev { width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); border: 0; background: none; padding: 0; cursor: pointer; }
.edt-chev svg { transition: transform var(--motion-fast) ease; }
.edt-pv-item.is-open .edt-chev svg { transform: rotate(90deg); }
.edt-pv-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.edt-pv-count { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.edt-page select.edt-weight { height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--input-border); background: var(--input-bg); font: inherit; font-size: 12px; padding: 0 6px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.edt-pv-band select.edt-weight { border-color: transparent; background: transparent; color: var(--muted); }
.edt-page select.edt-weight.is-inherited { color: var(--text-secondary); font-weight: 400; }
.edt-page .edt-warn { display: flex; gap: 6px; align-items: flex-start; margin: -2px 12px 8px 44px; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 12px; color: var(--edt-attention); cursor: pointer; }
.edt-warn svg { width: 14px; height: 14px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.edt-warn .edt-go { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.edt-pv-topics { margin: 2px 12px 10px 44px; padding: 0 0 0 18px; list-style: decimal; font-size: 12.5px; color: var(--text-secondary); display: grid; gap: 3px; }
.edt-pv-topics ul { margin: 2px 0 4px; padding-left: 16px; list-style: disc; color: var(--muted); }
.edt-pv-t { color: inherit; font: inherit; }
.edt-pv-t[data-edt]:hover, .edt-pv-t[data-edt]:focus-visible { cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.edt-pv-t.is-long { color: var(--edt-attention); }
.edt-long-tag, .edt-tag { font-size: 11px; font-weight: 700; color: var(--edt-attention); margin-left: 6px; }
.edt-tag { margin-left: 8px; }
.edt-pv-ign { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.edt-pv-ign summary { cursor: pointer; }
.edt-pv-ign ul { margin: 6px 0 0; padding-left: 18px; }

/* Revisar alterações: só o que o Leruma transformou. */
/* Cada alteração é um bloco próprio (fundo suave + contorno fino) separado dos vizinhos por espaço, não por linha; o
   nome editável só ganha sublinhado tracejado fraco (sólido no foco), para não competir com a divisão entre os blocos. */
.edt-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.edt-change { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--edt-hair); border-radius: var(--radius-md); background: var(--surface-soft); justify-items: start; }
.edt-change-where { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.edt-page input.edt-change-name { width: 100%; height: 34px; border: 0; border-bottom: 1px dashed var(--edt-hair); background: transparent; box-shadow: none; border-radius: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); padding: 0 2px; }
.edt-page input.edt-change-name:hover { border-bottom-color: var(--edt-hair-strong); }
.edt-page input.edt-change-name:focus { outline: 0; border-bottom-style: solid; border-bottom-color: var(--primary); }
.edt-orig { font-size: 12px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.edt-review-empty { padding: 18px 4px; display: grid; gap: 8px; justify-items: start; color: var(--text-secondary); font-size: 13.5px; }
.edt-review-empty p { margin: 0; }

/* ---------- barra de salvar ---------- */
.edt-savebar { position: sticky; bottom: 0; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 0; background: color-mix(in srgb, var(--bg, var(--surface)) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--edt-hair-strong); }
.edt-savebar-text { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; min-width: 0; }
.edt-sum { font-size: 13px; color: var(--muted); }
.edt-sum b { color: var(--ink); }
.edt-sum.is-error { color: var(--danger); }
.edt-savebar-acts { display: flex; gap: 8px; flex: none; }

/* ---------- 5. pronto ---------- */
.edt-done { max-width: 720px; margin: 24px auto 0; padding: 32px; text-align: center; }
.edt-done-ok { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.edt-done-ok svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.edt-done h2 { margin: 0 0 6px; font-size: 22px; }
.edt-done > p { margin: 0 0 20px; color: var(--muted); overflow-wrap: anywhere; }
.edt-done-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.edt-done-stats div { border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 12px; background: var(--surface-soft); }
.edt-done-stats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.edt-done-stats span { font-size: 12px; color: var(--muted); }
.edt-done-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.edt-done-acts .ds-action-button { min-height: 46px; padding: 0 20px; font-size: 14px; }
.edt-done-acts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edt-done-note { margin-top: 20px; text-align: left; font-size: 13px; color: var(--text-secondary); padding: 12px 14px; border-radius: var(--radius-lg); background: var(--primary-2); border: 1px solid var(--card-border); display: flex; gap: 10px; }
.edt-done-note svg { width: 18px; height: 18px; color: var(--primary); margin-top: 1px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .edt-welcome { margin-top: 4px; }
  .edt-page .edt-welcome-back .edt-link { min-height: 40px; }
  .edt-welcome h2 { font-size: 20px; }
  .edt-choices { grid-template-columns: minmax(0, 1fr); }
  .edt-choice { padding: 18px; }
  .edt-page .edt-title-input { font-size: 21px; }
  .edt-fields { flex-direction: column; align-items: stretch; gap: 10px; }
  .edt-fields label { justify-content: space-between; }
  .edt-page .edt-fields input { flex: 1; min-width: 0; }
  .edt-compose { grid-template-columns: minmax(0, 1fr); background: var(--surface); }
  .edt-mtabs { display: flex; padding: 12px 14px 0; }
  .edt-mtabs .ds-segmented { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .edt-mtabs .ds-segmented-option { min-height: 40px; }
  .edt-compose[data-mtab="texto"] .edt-c-right, .edt-compose[data-mtab="previa"] .edt-c-left { display: none; }
  .edt-c-left { position: static; padding: 14px; }
  .edt-c-right { padding: 14px; }
  .edt-c-tool { flex-direction: column; align-items: flex-start; gap: 4px; }
  .edt-ed-wrap { height: 380px; }
  .edt-pv-row { grid-template-columns: 22px minmax(0, 1fr) auto 36px; padding: 9px 10px; }
  .edt-pv-row select.edt-weight { display: none; }
  .edt-page .edt-icon-btn { width: 40px; height: 40px; }
  .edt-page .edt-chev { width: 40px; height: 40px; }
  .edt-page .edt-warn, .edt-pv-topics { margin-left: 40px; }
  .edt-pv-band { flex-wrap: wrap; }
  .edt-page .edt-pv-tabs .ds-segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .edt-page .edt-pv-tabs .ds-segmented-option { min-height: 40px; }
  .edt-savebar { flex-direction: column; align-items: stretch; }
  .edt-savebar-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .edt-savebar-acts .ds-action-button { min-height: 44px; }
  .edt-done { padding: 22px 16px; margin-top: 4px; }
  .edt-done-stats b { font-size: 18px; }
  .edt-done-acts .ds-action-button { width: 100%; }
}

.edt-page .ds-action-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.edt-choice-title { min-height: 28px; }
.edt-page .edt-fields label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; white-space: nowrap; color: var(--muted); }

/* ==========================================================================
   Edital V2 — editor do dia a dia (tela 6) e Ajustar estratégia (tela 7). Estrutura por tipografia, divisórias finas e
   espaço: um contêiner só para a área de trabalho (coluna + painel); cartão só nas telas de boas-vindas e "pronto".
   ========================================================================== */
.edt-page .edt-link-cyan { color: var(--cyan); }
.edt-page .edt-caps { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- seletor de editais (cabeçalho) ---------- */
/* O cabeçalho tem transform (legado) e vira contexto de empilhamento; sem z-index próprio o popover do seletor ficava
   por baixo do cabeçalho fixo do painel (z-index 6). */
.edt-page > .edt-head { position: relative; z-index: 20; }
.edt-picker { position: relative; max-width: min(420px, 100%); }
.edt-picker .edt-picker-btn { max-width: min(420px, 100%); justify-content: space-between; color: var(--ink); }
.edt-picker .edt-picker-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-picker .edt-picker-btn svg { color: var(--muted); width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* ---------- indicador do salvamento automático (D1, 2026-10-06) ---------- */
/* Largura mínima reservada no desktop para o cabeçalho não se deslocar quando o texto muda. A cópia do cabeçalho fixo do
   painel só aparece no celular (a vista da disciplina esconde o cabeçalho da página). */
.edt-save { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 164px; min-height: 20px; font-size: 13px; line-height: 1.2; color: var(--text-secondary); white-space: nowrap; }
.edt-save svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.edt-save.is-saving { color: var(--edt-attention); font-weight: 600; }
.edt-save.is-saved svg { color: var(--success); }
.edt-save.is-error { color: var(--danger); }
.edt-save-dot { width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: currentColor; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .edt-save.is-saving .edt-save-dot { animation: edt-save-pulse 1s ease-in-out infinite; }
}
@keyframes edt-save-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.edt-pane-head .edt-save { display: none; }

/* ---------- exclusão completa do edital (D2, 2026-10-06): mesma casca da confirmação de excluir ---------- */
.history-delete-confirm.edt-cascade { width: min(480px, calc(100vw - 32px)); }
.edt-cascade p.edt-cascade-lead { margin-top: 16px; color: var(--ink); font-weight: 600; text-align: left; }
.edt-cascade .edt-cascade-list { display: grid; gap: 4px; margin: 8px 0 0; padding-left: 20px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.edt-cascade p.edt-cascade-note { text-align: left; }
.edt-cascade .edt-cascade-field { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.edt-cascade .edt-cascade-field input { text-transform: uppercase; letter-spacing: 0.06em; }
.edt-cascade .dialog-actions button.danger:disabled { opacity: 0.45; cursor: not-allowed; }
.edt-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; z-index: 30; padding: 6px; border-radius: var(--radius-lg); border: 1px solid var(--drawer-border); background: var(--drawer-1); box-shadow: var(--shadow); }
.edt-pop hr { border: 0; border-top: 1px solid var(--edt-hair-strong); margin: 6px 4px; }
.edt-pop-item { width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 10px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.edt-pop-item:hover:not(:disabled) { background: var(--edt-row-hover); }
.edt-pop-item:disabled { opacity: 0.5; cursor: not-allowed; }
.edt-pop-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); flex: none; }
.edt-pop-main { flex: 1; min-width: 0; display: grid; }
.edt-pop-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-pop-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-pop-cap { margin-left: auto; font-size: 11.5px; color: var(--muted); }
/* "Em uso" fora da linha do cargo (nome ou cargo longo não o escondem), em verde, junto do check. */
.edt-pop-active { flex: none; font-size: 11.5px; font-weight: 600; color: var(--success); white-space: nowrap; }
.edt-pop-item .edt-pop-active + svg { color: var(--success); }

/* ---------- aviso de edital alterado (linha, sem caixa) ---------- */
.edt-notice { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-secondary); margin: 0 0 18px; flex-wrap: wrap; }
.edt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent); flex: none; }

/* ---------- cabeçalho do concurso (tipografia, sem cartão) ---------- */
.edt-mast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: end; margin-bottom: 22px; }
.edt-mast-main { min-width: 0; }
.edt-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--edt-attention); }
.edt-mast h3 { font-size: 26px; line-height: 1.2; font-weight: 800; margin: 6px 0 8px; overflow-wrap: anywhere; }
.edt-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.edt-meta > span + span::before { content: "·"; margin: 0 10px; color: var(--text-muted); }
.edt-big { text-align: right; }
.edt-big b { display: block; font-size: 36px; line-height: 1; font-weight: 800; }
.edt-big span { font-size: 12.5px; color: var(--muted); }
.edt-line { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--progress-track-bg); overflow: hidden; margin-top: 8px; }
.edt-line b { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--cyan)); border-radius: inherit; }
.edt-exam { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 10px; }
.edt-exam:not(.is-info) > div { padding: 2px 16px; border-left: 2px solid var(--edt-hair-strong); font-size: 12.5px; color: var(--muted); }
.edt-exam:not(.is-info) > div b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }

/* ---------- área de trabalho: uma superfície só ---------- */
.edt-ws { display: grid; grid-template-columns: 290px minmax(0, 1fr); border: 1px solid var(--card-border); border-radius: var(--radius-lg); align-items: start;
  background: linear-gradient(90deg, transparent 289px, var(--edt-hair) 289px, var(--edt-hair) 290px, transparent 290px), var(--surface); }
.edt-rail { position: sticky; top: 0; padding: 14px 0 16px; min-width: 0; max-height: 100vh; overflow-y: auto; scrollbar-width: thin; }
.edt-search { position: relative; display: block; margin: 0 14px 4px; }
.edt-search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; }
.edt-search-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.edt-page .edt-search input { width: 100%; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--edt-hair-strong); background: var(--input-bg); padding: 0 10px 0 32px; font: inherit; font-size: 13px; color: var(--ink); box-shadow: none; }
.edt-page .edt-search input:focus { outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); }
.edt-grp { display: grid; gap: 2px; padding: 18px 16px 6px; }
.edt-grp em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.edt-page .edt-dr { width: 100%; border: 0; background: transparent; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; align-items: center; padding: 9px 16px; font: inherit; font-size: 13.5px; color: var(--text-secondary); cursor: pointer; }
.edt-page .edt-dr:hover { color: var(--ink); background: var(--edt-row-hover); }
.edt-page .edt-dr.is-on { color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); }
.edt-dr-name { overflow-wrap: anywhere; }
.edt-dr small { font-size: 12px; color: var(--muted); font-weight: 500; }
.edt-dr small.is-full { color: var(--success); }
.edt-dr-chev { display: none; }
.edt-bar { grid-column: 1 / -1; height: 3px; border-radius: 99px; background: var(--progress-track-bg); overflow: hidden; }
.edt-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--cyan)); }
.edt-rail-empty { padding: 12px 16px; }
.edt-rail-foot { padding: 12px 16px 0; }
.edt-rail-foot .edt-link { display: inline-flex; align-items: center; gap: 6px; }
.edt-rail-foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.edt-ign { margin-top: 16px; padding: 12px 16px 0; border-top: 1px solid var(--edt-hair); display: grid; gap: 6px; }
.edt-ign-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; }
.edt-ign-row.is-on .edt-ign-name { color: var(--ink); font-weight: 700; }
.edt-page .edt-ign-name { border: 0; background: none; padding: 4px 0; text-align: left; font: inherit; color: var(--muted); cursor: pointer; overflow-wrap: anywhere; }
.edt-page .edt-ign-name:hover { color: var(--ink); }

/* ---------- painel da disciplina ---------- */
.edt-pane { padding: 0 26px 22px; min-width: 0; }
.edt-pane-empty { padding: 20px 0; }
.edt-pane-head { position: sticky; top: 0; z-index: 6; background: var(--surface); padding-top: 20px; border-radius: 0 var(--radius-lg) 0 0; }
.edt-page .edt-back.ds-action-button { display: none; }
.edt-ttl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: flex-start; }
.edt-ttl h3 { margin: 0 0 4px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.edt-ttl .edt-meta { font-size: 12.5px; }
.edt-ignored-tag { color: var(--edt-attention); font-weight: 700; }
.edt-count { text-align: right; }
.edt-count b { font-size: 22px; }
.edt-count b span { font-size: 15px; color: var(--muted); font-weight: 400; }
.edt-count > span { display: block; font-size: 12px; color: var(--muted); }
.edt-ignored-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.edt-ignored-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: var(--edt-attention); stroke-width: 1.8; }
.edt-kvs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 14px 0 0; font-size: 12.5px; }
.edt-page .edt-kv { border: 0; background: none; padding: 4px 14px 4px 0; margin-right: 14px; border-right: 1px solid var(--edt-hair-strong); color: var(--muted); display: inline-flex; gap: 6px; align-items: baseline; font: inherit; font-size: 12.5px; cursor: pointer; }
.edt-kv b { color: var(--ink); font-weight: 700; }
.edt-kv i { font-style: normal; color: var(--text-muted); }
.edt-kv.is-unset b { color: var(--muted); font-weight: 500; }
.edt-kv.is-user b { color: var(--primary); }
.edt-kv:hover b { text-decoration: underline; text-underline-offset: 3px; }
.edt-page .edt-kv.is-plain { cursor: default; }
.edt-kv.is-plain:hover b { text-decoration: none; }
.edt-kvs .edt-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; }
.edt-kvs .edt-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.edt-bar2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; border-bottom: 1px solid var(--edt-hair-strong); flex-wrap: wrap; }
.edt-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; }
/* Nunca quebrar a palavra: com overflow-wrap herdado o min-content ficava minúsculo e o texto virava vertical. */
.edt-tabs .edt-tab { flex: 0 0 auto; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.edt-page .edt-tab { border: 0; background: none; padding: 8px 0 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; cursor: pointer; }
.edt-tab i { font-style: normal; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.edt-tab.is-on { color: var(--ink); border-bottom-color: var(--primary); }
.edt-hint { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; padding-bottom: 10px; }
.edt-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.edt-cols { display: grid; grid-template-columns: 22px 22px 34px minmax(0, 1fr) 104px 30px; gap: 8px; padding: 8px 0; }
/* "Incidência na prova" numa linha só: o título é mais largo que a coluna (104px) e cresce para a esquerda, sobre a área vazia. */
.edt-cols span:nth-child(5) { text-align: right; padding-right: 14px; white-space: nowrap; justify-self: end; width: max-content; }

/* ---------- linhas de tópico e subtópico ---------- */
.edt-tr { display: grid; grid-template-columns: 22px 22px 34px minmax(0, 1fr) 104px 30px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--edt-hair); position: relative; }
.edt-tr:hover { background: var(--edt-row-hover); }
/* Subtópico: a linha inteira recua; sem linha vertical e sem incidência própria. */
.edt-tr.edt-sub { margin-left: 64px; grid-template-columns: 22px 22px 40px minmax(0, 1fr) 30px; padding: 6px 0; }
.edt-sub .edt-tname { font-size: 13px; color: var(--text-secondary); }
.edt-sub.concluido .edt-tname { color: var(--muted); }
.edt-sub .edt-tn { font-size: 11.5px; }
.edt-page .edt-drag { width: 22px; height: 26px; border: 0; background: transparent; color: var(--text-muted); cursor: grab; padding: 0; display: grid; place-items: center; border-radius: var(--radius-sm); }
.edt-page .edt-drag:hover { background: var(--edt-row-hover); color: var(--ink); }
.edt-page .edt-drag:active { cursor: grabbing; }
/* A linha inteira arrasta (mouse: segurar e mexer; toque: toque longo). A alça só indica; o teclado usa "Mover" no "⋯". */
.edt-page .edt-tr:has(.edt-drag) { cursor: grab; }
.edt-row-dragging, .edt-row-dragging .edt-page * { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.edt-drag svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.edt-page .edt-st { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--muted) 75%, transparent); background: transparent; padding: 0; display: grid; place-items: center; color: var(--ink); justify-self: center; position: relative; cursor: pointer; }
.edt-st::after { content: ""; position: absolute; inset: -8px; }
.edt-st svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; display: none; }
.edt-st.em_andamento { border-color: var(--warning); background: conic-gradient(var(--warning) 50%, transparent 0); }
.edt-st.concluido { border-color: var(--success); background: var(--success); color: var(--bg, var(--surface)); }
.edt-st.concluido svg { display: block; }
.edt-sub .edt-st { width: 15px; height: 15px; }
.edt-tn { font-size: 12.5px; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.edt-tname { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; line-height: 1.45; }
.edt-page .edt-tbtn { border: 0; background: none; padding: 0; text-align: left; display: inline-flex; gap: 6px; align-items: flex-start; font: inherit; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.edt-tchev { display: inline-flex; margin-top: 4px; color: var(--muted); transition: transform var(--motion-fast) ease; }
.edt-tchev svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edt-tchev.is-open { transform: rotate(90deg); }
.edt-sub-count { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.edt-tlabel, .edt-sub-name { overflow-wrap: anywhere; }
.edt-topic-wrap.is-done .edt-tlabel, .edt-topic-wrap.is-done .edt-tbtn { color: var(--muted); }
.edt-prog { font-size: 11.5px; font-weight: 700; color: var(--warning); }
.edt-tinc { text-align: right; padding-right: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.edt-page .edt-inc-btn { border: 0; background: none; color: var(--text-muted); padding: 2px 6px; border-radius: var(--radius-sm); font: inherit; cursor: pointer; }
.edt-page .edt-inc-btn.is-set { color: var(--ink); }
.edt-page .edt-inc-btn:hover { background: var(--edt-row-hover); color: var(--ink); }
.edt-page input.edt-rename { width: 100%; height: 32px; border: 0; border-bottom: 1px solid var(--primary); background: transparent; box-shadow: none; border-radius: 0; font: inherit; font-size: 13.5px; color: var(--ink); padding: 0 2px; }
.edt-page input.edt-rename:focus { outline: 0; }
.edt-add { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px 0 2px; color: var(--primary); }
.edt-add-ico { grid-column: 2; display: inline-flex; justify-content: center; }
.edt-add-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.edt-page .edt-add input { grid-column: 3; border: 0; border-bottom: 1px dashed var(--edt-hair-strong); background: transparent; box-shadow: none; border-radius: 0; height: 32px; font: inherit; font-size: 13px; color: var(--ink); padding: 0; }
.edt-page .edt-add input:focus { outline: 0; border-bottom-color: var(--primary); }
/* Soma das incidências: abaixo de 100% atenção, acima erro, 100% ok (tokens com variante nos dois temas). */
.edt-sum { font-weight: 700; }
.edt-sum.is-under { color: var(--warning); }
.edt-sum.is-over { color: var(--danger); }
.edt-sum.is-ok { color: var(--success); }
.edt-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }

/* Arrastar e soltar (desktop): alvo com borda de 2px, linha arrastada esmaecida. */
/* Linha de inserção: em cima do alvo ao subir; descendo, o item fica depois do alvo (o servidor põe na posição dele),
   então a linha vai embaixo. 3px na cor primária, com um ponto na ponta esquerda. */
.edt-page .edt-tr.edt-drop-target { box-shadow: inset 0 3px 0 var(--primary); }
.edt-page .edt-tr.edt-drop-after { box-shadow: inset 0 -3px 0 var(--primary); }
.edt-page .edt-tr.edt-drop-target::before, .edt-page .edt-tr.edt-drop-after::before { content: ""; position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.edt-page .edt-tr.edt-drop-target::before { top: -3px; }
.edt-page .edt-tr.edt-drop-after::before { bottom: -3px; }
/* Linha levantada (mouse ou toque longo): vira um cartão que segue o ponteiro, acima das outras, com contorno e sombra.
   Não recebe o ponteiro, para o app achar a linha de baixo. */
.edt-page .edt-tr.edt-lifted { z-index: 8; pointer-events: none; border-radius: var(--radius-md); background: var(--surface-elevated); box-shadow: 0 0 0 2px var(--primary), var(--shadow-card); scale: 1.015; }
.edt-page .edt-tr.edt-lifted .edt-tname { color: var(--ink); font-weight: 700; }
/* O bloco que se move (a linha levantada e, no tópico, os subtópicos abertos) fica acima e não recebe o ponteiro. */
.edt-page .edt-moving { position: relative; z-index: 8; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .edt-page .edt-tr { transition: scale 0.14s ease, box-shadow 0.14s ease; }
  /* Os irmãos deslizam para abrir espaço no destino; o bloco levantado acompanha o ponteiro sem atraso. */
  .edt-row-dragging .edt-topic-wrap:not(.edt-moving), .edt-row-dragging .edt-sub:not(.edt-moving) { transition: translate 0.16s ease; }
}
.edt-page .edt-tr.edt-dragging { opacity: 0.45; }

/* ---------- menu "⋯" ---------- */
.edt-scrim { position: fixed; inset: 0; z-index: 35; background: transparent; }
.edt-menu { position: fixed; z-index: 40; width: 240px; padding: 6px; border-radius: var(--radius-lg); border: 1px solid var(--drawer-border); background: var(--drawer-1); box-shadow: var(--shadow); }
.edt-menu hr { border: 0; border-top: 1px solid var(--edt-hair-strong); margin: 5px 4px; }
.edt-menu-head { display: none; }
.edt-page .edt-menu-item { width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: var(--radius-sm); display: flex; gap: 10px; align-items: center; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.edt-menu-item:hover:not(:disabled), .edt-menu-item:focus-visible { background: var(--edt-row-hover); }
.edt-menu-item:disabled { opacity: 0.45; cursor: not-allowed; }
.edt-menu-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); flex: none; }
.edt-menu-item.is-danger, .edt-menu-item.is-danger svg { color: var(--danger); }

/* ---------- Ajustar estratégia e painéis curtos (drawers ancorados, sem rolagem) ---------- */
.edt-drawer .edt-sx-row { display: grid; gap: 6px; padding: 11px 0; border-top: 1px solid var(--edt-hair); }
.edt-drawer .edt-sx-row:first-child { border-top: 0; }
.edt-sx-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.edt-sx-top strong { font-size: 13.5px; }
.edt-sx-top em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.edt-sx-top em.is-user { color: var(--primary); }
.edt-sx-top em.is-edital { color: var(--success); }
.edt-sx-top output { font-size: 15px; font-weight: 800; }
.edt-drawer input[type="range"] { width: 100%; margin: 0; accent-color: var(--primary); }
.edt-sx-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
.edt-drawer .ds-action-button.edt-sm { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.edt-source { margin: 0; padding-left: 12px; border-left: 2px solid var(--edt-hair-strong); font-size: 13px; line-height: 1.55; color: var(--text-secondary); white-space: pre-line; overflow-wrap: anywhere; }
.edt-source-empty { margin: 0; font-size: 13px; color: var(--muted); }
.edt-drawer textarea { width: 100%; resize: none; }

/* ---------- celular: coluna única, lista → painel ---------- */
@media (max-width: 900px) {
  .edt-mast { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 16px; }
  .edt-mast h3 { font-size: 18px; margin-bottom: 4px; }
  .edt-mast .edt-meta > span:not(:last-child) { display: none; }
  .edt-mast .edt-meta > span::before { content: none; }
  .edt-big { text-align: left; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .edt-big b { display: inline; font-size: 22px; }
  .edt-ws { display: block; border-radius: var(--radius-lg); background: var(--surface); }
  .edt-rail { position: static; max-height: none; padding: 12px 0 8px; }
  .edt-page .edt-dr { padding: 13px 16px; border-top: 1px solid var(--edt-hair); grid-template-columns: minmax(0, 1fr) auto 14px; }
  .edt-page .edt-dr.is-on { box-shadow: none; font-weight: 600; }
  .edt-dr-chev { display: inline-flex; color: var(--muted); }
  .edt-dr-chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .edt-ws[data-mview="list"] .edt-pane { display: none; }
  .edt-ws[data-mview="detail"] .edt-rail { display: none; }
  .edt-page:has(.edt-ws[data-mview="detail"]) :is(.page-context-head, .edt-notice, .edt-mast) { display: none; }
  .edt-pane { padding: 0 14px 16px; }
  .edt-pane-head { padding-top: 10px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .edt-page .edt-back.ds-action-button { display: inline-flex; margin: 0 0 12px -8px; align-items: center; gap: 6px; min-height: 40px; }
  .edt-pane-head .edt-save { display: inline-flex; position: absolute; top: 18px; right: 0; min-width: 0; }
  .edt-page > .edt-head .edt-save { min-width: 0; }
  .edt-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .edt-ttl { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .edt-ttl h3 { font-size: 18px; }
  .edt-count b { font-size: 18px; }
  .edt-kvs { margin-top: 8px; }
  .edt-kvs .edt-kv { display: none; }
  .edt-bar2 { flex-direction: column; align-items: stretch; gap: 0; }
  .edt-tabs { justify-content: space-between; }
  .edt-hint { display: none; }
  .edt-cols { display: none; }
  .edt-tr { grid-template-columns: 36px minmax(0, 1fr) 40px; gap: 4px; padding: 9px 0; }
  /* A alça e o espaço dela (ordem travada por filtro/busca) somem juntos: senão o espaço vazio ocupa a 1ª coluna e o nome
     cai na coluna estreita do menu, uma letra por linha. */
  .edt-tr .edt-drag, .edt-tr .edt-drag-ph, .edt-tr .edt-tn, .edt-tr .edt-tinc { display: none; }
  /* Toque longo reordena: o menu de copiar/selecionar do navegador não pode aparecer (o campo de renomear continua selecionável). */
  .edt-tr { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .edt-tr .edt-rename { -webkit-user-select: text; user-select: text; }
  .edt-tr.edt-sub { margin-left: 30px; grid-template-columns: 36px minmax(0, 1fr) 40px; }
  .edt-page .edt-icon-btn { width: 40px; height: 40px; }
  .edt-add { grid-template-columns: 36px minmax(0, 1fr); }
  .edt-add-ico { grid-column: 1; }
  .edt-page .edt-add input { grid-column: 2; }
  .edt-foot { flex-direction: column; gap: 4px; }
  /* Folha compacta: não ocupa a largura toda, tem contorno visível e cantos arredondados nos quatro lados. */
  .edt-menu { left: 50%; right: auto; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100vw - 24px)); transform: translateX(-50%); border-radius: 16px; border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--card-border)); padding: 6px 8px 8px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .edt-menu-head { display: block; padding: 10px 10px 8px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--edt-hair-strong); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .edt-page .edt-menu-item { padding: 12px 10px; font-size: 14px; }
  .edt-scrim { background: var(--drawer-backdrop); }
  .edt-pop { left: 0; right: auto; width: 100%; }
  .edt-picker { flex: 1; min-width: 0; max-width: none; }
  .edt-picker .edt-picker-btn { width: 100%; max-width: none; }
}

/* ==========================================================================
   Edital V2 — importação do PDF com IA (Entrega 2, E2-8). Etapas, progresso (sinal real), escolha do cargo, prévia e erros.
   Estrutura por tipografia, filetes e espaço; só tokens do design system; sem brilho. Celular: <= 900px, itens em até 2 linhas.
   ========================================================================== */
.edt-ai-choice { border-color: color-mix(in srgb, var(--primary) 38%, var(--card-border)); }
.edt-page .ds-status-badge.edt-ai-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.edt-ai-tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.edt-ai-credits { font-size: 12px; font-weight: 700; color: var(--cyan); padding: 3px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); background: color-mix(in srgb, var(--cyan) 8%, transparent); white-space: nowrap; }
.edt-ai-credits.is-none { color: var(--muted); border-color: var(--edt-hair-strong); background: transparent; }
.edt-ai-note { font-size: 12.5px; color: var(--edt-attention); }
/* O botão primário desativado do design system não muda de aparência; nas telas da importação ele precisa parecer desativado. */
.edt-page .edt-ai-body .ds-action-button:disabled, .edt-page .edt-ai-choice .ds-action-button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.edt-choice-cta { flex-wrap: wrap; }
.edt-pdf-soon .edt-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.edt-pdf-soon .edt-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- trilho de etapas ---------- */
.edt-ai-trail { margin: 6px 0 22px; }
.edt-ai-stepnow { display: none; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); }
.edt-ai-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.edt-ai-steps li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; padding-right: 10px; color: var(--text-muted); font-size: 12.5px; }
.edt-ai-steps li + li::before { content: ""; position: absolute; left: -10px; top: 10px; width: 10px; border-top: 1px solid var(--edt-hair-strong); }
.edt-ai-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; border: 1.5px solid var(--edt-hair-strong); color: var(--muted); font-variant-numeric: tabular-nums; }
.edt-ai-mark svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.edt-ai-slabel { display: grid; gap: 1px; min-width: 0; padding-top: 2px; }
.edt-ai-slabel b { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.edt-ai-slabel small { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.edt-ai-steps li.is-done { color: var(--text-secondary); }
.edt-ai-steps li.is-done .edt-ai-mark { background: var(--success); border-color: var(--success); color: var(--bg, var(--surface)); }
.edt-ai-steps li.is-current { color: var(--ink); }
.edt-ai-steps li.is-current .edt-ai-mark { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }

.edt-ai-body { min-width: 0; }
.edt-ai-body h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.edt-ai-body h2:focus { outline: 0; }
.edt-ai-body > div > p, .edt-ai-pick > p { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.edt-ai-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- envio ---------- */
.edt-ai-upload { max-width: 640px; padding-top: 6px; }
.edt-ai-upload-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 16px; }
.edt-ai-upload-acts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edt-ai-reassure { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.edt-ai-reassure li { padding-left: 14px; border-left: 2px solid var(--edt-hair-strong); }

/* ---------- processamento (barra de sinal real) ---------- */
.edt-ai-run { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: start; padding-top: 6px; }
.edt-ai-run-main { min-width: 0; max-width: 620px; }
.edt-ai-announce { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.edt-ai-bar { height: 6px; border-radius: 99px; background: var(--progress-track-bg); overflow: hidden; position: relative; }
.edt-ai-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width var(--motion-fast) ease; }
.edt-ai-bar.is-indeterminate b { min-width: 14%; }
.edt-ai-pct { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.edt-ai-pct b { font-size: 30px; line-height: 1; font-weight: 800; }
.edt-ai-pct span { font-size: 14px; color: var(--text-secondary); min-width: 0; overflow-wrap: anywhere; }
.edt-ai-facts-line { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.edt-ai-cache, .edt-ai-date { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; color: var(--text-secondary); }
.edt-ai-cache svg { width: 15px; height: 15px; margin-top: 2px; color: var(--success); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.edt-ai-date svg { width: 15px; height: 15px; margin-top: 2px; color: var(--edt-attention); fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.edt-ai-run-acts { margin-top: 18px; }
/* Miniatura de página do edital (linhas estilizadas, sem texto real) com um realce de marca-texto que passa. */
.edt-ai-sheet { display: grid; gap: 9px; padding: 20px 18px; border: 1px solid var(--card-border); border-radius: var(--radius-lg); background: var(--surface); position: relative; overflow: hidden; }
.edt-ai-sheet i { display: block; height: 6px; border-radius: 4px; background: var(--edt-hair-strong); }
@media (prefers-reduced-motion: no-preference) {
  .edt-ai-sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; top: -28px; background: color-mix(in srgb, var(--edt-attention) 22%, transparent); animation: edt-ai-sweep 2.8s ease-in-out infinite; }
  .edt-ai-bar.is-indeterminate b { animation: edt-ai-slide 1.6s ease-in-out infinite alternate; }
}
@keyframes edt-ai-sweep { 0% { top: -28px; } 100% { top: 100%; } }
@keyframes edt-ai-slide { 0% { margin-left: 0; } 100% { margin-left: 86%; } }

/* ---------- escolha do cargo ---------- */
.edt-ai-pick { max-width: 760px; }
.edt-ai-search { margin: 4px 0 10px; }
.edt-ai-cargos { border: 1px solid var(--card-border); border-radius: var(--radius-lg); overflow-y: auto; max-height: min(56vh, 520px); background: var(--surface); scrollbar-width: thin; }
.edt-page .edt-ai-cargo { width: 100%; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 16px; border: 0; border-top: 1px solid var(--edt-hair); background: transparent; text-align: left; font: inherit; font-size: 13.5px; color: var(--text-secondary); cursor: pointer; }
.edt-ai-cargo:first-child { border-top: 0; }
.edt-page .edt-ai-cargo:hover { background: var(--edt-row-hover); color: var(--ink); }
.edt-page .edt-ai-cargo.is-on { color: var(--ink); background: color-mix(in srgb, var(--primary) 7%, transparent); box-shadow: inset 3px 0 0 var(--primary); }
.edt-ai-code { font-weight: 800; font-size: 12.5px; color: var(--muted); padding-top: 1px; overflow-wrap: anywhere; }
.edt-ai-cargo.is-on .edt-ai-code { color: var(--primary); }
.edt-ai-ctext { display: grid; gap: 2px; min-width: 0; }
.edt-ai-cname { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.edt-ai-cdet { font-size: 12px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.edt-ai-empty { padding: 16px; margin: 0; }
.edt-ai-dim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.edt-ai-dimlabel { font-size: 14px; font-weight: 700; }
.edt-page select.edt-ai-select { height: 36px; min-width: 200px; border-radius: var(--radius-md); border: 1px solid var(--edt-hair-strong); background: var(--input-bg); color: var(--ink); font: inherit; font-size: 13.5px; padding: 0 10px; }

/* ---------- prévia ---------- */
.edt-ai-facts { padding: 4px 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--edt-hair-strong); }
.edt-ai-facts h3 { margin: 6px 0 2px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.edt-ai-facts > p { margin: 0 0 4px; }
.edt-ai-dl { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.edt-ai-dl > div { min-width: 0; padding-left: 12px; border-left: 2px solid var(--edt-hair-strong); }
.edt-ai-dl dt { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.edt-ai-dl dd { margin: 3px 0 0; display: grid; gap: 2px; font-size: 13.5px; color: var(--ink); }
.edt-ai-dl dd span { overflow-wrap: anywhere; }
.edt-ai-pg { font-size: 11.5px; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; white-space: nowrap; }
.edt-ai-sticky { position: sticky; top: 0; z-index: 7; background: var(--bg, var(--surface)); padding: 8px 0 4px; }
.edt-ai-sticky .edt-pv-top { margin-bottom: 8px; }
.edt-ai-band { gap: 4px 12px; }
.edt-ai-bname { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.edt-ai-band select.edt-weight, .edt-ai-drow select.edt-weight { width: auto; flex: none; }
.edt-ai-bmeta { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; white-space: nowrap; }
.edt-ai-item { border-top: 1px solid var(--edt-hair); }
.edt-pv-band + .edt-ai-item { border-top: 0; }
.edt-ai-drow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 30px 30px; gap: 8px; align-items: center; padding: 9px 12px; }
.edt-ai-dname { min-width: 0; display: grid; gap: 1px; }
.edt-ai-dmeta { font-size: 12px; color: var(--muted); }
.edt-ai-tcell { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.edt-ai-item.is-open .edt-chev svg { transform: rotate(90deg); }
.edt-ai-dbody { padding: 0 12px 12px 42px; }
.edt-ai-topics { margin: 4px 0 0; padding: 0 0 0 20px; list-style: decimal; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: 13px; color: var(--text-secondary); }
.edt-ai-subs { margin: 2px 0 4px; padding: 0 0 0 18px; list-style: disc; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; color: var(--muted); }
.edt-ai-trow { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-width: 0; }
.edt-ai-tname { min-width: 0; overflow-wrap: anywhere; }
.edt-ai-trow .edt-rename { flex: 1; }
.edt-page .edt-ai-pencil { width: 26px; height: 26px; flex: none; opacity: 0; }
.edt-ai-item:hover .edt-ai-pencil, .edt-ai-trow:hover .edt-ai-pencil, .edt-page .edt-ai-pencil:focus-visible { opacity: 1; }
.edt-page .edt-ai-rtag { border: 0; background: none; padding: 0; font: inherit; font-size: 11px; font-weight: 700; color: var(--edt-attention); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.edt-ai-topic, .edt-ai-subs > li, .edt-ai-dbody { min-width: 0; }
.edt-ai-origin { max-width: 100%; margin: 2px 0 4px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edt-ai-origin.is-open { white-space: normal; overflow-wrap: anywhere; }
.edt-ai-removed { margin: 10px 0 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.edt-ai-changes { list-style: none; margin: 0; padding: 0; }
.edt-ai-change { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 2px; border-top: 1px solid var(--edt-hair); min-width: 0; }
.edt-ai-change:first-child { border-top: 0; }
.edt-ai-where { display: flex; align-items: baseline; gap: 4px 8px; max-width: 100%; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.edt-ai-wtext { min-width: 0; overflow-wrap: anywhere; }
.edt-ai-where .edt-tag { margin-left: 0; flex: none; text-transform: none; letter-spacing: 0; }
.edt-ai-change.is-conferir .edt-ai-chname-text { font-weight: 400; font-size: 13px; color: var(--text-secondary); }
.edt-ai-change.is-conferir .edt-tag { color: var(--edt-attention); }
.edt-ai-change.is-organizado .edt-tag { color: var(--primary); }
.edt-page input.edt-ai-chname { width: 100%; height: 34px; border: 0; border-bottom: 1px dashed var(--edt-hair); background: transparent; box-shadow: none; border-radius: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); padding: 0 2px; }
.edt-page input.edt-ai-chname:focus { outline: 0; border-bottom-style: solid; border-bottom-color: var(--primary); }
.edt-ai-chname-text { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.edt-ai-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 2px; }
.edt-ai-acts .ds-action-button { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.edt-ai-decided { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--success); }
.edt-ai-decided svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- erro ---------- */
.edt-ai-error { max-width: 560px; margin: 24px auto 0; text-align: center; display: grid; justify-items: center; gap: 8px; }
.edt-ai-erricon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--edt-attention); background: color-mix(in srgb, var(--edt-attention) 14%, transparent); }
.edt-ai-erricon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edt-ai-error h2 { font-size: 18px; margin: 4px 0 0; }
.edt-ai-error .edt-ai-upload-acts { justify-content: center; }

/* ---------- editor: dados do edital importado (cabeçalho, "Como é a prova" e questões) ---------- */
.edt-meta .edt-attn { color: var(--edt-attention); font-weight: 700; }
/* "Como é a prova" como ficha (decisão do dono, 15/10/2026): um contêiner só, três seções separadas por filete fino,
   cada linha com rótulo discreto à esquerda e valor à direita, numa linha. No celular as seções empilham. */
.edt-exam.is-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 14px; padding: 14px 0; border-top: 1px solid var(--edt-hair); border-bottom: 1px solid var(--edt-hair); }
.edt-exam-col { min-width: 0; padding: 0 22px; font-size: 12.5px; color: var(--muted); }
.edt-exam-col:first-child { padding-left: 0; }
.edt-exam-col:not(:first-child) { padding-right: 0; }
/* Prova à esquerda (ocupa as duas linhas); Datas em cima de Concurso à direita: sem área vazia no desktop. */
.edt-exam-col:first-child { grid-row: span 2; }
.edt-exam-col + .edt-exam-col { border-left: 1px solid var(--edt-hair); }
.edt-exam-col:nth-child(3) { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--edt-hair); }
.edt-exam-col h4 { margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.edt-exam-col h5 { margin: 10px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.edt-exam-col h5:first-of-type { margin-top: 0; }
.edt-fact-list { margin: 0; display: grid; gap: 0; max-width: 520px; }
/* Desktop: rótulo numa coluna estreita e o valor logo ao lado (coluna larga deixava o valor longe do nome, 15/10/2026). */
.edt-fact-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 4px 0; min-width: 0; }
.edt-fact-row + .edt-fact-row { border-top: 1px dashed var(--edt-hair); }
.edt-fact-list dt { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.edt-fact-list dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 8px; text-align: left; color: var(--ink); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.edt-fact-v { overflow-wrap: anywhere; }
.edt-fact-v.is-empty { color: var(--muted); font-weight: 400; }
.edt-fact-calc { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.edt-fact { display: inline; }
.edt-fact summary { display: inline; cursor: pointer; list-style: none; font-size: 10.5px; font-weight: 400; color: var(--text-muted, var(--muted)); text-decoration: underline dotted; text-underline-offset: 3px; white-space: nowrap; }
.edt-fact summary::-webkit-details-marker { display: none; }
.edt-fact[open] summary { color: var(--ink); }
.edt-fact-s { display: block; margin: 4px 0 2px; padding-left: 10px; border-left: 2px solid var(--edt-hair-strong); font-size: 12px; font-weight: 400; font-style: italic; text-align: left; color: var(--text-secondary); white-space: normal; }

@media screen and (max-width: 900px) {
  .edt-ai-trail { margin: 2px 0 16px; }
  .edt-ai-stepnow { display: block; }
  .edt-ai-steps { gap: 4px; }
  .edt-ai-steps li { display: block; padding: 0; height: 4px; border-radius: 4px; background: var(--edt-hair-strong); }
  .edt-ai-steps li.is-done, .edt-ai-steps li.is-current { background: var(--primary); }
  .edt-ai-steps li.is-done { background: var(--success); }
  .edt-ai-steps li + li::before { content: none; }
  .edt-ai-mark, .edt-ai-slabel { display: none; }
  .edt-ai-body h2 { font-size: 19px; }
  .edt-ai-run { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .edt-ai-sheet { order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; gap: 7px 14px; }
  .edt-ai-sheet i { width: 100%; }
  .edt-ai-pct b { font-size: 26px; }
  .edt-ai-cargos { max-height: 46vh; }
  .edt-page .edt-ai-cargo { grid-template-columns: 44px minmax(0, 1fr); padding: 11px 12px; gap: 8px; }
  .edt-ai-ctext { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .edt-ai-cdet { display: none; }
  .edt-ai-cname { display: inline; }
  .edt-page .edt-ai-cargo.is-on .edt-ai-ctext { display: grid; -webkit-line-clamp: unset; overflow: visible; }
  .edt-page .edt-ai-cargo.is-on .edt-ai-cdet { display: block; }
  .edt-ai-dl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .edt-ai-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding-left: 10px; }
  .edt-ai-dl dd { margin: 0; }
  .edt-ai-facts h3 { font-size: 18px; }
  .edt-ai-drow { grid-template-columns: 36px minmax(0, 1fr) auto 36px 40px; gap: 4px; padding: 9px 8px; }
  .edt-ai-dname .edt-pv-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .edt-ai-drow select.edt-weight { max-width: 76px; }
  .edt-page .edt-ai-pencil { opacity: 1; width: 36px; height: 36px; }
  .edt-ai-dbody { padding: 0 8px 12px 14px; }
  .edt-ai-tname { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .edt-ai-origin:not(.is-open) { display: none; }
  .edt-ai-sticky { padding-top: 6px; }
  .edt-ai-upload-acts .ds-action-button { flex: 1 1 auto; min-height: 44px; }
  .edt-ai-acts .ds-action-button { min-height: 40px; }
  .edt-exam.is-info { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
  .edt-exam-col, .edt-exam-col:first-child, .edt-exam-col:last-child { padding: 10px 0; }
  .edt-exam-col:first-child { grid-row: auto; }
  .edt-exam-col + .edt-exam-col { border-left: 0; border-top: 1px solid var(--edt-hair); }
  .edt-exam-col:nth-child(3) { margin-top: 0; }
  /* Celular: rótulo à esquerda e valor à direita, uma linha por fato (aprovado pelo dono). */
  .edt-fact-list { max-width: none; }
  .edt-fact-row { display: flex; justify-content: space-between; padding: 5px 0; }
  .edt-fact-list dt { flex: none; }
  .edt-fact-list dd { justify-content: flex-end; text-align: right; }
  .edt-ai-wtext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .edt-ai-change.is-organizado .edt-orig { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .edt-page select.edt-ai-select { width: 100%; }
}

/* ---------- "É este o edital?" (E2-13): leitura grátis antes da IA ---------- */
.edt-ai-confirm { max-width: 640px; padding-top: 6px; }
.edt-ai-confirm > p { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.edt-ai-found { display: grid; gap: 8px; margin: 16px 0 12px; }
.edt-ai-found-h { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.edt-ai-found blockquote { margin: 0; padding: 4px 0 4px 12px; border-left: 2px solid var(--edt-hair-strong); font-size: 14px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.edt-ai-recognized { margin: 0 0 10px; font-size: 12.5px; }
.edt-ai-recognized b { color: var(--text-secondary); font-weight: 700; }
@media screen and (max-width: 900px) {
  /* A barra de salvar é uma grade de 2 colunas no celular; aqui são 3 saídas: uma por linha, a principal primeiro. */
  .edt-ai-confirm + .edt-savebar .edt-savebar-acts { grid-template-columns: minmax(0, 1fr); }
  .edt-ai-confirm + .edt-savebar .edt-savebar-acts .ds-action-button { min-height: 44px; }
  .edt-ai-confirm + .edt-savebar .edt-savebar-acts .ds-action-button.primary { order: -1; }
  .edt-ai-confirm + .edt-savebar .edt-savebar-acts .ds-action-button.ghost { order: 1; }
}

/* Prévia (15/10/2026): selo neutro quando só há avisos para ler; no desktop o texto do edital de um nome "Resumido" já
   aparece inteiro, então o selo deixa de parecer link (no celular ele continua abrindo o texto). */
.edt-page .edt-badge-notice { color: var(--text-secondary); }
@media screen and (min-width: 901px) {
  .edt-ai-origin { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .edt-page .edt-ai-rtag { text-decoration: none; cursor: default; pointer-events: none; }
}
