/* compass-rendering.css - the form-render rule set, single-sourced in the
   Compass.Rendering RCL and served at
   _content/Advant.Crossroads.Rendering/compass-rendering.css.

   Every consumer of the form-render components (Compass form-fill, Threshold
   Quick preview, Atlas SystemAppDef preview) loads THIS file. It holds the
   `.cmp`-scoped reset/base plus the form-body chrome (shell, rail, content,
   group cards, fields, action bar, soft-gate, and their mobile counterparts).
   Compass-app-only chrome (topbar, save indicator, dashboard, review/confirm/
   read-only/edge screens, preview banner) stays in Compass's local compass.css.
   Shared Message-from-Campus panel and sheet primitives live here so Compass
   and Threshold receive one Markdown and tenant-theme treatment.

   Rule blocks below are relocated verbatim from compass.css (Compass P4) -
   do not edit rule text here; values resolve to tenant tokens via --cmp-*. */

.cmp, .cmp *, .cmp *::before, .cmp *::after { box-sizing: border-box; }

.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;
}

/* ====================================================================
   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; }

/* ====================================================================
   Message from Campus - shared panel, Markdown body, and mobile sheet
   ==================================================================== */
.cmp .cmp-mfc--panel {
  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 .cmp-mfc--panel .cmp-mfc__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.cmp .cmp-mfc--panel .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 .cmp-mfc--panel .cmp-mfc__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cmp-mfc-new-dot);
}
.cmp .cmp-mfc--panel .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 .cmp-mfc--panel .cmp-mfc__updated {
  font-size: 12px;
  color: var(--cmp-text-subtle);
  margin: 8px 0 18px;
}
.cmp .cmp-mfc--panel .cmp-mfc__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cmp-mfc-body-color);
}
.cmp .cmp-mfc--panel .cmp-mfc__body p { margin: 0 0 12px; }
.cmp .cmp-mfc--panel .cmp-mfc__body h1,
.cmp .cmp-mfc--panel .cmp-mfc__body h2,
.cmp .cmp-mfc--panel .cmp-mfc__body h3,
.cmp .cmp-mfc--panel .cmp-mfc__body h4,
.cmp .cmp-mfc--panel .cmp-mfc__body h5,
.cmp .cmp-mfc--panel .cmp-mfc__body h6 {
  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;
  line-height: 1.4;
}
.cmp .cmp-mfc--panel .cmp-mfc__body ul,
.cmp .cmp-mfc--panel .cmp-mfc__body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.cmp .cmp-mfc--panel .cmp-mfc__body li { margin-bottom: 6px; }
.cmp .cmp-mfc--panel .cmp-mfc__body strong {
  color: var(--cmp-mfc-title-color);
  font-weight: 700;
}
.cmp .cmp-mfc--panel .cmp-mfc__body em { font-style: italic; }
.cmp .cmp-mfc--panel .cmp-mfc__body blockquote {
  margin: 0 0 14px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--cmp-mfc-new-dot);
  color: var(--cmp-mfc-body-color);
}
.cmp .cmp-mfc--panel .cmp-mfc__body code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  color: var(--cmp-mfc-title-color);
  background: var(--cmp-bg-soft);
  border-radius: var(--cmp-radius-sm);
  padding: 0.1em 0.3em;
}
.cmp .cmp-mfc--panel .cmp-mfc__body pre {
  margin: 0 0 14px;
  padding: 12px;
  overflow-x: auto;
  color: var(--cmp-mfc-body-color);
  background: var(--cmp-bg-soft);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
}
.cmp .cmp-mfc--panel .cmp-mfc__body pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}
.cmp .cmp-mfc--panel .cmp-mfc__body hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--cmp-border);
  opacity: 1;
}
.cmp .cmp-mfc--panel .cmp-mfc__body a {
  color: var(--cmp-mfc-link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.cmp .cmp-mfc--panel .cmp-mfc__body img {
  display: block;
  max-width: 100%;
  height: auto;
}
.cmp .cmp-mfc--panel .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 .cmp-mfc--panel .cmp-mfc__collapse:hover {
  background: rgba(0,0,0,0.05);
  color: var(--cmp-text);
}
.cmp .cmp-mfc--panel.cmp-mfc--inline {
  position: static;
  top: auto;
  align-self: stretch;
  width: 100%;
  max-height: none;
  overflow: visible;
}

.cmp .cmp-mfc-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: auto;
}
.cmp .cmp-mfc-sheet-root:focus-visible {
  outline: 3px solid var(--cmp-primary);
  outline-offset: -3px;
}
.cmp .cmp-mfc-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20,28,40,0.42);
  backdrop-filter: blur(2px);
  opacity: 1;
  transition: opacity 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cmp .cmp-mfc-sheet {
  position: relative;
  margin-top: auto;
  width: 100%;
  max-height: 84%;
  overflow-y: 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;
  transform: translateY(0);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cmp .cmp-mfc-sheet-root--closing .cmp-mfc-sheet__scrim {
  opacity: 0;
}
.cmp .cmp-mfc-sheet-root--closing .cmp-mfc-sheet {
  transform: translateY(100%);
}
.cmp .cmp-mfc-sheet__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1;
  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);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}
