:root {
  --navy: #232d4b;      /* UVA navy */
  --orange: #e57200;    /* UVA orange */
  --ink: #1c2333;
  --muted: #5b6472;
  --line: #e2e6ee;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ok: #1c7c4a;
  --err: #c0392b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.topbar { background: var(--navy); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .2px; }
.signout { color: #cdd5e6; text-decoration: none; font-size: 14px; }
.signout:hover { color: #fff; }
main.wrap { padding-top: 22px; padding-bottom: 40px; }

h1 { font-size: 1.5rem; margin: 0 0 12px; line-height: 1.25; }
.greet { margin-bottom: 4px; }
.sub, .lead { color: var(--muted); }
.lead { font-size: 1.05rem; }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 16px; }
.notice { background: #fff7e8; border: 1px solid #f3d9a8; padding: 10px 12px; border-radius: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 14px 0; box-shadow: 0 1px 2px rgba(20,30,60,.04); }
.center { text-align: center; }
.hero { padding: 32px 20px; }

.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: 11px 16px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: #cf6800; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: #c4ccdb; }
.btn.big { padding: 13px 22px; font-size: 16px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.inline { display: inline; margin: 0; }

.courselist { list-style: none; margin: 0; padding: 0; }
.course { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.course-main { min-width: 0; }
.ccode { font-weight: 700; color: var(--navy); }
.ctitle { font-size: 1.05rem; }
.cinstr { color: var(--muted); font-size: 14px; }
.course-action { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { background: #eef1f7; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.badge.done { background: #e7f5ec; color: var(--ok); }

fieldset.q { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; background: #fff; }
fieldset.q.has-error { border-color: var(--err); background: #fff7f6; }
legend { font-weight: 600; padding: 0 6px; }
.qnum { color: var(--orange); font-weight: 700; margin-right: 4px; }
.req { color: var(--err); }
.err { color: var(--err); font-size: 14px; margin: 4px 0 8px; }
.error-summary { border-color: var(--err); color: var(--err); }

.options { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; cursor: pointer; }
.opt:hover { background: #f3f5fa; }
.opt input { width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; resize: vertical; }

.warnlist { margin: 12px 0; padding-left: 20px; }
.warnlist li { margin: 8px 0; }
.answered { font-weight: 600; }

.receipt .check { font-size: 42px; color: #fff; background: var(--ok); width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 4px auto 12px; }
.receipt-course { font-size: 1.1rem; margin: 10px 0; }

.foot { color: var(--muted); font-size: 13px; padding: 18px 0 30px; text-align: center; }

@media (min-width: 560px) {
  .options.likert { flex-direction: row; justify-content: space-between; gap: 4px; }
  .options.likert .opt { flex-direction: column; text-align: center; flex: 1; font-size: 13px; gap: 6px; }
}
