.application-page {
  --bg-main: #ffffff;
  --text-light-primary: #111111;
  --text-light-secondary: #444444;
  --text-light-muted: #707070;
  --text-dark-primary: #ffffff;
  --text-dark-secondary: #c7c7c7;
  --text-dark-muted: #8f8f8f;
  --accent-gold: #111111;
  --accent-gold-light: #2b2b2b;
  --border-dark: rgba(255, 255, 255, 0.12);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--text-light-primary);
  font-family: var(--font-sans);
}

.application-header {
  position: relative;
  z-index: 20;
  padding: 1rem clamp(1.25rem, 4vw, 4rem) 1.25rem;
  color: #fff;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.application-header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto 0.85rem;
}

.application-brand {
  color: #fff;
  font-family: var(--font-logo);
  font-size: 1.08rem;
  text-decoration: none;
  cursor: default;
}

.application-cohort {
  color: var(--text-dark-muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.application-cancel {
  margin-left: auto;
  padding: 0.45rem 0.8rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  color: var(--text-dark-secondary);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.application-cancel:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

.application-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  max-width: 1440px;
  margin: 0 auto;
}

.progress-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0.58rem 0.75rem;
  color: var(--text-dark-muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--border-dark);
  border-radius: 5px;
  transition: var(--transition-smooth);
}

.progress-step.is-current { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.progress-step.is-complete { color: var(--text-dark-secondary); }

.progress-number {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 0.72rem;
}

.is-current .progress-number { color: #111111; background: #fff; border-color: #fff; }
.is-complete .progress-number { color: #111111; background: #e5e5e5; border-color: #e5e5e5; }
.progress-copy { min-width: 0; display: flex; flex-direction: column; }
.progress-copy small { margin-bottom: 0.12rem; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; }
.progress-copy strong { overflow: hidden; font-size: 0.76rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.progress-status { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; }
.is-current .progress-status { background: #ffffff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }

.application-main {
  width: min(1440px, calc(100% - clamp(2.5rem, 8vw, 8rem)));
  min-height: 65vh;
  margin: 0 auto;
  padding: clamp(2.5rem, 4.5vw, 4.25rem) 0 4rem;
}

.application-panel { animation: applicationReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.application-panel[hidden] { display: none !important; }
@keyframes applicationReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.stage-intro { max-width: 1120px; margin-bottom: 2.1rem; }
.stage-intro h1 { margin: 0 0 0.65rem; font-family: var(--font-sans); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.stage-intro > p, .stage-intro > div > p { max-width: 800px; margin: 0; color: var(--text-light-muted); font-size: 0.94rem; line-height: 1.65; }
.stage-intro-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }

.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.6rem; }
.field-full { grid-column: 1 / -1; }
.field-group { min-width: 0; }
.field-group > label:first-child {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-light-muted);
  font-size: 0.71rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.field-group > label span { margin-right: 0.35rem; }

.field-group input:not([type="file"]), .field-group select, .field-group textarea, .question-answer {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  color: #111111;
  font-family: var(--font-sans);
  font-size: 0.91rem;
  background: #ffffff;
  border: 1px solid #d9d9d7;
  border-radius: 5px;
  outline: none;
  box-shadow: 0 2px 6px rgba(22, 16, 12, 0.025);
  transition: var(--transition-smooth);
}
.field-group textarea, .question-answer { min-height: 104px; resize: vertical; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus, .question-answer:focus { background: #fff; border-color: #111111; box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08); }
.field-group .is-invalid, .question-answer.is-invalid { border-color: #111111; box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1); }

.file-drop {
  position: relative;
  min-height: 142px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fbfbfa;
  border: 1px dashed #c9c9c6;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.file-drop:hover { background: #fff; border-color: #111111; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-icon { width: 34px; height: 34px; margin-bottom: 0.55rem; display: grid; place-items: center; color: #111111; background: #f1f1f1; border-radius: 4px; }
.file-drop strong { font-size: 0.85rem; font-weight: 650; overflow-wrap: anywhere; }
.file-drop small { margin-top: 0.25rem; color: #8d8781; font-size: 0.7rem; }

.form-footer { margin-top: 2.25rem; padding-top: 1.35rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; border-top: 1px solid #dededb; }
.form-footer p { margin: 0; color: var(--text-light-muted); font-size: 0.78rem; }
.form-footer p i { margin-right: 0.45rem; color: #111111; }

.application-primary, .application-secondary {
  min-height: 50px;
  padding: 0.8rem 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.application-primary { color: #fff; background: #111111; border: 1px solid #111111; box-shadow: 0 7px 18px rgba(17, 17, 17, 0.12); }
.application-primary:hover { color: #ffffff; background: #2b2b2b; border-color: #2b2b2b; transform: translateY(-2px); }
.application-secondary { color: #111111; background: transparent; border: 1px solid #cfcfcd; }
.application-secondary:hover { background: #fff; border-color: #111111; }

.assessment-meta { min-width: 250px; padding: 0.75rem 0.9rem; display: flex; flex-direction: column; background: #fff; border: 1px solid #dededb; border-radius: 4px; }
.assessment-meta span { color: var(--text-light-muted); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; }
.assessment-meta strong { margin: 0.25rem 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 650; }
.assessment-meta small { color: var(--text-light-muted); font-size: 0.72rem; }
.assessment-meta b { color: #111111; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
.assessment-meta b.is-urgent { color: #111111; font-weight: 700; }

.resource-policy { margin-bottom: 1.25rem; padding: 0 0 0.85rem; display: flex; align-items: flex-start; gap: 0.65rem; color: #4f4b47; background: transparent; border: 0; border-bottom: 1px solid #dededb; border-radius: 0; }
.resource-policy i { margin-top: 0.22rem; color: #111111; }
.resource-policy p { margin: 0; font-size: 0.8rem; line-height: 1.6; }

.question-list { display: grid; gap: 0.75rem; }
.question-card { display: grid; grid-template-columns: 190px 1fr; background: #fff; border: 1px solid #dededb; border-radius: 5px; overflow: hidden; }
.question-card-simple { grid-template-columns: 1fr; }
.question-card-simple .question-number { display: block; margin-bottom: 0.5rem; color: var(--text-light-muted); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; }
.question-category { padding: 1.15rem; color: #fff; background: #111111; }
.question-category span { color: #c9c9c9; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; }
.question-category strong { display: block; margin-top: 0.45rem; font-family: var(--font-sans); font-size: 1rem; font-weight: 650; line-height: 1.25; }
.question-content { padding: 1.15rem; }
.question-content label { display: block; margin-bottom: 0.7rem; font-family: var(--font-sans); font-size: 0.91rem; font-weight: 600; line-height: 1.5; }
.question-answer { display: block; font-size: 0.86rem; }

.interview-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid #dededb; }
.interview-card { min-height: 0; padding: 1.15rem 0.25rem; display: grid; grid-template-columns: 145px 24px 230px minmax(0, 1fr); align-items: center; gap: 0.85rem; background: #fff; border: 0; border-bottom: 1px solid #dededb; border-radius: 0; }
.interview-card > span { color: var(--text-light-muted); font-size: 0.64rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; }
.interview-card > i { color: #111111; font-size: 0.95rem; text-align: center; }
.interview-card h2 { margin: 0; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 650; }
.interview-card p { margin: 0; color: var(--text-light-muted); font-size: 0.79rem; line-height: 1.55; }

.stage-three-note { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.85rem; }
.stage-three-note p { margin: 0; color: var(--text-light-secondary); font-size: 0.8rem; }
.offer-timeline-badge { padding: 0.42rem 0.65rem; display: inline-flex; align-items: center; gap: 0.4rem; color: #111111; background: #f1f1f1; border: 1px solid #d5d5d5; border-radius: 4px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.forward-only-note { color: var(--text-light-muted); font-size: 0.76rem; }
.forward-only-note i { margin-right: 0.4rem; color: #111111; }

.application-dialog {
  width: min(620px, calc(100% - 2rem));
  padding: 0;
  color: #111111;
  background: #fff;
  border: 1px solid #ddd7cf;
  border-radius: 6px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
}
.application-dialog::backdrop { background: rgba(16, 13, 11, 0.78); backdrop-filter: blur(8px); }
.application-dialog form { padding: clamp(1.6rem, 4vw, 2.6rem); }
.application-dialog h2 { margin: 0 0 0.8rem; font-family: var(--font-sans); font-size: clamp(1.65rem, 4vw, 2.2rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
.application-dialog p { color: var(--text-light-secondary); font-size: 0.87rem; }
.application-dialog ul { margin: 1.25rem 0 0; padding: 1.15rem 1.15rem 1.15rem 2.2rem; color: #444444; background: #fafafa; border: 1px solid #dedede; border-radius: 4px; font-size: 0.8rem; }
.application-dialog li + li { margin-top: 0.45rem; }
.dialog-icon { width: 38px; height: 38px; margin-bottom: 1rem; display: grid; place-items: center; color: #ffffff; background: #111111; border-radius: 4px; }
.dialog-icon-warning { color: #fff; background: #111111; }
.dialog-actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.75rem; }
.application-danger { background: #111111; border-color: #111111; }
.application-danger:hover { color: #fff; background: #2b2b2b; border-color: #2b2b2b; }
.application-dialog-compact { width: min(520px, calc(100% - 2rem)); }

.application-notice { padding: 1rem; color: #fff; background: #111111; }
.application-footer { padding: 1.4rem clamp(1.25rem, 4vw, 4rem); display: flex; justify-content: center; color: #999999; background: #111111; font-size: 0.72rem; text-align: center; }

.application-page ::selection { color: #ffffff; background: #111111; }

@media (max-width: 991px) {
  .application-header { position: relative; }
  .application-progress { gap: 0.5rem; }
  .progress-step { min-height: 58px; padding: 0.65rem; }
  .progress-copy small { display: none; }
  .progress-copy strong { font-size: 0.72rem; }
  .application-grid, .interview-grid { grid-template-columns: minmax(0, 1fr); }
  .field-full { grid-column: auto; }
  .stage-intro-split { align-items: flex-start; flex-direction: column; }
  .assessment-meta { width: 100%; }
  .question-card { grid-template-columns: 160px 1fr; }
  .interview-card { grid-template-columns: 120px 22px 180px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  html, .application-page { width: 100vw; max-width: 100vw; overflow-x: hidden; }
  .application-header { padding: 1.1rem 1rem 1.25rem; }
  .application-header-bar { margin-bottom: 0.9rem; }
  .application-brand { font-size: 1.05rem; }
  .application-cohort { display: none; }
  .application-cancel { padding: 0.5rem 0.75rem; font-size: 0.61rem; }
  .application-progress { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.25rem; }
  .progress-step { min-width: 78%; scroll-snap-align: start; }
  .application-main { width: calc(100vw - 2rem); max-width: calc(100vw - 2rem); min-width: 0; margin: 0 1rem; padding: 2.7rem 0 3.5rem; }
  .application-panel, .stage-intro, .application-grid, .field-group { width: 100%; max-width: 100%; min-width: 0; }
  .stage-intro { margin-bottom: 2rem; }
  .stage-intro h1 { max-width: 100%; font-size: clamp(1.6rem, 7.5vw, 1.9rem); overflow-wrap: anywhere; }
  .application-grid { gap: 1.25rem; }
  .field-group > label:first-child { overflow-wrap: anywhere; }
  .field-group select { min-width: 0; font-size: 0.82rem; }
  .file-drop { min-height: 150px; }
  .form-footer, .application-footer { align-items: stretch; flex-direction: column; }
  .form-footer .application-primary, .form-footer .application-secondary { width: 100%; }
  .form-footer p { order: 2; }
  .question-card { grid-template-columns: 1fr; }
  .question-category { padding: 1rem 1.2rem; }
  .question-category strong { font-size: 1.1rem; }
  .interview-card { padding: 1rem 0; grid-template-columns: 22px minmax(0, 1fr); gap: 0.5rem 0.65rem; }
  .interview-card > span { grid-column: 1 / -1; }
  .interview-card > i { grid-column: 1; }
  .interview-card h2 { grid-column: 2; }
  .interview-card p { grid-column: 1 / -1; }
  .stage-three-note { align-items: flex-start; flex-direction: column; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .application-panel { animation: none; }
  .application-page * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