.cmp .cmp-mfc-sheet__close:hover { background: var(--cmp-primary-soft); }
.cmp .cmp-mfc-sheet__close:focus-visible {
  outline: 3px solid var(--cmp-primary);
  outline-offset: 2px;
}

@starting-style {
  .cmp .cmp-mfc-sheet__scrim { opacity: 0; }
  .cmp .cmp-mfc-sheet { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .cmp .cmp-mfc-sheet__scrim,
  .cmp .cmp-mfc-sheet {
    transition-duration: 0.01ms;
  }
}

/* Form-fill shell - section rail | content | live Message from Campus.
   min-height anchors to the VIEWPORT (100vh), not 100% of the parent: Compass has no
   html/body/#app height:100% chain for a percentage min-height to resolve against (same gap
   documented in compass-signin.css/compass-footer.css for .cmp--with-footer), so calc(100% - 80px)
   silently collapsed to the shell's own content height - the .cmp wrapper's background then
   auto-sized to match, leaving a white band below short sections (ADO bug #687). calc(100vh - 80px)
   is the same viewport-anchored idiom .cmp-rail / .cmp-mfc--panel already use for max-height below. */
.cmp-formshell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 340px;
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 80px);
}
.cmp-formshell--no-mfc {
  grid-template-columns: 264px minmax(0, 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); }
/* Name fills the row so the step number pins to the right edge (a fixed right-aligned
   column); single-line with ellipsis on overflow. Canon renders this as an inline style
   on the name span (form-shell.jsx); the repo emits `.cmp-rail__name`, so the rule lives
   here. Without it the number packs right after the (wrapping) name. */
.cmp-rail__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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%;
}

/* ADO bug #627: .cmp-content's max-width caps it well below the .cmp-formshell grid's middle
   minmax(0, 1fr) track on any desktop viewport wider than ~780px + the fixed 264px/340px rail
   tracks. A grid item's default justify-self (stretch) does not center a max-width-constrained
   box within leftover track space - it places it at the track's start edge, pinning the form
   against the left rail with all the extra room stranded on the right (in front of the MFC
   rail). margin: 0 auto is the spec-guaranteed way to center such a box (auto margins take
   priority over justify-self) and holds at every desktop width, including the widened
   max-width:1600px tier below and the initial/scrolled position alike - it's a static margin,
   not something that can drift with scroll. Scoped to the form-fill shell specifically (not the
   bare .cmp-content class, which other Compass surfaces such as ReviewSurface and the
   read-only/submitted screens also use and haven't been verified against this same fix). */
.cmp-formshell > .cmp-content {
  margin: 0 auto;
}

/* The base 780px column is the approved standard-desktop canon. On genuinely
   wide workspaces, let field and layout grids use more of the middle track,
   while retaining a hard readability/layout cap. Fixed rail tracks remain
   unchanged. */
@media (min-width: 1600px) {
  .cmp-formshell > .cmp-content {
    max-width: 1600px;
  }
}
.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 {
  /* Holds .cmp-row children (LayoutCellRenderer wraps every group row in
     .cmp-row), so this is a vertical stack of rows - NOT itself the 12-col
     grid. Each .cmp-row below establishes the grid for its own fields. */
  padding: 12px 24px 22px;
}

/* ====================================================================
   Row - the 12-col grid each layout row lays its field/group cells into.
   FormRenderView (top-level section rows) and LayoutCellRenderer (nested
   group rows) both emit `<div class="cmp-row">`; the field span classes
   (.cmp-field--sm/md/lg/full → grid-column: span N) only take effect when
   their direct parent is this grid. Adjacent rows stack with a row gap.
   ==================================================================== */
.cmp-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 16px;
}
.cmp-row + .cmp-row { margin-top: 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; }
/* A group card is a full-width container of nested rows - it must span the whole
   .cmp-row grid, not collapse to a single (default span-1) column. */
.cmp-group { grid-column: 1 / -1; }
/* A repeating group is likewise a full-width container (its instance cards hold
   their own template rows) - same span-the-whole-row need as .cmp-group, or it
   collapses to a single ~1/12 column. */
.cmp-rg { grid-column: 1 / -1; }
.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;
}
/* ChoiceField option controls (.cmp-opts/.cmp-opt) are ported verbatim from the
   design canon field-types.css, appended at the end of this file. The legacy
   .cmp-radio* family was removed in the field-controls cycle - no Razor emitted
   it (the Field.Control slot shipped empty), so this is a clean CSS-only swap. */
.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;
  text-decoration: none;   /* an <a class="cmp-btn"> renders identically to a <button> */
}
.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); }

