/* Porta das ferramentas — paleta do Tutor Fiscal (CLAUDE.md, seção 6-E). */
:root {
  --fundo: #0a0b0a; --cartao: #141613; --faixa: #1c1f1b;
  --texto: #f2f3f0; --texto2: #9aa096; --verde: #5ae628; --ocre: #d4914e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fundo); color: var(--texto);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between;
         padding: 14px 24px; border-bottom: 1px solid var(--faixa); }
header .marca { display: flex; align-items: center; gap: 10px; font-weight: 600; }
header .marca span { color: var(--verde); }
header form { margin: 0; }
main { max-width: 980px; margin: 32px auto; padding: 0 20px; }
.cartao { background: var(--cartao); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.estreito { max-width: 440px; margin-left: auto; margin-right: auto; }
h1, h2 { color: var(--verde); font-weight: 600; margin-top: 0; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; }
label { display: block; margin: 14px 0 4px; color: var(--texto2); font-size: .92rem; }
input, select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #2b2f2a;
                background: var(--faixa); color: var(--texto); font: inherit; }
input[type=checkbox] { width: auto; }
button { margin-top: 18px; padding: 10px 18px; border: 0; border-radius: 8px; cursor: pointer;
         background: var(--verde); color: #0a0b0a; font: inherit; font-weight: 600; }
button.discreto { background: transparent; color: var(--texto2); border: 1px solid #2b2f2a; margin: 0; }
a { color: var(--verde); }
.links { margin-top: 18px; font-size: .92rem; display: flex; gap: 18px; flex-wrap: wrap; }
.aviso { background: var(--faixa); border-left: 3px solid var(--ocre); padding: 10px 14px;
         border-radius: 6px; margin: 14px 0; }
.erro { border-left-color: #e05a4e; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 18px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
td, th { padding: 7px 8px; border-bottom: 1px solid var(--faixa); text-align: right; }
td:first-child, th:first-child { text-align: left; color: var(--texto2); }
th { color: var(--verde); font-weight: 600; }
tr.total td { color: var(--ocre); font-weight: 600; }
.pequeno { color: var(--texto2); font-size: .88rem; }
.oculto { display: none; }

/* Contador imprime relatório: fundo claro na impressão (CLAUDE.md, 6-E). */
@media print {
  body { background: #fff; color: #111; }
  header form, form#calc button, #consulta { display: none; }
  .cartao, .aviso { background: #fff; border: 1px solid #ccc; }
  h1, h2, th { color: #1f6b00; }
  tr.total td { color: #8a4b12; }
  td:first-child, .pequeno, label { color: #444; }
}
