:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #101828;
    --muted: #667085;
    --line: #d0d5dd;
    --accent: #101828;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}
.page-header {
    margin-bottom: 22px;
}
.badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}
h1 {
    margin: 12px 0 8px;
    font-size: 34px;
    line-height: 1.15;
}
.subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 700px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
}
.stack { display: grid; gap: 14px; }
label {
    font-weight: 700;
}
input[type="file"] {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #fafafa;
}
.hint {
    color: var(--muted);
    font-size: 14px;
}
.button {
    display: inline-block;
    width: fit-content;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}
.button.secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}
.clean-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.75;
}
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.result-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-grid > div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fafafa;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
pre {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0b1020;
    color: #f8fafc;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}
.notes {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
@media (max-width: 720px) {
    .result-grid,
    .result-grid.compact {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 28px;
    }
}

.top-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.top-nav a {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.results-table th,
.results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.results-table th {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .03em;
}