/* ====================================================================
   Mobile shell
   ==================================================================== */
.cmp-m {
  display: flex; flex-direction: column;
  height: 100%;
  font-size: 16px;
}

.cmp-m-section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  position: relative;
  background: var(--cmp-bg-panel);
  border-bottom: 1px solid var(--cmp-border);
}
.cmp-m-section-head-row--no-actions {
  grid-template-columns: minmax(0, 1fr);
}
.cmp-m-section-head {
  padding: 16px 16px;
  background: var(--cmp-bg-panel);
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-width: 0;
  border: 0; border-radius: 0;
  color: inherit; text-align: left;
}
.cmp-m-section-head:hover,
.cmp-m-kebab:hover { background: var(--cmp-primary-soft); }
.cmp-m-section-head:focus-visible,
.cmp-m-kebab:focus-visible,
.cmp-m-kebab-menu__item:focus-visible {
  outline: 3px solid var(--cmp-primary);
  outline-offset: -3px;
}
.cmp-m-kebab {
  display: flex; align-items: center; justify-content: center;
  width: 56px; min-width: 44px; min-height: 44px;
  border: 0; border-left: 1px solid var(--cmp-border); border-radius: 0;
  background: var(--cmp-bg-panel); color: var(--cmp-text);
}
.cmp-m-kebab-menu {
  position: absolute; top: 100%; right: 8px; z-index: 12;
  min-width: 160px; padding: 4px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
}
.cmp-m-kebab-menu__item {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 0; border-radius: var(--cmp-radius-sm);
  background: transparent; color: var(--cmp-text);
  text-align: left;
}
.cmp-m-kebab-menu__item:hover {
  background: var(--cmp-primary-soft);
}
.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;
}

/* The mobile shell emits .cmp-m-content; keep its phone treatment on that live scope. */
.cmp-m-content {
  flex: 1;
  padding: 16px 16px 100px;
  background: var(--cmp-bg-app);
  overflow-y: auto;
}
.cmp-m-content .cmp-group { margin-bottom: 14px; }
.cmp-m-content .cmp-group__head { padding: 14px 16px 4px; }
.cmp-m-content .cmp-group__head h3 { font-size: 15px; }
.cmp-m-content .cmp-group__body {
  padding: 8px 16px 18px;
}
/* Group bodies contain authored rows; the rows own field gaps and spans. */
.cmp-m-content .cmp-group__body > .cmp-row { row-gap: 14px; }
.cmp-m-content .cmp-group__body > .cmp-row + .cmp-row { margin-top: 14px; }
.cmp-m-content .cmp-field { grid-column: 1 / -1 !important; }
.cmp-m-content .cmp-field__input { height: 48px; font-size: 16px; }
.cmp-m-content .cmp-field__input--textarea { min-height: 110px; height: auto; }
.cmp-m-content .cmp-opts .cmp-opt { 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;
}

/* ====================================================================
   FIELD-TYPE CONTROLS - ported verbatim from the design canon
   (docs/design-references/design_handoff_applicant_experience/source/field-types.css).
   Field input states, FieldTip, numeric affix, ChoiceField option lists,
   dropdown menu + multi-select chips, DateField calendar, Major/Term combobox,
   DocumentUpload filled/uploading/error, Markdown, Info button, Spacer, Group.
   The .ft-* catalog scaffold from the canon sheet is intentionally NOT ported
   (it's spec-sheet presentation, not part of the live form). Values resolve to
   tenant tokens via --cmp-*; do not edit rule text here.
   ==================================================================== */

/* --------------------------------------------------------------------
   Field input STATES (focus / error / disabled rendered statically)
   -------------------------------------------------------------------- */
.cmp-field__input--focus {
  border-color: var(--cmp-primary);
  box-shadow: 0 0 0 3px var(--cmp-primary-soft);
}
.cmp-field__input--error {
  border-color: var(--cmp-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cmp-danger) 16%, transparent);
}
.cmp-field__input--disabled {
  background: var(--cmp-bg-soft);
  border-color: var(--cmp-border);
  color: var(--cmp-text-subtle);
  cursor: not-allowed;
}
.cmp-field--invalid .cmp-field__label { color: var(--cmp-text); }

/* Prompt (Field.Prompt) - descriptive line under the label */
.cmp-field__prompt {
  font-size: 13px; color: var(--cmp-text-muted); line-height: 1.45;
  margin-top: -2px;
}
.cmp-field__req--em { color: var(--cmp-danger); }

/* Inline validation message (Field.RuleErrorMessage / RequiredMessage) */
.cmp-field__error {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--cmp-danger);
}
.cmp-field__error svg { flex: 0 0 auto; }

/* FieldTip - the inline (?) help affordance on a label */
.cmp-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 5px;
  border-radius: 50%;
  border: 1.3px solid var(--cmp-border-strong);
  color: var(--cmp-text-subtle);
  font-size: 10px; font-weight: 700; cursor: help;
  vertical-align: -2px;
}

