:root {
  --navy: #071f49;
  --navy-soft: #19355f;
  --blue: #3973b9;
  --blue-dark: #2f63a3;
  --blue-pale: #eef5fc;
  --border: #8792a5;
  --border-light: #d9dee6;
  --text: #0a2147;
  --muted: #66758d;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --danger: #a4292f;
  --danger-pale: #fff3f3;
  --warning: #8a5b00;
  --warning-pale: #fff8e8;
  --success: #1d704d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 41, 75, 0.08);
}

* { box-sizing: border-box; }

html { background: #f6f8fb; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #f6f8fb;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(25px, 4vw, 36px); font-weight: 500; color: var(--navy); }
h2 { margin-bottom: 10px; font-size: clamp(24px, 3vw, 31px); font-weight: 500; color: var(--navy); }
h3 { margin-bottom: 6px; font-size: 20px; font-weight: 500; color: var(--navy); }
p { color: var(--muted); line-height: 1.5; }

.ba-logo { width: min(270px, 35vw); height: auto; }
.main-shell { padding: 28px 0 60px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.step {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 600;
}

.step > span:first-child {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #edf0f4;
  color: var(--muted);
  font-size: 13px;
}
.step.is-active { border-color: var(--blue); color: var(--navy); background: var(--blue-pale); }
.step.is-active > span:first-child { background: var(--blue); color: white; }
.step.is-complete > span:first-child { background: var(--navy); color: white; }

.panel {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #e2e7ee;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading p:last-child { margin-bottom: 0; max-width: 720px; }

.input-group, .field { display: grid; gap: 8px; }
label { color: var(--navy); font-weight: 500; }

input, textarea, select, .picker-button {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--navy);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input, select, .picker-button { min-height: 58px; padding: 0 18px; }
textarea { padding: 16px 18px; resize: vertical; min-height: 165px; line-height: 1.45; }
input:focus, textarea:focus, select:focus, .picker-button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(57,115,185,.14);
}

.prefix-input {
  min-height: 58px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.prefix-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57,115,185,.14); }
.prefix-input span { padding-left: 18px; color: var(--muted); white-space: nowrap; }
.prefix-input input { min-width: 0; min-height: 55px; border: 0; border-radius: 0; padding-left: 3px; box-shadow: none; }
.prefix-input input:focus { box-shadow: none; }

.button-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.compact-row { margin-top: 10px; }
.helper { color: var(--muted); font-size: 13px; line-height: 1.4; }

.primary-button, .secondary-button, .danger-button, .button-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.primary-button { background: var(--blue); color: #fff; border-color: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button.is-confirmed, .secondary-button.is-confirmed { background: var(--success); color: #fff; border-color: var(--success); }
.secondary-button { background: #fff; color: var(--navy); border-color: var(--border); }
.secondary-button:hover { background: var(--surface-soft); }
.danger-button { background: var(--danger); color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; }

.text-button, .icon-button {
  padding: 5px 4px;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 600;
}
.text-button:disabled { opacity: .35; }
.danger-text { color: var(--danger); }
.icon-button { font-size: 30px; line-height: 1; color: var(--muted); }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 13px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }

.individual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}
.add-button { min-height: 58px; }

.action-feedback { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.action-feedback.success { color: var(--success); background: #edf8f3; border: 1px solid #c9e7d8; }
.action-feedback.warning { color: var(--warning); background: var(--warning-pale); border: 1px solid #ead8ae; }
.action-feedback[hidden] { display: none; }

.review-section { margin-top: 24px; }
.review-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.review-heading p { margin-bottom: 0; font-size: 14px; }

.candidate-list {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}
.empty-state { padding: 20px; text-align: center; color: var(--muted); background: var(--surface-soft); }

.candidate-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(190px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}
.candidate-row:last-child { border-bottom: 0; }
.candidate-row.is-invalid { background: var(--warning-pale); }
.candidate-row.just-added { animation: candidate-added 1.55s ease-out; }
@keyframes candidate-added { 0%, 35% { background: #edf8f3; box-shadow: inset 4px 0 0 var(--success); } 100% { background: #fff; box-shadow: inset 0 0 0 transparent; } }
.candidate-row input { min-height: 42px; padding: 0 11px; border-radius: 9px; }
.candidate-ref-wrap { display: grid; gap: 4px; }
.ref-inline { display: flex; align-items: center; min-height: 42px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.ref-inline span { padding-left: 12px; color: var(--muted); white-space: nowrap; font-size: 14px; }
.ref-inline input { border: 0; padding-left: 2px; min-width: 70px; box-shadow: none; }
.ref-inline:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57,115,185,.14); }
.candidate-error { color: var(--warning); font-size: 12px; line-height: 1.25; }
.candidate-error:empty { display: none; }
.row-actions { display: flex; align-items: center; gap: 5px; padding-top: 0; }
.remove-button { min-height: 32px; border: 0; background: transparent; color: var(--danger); font-weight: 600; }

.footer-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.split-actions { justify-content: space-between; }

.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.picker-button { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.picker-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.summary-strip {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--navy);
}
.summary-strip strong { font-weight: 700; }

.final-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.summary-item { padding: 15px 16px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-soft); }
.summary-item span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.summary-item strong { color: var(--navy); font-weight: 600; }

.generate-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.generate-card { display: grid; grid-template-rows: auto minmax(48px, auto) auto 50px 58px; align-content: start; gap: 12px; padding: 22px; border: 1px solid var(--border-light); border-radius: 14px; background: #fff; min-height: 278px; box-sizing: border-box; }
.generate-card h3, .generate-card p, .generate-card label { margin-top: 0; }
.generate-card p { margin-bottom: 0; }
.generate-card label { align-self: end; margin-bottom: 0; }
.generate-card select,
.generate-static-control { width: 100%; height: 50px; min-height: 50px; box-sizing: border-box; margin: 0; }
.generate-static-control { display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); color: var(--navy); font-size: 16px; }
.generate-card > .primary-button,
.generate-card > .secondary-button { align-self: end; margin: 0; }

.status-message { margin-top: 18px; color: var(--muted); }
.status-message.error { color: var(--danger); }
.status-message.success { color: var(--success); }

.preview-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.preview-heading p { margin-bottom: 0; }
.pdf-frame-wrap { width: 100%; height: min(72vh, 780px); min-height: 480px; border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; background: #eef1f5; }
.pdf-frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; }

.email-reminder { margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--blue-pale); color: var(--navy); }
.email-list { display: grid; gap: 4px; margin-top: 8px; font-size: 14px; word-break: break-word; }

.modal-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
}
.modal-dialog::backdrop { background: rgba(4, 19, 45, .48); backdrop-filter: blur(3px); }
.modal-card { max-height: calc(100vh - 30px); overflow: auto; padding: clamp(20px, 4vw, 34px); border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.2); }
.modal-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-header h2 { margin-bottom: 0; }

.date-progress { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.date-choices { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; }
.date-choice { min-height: 48px; border: 1px solid var(--border-light); border-radius: 10px; background: #fff; color: var(--navy); font-weight: 600; }
.date-choice:hover, .date-choice:focus-visible { border-color: var(--blue); background: var(--blue-pale); }
.date-choices.months { grid-template-columns: repeat(3, minmax(0,1fr)); }
.date-choices.years { grid-template-columns: repeat(2, minmax(0,1fr)); }
.date-choices.years .date-choice { min-height: 70px; font-size: 20px; }
.validation-message { min-height: 20px; margin: 14px 0 0; color: var(--danger); font-size: 14px; }

.tutor-modal-card { display: grid; gap: 18px; }
.tutor-modal-card .modal-header { margin-bottom: 0; }
.signature-section { display: grid; gap: 10px; }
.signature-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.signature-heading p { margin: 4px 0 0; font-size: 13px; }
.signature-pad-wrap { padding: 8px; border: 1.5px solid var(--border); border-radius: 14px; background: white; touch-action: none; }
.signature-pad-wrap:focus-within { border-color: var(--blue); }
#signatureCanvas { display: block; width: 100%; aspect-ratio: 900 / 320; background: #fff; border-radius: 8px; touch-action: none; }
.upload-button { cursor: pointer; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.modal-actions { margin-top: 4px; }
.confirm-card { width: min(480px, 100%); margin: 0 auto; }

@media (max-width: 800px) {
  .shell { width: min(100% - 22px, 760px); }
  .header-inner { min-height: 88px; }
  .ba-logo { width: 175px; }
  .step { font-size: 13px; }
  .individual-grid, .details-grid, .generate-grid { grid-template-columns: 1fr; }
  .add-button { width: 100%; }
  .candidate-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    padding: 8px;
  }
  .candidate-row > input { grid-column: 1; grid-row: 1; }
  .candidate-ref-wrap { grid-column: 1; grid-row: 2; }
  .row-actions { grid-column: 2; grid-row: 1 / 3; padding-top: 0; justify-content: flex-end; }
  .final-summary { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 18px); }
  .main-shell { padding-top: 14px; }
  .header-inner { min-height: 78px; }
  h1 { font-size: 23px; }
  .eyebrow { font-size: 11px; }
  .ba-logo { width: 128px; }
  .steps { gap: 5px; }
  .step { min-height: 50px; padding: 5px 4px; gap: 5px; font-size: 11px; }
  .step > span:first-child { width: 22px; height: 22px; font-size: 11px; }
  .panel { padding: 20px 16px; border-radius: 14px; }
  .section-heading { display: grid; gap: 10px; margin-bottom: 24px; }
  input, select, .picker-button { min-height: 56px; }
  .prefix-input { min-height: 56px; }
  .prefix-input span { padding-left: 12px; font-size: 13px; }
  .button-row .primary-button, .button-row .secondary-button { width: 100%; }
  .compact-row .secondary-button, .compact-row .text-button { width: auto; }
  .footer-actions .primary-button, .footer-actions .secondary-button { flex: 1; }
  .footer-actions .text-button { flex: 0 0 auto; }
  .preview-heading { align-items: stretch; flex-direction: column; }
  .button-link { width: 100%; }
  .pdf-frame-wrap { min-height: 420px; height: 62vh; }
  .date-choices { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .date-choices.months { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal-dialog { width: calc(100% - 14px); }
  .modal-card { padding: 20px 15px; }
  .signature-heading { display: grid; }
}

/* ---------- Access gate ---------- */
.access-gate {
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  background: #f6f8fb;
}

.access-card {
  width: min(100%, 500px);
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid #e2e7ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.access-logo {
  display: block;
  width: min(250px, 66%);
  height: auto;
  margin: 0 0 34px auto;
}

.access-intro h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 7vw, 38px);
}

.access-intro p:last-child { margin-bottom: 0; }

.code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 44px;
  margin-top: 28px;
}

.code-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.code-dot.is-filled {
  border-color: var(--navy);
  background: var(--navy);
  transform: scale(1.05);
}

.access-message {
  min-height: 24px;
  margin: 4px 0 12px;
  text-align: center;
  font-size: 14px;
}

.access-message.is-error { color: var(--danger); }
.access-message.is-success { color: var(--success); }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(100%, 360px);
  margin: 0 auto;
}

