/* compass.css — Compass-specific chrome. Bootstrap-flavored rhythm
   (form-control sizing, 4/8/12/16 spacing, type scale) but its own surface.
   All values resolve to tenant tokens via --cmp-* / --bs-primary. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.cmp {
  font-family: var(--cmp-font-body);
  color: var(--cmp-text);
  background: var(--cmp-bg-app);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Resolve cmp-m's height: 100% so the mobile shell, its body scroll, and
     the absolute-positioned sheets all size to the artboard frame and not
     to their own content. frame-root supplies the height context. */
  height: 100%;
}
.cmp h1, .cmp h2, .cmp h3, .cmp h4 {
  font-family: var(--cmp-font-headline);
  color: var(--cmp-text);
  margin: 0;
  letter-spacing: -0.005em;
}

/* ====================================================================
   Top bar — school brand + save state + dashboard affordance
   Each tenant drives a substantially different look via CSS vars:
     Crestmont → filled navy band, serif wordmark, gold tile + gold tagline.
     Riverbend → white band with teal underline + warm orange strip beneath.
   ==================================================================== */
.cmp-topbar {
  position: relative;
  display: flex; align-items: center;
  gap: 16px;
  padding: 0 32px;
  height: 80px;
  background: var(--cmp-topbar-bg);
  color: var(--cmp-topbar-fg);
  border-bottom: var(--cmp-topbar-border-bottom);
}
.cmp-topbar-stripe {
  width: 100%;
  height: var(--cmp-topbar-stripe-height);
  background: var(--cmp-topbar-stripe-color);
}
.cmp-topbar__brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cmp-topbar__mark {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cmp-topbar-mark-bg);
  color: var(--cmp-topbar-mark-fg);
  border-radius: var(--cmp-topbar-mark-radius);
  font-family: var(--cmp-topbar-mark-font);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.cmp-topbar__school { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; gap: 4px; }
.cmp-topbar__name {
  font-family: var(--cmp-topbar-name-font);
  font-weight: var(--cmp-topbar-name-weight);
  font-size: var(--cmp-topbar-name-size);
  color: var(--cmp-topbar-fg);
  text-transform: var(--cmp-topbar-name-case);
  letter-spacing: var(--cmp-topbar-name-tracking);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmp-topbar__tag {
  font-size: var(--cmp-topbar-tag-size);
  color: var(--cmp-topbar-tag-color);
  letter-spacing: var(--cmp-topbar-tag-tracking);
  text-transform: var(--cmp-topbar-tag-case);
  font-weight: 500;
}
.cmp-topbar__spacer { flex: 1; }
.cmp-topbar__right { display: flex; align-items: center; gap: 18px; color: var(--cmp-topbar-fg); }
.cmp-topbar__rule { width: 1px; height: 28px; background: var(--cmp-topbar-rule); }
.cmp-topbar .cmp-link { color: var(--cmp-topbar-link-color); }
.cmp-topbar .cmp-save {
  color: var(--cmp-topbar-fg);
  background: transparent;
}
.cmp-topbar .cmp-save .cmp-save__dot { background: var(--cmp-success); }
.cmp-topbar .cmp-save--saving .cmp-save__dot { background: var(--cmp-secondary); }
.cmp-topbar__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cmp-topbar-avatar-bg);
  color: var(--cmp-topbar-avatar-fg);
  border: 1.5px solid var(--cmp-topbar-avatar-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
}

/* ====================================================================
   Save-state indicator. Three states: idle/saved, saving, failed.
   Ambient — never blocks, never animates aggressively.
   ==================================================================== */
.cmp-save {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--cmp-text-muted);
  padding: 6px 10px;
  border-radius: var(--cmp-radius-pill);
  background: transparent;
  transition: background 120ms ease, color 120ms ease;
}
.cmp-save__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cmp-success);
  flex-shrink: 0;
}
.cmp-save--saving { color: var(--cmp-text); background: var(--cmp-bg-soft); }
.cmp-save--saving .cmp-save__dot {
  background: var(--cmp-primary);
  animation: cmp-pulse 1.4s ease-in-out infinite;
}
.cmp-save--failed { color: var(--cmp-danger); background: rgba(0,0,0,0.02); }
.cmp-save--failed .cmp-save__dot { background: var(--cmp-danger); }
.cmp-save__retry {
  margin-left: 4px;
  background: transparent; border: 0; padding: 0;
  color: var(--cmp-danger);
  text-decoration: underline; cursor: pointer;
  font: inherit;
}
@keyframes cmp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ====================================================================
   Top-bar dashboard link + avatar
   ==================================================================== */
.cmp-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cmp-primary);
  font-size: 13.5px;
  font-weight: 500;
  background: transparent; border: 0; padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
}
.cmp-link:hover { text-decoration: underline; }
.cmp-link__arrow { font-size: 14px; }
.cmp-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cmp-primary-soft);
  color: var(--cmp-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}

/* ====================================================================
   Three-column shell — left rail | content | message panel
   ==================================================================== */
.cmp-shell {
  display: grid;
  grid-template-columns: 264px 1fr 340px;
  gap: 0;
  min-height: calc(100% - 80px);
}
.cmp-shell--no-mfc { grid-template-columns: 264px 1fr; }

/* Left section rail — railTreatment knob:
   white (default) | tinted (primary at low alpha) | solid (primary fill, light-on-dark) */
.cmp-rail {
  border-right: 1px solid var(--cmp-rail-border-right);
  background: var(--cmp-rail-bg);
  padding: 28px 0;
  position: sticky; top: 80px;
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.cmp-rail__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cmp-rail-title-color);
  padding: 0 24px 12px;
}
.cmp-rail__progress {
  font-size: 12.5px;
  color: var(--cmp-rail-progress-fg);
  padding: 0 24px 16px;
}
.cmp-rail__progress strong { color: var(--cmp-rail-progress-strong); font-weight: 700; }
.cmp-rail__list {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}
.cmp-rail__item {
  display: flex; align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--cmp-radius-md);
  font-size: 14px;
  color: var(--cmp-rail-item-color);
  background: transparent; border: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
  line-height: 1.3;
  transition: background 100ms ease, color 100ms ease;
  font-family: inherit;
}
.cmp-rail__item:hover { background: var(--cmp-rail-item-hover-bg); color: var(--cmp-rail-active-color); }
.cmp-rail__item--active {
  background: var(--cmp-rail-active-bg);
  color: var(--cmp-rail-active-color);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--cmp-rail-active-bar);
}
.cmp-rail__item--complete { color: var(--cmp-rail-active-color); }
.cmp-rail__icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
}
.cmp-rail__icon--complete {
  background: var(--cmp-check-bg);
  color: var(--cmp-check-fg);
  border-radius: 50%;
}
.cmp-rail__icon--active {
  border: 2px solid var(--cmp-rail-active-icon-border);
  border-radius: 50%;
  background: var(--cmp-rail-active-icon-bg);
}
.cmp-rail__icon--active::after {
  content: ''; width: 8px; height: 8px;
  background: var(--cmp-rail-active-icon-border); border-radius: 50%;
}
.cmp-rail__icon--untouched {
  border: 1.5px solid var(--cmp-rail-untouched-border);
  border-radius: 50%;
}
.cmp-rail__icon--errors {
  background: var(--cmp-warning);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
}
.cmp-rail__num {
  font-size: 11px;
  color: var(--cmp-rail-num-color);
  font-variant-numeric: tabular-nums;
}
.cmp-rail__divider {
  height: 1px;
  background: var(--cmp-rail-divider);
  margin: 16px 24px;
}