/* numeric affix (prefix/suffix on NumberField, e.g. GPA scale, %) */
.cmp-affix { position: relative; }
.cmp-affix__unit {
  position: absolute; top: 0; bottom: 0; right: 12px;
  display: flex; align-items: center;
  font-size: 13px; color: var(--cmp-text-subtle); pointer-events: none;
}
.cmp-affix__unit--lead { right: auto; left: 12px; }
.cmp-affix--lead .cmp-field__input { padding-left: 26px; }

/* --------------------------------------------------------------------
   ChoiceField - option lists (radio + checkbox, vertical + horizontal)
   -------------------------------------------------------------------- */
.cmp-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.cmp-opts--row { flex-direction: row; flex-wrap: wrap; }
.cmp-opt {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-bg-panel);
  font-size: 14px; color: var(--cmp-text-muted);
  cursor: pointer; user-select: none;
  transition: border-color 100ms, background 100ms, color 100ms;
}
.cmp-opts:not(.cmp-opts--row) .cmp-opt { width: 100%; }
.cmp-opts--row .cmp-opt { padding: 9px 14px; }
.cmp-opt:hover { border-color: var(--cmp-text-subtle); color: var(--cmp-text); }
/* Real radio/checkbox input behind each .cmp-opt - visually hidden but focusable, so the
   option is keyboard/AT-operable (spec §9 a11y; the .cmp-opt__ctrl span is cosmetic). The
   input drives selection; CSS reflects its focus onto the cosmetic control. */
.cmp-opt__input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}
.cmp-opt:has(.cmp-opt__input:focus-visible) {
  outline: 2px solid var(--cmp-primary); outline-offset: 2px;
}
.cmp-opt__ctrl {
  width: 18px; height: 18px; flex: 0 0 auto;
  border: 1.5px solid var(--cmp-border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  transition: border-color 100ms, background 100ms;
}
.cmp-opt__ctrl--radio { border-radius: 50%; }
.cmp-opt__ctrl--check { border-radius: 5px; }
.cmp-opt__ctrl--radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: transparent;
}
.cmp-opt--on {
  border-color: var(--cmp-primary);
  background: var(--cmp-primary-soft);
  color: var(--cmp-text); font-weight: 500;
}
.cmp-opt--on .cmp-opt__ctrl--radio { border-color: var(--cmp-primary); }
.cmp-opt--on .cmp-opt__ctrl--radio::after { background: var(--cmp-primary); }
.cmp-opt--on .cmp-opt__ctrl--check {
  border-color: var(--cmp-primary);
  background: var(--cmp-primary);
  color: var(--cmp-primary-fg);
}
.cmp-opt__label { line-height: 1.2; }
.cmp-opt__sub {
  display: block; font-size: 12px; font-weight: 400;
  color: var(--cmp-text-subtle); margin-top: 2px;
}

/* --------------------------------------------------------------------
   Dropdown - open menu popover + multi-select chip control
   -------------------------------------------------------------------- */
.cmp-pop { position: relative; }
.cmp-menu {
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  box-shadow: 0 14px 36px rgba(0,0,0,0.16);
  padding: 6px; margin-top: 6px;
  /* .cmp-menu sits in normal document flow (no position:absolute), not as an overlay - so an
     unbounded option list grows the whole page rather than just the popover (ADO bug #686,
     surfaced by MajorFieldControl's school-catalog-sized lists; ChoiceFieldControl's shorter
     multi-select lists never hit this). Bounded height + its own scroll keeps every .cmp-menu
     consumer well-behaved regardless of option count, while search/selection are untouched -
     both operate on the underlying list, not on what's currently visible. */
  max-height: 320px;
  overflow-y: auto;
}
.cmp-menu__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--cmp-radius-sm);
  font-size: 14px; color: var(--cmp-text); cursor: pointer;
}
.cmp-menu__opt:hover { background: var(--cmp-bg-soft); }
.cmp-menu__opt--active { background: var(--cmp-primary-soft); color: var(--cmp-text); font-weight: 500; }
.cmp-menu__opt--active .cmp-menu__tick { color: var(--cmp-primary); }
.cmp-menu__tick { margin-left: auto; color: transparent; }
.cmp-menu__sep { height: 1px; background: var(--cmp-border); margin: 5px 2px; }
.cmp-menu__empty {
  padding: 9px 11px; font-size: 13px; color: var(--cmp-text-subtle);
}

