:root { --fg: #1b1f24; --muted: #57606a; --bg: #ffffff; --accent: #0b5cad; --border: #d0d7de; }
@media (prefers-color-scheme: dark) { :root { --fg: #e6edf3; --muted: #9da7b3; --bg: #0d1117; --accent: #58a6ff; --border: #30363d; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
header.site { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
header.site form { display: flex; gap: .5rem; align-items: center; margin: 0; }
.brand { font-weight: 600; color: var(--fg); text-decoration: none; }
.who, .meta, small { color: var(--muted); }
main { max-width: 48rem; margin: 0 auto; padding: 1rem; }
a { color: var(--accent); }
label { display: block; font-weight: 500; margin-bottom: .25rem; }
input, textarea, select { width: 100%; padding: .5rem; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }
button { font: inherit; padding: .5rem 1rem; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; }
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.message { padding: .5rem 1rem; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
a.button { display: inline-block; padding: .5rem 1rem; border-radius: 4px; background: var(--accent); color: #fff; text-decoration: none; }
.tabs { display: flex; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tabs a { padding: .5rem 0; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.cards { list-style: none; padding: 0; }
.cards li { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
form > div, form > p { margin-bottom: 1rem; }
.helptext { display: block; color: var(--muted); font-size: .875rem; }
input[type="checkbox"] { width: auto; }
.errorlist, .errors, .warning { color: #b42318; }
@media (prefers-color-scheme: dark) { .errorlist, .errors, .warning { color: #ff7b72; } }
.errorlist { padding-left: 1rem; margin: .25rem 0; }
.note { color: var(--muted); font-style: italic; }
.actions { display: flex; gap: 1rem; align-items: center; }
button.danger { background: #b42318; }
button.link.danger { background: none; color: #b42318; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.rubric li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.rubric small { display: block; }
.row-actions { display: flex; gap: .75rem; align-items: start; white-space: nowrap; }
.row-actions form { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.message.error { border-left-color: #b42318; }
.panel { border: 1px solid var(--border); border-radius: 6px; padding: 0 1rem 1rem; margin: 1rem 0; }
.word-count { margin: .25rem 0 0; color: var(--muted); font-size: .875rem; }
.word-count.over { color: #b42318; font-weight: 600; }
.abstract-body { white-space: normal; overflow-wrap: anywhere; }
button.secondary { background: none; color: var(--accent); border: 1px solid var(--accent); }
.ok { color: #1a7f37; }
@media (prefers-color-scheme: dark) { .ok { color: #3fb950; } }
ul.plain { list-style: none; padding: 0; margin: 0; }
li.cancelled { text-decoration: line-through; color: var(--muted); }
fieldset { border: 1px solid var(--border); border-radius: 4px; margin: 1rem 0; }
fieldset label { font-weight: normal; display: flex; gap: .5rem; align-items: center; }
details { margin: .5rem 0 1rem; }
.question { margin: 1.25rem 0; }
.question.has-error { border-left: 4px solid #b42318; padding-left: .75rem; }
.question fieldset { margin: 0; }
.scale { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.scale label { display: flex; align-items: center; gap: .35rem; font-weight: normal; min-width: 2.75rem; min-height: 2.75rem; }
.answers dt { font-weight: 600; margin-top: 1rem; }
.answers dd { margin: .25rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.stats div { border: 1px solid var(--border); border-radius: 6px; padding: .5rem .75rem; }
.stats dt { color: var(--muted); font-size: .875rem; }
.stats dd { margin: 0; font-size: 1.5rem; font-weight: 600; }
.stats .flagged, tr.flagged { background: color-mix(in srgb, #b42318 10%, transparent); }
tr.dropped { color: var(--muted); }
table.progress td { text-align: right; }
table.progress td:first-of-type, table.progress td:last-child { text-align: left; }
details.flag { margin: 1.5rem 0; }
td.row-actions { display: table-cell; }
td.row-actions a { margin-right: .75rem; }
.copy-field { display: flex; gap: .5rem; align-items: center; }
.copy-field input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: .9rem; }
