.ds-group-preflight {
  height: auto !important;
  max-width: 1400px !important;
  padding: 52px 48px !important;
  border-top: 1px solid #b8c5c0 !important;
  border-bottom: 1px solid #b8c5c0 !important;
  border-radius: 0 !important;
  background: #f4f7f6 !important;
  color: #151a18 !important;
}

.ds-group-preflight *,
.ds-group-preflight *::before,
.ds-group-preflight *::after { box-sizing: border-box; }

body.ds-group-preflight-active .ds-reward-fab,
body.ds-group-preflight-active .support-fab {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ds-group-preflight-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 56px;
  align-items: end;
}

.ds-group-preflight-eyebrow {
  margin: 0 0 12px;
  color: #087a63;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
}

.ds-group-preflight-heading h2 {
  margin: 0;
  color: #151a18;
  font-size: 42px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ds-group-preflight-heading > p {
  margin: 0;
  color: #59645f;
  font-size: 16px;
  line-height: 1.65;
}

.ds-group-preflight-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid #b8c5c0;
  border-bottom: 1px solid #b8c5c0;
}

.ds-group-preflight-input {
  min-width: 0;
  padding: 28px 28px 28px 0;
}

.ds-group-preflight-input + .ds-group-preflight-input {
  padding-right: 0;
  padding-left: 28px;
  border-left: 1px solid #cbd6d2;
}

.ds-group-preflight-input-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.ds-group-preflight-input-heading h3 {
  margin: 0;
  color: #151a18;
  font-size: 20px;
  line-height: 1.3;
}

.ds-group-preflight-input-heading p {
  margin: 7px 0 0;
  color: #68726e;
  font-size: 13px;
  line-height: 1.5;
}

.ds-group-preflight-picker {
  position: relative;
  display: inline-flex;
  min-width: 142px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #151a18;
  border-radius: 6px;
  background: #151a18;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.ds-group-preflight-picker:focus-within { outline: 3px solid rgba(16, 163, 127, .3); outline-offset: 3px; }
.ds-group-preflight-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.ds-group-preflight-files {
  display: grid;
  gap: 6px;
  min-height: 88px;
  max-height: 156px;
  margin: 18px 0 0;
  padding: 0 8px 0 0;
  overflow: auto;
  list-style: none;
  scrollbar-color: #9caaa5 transparent;
  scrollbar-width: thin;
}

.ds-group-preflight-files li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border-left: 3px solid #0aa783;
  background: #e8f2ef;
  color: #26302c;
  font-size: 12px;
}

