:root {
  --bg: #f7f8fa; --fg: #1b1f24; --muted: #5b6573; --card: #fff; --line: #dde2e8;
  --accent: #1f6feb; --accent-fg: #fff; --ok: #1a7f37; --warn: #b3261e; --warn-bg: #fdecea;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1216; --fg: #e6e9ee; --muted: #9aa4b2; --card: #171b21; --line: #2a313b; --accent: #4c8dff; --ok: #3fb950; --warn: #ff7b72; --warn-bg: #3a1d1d; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); }
a { color: var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 8px 20px 40px; }
.site-header { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; max-width: 860px; margin: 0 auto; padding: 16px 20px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--fg); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--fg); }
.site-header nav a.lang { border-left: 1px solid var(--line); padding-left: 16px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 16px 0 8px; }
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 0; }
.badge { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 2px 10px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 20px 0 28px; }
.drop { display: block; border: 2px dashed var(--line); border-radius: 12px; padding: 28px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-within, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.drop strong { display: block; font-size: 1.1rem; }
.drop small { color: var(--muted); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.options { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 16px 0 4px; align-items: end; }
.options label { display: flex; flex-direction: column; font-size: .9rem; font-weight: 600; gap: 4px; }
select, input[type=range] { font: inherit; min-width: 150px; }
select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
button { font: inherit; font-weight: 700; border: 0; border-radius: 9px; padding: 9px 16px; background: var(--accent); color: var(--accent-fg); cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); padding: 6px 12px; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.files { list-style: none; padding: 0; margin: 14px 0 0; }
.files li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.files .name { flex: 1 1 220px; font-weight: 600; overflow-wrap: anywhere; }
.files .meta { color: var(--muted); font-size: .92rem; }
.files .good { color: var(--ok); font-weight: 700; }
.files .err { color: var(--warn); font-weight: 600; }
.files img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.files img.thumb { object-fit: contain; background: repeating-conic-gradient(#8883 0 25%, transparent 0 50%) 0 0 / 12px 12px; }
.options label[hidden] { display: none; }
.options input[type=number] { width: 7em; }
.options input[type=text] { width: 14em; }
.options input[type=number], .options input[type=text] { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.options input[type=color] { width: 56px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.findings { flex-basis: 100%; margin: 4px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--bg); font-size: .92rem; }
.findings.sensitive { background: var(--warn-bg); }
.findings b { color: var(--warn); }
.status { min-height: 1.4em; color: var(--muted); margin: 10px 0 0; }
.content h2 { margin-top: 32px; font-size: 1.3rem; }
.content details { border-top: 1px solid var(--line); padding: 10px 0; }
.content summary { cursor: pointer; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0; }
.cards a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--fg); }
.cards a:hover { border-color: var(--accent); }
.cards h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--accent); }
.cards p { margin: 0; color: var(--muted); }
.site-footer { max-width: 860px; margin: 0 auto; padding: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.snippet { margin-top: 16px; }
.snippet pre { margin: 6px 0 8px; padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); overflow-x: auto; font-size: .85rem; line-height: 1.5; user-select: all; }
.check { flex-direction: row !important; align-items: center; gap: 6px !important; }
.files img.icon { width: auto; height: auto; max-width: 56px; max-height: 56px; border: 0; border-radius: 0; }
