:root {
    --bg: #fafaf9;
    --fg: #1f2933;
    --muted: #6b7280;
    --accent: #1a3a6c;
    --accent-hover: #112a52;
    --border: #d4d4d4;
    --error-bg: #fee2e2;
    --error-fg: #991b1b;
    --notice-bg: #fef3c7;
    --notice-fg: #78350f;
    --row-stripe: #f4f4f5;
    --code-bg: #f1f1ef;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
    font-size: 16px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.25rem 2rem;
}

h1 {
    color: var(--accent);
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: 1.6rem;
}

p { margin: 0.5rem 0; }
.lead { color: var(--muted); margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

label {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--fg);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
}

input[type="text"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button {
    margin-top: 1.25rem;
    padding: 0.65rem 1.4rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
}

button:hover { background: var(--accent-hover); }
button:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--error-bg);
    color: var(--error-fg);
    border-radius: 6px;
    font-size: 0.95rem;
}

.notice {
    padding: 1rem 1.25rem;
    background: var(--notice-bg);
    color: var(--notice-fg);
    border-radius: 6px;
    margin: 1rem 0;
}

.dist-list {
    list-style: none;
    padding: 0;
}

.dist-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.dist-list li:last-child { border-bottom: none; }

.dist-list a {
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.92rem;
}

table.data th, table.data td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

table.data th {
    font-weight: 600;
    background: var(--row-stripe);
}

table.data.small {
    font-size: 0.82rem;
}

table.data .ua {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

tr.outcome-served { background: #f0fdf4; }
tr.outcome-not_found, tr.outcome-rate_limited { background: #fef2f2; }

code {
    background: var(--code-bg);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem 3rem;
    font-size: 0.85rem;
}
