/* Comprimir PDF (ferramenta 75) — só o que falta em ferramentas.css. Tokens do tema; nada de cor fixa. */

/* ── comum às ferramentas de PDF (pdfx-*): mesma base das ferramentas 40–42 e 75–79 ── */
.pdfx-privacidade { max-width: 78ch }
.pdfx-entrada { display: grid; gap: 16px }
.pdfx-entrada > h2 { margin-bottom: 0 }
.pdfx-soltar {
  padding: 16px; border: 2px dashed var(--linha-forte); border-radius: var(--raio-p);
  background: color-mix(in srgb, var(--rio) 4%, var(--cartao)); transition: border-color .15s ease, background-color .15s ease;
}
.pdfx-soltar input[type="file"] { width: 100%; max-width: 100%; min-height: 48px; font: inherit; color: var(--tinta) }
.pdfx-soltar input[type="file"]::file-selector-button {
  min-height: 44px; margin-right: 12px; padding: .45em 1em; border: 1px solid var(--linha-forte); border-radius: 999px;
  background: var(--cartao); color: var(--tinta); font: inherit; cursor: pointer;
}
.pdfx-soltar-ativo { border-color: var(--ipe); background: color-mix(in srgb, var(--ipe) 8%, var(--cartao)) }
@media (prefers-reduced-motion: reduce) { .pdfx-soltar { transition: none } }
.pdfx-exemplo { margin: 0; display: flex; flex-wrap: wrap; gap: 8px }
.pdfx-exemplo .botao, .pdfx-progresso .botao { min-height: 44px; white-space: normal; text-align: left; height: auto }
.pdfx-progresso { display: grid; gap: 6px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--linha); border-radius: var(--raio-p); background: var(--papel-2) }
.pdfx-progresso[hidden] { display: none }
.pdfx-progresso label { font-size: .9375rem; font-weight: 500; color: var(--tinta) }
.pdfx-progresso progress { width: 100%; height: 10px; accent-color: var(--ipe) }
.pdfx-limites summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--tinta); font-weight: 500 }
.pdfx-limites ul { padding-left: 1.2em; display: grid; gap: .45em; max-width: 78ch }
.pdfx-arquivo-atual { margin: 0 0 12px; font-weight: 600; overflow-wrap: anywhere }
.pdfx-arquivo-atual:focus, .pdfx-pronto-titulo:focus { outline: none }
.pdfx-rotulo { display: block; font-weight: 500; font-size: .9375rem; margin-bottom: 6px }
.pdfx-pronto { display: grid; gap: 16px }
.pdfx-pronto-titulo { font-size: 1.25rem }
.pdfx-pronto .acoes { margin: 0 }
.pdfx-avisos { display: grid; gap: .35em }
.pdfx-avisos p { margin: 0 }
.pdfx-cor { width: 72px; min-height: 44px; padding: 2px; border: 1px solid var(--linha-forte); border-radius: 8px; background: var(--cartao); cursor: pointer }
.pdfx-previa-painel { display: grid; gap: 10px; align-content: start }
.pdfx-previa-painel > h2 { margin-bottom: 0 }
.pdfx-previa { display: grid; place-items: center; padding: 8px; border-radius: var(--raio-p); background: var(--papel-2); min-height: 200px; overflow: hidden }
.pdfx-previa canvas { max-width: 100%; height: auto; box-shadow: 0 0 0 1px var(--linha-forte); background: #fff }
.pdfx-escolhas { display: grid; gap: 4px }
.pdfx-escolha { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; line-height: 1.4 }
.pdfx-escolha input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ipe) }
.pdfx-escolha small { display: block; color: var(--grafite); font-size: .875rem }
.pdfx-faixa { width: 100%; max-width: 24rem; min-height: 44px; accent-color: var(--ipe) }
.campos-grade > .campo { align-content: start }
@media print {
  .pdfx-progresso, .pdfx-pronto .acoes, .pdfx-soltar, .pdfx-exemplo { display: none !important }
}

/* ── comprimir ── */
.cmp-trabalho { display: grid; gap: 16px }
.cmp-trabalho[hidden], .cmp fieldset[hidden] { display: none }
.cmp-trabalho > h2 { margin-bottom: 0 }
.cmp-reducao { font-variant-numeric: tabular-nums }
