/* Shared visual system for the UGC applicant portal. */
:root {
  --ink: #172b3b;
  --muted: #6c7b88;
  --line: #dce5e9;
  --paper: #fff;
  --canvas: #f3f6fa;
  --teal: #315f91;
  --teal-dark: #254d79;
  --teal-soft: #eaf1f8;
  --gold: #c49a4a;
  --danger: #a23c37;
  --shadow: 0 12px 35px rgba(20, 50, 64, 0.07);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    15px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  gap: 24px;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 60px;
  height: 39px;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font:
    700 22px Georgia,
    serif;
}
.brand-logo {
  width: 60px;
  height: 39px;
  object-fit: contain;
  flex: none;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}
.brand small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-label {
  font-size: 13px;
  color: var(--muted);
}
.main-content {
  width: min(1180px, calc(100% - 40px));
  margin: 38px auto 56px;
  flex: 1;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px max(28px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.card,
.loading-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(400px, 1.1fr);
  max-width: 980px;
  margin: 35px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-aside {
  background: linear-gradient(145deg, #075f64, #0e8780);
  color: #fff;
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
}
.auth-aside:after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  right: -125px;
  bottom: -115px;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.035),
    0 0 0 70px rgba(255, 255, 255, 0.025);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
}
.auth-aside .eyebrow {
  color: #b5e4dd;
}
.auth-aside h1 {
  font:
    500 32px/1.2 Georgia,
    serif;
  margin: 18px 0;
}
.auth-aside p {
  color: #d5eeea;
  max-width: 340px;
  font-size: 14px;
}
.aside-note {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 40px;
  padding-top: 18px;
  font-size: 12px;
  color: #d5eeea;
}
.auth-panel {
  padding: 40px;
}
.auth-panel h2 {
  font-size: 22px;
  margin: 0 0 6px;
}
.subcopy {
  color: var(--muted);
  margin: 0 0 25px;
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 12px;
  font-weight: 650;
  display: block;
  margin-bottom: 7px;
  color: #344b59;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cbd7dc;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 126, 123, 0.11);
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.button {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  background: var(--teal);
  color: #fff;
  font-weight: 650;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.button-secondary {
  background: #fff;
  color: var(--teal);
  border: 1px solid #a8cfca;
}
.button-secondary:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.button-quiet {
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.button-quiet:hover {
  background: #f0f5f5;
  color: var(--ink);
}
.button-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid #e9c9c6;
  padding: 7px 10px;
  font-size: 12px;
}
.auth-submit {
  width: 100%;
  margin-top: 24px;
}
.auth-switch {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.text-button {
  background: none;
  background: none;
  border: 0;
  color: var(--teal);
  font-weight: 700;
  padding: 2px 4px;
}
.notice {
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13px;
  margin: 14px 0;
  background: #fff5e4;
  color: #77551a;
  border: 1px solid #f0dfbb;
}
.notice.error {
  background: #fff0ee;
  color: var(--danger);
  border-color: #f0cfca;
}
.notice.success {
  background: #ecf8f1;
  color: #236b45;
  border-color: #cce8d7;
}
.hidden {
  display: none !important;
}
.loading-card {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #d9e8e7;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 850px) {
  .auth-layout {
    grid-template-columns: 1fr;
    margin: 10px auto;
  }
  .auth-aside {
    padding: 28px;
  }
  .aside-note {
    margin-top: 24px;
  }
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .step-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .step-link {
    min-width: 155px;
  }
  .step-link small {
    display: none;
  }
  .step-link strong {
    white-space: nowrap;
  }
  .main-content {
    margin-top: 22px;
  }
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .topbar {
    height: 66px;
    padding: 0 16px;
  }
  .brand small {
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account-label {
    display: none;
  }
  .main-content {
    width: calc(100% - 24px);
    margin: 18px auto 30px;
  }
  .auth-panel {
    padding: 25px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .field.full {
    grid-column: auto;
  }
  .auth-aside h1 {
    font-size: 26px;
  }
  .wizard-content {
    padding: 21px 17px;
  }
  .step-nav {
    padding: 7px;
  }
  .step-link {
    min-width: 120px;
    padding: 9px 6px;
    gap: 7px;
  }
  .step-link strong {
    font-size: 10px;
  }
  .application-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer {
    padding: 16px;
    flex-direction: column;
    gap: 5px;
  }
  .step-actions {
    gap: 12px;
  }
  .step-actions .save-state {
    display: none;
  }
}

/* Application wizard: clear hierarchy, predictable spacing, and compact optional sections. */
.brand-mark,
.brand-logo {
  width: 42px;
  min-width: 42px;
  height: 42px;
}
.brand strong {
  font-size: 13px;
  line-height: 1.3;
  max-width: 430px;
}
.wizard {
  max-width: 1120px;
  margin: 0 auto;
}
.wizard-title {
  margin: 0 0 24px;
  padding: 25px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.wizard-title h1 {
  font:
    500 29px/1.2 Georgia,
    serif;
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
}
.wizard-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.wizard-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}
.wizard-progress-label strong {
  color: var(--teal);
  font-weight: 700;
}
.wizard-progress {
  height: 5px;
  margin-top: 7px;
  background: #e8edf2;
  border-radius: 99px;
  overflow: hidden;
}
.wizard-progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.wizard-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.step-nav {
  position: sticky;
  top: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.step-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 11px;
  text-align: left;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #566978;
  transition:
    background 0.15s,
    color 0.15s;
}
.step-link:hover {
  background: #f3f6fa;
}
.step-link.active {
  background: var(--teal-soft);
  color: var(--teal);
}
.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid #d0dae3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
}
.step-link.active .step-num,
.step-link.done .step-num {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.step-link strong,
.step-link small {
  display: block;
}
.step-link strong {
  font-size: 12px;
  line-height: 1.3;
}
.step-link small {
  font-size: 10px;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 3px;
}
.wizard-content {
  padding: 30px 34px 26px;
  min-width: 0;
}
.step-heading {
  padding: 0 0 20px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.step-heading h2 {
  font:
    500 24px/1.25 Georgia,
    serif;
  margin: 5px 0 7px;
  letter-spacing: -0.015em;
}
.step-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 680px;
}
.required-hint {
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.required-mark,
.required-hint span {
  color: #b34c45;
  font-weight: 800;
  margin-left: 4px;
}
.required-hint span {
  margin: 0 3px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}
.field-group-card {
  margin: 0 0 25px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfd;
}
.field-group-heading {
  margin: 0 0 18px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line);
}
.field-group-heading h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.field-group-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.field {
  min-width: 0;
}
.field label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
  display: block;
  margin: 0 0 7px;
  color: #344b59;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd7df;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.field textarea {
  min-height: 112px;
  line-height: 1.5;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(49, 95, 145, 0.12);
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 6px;
}
.helper-card {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #d7e3ef;
  border-radius: 9px;
  background: #eff4f9;
  color: #455d76;
  font-size: 13px;
  line-height: 1.5;
}
.section-block {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.section-block h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 7px;
}
.section-intro,
.section-block > p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 15px;
  max-width: 700px;
}
.pip-guidance {
  margin: 0 0 18px;
  padding: 17px 19px;
  border: 1px solid #d8e3ee;
  border-left: 4px solid var(--teal);
  border-radius: 9px;
  background: #f4f7fa;
  font-size: 12px;
  line-height: 1.55;
  color: #475d71;
}
.pip-guidance strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 5px;
}
.pip-guidance p {
  margin: 0 0 8px;
}
.pip-guidance a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section-limit-note {
  font-size: 12px;
  color: var(--muted);
}
.section-accordion {
  margin: 13px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}
.section-accordion[open] {
  box-shadow: 0 3px 12px rgba(25, 49, 71, 0.04);
}
.section-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  cursor: pointer;
}
.section-accordion summary::-webkit-details-marker {
  display: none;
}
.section-accordion summary strong,
.section-accordion summary small {
  display: block;
}
.section-accordion summary strong {
  font-size: 13px;
  color: var(--ink);
}
.section-accordion summary small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.accordion-icon {
  width: 27px;
  height: 27px;
  min-width: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 15px;
  transition: transform 0.15s;
}
.section-accordion[open] .accordion-icon {
  transform: rotate(45deg);
}
.accordion-content {
  padding: 0 17px 17px;
  border-top: 1px solid #edf1f4;
}
.accordion-content .section-intro {
  margin-top: 14px;
}
.repeater {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #e2e9ed;
  border-radius: 10px;
  background: #f8fafb;
}
.repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #425866;
}
.button-danger {
  border-radius: 7px;
  padding: 7px 10px;
}
.add-row {
  margin-top: 4px;
  padding: 9px 13px;
  font-size: 12px;
}
.pill-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.pill-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.pill-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.pill-option span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccd8e1;
  border-radius: 999px;
  padding: 9px 14px;
  color: #506477;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.15s,
    border 0.15s,
    color 0.15s;
}
.pill-option input:checked + span {
  background: var(--teal-soft);
  border-color: #8eaccd;
  color: #254d79;
  font-weight: 700;
}
.pill-option:focus-within span {
  outline: 3px solid rgba(49, 95, 145, 0.16);
  outline-offset: 2px;
}
.declaration-group {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
}
.declaration-group h4 {
  font-size: 14px;
  margin: 0 0 5px;
}
.declaration-group > p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 17px;
}
.step-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 30px -34px -26px;
  padding: 16px 34px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
}
.step-actions .button {
  min-width: 132px;
}
.step-actions .button:disabled {
  opacity: 0.45;
}
.save-state {
  font-size: 12px;
  color: var(--muted);
}
.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.review-item {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.review-item strong {
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}
.review-item span {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.application-list {
  display: grid;
  gap: 12px;
}
.guidelines-panel {
  margin: 0 0 22px;
  padding: 23px;
}
.guidelines-heading {
  margin: 0 0 17px;
}
.guidelines-heading h2 {
  margin: 4px 0 5px;
  font-size: 19px;
}
.guidelines-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.guideline-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 5px;
  padding: 10px 15px;
  border: 1px solid var(--navy);
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.guideline-link:hover,
.guideline-link:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
}
.application-row {
  padding: 20px 22px;
}
.application-row h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.application-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}
.dashboard-head h1 {
  font:
    500 30px/1.2 Georgia,
    serif;
  margin: 7px 0;
}
.dashboard-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background: #eef3f5;
  color: #536673;
  padding: 5px 10px;
  font-size: 11px;
  text-transform: capitalize;
  font-weight: 700;
  white-space: nowrap;
}
.status.draft {
  background: #fff3df;
  color: #88621d;
}
.auth-aside {
  background: linear-gradient(145deg, #233f62, #376b9c);
}
.auth-aside .eyebrow {
  color: #d3e3f2;
}
.auth-aside p,
.aside-note {
  color: #e0eaf4;
}
@media (max-width: 900px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .step-nav {
    position: static;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    padding: 8px;
  }
  .step-link {
    min-width: 155px;
    width: auto;
    padding: 10px;
  }
  .step-link small {
    display: none;
  }
  .wizard-content {
    padding: 26px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 66px;
    padding: 10px 14px;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark,
  .brand-logo {
    width: 37px;
    min-width: 37px;
    height: 37px;
  }
  .brand strong {
    font-size: 10px;
    line-height: 1.2;
    max-width: 220px;
  }
  .brand small {
    display: none;
  }
  .main-content {
    width: calc(100% - 24px);
    margin: 16px auto 28px;
  }
  .wizard-title {
    padding: 19px 18px;
    margin-bottom: 14px;
  }
  .wizard-title h1 {
    font-size: 23px;
  }
  .wizard-title p {
    font-size: 12px;
  }
  .wizard-progress-label {
    margin-top: 15px;
  }
  .wizard-layout {
    gap: 12px;
  }
  .step-nav {
    margin: 0 -2px;
  }
  .step-link {
    min-width: 128px;
    padding: 9px 8px;
    gap: 8px;
  }
  .step-link strong {
    font-size: 10px;
  }
  .step-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 10px;
  }
  .wizard-content {
    padding: 21px 17px 20px;
  }
  .step-heading {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .step-heading h2 {
    font-size: 21px;
  }
  .form-grid,
  .review-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .section-block {
    margin-top: 22px;
    padding-top: 18px;
  }
  .section-accordion summary {
    padding: 13px;
  }
  .accordion-content {
    padding: 0 12px 13px;
  }
  .repeater {
    padding: 13px;
  }
  .declaration-group {
    padding: 15px;
  }
  .step-actions {
    margin: 26px -17px -20px;
    padding: 13px 17px;
    flex-wrap: wrap;
  }
  .step-actions .button {
    min-width: 0;
    flex: 1;
    padding: 10px 11px;
  }
  .step-actions .save-state {
    display: none;
  }
  .application-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer {
    padding: 15px 16px;
    flex-direction: column;
    gap: 5px;
  }
}

/* Keep role controls and the final theme adjustments above base component styles. */
.auth-aside {
  background: linear-gradient(145deg, #233f62, #376b9c);
}
.auth-aside .eyebrow {
  color: #d3e3f2;
}
.auth-aside p,
.aside-note {
  color: #e0eaf4;
}
.button-secondary {
  border-color: #b8cadd;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px rgba(49, 95, 145, 0.12);
}
.pill-option input:checked + span {
  border-color: #8eaccd;
  color: #254d79;
}
.pill-option input:focus + span {
  box-shadow: 0 0 0 3px rgba(49, 95, 145, 0.13);
}
.helper-card {
  background: #eff4f9;
  border-color: #d7e3ef;
  color: #455d76;
}
.role-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #f0f4f8;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 18px;
}
.role-choice {
  flex: 1;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 8px 5px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.role-choice:hover {
  background: #e4ebf3;
  color: var(--ink);
}
.role-choice.selected {
  background: #fff;
  color: var(--teal);
  box-shadow: 0 1px 4px rgba(25, 49, 71, 0.12);
}
@media (min-width: 561px) {
  .brand strong {
    font-size: 12px;
    line-height: 1.25;
    max-width: 390px;
  }
}
@media (max-width: 560px) {
  .brand strong {
    font-size: 10px;
    line-height: 1.2;
    max-width: 205px;
  }
  .brand small {
    display: none;
  }
}

/* Administrator application review workspace */
.admin-heading {
  margin-bottom: 18px;
}
.admin-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 5px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.admin-tab {
  flex: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}
.admin-tab:hover,
.admin-tab.active {
  color: var(--teal-dark);
}
.admin-tab.active {
  border-bottom-color: var(--teal);
}
.admin-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-stat {
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.admin-stat span,
.admin-stat strong {
  display: block;
}
.admin-stat span {
  font-size: 12px;
  color: var(--muted);
}
.admin-stat strong {
  margin-top: 4px;
  font-size: 23px;
  line-height: 1.2;
}
.admin-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(190px, 1fr) auto auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
}
.admin-filter .field {
  margin: 0;
}
.admin-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin: 23px 0 12px;
}
.admin-list-heading h2,
.admin-panel h2,
.admin-sections h2 {
  margin: 0;
  font-size: 19px;
}
.admin-list-heading span,
.admin-muted {
  color: var(--muted);
  font-size: 12px;
}
.admin-application-list {
  display: grid;
  gap: 12px;
}
.admin-application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 21px;
  border: 1px solid var(--line);
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.admin-application-row:hover {
  border-color: #bdcddd;
  box-shadow: 0 10px 28px rgba(20, 50, 64, 0.08);
}
.admin-application-main {
  min-width: 0;
  flex: 1;
}
.admin-app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.admin-app-title h3 {
  margin: 0;
  font-size: 16px;
}
.admin-application-row p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.admin-pagination > div {
  display: flex;
  gap: 8px;
}
.admin-empty {
  padding: 32px;
  text-align: center;
}
.admin-empty h3 {
  margin: 0 0 5px;
}
.admin-empty p {
  margin: 0;
  color: var(--muted);
}
.admin-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.admin-detail-card,
.admin-panel {
  padding: 22px;
  margin-bottom: 16px;
}
.admin-detail-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.admin-detail-title h2 {
  margin: 5px 0;
  font-size: 23px;
}
.admin-detail-title p,
.admin-panel > p {
  margin: 4px 0 15px;
  color: var(--muted);
  font-size: 13px;
}
.admin-detail-card > h3,
.admin-panel h3 {
  margin: 0 0 13px;
  font-size: 16px;
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.admin-detail-grid > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #e8edf1;
  border-radius: 8px;
  background: #fbfcfd;
}
.admin-detail-grid dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-detail-grid dd {
  margin: 0;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-workflow-grid,
.admin-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-workflow-grid > .admin-panel,
.admin-review-grid > .admin-panel {
  min-width: 0;
}
.admin-panel form {
  display: grid;
  gap: 13px;
}
.admin-panel form .field {
  margin: 0;
}
.admin-assignment-list {
  display: grid;
  gap: 9px;
}
.admin-assignment {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.admin-assignment div strong,
.admin-assignment div span {
  display: block;
}
.admin-assignment div span,
.admin-assignment small {
  color: var(--muted);
  font-size: 11px;
}
.admin-history {
  margin: 0;
  padding-left: 22px;
}
.admin-history li {
  padding: 0 0 14px 4px;
}
.admin-history li:last-child {
  padding-bottom: 0;
}
.admin-history li span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.admin-history li p {
  margin: 5px 0 0;
  font-size: 12px;
  white-space: pre-wrap;
}
.admin-evaluation {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.admin-evaluation:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.admin-evaluation strong {
  margin-right: 9px;
}
.admin-evaluation > span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
}
.admin-evaluation p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f8fafb;
}
.admin-table td {
  overflow-wrap: anywhere;
}
.admin-sections {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.admin-sections h2 {
  margin: 4px 0 12px;
}
.admin-section {
  margin: 9px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.admin-section summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
}
.admin-section summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.admin-section > div {
  padding: 0 14px 14px;
}
.admin-section .admin-detail-grid {
  padding-top: 12px;
  border-top: 1px solid #edf1f4;
}
.admin-file-link {
  font-size: 12px;
}
.saved-file {
  margin: 8px 0;
  padding: 9px 11px;
  border: 1px solid #d9e6ee;
  border-radius: 7px;
  background: #f5f9fc;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.saved-file:before {
  content: "✓ ";
  color: #28724d;
  font-weight: 800;
}
.submission-reminder {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid #edcf9b;
  border-left: 4px solid #c49a4a;
  border-radius: 10px;
  background: #fff9ee;
  color: #51472f;
}
.submission-reminder strong {
  display: block;
  margin-bottom: 5px;
  color: #463814;
  font-size: 15px;
}
.submission-reminder p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
}
.submission-reminder ul {
  margin: 6px 0 0;
  padding-left: 19px;
  font-size: 12px;
  line-height: 1.65;
}
.upload-check {
  padding-left: 2px;
}
.upload-check.complete::marker {
  color: #28724d;
}
.upload-check.missing {
  color: #9b5428;
}
.upload-check a {
  overflow-wrap: anywhere;
}
.admin-criterion {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.admin-criterion p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.admin-criterion > span {
  font-size: 11px;
  color: var(--muted);
}
.admin-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.admin-staff-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 19px;
}
.applicant-approval-panel {
  margin: 0 0 24px;
}
.applicant-approval-list {
  display: grid;
  gap: 10px;
}
.applicant-university {
  color: var(--ink) !important;
}
.applicant-approval-card .admin-staff-badges {
  max-width: 380px;
}
.admin-staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 18px;
  margin-bottom: 27px;
}
.admin-staff-form {
  padding: 24px;
}
.admin-panel-heading {
  margin-bottom: 19px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.admin-panel-heading h2 {
  margin: 5px 0;
  font-size: 21px;
}
.admin-panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-staff-form form {
  display: grid;
  gap: 16px;
}
.admin-staff-form .form-grid {
  gap: 14px;
}
.admin-staff-form .field {
  margin: 0;
}
.admin-staff-form .field small {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap input {
  width: 100%;
  padding-right: 75px;
}
.password-visibility {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 55px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: #eef3f7;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}
.password-visibility:hover {
  background: #e2ebf3;
}
.password-visibility:focus-visible {
  outline: 3px solid rgba(49, 95, 145, 0.2);
  outline-offset: 1px;
}
.password-eye-button {
  position: absolute;
  right: 7px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  transform: translateY(-50%);
  padding: 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #637689;
}
.password-eye-button:hover,
.password-eye-button.is-visible {
  background: #eef3f7;
  color: var(--teal-dark);
}
.password-eye-button:focus-visible {
  outline: 3px solid rgba(49, 95, 145, 0.2);
  outline-offset: 1px;
}
.password-eye-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-eye-button.is-visible svg {
  opacity: 0.8;
}
.admin-create-account {
  justify-self: start;
  min-width: 190px;
}
.admin-staff-guidance .helper-card {
  position: sticky;
  top: 18px;
  padding: 20px;
}
.admin-staff-guidance .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.admin-staff-guidance strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}
.admin-staff-guidance p {
  font-size: 12px;
  line-height: 1.55;
}
.admin-staff-list {
  display: grid;
  gap: 10px;
}
.admin-staff-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 50, 64, 0.035);
}
.admin-staff-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 750;
}
.admin-staff-info {
  min-width: 0;
  flex: 1;
}
.admin-staff-info h3 {
  margin: 0 0 2px;
  font-size: 14px;
}
.admin-staff-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.admin-staff-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.admin-staff-badges {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.status-administrator {
  background: #eeeafa;
  color: #5b4c8e;
}
.status-evaluator {
  background: #e9f2f5;
  color: #38677b;
}
.status-submitted,
.status-resubmitted {
  background: #eaf1f8;
  color: #315f91;
}
.status-under_review {
  background: #fff3df;
  color: #88621d;
}
.status-clarification_requested {
  background: #fff0e7;
  color: #9b5428;
}
.status-recommended {
  background: #e8f4ee;
  color: #28724d;
}
.status-approved {
  background: #e4f3eb;
  color: #246b48;
}
.status-rejected,
.status-withdrawn {
  background: #fae9e8;
  color: #963d38;
}
@media (max-width: 850px) {
  .admin-filter {
    grid-template-columns: 1fr 1fr;
  }
  .admin-workflow-grid,
  .admin-review-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 850px) {
  .admin-staff-layout {
    grid-template-columns: 1fr;
  }
  .admin-staff-guidance .helper-card {
    position: static;
  }
}
@media (max-width: 600px) {
  .admin-overview {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .admin-staff-overview {
    grid-template-columns: 1fr 1fr;
  }
  .admin-stat {
    padding: 13px;
  }
  .admin-stat strong {
    font-size: 19px;
  }
  .admin-filter {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .admin-application-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-application-row > .button {
    width: 100%;
  }
  .admin-list-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .admin-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-detail-card,
  .admin-panel {
    padding: 17px;
  }
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
  .admin-criterion {
    grid-template-columns: 1fr auto;
  }
  .admin-criterion > span {
    grid-column: 1;
  }
  .admin-criterion button {
    grid-column: 2;
    grid-row: 1/3;
  }
  .admin-assignment {
    grid-template-columns: 1fr;
  }
  .admin-section summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .admin-staff-form {
    padding: 18px;
  }
  .admin-create-account {
    width: 100%;
  }
  .admin-staff-card {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px;
  }
  .admin-staff-info {
    width: calc(100% - 56px);
  }
  .admin-staff-badges {
    width: 100%;
    justify-content: flex-start;
    padding-left: 56px;
  }
}

@media (max-width: 700px) {
  .guidelines-panel {
    padding: 17px;
  }
  .field-group-card {
    padding: 16px;
  }
}
