:root { color-scheme: light; --blue: #0065bd; --dark-blue: #003359; --ink: #222; --muted: #555; --line: #d9dfe4; --pale: #f3f6f8; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.55 Arial, Helvetica, sans-serif; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--dark-blue); }
:focus-visible { outline: 3px solid var(--dark-blue); outline-offset: 4px; }
header { border-top: 6px solid var(--blue); border-bottom: 1px solid var(--line); }
.bar, main, footer { width: min(1120px, calc(100% - 48px)); margin: auto; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; }
.brand { text-decoration: none; font-weight: bold; color: var(--blue); }
.brand span { display: block; color: var(--ink); font-weight: normal; font-size: .875rem; }
nav, .actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav { font-size: .9rem; }
main { padding: 48px 0 64px; min-height: 70vh; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 18px; font-weight: normal; color: var(--dark-blue); }
h2 { font-size: 1.35rem; line-height: 1.3; font-weight: normal; }
.eyebrow { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.intro { font-size: 1.125rem; color: var(--muted); margin-bottom: 36px; }
.assignment { border-top: 2px solid var(--blue); padding: 24px 0; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.assignment-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.state { font-size: .875rem; padding: 4px 10px; background: var(--pale); }
.facts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin: 16px 0 24px; }
dt { color: var(--muted); font-size: .875rem; margin-bottom: 4px; } dd { margin: 0; }
.points { font-weight: bold; }
.commit { font-size: .875rem; color: var(--muted); } code { overflow-wrap: anywhere; color: var(--ink); }
.actions { min-height: 24px; }
button, .button { font: inherit; background: var(--blue); color: #fff; border: 1px solid var(--blue); padding: 10px 18px; cursor: pointer; display: inline-block; text-decoration: none; }
button:hover, .button:hover { background: var(--dark-blue); color: #fff; }
.secondary { background: #fff; color: var(--blue); }
.quiet { color: var(--blue); border: 0; background: transparent; padding: 0; text-decoration: underline; }
.muted { color: var(--muted); font-size: .9rem; margin-top: 24px; max-width: 72ch; }
.policy { margin-top: 48px; max-width: 80ch; font-size: .95rem; }
.notice { background: var(--pale); padding: 12px 16px; border-left: 3px solid var(--blue); }
.empty { padding: 24px; background: var(--pale); }
footer { color: var(--muted); border-top: 1px solid var(--line); padding: 24px 0; font-size: .85rem; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; } th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); } th { color: var(--dark-blue); background: var(--pale); }
@media (max-width: 640px) { .bar, main, footer { width: calc(100% - 32px); } .bar { align-items: start; flex-direction: column; } main { padding-top: 32px; } h1 { font-size: 1.9rem; } .facts { grid-template-columns: 1fr; gap: 16px; } .assignment-heading { flex-direction: column; gap: 0; } .actions { gap: 18px; } }

.creation-progress { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.spinner { flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.execution-log { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--pale); padding: 20px; font: .875rem/1.5 monospace; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.admin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 40px; }
.admin-actions section { border: 1px solid var(--line); padding: 20px; }
label { display: block; margin: 20px 0; }
input:not([type=hidden]), textarea { display: block; width: 100%; max-width: 900px; padding: 10px; border: 1px solid #777; font: inherit; margin-top: 6px; }
textarea.code-input { font: .95rem/1.5 monospace; tab-size: 4; white-space: pre; min-height: 220px; }
.error { border-left-color: #a32020; }
form + form { margin-top: 24px; }