/* Center content */
.cmp-content {
  padding: 40px 56px 120px;
  max-width: 780px;
  width: 100%;
}
.cmp-content__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--cmp-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--cmp-eyebrow-color);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.cmp-content__eyebrow::before {
  content: '';
  width: 26px; height: 1.5px;
  background: var(--cmp-eyebrow-color);
}
.cmp-content__crumb {
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.cmp-content__title {
  font-family: var(--cmp-sectitle-font);
  font-size: var(--cmp-sectitle-size);
  font-weight: var(--cmp-sectitle-weight);
  color: var(--cmp-sectitle-color);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.cmp-content__lede {
  font-size: 16px;
  color: var(--cmp-lede-color);
  margin: 4px 0 32px;
  max-width: 56ch;
  line-height: 1.55;
}

/* ====================================================================
   Group cards — section is composed of groups
   ==================================================================== */
.cmp-group {
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
  margin-bottom: 18px;
  overflow: hidden;
}
.cmp-group__head {
  padding: 18px 24px 10px;
  display: flex; align-items: baseline; gap: 10px;
  border-bottom: 1px solid var(--cmp-border);
}
.cmp-group__head h3 {
  font-family: var(--cmp-grouphead-font);
  font-size: var(--cmp-grouphead-size);
  font-weight: var(--cmp-grouphead-weight);
  color: var(--cmp-grouphead-color);
  letter-spacing: 0;
  position: relative;
  padding-bottom: 6px;
}
.cmp-group__head h3::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--cmp-grouphead-underline);
  border-radius: 1px;
  width: 32px;
}
.cmp-group__hint {
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
  margin-left: auto;
}
.cmp-group__body {
  padding: 12px 24px 22px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 18px;
}

/* ====================================================================
   Field — labels + Bootstrap-flavored form-control chrome
   ==================================================================== */
.cmp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmp-field--sm   { grid-column: span 4; }
.cmp-field--md   { grid-column: span 6; }
.cmp-field--lg   { grid-column: span 8; }
.cmp-field--full { grid-column: span 12; }
.cmp-field__label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cmp-text);
}
.cmp-field__req {
  color: var(--cmp-text-subtle);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}
.cmp-field__opt {
  color: var(--cmp-text-subtle);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}
.cmp-field__input {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-sm);
  font: inherit;
  font-size: 14.5px;
  color: var(--cmp-text);
  outline: none;
  transition: border-color 100ms ease, box-shadow 100ms ease;
}
.cmp-field__input:focus {
  border-color: var(--cmp-primary);
  box-shadow: 0 0 0 3px var(--cmp-primary-soft);
}
.cmp-field__input--textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
  padding: 10px 12px;
}
.cmp-field__input--select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%235A6473' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cmp-field__input--empty { color: var(--cmp-text-subtle); }
.cmp-field__helper {
  font-size: 12px;
  color: var(--cmp-text-subtle);
  line-height: 1.4;
}
.cmp-field__count {
  font-size: 11.5px;
  color: var(--cmp-text-subtle);
  align-self: flex-end;
}
.cmp-radio-group {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 2px;
}
.cmp-radio {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-pill);
  background: var(--cmp-bg-panel);
  font-size: 13.5px;
  color: var(--cmp-text-muted);
  cursor: pointer;
  user-select: none;
  transition: border-color 100ms, background 100ms, color 100ms;
}
.cmp-radio:hover { border-color: var(--cmp-text-subtle); color: var(--cmp-text); }
.cmp-radio__dot {
  width: 14px; height: 14px;
  border: 1.5px solid var(--cmp-border-strong);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.cmp-radio--selected {
  border-color: var(--cmp-primary);
  background: var(--cmp-primary-soft);
  color: var(--cmp-text);
  font-weight: 500;
}
.cmp-radio--selected .cmp-radio__dot { border-color: var(--cmp-primary); }
.cmp-radio--selected .cmp-radio__dot::after {
  content: ''; width: 7px; height: 7px; background: var(--cmp-primary); border-radius: 50%;
}
.cmp-fileslot {
  border: 1.5px dashed var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  background: var(--cmp-bg-soft);
}
.cmp-fileslot__icon {
  width: 36px; height: 36px;
  border-radius: var(--cmp-radius-sm);
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cmp-text-subtle);
  font-size: 16px;
}
.cmp-fileslot__text { font-size: 13.5px; color: var(--cmp-text-muted); }
.cmp-fileslot__text strong { color: var(--cmp-primary); font-weight: 500; }

/* ====================================================================
   Bottom action bar — Previous / Save & exit / Next
   ==================================================================== */
.cmp-actions {
  display: flex; align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--cmp-border);
}
.cmp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--cmp-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--cmp-text);
  transition: background 100ms, border-color 100ms, color 100ms;
  white-space: nowrap;
}
.cmp-btn--primary {
  background: var(--cmp-primary);
  color: var(--cmp-primary-fg);
}
.cmp-btn--primary:hover { background: var(--cmp-primary-hover); }
.cmp-btn--outline {
  border-color: var(--cmp-border-strong);
  background: var(--cmp-bg-panel);
  color: var(--cmp-text);
}
.cmp-btn--outline:hover { border-color: var(--cmp-text-subtle); }
.cmp-btn--text { color: var(--cmp-text-muted); }
.cmp-btn--text:hover { background: var(--cmp-bg-soft); color: var(--cmp-text); }
.cmp-actions__spacer { flex: 1; }

/* ====================================================================
   Soft-gate — surfaced inline above the action bar when "Next section" is
   clicked while the section has unanswered required questions.
   Calm caution tone — not a hard block. Tenant warning color, not danger.
   ==================================================================== */
