.enrollment-screen {
  --enroll-ink: #111849;
  --enroll-muted: #3c4e74;
  --enroll-border: #d3dff7;
  --enroll-gradient: linear-gradient(125deg, #0067dc, #0739d4);
  display: grid;
  gap: 18px;
  min-width: 0;
  color: var(--enroll-ink);
}
.enrollment-screen > * { min-width: 0; }

.enrollment-banner, .enrollment-section-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: clamp(16px, 2.4vw, 28px);
  background:
    linear-gradient(138deg, transparent 68%, #2e74f126 68% 78%, #1254db30 78% 88%, #643fe229 88%),
    linear-gradient(105deg, #f2f7ff 2%, #dce7fe 60%, #c1cffb 86%, #ccbefb);
}

.enrollment-banner {
  flex-wrap: wrap;
  border: 1px solid var(--enroll-border);
  border-radius: 22px;
  box-shadow: 0 5px 16px #183b7114;
}
.enrollment-banner > div { flex: 1 1 235px; min-width: 0; }
.enrollment-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e2f3ff, #a6c8ff);
  box-shadow: inset 0 1px 1px #fff, 0 3px 10px #0937af20;
}
.enrollment-icon img { width: 34px; height: 34px; object-fit: contain; }
.enrollment-banner h1, .enrollment-section-head h2 {
  margin: 0;
  color: var(--enroll-ink);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.enrollment-banner h1 { font-size: clamp(1.65rem, 3.3vw, 2.55rem); }
.enrollment-section-head h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
.enrollment-banner p, .enrollment-section-head p {
  margin: 6px 0 0;
  color: var(--enroll-muted);
  line-height: 1.4;
}
.enrollment-surface {
  min-width: 0;
  border: 1px solid var(--enroll-border);
  border-radius: 22px;
  background: #f9fbff;
  box-shadow: 0 5px 18px #183b7114;
}
.enrollment-section-head {
  padding-block: 15px;
  border-radius: 21px 21px 0 0;
  border-bottom: 1px solid #cfddfb;
}
.enrollment-section-head .enrollment-icon { width: 45px; height: 45px; flex-basis: 45px; border-radius: 13px; }
.enrollment-section-head .enrollment-icon img { width: 27px; height: 27px; }
.enrollment-screen .enrollment-card, .enrollment-bulk-body { padding: clamp(14px, 2.4vw, 28px); }

.enrollment-screen .enrollment-card > .field { max-width: 350px; }
.enrollment-screen .enrollment-card [data-lookup] {
  margin: 0 0 16px;
  padding: 14px;
  background: #eff4ff;
  border: 1px solid var(--enroll-border);
  border-radius: 15px;
}
.enrollment-screen .enrollment-card [data-results] { margin-top: 8px; }
.enrollment-screen .enroll-form .form-header {
  margin: 18px 0 0;
  padding: 11px 14px;
  border: 1px solid var(--enroll-border);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(105deg, #e5efff, #edf0ff);
}
.enrollment-screen .form-header :is(strong, p) { color: var(--enroll-muted); }
.enrollment-screen .form-header strong { color: var(--enroll-ink); }
.enrollment-screen .step-dot { background: #d1e5ff; color: #0645bb; }
.enrollment-screen .enroll-form .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  padding: 14px 14px 4px;
  border: 1px solid var(--enroll-border);
  border-radius: 0 0 15px 15px;
  background: #fff;
}
.enrollment-screen .enroll-form .form-grid .full { grid-column: 1 / -1; }
.enroll-form .enrollment-net-tuition output {
  display: block;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #b8d1fa;
  border-radius: 10px;
  background: #eaf2ff;
  color: #123d80;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.enrollment-screen .enroll-referrer {
  min-width: 0;
  background: #eff4ff;
  border: 1px solid var(--enroll-border);
  border-radius: 14px;
}
.enrollment-screen .enroll-footer .alert {
  color: #244984;
  background: #eaf2ff;
  border: 1px solid var(--enroll-border);
  border-radius: 13px;
}

.enrollment-import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.enrollment-import-card {
  min-width: 0;
  padding: clamp(13px, 2vw, 20px);
  border: 1px solid var(--enroll-border);
  border-radius: 16px;
  background: #fff;
}
.enrollment-import-card--excel { background: linear-gradient(145deg, #e8f3ff, #eff0ff); }
.enrollment-import-card h3, .enrollment-preview h3 {
  margin: 0;
  color: var(--enroll-ink);
  font-size: 1rem;
}
.enrollment-import-card p { margin: 7px 0 12px; color: var(--enroll-muted); font-size: .88rem; line-height: 1.5; }
.enrollment-import-card .enrollment-column-order { font-size: .8rem; }
.enrollment-file-status { overflow-wrap: anywhere; }
.enrollment-file-status:empty, #bulk-enroll-results:empty { display: none; }
.enrollment-screen textarea#bulk-enroll-lines {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9cbee;
  border-radius: 12px;
  color: var(--enroll-ink);
  background: #f8faff;
  resize: vertical;
}
.enrollment-actions, .enrollment-bulk-footer, .enrollment-preview-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.enrollment-bulk-footer { justify-content: flex-end; margin-top: 15px; }
#app .shell .page .enrollment-screen .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  white-space: normal;
  text-decoration: none;
}
#app .shell .page .enrollment-screen .btn-primary { background: var(--enroll-gradient); color: #fff; }
#app .shell .page .enrollment-screen .btn-soft { background: #fff; color: #163e8d; border-color: #b9cdf5; }
.enrollment-screen .btn img { width: 19px; height: 19px; object-fit: contain; }
.enrollment-screen :is(a, button, input, select, textarea, .enrollment-preview-table):focus-visible {
  outline: 2px solid #235bcb;
  outline-offset: 2px;
}

#bulk-enroll-results { margin-top: 16px; }
.enrollment-preview { background: #fff; border: 1px solid var(--enroll-border); border-radius: 16px; }
.enrollment-preview > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 13px 15px;
}
.enrollment-screen .enrollment-preview-table {
  max-height: 410px;
  overflow: auto;
  border: 0;
  border-top: 1px solid var(--enroll-border);
  border-radius: 0 0 15px 15px;
}
.enrollment-preview table { min-width: 465px; color: var(--enroll-ink); }
#app .shell .page .enrollment-screen .enrollment-preview thead th {
  position: sticky;
  top: 0;
  background: #e5edff;
  color: #203c78;
}
.enrollment-preview tbody tr:nth-child(even) { background: #f7f9ff; }
.enrollment-preview tbody tr:hover { background: #eff4ff; }
.enrollment-preview tbody th[scope="row"] {
  background: transparent;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  font-weight: 700;
}
.enrollment-preview :is(td, th) { white-space: normal; }
.enrollment-preview :is(td, th):first-child, .enrollment-preview-amount { white-space: nowrap; }
.enrollment-preview-amount, .enrollment-row-number { font-variant-numeric: tabular-nums; }
.enrollment-row-number { color: #244984; font-weight: 700; }
.enrollment-preview td small { display: block; margin-top: 4px; color: #7e3240; }
.enrollment-chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  color: #244984;
  background: #edf2ff;
  font-size: .77rem;
  font-weight: 700;
  white-space: nowrap;
}
.enrollment-chip--ok { background: #dcf5e7; color: #14613b; }
.enrollment-chip--error { background: #fce7ec; color: #93243a; }

@media (max-width: 760px) {
  .enrollment-import-grid { grid-template-columns: minmax(0, 1fr); }
}
