:root { --ink: #222; --muted: #6b6b6b; --line: #ddd; --bg: #f6f6f4; --card: #fff; --accent: #2d5f8b; --inc: #1d7a4a; --exc: #a33a2d; --warn: #b8860b; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); }
header .brand { font-weight: 600; color: var(--ink); text-decoration: none; }
header nav a { margin-left: 16px; color: var(--accent); text-decoration: none; }
main { max-width: 1150px; margin: 0 auto; padding: 20px 24px 60px; }
h1 { font-size: 24px; font-weight: 600; margin: 8px 0 16px; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 600; margin: 16px 0 6px; }
a { color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; }
.card.narrow { max-width: 420px; margin: 60px auto; }
.muted { color: var(--muted); } .small { font-size: 13px; } .warn { color: var(--warn); } .error { color: var(--exc); }
.flash { background: #eef5ea; border: 1px solid #cfe3c4; color: #2f5a1f; padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.tag { font-size: 13px; background: #eee; border-radius: 12px; padding: 2px 10px; vertical-align: middle; color: var(--muted); }
label { display: block; margin: 8px 0; font-size: 14px; }
input[type=text], input:not([type]), input[type=password], input[type=number], input[type=file], select, textarea { width: 100%; padding: 7px 9px; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
textarea { resize: vertical; }
.row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.row label { flex: 1 1 200px; }
.row form { display: contents; }
button, .button { display: inline-block; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; cursor: pointer; text-decoration: none; margin: 8px 0; }
button.secondary, .button.secondary { background: #fff; color: var(--accent); }
button.danger { border-color: var(--exc); color: var(--exc); }
button.link { border: none; background: none; color: var(--accent); padding: 0; margin: 0; text-decoration: underline; }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions { margin-top: 12px; display: flex; gap: 10px; align-items: center; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 13px; color: var(--muted); }
table.compact td, table.compact th { padding: 4px 8px; }
table.tree input { width: 100%; }
table.tree td:first-child { width: 2em; color: var(--muted); }
table.tree td:last-child { white-space: nowrap; width: 7em; }
table.tree button { padding: 2px 7px; margin: 0 1px; }
.confusion th { text-align: right; }
details { margin-top: 12px; } summary { cursor: pointer; color: var(--accent); }
.dec { font-weight: 600; } .dec.include, .dec.incl { color: var(--inc); } .dec.exclude, .dec.excl { color: var(--exc); }
.status { font-size: 13px; padding: 2px 10px; border-radius: 12px; background: #eee; vertical-align: middle; }
.status.running { background: #e5eefb; color: var(--accent); } .status.finished { background: #e4f3ea; color: var(--inc); }
.status.failed, .status.cancelled { background: #f8e5e2; color: var(--exc); }
.bar { height: 10px; background: #eee; border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
.bar .fill { height: 100%; background: var(--accent); transition: width .5s; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.abstract { white-space: pre-wrap; }
ol.steps { padding-left: 20px; } ol.steps li { margin-bottom: 12px; } ol.steps .q { font-weight: 500; }
.answers label { display: inline-block; margin: 2px 14px 2px 0; }
.answers input { width: auto; }
.filters a { padding: 3px 10px; border-radius: 12px; text-decoration: none; } .filters a.on { background: var(--accent); color: #fff; }
table.decisions tr.main { cursor: pointer; } table.decisions tr.main:hover { background: #fafaf7; }
tr.hidden { display: none; }
.ans { font-weight: 600; } .ans.yes, .ans.likely { color: var(--inc); } .ans.no { color: var(--exc); } .ans.unclear { color: var(--warn); }
