:root {
  color-scheme: light;
  --ink: #15202b;
  --muted: #627184;
  --line: #dbe3ec;
  --soft: #f5f7fa;
  --panel: #ffffff;
  --accent: #1967d2;
  --accent-2: #0f766e;
  --warn: #b45309;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 18px 45px rgba(21, 32, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eef3f8;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.link-button {
  border: 0;
  background: transparent;
  color: #0f766e;
  padding: 0;
  font-weight: 800;
  text-align: left;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  min-height: 100vh;
}

.login-panel {
  background: var(--panel);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.login-brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 28px;
}

.login-panel h1,
.work-title h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.login-panel p,
.muted {
  color: var(--muted);
}

.field {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

.field.invalid-field label {
  color: var(--danger);
}

.field.invalid-field input,
.field.invalid-field select,
.field.invalid-field textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.inline-field {
  max-width: 420px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.inline-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  min-height: 40px;
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary {
  background: var(--accent);
  color: white;
}

.secondary {
  background: #1d4ed8;
  color: white;
  border-color: #1d4ed8;
}

.ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.danger {
  background: #fef3f2;
  color: var(--danger);
  border-color: #fecdca;
}

.row-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.disabled-publish:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: #eef2f6;
}

.login-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.demo-accounts {
  margin-top: 28px;
  display: grid;
  gap: 8px;
}

.account-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  display: grid;
  gap: 2px;
}

.account-chip strong {
  font-size: 13px;
}

.account-chip span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.login-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 31, 58, 0.72), rgba(7, 31, 58, 0.58)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 64px;
  color: white;
}

.visual-copy {
  max-width: 720px;
}

.visual-copy h2 {
  font-size: 56px;
  line-height: 1;
  margin: 0 0 20px;
}

.visual-copy p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.sidebar {
  background: #142235;
  color: #e8eef6;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.side-brand .brand-mark {
  margin: 0;
  width: 36px;
  height: 36px;
}

.user-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.user-card strong,
.user-card span {
  display: block;
}

.user-card span {
  color: #b9c7d6;
  font-size: 13px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  background: transparent;
  color: #dce6f1;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  padding: 11px 12px;
  font-weight: 700;
}

.nav button.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
}