.cmp-softgate {
  display: flex; gap: 14px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-warning);
  border-left-width: 4px;
  border-radius: var(--cmp-radius-md);
  padding: 18px 20px 18px 18px;
  margin: 24px 0 0;
  box-shadow: 0 1px 0 var(--cmp-warning) inset, 0 6px 18px rgba(0,0,0,0.04);
}
.cmp-softgate__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cmp-warning);
}
.cmp-softgate__body { flex: 1; min-width: 0; }
.cmp-softgate__title {
  font-family: var(--cmp-font-headline);
  font-size: 17px;
  font-weight: 600;
  color: var(--cmp-text);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.cmp-softgate__detail {
  font-size: 14px;
  color: var(--cmp-text-muted);
  line-height: 1.5;
}
.cmp-softgate__list {
  list-style: none;
  padding: 8px 0 0;
  margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13.5px;
}
.cmp-softgate__list li {
  display: flex; align-items: center; gap: 8px;
  color: var(--cmp-text);
}
.cmp-softgate__dot {
  width: 5px; height: 5px;
  background: var(--cmp-warning);
  border-radius: 50%;
  flex-shrink: 0;
}
.cmp-softgate__actions {
  display: flex; gap: 10px;
  margin-top: 14px;
  align-items: center;
}

/* Muted variant of the primary button — used for the "Next section" button
   when the soft-gate is open, so the warning panel's primary action gets
   the visual lead instead. */
.cmp-btn--muted {
  color: var(--cmp-text-muted);
}
.cmp-btn--muted:hover { color: var(--cmp-text); }

/* ====================================================================
   Message-from-Campus panel — desktop
   Tenant-driven surface: Crestmont "letter from Admissions" (cream parchment,
   gold left border, serif title) vs. Riverbend "community bulletin"
   (peach panel, bold sans title, no left border).
   ==================================================================== */
.cmp-mfc {
  background: var(--cmp-mfc-bg);
  border-left: var(--cmp-mfc-border-left);
  padding: 32px 28px 32px;
  position: sticky; top: 80px;
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.cmp-mfc__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.cmp-mfc__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--cmp-mfc-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--cmp-mfc-eyebrow-color);
}
.cmp-mfc__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cmp-mfc-new-dot);
}
.cmp-mfc__title {
  font-family: var(--cmp-mfc-title-font);
  font-size: var(--cmp-mfc-title-size);
  font-weight: var(--cmp-mfc-title-weight);
  color: var(--cmp-mfc-title-color);
  margin: 8px 0 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cmp-mfc__updated {
  font-size: 12px;
  color: var(--cmp-text-subtle);
  margin: 8px 0 18px;
}
.cmp-mfc__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cmp-mfc-body-color);
}
.cmp-mfc__body p { margin: 0 0 12px; }
.cmp-mfc__body h4 {
  font-family: var(--cmp-mfc-title-font);
  font-size: 13.5px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: var(--cmp-mfc-title-color);
  letter-spacing: 0;
}
.cmp-mfc__body a {
  color: var(--cmp-mfc-link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.cmp-mfc__collapse {
  position: absolute;
  top: 24px; right: 16px;
  width: 28px; height: 28px;
  border-radius: var(--cmp-radius-sm);
  border: 0;
  background: transparent;
  color: var(--cmp-text-subtle);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cmp-mfc__collapse:hover { background: rgba(0,0,0,0.05); color: var(--cmp-text); }

/* ====================================================================
   Dashboard — Screens 1 + 2
   ==================================================================== */

/* Dashboard reuses the form-shell's two-column (no left rail, just content
   + MfC right column). When the MfC is inline on mobile the panel renders
   in the body flow with consistent chrome. */
.cmp-shell--dashboard { grid-template-columns: 1fr 360px; }
.cmp-content--dashboard {
  max-width: 880px;
  padding: 44px 56px 80px;
}
.cmp-mfc--inline {
  background: var(--cmp-mfc-bg);
  border-left: var(--cmp-mfc-border-left);
  padding: 32px 28px 32px;
}
.cmp-m-dash-body .cmp-mfc--inline {
  border-left: none;
  border-top: 4px solid var(--cmp-mfc-new-dot);
  border-radius: var(--cmp-radius-md);
  padding: 24px 20px 24px;
}

/* Welcome / greeting blocks */
.cmp-m-dash-body { padding: 0 16px 32px; background: var(--cmp-bg-app); overflow-y: auto; flex: 1; }
.cmp-m-welcome {
  padding: 28px 0 18px;
}
.cmp-m-welcome__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--cmp-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--cmp-eyebrow-color);
  margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 10px;
}
.cmp-m-welcome__eyebrow::before {
  content: ''; width: 22px; height: 1.5px; background: var(--cmp-eyebrow-color);
}
.cmp-m-welcome__title {
  font-family: var(--cmp-sectitle-font);
  font-size: 30px;
  font-weight: var(--cmp-sectitle-weight);
  color: var(--cmp-sectitle-color);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.cmp-m-welcome--return .cmp-m-welcome__title { font-size: 26px; }
.cmp-m-welcome__body {
  font-size: 15px;
  color: var(--cmp-text-muted);
  line-height: 1.55;
  margin: 0;
}
.cmp-m-section { padding-top: 6px; padding-bottom: 6px; }
.cmp-m-section__head {
  font-family: var(--cmp-grouphead-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--cmp-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 18px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cmp-border);
}
.cmp-m-programs { display: flex; flex-direction: column; gap: 12px; }
.cmp-m-programs .cmp-appcard__head { flex-direction: column; align-items: flex-start; gap: 10px; }
.cmp-m-programs .cmp-appcard__head > div { width: 100%; }
.cmp-m-programs .cmp-appcard__title { font-size: 19px; line-height: 1.2; }
.cmp-m-programs .cmp-appcard__foot { flex-direction: column; align-items: stretch; gap: 12px; }
.cmp-m-programs .cmp-appcard__actions { width: 100%; justify-content: stretch; }
.cmp-m-programs .cmp-appcard__actions .cmp-btn--primary { flex: 1; justify-content: center; }
.cmp-m-dashfoot {
  margin-top: 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--cmp-border);
  font-size: 12.5px;
  color: var(--cmp-text-muted);
  text-align: center;
}
.cmp-m-dashfoot a { color: var(--cmp-primary); text-decoration: underline; }

/* Application card */
.cmp-dash-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.cmp-appcard {
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
  padding: 22px 24px 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.cmp-appcard__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.cmp-appcard__title {
  font-family: var(--cmp-sectitle-font);
  font-size: 22px;
  font-weight: var(--cmp-sectitle-weight);
  color: var(--cmp-text);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}
.cmp-appcard__subtitle {
  font-size: 13px;
  color: var(--cmp-text-subtle);
  margin-top: 2px;
}
.cmp-appcard__status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--cmp-radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.cmp-appcard__status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.cmp-appcard__status--draft {
  background: var(--cmp-primary-soft);
  color: var(--cmp-primary);
}
.cmp-appcard__status--pending {
  background: var(--cmp-secondary-soft);
  color: var(--cmp-warning);
}
.cmp-appcard__status--pending .cmp-appcard__status-dot { background: var(--cmp-warning); }
.cmp-appcard__status--ok {
  background: rgba(47, 122, 79, 0.10);
  color: var(--cmp-success);
}
.cmp-appcard__body { margin-bottom: 16px; }
.cmp-appcard__progress {
  margin-top: 6px;
}
.cmp-appcard__progress-bar {
  position: relative;
  background: var(--cmp-bg-soft);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--cmp-border);
}
.cmp-appcard__progress-bar span {
  position: absolute; inset: 0 auto 0 0;
  background: var(--cmp-primary);
  border-radius: 999px;
}
.cmp-appcard__tasks {
  list-style: none;
  padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.cmp-appcard__tasks li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--cmp-bg-soft);
  border-radius: var(--cmp-radius-md);
  font-size: 14px;
}
.cmp-appcard__task-icon { color: var(--cmp-warning); flex-shrink: 0; line-height: 0; }
.cmp-appcard__task-text { flex: 1; color: var(--cmp-text); }
.cmp-appcard__task-due {
  font-size: 12px;
  color: var(--cmp-text-subtle);
  font-weight: 500;
}
.cmp-appcard__quiet {
  font-size: 13.5px;
  color: var(--cmp-text-muted);
  margin: 0;
  padding: 12px 14px;
  background: var(--cmp-bg-soft);
  border-radius: var(--cmp-radius-md);
}
.cmp-appcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--cmp-border);
}
.cmp-appcard__meta {
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
}
.cmp-appcard__actions { display: flex; align-items: center; gap: 8px; }

