:root { color-scheme: light; --ink: #222222; --muted: #555555; --line: #cccccc; --accent: #222222; --surface: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f5f5; color: var(--ink); font: 14px/1.4 system-ui, sans-serif; }
main { max-width: 1200px; margin: 0 auto; padding: 16px 24px; }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
nav { display: flex; align-items: center; gap: 12px; }
a { color: var(--ink); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
h1 { margin: 0; }
p { margin: 8px 0; color: var(--muted); }
#decisionForm { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "decision result"; gap: 12px; }
.auth-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.auth-card { width: min(100%, 28rem); }
.auth-card .actions { justify-content: space-between; }
.admin-grid { display: grid; gap: 12px; }
[hidden] { display: none !important; }
.decision { grid-area: decision; }
section { padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-width: 0; }
h2 { font-size: 16px; margin: 0 0 8px; font-weight: 650; }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 13px; }
input, textarea, select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #ffffff; font: inherit; line-height: 1.4; }
textarea { resize: vertical; }
#criteria, pre { font-family: ui-monospace, monospace; font-size: 13px; }
button { cursor: pointer; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; background: white; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; }
button:hover { background: #eeeeee; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #555555; outline-offset: 3px; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.primary { background: var(--accent); border-color: var(--accent); color: white; padding: 10px 20px; white-space: nowrap; }
.primary:hover { background: #444444; }
#submit span { margin-left: 20px; }
.result { grid-area: result; }
.result-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
#status { font-size: 13px; color: var(--muted); }
#summary { font-weight: 600; }
pre { padding: 12px; margin: 8px 0 0; background: #f5f5f5; overflow: auto; max-height: clamp(160px, 50vh, 420px); border-radius: 4px; }
#error, .notice:not(:empty) { color: #222222; padding: 12px; background: #eeeeee; border-left: 3px solid #222222; }
.notice:empty { margin: 0; }
.account strong { color: var(--ink); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
th { background: #f5f5f5; }
@media (max-width: 700px) {
  main { padding: 16px; }
  #decisionForm { grid-template-columns: 1fr; grid-template-areas: "decision" "result"; }
  .actions { align-items: stretch; flex-direction: column; }
}
