:root {
  --orange: #fd5516;
  --orange-dark: #d9410c;
  --orange-pale: #fff0ea;
  --green: #40ac1b;
  --green-dark: #27810b;
  --green-pale: #eaf7e6;
  --ink: #171a1f;
  --gray: #747a82;
  --line: #dfe2dc;
  --off-white: #f7f8f5;
  --white: #ffffff;
  --danger: #b42318;
  --danger-pale: #fff2f0;
  --shadow: 0 22px 55px rgba(23, 26, 31, 0.1);
  --radius-lg: 24px;
  --radius-md: 15px;
  --radius-sm: 10px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--off-white);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--off-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.brand-strip {
  display: grid;
  grid-template-columns: minmax(72px, 36%) 1fr;
  height: 7px;
  background: var(--orange);
}

.brand-strip span:last-child {
  background: var(--green);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand img {
  display: block;
  width: clamp(148px, 17vw, 208px);
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.api-health {
  min-height: 36px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.health-dot,
.preview-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a8adb3;
  box-shadow: 0 0 0 4px rgba(116, 122, 130, 0.12);
}

.api-health.is-ok {
  color: var(--green-dark);
  border-color: rgba(64, 172, 27, 0.28);
  background: var(--green-pale);
}

.api-health.is-ok .health-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(64, 172, 27, 0.13);
}

.api-health.is-error {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.24);
  background: var(--danger-pale);
}

.api-health.is-error .health-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.language-switch {
  padding: 3px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.language-switch button {
  min-width: 43px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--orange);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: start;
  gap: clamp(38px, 7vw, 90px);
}

.hero {
  padding: clamp(22px, 4vw, 48px) 0 0;
  position: sticky;
  top: 0;
}

.preview-badge {
  width: fit-content;
  min-height: 32px;
  margin-bottom: 24px;
  padding: 6px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid rgba(64, 172, 27, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.preview-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(64, 172, 27, 0.12);
}

.eyebrow,
.form-kicker {
  margin: 0 0 9px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 590px;
  margin: 25px 0 0;
  color: #555b63;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.58;
}

.journey {
  max-width: 570px;
  margin-top: 38px;
  display: grid;
  gap: 0;
}

.journey article {
  min-height: 84px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  position: relative;
}

.journey article:not(:last-child)::after {
  content: "";
  width: 1px;
  position: absolute;
  top: 54px;
  bottom: -6px;
  left: 22px;
  background: var(--line);
}

.journey article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
}

.journey h2 {
  margin: 1px 0 3px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.journey p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}

.security-note {
  max-width: 570px;
  margin-top: 27px;
  padding: 15px 17px;
  display: flex;
  gap: 13px;
  color: #4f555c;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: 13px;
}

.security-note svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: var(--green);
}

.security-note strong,
.security-note span {
  display: block;
}

.security-note strong {
  margin-bottom: 2px;
  color: var(--ink);
}