/* Program picker card */
.cmp-programcard {
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
  padding: 18px 20px 18px;
  display: flex; align-items: flex-start; gap: 16px;
}
.cmp-programcard__body { flex: 1; min-width: 0; }
.cmp-programcard__title {
  font-family: var(--cmp-sectitle-font);
  font-size: 18px;
  font-weight: var(--cmp-sectitle-weight);
  color: var(--cmp-text);
  margin: 0 0 4px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cmp-programcard__desc {
  font-size: 13.5px;
  color: var(--cmp-text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.cmp-programcard__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.cmp-programcard__chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  background: var(--cmp-primary-soft);
  color: var(--cmp-primary);
  border-radius: var(--cmp-radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cmp-programcard__chip--alt {
  background: var(--cmp-secondary-soft);
  color: var(--cmp-warning);
}
.cmp-programcard__cta {
  flex-shrink: 0;
  align-self: center;
  height: 40px;
}

/* Account dropdown menu */
.cmp-account-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 260px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.02);
  padding: 6px;
  z-index: 20;
  text-align: left;
}
.cmp-account-menu__head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 10px;
}
.cmp-account-menu__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cmp-primary);
  color: var(--cmp-primary-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.cmp-account-menu__name { font-size: 14px; font-weight: 600; color: var(--cmp-text); line-height: 1.2; }
.cmp-account-menu__email { font-size: 12px; color: var(--cmp-text-subtle); line-height: 1.3; margin-top: 2px; }
.cmp-account-menu__rule { height: 1px; background: var(--cmp-border); margin: 4px 0; }
.cmp-account-menu__item {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: transparent; border: 0;
  border-radius: var(--cmp-radius-sm);
  font: inherit;
  font-size: 14px;
  color: var(--cmp-text);
  cursor: pointer;
  text-align: left;
}
.cmp-account-menu__item:hover { background: var(--cmp-bg-soft); }
.cmp-account-menu__item--muted { color: var(--cmp-text-muted); }
.cmp-account-menu__item svg { color: var(--cmp-text-subtle); }

/* Standalone account-menu sketch — used in a tiny artboard so the menu
   vocabulary is visible on its own. Override the absolute positioning so
   the menu lays out in normal flow within the artboard. */
.cmp-account-menu--static {
  position: static;
  margin: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.02);
}

/* Narrow the dashboard MfC column slightly so the primary cards lead. */
.cmp-shell--dashboard { grid-template-columns: 1fr 324px; }
.cmp-shell--postsubmit { grid-template-columns: 1fr 360px; }

/* ====================================================================
   Screen 7 — Successful submission
   Single-column centered confirmation. No left rail, no right MfC — the
   confirmation IS the message.
   ==================================================================== */
.cmp-confirm {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 48px 96px;
}
.cmp-confirm__hero {
  text-align: center;
  margin-bottom: 40px;
}
.cmp-submit-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
}
.cmp-confirm__title {
  font-family: var(--cmp-sectitle-font);
  font-size: 44px;
  font-weight: var(--cmp-sectitle-weight);
  color: var(--cmp-sectitle-color);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 6px 0 14px;
}
.cmp-confirm__sub {
  font-size: 15px;
  color: var(--cmp-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Confirmation-number chip — labelled, monospace ID, copy affordance.
   Used in Screen 7 hero and on the Screen 8 head block so the number is
   scannable rather than buried in the gray sub-line. */
.cmp-confirm-chip {
  display: inline-flex; align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-pill);
  margin: 14px 0 18px;
  vertical-align: middle;
}
.cmp-confirm__hero .cmp-confirm-chip { margin: 16px auto 22px; }
.cmp-confirm-chip__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cmp-text-subtle);
}
.cmp-confirm-chip__id {
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cmp-text);
  letter-spacing: 0.02em;
}
.cmp-confirm-chip__copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--cmp-text-subtle);
  cursor: pointer;
  transition: background 100ms, color 100ms;
}
.cmp-confirm-chip__copy:hover {
  background: var(--cmp-primary-soft);
  color: var(--cmp-primary);
}

/* Letter from the school (ConfirmationMessage rich text). Reads as a note,
   not a form panel. */
.cmp-confirm__letter {
  background: var(--cmp-mfc-bg);
  border-left: var(--cmp-mfc-border-left);
  border-radius: var(--cmp-radius-lg);
  padding: 32px 36px 32px;
  margin-bottom: 36px;
}
.cmp-confirm__letter-head { margin-bottom: 18px; }
.cmp-confirm__letter-title {
  font-family: var(--cmp-mfc-title-font);
  font-size: 24px;
  font-weight: var(--cmp-mfc-title-weight);
  color: var(--cmp-mfc-title-color);
  margin: 8px 0 0;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.cmp-confirm__letter-body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cmp-mfc-body-color);
}
.cmp-confirm__letter-body p { margin: 0 0 14px; }
.cmp-confirm__letter-body h4 {
  font-family: var(--cmp-mfc-title-font);
  font-size: 14px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: var(--cmp-mfc-title-color);
}
.cmp-confirm__sig {
  margin-top: 18px;
  font-style: italic;
  color: var(--cmp-text-muted);
}

