:root { --maroon: #861f41; --orange: #e5751f; --ink: #1f2328; --muted: #57606a; --line: #d0d7de; --bg: #ffffff; --panel: #f6f8fa; --ok: #1a7f37; --bad: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
header.site { background: var(--maroon); color: #fff; }
header.site .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
header.site a { color: #fff; }
header.site nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.6rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
a { color: var(--maroon); }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; margin: 1rem 0; }
.notice { border-left: 4px solid var(--orange); background: #fff7ef; padding: .75rem 1rem; margin: 1rem 0; }
.status { border-left: 4px solid var(--ok); background: #effaf1; padding: .75rem 1rem; margin: 1rem 0; }
.errors { border-left: 4px solid var(--bad); background: #fff1f0; padding: .75rem 1rem; margin: 1rem 0; }
.errors ul { margin: .25rem 0 0; padding-left: 1.25rem; }
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
label.inline { display: inline; font-weight: normal; }
input[type=text], input[type=number], input[type=datetime-local], input[type=search], select, textarea { width: 100%; max-width: 40rem; padding: .5rem; border: 1px solid #8c959f; border-radius: 4px; font: inherit; }
textarea { min-height: 9rem; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
button, .button { display: inline-block; background: var(--maroon); color: #fff; border: 0; border-radius: 4px; padding: .55rem 1rem; font: inherit; cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { background: #fff; color: var(--maroon); border: 1px solid var(--maroon); }
button.link { background: none; color: var(--maroon); padding: 0; text-decoration: underline; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.row > div { flex: 1 1 12rem; }
table { width: 100%; border-collapse: collapse; margin: .5rem 0; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); }
.table-scroll { overflow-x: auto; }
.badge { display: inline-block; font-size: .85rem; padding: 0 .5rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.badge.submitted { border-color: var(--ok); color: var(--ok); }
.badge.draft { border-color: var(--muted); color: var(--muted); }
.answer { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); padding: .75rem; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
footer.site { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 3rem; }
