/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 · genre: modern-minimal · tone: calm operational · anchor: Thyra Signal · macrostructure: operational-workbench · contrast: pass (40–41) · nav: N2 · footer: Ft1 · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive/mobile: pass (34, 49–57) */
@font-face { font-family: "Space Grotesk"; src: url("/brand/fonts/SpaceGrotesk-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/brand/fonts/SpaceGrotesk-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/brand/fonts/SpaceGrotesk-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/brand/fonts/SpaceGrotesk-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/brand/fonts/IBMPlexMono-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/brand/fonts/IBMPlexMono-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
    color-scheme: light;
    --thyra-ink: #0e1726;
    --thyra-signal: #12b5a5;
    --thyra-ground: #f3f5f7;
    --thyra-slate: #4a5568;
    --thyra-mist: #a9b4c4;
    --thyra-white: #ffffff;
    --thyra-signal-hover: #0f9f92;
    --thyra-warning: #8a4b08;
    --thyra-warning-bg: #fff4df;
    --thyra-error: #a2212a;
    --thyra-rule: #d7dce3;
    --thyra-field-hover: #fafbfc;
    --thyra-disabled: #e0e4e9;
    --thyra-disabled-rule: #c4cbd5;
    --thyra-focus: #0074d4;
    --color-accent: var(--thyra-signal);
    --color-accent-ink: var(--thyra-ink);
    --font-body: "Space Grotesk", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    font-family: var(--font-body);
    color: var(--thyra-ink);
    background: var(--thyra-ground);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--thyra-ground); }
header { min-height: 84px; background: var(--thyra-ink); color: var(--thyra-white); padding: 20px 5%; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
header a { font-weight: 600; color: var(--thyra-white); text-decoration: none; }
header .brand { display: inline-flex; align-items: center; min-height: 48px; }
header .brand img { display: block; width: 156px; height: auto; }
header span, .eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
header form { margin-left: auto; }
header button { margin: 0; background: var(--thyra-white); color: var(--thyra-ink); }
main { max-width: 1320px; padding: 44px 28px; margin: auto; }
h1, h2, h3 { font-weight: 600; }
h1 { min-width: 0; overflow-wrap: anywhere; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.08; margin: 12px 0 20px; }
h2 { font-size: 23px; margin: 0 0 18px; }
p { line-height: 1.62; }
section { background: var(--thyra-white); border: 1px solid var(--thyra-rule); border-radius: 8px; padding: 24px; margin: 24px 0; }
.notice { background: var(--thyra-warning-bg); color: var(--thyra-ink); border-left: 4px solid var(--thyra-warning); padding: 16px 20px; line-height: 1.6; }
.narrow { max-width: 560px; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.columns section { margin-bottom: 0; }
label { display: block; font-weight: 600; margin: 20px 0 8px; }
input, select, textarea { min-height: 44px; font: inherit; width: 100%; padding: 12px 40px; color: var(--thyra-ink); background: var(--thyra-white); border: 1px solid var(--thyra-mist); border-radius: 4px; outline: 2px solid transparent; outline-offset: 1px; }
textarea { min-height: 7rem; resize: vertical; }
textarea, code { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
button { min-height: 44px; white-space: nowrap; font: inherit; font-weight: 600; background: var(--color-accent); color: var(--color-accent-ink); border: 1px solid transparent; border-radius: 4px; padding: 12px 20px; margin-top: 20px; cursor: pointer; transition: background-color 180ms var(--ease-out), transform 100ms var(--ease-out); }
button:active { transform: translateY(1px); }
button.secondary { background: var(--thyra-white); border-color: var(--thyra-mist); color: var(--thyra-ink); font-size: 13px; }
:focus-visible { outline: 3px solid var(--thyra-focus); outline-offset: 3px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { color: var(--thyra-slate); font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; background: var(--thyra-ground); }
th, td { padding: 16px 12px; border-bottom: 1px solid var(--thyra-rule); vertical-align: top; }
td button { margin-top: 8px; }
small { font-size: 12px; color: var(--thyra-slate); overflow-wrap: anywhere; }
.error { color: var(--thyra-error); }
footer { padding: 20px 5% 40px; color: var(--thyra-slate); font-size: 13px; }
.command-state { border-left: 4px solid var(--thyra-slate); background: var(--thyra-ground); color: var(--thyra-ink); padding: 16px 20px; }
.skip-link { position: absolute; left: 16px; top: -64px; padding: 12px 16px; background: var(--thyra-white); color: var(--thyra-ink); z-index: 1; }
.skip-link:focus { top: 12px; }
.command-state strong { font-size: 24px; }
.command-state p { margin: 8px 0 0; }
.command-state[data-state="locked"], .command-state[data-state="unlocked"] { border-color: var(--thyra-signal); }
.command-state[data-state="queued"], .command-state[data-state="processing"], .command-state[data-state="attention"] { border-color: var(--thyra-warning); background: var(--thyra-warning-bg); color: var(--thyra-ink); }
.command-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.command-actions button { min-height: 48px; min-width: 160px; margin: 0; font-size: 16px; }
button:disabled, button:disabled:hover { background: var(--thyra-disabled); color: var(--thyra-slate); border-color: var(--thyra-disabled-rule); cursor: not-allowed; opacity: .65; transform: none; }
input:disabled, select:disabled, textarea:disabled { background: var(--thyra-disabled); color: var(--thyra-slate); cursor: not-allowed; opacity: .55; }
summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
caption { text-align: left; font-weight: 600; padding: 16px 0; }

@media (hover: hover) {
    button:hover { background: var(--thyra-signal-hover); }
    button.secondary:hover { background: var(--thyra-ground); color: var(--thyra-ink); }
    input:hover, select:hover, textarea:hover { background: var(--thyra-field-hover); }
}
@media (max-width: 480px) {
    header { gap: 16px; padding: 16px; }
    header form { margin-left: 0; }
    main { padding: 28px 16px; }
    section { padding: 16px; }
    .command-actions form, .command-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    button { transition: none; }
}