/* "What happens next" — ordered list with circled numerals */
.cmp-confirm__next {
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
  padding: 28px 32px 24px;
  margin-bottom: 32px;
}
.cmp-confirm__next-head {
  font-family: var(--cmp-grouphead-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--cmp-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.cmp-confirm__next-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.cmp-confirm__next-list li { display: flex; align-items: flex-start; gap: 16px; }
.cmp-confirm__num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cmp-primary-soft);
  color: var(--cmp-primary);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cmp-confirm__next-list strong { font-size: 15px; color: var(--cmp-text); }
.cmp-confirm__next-list p { margin: 4px 0 0; color: var(--cmp-text-muted); font-size: 13.5px; line-height: 1.5; }
.cmp-confirm__quiet { color: var(--cmp-text); font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.cmp-confirm__cta {
  display: flex; gap: 12px; align-items: center;
  justify-content: center;
}

/* ====================================================================
   Screen 8 — Post-submission application surface
   ==================================================================== */

.cmp-postsubmit__crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
  margin-bottom: 16px;
}
.cmp-postsubmit__crumb a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cmp-primary);
  text-decoration: none;
  font-weight: 500;
}
.cmp-postsubmit__crumb a:hover { text-decoration: underline; }
.cmp-postsubmit__crumb-sep { color: var(--cmp-text-subtle); }

.cmp-postsubmit__head {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 32px;
}
.cmp-postsubmit__head .cmp-submit-badge {
  width: 52px; height: 52px;
  margin-top: 4px;
  flex-shrink: 0;
}
.cmp-postsubmit__head .cmp-submit-badge svg { width: 20px; height: 20px; }
.cmp-postsubmit__sub {
  font-size: 14.5px;
  color: var(--cmp-text-muted);
  margin: 0;
  line-height: 1.55;
}

.cmp-postsubmit__section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.cmp-postsubmit__section-head h2 {
  font-family: var(--cmp-grouphead-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cmp-text);
  margin: 0;
}
.cmp-postsubmit__section-meta {
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
  font-variant-numeric: tabular-nums;
}

.cmp-postsubmit__tasks {
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
  padding: 20px 24px 18px;
  margin-bottom: 24px;
}
.cmp-task-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--cmp-border);
}
.cmp-task {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cmp-border);
}
.cmp-task:last-child { border-bottom: none; }
.cmp-task__icon {
  color: var(--cmp-text-subtle);
  flex-shrink: 0;
  line-height: 0;
}
.cmp-task--done .cmp-task__icon { color: var(--cmp-success); }
.cmp-task__body { flex: 1; min-width: 0; }
.cmp-task__title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cmp-text);
  line-height: 1.35;
}
.cmp-task--done .cmp-task__title { color: var(--cmp-text-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.cmp-task__detail {
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
  margin-top: 2px;
  line-height: 1.4;
}
.cmp-task__right {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.cmp-task__due {
  font-size: 12px;
  color: var(--cmp-warning);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cmp-task__stamp {
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
  font-variant-numeric: tabular-nums;
}
.cmp-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* Quiet "we have everything we need" state (Screen 8A) */
.cmp-postsubmit__quiet {
  display: flex; gap: 18px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.cmp-postsubmit__quiet-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(47,122,79,0.10);
  color: var(--cmp-success);
  display: flex; align-items: center; justify-content: center;
}
.cmp-postsubmit__quiet h3 {
  font-family: var(--cmp-mfc-title-font);
  font-size: 17px;
  font-weight: var(--cmp-mfc-title-weight);
  color: var(--cmp-text);
  margin: 0 0 4px;
}
.cmp-postsubmit__quiet p {
  font-size: 14px;
  color: var(--cmp-text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 56ch;
}

/* "View what you submitted" big button-card */
.cmp-postsubmit__view {
  margin-bottom: 24px;
}
.cmp-postsubmit__view-btn {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
  text-align: left;
  color: var(--cmp-text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 100ms, background 100ms;
}
.cmp-postsubmit__view-btn:hover {
  border-color: var(--cmp-primary);
  background: var(--cmp-bg-soft);
}
.cmp-postsubmit__view-btn > svg:first-child {
  color: var(--cmp-primary);
  flex-shrink: 0;
}
.cmp-postsubmit__view-btn > span { display: flex; flex-direction: column; line-height: 1.3; }
.cmp-postsubmit__view-btn strong { font-size: 14.5px; font-weight: 600; color: var(--cmp-text); }
.cmp-postsubmit__view-btn small { font-size: 12.5px; color: var(--cmp-text-subtle); }
.cmp-postsubmit__view-btn > svg:last-child { color: var(--cmp-text-subtle); flex-shrink: 0; }

.cmp-postsubmit__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--cmp-border);
}

/* ====================================================================
   Screens 5 + 6 — Review-before-submit & validation errors
   ==================================================================== */

/* Status pills on each section row */
.cmp-rev-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--cmp-radius-pill);
  white-space: nowrap;
}
.cmp-rev-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cmp-rev-pill--ok   { color: var(--cmp-success);  background: rgba(47,122,79,0.10); }
.cmp-rev-pill--warn { color: var(--cmp-warning);  background: var(--cmp-secondary-soft); }
.cmp-rev-pill--err  { color: var(--cmp-danger);   background: rgba(178,58,58,0.10); }

/* Summary line — "X of Y sections complete · Z items to fix" */
.cmp-rev-summary {
  display: flex; align-items: baseline; gap: 14px;
  margin: 4px 0 18px;
  padding: 14px 20px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
  font-size: 14px;
}
.cmp-rev-summary__big {
  font-family: var(--cmp-sectitle-font);
  font-size: 18px;
  color: var(--cmp-text);
  letter-spacing: -0.01em;
}
.cmp-rev-summary__big strong { color: var(--cmp-primary); font-weight: var(--cmp-sectitle-weight); }
.cmp-rev-summary__lbl { color: var(--cmp-text-muted); }
.cmp-rev-summary__divider { width: 1px; height: 18px; background: var(--cmp-border); align-self: center; }
.cmp-rev-summary__issues {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cmp-warning);
  font-weight: 600;
}
.cmp-rev-summary__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Section rows */
.cmp-rev-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.cmp-rev-row {
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
  transition: border-color 100ms, box-shadow 100ms;
  overflow: hidden;
}
.cmp-rev-row--errors { border-color: rgba(178,58,58,0.32); box-shadow: 0 0 0 1px rgba(178,58,58,0.08); }
.cmp-rev-row--incomplete { border-color: rgba(166,107,14,0.32); box-shadow: 0 0 0 1px rgba(166,107,14,0.08); }
.cmp-rev-row__head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
}
.cmp-rev-row__num {
  font-family: var(--cmp-font-body);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cmp-text-subtle);
  width: 24px;
}
.cmp-rev-row__id { flex: 1; min-width: 0; }
.cmp-rev-row__name {
  font-family: var(--cmp-grouphead-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--cmp-text);
  letter-spacing: 0;
  margin: 0;
}
.cmp-rev-row__summary {
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
  margin-top: 2px;
}
.cmp-rev-row__edit {
  flex-shrink: 0;
  height: 32px; padding: 0 10px;
  font-size: 13px;
  color: var(--cmp-primary);
}
.cmp-rev-row__edit:hover { background: var(--cmp-primary-soft); }