/* multi-select closed control with chips */
.cmp-multi {
  width: 100%; min-height: 42px;
  padding: 6px 36px 6px 8px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-sm);
  position: relative;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.cmp-multi::after {
  content: ''; position: absolute; right: 14px; top: 50%;
  width: 9px; height: 9px; transform: translateY(-70%) rotate(45deg);
  border-right: 1.5px solid var(--cmp-text-subtle);
  border-bottom: 1.5px solid var(--cmp-text-subtle);
}
.cmp-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: var(--cmp-primary-soft);
  color: var(--cmp-primary);
  border-radius: var(--cmp-radius-sm);
  font-size: 13px; font-weight: 500;
}
.cmp-tag__x { display: inline-flex; cursor: pointer; opacity: 0.65; }
.cmp-multi__ph { color: var(--cmp-text-subtle); font-size: 14.5px; padding: 4px 4px; }

/* --------------------------------------------------------------------
   DateField - calendar popover
   -------------------------------------------------------------------- */
.cmp-input-affix { position: relative; }
.cmp-input-affix__icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--cmp-text-subtle); pointer-events: none;
}
.cmp-input-affix .cmp-field__input { padding-right: 38px; }
.cmp-cal {
  width: 280px;
  background: var(--cmp-bg-panel);
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  box-shadow: 0 14px 36px rgba(0,0,0,0.16);
  padding: 14px; margin-top: 8px;
}
.cmp-cal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.cmp-cal__title { font-weight: 600; font-size: 14px; color: var(--cmp-text); }
.cmp-cal__nav {
  width: 28px; height: 28px; border: none; background: transparent;
  border-radius: var(--cmp-radius-sm); cursor: pointer;
  color: var(--cmp-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.cmp-cal__nav:hover { background: var(--cmp-bg-soft); }
.cmp-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cmp-cal__dow {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; text-align: center;
  color: var(--cmp-text-subtle); padding: 4px 0 6px;
}
.cmp-cal__day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--cmp-text);
  border-radius: var(--cmp-radius-sm); cursor: pointer;
}
.cmp-cal__day:hover { background: var(--cmp-bg-soft); }
.cmp-cal__day--muted { color: var(--cmp-text-subtle); opacity: 0.45; }
.cmp-cal__day--today { box-shadow: inset 0 0 0 1.5px var(--cmp-border-strong); }
.cmp-cal__day--sel {
  background: var(--cmp-primary); color: var(--cmp-primary-fg); font-weight: 600;
}
.cmp-cal__day--sel:hover { background: var(--cmp-primary); }
.cmp-cal__day--off {
  color: var(--cmp-text-subtle); opacity: 0.35;
  text-decoration: line-through; cursor: not-allowed;
}
.cmp-cal__day--off:hover { background: transparent; }

/* --------------------------------------------------------------------
   Major typeahead + Term selector
   -------------------------------------------------------------------- */
.cmp-search .cmp-field__input { padding-left: 36px; }
.cmp-search .cmp-input-affix__icon { left: 12px; right: auto; }
/* Combobox: search glyph left + dropdown caret right (browse + search) */
.cmp-combo .cmp-field__input { padding-right: 34px; }
.cmp-combo__caret {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--cmp-text-subtle); pointer-events: none; display: inline-flex;
}
.cmp-menu__opt mark {
  background: color-mix(in srgb, var(--cmp-secondary) 38%, transparent);
  color: inherit; border-radius: 2px; padding: 0 1px;
}
.cmp-menu__meta { margin-left: auto; font-size: 12px; color: var(--cmp-text-subtle); }

/* --------------------------------------------------------------------
   DocumentUpload - filled / uploading / error states
   -------------------------------------------------------------------- */
