:root {
  --bg: #ffffff; --fg: #1a1a1a; --muted: #5c5c5c; --line: #dddddd;
  --accent: #1f5fbf; --panel: #f5f7fa; --ok: #1d7a3a; --warn: #a35a00; --err: #b3261e;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121417; --fg: #e8e8e8; --muted: #a0a0a0; --line: #33363b;
    --accent: #7fb0ff; --panel: #1b1e23; --ok: #6fcf8a; --warn: #f0b05a; --err: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main, .site-header, .site-footer { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.site-header { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
a { color: var(--accent); }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 24px 0 12px; }
h2 { font-size: 1.3rem; margin-top: 32px; }
.lead { color: var(--muted); }
.tool-list { list-style: none; padding: 0; }
.tool-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tool-list p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.tool-widget { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
textarea, input, select, button { font: inherit; color: inherit; }
textarea { width: 100%; min-height: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); resize: vertical; }
textarea.mono, .mono { font-family: var(--mono); font-size: .9rem; }
button { padding: 8px 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent);
  color: #fff; cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.stat b { display: block; font-size: 1.3rem; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .err { color: var(--err); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tool-content { margin-top: 24px; }
.last-reviewed { color: var(--muted); font-size: .9rem; }
.ad-slot { min-height: 280px; margin: 16px 0; }
.site-footer { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem; }
/* Wide tables scroll inside their own box instead of widening the page on phones. */
table { display: block; max-width: 100%; overflow-x: auto; }
td, th { overflow-wrap: anywhere; min-width: 5.5em; }