/* Expanded inline error list */
.cmp-rev-row__issues {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--cmp-border);
}
.cmp-rev-row__issues li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 56px;
  border-bottom: 1px solid var(--cmp-border);
}
.cmp-rev-row__issues li:last-child { border-bottom: none; }
.cmp-rev-row--errors .cmp-rev-row__issue-icon { color: var(--cmp-danger); }
.cmp-rev-row--incomplete .cmp-rev-row__issue-icon { color: var(--cmp-warning); }
.cmp-rev-row__issue-icon { flex-shrink: 0; line-height: 0; }
.cmp-rev-row__issue-body { flex: 1; min-width: 0; }
.cmp-rev-row__issue-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--cmp-text);
}
.cmp-rev-row__issue-hint {
  font-size: 12.5px;
  color: var(--cmp-text-subtle);
  margin-top: 2px;
  line-height: 1.4;
}

/* Top-of-page error banner (Screen 6 only) */
.cmp-rev-banner {
  background: rgba(178,58,58,0.06);
  border: 1px solid rgba(178,58,58,0.30);
  border-left-width: 4px;
  border-radius: var(--cmp-radius-md);
  padding: 18px 20px 14px;
  margin: 4px 0 24px;
  color: var(--cmp-danger);
}
.cmp-rev-banner__head { display: flex; gap: 14px; align-items: flex-start; }
.cmp-rev-banner__icon { flex-shrink: 0; line-height: 0; margin-top: 2px; color: var(--cmp-danger); }
.cmp-rev-banner__title {
  font-family: var(--cmp-mfc-title-font);
  font-size: 18px;
  font-weight: var(--cmp-mfc-title-weight);
  color: var(--cmp-text);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.cmp-rev-banner__lede {
  font-size: 13.5px;
  color: var(--cmp-text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 64ch;
}
.cmp-rev-banner__list {
  list-style: none;
  padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
}
.cmp-rev-banner__anchor {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--cmp-bg-panel);
  border: 1px solid rgba(178,58,58,0.20);
  border-radius: var(--cmp-radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  color: var(--cmp-text);
}
.cmp-rev-banner__anchor:hover { border-color: var(--cmp-danger); background: rgba(178,58,58,0.04); }
.cmp-rev-banner__anchor-name { font-weight: 600; flex: 1; }
.cmp-rev-banner__anchor-meta { color: var(--cmp-danger); font-size: 12px; font-weight: 600; }
.cmp-rev-banner__anchor svg { color: var(--cmp-text-subtle); flex-shrink: 0; }

/* Submit block */
.cmp-rev-submit {
  margin-top: 32px;
  padding: 28px 28px 24px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
}
.cmp-rev-submit--ready { border-color: var(--cmp-success); box-shadow: 0 0 0 1px rgba(47,122,79,0.10); }
.cmp-rev-submit__head h3 {
  font-family: var(--cmp-sectitle-font);
  font-size: 22px;
  font-weight: var(--cmp-sectitle-weight);
  color: var(--cmp-text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cmp-rev-submit__head p {
  font-size: 14.5px;
  color: var(--cmp-text-muted);
  margin: 0 0 14px;
  line-height: 1.55;
  max-width: 64ch;
}
.cmp-rev-submit__points {
  list-style: none;
  padding: 14px 0 0;
  margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px;
  color: var(--cmp-text);
  border-top: 1px solid var(--cmp-border);
}
.cmp-rev-submit__points li { display: flex; align-items: center; gap: 12px; }
.cmp-rev-submit__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--cmp-radius-sm);
  background: var(--cmp-primary-soft);
  color: var(--cmp-primary);
}
.cmp-rev-submit__quiet { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--cmp-text-muted); }
.cmp-rev-submit__sub {
  display: block;
  font-size: 12px;
  color: var(--cmp-text-subtle);
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.cmp-rev-submit__caution {
  background: var(--cmp-secondary-soft);
  border: 1px solid rgba(166,107,14,0.24);
  border-radius: var(--cmp-radius-sm);
  padding: 10px 12px;
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--cmp-text);
  line-height: 1.5;
}
.cmp-rev-submit__caution strong { color: var(--cmp-warning); }
.cmp-rev-submit__actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.cmp-rev-submit__cta { height: 52px; padding: 0 22px; font-size: 15.5px; font-weight: 600; }

/* ====================================================================
   Screen 9 — Read-only submitted view
   ==================================================================== */
.cmp-ro-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--cmp-radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  color: var(--cmp-topbar-fg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cmp-topbar[style*="background"] .cmp-ro-badge,
.cmp-topbar .cmp-ro-badge {
  /* For light topbars (Riverbend) drop the translucent backdrop */
}
@supports (background: color-mix(in oklab, red, white)) {
  .cmp-ro-badge {
    background: color-mix(in oklab, var(--cmp-topbar-fg) 10%, transparent);
    border-color: color-mix(in oklab, var(--cmp-topbar-fg) 20%, transparent);
  }
}
.cmp-content--ro { padding: 40px 56px 80px; }
.cmp-content--ro .cmp-content__lede { margin-bottom: 24px; }

.cmp-group-ro {
  margin-bottom: 32px;
}
.cmp-group-ro__head {
  margin-bottom: 14px;
}
.cmp-group-ro__head h3 {
  font-family: var(--cmp-grouphead-font);
  font-size: var(--cmp-grouphead-size);
  font-weight: var(--cmp-grouphead-weight);
  color: var(--cmp-grouphead-color);
  letter-spacing: 0;
  margin: 0;
  position: relative;
  padding-bottom: 6px;
}
.cmp-group-ro__head h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 32px; height: 2px;
  background: var(--cmp-grouphead-underline);
  border-radius: 1px;
}
.cmp-group-ro__body {
  display: flex; flex-direction: column;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
}

.cmp-field-ro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--cmp-border);
  align-items: baseline;
}
.cmp-field-ro:last-child { border-bottom: none; }
.cmp-field-ro__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cmp-text-subtle);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.cmp-field-ro__answer {
  font-size: 15px;
  color: var(--cmp-text);
  line-height: 1.6;
  font-family: var(--cmp-font-body);
  white-space: pre-wrap;
}
.cmp-field-ro__answer--empty span {
  color: var(--cmp-text-subtle);
  font-style: italic;
  font-size: 13.5px;
}