.cmp-file {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-bg-panel);
}
.cmp-file__icon {
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: var(--cmp-radius-sm);
  background: var(--cmp-primary-soft); color: var(--cmp-primary);
  display: flex; align-items: center; justify-content: center;
}
.cmp-file__meta { flex: 1; min-width: 0; }
.cmp-file__name {
  font-size: 14px; font-weight: 500; color: var(--cmp-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmp-file__sub { font-size: 12px; color: var(--cmp-text-subtle); margin-top: 2px; }
.cmp-file__acts { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.cmp-file__act {
  border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 6px 10px; border-radius: var(--cmp-radius-sm);
  color: var(--cmp-primary);
}
.cmp-file__act:hover { background: var(--cmp-primary-soft); }
.cmp-file__act--danger { color: var(--cmp-danger); }
.cmp-file__act--danger:hover { background: color-mix(in srgb, var(--cmp-danger) 10%, transparent); }
.cmp-file__bar {
  height: 5px; border-radius: 3px; background: var(--cmp-border);
  overflow: hidden; margin-top: 8px;
}
.cmp-file__bar > i { display: block; height: 100%; background: var(--cmp-primary); border-radius: 3px; }
.cmp-fileslot--error {
  border-color: var(--cmp-danger);
  background: color-mix(in srgb, var(--cmp-danger) 5%, var(--cmp-bg-soft));
}
.cmp-fileslot--error .cmp-fileslot__icon { color: var(--cmp-danger); border-color: color-mix(in srgb, var(--cmp-danger) 30%, var(--cmp-border)); }

/* --------------------------------------------------------------------
   MarkdownContent
   -------------------------------------------------------------------- */
.cmp-md { color: var(--cmp-text); }
.cmp-md > :first-child { margin-top: 0; }
.cmp-md > :last-child { margin-bottom: 0; }
.cmp-md h2 {
  font-family: var(--cmp-grouphead-font);
  font-size: 19px; font-weight: 700; color: var(--cmp-text);
  margin: 0 0 8px;
}
.cmp-md h3 {
  font-family: var(--cmp-grouphead-font);
  font-size: 15px; font-weight: 700; color: var(--cmp-text);
  margin: 18px 0 6px;
}
.cmp-md p { font-size: 14.5px; line-height: 1.6; color: var(--cmp-text-muted); margin: 0 0 11px; max-width: 64ch; }
.cmp-md ul { margin: 0 0 11px; padding-left: 20px; }
.cmp-md li { font-size: 14.5px; line-height: 1.55; color: var(--cmp-text-muted); margin-bottom: 4px; }
.cmp-md a { color: var(--cmp-primary); text-decoration: underline; text-underline-offset: 2px; }
.cmp-md strong { color: var(--cmp-text); font-weight: 600; }

/* --------------------------------------------------------------------
   InfoButtonContent - inline / tooltip / modal
   -------------------------------------------------------------------- */
.cmp-infobtn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--cmp-primary);
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.cmp-infobtn__glyph {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cmp-primary-soft); color: var(--cmp-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.cmp-info-inline {
  margin-top: 9px; padding: 12px 14px;
  background: var(--cmp-bg-soft);
  border: 1px solid var(--cmp-border);
  border-left: 3px solid var(--cmp-primary);
  border-radius: var(--cmp-radius-sm);
  font-size: 13.5px; line-height: 1.55; color: var(--cmp-text-muted); max-width: 60ch;
}
.cmp-tipbubble {
  position: relative;
  display: inline-block;
  margin-top: 4px;
  max-width: 280px;
  background: #2A2B2D; color: #F4F2EE;
  font-size: 13px; line-height: 1.5;
  padding: 10px 12px; border-radius: var(--cmp-radius-sm);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
.cmp-tipbubble::before {
  content: ''; position: absolute; top: -5px; left: 22px;
  width: 10px; height: 10px; background: #2A2B2D; transform: rotate(45deg);
}
.cmp-modal-prev {
  width: 100%;
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-bg-panel);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
  overflow: hidden;
}
.cmp-modal-prev__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--cmp-border);
}
.cmp-modal-prev__bar h4 {
  font-family: var(--cmp-grouphead-font);
  margin: 0; font-size: 15px; font-weight: 700; color: var(--cmp-text); flex: 1;
}
.cmp-modal-prev__x { color: var(--cmp-text-subtle); cursor: pointer; }
.cmp-modal-prev__body { padding: 14px 16px; font-size: 14px; line-height: 1.55; color: var(--cmp-text-muted); }

/* --------------------------------------------------------------------
   SpacerContent
   -------------------------------------------------------------------- */
.cmp-spacer {
  border: 1px dashed var(--cmp-border-strong);
  border-radius: var(--cmp-radius-sm);
  background: repeating-linear-gradient(135deg,
    transparent 0 7px, color-mix(in srgb, var(--cmp-border) 55%, transparent) 7px 8px);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.04em; color: var(--cmp-text-subtle);
}

/* --------------------------------------------------------------------
   GroupContent - container, one level deep
   -------------------------------------------------------------------- */
.cmp-grp {
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-bg-panel);
  overflow: hidden;
}
.cmp-grp__bar {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px; cursor: pointer;
  background: var(--cmp-bg-soft);
  border-bottom: 1px solid var(--cmp-border);
}
.cmp-grp__bar--collapsed { border-bottom: none; }
.cmp-grp__caret {
  color: var(--cmp-text-muted); transition: transform 120ms;
  display: inline-flex;
}
.cmp-grp__caret--down { transform: rotate(90deg); }
.cmp-grp__titles { flex: 1; min-width: 0; }
.cmp-grp__title {
  font-family: var(--cmp-grouphead-font);
  font-size: 15px; font-weight: 700; color: var(--cmp-text);
}
.cmp-grp__sub { font-size: 12.5px; color: var(--cmp-text-subtle); margin-top: 1px; }
.cmp-grp__pill {
  font-size: 11px; font-weight: 600; color: var(--cmp-text-subtle);
  background: var(--cmp-bg-panel); border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-pill); padding: 2px 9px;
}
.cmp-grp__body {
  padding: 16px 18px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 14px;
}

/* --------------------------------------------------------------------
   InstitutionSelectorField
   -------------------------------------------------------------------- */
