:root { --ink: #1c1f24; --muted: #5d6470; --line: #d9dde3; --accent: #2457c5; --bg: #fbfbfa; --ok: #1f7a43; --part: #9a6a00; --no: #a3342b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 920px; margin: 0 auto; padding: 24px 16px 64px; }
header { display: flex; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 24px; }
header .mark { font-weight: 700; margin-right: auto; }
header a { color: var(--accent); text-decoration: none; font-size: 14px; }
h1 { font-size: 28px; margin: 0 0 6px; }
.lede { color: var(--muted); margin: 0 0 18px; }
form { display: flex; gap: 10px; }
textarea { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
button { font: inherit; cursor: pointer; }
form button { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 0 20px; }
#samples { margin-top: 18px; }
.section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--ink); text-align: left; }
.chips button:hover { border-color: var(--accent); color: var(--accent); }
.asked { font-weight: 600; margin: 20px 0 8px; }
.log { background: #111418; color: #d7dde5; border-color: #111418; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; max-height: 360px; }
.more { margin-top: 16px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--muted); }
#status { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 10px; border-radius: 999px; background: #e8ecf5; color: var(--accent); }
.badge.complete { background: #e3f3e8; color: var(--ok); } .badge.partial { background: #fbf0d9; color: var(--part); } .badge.unanswered { background: #f8e3e1; color: var(--no); }
#claims { padding-left: 20px; } #claims li { margin: 6px 0; }
.note { color: var(--muted); font-size: 14px; margin: 4px 0; }
pre { background: #f2f3f5; border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; font-size: 13px; max-height: 480px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
details { margin: 14px 0; } summary { cursor: pointer; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e6e8eb; --muted: #9aa3ae; --line: #343a42; --accent: #7aa2ff; --bg: #15181c; }
  textarea, .chips button { background: #1d2126; color: var(--ink); } pre { background: #1d2126; }
  .badge { background: #22304f; } .badge.complete { background: #1b3526; } .badge.partial { background: #3a2f14; } .badge.unanswered { background: #3d1f1c; }
}
@media (max-width: 600px) { form { flex-direction: column; } form button { padding: 10px; } }
.log .stage { color: #8fc1ff; font-weight: 600; margin-top: 8px; border-top: 1px solid #2a3038; padding-top: 6px; }
.log .stage:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.stages-title { font-size: 16px; margin: 28px 0 4px; }
table.compact { width: auto; font-size: 13px; }
details.stage { margin: 0; border-top: 1px solid var(--line); }
details.stage:last-child { border-bottom: 1px solid var(--line); }
details.stage summary { display: flex; gap: 12px; align-items: baseline; padding: 8px 2px; color: var(--ink); }
.stage-name { font-weight: 600; min-width: 210px; }
.stage-meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.stage-body { padding: 0 2px 10px; }
.stage-lines { white-space: pre-wrap; max-height: 320px; }
@media (max-width: 600px) { details.stage summary { flex-direction: column; gap: 2px; } .stage-name { min-width: 0; } }
header nav { display: flex; gap: 16px; }
.docs { padding-left: 20px; } .docs li { margin: 5px 0; } .docs a { color: var(--accent); }
#dirs button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
#filter input { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; margin: 12px 0 4px; }
.front th { white-space: nowrap; vertical-align: top; }
.front td pre { margin: 0; white-space: pre-wrap; }
.okf-body pre { white-space: pre-wrap; }
.okf-body code { font-size: 0.92em; }
ul.plain { margin: 0; padding-left: 18px; }
