:root { color-scheme: light dark; --bg: #f4f6fa; --card: #fff; --text: #1c2940; --muted: #61708a; --line: #dce3ef; --accent: #3858cc; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 system-ui, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px max(24px, calc((100vw - 1200px)/2)); background: var(--card); border-bottom: 1px solid var(--line); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.brand { font-size: 20px; font-weight: 750; white-space: nowrap; }
.brand span { font-size: 12px; color: var(--muted); margin-left: 12px; }
.relay-link { margin-left: auto; flex-shrink: 0; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 8px; font-weight: 600; white-space: nowrap; }
.relay-link:hover { background: var(--bg); text-decoration: none; }
nav { display: flex; gap: 20px; }
main { max-width: 1200px; padding: 30px 24px; margin: auto; }
.intro { max-width: 850px; margin: 10px 0 30px; }
.eyebrow { letter-spacing: .15em; font-size: 12px; font-weight: 700; color: var(--accent); }
h1 { font-size: clamp(25px, 4vw, 36px); line-height: 1.4; }
h2 { font-size: 20px; margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 13px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin-bottom: 24px; }
form { display: grid; gap: 10px; }
label { font-weight: 600; }
input, select { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--bg); font: inherit; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
button { background: var(--accent); color: white; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font: inherit; cursor: pointer; white-space: nowrap; }
button:disabled { opacity: .5; cursor: default; }
.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.form-footer, .section-head, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-footer { margin-top: 10px; }
.section-head h2 { margin: 0; }
.section-head > div { display: flex; align-items: center; gap: 12px; }
.record-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-tabs { display: inline-flex; gap: 0; }
.record-tabs button { border-radius: 0; padding: 7px 18px; font-size: 13px; }
.record-tabs button:first-child { border-radius: 8px 0 0 8px; }
.record-tabs button:last-child { border-radius: 0 8px 8px 0; }
.record-tabs .secondary { background: var(--bg); }
summary { cursor: pointer; color: var(--accent); padding: 10px 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--bg); border-radius: 10px; font: 14px/1.8 ui-monospace, monospace; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); white-space: nowrap; }
td small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-block; border-radius: 20px; padding: 3px 10px; background: var(--bg); white-space: nowrap; }
.detail-result { display: block; width: fit-content; margin: 16px 0; padding: 8px 20px; font-size: 24px; font-weight: 750; }
.pass { color: #09835a; background: #e2f5ed; }
.watered { color: #996000; background: #fff2d2; }
#detail-comparison { white-space: pre-wrap; margin: 12px 0; }
.dual-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dual-answers[hidden] { display: none; }
.dual-answer-panel { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.dual-answer-panel h4 { margin: 0 0 10px; }
.dual-answer-panel .probe-answer { max-height: 440px; overflow: auto; }
.dual-answer-panel .probe-error { white-space: pre-wrap; overflow-wrap: anywhere; color: #b53945; }
@media (max-width: 600px) { .dual-answers { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .watered { color: #ffd17d; background: #49391d; } }
.fail, .failed { color: #b53945; background: #ffe9eb; }
.running, .queued { color: var(--accent); }
.pagination { justify-content: flex-end; margin-top: 20px; }
dialog { width: min(900px, calc(100% - 32px)); max-height: 90vh; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: var(--card); padding: 24px; }
dialog::backdrop { background: #0c183a88; }
#detail > .section-head { flex-direction: row; align-items: center; justify-content: space-between; }
#close-detail { margin-left: auto; flex-shrink: 0; }
#message, #detail-error { overflow-wrap: anywhere; }
#detail-error { white-space: pre-wrap; }
.markdown-body { line-height: 1.85; overflow-wrap: anywhere; min-width: 0; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { line-height: 1.5; margin: 1.2em 0 .6em; }
.markdown-body h1 { font-size: 24px; }
.markdown-body h2 { font-size: 21px; }
.markdown-body h3 { font-size: 18px; }
.markdown-body ul, .markdown-body ol { padding-left: 1.8em; }
.markdown-body blockquote { margin: 1em 0; border-left: 3px solid var(--accent); padding: 4px 16px; color: var(--muted); }
.markdown-body code { background: var(--bg); padding: 2px 5px; border-radius: 4px; font-size: .9em; }
.markdown-body pre { white-space: pre; overflow-x: auto; }
.markdown-body pre code { padding: 0; background: transparent; }
.markdown-body table { display: block; overflow-x: auto; font-size: 14px; margin: 1em 0; }
.markdown-body th, .markdown-body td { border: 1px solid var(--line); padding: 8px 14px; }
.markdown-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.markdown-body .katex-display { overflow-x: auto; overflow-y: hidden; padding: 8px 2px; }
@media (max-width: 600px) { header { padding: 16px; flex-wrap: wrap; } main { padding: 16px; } .panel { padding: 16px; } .form-footer, .section-head { align-items: flex-start; flex-direction: column; } nav { font-size: 13px; } }
@media (prefers-color-scheme: dark) { :root { --bg: #131b29; --card: #1d283b; --text: #e5ecf9; --muted: #a0afc6; --line: #34425b; --accent: #8aa4ff; } button:not(.secondary) { color: #142043; } .pass { background: #123e32; color: #7ce1b5; } .fail, .failed { background: #462a35; color: #ff9fa9; } }