.cmp-inst__cant {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; font-size: 13px; color: var(--cmp-text-muted);
}
.cmp-inst__cant button {
  font: inherit; font-weight: 500; color: var(--cmp-primary);
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.cmp-inst-opt { align-items: flex-start; }
.cmp-inst-opt__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cmp-inst-opt__name { line-height: 1.25; font-size: 14px; }
.cmp-inst-opt__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--cmp-text-subtle); line-height: 1.3;
}
.cmp-inst-opt__meta .sep { opacity: 0.5; }
.cmp-inst-opt__ceeb {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--cmp-text-muted);
}
.cmp-inst-opt__name mark, .cmp-inst-opt__meta mark {
  background: color-mix(in srgb, var(--cmp-secondary) 38%, transparent);
  color: inherit; border-radius: 2px; padding: 0 1px;
}
.cmp-inst-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 12px; font-size: 13.5px; color: var(--cmp-text-muted);
}
.cmp-spin {
  width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid var(--cmp-border-strong);
  border-top-color: var(--cmp-primary);
}
.cmp-inst-skel {
  height: 11px; border-radius: 3px;
  background: linear-gradient(90deg,
    var(--cmp-bg-soft) 0%, var(--cmp-border) 50%, var(--cmp-bg-soft) 100%);
}
.cmp-inst-noresult { padding: 14px 12px 12px; text-align: center; }
.cmp-inst-noresult__msg { font-size: 13.5px; color: var(--cmp-text-muted); line-height: 1.5; margin-bottom: 11px; }
.cmp-inst-noresult__msg strong { color: var(--cmp-text); font-weight: 600; }
.cmp-inst-manualcta {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--cmp-primary); background: var(--cmp-primary-soft);
  border: 1px solid color-mix(in srgb, var(--cmp-primary) 24%, transparent);
  border-radius: var(--cmp-radius-sm); padding: 8px 14px; cursor: pointer;
}
.cmp-inst-card {
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-bg-panel);
  padding: 13px 15px 12px;
}
.cmp-inst-card__top { display: flex; align-items: flex-start; gap: 11px; }
.cmp-inst-card__icon {
  width: 36px; height: 36px; flex: 0 0 auto; margin-top: 1px;
  border-radius: var(--cmp-radius-sm);
  background: var(--cmp-primary-soft); color: var(--cmp-primary);
  display: flex; align-items: center; justify-content: center;
}
.cmp-inst-card__body { flex: 1; min-width: 0; }
.cmp-inst-card__name {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 15px; font-weight: 600; color: var(--cmp-text); line-height: 1.25;
}
.cmp-inst-card__addr { font-size: 13px; color: var(--cmp-text-muted); margin-top: 3px; line-height: 1.4; }
.cmp-inst-card__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-size: 12px; color: var(--cmp-text-subtle); margin-top: 4px;
}
.cmp-inst-card__meta .sep { opacity: 0.5; }
.cmp-inst-card__ceeb {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--cmp-text-muted);
}
.cmp-inst-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 8px 2px 6px; border-radius: var(--cmp-radius-pill);
  white-space: nowrap;
}
.cmp-inst-badge svg { flex: 0 0 auto; }
.cmp-inst-badge--dir {
  color: var(--cmp-success);
  background: color-mix(in srgb, var(--cmp-success) 12%, transparent);
}
.cmp-inst-badge--manual {
  color: var(--cmp-warning);
  background: color-mix(in srgb, var(--cmp-warning) 14%, transparent);
}
.cmp-inst-card--manual {
  border-color: color-mix(in srgb, var(--cmp-warning) 32%, var(--cmp-border));
  border-left: 3px solid var(--cmp-warning);
  background: color-mix(in srgb, var(--cmp-warning) 4%, var(--cmp-bg-panel));
}
.cmp-inst-card--manual .cmp-inst-card__icon {
  background: color-mix(in srgb, var(--cmp-warning) 14%, transparent); color: var(--cmp-warning);
}
.cmp-inst-card__acts { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.cmp-inst-card__act {
  border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 5px 9px; border-radius: var(--cmp-radius-sm); color: var(--cmp-primary);
}
.cmp-inst-card__act:hover { background: var(--cmp-primary-soft); }
.cmp-inst-card__act--muted { color: var(--cmp-text-muted); }
.cmp-inst-card__act--muted:hover { background: var(--cmp-bg-soft); }
.cmp-inst-card--invalid {
  border-color: var(--cmp-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cmp-danger) 14%, transparent);
}
.cmp-inst-manual {
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-bg-soft);
  overflow: hidden;
}
.cmp-inst-manual__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--cmp-border);
  background: color-mix(in srgb, var(--cmp-warning) 7%, var(--cmp-bg-panel));
}
.cmp-inst-manual__back {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--cmp-primary);
  background: none; border: none; padding: 0; cursor: pointer;
}
.cmp-inst-manual__tag {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--cmp-warning);
}
.cmp-inst-manual__grid {
  padding: 15px 16px 16px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 12px;
}
.cmp-inst-manual__note {
  grid-column: 1 / -1; margin: -2px 0 2px;
  font-size: 12.5px; color: var(--cmp-text-subtle); line-height: 1.45;
}