/* ====================================================================
   Screen 10 — Empty / error states
   ==================================================================== */

/* 10 A — Form not yet open: single-column centered page */
.cmp-edge {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 32px 80px;
  text-align: center;
}
.cmp-edge__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px;
  border-radius: 50%;
}
.cmp-edge__title {
  font-family: var(--cmp-sectitle-font);
  font-size: 36px;
  font-weight: var(--cmp-sectitle-weight);
  color: var(--cmp-sectitle-color);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 6px 0 14px;
}
.cmp-edge__title--left { text-align: left; }
.cmp-edge__lede {
  font-size: 15.5px;
  color: var(--cmp-text-muted);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 52ch;
}
.cmp-edge__lede--left { text-align: left; max-width: 64ch; margin: 0 0 28px; }
.cmp-edge__form {
  display: flex; gap: 8px; justify-content: center;
  max-width: 460px;
  margin: 0 auto 16px;
}
.cmp-edge__input { flex: 1; height: 46px; font-size: 15px; }
.cmp-edge__form .cmp-btn { height: 46px; padding: 0 18px; font-size: 14.5px; }
.cmp-edge__quietrow {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--cmp-text-muted);
  display: inline-flex; gap: 10px; align-items: center;
}
.cmp-edge__quietrow a { color: var(--cmp-primary); text-decoration: underline; text-underline-offset: 3px; }
.cmp-edge__dot { color: var(--cmp-text-subtle); }

/* 10 B — Term closed mid-draft */
.cmp-edge-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 56px 80px;
}
.cmp-edge-shell__main { width: 100%; }
.cmp-appcard__status--closed { background: var(--cmp-bg-soft); color: var(--cmp-text-muted); border: 1px solid var(--cmp-border-strong); }
.cmp-appcard__status--closed .cmp-appcard__status-dot { background: var(--cmp-text-subtle); }
.cmp-edge-alts { margin-top: 32px; }
.cmp-edge-alts h3 {
  font-family: var(--cmp-grouphead-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cmp-text);
  margin: 0 0 12px;
}
.cmp-edge-alts ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cmp-edge-alts li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
}
.cmp-edge-alts__icon { color: var(--cmp-primary); flex-shrink: 0; line-height: 0; }
.cmp-edge-alts li > div { flex: 1; min-width: 0; }
.cmp-edge-alts li strong { font-size: 14.5px; color: var(--cmp-text); font-weight: 600; }
.cmp-edge-alts li p { font-size: 13px; color: var(--cmp-text-muted); margin: 4px 0 0; line-height: 1.5; max-width: 56ch; }

/* 10 C — Offline / connection-lost banner inside form-fill */
.cmp-offline {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-warning);
  border-left-width: 4px;
  border-radius: var(--cmp-radius-md);
  margin-bottom: 12px;
}
.cmp-offline__icon {
  flex-shrink: 0;
  color: var(--cmp-warning);
  margin-top: 2px;
  line-height: 0;
}
.cmp-offline__body { flex: 1; min-width: 0; }
.cmp-offline__title { font-size: 14px; font-weight: 600; color: var(--cmp-text); margin-bottom: 4px; }
.cmp-offline__body p { font-size: 12.5px; color: var(--cmp-text-muted); margin: 0; line-height: 1.45; }
.cmp-offline .cmp-btn--sm { flex-shrink: 0; align-self: center; height: 34px; }

/* Mobile save-state failure variant */
.cmp-m-save--failed {
  color: var(--cmp-danger);
  background: rgba(178,58,58,0.06);
  border-bottom-color: rgba(178,58,58,0.20);
}
.cmp-m-save--failed .cmp-save__dot { background: var(--cmp-danger); animation: cmp-pulse 1.4s ease-in-out infinite; }

/* 10 D — Form-version-changed notice */
.cmp-vchange {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px 14px 14px;
  background: var(--cmp-primary-soft);
  border: 1px solid color-mix(in oklab, var(--cmp-primary) 28%, transparent);
  border-radius: var(--cmp-radius-md);
  margin-bottom: 24px;
}
.cmp-vchange__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--cmp-primary);
  color: var(--cmp-primary-fg);
  border-radius: var(--cmp-radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.cmp-vchange__body { flex: 1; min-width: 0; }
.cmp-vchange__title { font-size: 15px; font-weight: 600; color: var(--cmp-text); margin-bottom: 4px; }
.cmp-vchange__body p { font-size: 13.5px; color: var(--cmp-text-muted); margin: 0; line-height: 1.55; max-width: 72ch; }
.cmp-vchange__dismiss {
  flex-shrink: 0;
  width: 32px; height: 32px; padding: 0;
  color: var(--cmp-text-subtle);
}
.cmp-vchange__dismiss:hover { color: var(--cmp-text); background: rgba(0,0,0,0.04); }

/* ====================================================================
   Mobile shell
   ==================================================================== */
.cmp-m {
  display: flex; flex-direction: column;
  height: 100%;
  font-size: 16px;
}
.cmp-m-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--cmp-topbar-bg);
  color: var(--cmp-topbar-fg);
  border-bottom: var(--cmp-topbar-border-bottom);
  min-height: 60px;
  position: relative;
}
.cmp-m-topbar__mark {
  width: 38px; height: 38px;
  background: var(--cmp-topbar-mark-bg);
  color: var(--cmp-topbar-mark-fg);
  border-radius: var(--cmp-topbar-mark-radius);
  font-family: var(--cmp-topbar-mark-font);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.cmp-m-topbar__name {
  font-family: var(--cmp-topbar-name-font);
  font-weight: var(--cmp-topbar-name-weight);
  font-size: 15.5px;
  color: var(--cmp-topbar-fg);
  text-transform: var(--cmp-topbar-name-case);
  letter-spacing: var(--cmp-topbar-name-tracking);
  line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.cmp-m-topbar__bell {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--cmp-radius-md);
  border: 1px solid var(--cmp-topbar-rule);
  background: transparent;
  color: var(--cmp-topbar-fg);
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cmp-m-topbar__bell .cmp-m-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cmp-secondary);
  border: 2px solid var(--cmp-topbar-bg);
}

.cmp-m-section-head {
  padding: 16px 16px;
  background: var(--cmp-bg-panel);
  display: flex; align-items: center; gap: 14px;
}
.cmp-m-section-head__title {
  font-family: var(--cmp-sectitle-font);
  font-weight: var(--cmp-sectitle-weight);
  font-size: 22px;
  color: var(--cmp-sectitle-color);
  margin-top: 4px;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.cmp-m-section-head__col { flex: 1; min-width: 0; line-height: 1.2; }
.cmp-m-section-head__num {
  font-size: 11px;
  letter-spacing: var(--cmp-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--cmp-eyebrow-color);
  font-weight: 700;
}
.cmp-m-section-head__caret {
  color: var(--cmp-text-subtle);
  font-size: 13px;
}
.cmp-m-section-head__progress {
  width: 64px;
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.cmp-m-ring {
  width: 48px; height: 48px;
  position: relative;
}
.cmp-m-ring svg { display: block; }
.cmp-m-ring__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cmp-text);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.cmp-m-ring__caption {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cmp-text-subtle);
  line-height: 1;
}

