:root {
    color-scheme: dark;
    --bg: #111;
    --bg-raised: #1a1a1a;
    --bg-inset: #151515;
    --border: #333;
    --border-soft: #2a2a2a;
    --text: #ddd;
    --text-bright: #eee;
    --muted: #999;
    --muted-dim: #666;
    --accent: #3b3;
    --accent-hover: #5d5;
    --good: #4ade80;
    --bad: #fb7185;
    --warn: #eab308;
    --sans: "Open Sans", Helvetica, Arial, sans-serif;
    --display: Helvetica, Arial, sans-serif;
    --mono: Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
}
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}
a, a:visited { color: var(--accent); text-decoration: none; }
a:hover, a:active { color: var(--accent-hover); text-decoration: underline; }
header { margin-bottom: 24px; }
header h1 {
    margin: 0;
    font-family: var(--display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    color: var(--text-bright);
}
header h1 a, header h1 a:visited, header h1 a:hover, header h1 a:active {
    color: inherit;
    text-decoration: none;
}
header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    max-width: 920px;
}
header p + p {
    color: var(--muted-dim);
    font-size: 11px;
    line-height: 1.3;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}
.stats div {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 16px 18px;
}
.stats span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.stats strong {
    display: block;
    margin-top: 4px;
    color: var(--text-bright);
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.panel {
    margin: 0 0 22px;
    padding: 18px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.panel h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: var(--text-bright);
}
.panel > p { margin: 0; color: var(--muted); }
form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
}
form > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    flex: 1 1 auto;
}
form > div:nth-child(2),
form > div:nth-child(3) { flex: 0 0 auto; min-width: 110px; }
form > div:last-child {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-bottom: 1px;
}
label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
input, select {
    background: var(--bg-inset);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: var(--mono);
}
input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(51, 187, 51, 0.25);
}
button {
    background: linear-gradient(180deg, #5d5, #2a2);
    color: #111;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
button:hover { filter: brightness(1.1); }
.breakdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.breakdowns h3 {
    margin: 0 0 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 700;
}
.breakdowns ul { list-style: none; margin: 0; padding: 0; }
.breakdowns li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.9rem;
}
.breakdowns li:last-child { border-bottom: 0; }
.breakdowns .collapsible[data-collapsed="true"] .extra { display: none; }
.breakdowns .collapsible[data-collapsed="true"] li:nth-child(8) { border-bottom: 0; }
.breakdowns li span:last-child {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.breakdowns .show-more {
    margin-top: 8px;
    padding: 0;
    background: none;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0;
}
.breakdowns .show-more:hover { filter: none; text-decoration: underline; }
.hits { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--muted); }
.hits p {
    margin: 0;
    padding: 10px 12px;
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-left: 3px solid var(--bad);
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.45;
}
.hits.false-positives p {
    border-left-color: var(--warn);
}
.detected, .clean, .false-positive {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.detected { color: var(--bad); }
.false-positive { color: var(--warn); }
.clean { color: var(--good); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td {
    text-align: left;
    padding: 0.65rem 0.45rem;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}
th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}
td { font-variant-numeric: tabular-nums; }
.error {
    margin: 0 0 22px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--bad);
    color: var(--bad);
    background: rgba(255, 107, 107, 0.08);
    font-family: var(--mono);
    font-size: 13px;
}
footer {
    margin-top: 28px;
    color: var(--muted-dim);
    font-size: 0.82rem;
    text-align: center;
}
footer p { margin: 0; }
@media (max-width: 520px) {
    main { padding: 20px 12px 36px; }
    form > div:last-child { width: 100%; }
}