.keypad-button {
  min-height: 66px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-size: 25px;
  font-weight: 500;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}

.keypad-button:hover { background: var(--blue-pale); border-color: var(--blue); }
.keypad-button:active { transform: scale(.97); }
.keypad-button:focus-visible { outline: 3px solid rgba(57,115,185,.2); outline-offset: 2px; }
.keypad-button:disabled { cursor: default; opacity: .55; }
.keypad-action { font-size: 15px; font-weight: 600; }

.privacy-statement {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.privacy-statement h2 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.privacy-statement p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.privacy-statement p:last-child { margin-bottom: 0; }

.access-card.is-denied { animation: access-shake .28s ease; }
@keyframes access-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

@media (max-width: 520px) {
  .access-gate { padding-left: 12px; padding-right: 12px; }
  .access-card { padding: 26px 20px 24px; border-radius: 18px; }
  .access-logo { width: 210px; max-width: 70%; margin-bottom: 28px; }
  .keypad-button { min-height: 62px; }
  .privacy-statement { margin-top: 26px; }
}

/* ---------- Course type selection ---------- */
.course-type-indicator {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #bfd1e7;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--navy);
}
.course-type-indicator[hidden] { display: none !important; }
.course-type-kicker {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-type-indicator strong { font-size: 17px; font-weight: 700; }
.course-type-indicator > span:last-child { color: var(--muted); font-size: 14px; }

.course-type-selector {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.5fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}
.course-type-copy h2 { margin-bottom: 7px; }
.course-type-copy p:last-child { margin-bottom: 0; }
.course-type-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.course-type-button {
  position: relative;
  min-height: 102px;
  padding: 18px 18px 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  text-align: left;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
}
.course-type-button strong { font-size: 18px; font-weight: 600; }
.course-type-button span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.course-type-button:hover, .course-type-button:focus-visible { border-color: var(--blue); background: #f8fbff; }
.course-type-button.is-selected {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.course-type-button.is-selected::after {
  content: "✓ Selected";
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 800px) {
  .course-type-selector { grid-template-columns: 1fr; gap: 14px; }
  .course-type-indicator { grid-template-columns: auto 1fr; }
  .course-type-indicator > span:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .course-type-buttons { grid-template-columns: 1fr; }
  .course-type-button { min-height: 88px; }
  .course-type-selector { padding-bottom: 24px; margin-bottom: 24px; }
  .course-type-indicator { padding: 11px 13px; gap: 6px 10px; }
  .course-type-indicator strong { font-size: 16px; }
}

/* ---------- Full Course SRG3105 workflow ---------- */
body.full-course-selected .steps { grid-template-columns: repeat(4, 1fr); }
.footer-action-group { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

.srg-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 16px 18px;
  border: 1px solid #bfd1e7;
  border-radius: 12px;
  background: var(--blue-pale);
}
.srg-progress-bar strong { display: block; margin-top: 3px; color: var(--navy); font-size: 18px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--warning-pale);
  color: var(--warning);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill.is-ready { background: #edf8f3; color: var(--success); }

.srg-section { padding-top: 4px; margin-top: 26px; }
.srg-section + .srg-section { padding-top: 28px; border-top: 1px solid var(--border-light); }
.srg-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.srg-section-heading p { margin-bottom: 0; }

.srg-common-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.readonly-field { align-content: start; }
.readonly-value {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--navy);
  font-weight: 600;
}
.inline-warning { margin: 16px 0 0; padding: 11px 13px; border: 1px solid #ead8ae; border-radius: 10px; background: var(--warning-pale); color: var(--warning); font-size: 13px; line-height: 1.4; }
.inline-warning[hidden] { display: none; }

.srg-fixed-values { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.srg-fixed-values > div { padding: 12px 14px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--border-light); }
.srg-fixed-values .wide { grid-column: 1 / -1; }
.srg-fixed-values span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.srg-fixed-values strong { color: var(--navy); font-size: 14px; line-height: 1.4; }

.srg-candidate-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.srg-candidate-choice {
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  text-align: left;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
}
.srg-candidate-choice:hover, .srg-candidate-choice:focus-visible { border-color: var(--blue); background: #f8fbff; }
.srg-candidate-choice.is-selected { border-color: var(--blue); background: var(--blue-pale); box-shadow: inset 0 0 0 1px var(--blue); }
.srg-candidate-choice.is-complete { border-color: #9ed0b8; }
.candidate-choice-copy { min-width: 0; }
.candidate-choice-copy strong, .candidate-choice-copy small { display: block; overflow-wrap: anywhere; }
.candidate-choice-copy strong { margin-bottom: 4px; font-size: 15px; }
.candidate-choice-copy small { color: var(--muted); font-size: 12px; }
.candidate-choice-status { flex: 0 0 auto; max-width: 96px; color: var(--warning); font-size: 11px; font-weight: 700; line-height: 1.25; text-align: right; }
.srg-candidate-choice.is-complete .candidate-choice-status { color: var(--success); }

.selected-candidate-section {
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--surface-soft);
}
.srg-section + .selected-candidate-section { border-top: 1px solid var(--border-light); }
.selected-candidate-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.selected-candidate-heading h3 { margin: 4px 0; font-size: 23px; }
.selected-candidate-heading p { margin-bottom: 0; font-size: 14px; }
.srg-selected-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.srg-selected-fields .field label { font-size: 13px; }
.srg-selected-fields select, .srg-selected-fields input, .srg-selected-fields .picker-button { min-height: 50px; padding-left: 13px; padding-right: 13px; border-radius: 10px; }
.exam-result { min-height: 24px; display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; font-weight: 700; }
.exam-result.pass { color: var(--success); }
.exam-result.fail { color: var(--danger); }
.exam-result.pending { color: var(--muted); }
.srg-candidate-issues { margin: 14px 0 0; color: var(--warning); font-size: 13px; line-height: 1.4; }
.srg-candidate-issues:empty { display: none; }

.official-form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid #bfd1e7;
  border-radius: 14px;
  background: var(--blue-pale);
}
.official-form-copy { max-width: 690px; }
.official-form-copy h3 { margin: 7px 0 6px; }
.official-form-copy p { margin-bottom: 7px; }
.official-form-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.official-form-actions { flex: 0 0 auto; display: grid; gap: 8px; justify-items: stretch; min-width: 210px; }
.template-status { margin: 10px 0 0 !important; color: var(--muted); font-size: 13px; font-weight: 600; }
.template-status.is-ready { color: var(--success); }
.template-status.is-error { color: var(--danger); }
.template-status.is-loading { color: var(--blue-dark); }

.end-pack-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #fff;
}
.end-pack-card h3 { margin: 5px 0 7px; }
.end-pack-card p { margin-bottom: 0; }
.end-pack-card .primary-button { flex: 0 0 auto; }
.srg-files-ready { display: grid; gap: 9px; margin-top: 18px; padding: 14px; border: 1px solid #c9e7d8; border-radius: 12px; background: #edf8f3; }
.srg-files-ready[hidden] { display: none; }
.srg-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 9px; background: #fff; }
.srg-file-row span { min-width: 0; color: var(--navy); font-size: 14px; overflow-wrap: anywhere; }
.srg-file-row button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; }
.srg-pack-preview { margin-top: 20px; }
.output-section .email-reminder { margin-top: 20px; }

@media (max-width: 900px) {
  .srg-selected-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .official-form-card { align-items: flex-start; }
}

@media (max-width: 700px) {
  .srg-common-grid { grid-template-columns: 1fr; }
  .srg-progress-bar { align-items: flex-start; flex-direction: column; }
  .srg-fixed-values { grid-template-columns: 1fr; }
  .srg-fixed-values .wide { grid-column: auto; }
  .footer-action-group { width: 100%; }
  .footer-action-group .primary-button { flex: 1; }
  .official-form-card, .end-pack-card { align-items: stretch; flex-direction: column; }
  .official-form-actions { width: 100%; min-width: 0; }
  .end-pack-card .primary-button { width: 100%; }
}

@media (max-width: 560px) {
  body.full-course-selected .steps { grid-template-columns: repeat(2, 1fr); }
  .srg-selected-fields { grid-template-columns: 1fr; }
  .selected-candidate-heading { align-items: flex-start; flex-direction: column; }
  .selected-candidate-section { padding: 16px; }
  .srg-candidate-queue { grid-template-columns: 1fr; }
  .srg-candidate-choice { min-height: 76px; }
  .srg-file-row { align-items: stretch; flex-direction: column; }
  .srg-file-row button { width: 100%; }
  .step3-actions { flex-wrap: wrap; }
}

/* v1.9: Full Course is primarily used on a landscape iPad. Use the available
   width to keep the paperwork controls compact and reduce vertical scrolling. */
.tutor-profile-helper .secondary-button { width: 100%; min-height: 50px; }
.swap-tutors-button { width: 100%; min-height: 50px; white-space: nowrap; }
.warning-helper { color: var(--warning); font-weight: 700; }

@media (min-width: 900px) and (orientation: landscape) {
  body.full-course-selected .shell { width: min(1380px, calc(100% - 24px)); }
  body.full-course-selected .main-shell { padding-top: 18px; }
  body.full-course-selected .panel { padding: 24px 28px; }
  body.full-course-selected .section-heading { margin-bottom: 18px; }
  body.full-course-selected .srg-section { margin-top: 16px; }
  body.full-course-selected .srg-section + .srg-section { padding-top: 16px; }
  body.full-course-selected .srg-section-heading { margin-bottom: 12px; }
  body.full-course-selected .srg-common-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  body.full-course-selected .srg-fixed-values { grid-template-columns: 0.8fr 0.8fr 2.4fr; gap: 8px; margin-top: 12px; }
  body.full-course-selected .srg-fixed-values .wide { grid-column: auto; }
  body.full-course-selected .srg-candidate-queue { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  body.full-course-selected .srg-candidate-choice { min-height: 70px; padding: 10px 12px; }
  body.full-course-selected .selected-candidate-section { padding: 16px 18px; }
  body.full-course-selected .selected-candidate-heading { margin-bottom: 12px; }
  body.full-course-selected .srg-selected-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  body.full-course-selected .official-form-card { padding: 12px 16px; }
  body.full-course-selected .official-form-copy p { margin-bottom: 4px; font-size: 13px; line-height: 1.35; }
  body.full-course-selected .end-pack-card { padding: 14px 16px; }
}

/* v1.10: candidate-specific aircraft type, editable Full Course tutor profiles,
   and explicit preview choice for each page of the end-of-course pack. */
.compact-profile-action {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 0;
  font-size: 13px;
}
.preview-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.preview-choice {
  min-height: 42px;
  padding: 8px 14px;
}
.preview-choice.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
@media (min-width: 900px) and (orientation: landscape) {
  body.full-course-selected .srg-common-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.full-course-selected .srg-selected-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.full-course-selected .preview-heading { align-items: center; }
}
@media (max-width: 700px) {
  .preview-choice-row { width: 100%; justify-content: stretch; }
  .preview-choice-row .preview-choice { flex: 1; }
}

/* v1.11: Full Course tutor roles are selected once in Step 2. Candidate-specific
   swaps remain in Step 3. Controls are normalized for landscape iPad alignment. */
.full-course-tutor-setup {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--surface-soft);
}
.full-course-tutor-setup[hidden] { display: none; }
.full-course-tutor-setup-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.full-course-tutor-setup-heading h3 { margin: 0 0 4px; }
.full-course-tutor-setup-heading p { margin: 0; max-width: 760px; }
.full-course-tutor-setup-heading .secondary-button { flex: 0 0 auto; min-height: 50px; }
.full-course-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-action-row {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-action-row .text-button { padding: 2px 0; }

.readonly-control {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  box-sizing: border-box;
  font-weight: 600;
}

/* Keep all candidate-entry controls on the same baseline and at the same height. */
.srg-selected-fields .field {
  min-width: 0;
  align-content: start;
  grid-template-rows: auto 50px auto;
}
.srg-selected-fields .field > label {
  min-height: 18px;
  display: flex;
  align-items: flex-end;
}
.srg-selected-fields select,
.srg-selected-fields input,
.srg-selected-fields .picker-button,
.srg-selected-fields .readonly-control,
.srg-selected-fields .swap-tutors-button {
  width: 100%;
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
  margin: 0;
}
.srg-selected-fields .swap-tutors-button { padding-top: 0; padding-bottom: 0; }
.srg-selected-fields .exam-result { min-height: 24px; }

@media (min-width: 900px) and (orientation: landscape) {
  body.full-course-selected .details-grid {
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    gap: 14px;
  }
  body.full-course-selected #certificateTutorGroup[hidden] + #courseDateGroup {
    grid-column: 1;
  }
  body.full-course-selected .full-course-tutor-setup {
    margin-top: 12px;
    padding: 14px 16px;
  }
  body.full-course-selected .full-course-tutor-setup-heading {
    margin-bottom: 10px;
  }
  body.full-course-selected .full-course-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.full-course-selected .srg-common-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }
  body.full-course-selected .srg-common-grid .field {
    min-width: 0;
  }
  body.full-course-selected .srg-common-grid .picker-button,
  body.full-course-selected .srg-common-grid .readonly-value {
    height: 58px;
    min-height: 58px;
    box-sizing: border-box;
  }
  body.full-course-selected .srg-selected-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .full-course-tutor-setup-heading { flex-direction: column; }
  .full-course-tutor-setup-heading .secondary-button { width: 100%; }
  .full-course-role-grid { grid-template-columns: 1fr; }
}

/* ---------- v1.12 Full Course Step 2 simplification ---------- */
/* ERC keeps the original tutor + course-date controls. Full Course uses only
   the dedicated Course Tutor / Assessor role panel; its course dates are
   collected with the SRG3105 paperwork in Step 3. */
body.full-course-selected .details-grid {
  display: none !important;
}
body.full-course-selected .full-course-tutor-setup {
  margin-top: 0;
}

/* ---------- v1.12 landscape iPad access gate ---------- */
@media (min-width: 800px) and (orientation: landscape) {
  .access-gate {
    padding: max(20px, env(safe-area-inset-top)) 28px max(20px, env(safe-area-inset-bottom));
    place-items: center;
  }

  .access-card {
    width: min(100%, 1040px);
    padding: 28px 34px 30px;
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(390px, 1.1fr);
    grid-template-areas:
      "intro logo"
      "code privacy"
      "message privacy"
      "keypad privacy";
    column-gap: 48px;
    row-gap: 0;
    align-items: start;
  }

  .access-logo {
    grid-area: logo;
    width: min(250px, 66%);
    margin: 0 0 14px auto;
    align-self: start;
  }

  .access-intro {
    grid-area: intro;
    align-self: center;
    padding-top: 4px;
  }

  .access-intro h1 {
    font-size: clamp(29px, 3.1vw, 38px);
  }

  .code-display {
    grid-area: code;
    margin-top: 22px;
  }

  .access-message {
    grid-area: message;
  }

  .keypad {
    grid-area: keypad;
    width: min(100%, 360px);
    margin: 0 auto;
    gap: 9px;
  }

  .keypad-button {
    min-height: 58px;
  }

  .privacy-statement {
    grid-area: privacy;
    margin: 8px 0 0;
    padding: 22px 24px;
    border-top: 0;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--surface-soft);
    align-self: stretch;
  }

  .privacy-statement h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .privacy-statement p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 12px;
  }
}


/* ---------- v1.13 workflow polish ---------- */
.step .step-label {
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.completion-guidance {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.completion-guidance.is-ready { color: var(--success); background: #edf8f3; }
.completion-guidance.is-warning { color: var(--warning); background: var(--warning-pale); }

.needs-attention {
  outline: 2px solid rgba(189, 128, 0, .38);
  outline-offset: 4px;
  border-radius: 12px;
  background: rgba(255, 248, 221, .45);
}
.field.needs-attention, .input-group.needs-attention, .review-section.needs-attention, .course-type-selector.needs-attention {
  padding: 8px;
  margin: -8px;
}

.candidate-preview-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.candidate-preview-choices[hidden] { display: none; }
.candidate-preview-button {
  min-width: 46px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.candidate-preview-button.is-active {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.aircraft-action-row { margin-top: -2px; }
.compact-modal-card { max-width: 520px; }

@media (min-width: 900px) and (orientation: landscape) {
  body.full-course-selected .srg-selected-fields select,
  body.full-course-selected .srg-selected-fields input,
  body.full-course-selected .srg-selected-fields .picker-button,
  body.full-course-selected .srg-selected-fields .readonly-control,
  body.full-course-selected .srg-selected-fields .swap-tutors-button {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
  }
}

/* ---------- v1.14 alignment + non-overlapping completion emphasis ---------- */
/* Keep the two ERC Step 2 columns on exactly the same control baseline. */
.details-grid {
  align-items: start;
}
.details-grid > .input-group {
  min-width: 0;
  grid-template-rows: 24px 58px auto;
  align-content: start;
  gap: 10px;
}
.details-grid > .input-group > label {
  min-height: 24px;
  display: flex;
  align-items: flex-end;
}
.details-grid > .input-group > select,
.details-grid > .input-group > .picker-button {
  width: 100%;
  height: 58px;
  min-height: 58px;
  box-sizing: border-box;
  margin: 0;
}
.details-grid > .input-group > .button-row {
  min-height: 50px;
  margin-top: 2px;
  align-items: center;
}
.details-grid > .input-group > .button-row .secondary-button {
  min-width: 138px;
  height: 50px;
  min-height: 50px;
}
.details-grid > .input-group > .button-row .text-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
}

/* Primary choice/action buttons use a consistent rhythm wherever they appear. */
.course-type-buttons .course-type-button {
  height: 102px;
  min-height: 102px;
  box-sizing: border-box;
}
.generate-card > .primary-button,
.generate-card > .secondary-button {
  width: 100%;
  height: 58px;
  min-height: 58px;
  box-sizing: border-box;
}
.footer-actions > .primary-button,
.footer-actions > .secondary-button {
  min-height: 58px;
  box-sizing: border-box;
}
.full-course-tutor-setup-heading > .secondary-button,
.swap-tutors-button,
.end-pack-card .primary-button,
.end-pack-card .secondary-button {
  min-height: 50px;
  box-sizing: border-box;
}

/* The single-missing-item cue must never change layout geometry. */
.needs-attention {
  outline: none;
  background: rgba(255, 248, 221, .34);
  box-shadow: 0 0 0 2px rgba(189, 128, 0, .30), 0 0 0 5px rgba(255, 248, 221, .55);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}
.field.needs-attention,
.input-group.needs-attention,
.review-section.needs-attention,
.course-type-selector.needs-attention {
  padding: 0;
  margin: 0;
}
/* Large sections get an inset cue so it stays neatly inside their own bounds. */
.review-section.needs-attention,
.course-type-selector.needs-attention {
  box-shadow: inset 0 0 0 2px rgba(189, 128, 0, .28);
  background: rgba(255, 248, 221, .22);
  padding: 14px;
  margin-left: -14px;
  margin-right: -14px;
  margin-top: 0;
  margin-bottom: inherit;
}

@media (max-width: 700px) {
  .details-grid > .input-group {
    grid-template-rows: auto 56px auto;
  }
  .details-grid > .input-group > label { min-height: 20px; }
  .details-grid > .input-group > select,
  .details-grid > .input-group > .picker-button {
    height: 56px;
    min-height: 56px;
  }
  .course-type-buttons .course-type-button {
    height: auto;
    min-height: 88px;
  }
  .footer-actions > .primary-button,
  .footer-actions > .secondary-button {
    min-height: 54px;
  }
  .review-section.needs-attention,
  .course-type-selector.needs-attention {
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
  }
}

/* ---------- v1.15 single-missing-item marker ---------- */
/* Replace the previous box/highlight treatment with a simple warning-coloured asterisk. */
.needs-attention {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: inherit;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  z-index: auto;
}

.field.needs-attention > label::after,
.input-group.needs-attention > label::after {
  content: " *";
  color: var(--warning);
  font-weight: 800;
}

.course-type-selector.needs-attention .course-type-copy h2::after,
.review-section.needs-attention .review-heading h3::after,
.selected-candidate-section.needs-attention .selected-candidate-heading h3::after {
  content: " *";
  color: var(--warning);
  font-weight: 800;
}

#srgCandidateQueue.needs-attention::before {
  content: "*";
  color: var(--warning);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  position: absolute;
  top: -18px;
  right: 2px;
}

/* Keep all completion markers purely typographic: no geometry or control changes. */
.review-section.needs-attention,
.course-type-selector.needs-attention {
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- v1.17 visual consistency audit ---------- */
/* One control language across ERC and Full Course: same field height, radius,
   padding and button geometry on phone, iPad and desktop. */
:root {
  --app-control-height: 58px;
  --app-control-radius: 14px;
  --app-action-radius: 12px;
}

/* Standard form controls. */
input,
select,
.picker-button,
.readonly-control,
.generate-static-control {
  min-height: var(--app-control-height);
  height: var(--app-control-height);
  border-radius: var(--app-control-radius);
  box-sizing: border-box;
}

input,
select,
.picker-button {
  padding-left: 18px;
  padding-right: 18px;
}

/* Full Course Step 2 tutor/assessor selectors now match every other selector. */
.full-course-role-grid {
  align-items: start;
}
.full-course-role-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 24px var(--app-control-height) 36px;
  gap: 8px;
  align-content: start;
}
.full-course-role-field > label {
  min-height: 24px;
  display: flex;
  align-items: flex-end;
}
.full-course-role-field > select {
  width: 100%;
  height: var(--app-control-height);
  min-height: var(--app-control-height);
  border-radius: var(--app-control-radius);
  padding: 0 18px;
  margin: 0;
}
.full-course-role-field .profile-action-row {
  min-height: 36px;
  margin: 0;
  align-items: center;
}
.full-course-tutor-setup-heading > .secondary-button {
  height: var(--app-control-height);
  min-height: var(--app-control-height);
  border-radius: var(--app-action-radius);
}

/* Full Course Step 3 uses the same control shape as the rest of the app. */
.srg-selected-fields .field {
  grid-template-rows: 24px var(--app-control-height) auto;
  gap: 8px;
}
.srg-selected-fields .field > label {
  min-height: 24px;
}
.srg-selected-fields select,
.srg-selected-fields input,
.srg-selected-fields .picker-button,
.srg-selected-fields .readonly-control,
.srg-selected-fields .swap-tutors-button {
  width: 100%;
  height: var(--app-control-height);
  min-height: var(--app-control-height);
  border-radius: var(--app-control-radius);
  padding-left: 18px;
  padding-right: 18px;
  margin: 0;
  box-sizing: border-box;
}
.srg-selected-fields .swap-tutors-button {
  border-radius: var(--app-action-radius);
}

/* Keep paired choice cards visually equivalent: same blue primary action. */
.generate-card > .primary-button {
  width: 100%;
  height: var(--app-control-height);
  min-height: var(--app-control-height);
  border-radius: var(--app-action-radius);
}
.generate-card select,
.generate-static-control {
  height: var(--app-control-height);
  min-height: var(--app-control-height);
  border-radius: var(--app-control-radius);
}

/* Consistent primary/secondary action geometry throughout. */
.primary-button,
.secondary-button,
.danger-button,
.button-link {
  border-radius: var(--app-action-radius);
}

/* A clearer but still restrained final-required-item marker. */
.field.needs-attention > label::after,
.input-group.needs-attention > label::after,
.course-type-selector.needs-attention .course-type-copy h2::after,
.review-section.needs-attention .review-heading h3::after,
.selected-candidate-section.needs-attention .selected-candidate-heading h3::after {
  content: " *";
  color: var(--warning);
  font-size: 24px;
  line-height: .7;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: baseline;
}

#srgCandidateQueue.needs-attention::before {
  font-size: 26px;
  font-weight: 700;
  top: -22px;
}

@media (max-width: 560px) {
  :root { --app-control-height: 56px; }
  .full-course-role-field {
    grid-template-rows: auto var(--app-control-height) 34px;
  }
  .srg-selected-fields .field {
    grid-template-rows: auto var(--app-control-height) auto;
  }
  .field.needs-attention > label::after,
  .input-group.needs-attention > label::after,
  .course-type-selector.needs-attention .course-type-copy h2::after,
  .review-section.needs-attention .review-heading h3::after,
  .selected-candidate-section.needs-attention .selected-candidate-heading h3::after {
    font-size: 22px;
  }
}
