:root {
    --ink: #1b1b1b;
    --paper: #fbfbfa;
    --line: #d8d6d1;
    --accent: #7a3b2e;
    --error: #9b2226;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.brand { font-weight: 600; color: var(--ink); text-decoration: none; }
.signout { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }

main { max-width: 34rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

h1 { font-size: 1.5rem; margin: 0 0 1rem; }

label { display: block; margin: 1rem 0 0.3rem; font-size: 0.9rem; font-weight: 500; }

input[type="email"], input[type="password"], input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

input:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button {
    margin-top: 1.25rem;
    padding: 0.6rem 1.1rem;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.signout button { margin: 0; padding: 0.35rem 0.7rem; font-size: 0.85rem; }

.error { color: var(--error); font-size: 0.9rem; }
.notice {
    padding: 0.7rem 0.9rem;
    border-left: 3px solid var(--accent);
    background: #fff;
    font-size: 0.95rem;
}

/* ---------------------------------------------------------------- wider pages */

main.wide { max-width: 62rem; }

select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

input[type="file"] { width: 100%; font: inherit; }

a { color: var(--accent); }

.hint { color: #5c5852; font-size: 0.9rem; }
.small { font-size: 0.85rem; }

/* Wide content scrolls in its own box rather than pushing the page sideways. */
.scroll { overflow-x: auto; margin: 1.25rem 0; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

caption {
    text-align: left;
    padding: 0 0 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
}

th, td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

thead th {
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5c5852;
}

/* Digits in a column line up. */
.num { text-align: right; font-variant-numeric: tabular-nums; }

.state {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: nowrap;
    background: #eeece8;
}

.state-complete { background: #dfeadf; }
.state-rendering { background: #e4e8f2; }
.state-failed { background: #f4dcdc; }
