/* Tracking plan CSV checker (tools/ and herramientas/). Uses the site's colour tokens from style.css. */
.tool { max-width: 980px; }
.tool .controls button,
.tool .controls label.file { min-height: 44px; }
.tool .controls label.file:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.tool .controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 10px; }
.tool .controls label.file { cursor: pointer; position: relative; }
.tool .controls input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tool button.ghost { font: inherit; font-size: 14px; cursor: pointer; background: transparent; color: var(--brand); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.tool button.ghost:hover, .tool button.ghost:focus-visible { border-color: var(--brand); }
.tool textarea { width: 100%; min-height: 190px; resize: vertical; font: 13px/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tool textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.tool #result { margin-top: 18px; }
.tool .summary { font-weight: 600; border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
.tool .summary.good { background: var(--soft); }
.tool .summary.bad { background: #fde8e8; color: #7c1616; }
@media (prefers-color-scheme: dark) { .tool .summary.bad { background: #3a1f1f; color: #f4b4b4; } }
.tool .problems li { margin: 4px 0; }
.tool .table { max-width: 100%; overflow-x: auto; }
.tool table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 14px; margin: 8px 0 18px; }
.tool th, .tool td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.tool th { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tool td.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; }
.tool td.nowrap { white-space: nowrap; }
.tool td.rules { min-width: 260px; }
.tool .chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: #fff; }
.tool .chip.ga4 { background: #9A4100; } /* white on it: 6.71:1 (the brand orange gave 3.09:1) */
.tool .chip.meta { background: var(--meta); }
@media (max-width: 600px) {
  .tool .controls { align-items: stretch; }
  .tool .controls > * { width: 100%; }
}
