/* Herald operator UI. One stylesheet, no npm — same reason as the marketing
   site (DECISIONS.md D8). Tokens match the marketing dark theme so the two
   surfaces feel related without sharing a project. */

:root {
    --ink: #f4f4f5;
    --ink-muted: #a1a1aa;
    --bg: #09090b;
    --bg-raised: #131316;
    --line: #27272a;
    --accent: #f97316;
    --danger: #fca5a5;
    --measure: 56rem;
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--ink);
}

h1 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.container {
    width: min(var(--measure), calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
    margin-bottom: 1.75rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    font-weight: 650;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.header-form {
    margin: 0;
}

.text-button {
    background: none;
    border: 0;
    color: var(--ink-muted);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

main.container {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

.lede {
    color: var(--ink-muted);
    max-width: 40rem;
}

.lede code {
    color: var(--ink);
}

.stack {
    display: grid;
    gap: 1rem;
    max-width: 22rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
}

input[type="text"] {
    font: inherit;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: var(--bg-raised);
    color: var(--ink);
}

button[type="submit"]:not(.text-button) {
    font: inherit;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--accent);
    color: #1c1917;
    cursor: pointer;
    width: fit-content;
}

.error {
    color: var(--danger);
}

.meta {
    display: flex;
    gap: 2rem;
    margin: 1.25rem 0;
}

.meta dt {
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.meta dd {
    margin: 0.15rem 0 0;
}

.toolbar {
    margin: 0 0 1.25rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th.num,
td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.empty {
    color: var(--ink-muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 0.85rem;
    padding: 1rem 0;
}

.site-footer p {
    margin: 0;
}