/* --------------------------------------------------------------------
   RepeatingGroupContent
   -------------------------------------------------------------------- */
.cmp-rg {
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-bg-panel);
  overflow: hidden;
}
.cmp-rg__head {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px; border-bottom: 1px solid var(--cmp-border);
  background: var(--cmp-bg-soft);
}
.cmp-rg__titles { flex: 1; min-width: 0; }
.cmp-rg__title {
  font-family: var(--cmp-grouphead-font);
  font-size: var(--cmp-grouphead-size); font-weight: var(--cmp-grouphead-weight);
  color: var(--cmp-grouphead-color);
}
.cmp-rg__sub { font-size: 12.5px; color: var(--cmp-text-subtle); margin-top: 1px; }
.cmp-rg__chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11px; font-weight: 600; padding: 3px 10px; line-height: 1.4;
  border-radius: var(--cmp-radius-pill); flex: 0 0 auto;
}
.cmp-rg__chip svg { flex: 0 0 auto; }
.cmp-rg__chip--done { color: var(--cmp-success); background: color-mix(in srgb, var(--cmp-success) 12%, transparent); }
.cmp-rg__chip--opt { color: var(--cmp-text-subtle); background: var(--cmp-bg-panel); border: 1px solid var(--cmp-border); }
.cmp-rg__chip--count { color: var(--cmp-text-muted); background: var(--cmp-bg-panel); border: 1px solid var(--cmp-border); }
.cmp-rg__list { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.cmp-rg-inst {
  border: 1px solid var(--cmp-border-strong);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-bg-panel); overflow: hidden;
}
.cmp-rg-inst__bar {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px 11px 15px;
}
.cmp-rg-inst--active > .cmp-rg-inst__bar { border-bottom: 1px solid var(--cmp-border); background: var(--cmp-bg-soft); }
.cmp-rg-inst__status { flex: 0 0 auto; display: inline-flex; }
.cmp-rg-check {
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--cmp-success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.cmp-rg-dot {
  width: 9px; height: 9px; margin: 5px; border-radius: 50%;
  background: var(--cmp-warning);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cmp-warning) 22%, transparent);
}
.cmp-rg-inst__labels { flex: 1; min-width: 0; }
.cmp-rg-inst__label {
  font-size: 14px; font-weight: 600; color: var(--cmp-text); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmp-rg-inst__summary { font-size: 12.5px; color: var(--cmp-text-subtle); margin-top: 1px; }
.cmp-rg-inst__idx {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--cmp-text-subtle);
}
.cmp-rg-inst__actbtns { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.cmp-rg-inst__edit {
  border: none; background: transparent; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 500; color: var(--cmp-primary);
  padding: 5px 9px; border-radius: var(--cmp-radius-sm);
}
.cmp-rg-inst__edit:hover { background: var(--cmp-primary-soft); }
.cmp-rg-inst__remove {
  width: 28px; height: 28px; flex: 0 0 auto;
  border: none; background: transparent; cursor: pointer;
  color: var(--cmp-text-subtle); border-radius: var(--cmp-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.cmp-rg-inst__remove:hover { background: color-mix(in srgb, var(--cmp-danger) 10%, transparent); color: var(--cmp-danger); }
.cmp-rg-inst__body {
  padding: 15px 16px 16px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 12px;
}
.cmp-rg-inst--invalid { border-color: var(--cmp-danger); }
.cmp-rg-inst--invalid > .cmp-rg-inst__bar { background: color-mix(in srgb, var(--cmp-danger) 6%, var(--cmp-bg-soft)); }
.cmp-rg-inst__min {
  font-size: 11px; color: var(--cmp-text-subtle); font-style: italic;
  padding: 0 6px; white-space: nowrap;
}
.cmp-rg__add {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 16px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--cmp-primary);
  background: var(--cmp-bg-soft);
  border: 1.5px dashed color-mix(in srgb, var(--cmp-primary) 38%, var(--cmp-border-strong));
  border-radius: var(--cmp-radius-md); cursor: pointer;
}
.cmp-rg__add:hover { background: var(--cmp-primary-soft); }
.cmp-rg__add svg { flex: 0 0 auto; }
.cmp-rg__cap {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; font-size: 13px; color: var(--cmp-text-subtle);
  background: var(--cmp-bg-soft); border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
}
.cmp-rg--empty .cmp-rg__list { padding-top: 16px; padding-bottom: 16px; }

.cmp-m-content .cmp-rg-inst__body > .cmp-field,
.cmp-m-content .cmp-inst-manual__grid > .cmp-field { grid-column: 1 / -1 !important; }
.cmp-m-content .cmp-rg__list { padding: 13px; }
.cmp-m-content .cmp-rg-inst__body { padding: 13px; }
