:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #17202b;
    --muted: #5b6676;
    --border: #dde2e9;
    --accent: #1f6f5c;
    --accent-text: #ffffff;
    --ok-bg: #e7f5ef; --ok: #17694f;
    --bad-bg: #fdecec; --bad: #a12b2b;
    --warn-bg: #fdf5e3; --warn: #8a5a00;
    --neg: #a12b2b; --pos: #17694f;
    --radius: 10px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11161d; --surface: #19202a; --text: #e8edf3; --muted: #9aa5b4; --border: #2c3644;
        --accent: #3fae8f; --accent-text: #0b1512;
        --ok-bg: #12302a; --ok: #7ad8b6; --bad-bg: #3a1c1c; --bad: #f2a3a3; --warn-bg: #352a12; --warn: #f0c46c;
        --neg: #f2a3a3; --pos: #7ad8b6;
    }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--text); }
.brand img { border-radius: 6px; flex: none; }
.site-header nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-size: 15px; }

.hero { padding: 48px 16px 24px; text-align: center; }
h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 10px; }
.privacy { font-size: 14px; color: var(--muted); margin: 0 0 24px; }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 170px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); }
.drop-title { font-weight: 600; font-size: 18px; color: var(--accent); }
.drop-sub { color: var(--muted); font-size: 14px; }
.status { min-height: 1.5em; margin: 14px 0 0; color: var(--muted); }
.status.error { color: var(--bad); }
.status.ok { color: var(--ok); }

.results { padding-bottom: 32px; }
.check { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; }
.check.ok { background: var(--ok-bg); color: var(--ok); }
.check.bad { background: var(--bad-bg); color: var(--bad); }
.check.warn { background: var(--warn-bg); color: var(--warn); }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 22px; }
.summary div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.summary dt { font-size: 13px; color: var(--muted); }
.summary dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }

h2 { font-size: 22px; margin: 0 0 12px; }
.downloads { margin-bottom: 22px; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
button { font: inherit; font-size: 15px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
button:hover { border-color: var(--accent); }
button.quiet { margin-left: auto; color: var(--muted); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.acct { display: block; font-size: 14px; color: var(--muted); }
.acct input { display: block; margin-top: 4px; width: 140px; font: inherit; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }

.mapping { margin-bottom: 22px; }
.hint { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.map-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.map-grid label[hidden] { display: none; }
.map-grid select, .map-grid input[type="text"] { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; }
.map-grid .check-label { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; }
.warn-text { color: var(--warn); margin: -10px 0 18px; }
.warn-text:empty { display: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-height: 560px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
td:nth-child(2) { white-space: normal; min-width: 220px; }
th { position: sticky; top: 0; background: var(--surface); font-size: 13px; color: var(--muted); font-weight: 600; }
.num { text-align: right; }
td.neg { color: var(--neg); }
td.pos { color: var(--pos); }
tr.issue td { background: var(--bad-bg); }

.guide, .faq { padding: 32px 16px; }
.guide ol { padding-left: 22px; }
.guide li { margin-bottom: 6px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }
.site-footer { padding: 24px 16px 40px; color: var(--muted); font-size: 14px; }

@media (max-width: 560px) {
    .site-header nav a { margin-left: 12px; font-size: 14px; }
    .hero { padding-top: 32px; }
}