.main {
  padding: 28px;
  overflow: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.work-title p {
  margin: 9px 0 0;
  max-width: 800px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 16px;
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.section {
  margin-top: 18px;
  padding: 20px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.mini-card {
  padding: 18px;
  box-shadow: none;
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mini-card p {
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-size-control button {
  min-width: 42px;
  min-height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.page-size-control button.active {
  background: #1f2e33;
  color: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status.published,
.status.active,
.status.submitted,
.status.completed,
.status.sent {
  color: var(--success);
  background: #ecfdf3;
  border-color: #abefc6;
}

.status.draft,
.status.pending,
.status.in-progress {
  color: var(--warn);
  background: #fffaeb;
  border-color: #fedf89;
}

.status.suspended,
.status.recused,
.status.locked {
  color: var(--danger);
  background: #fef3f2;
  border-color: #fecdca;
}

.progress {
  height: 9px;
  background: #e6edf5;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value);
  background: var(--accent-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 16px;
  align-items: start;
}

.builder-row,
.rubric-row,
.timeline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.builder-row small,
.rubric-row small,
.timeline-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.checklist {
  display: grid;
  gap: 9px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.check b {
  color: var(--success);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #142235;
  color: white;
  padding: 13px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 10;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 34, 53, 0.46);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal h2 {
  margin: 0 0 16px;
  padding-right: 52px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  font-size: 20px;
}

.modal form {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.modal-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 8px;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px -22px -22px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.wizard-steps span {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  min-height: 38px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.wizard-steps span.active {
  background: #123f47;
  border-color: #123f47;
  color: #fff;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.category-builder {
  border: 1px solid var(--line);
  margin: 16px 0;
  padding: 14px;
}

.category-builder legend {
  padding: 0 6px;
  font-weight: 800;
}

.category-builder-row {
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}

.category-name-field {
  margin-bottom: 12px;
}

.subcategory-list {
  display: grid;
  gap: 8px;
}

.subcategory-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.subcategory-item input {
  min-height: 40px;
}

.category-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.danger-lite {
  color: var(--danger);
}

.warning-box {
  display: grid;
  gap: 6px;
  border: 1px solid #f3c46d;
  background: #fff7e6;
  color: #7a4b00;
  padding: 14px;
  margin: 14px 0;
}

.warning-box strong,
.warning-box span {
  display: block;
}

.danger-warning {
  border-color: #fecdca;
  background: #fef3f2;
  color: var(--danger);
}

.category-summary {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.category-summary h3 {
  margin: 0 0 10px;
}

.category-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.category-summary-item {
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
}

.category-summary-item strong,
.category-summary-item small {
  display: block;
}

.category-summary-item small {
  margin-top: 4px;
  color: var(--muted);
}

.category-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setup-form {
  display: grid;
  gap: 14px;
}

.setup-locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.setup-editor-form {
  display: grid;
  gap: 14px;
}

.setup-editor-head,
.setup-editor-row,
.score-editor-head,
.score-editor-row,
.field-designer-head,
.field-designer-row,
.rubric-designer-head,
.rubric-designer-row {
  display: grid;
  align-items: center;
  gap: 10px;
}

.setup-editor-head,
.setup-editor-row {
  grid-template-columns: 78px minmax(180px, 1fr) 170px 90px;
}

.field-designer-head,
.field-designer-row {
  grid-template-columns: 78px minmax(170px, 1fr) 150px minmax(180px, 1fr) 90px;
}

.score-editor-head,
.score-editor-row {
  grid-template-columns: 78px minmax(180px, 1fr) 120px 110px 90px;
}

.rubric-designer-head,
.rubric-designer-row {
  grid-template-columns: 78px minmax(220px, 1fr) 180px 110px;
}

.setup-editor-head,
.score-editor-head,
.field-designer-head,
.rubric-designer-head {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.setup-editor-row,
.score-editor-row,
.field-designer-row,
.rubric-designer-row {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.setup-editor-row input[type="text"],
.setup-editor-row input:not([type]),
.score-editor-row input[type="text"],
.score-editor-row input:not([type]),
.score-editor-row input[type="number"],
.setup-editor-row select,
.score-editor-row select,
.field-designer-row input[type="text"],
.field-designer-row input:not([type]),
.field-designer-row input[type="number"],
.field-designer-row select,
.rubric-designer-row input[type="text"],
.rubric-designer-row input:not([type]),
.rubric-designer-row input[type="number"],
.rubric-designer-row select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
}

.field-designer,
.rubric-designer {
  border: 1px solid var(--line);
  margin: 16px 0;
  padding: 0 14px 14px;
}

.field-designer legend,
.rubric-designer legend {
  padding: 0 6px;
  font-weight: 800;
}

.field-designer > button,
.rubric-designer > button {
  margin-top: 12px;
}

.field-config {
  border: 1px solid var(--line);
  margin: 16px 0;
  padding: 0;
}

.field-config legend {
  margin-left: 12px;
  padding: 0 6px;
  font-weight: 800;
}

.field-config-head,
.field-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 110px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
}

.field-config-head {
  min-height: 36px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-config-row {
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.field-config-row:last-child {
  border-bottom: 0;
}

.field-config-row input {
  width: 18px;
  height: 18px;
}

.required-cell.hidden {
  display: none;
}

.assignment-picker {
  border: 1px solid var(--line);
  margin: 16px 0;
  padding: 0;
}

.assignment-picker legend {
  margin-left: 12px;
  padding: 0 6px;
  font-weight: 800;
}

.assignment-picker-note {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--muted);
}

.assignment-picker-head,
.assignment-picker-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1.5fr) minmax(160px, 1fr) 120px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}

.assignment-picker-head {
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.assignment-picker-row {
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.assignment-picker-row:last-child {
  border-bottom: 0;
}

.assignment-picker-row input {
  width: 18px;
  height: 18px;
}

.assignment-picker-empty {
  padding: 20px 14px;
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .login-shell,
  .app-shell,
  .split,
  .cols-4,
  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 360px;
    padding: 32px;
  }

  .visual-copy h2 {
    font-size: 38px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .login-panel,
  .main {
    padding: 22px;
  }

  .topbar {
    flex-direction: column;
  }

  .toolbar {
    width: 100%;
  }

  .toolbar button {
    flex: 1 1 150px;
  }
}

/* SurveyMonkey Apply-inspired portal layout */
a {
  color: #0f766e;
  text-decoration: none;
}

.sm-shell {
  min-height: 100vh;
  background: #f3f4f5;
}

.sm-topbar {
  min-height: 58px;
  background: #1f2e33;
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 0 18px;
}

.sm-brand,
.sm-user,
.sm-mainnav {
  display: flex;
  align-items: center;
}

.sm-brand {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  gap: 12px;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.sm-brand:focus-visible {
  outline: 2px solid #78b7ff;
  outline-offset: 4px;
}

.sm-logo-tile {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.18);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 56px;
}

.sm-logo-tile img {
  display: block;
  height: 38px;
  object-fit: contain;
  width: 52px;
}

.sm-brand-name {
  align-items: center;
  display: inline-flex;
  color: #fff;
  font-size: 22px;
  gap: 5px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.sm-brand-name span {
  font-weight: 650;
}

.sm-brand-name strong {
  color: #eef7ff;
  font-weight: 900;
}

.sm-brand .brand-mark {
  width: 28px;
  height: 28px;
  margin: 0;
  background: #0b5d8b;
}

.sm-mainnav {
  justify-content: flex-end;
  gap: 4px;
}

.sm-mainnav button,
.sm-user button {
  background: transparent;
  border: 0;
  color: #dbe5e8;
  min-height: 36px;
  padding: 0 10px;
  font-weight: 750;
}

.sm-mainnav button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sm-user {
  gap: 10px;
  font-size: 13px;
}

.sm-user span {
  color: #b9c7cc;
}

.sm-orgbar {
  height: 45px;
  background: #fff;
  border-bottom: 1px solid #d6dadd;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
}

.sm-orgbar strong::before {
  content: "▣ ";
  color: #1f2e33;
}

.sm-orgbar span {
  color: var(--muted);
}

.sm-orgbar a {
  margin-left: auto;
  font-weight: 750;
  color: #334155;
}

.sm-contextbar {
  min-height: 45px;
  background: #f7f7f7;
  border-bottom: 1px solid #d6dadd;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
}

.sm-contextbar > span {
  font-weight: 800;
}

.sm-contextbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sm-main {
  max-width: min(1520px, calc(100vw - 64px));
  margin: 0 auto;
  padding-top: 28px;
}

.primary {
  background: #13751f;
}

.card {
  border-radius: 2px;
  box-shadow: none;
}

.apply-hero {
  display: grid;
  place-items: center;
  min-height: 110px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.good-logo {
  text-align: center;
  color: #4fc3b9;
}

.good-logo span {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.good-logo strong {
  font-size: 58px;
  letter-spacing: 4px;
  color: #1fb9b3;
}

.programs-head,
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.programs-head h2 {
  margin: 0;
  font-weight: 500;
  font-size: 24px;
}

.program-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.program-tools input {
  width: 260px;
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.program-tools button:not(.primary):not(.secondary):not(.danger) {
  border: 1px solid var(--line);
  background: white;
  min-width: 40px;
}

.program-tools button.active {
  background: #1f2e33;
  color: white;
}

.status-filter-head {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.filter-select-wrap {
  position: relative;
}

.filter-select-wrap::after {
  content: "⌄";
  color: #475569;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-52%);
}

.status-filter-select {
  appearance: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  min-width: 132px;
  padding: 5px 30px 5px 10px;
  text-transform: none;
}

.applications-section {
  padding: 24px 32px;
}

.applications-table-wrap {
  overflow-x: auto;
}

.applications-table {
  min-width: 1180px;
}

.applications-table th:nth-child(1),
.applications-table td:nth-child(1) {
  width: 130px;
}

.applications-table th:nth-child(2),
.applications-table td:nth-child(2) {
  width: 260px;
}

.applications-table th:nth-child(3),
.applications-table td:nth-child(3) {
  width: 170px;
}

.applications-table th:nth-child(7),
.applications-table td:nth-child(7) {
  width: 160px;
}

.applications-table th:nth-child(8),
.applications-table td:nth-child(8) {
  width: 160px;
}

.pagination-bar {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
}

.pagination-size {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.pagination-size select {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 34px;
  padding: 6px 28px 6px 10px;
}

.pager-controls {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.program-workspace-head {
  padding-bottom: 18px;
}

.program-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.program-subnav button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  padding: 0 14px;
}

.program-subnav button.active {
  background: #123f47;
  border-color: #123f47;
  color: #fff;
}

.program-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.program-card {
  min-height: 230px;
  border: 1px solid #cfd6dc;
  background: white;
  padding: 28px;
  display: grid;
  gap: 14px;
}

.program-card h3 {
  margin: 0;
  font-size: 20px;
}

.program-card p {
  margin: 0;
  line-height: 1.5;
}

.program-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.program-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.program-card-footer strong {
  font-size: 26px;
}

.application-track-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.track-application-card {
  min-height: 100%;
}

.application-card-top {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.application-card-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.application-card-kicker span {
  background: var(--nav);
  color: #fff;
  display: inline-block;
  margin-right: 8px;
  padding: 4px 7px;
}

.iai2o-program {
  overflow: hidden;
  padding: 0;
}

.iai2o-heading {
  background: #102f39;
  color: #fff;
  padding: 34px 38px 32px;
}

.iai2o-kicker {
  color: #9fe3d8;
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.iai2o-heading h2 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.16;
  margin: 0;
  max-width: 940px;
}

.iai2o-heading h2 span {
  color: #79d9ca;
  white-space: nowrap;
}

.iai2o-heading p {
  color: #d9e8eb;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 800px;
}

.track-card-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.track-card {
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 34px 38px;
}

.track-card:last-child {
  border-right: 0;
}

.track-card.registered {
  background: #f7fbfa;
}

.track-card-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.track-code {
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.track-status {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.track-status.open {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.track-card h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 28px 0 12px;
}

.track-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 600px;
}

.track-card-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 28px;
}

.track-card-footer a {
  text-decoration: none;
}

.track-registered:disabled {
  background: #13751f;
  opacity: 1;
}

.participant-overview-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.registered-track-list {
  display: grid;
  gap: 12px;
}

.registered-track-row {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 72px minmax(210px, 1fr) 110px 100px auto;
  min-height: 108px;
  padding: 18px;
}

.registered-track-code {
  background: #e9f7f4;
  border-radius: 6px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  padding: 12px 8px;
  text-align: center;
}

.registered-track-main h3,
.registered-track-main p {
  margin: 0;
}

.registered-track-main h3 {
  font-size: 17px;
  line-height: 1.35;
}

.registered-track-main p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}

.registered-track-main p span {
  margin: 0 4px;
}

.registered-track-detail {
  display: grid;
  gap: 5px;
}

.registered-track-detail span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.registered-track-detail strong {
  font-size: 13px;
}

.registration-summary-card h2 {
  margin-bottom: 22px;
}

.track-status-list {
  display: grid;
}

.track-status-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 0;
}

.track-status-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.track-status-row > div {
  display: grid;
  gap: 4px;
}

.track-status-row span:not(.status) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.track-registration-modal {
  width: min(1120px, 100%);
}

.track-registration-scroll {
  padding: 0 10px 8px 0;
}

.registration-section {
  border-top: 1px solid var(--line);
  padding: 24px 0 18px;
}

.registration-section:first-child {
  border-top: 0;
  padding-top: 4px;
}

.registration-section-title {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.registration-section-title > span,
.team-member-card legend span {
  background: #123f47;
  border-radius: 4px;
  color: #fff;
  display: inline-grid;
  font-size: 11px;
  font-weight: 900;
  height: 26px;
  place-items: center;
  width: 30px;
}

.registration-section-title h3,
.registration-section-title p {
  margin: 0;
}

.registration-section-title h3 {
  font-size: 19px;
}

.registration-section-title p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.registration-grid {
  display: grid;
  gap: 0 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-members-empty {
  background: #f5f8fa;
  border: 1px dashed #b9c7d3;
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.team-member-card {
  border: 1px solid var(--line);
  margin: 16px 0 0;
  padding: 10px 18px 16px;
}

.team-member-card legend {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  font-weight: 850;
  padding: 0 8px;
}

.registration-consent {
  display: grid;
  gap: 14px;
}

.registration-consent label {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.registration-consent input {
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.registration-consent .required-mark {
  color: var(--danger);
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.card-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.apply-dashboard {
  margin-top: 18px;
}

.stage-list {
  display: grid;
}

.stage-row {
  display: grid;
  grid-template-columns: 36px 46px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border-top: 1px solid var(--line);
}

.stage-index {
  color: var(--muted);
  font-size: 18px;
}

.stage-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #084b78;
  color: white;
  border-radius: 3px;
}

.application-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.application-rail {
  padding: 0;
  overflow: hidden;
}

.rail-back {
  appearance: none;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  padding: 18px;
}

.rail-back:hover {
  background: #f4f8f9;
}

.application-rail > a,
.application-rail > h3,
.application-rail > p,
.task-progress,
.application-rail .progress,
.deadline {
  margin-left: 16px;
  margin-right: 16px;
}

.application-rail > a {
  display: block;
  margin-top: 18px;
  font-weight: 750;
}

.application-rail h3 {
  margin-top: 8px;
  margin-bottom: 6px;
}

.application-rail p {
  color: var(--muted);
  font-size: 12px;
}

.task-item {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  text-align: left;
}

.task-item.active {
  border-left: 4px solid #168524;
  background: #fbfcfc;
}

.task-item small {
  display: block;
  color: var(--muted);
}

.done-dot,
.empty-dot,
.error-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 2px dashed #c9d1d8;
  color: white;
  font-weight: 900;
  font-style: normal;
}

.done-dot {
  border-style: solid;
  border-color: #39b54a;
  background: #39b54a;
}

.error-dot {
  background: #d92d20;
  border-color: #d92d20;
  border-style: solid;
}

.task-progress {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.rail-submit {
  width: calc(100% - 64px);
  margin: 22px 32px 8px;
  min-height: 40px;
  border: 0;
  background: #606366;
  color: white;
  font-weight: 800;
  text-transform: uppercase;
}

.rail-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.rail-submit.ready {
  background: #13751f;
  cursor: pointer;
  opacity: 1;
}

.rail-submit.ready:hover {
  background: #0f641a;
}

.deadline {
  text-align: center;
}

.application-panel,
.upload-panel,
.review-right {
  padding: 0;
}

.application-panel form,
.review-right form {
  padding: 24px 28px;
}

.application-fields {
  border: 0;
  display: contents;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.application-fields:disabled {
  opacity: 0.72;
}

.application-lock-notice {
  align-items: center;
  background: #fffaeb;
  border-bottom: 1px solid #fedf89;
  color: #7a2e0e;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 18px;
}

.deadline-locked-label {
  color: #7a2e0e;
  font-size: 13px;
  font-weight: 750;
}

.panel-title {
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.panel-title h2 {
  margin: 0;
  font-size: 16px;
}

.panel-title em {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.team-roster {
  border: 1px solid var(--line);
  display: grid;
}

.team-roster > div {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(140px, 0.7fr) minmax(180px, 1fr);
  padding: 12px 14px;
}

.team-roster > div + div {
  border-top: 1px solid var(--line);
}

.team-roster span {
  color: var(--muted);
}

.upload-panel {
  grid-column: 2;
  padding-bottom: 18px;
}

.upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  gap: 44px;
  padding: 38px;
}

.fake-upload {
  height: 10px;
  margin: 0 64px 18px;
  background: #e5ebef;
}

.fake-upload span {
  display: block;
  height: 100%;
  width: var(--value);
  background: #2f95b7;
}

.file-row {
  border: 1px solid var(--line);
  margin: 0 32px 24px;
  padding: 14px 18px;
}

.file-row small {
  display: block;
  color: var(--muted);
}

.compact-file-row {
  margin: 16px 0;
}

.form-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.upload-panel > .primary {
  float: right;
  margin-right: 18px;
}

.recommendation-box {
  padding: 24px 32px 28px;
}

.program-detail-modal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  margin-bottom: 18px;
}

.program-detail-modal h3 {
  margin-bottom: 6px;
}

.program-detail-modal aside {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
}

.program-detail-modal aside strong {
  color: var(--ink);
  font-size: 26px;
}

.drop-zone {
  min-height: 180px;
  border: 2px dashed #9eb2c4;
  background: #f7fafc;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: 26px;
  color: var(--muted);
}

.drop-zone strong {
  color: var(--ink);
  font-size: 20px;
}

.drop-zone.dragging {
  border-color: #13751f;
  background: #effdf3;
}

.drop-zone input {
  width: auto;
}

.reviewer-document-panel .document-preview {
  margin-top: 18px;
  border: 1px solid var(--line);
}

.document-preview-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.doc-link {
  min-height: 34px;
}

.document-preview iframe {
  width: 100%;
  height: min(980px, 78vh);
  border: 0;
  background: #f5f7fa;
}

.empty-document {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.radio-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.review-workspace {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 14px;
}

.review-left,
.review-right {
  min-height: calc(100vh - 150px);
}

.review-record {
  background: white;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.review-record h2,
.review-record p {
  margin: 0;
  padding: 10px 14px 0;
}

.review-record h2 small {
  color: var(--muted);
  font-size: 14px;
  margin-left: 8px;
}

.review-record p {
  color: var(--muted);
  padding-bottom: 10px;
}

.review-record nav {
  border-top: 1px solid var(--line);
  display: flex;
}

.review-record nav button {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: white;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.review-record nav button.active {
  color: #084b78;
  border-bottom: 3px solid #084b78;
}

.review-right {
  padding-bottom: 20px;
}

.review-title-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
}

.review-position {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.review-position strong {
  min-width: 54px;
  text-align: center;
  font-size: 14px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.icon-button:disabled {
  color: #b8c2cc;
  background: #f3f5f7;
  cursor: not-allowed;
}

.review-right > h2,
.review-right > p,
.review-actions {
  margin-left: 28px;
  margin-right: 28px;
}

.review-right > h2 {
  margin-top: 28px;
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-table {
  min-width: 0;
}

.compact-table th {
  width: 180px;
  background: #eef1f3;
  text-transform: none;
  color: var(--ink);
  letter-spacing: 0;
}

.numeric-id {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: #eef7f6;
}

@media (max-width: 980px) {
  .sm-topbar,
  .sm-contextbar,
  .application-workspace,
  .review-workspace,
  .program-card-grid {
    grid-template-columns: 1fr;
  }

  .sm-mainnav,
  .sm-user,
  .programs-head {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .upload-panel {
    grid-column: 1;
  }

  .track-card-grid,
  .registration-grid,
  .participant-overview-split {
    grid-template-columns: 1fr;
  }

  .registered-track-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .registered-track-detail,
  .registered-track-row > button {
    grid-column: 2;
  }

  .track-card {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 300px;
    padding: 28px 24px;
  }

  .track-card:last-child {
    border-bottom: 0;
  }

  .iai2o-heading {
    padding: 28px 24px;
  }
}