.ds-group-preflight-files li[data-state="warn"] { border-left-color: #b42c5a; background: #fff0f4; }
.ds-group-preflight-files li[data-empty="true"] { display: flex; border-left-color: #aeb9b5; background: #e9eeec; color: #6c7672; }
.ds-group-preflight-files span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-group-preflight-files small { color: #65706b; font-size: 11px; white-space: nowrap; }

.ds-group-preflight-accepted,
.ds-group-preflight-local {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.ds-group-preflight-accepted { color: #68726e; }
.ds-group-preflight-local { color: #087a63; font-weight: 800; }

.ds-group-preflight-count {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #cbd6d2;
}

.ds-group-preflight-count h3 { margin: 0; color: #151a18; font-size: 18px; line-height: 1.35; }
.ds-group-preflight-count p { margin: 6px 0 0; color: #606a66; font-size: 13px; line-height: 1.55; }
.ds-group-preflight-stepper { display: grid; grid-template-columns: 44px 62px 44px; gap: 8px; align-items: center; }

.ds-group-preflight-stepper button,
.ds-group-preflight-stepper input {
  width: 100%;
  height: 44px;
  border: 1px solid #aeb9b5;
  border-radius: 6px;
  background: #fff;
  color: #151a18;
  font: inherit;
  font-weight: 850;
  text-align: center;
}

.ds-group-preflight-stepper button { font-size: 20px; cursor: pointer; }
.ds-group-preflight-stepper button:disabled { color: #9ca6a2; cursor: default; }
.ds-group-preflight-stepper button:focus-visible,
.ds-group-preflight-stepper input:focus-visible { outline: 3px solid rgba(16, 163, 127, .3); outline-offset: 2px; }

.ds-group-preflight-mapping { padding: 28px 0 8px; border-bottom: 1px solid #b8c5c0; }
.ds-group-preflight-mapping-heading { display: grid; grid-template-columns: minmax(0, .65fr) minmax(280px, 1.35fr); gap: 42px; align-items: end; }
.ds-group-preflight-mapping-heading h3 { margin: 0; color: #151a18; font-size: 24px; line-height: 1.25; }
.ds-group-preflight-mapping-heading p { margin: 0; color: #5f6a65; font-size: 13px; line-height: 1.6; }
.ds-group-preflight-mapping-list { margin-top: 20px; border-top: 1px solid #cbd6d2; }

.ds-group-preflight-mapping-row {
  display: grid;
  grid-template-columns: 96px minmax(180px, .9fr) minmax(220px, 1.1fr) 92px;
  gap: 18px;
  align-items: end;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid #d7dfdc;
}

.ds-group-preflight-mapping-row:last-child { border-bottom: 0; }
.ds-group-preflight-mapping-row > strong { align-self: center; color: #151a18; font-size: 14px; line-height: 1.4; }
.ds-group-preflight-label-field,
.ds-group-preflight-reference-field { display: grid; min-width: 0; gap: 6px; }
.ds-group-preflight-label-field > span,
.ds-group-preflight-reference-field > span { color: #68726e; font-size: 11px; font-weight: 850; text-transform: uppercase; }

.ds-group-preflight-label-field input,
.ds-group-preflight-reference-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #aeb9b5;
  border-radius: 6px;
  background: #fff;
  color: #202724;
  font: inherit;
  font-size: 13px;
}

.ds-group-preflight-label-field input:focus,
.ds-group-preflight-reference-field select:focus { outline: 3px solid rgba(16, 163, 127, .25); outline-offset: 1px; border-color: #087a63; }

.ds-group-preflight-row-state {
  align-self: center;
  padding-left: 17px;
  color: #087a63;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.ds-group-preflight-mapping-row[data-state="warning"] .ds-group-preflight-row-state { color: #a92d58; }
.ds-group-preflight-mapping-row[data-state="incomplete"] .ds-group-preflight-row-state { color: #806500; }

.ds-group-preflight-status {
  display: grid;
  grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #d7dfdc;
}

.ds-group-preflight-status strong { font-size: 16px; line-height: 1.4; }
.ds-group-preflight-status p { margin: 0; color: #5b6661; font-size: 14px; line-height: 1.55; }
.ds-group-preflight-status[data-state="ready"] strong { color: #087a63; }
.ds-group-preflight-status[data-state="warning"] strong { color: #a92d58; }
.ds-group-preflight-status[data-state="incomplete"] strong { color: #806500; }

.ds-group-preflight-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ds-group-preflight-actions button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #151a18;
  border-radius: 6px;
  background: #151a18;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.ds-group-preflight-actions button[data-group-clear] { border-color: #aeb9b5; background: #fff; color: #313b37; }
.ds-group-preflight-actions button:disabled { border-color: #cdd5d2; background: #dde3e1; color: #818b87; cursor: default; }
.ds-group-preflight-actions button:focus-visible { outline: 3px solid rgba(16, 163, 127, .3); outline-offset: 2px; }

.ds-group-preflight-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid #b8c5c0;
}

.ds-group-preflight-metric { min-width: 0; padding: 20px; border-left: 1px solid #d7dfdc; }
.ds-group-preflight-metric:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.ds-group-preflight-metric dt { color: #68726e; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.ds-group-preflight-metric dd { margin: 7px 0 0; color: #151a18; font-size: 19px; font-weight: 850; line-height: 1.25; overflow-wrap: anywhere; }
.ds-group-preflight-metric[data-emphasis="true"] dd { color: #a92d58; }

.ds-group-preflight-checks { display: grid; grid-template-columns: minmax(220px, .4fr) minmax(0, 1fr); gap: 34px; padding-top: 24px; }
.ds-group-preflight-checks > p { margin: 0; color: #5b6661; font-size: 13px; line-height: 1.65; }
.ds-group-preflight-checks ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.ds-group-preflight-checks li { position: relative; min-width: 0; padding-left: 22px; color: #4e5954; font-size: 13px; line-height: 1.55; }
.ds-group-preflight-checks li::before { position: absolute; top: .1em; left: 0; color: #087a63; font-size: 13px; font-weight: 900; content: "✓"; }
.ds-group-preflight-checks li[data-state="warning"]::before { color: #a92d58; content: "!"; }
.ds-group-preflight-checks li[data-state="incomplete"]::before { color: #806500; content: "…"; }
.ds-group-preflight-noscript { margin: 20px 0 0; color: #a92d58; font-size: 13px; font-weight: 750; }

@media (max-width: 1023px) {
  .ds-group-preflight { padding: 40px 34px !important; }
  .ds-group-preflight-heading,
  .ds-group-preflight-mapping-heading { grid-template-columns: 1fr; gap: 16px; }
  .ds-group-preflight-input-heading { grid-template-columns: 1fr; }
  .ds-group-preflight-picker { width: 100%; }
  .ds-group-preflight-mapping-row { grid-template-columns: 78px minmax(160px, .9fr) minmax(180px, 1.1fr); }
  .ds-group-preflight-row-state { grid-column: 2 / -1; padding-left: 0; }
  .ds-group-preflight-status { grid-template-columns: 1fr; gap: 12px; }
  .ds-group-preflight-actions { justify-content: flex-start; }
  .ds-group-preflight-checks { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 767px) {
  .ds-group-preflight { padding: 32px 18px 104px !important; }
  .ds-group-preflight-heading h2 { font-size: 30px; }
  .ds-group-preflight-heading > p { font-size: 15px; }
  .ds-group-preflight-inputs { grid-template-columns: 1fr; margin-top: 28px; }
  .ds-group-preflight-input,
  .ds-group-preflight-input + .ds-group-preflight-input { padding: 24px 0; border-left: 0; }
  .ds-group-preflight-input + .ds-group-preflight-input { border-top: 1px solid #cbd6d2; }
  .ds-group-preflight-picker { width: calc(100% - 104px); min-width: 0; margin-right: auto; }
  .ds-group-preflight-files { min-height: 76px; max-height: 138px; }
  .ds-group-preflight-count { grid-template-columns: 1fr; gap: 16px; }
  .ds-group-preflight-stepper { grid-template-columns: 46px 70px 46px; }
  .ds-group-preflight-mapping { padding-top: 24px; }
  .ds-group-preflight-mapping-heading h3 { font-size: 21px; }
  .ds-group-preflight-mapping-row { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .ds-group-preflight-row-state { grid-column: auto; }
  .ds-group-preflight-status { padding: 20px 0; }
  .ds-group-preflight-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 104px); }
  .ds-group-preflight-actions button { min-width: 0; padding: 8px; overflow-wrap: anywhere; }
  .ds-group-preflight-actions button[data-group-clear] { grid-column: 1 / -1; }
  .ds-group-preflight-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-group-preflight-metric { padding: 16px 12px; border-bottom: 1px solid #d7dfdc; }
  .ds-group-preflight-metric:nth-child(4n + 1) { padding-left: 12px; border-left: 1px solid #d7dfdc; }
  .ds-group-preflight-metric:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .ds-group-preflight-metric dd { font-size: 17px; }
  .ds-group-preflight-checks ul { grid-template-columns: 1fr; }
}

@media (max-width: 359px) {
  .ds-group-preflight { padding-right: 14px !important; padding-left: 14px !important; }
  .ds-group-preflight-picker,
  .ds-group-preflight-actions { width: calc(100% - 96px); }
  .ds-group-preflight-stepper { grid-template-columns: 44px 64px 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-group-preflight * { scroll-behavior: auto !important; transition: none !important; }
}