.form-card {
  min-height: 650px;
  padding: clamp(25px, 3.4vw, 40px);
  background: var(--white);
  border: 1px solid rgba(23, 26, 31, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-card-head {
  min-height: 66px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.form-card-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.time-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--gray);
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stepper {
  margin: 30px 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.progress-line {
  height: 3px;
  position: absolute;
  top: 18px;
  left: 12.5%;
  right: 12.5%;
  z-index: 0;
  overflow: hidden;
  background: var(--line);
}

.progress-line span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--green);
  transition: width 220ms ease;
}

.progress-line span[data-progress="2"] { width: 33.333%; }
.progress-line span[data-progress="3"] { width: 66.666%; }
.progress-line span[data-progress="4"] { width: 100%; }

.step {
  min-width: 0;
  padding: 0 4px;
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.step:disabled {
  cursor: default;
}

.step > span {
  width: 38px;
  height: 38px;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  color: var(--gray);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.step small {
  display: block;
  overflow: hidden;
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step.is-active > span {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange);
}

.step.is-active small {
  color: var(--ink);
}

.step.is-complete > span {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.resume-notice {
  margin: -8px 0 26px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--green-pale);
  border: 1px solid rgba(64, 172, 27, 0.24);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.resume-notice:not([hidden]) {
  display: flex;
}

.resume-notice strong,
.resume-notice span {
  display: block;
}

.resume-notice span {
  color: #52624e;
}

.text-button {
  padding: 6px 0;
  flex: 0 0 auto;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-step[hidden],
.success-panel[hidden],
.form-error[hidden],
.button[hidden],
.resume-notice[hidden] {
  display: none !important;
}

.form-step.is-active {
  animation: form-in 180ms ease-out;
}

@keyframes form-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  margin-bottom: 24px;
}

.step-heading > span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.step-heading h3 {
  margin: 5px 0 5px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.step-heading p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
}

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

.field {
  margin-bottom: 18px;
  display: block;
}

.field > span:first-child {
  margin-bottom: 7px;
  display: block;
  color: #3e434a;
  font-size: 13px;
  font-weight: 750;
}

.field b {
  margin-left: 3px;
  color: var(--orange-dark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdd1ca;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 102px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a0a5aa;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #aeb3aa;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(253, 85, 22, 0.12);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-pale);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.field small {
  margin-top: 5px;
  display: block;
  color: var(--gray);
  font-size: 11px;
}

.form-subsection {
  min-width: 0;
  margin: 2px 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.form-subsection > legend {
  padding: 0 7px;
  color: #353a40;
  font-size: 14px;
  font-weight: 850;
}

.form-subsection > p,
.profile-hours-block > p {
  margin: 0 0 14px;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.55;
}

.kitchen-hours-editor {
  display: grid;
  gap: 9px;
}

.hours-day {
  padding: 12px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.hours-day-header {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hours-day-header strong {
  font-size: 12px;
}

.hours-closed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gray);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.hours-closed-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

.hours-intervals {
  display: grid;
  gap: 8px;
}

.hours-interval {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.hours-interval label > span {
  margin-bottom: 4px;
  display: block;
  color: var(--gray);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.hours-interval select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdd1ca;
  border-radius: 9px;
  outline: none;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.hours-interval select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(253, 85, 22, 0.1);
}

.hours-interval select[aria-invalid="true"],
.hours-closed-toggle input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.hours-remove,
.hours-add {
  color: var(--green-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hours-remove {
  min-height: 42px;
  padding: 8px 3px;
  color: var(--danger);
}

.hours-add {
  margin-top: 8px;
  padding: 3px 0;
}

.hours-add::before {
  content: "+ ";
}

.hours-add:disabled,
.hours-remove:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hours-day.is-closed .hours-intervals {
  opacity: 0.45;
}

.profile-hours-block {
  margin: 0 0 17px;
  padding: 14px;
  background: #fafbf8;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.profile-hours-block > strong {
  margin-bottom: 3px;
  display: block;
  font-size: 11px;
}

.profile-hours-block .hours-day {
  padding: 9px 10px;
}

.profile-hours-block .hours-interval input {
  min-height: 37px;
  font-size: 11px;
}

.review-card {
  margin-bottom: 20px;
  display: grid;
  gap: 10px;
}

.review-group {
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 14px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.review-group h4 {
  margin: 0;
  font-size: 13px;
}

.review-group button {
  padding: 0;
  color: var(--orange-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-group dl {
  margin: 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4px 12px;
  font-size: 12px;
}

.review-group dt {
  color: var(--gray);
}

.review-group dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #34383e;
  font-weight: 700;
  text-align: right;
  white-space: pre-line;
}

.confirm-row {
  margin: 4px 0 18px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.confirm-row:has(input:focus-visible) {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(253, 85, 22, 0.1);
}

.confirm-row:has(input[aria-invalid="true"]) {
  border-color: var(--danger);
  background: var(--danger-pale);
}

.confirm-row input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.confirm-row strong,
.confirm-row small {
  display: block;
}

.confirm-row strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.confirm-row small {
  color: var(--gray);
  font-size: 12px;
}

.terms-note {
  padding: 14px 16px;
  background: var(--orange-pale);
  border-left: 4px solid var(--orange);
  border-radius: 4px 12px 12px 4px;
  font-size: 12px;
}

.terms-note strong {
  display: block;
  margin-bottom: 3px;
}

.terms-note p {
  margin: 0;
  color: #5f4d46;
}

.form-error {
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--danger);
  background: var(--danger-pale);
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: pre-line;
}

.form-actions {
  margin-top: 27px;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.button {
  min-height: 50px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:focus-visible,
.language-switch button:focus-visible,
.step:focus-visible,
.text-button:focus-visible,
.review-group button:focus-visible {
  outline: 3px solid rgba(253, 85, 22, 0.35);
  outline-offset: 2px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button-primary {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 8px 18px rgba(253, 85, 22, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: #ff6328;
  box-shadow: 0 11px 24px rgba(253, 85, 22, 0.25);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: #cdd1ca;
}

.button-loader {
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(23, 26, 31, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.button.is-loading .button-loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-panel {
  padding: 28px 0 6px;
  text-align: center;
  animation: form-in 220ms ease-out;
}

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 21px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(64, 172, 27, 0.22);
  font-size: 34px;
  font-weight: 800;
}

.success-panel h2 {
  margin: 4px auto 10px;
  max-width: 470px;
  font-size: 29px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.success-panel > p:not(.form-kicker):not(.status-message) {
  max-width: 500px;
  margin: 0 auto;
  color: var(--gray);
}

.success-panel .confirmation-email {
  margin-top: 16px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--green-pale);
  border: 1px solid rgba(64, 172, 27, 0.2);
  border-radius: 11px;
  font-size: 13px;
}

.confirmation-email strong {
  margin-left: 4px;
  overflow-wrap: anywhere;
}

.application-receipt {
  margin: 30px auto 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 12px;
  text-align: left;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.application-receipt div {
  min-width: 0;
}

.application-receipt span,
.application-receipt strong {
  display: block;
}

.application-receipt span {
  margin-bottom: 4px;
  color: var(--gray);
  font-size: 11px;
}

.application-receipt strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  width: fit-content;
  padding: 5px 9px;
  color: var(--green-dark);
  background: var(--green-pale);
  border-radius: 999px;
}

.status-badge.is-warning {
  color: #9a5a00;
  background: #fff5d7;
}

.status-badge.is-danger {
  color: var(--danger);
  background: var(--danger-pale);
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--gray);
  font-size: 12px;
}

/* Partner onboarding portal */

.page-shell.has-portal {
  display: block;
}

.page-shell.has-portal .hero {
  display: none;
}

.form-card.is-portal {
  width: 100%;
  max-width: none;
  padding: clamp(24px, 3.5vw, 44px);
}

.partner-portal[hidden],
.portal-locked-message[hidden],
.required-documents[hidden],
.portal-alert[hidden],
.partner-portal form[hidden],
.portal-card[hidden],
.terms-signature-fields[hidden],
.terms-confirmations[hidden],
.revision-chip[hidden],
.commercial-empty[hidden] {
  display: none !important;
}

.partner-portal {
  animation: form-in 180ms ease-out;
}

.portal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.portal-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.portal-heading > div:first-child > p:last-child {
  max-width: 650px;
  margin: 11px 0 0;
  color: var(--gray);
}

.portal-status-box {
  min-width: 205px;
  padding: 15px 17px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.portal-status-box > span,
.portal-status-box > strong,
.portal-status-box > small {
  display: block;
}

.portal-status-box > span {
  margin-bottom: 6px;
  color: var(--gray);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-status-box > small {
  margin-top: 7px;
  color: var(--gray);
  font-size: 10px;
}

.portal-reference {
  margin: 25px 0 22px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.portal-reference > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gray);
  font-size: 11px;
}

.portal-reference strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
}

.text-button {
  padding: 0;
  color: var(--orange-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.portal-alert {
  margin-bottom: 20px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #6a4d00;
  background: #fff7d9;
  border: 1px solid #ebd174;
  border-radius: 13px;
}

.portal-alert > span {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #a66d00;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.portal-alert strong,
.portal-alert p {
  display: block;
}

.portal-alert p {
  margin: 2px 0 0;
  font-size: 12px;
  white-space: pre-wrap;
}

.portal-workflow {
  margin: 0 0 25px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

.portal-workflow li {
  min-width: 0;
  min-height: 82px;
  padding: 15px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.portal-workflow li:last-child {
  border-right: 0;
}

.portal-workflow li > span {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--gray);
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.portal-workflow strong,
.portal-workflow small {
  display: block;
}

.portal-workflow strong {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
}

.portal-workflow small {
  margin-top: 3px;
  color: var(--gray);
  font-size: 8px;
  line-height: 1.3;
}

.portal-workflow li.is-done > span {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.portal-workflow li.is-current {
  background: var(--orange-pale);
}

.portal-workflow li.is-current > span {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 18px;
}

.portal-main-column,
.portal-side-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.portal-side-column {
  position: sticky;
  top: 18px;
}

.portal-card,
.timeline-card,
.portal-help {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.portal-card {
  overflow: hidden;
}

.portal-card-header {
  padding: 17px 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
}

.portal-card-header > div {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.section-number {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--orange-dark);
  background: var(--orange-pale);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
}

.portal-card-header h3,
.portal-card-header p {
  margin: 0;
}

.portal-card-header h3 {
  font-size: 15px;
}

.portal-card-header p {
  max-width: 570px;
  margin-top: 3px;
  color: var(--gray);
  font-size: 10px;
}

.profile-state,
.readonly-chip {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
}

.profile-state-partner_submitted,
.profile-state-under_review {
  color: #155899;
  background: #edf6ff;
  border-color: #bcd7f1;
}

.profile-state-completed {
  color: var(--green-dark);
  background: var(--green-pale);
  border-color: #bee0b4;
}

.profile-state-changes_requested {
  color: #8a5700;
  background: #fff7d9;
  border-color: #ebd174;
}

.portal-locked-message {
  margin: 19px;
  padding: 18px;
  color: #4d535a;
  background: var(--off-white);
  border: 1px dashed #cbd0c8;
  border-radius: 12px;
}

.portal-locked-message strong,
.portal-locked-message p {
  display: block;
}

.portal-locked-message p {
  margin: 4px 0 0;
  font-size: 12px;
}

.correction-request-summary {
  margin: 18px 19px 0;
  padding: 15px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  color: #654900;
  background: #fff8df;
  border: 1px solid #e8cb68;
  border-radius: 12px;
}

.correction-request-summary > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #a16b00;
  border-radius: 9px;
  font-weight: 900;
}

.correction-request-summary strong,
.correction-request-summary p,
.correction-request-summary small {
  display: block;
}

.correction-request-summary p {
  margin: 4px 0;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.correction-request-summary small {
  color: #7a6225;
  font-size: 9px;
}

.correction-field-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.correction-field-links button {
  padding: 6px 8px;
  color: #684900;
  background: #fff;
  border: 1px solid #dbc268;
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.correction-field-links button.is-addressed {
  color: var(--green-dark);
  border-color: #afd2a5;
}

.profile-section {
  margin: 0;
  padding: 22px 19px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.profile-section legend {
  width: 100%;
  padding: 0 0 15px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  font-weight: 850;
}

.profile-section legend small {
  color: var(--gray);
  font-size: 8px;
  font-weight: 650;
}

.profile-section .field {
  margin-bottom: 14px;
}

.profile-section .field > span:first-child {
  font-size: 11px;
}

.profile-section .field input,
.profile-section .field textarea,
.profile-section .field select {
  min-height: 45px;
  padding: 10px 12px;
  font-size: 12px;
}

.profile-section .field textarea {
  min-height: 84px;
}

.profile-section input:disabled,
.profile-section textarea:disabled,
.profile-section select:disabled {
  color: #4e5359;
  background: #f4f5f2;
  cursor: not-allowed;
  opacity: 1;
}

.is-correction-requested {
  position: relative;
  padding: 10px;
  background: #fffaf0;
  border: 2px solid #d69b1c;
  border-radius: 11px;
  scroll-margin-top: 18px;
}

.is-correction-requested.is-correction-addressed {
  background: #f2faef;
  border-color: #8dbe7d;
}

.correction-field-note {
  margin-top: 8px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  color: #684900;
  background: #fff2bf;
  border-radius: 8px;
  font-size: 9px;
}

.is-correction-addressed .correction-field-note {
  color: var(--green-dark);
  background: #dff1d9;
}

.correction-field-note > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #a16b00;
  border-radius: 50%;
  font-weight: 900;
}

.is-correction-addressed .correction-field-note > span {
  background: var(--green);
}

.correction-field-note p {
  margin: 2px 0 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.correction-responses-section > p {
  margin: 0 0 13px;
  color: var(--gray);
  font-size: 10px;
  line-height: 1.5;
}

#correctionResponses {
  display: grid;
  gap: 10px;
}

.correction-response-card {
  padding: 13px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.correction-response-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.correction-response-card header span,
.correction-response-card header small {
  color: var(--gray);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.correction-response-card > strong {
  margin-top: 5px;
  display: block;
  font-size: 12px;
}

.correction-response-card > p,
.correction-response-card > label {
  margin: 6px 0 0;
  display: block;
  font-size: 10px;
  line-height: 1.5;
}

.correction-response-card > label span {
  margin-bottom: 5px;
  display: block;
  font-weight: 800;
}

.correction-response-card textarea {
  width: 100%;
  min-height: 82px;
  padding: 10px 11px;
  border: 1px solid #cdd1ca;
  border-radius: 9px;
  resize: vertical;
  font: inherit;
}

.correction-upload-state {
  color: #7f5800;
}

.correction-upload-state.is-clean {
  color: var(--green-dark);
  font-weight: 800;
}

.correction-submit-status {
  margin: 14px 19px 0;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 10px;
}

.correction-submit-status.is-blocked {
  color: #745200;
  background: #fff8df;
  border: 1px solid #e8cb68;
}

.correction-submit-status.is-ready {
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid #afd2a5;
}

.field-wide {
  grid-column: 1 / -1;
}

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

.feature-grid label {
  min-height: 43px;
  padding: 10px 11px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.feature-grid input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.profile-grid-spaced {
  margin-top: 16px;
}

.terms-acceptance-summary {
  margin: 0 0 17px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  color: #46525a;
  background: #f4f7f8;
  border: 1px solid #d5dfe3;
  border-radius: 11px;
}

.terms-acceptance-summary > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #315968;
  background: #e5f0f4;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
}

.terms-acceptance-summary strong,
.terms-acceptance-summary p,
.terms-acceptance-summary code {
  display: block;
}

.terms-acceptance-summary strong {
  font-size: 12px;
}

.terms-acceptance-summary p {
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.terms-acceptance-summary code {
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
}

.terms-acceptance-summary.is-warning {
  color: #6a4d00;
  background: #fff8df;
  border-color: #ebd174;
}

.terms-acceptance-summary.is-warning > span {
  color: #7a5400;
  background: #ffedaa;
}

.terms-acceptance-summary.is-accepted {
  color: var(--green-dark);
  background: var(--green-pale);
  border-color: #bee0b4;
}

.terms-acceptance-summary.is-accepted > span {
  color: var(--green-dark);
  background: #d5efcc;
}

.terms-signature-fields {
  margin-top: 2px;
}

.terms-confirmations {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.terms-confirmations .confirm-row:last-child {
  margin-bottom: 8px;
}

.terms-review-link {
  width: fit-content;
  margin: 0 0 12px auto;
  display: block;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-form-error {
  margin: 17px 19px 0;
  padding: 12px 14px;
  color: var(--danger);
  background: var(--danger-pale);
  border: 1px solid rgba(180, 35, 24, 0.23);
  border-radius: 10px;
  font-size: 11px;
  white-space: pre-line;
}

.portal-form-actions {
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  background: #fbfcfa;
}

.save-state {
  min-width: 0;
  margin-right: auto;
  color: var(--gray);
  font-size: 9px;
}

.commercial-grid {
  margin: 0;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) 1.2fr;
  gap: 0;
}

.commercial-grid dt,
.commercial-grid dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #eceeea;
  font-size: 10px;
}

.commercial-grid dt {
  padding-right: 14px;
  color: var(--gray);
}

.commercial-grid dd {
  overflow-wrap: anywhere;
  font-weight: 750;
  text-align: right;
  white-space: pre-wrap;
}

.commercial-grid > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.commercial-header-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.revision-chip {
  padding: 5px 8px;
  color: #6a4d00;
  background: #fff7d9;
  border: 1px solid #ebd174;
  border-radius: 9px;
  font-size: 8px;
  font-weight: 850;
}

.commercial-empty {
  margin: 0;
  padding: 18px 19px;
  color: var(--gray);
  font-size: 10px;
}

.required-documents {
  margin: 17px 19px 0;
  padding: 13px 15px;
  color: #6a4d00;
  background: #fff7d9;
  border: 1px solid #ebd174;
  border-radius: 11px;
  font-size: 10px;
}

.required-documents strong {
  display: block;
  margin-bottom: 5px;
}

.required-documents ul {
  margin: 0;
  padding-left: 17px;
}

.document-type-field {
  margin: 17px 19px -6px;
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #4a5056;
  font-size: 10px;
  font-weight: 750;
}

.document-type-field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdd1ca;
  border-radius: 9px;
  outline: 0;
  font-size: 11px;
}

.document-type-field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(253, 85, 22, 0.1);
}

.document-type-field select:disabled {
  color: var(--gray);
  background: var(--off-white);
}

.document-list {
  margin: 17px 19px 0;
  display: grid;
  gap: 8px;
}

.document-list article {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.document-list article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--orange-dark);
  background: var(--orange-pale);
  border-radius: 9px;
  font-size: 8px;
  font-weight: 900;
}

.document-list strong,
.document-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-list strong {
  font-size: 10px;
}

.document-list small {
  margin-top: 2px;
  color: var(--gray);
  font-size: 8px;
}

.document-list article > div:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.document-remove {
  color: var(--danger);
}

.document-empty {
  margin: 0;
  padding: 11px 13px;
  color: var(--gray);
  background: var(--off-white);
  border-radius: 9px;
  font-size: 9px;
}

.upload-placeholder {
  margin: 17px 19px;
  padding: 18px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--off-white);
  border: 1px dashed #bfc5bc;
  border-radius: 12px;
}

.upload-placeholder.is-disabled {
  opacity: 0.64;
}

.upload-placeholder > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--orange-dark);
  background: var(--orange-pale);
  border-radius: 10px;
  font-weight: 900;
}

.upload-placeholder strong,
.upload-placeholder small {
  display: block;
}

.upload-placeholder strong {
  font-size: 11px;
}

.upload-placeholder small {
  color: var(--gray);
  font-size: 9px;
}

.upload-status {
  min-height: 17px;
  margin: -8px 19px 17px;
  color: #7a5400;
  font-size: 9px;
}

.timeline-card {
  overflow: hidden;
}

.timeline-card header {
  padding: 17px;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
}

.timeline-card h3 {
  margin: 0;
  font-size: 15px;
}

.event-timeline {
  margin: 0;
  padding: 17px;
  list-style: none;
}

.event-timeline li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  position: relative;
}

.event-timeline li:not(:last-child) {
  padding-bottom: 18px;
}

.event-timeline li:not(:last-child)::after {
  content: "";
  width: 1px;
  position: absolute;
  top: 10px;
  bottom: -1px;
  left: 4px;
  background: var(--line);
}

.event-timeline li > span {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  position: relative;
  z-index: 1;
  background: var(--orange);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--orange);
}

.event-timeline strong,
.event-timeline time {
  display: block;
}

.event-timeline strong {
  font-size: 10px;
}

.event-timeline time {
  margin-top: 2px;
  color: var(--gray);
  font-size: 8px;
}

.event-timeline p {
  margin: 6px 0 0;
  padding: 7px 8px;
  color: #5f4b14;
  background: #fff8df;
  border-radius: 7px;
  font-size: 8px;
  white-space: pre-wrap;
}

.event-timeline .is-empty {
  display: block;
  color: var(--gray);
  font-size: 10px;
}

.portal-help {
  padding: 17px;
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.portal-help strong {
  font-size: 12px;
}

.portal-help p {
  margin: 5px 0 10px;
  color: #b9bec5;
  font-size: 9px;
}

.portal-help a {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
}

/* Approved partner menu-material handoff */

.menu-intake-card {
  border-color: rgba(253, 85, 22, 0.38);
  box-shadow: 0 16px 40px rgba(217, 65, 12, 0.1);
}

.menu-intake-header {
  background: linear-gradient(135deg, #fff8f4 0%, #fffdfb 58%, #f1faed 100%);
}

.menu-intake-header > div {
  align-items: center;
}

.menu-intake-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(217, 65, 12, 0.23);
  font-size: 19px;
  font-weight: 900;
}

.menu-intake-header .form-kicker {
  margin-bottom: 3px;
  color: var(--orange-dark);
  font-size: 8px;
}

.menu-intake-state.is-submitted,
.menu-intake-state.is-received,
.menu-intake-state.is-building {
  color: var(--green-dark);
  background: var(--green-pale);
  border-color: #bee0b4;
}

.menu-intake-state.is-requested {
  color: #8a5700;
  background: #fff7d9;
  border-color: #ebd174;
}

.menu-intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  align-items: stretch;
}

.menu-intake-main {
  min-width: 0;
  padding: 19px;
}

.menu-materials-checklist {
  padding: 15px 16px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.menu-materials-checklist strong {
  display: block;
  font-size: 11px;
}

.menu-materials-checklist ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #545a61;
  font-size: 10px;
}

.menu-materials-checklist li + li {
  margin-top: 4px;
}

.menu-intake-form {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.menu-intake-form .field {
  margin: 0;
}

.menu-intake-replace-note {
  margin: -2px 0 0;
  padding: 10px 12px;
  color: #6a4d00;
  background: #fff7d9;
  border: 1px solid #ebd174;
  border-radius: 9px;
  font-size: 10px;
}

.menu-intake-replace-note[hidden],
.menu-intake-locked[hidden],
.menu-intake-form[hidden],
#menuIntakeError[hidden] {
  display: none !important;
}

.menu-intake-main > .portal-form-error {
  margin: 14px 0 0;
}

.menu-intake-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-intake-actions .save-state {
  margin-right: 0;
}

.menu-intake-locked {
  margin: 17px 0 0;
  color: #275d17;
  background: var(--green-pale);
  border-color: #bee0b4;
  border-style: solid;
}

.menu-intake-progress {
  padding: 19px 17px;
  background: #fbfcfa;
  border-left: 1px solid var(--line);
}

.menu-intake-progress > strong {
  display: block;
  font-size: 11px;
}

.menu-intake-progress ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.menu-intake-progress li {
  position: relative;
  min-height: 53px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
}

.menu-intake-progress li:not(:last-child)::after {
  content: "";
  width: 1px;
  position: absolute;
  top: 24px;
  bottom: 2px;
  left: 12px;
  background: var(--line);
}

.menu-intake-progress li > span {
  width: 25px;
  height: 25px;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.menu-intake-progress li.is-done > span {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.menu-intake-progress li.is-current > div strong {
  color: var(--orange-dark);
}

.menu-intake-progress li strong,
.menu-intake-progress li small {
  display: block;
}

.menu-intake-progress li strong {
  font-size: 10px;
  line-height: 1.3;
}

.menu-intake-progress li small {
  margin-top: 2px;
  color: var(--gray);
  font-size: 8px;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--gray);
  font-size: 11px;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    padding-top: 15px;
    position: static;
  }

  .hero h1,
  .hero-copy,
  .journey,
  .security-note {
    max-width: 760px;
  }

  .form-card {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }

  .page-shell.has-portal .form-card {
    max-width: none;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .menu-intake-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .portal-side-column {
    position: static;
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .page-shell,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-top: 18px;
    align-items: flex-start;
  }

  .brand img {
    width: 138px;
  }

  .header-actions {
    gap: 8px;
  }

  .api-health {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .api-health > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .language-switch button {
    min-width: 38px;
  }

  .page-shell {
    padding-top: 8px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .journey,
  .security-note {
    display: none;
  }

  .hero-copy {
    font-size: 16px;
  }

  .form-card {
    min-height: 600px;
    padding: 24px 18px;
    border-radius: 19px;
  }

  .form-card.is-portal {
    padding: 20px 14px;
  }

  .portal-heading,
  .portal-reference {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-status-box {
    min-width: 0;
  }

  .portal-workflow {
    grid-template-columns: 1fr;
  }

  .portal-workflow li {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portal-workflow li:last-child {
    border-bottom: 0;
  }

  .portal-side-column {
    grid-template-columns: 1fr;
  }

  .portal-card-header,
  .portal-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-card-header > .profile-state,
  .portal-card-header > .readonly-chip {
    width: fit-content;
  }

  .menu-intake-layout {
    grid-template-columns: 1fr;
  }

  .menu-intake-progress {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .menu-intake-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-intake-actions .button {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .commercial-grid {
    grid-template-columns: 1fr;
  }

  .commercial-grid dt {
    padding-bottom: 1px;
    border-bottom: 0;
  }

  .commercial-grid dd {
    padding-top: 1px;
    text-align: left;
  }

  .upload-placeholder {
    grid-template-columns: 38px 1fr;
  }

  .upload-placeholder .button {
    grid-column: 1 / -1;
  }

  .document-type-field {
    grid-template-columns: 1fr;
  }

  .document-list article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .document-list article > div:last-child {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .form-card-head {
    min-height: 60px;
  }

  .time-chip {
    display: none;
  }

  .stepper {
    margin: 26px -4px 28px;
  }

  .step small {
    font-size: 10px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-subsection {
    padding: 13px 11px;
  }

  .hours-day {
    padding: 10px;
  }

  .hours-interval {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hours-remove {
    min-height: auto;
    padding: 2px 0;
    grid-column: 1 / -1;
    justify-self: end;
  }

  .review-group dl {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .review-group dd {
    margin-bottom: 7px;
    text-align: left;
  }

  .form-actions {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .form-actions .button-primary {
    width: 100%;
  }

  .form-actions .button-primary:first-child:last-child {
    grid-column: 1 / -1;
  }

  .application-receipt {
    grid-template-columns: 1fr;
  }

  .success-actions {
    display: grid;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