.cmp-m-save {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--cmp-bg-soft);
  border-bottom: 1px solid var(--cmp-border);
  font-size: 12.5px;
  color: var(--cmp-text-muted);
}
.cmp-m-save .cmp-save__dot { width: 7px; height: 7px; }
.cmp-m-save--saving { color: var(--cmp-text); }
.cmp-m-save--failed { color: var(--cmp-danger); }

.cmp-m-body {
  flex: 1;
  padding: 16px 16px 100px;
  background: var(--cmp-bg-app);
  overflow-y: auto;
}
.cmp-m-body .cmp-group { margin-bottom: 14px; }
.cmp-m-body .cmp-group__head { padding: 14px 16px 4px; }
.cmp-m-body .cmp-group__head h3 { font-size: 15px; }
.cmp-m-body .cmp-group__body {
  padding: 8px 16px 18px;
  grid-template-columns: 1fr;
  gap: 14px;
}
.cmp-m-body .cmp-field { grid-column: 1 / -1 !important; }
.cmp-m-body .cmp-field__input { height: 48px; font-size: 16px; }
.cmp-m-body .cmp-field__input--textarea { min-height: 110px; height: auto; }
.cmp-m-body .cmp-radio { padding: 11px 14px; font-size: 14px; }

.cmp-m-foot {
  position: sticky; bottom: 0;
  background: var(--cmp-bg-panel);
  border-top: 1px solid var(--cmp-border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
}
.cmp-m-foot .cmp-btn { flex: 1; justify-content: center; height: 50px; padding: 0 16px; font-size: 15px; }
.cmp-m-foot .cmp-btn--prev { flex: 0 0 50px; }

/* Section sheet (mobile) — full-overlay drawer showing the section rail */
.cmp-m-sheet-root {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex; flex-direction: column;
  pointer-events: auto;
}
.cmp-m-sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(20,28,40,0.42);
  backdrop-filter: blur(2px);
}
.cmp-m-sheet {
  position: relative;
  background: var(--cmp-bg-panel);
  border-bottom: 1px solid var(--cmp-border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  padding: 14px 0 18px;
  margin-top: 0;
  max-height: 78%;
  overflow-y: auto;
  border-radius: 0 0 var(--cmp-radius-lg) var(--cmp-radius-lg);
}
.cmp-m-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px 12px;
  gap: 12px;
}
.cmp-m-sheet__title {
  font-family: var(--cmp-sectitle-font);
  font-weight: var(--cmp-sectitle-weight);
  font-size: 18px;
  color: var(--cmp-text);
  letter-spacing: -0.005em;
}
.cmp-m-sheet__subtitle {
  font-size: 12px;
  color: var(--cmp-text-subtle);
  margin-top: 2px;
}
.cmp-m-sheet__close {
  width: 36px; height: 36px;
  border-radius: var(--cmp-radius-md);
  border: 1px solid var(--cmp-border);
  background: var(--cmp-bg-panel);
  color: var(--cmp-text-muted);
  display: flex; align-items: center; justify-content: center;
}
.cmp-m-sheet__list { display: flex; flex-direction: column; padding: 0 8px; }
.cmp-m-sheet__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 12px;
  border-radius: var(--cmp-radius-md);
  background: transparent; border: 0;
  font: inherit;
  font-size: 15.5px;
  color: var(--cmp-text-muted);
  text-align: left;
  width: 100%;
  line-height: 1.3;
}
.cmp-m-sheet__item--complete { color: var(--cmp-text); }
.cmp-m-sheet__item--active {
  background: var(--cmp-rail-active-bg);
  color: var(--cmp-rail-active-color);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--cmp-rail-active-bar);
}
.cmp-m-sheet__item .cmp-rail__icon {
  width: 26px; height: 26px;
}
.cmp-m-sheet__num {
  font-size: 12px;
  color: var(--cmp-rail-num-color);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.cmp-m-sheet__name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Mobile Message-from-Campus sheet — bottom-anchored slide-up that mirrors
   the desktop right-panel content. Tenant chrome carries through: Crestmont
   = cream parchment + gold accent rule + serif title; Riverbend = peach
   panel + warm-orange rule + sans title. */
.cmp-m-sheet-root--bottom { justify-content: flex-end; }
.cmp-m-sheet-root--bottom .cmp-m-mfc-sheet {
  position: relative;
  margin-top: auto;
  background: var(--cmp-mfc-bg);
  border-top-left-radius:  var(--cmp-radius-lg);
  border-top-right-radius: var(--cmp-radius-lg);
  box-shadow: 0 -16px 32px rgba(0,0,0,0.20);
  padding: 8px 0 0;
  max-height: 84%;
  overflow-y: auto;
}
.cmp-m-mfc-sheet__handle {
  display: block;
  width: 44px; height: 4px;
  border-radius: 999px;
  background: var(--cmp-border-strong);
  opacity: 0.55;
  margin: 6px auto 14px;
}
.cmp-m-mfc-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 8px;
  gap: 12px;
}
.cmp-m-mfc-sheet__rule {
  height: 1px;
  background: var(--cmp-mfc-new-dot);
  opacity: 0.45;
  margin: 14px 20px 16px;
}
.cmp-m-mfc-sheet .cmp-mfc__title { font-size: 22px; }
.cmp-m-mfc-sheet .cmp-mfc__body h4 { font-size: 14px; margin: 18px 0 6px; }
.cmp-m-mfc-sheet .cmp-mfc__body p { margin: 0 0 12px; line-height: 1.55; }

/* ---- Preview banner (draft-preview spec §4.3) ---- */
/* Sticky chrome above MainLayout's topbar. Fixed warning color so the banner
   is recognizable across every tenant theme — preview cannot be subtle. */
.compass-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1100;                       /* above topbar (typical 1000-range) */
  background: #fff3cd;                 /* warning amber per spec §4.3 hint */
  color: #533f03;                      /* high contrast on the amber */
  border-bottom: 2px solid #d39e00;
  font-family: var(--cmp-font-body, inherit);
}
.compass-preview-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
}
.compass-preview-banner__title {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.compass-preview-banner__body {
  flex: 1 1 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.compass-preview-banner__end {
  color: #533f03;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.compass-preview-banner__end:focus-visible {
  outline: 2px solid #533f03;
  outline-offset: 2px;
  border-radius: 2px;
}
