:root {
    --ink: #1c1c1c;
    --muted: #5c5c5c;
    --line: #d8d8d8;
    --bad: #a4262c;
    --good: #0f7b34;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
}

header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.brand { font-weight: 600; text-decoration: none; color: var(--ink); }
.who { color: var(--muted); font-size: 0.9rem; }
.inline { display: inline; }

main { max-width: 60rem; margin: 0 auto; padding: 1.5rem; }
.narrow { max-width: 22rem; }

h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }

.hint { color: var(--muted); font-size: 0.9rem; }
.error { color: var(--bad); }
.ok { color: var(--good); }

label { display: block; margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

input[type="text"], input[type="password"], input:not([type]) {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
}

button {
    margin-top: 1.25rem;
    padding: 0.5rem 1.1rem;
    border: 0;
    border-radius: 4px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

button.link {
    margin: 0;
    padding: 0;
    background: none;
    color: var(--muted);
    text-decoration: underline;
}

.upload {
    padding: 1.25rem;
    border: 1px dashed var(--line);
    border-radius: 6px;
}

.upload button { margin-top: 1rem; }

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

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

table.errors th { color: var(--muted); font-weight: 600; }

.spinner::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.5em;
    border: 2px solid var(--line);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: -0.1em;
}

@keyframes spin { to { transform: rotate(360deg); } }
