/* Guided setup shares the dashboard's neutral cards and gold accents. */
.setup-wizard-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-bottom: 28px;
  background: #2b303a;
  border: 1px solid #454c58;
  border-radius: 14px;
}

.setup-wizard-callout > div {
  flex: 1;
  min-width: 0;
}

.setup-wizard-callout h2 {
  margin: 0;
  color: #f5f6f8;
  font-size: 18px;
}

.setup-wizard-callout p {
  margin: 8px 0 0;
  color: #aeb8c8;
  line-height: 1.6;
}

.setup-wizard-mark {
  color: #ffe16b;
  flex: 0 0 32px;
}

.setup-wizard-mark svg {
  width: 32px;
  height: 32px;
}

.setup-wizard {
  --wizard-space: clamp(20px, 3vw, 32px);
  max-width: 1320px;
  margin-inline: auto;
}

.setup-wizard-top-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.setup-wizard-header {
  margin-bottom: 28px;
}

.setup-wizard h1 {
  margin: 0;
  color: #f5f6f8;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -0.7px;
}

.setup-wizard-header p {
  margin: 10px 0 0;
}

.setup-wizard p,
.setup-wizard li {
  color: #aeb8c8;
  font-size: 14px;
  line-height: 1.7;
}

.setup-wizard-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.setup-wizard-progress button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px 8px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #aeb8c8;
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.setup-wizard-progress button[aria-current] {
  color: #ffe16b;
  background: #ffe16b09;
  border-color: #ffe16b40;
}

.setup-wizard-progress button:not(:disabled):hover {
  color: #ffe16b;
}

.setup-wizard-progress button:disabled {
  cursor: default;
  opacity: 0.6;
}

.setup-wizard-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px solid #454c58;
  border-radius: 7px;
  color: inherit;
  font-size: 12px;
}

[aria-current] > .setup-wizard-step-number {
  color: #25282e;
  background: #ffe16b;
  border-color: #ffe16b;
}

.setup-wizard-step-number svg {
  width: 15px;
  height: 15px;
}

.setup-wizard-panel {
  padding: var(--wizard-space);
  background: #252930;
  border: 1px solid #3f4652;
  border-radius: 14px;
}

.setup-wizard-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.setup-wizard h2 {
  margin: 0;
  color: #f5f6f8;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.setup-wizard-intro p {
  margin: 12px 0 0;
}

.setup-wizard-choices {
  display: grid;
  gap: 18px;
}

.setup-wizard-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 16px;
  align-content: start;
  min-width: 0;
  min-height: 200px;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, #303640, #2b303a);
  border: 1px solid #454c58;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.setup-wizard-choice:hover {
  border-color: #8d8259;
}

.setup-wizard-choice:has(input:checked) {
  border-color: #ffe16b;
}

.setup-wizard-choice:focus-within {
  outline: 2px solid #ffe16b;
  outline-offset: 3px;
}

.setup-wizard-choice-art {
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 145px;
  height: 145px;
  object-fit: contain;
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
}

.setup-wizard-choice input[type="checkbox"] {
  grid-column: 2;
  grid-row: 1;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 10px 0 0;
  padding: 0;
  accent-color: #ffe16b;
}

.setup-wizard-choice-copy {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.setup-wizard-choice-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setup-wizard-choice-title img {
  flex: 0 0 38px;
  object-fit: contain;
}

.setup-wizard-choice-copy strong {
  color: #f5f6f8;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.setup-wizard-choice-copy > span:last-child {
  color: #b2bdce;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.setup-wizard-choice .setup-wizard-status {
  grid-column: 1 / -1;
}

.setup-wizard-status {
  color: #aeb8c8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.setup-wizard [data-wizard-count] {
  margin: 24px 0 0;
  font-size: 12px;
}

.setup-wizard-feature-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setup-wizard-step-label {
  display: block;
  margin-bottom: 10px;
  color: #ffe16b;
  font-size: 12px;
  font-weight: 500;
}

.setup-wizard-note {
  max-width: 850px;
  margin: 16px 0 0;
}

.setup-wizard-note:empty,
#wizard-enable-status:empty {
  display: none;
}

.setup-wizard--configure > .setup-wizard-panel {
  padding: 0;
  background: transparent;
  border: 0;
}

.setup-wizard-review {
  display: grid;
  gap: 12px;
}

.setup-wizard-review > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: #2b303a;
  border: 1px solid #454c58;
  border-radius: 10px;
}

.setup-wizard-review-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #f5f6f8;
  font-size: 15px;
  font-weight: 500;
}

.setup-wizard-review-identity img {
  flex: 0 0 40px;
  object-fit: contain;
}

.setup-wizard-review strong {
  color: #b2bdce;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.setup-wizard-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.setup-wizard-actions button,
.setup-wizard-top-actions button {
  min-height: 42px;
  min-width: 100px;
}

@media (max-width: 1000px) {
}

@media (max-width: 650px) {
  .setup-wizard-callout {
    flex-wrap: wrap;
  }

  .setup-wizard-review > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .setup-wizard-choice {
    min-height: 180px;
  }

  .setup-wizard-review > div {
    gap: 16px;
  }

  .setup-wizard-review button {
    justify-self: start;
  }

  .setup-wizard-progress {
    gap: 8px;
  }

  .setup-wizard-progress button {
    gap: 8px;
    padding-right: 10px;
    font-size: 12px;
  }

  .setup-wizard-actions button {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
  }
}

/* One surface for each card keeps controls and guidance visually distinct. */
.setup-wizard--choose > .setup-wizard-panel,
.setup-wizard--review > .setup-wizard-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.setup-wizard-choice {
  min-height: 190px;
  padding: 24px;
  border-color: #424955;
  border-radius: 12px;
  background: linear-gradient(160deg, #2e343e, #2b303a 70%);
  box-shadow: 0 1px 2px #00000014;
}

.setup-wizard-choice:hover {
  border-color: #7b765f;
}

.setup-wizard-choice:has(input:checked) {
  background: linear-gradient(160deg, #34383e, #2b303a 70%);
  border-color: #ddc66b;
}

.setup-wizard-choice-art {
  right: 2px;
  bottom: -8px;
  width: 125px;
  height: 125px;
  opacity: 0.045;
}

.setup-wizard-choice-title {
  gap: 14px;
}

.setup-wizard-review > div {
  padding: 22px 24px;
  border-color: #424955;
  border-radius: 12px;
  background: #2b303a;
}

@media (max-width: 650px) {
  .setup-wizard-choice,
  .setup-wizard-review > div {
    padding: 20px;
  }
}

.setup-wizard {
  --wizard-card-inset: 24px;
}

@media (max-width: 650px) {
  .setup-wizard {
    --wizard-card-inset: 20px;
  }
}

.setup-wizard-choice {
  grid-template-rows: minmax(0, 1fr) auto;
}

.setup-wizard-choice-copy {
  align-content: start;
}

/* Feature selection uses the overview card markup and shared artwork rules. */
.setup-wizard .setup-wizard-choice.banana-feature-card {
  display: flex;
  flex-direction: column;
  align-content: normal;
  gap: 0;
  min-height: 0;
  padding: 0;
  background: #2c323d;
  border: 1px solid #444a56;
  border-radius: 14px;
  box-shadow: 0 6px 20px #00000018;
  cursor: pointer;
}

.setup-wizard .setup-wizard-choice.banana-feature-card:hover {
  background: linear-gradient(145deg, #564e39, #303743 75%);
  border-color: #9a844d;
}

.setup-wizard .setup-wizard-choice.banana-feature-card:has(input:checked) {
  border-color: #ffe16b;
}

.setup-wizard .setup-wizard-choice .banana-feature-copy {
  flex: 1;
  padding: 18px 18px 0;
}

.setup-wizard .setup-wizard-choice .banana-card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.setup-wizard .setup-wizard-choice input[type="checkbox"] {
  flex: 0 0 18px;
  margin: 0;
}

.setup-wizard .setup-wizard-choice .feature-card-identity {
  display: flex;
  margin-bottom: 12px;
}

.setup-wizard .setup-wizard-choice .feature-card-title {
  margin: 0;
  color: #f5f6f8;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.setup-wizard-card-description {
  color: #aeb9cb;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.setup-wizard .setup-wizard-choice .banana-feature-footer {
  display: block;
  padding: 18px;
}

.setup-wizard-card-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
}

.setup-wizard-card-selection svg {
  width: 17px;
  height: 17px;
}

.setup-wizard-choice:has(input:checked) .setup-wizard-card-selection {
  color: #ffe16b;
}

/* A compact introduction and open selection layout around the overview cards. */
.setup-wizard--choose .setup-wizard-top-actions { margin-bottom: 28px; }
.setup-wizard--choose .setup-wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
}
.setup-wizard--choose .setup-wizard-welcome { max-width: 620px; margin: 12px 0 0; font-size: 14px; }
.setup-wizard--choose .setup-wizard-server {
  flex: 0 1 auto;
  margin: 6px 0 0;
  padding-left: 20px;
  border-left: 2px solid #ffe16b;
  font-size: 13px;
}
.setup-wizard .setup-wizard-progress {
  gap: 8px 20px;
  padding: 0 0 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #444a5666;
}
.setup-wizard .setup-wizard-progress button {
  padding: 0;
  min-height: 32px;
  background: transparent;
  border: 0;
}
.setup-wizard .setup-wizard-step-number { border-radius: 50%; }
.setup-wizard-selection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.setup-wizard-selection-heading .setup-wizard-intro { margin: 0; }
.setup-wizard-selection-heading h2 { font-size: 18px; letter-spacing: -0.2px; }
.setup-wizard-selection-heading [data-wizard-count] { margin: 0; color: #aeb8c8; font-size: 12px; }
.setup-wizard--choose .setup-wizard-selection-hint { margin: 24px 0 0; font-size: 12px; }
.setup-wizard--choose .setup-wizard-actions { margin-top: 20px; gap: 12px; }
@media (max-width: 650px) {
  .setup-wizard--choose .setup-wizard-header { flex-direction: column; gap: 18px; }
  .setup-wizard--choose .setup-wizard-server { margin: 0; padding-left: 12px; }
  .setup-wizard-selection-heading { align-items: baseline; gap: 12px; }
  .setup-wizard-selection-heading [data-wizard-count] { text-align: right; }
}

/* Underlined text tabs keep every wizard step visually consistent. */
.setup-wizard .setup-wizard-progress { gap: 8px 24px; padding-bottom: 0; border-bottom: 0; }
.setup-wizard .setup-wizard-progress button {
  min-height: 42px;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #aeb8c8;
}
.setup-wizard .setup-wizard-progress button[aria-current] {
  color: #ffe16b;
  border-bottom-color: #ffe16b;
  background: transparent;
}
.setup-wizard .setup-wizard-progress .setup-wizard-step-number { display: none; }
.setup-wizard .setup-wizard-progress button:not(:disabled):hover { color: #ffe16b; }

/* One spacing rhythm across the feature selection page. */
.setup-wizard--choose { --selection-space: 24px; }
.setup-wizard--choose .setup-wizard-header { margin-bottom: var(--selection-space); gap: var(--selection-space); }
.setup-wizard--choose .setup-wizard-welcome { margin-top: 12px; }
.setup-wizard--choose .setup-wizard-progress { margin: 0 0 var(--selection-space); }
.setup-wizard--choose .setup-wizard-selection-heading { margin: 0 0 var(--selection-space); min-height: 24px; }
.setup-wizard--choose .setup-wizard-card-overview { margin: 0; }
.setup-wizard--choose .setup-wizard-choices { margin: 0; }
.setup-wizard--choose .setup-wizard-selection-hint { margin: var(--selection-space) 0 0; }
.setup-wizard--choose .setup-wizard-actions { margin-top: var(--selection-space); padding: 0; }
@media (max-width: 650px) {
  .setup-wizard--choose { --selection-space: 20px; }
}

/* Keep each review action beside its feature card. */
.setup-wizard-review > .setup-wizard-review-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.setup-wizard-review-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 20px;
  background: #2c323d;
  border: 1px solid #444a56;
  border-radius: 14px;
  box-shadow: 0 6px 20px #00000018;
}
.setup-wizard-review-card strong { flex-shrink: 0; text-align: right; }
.setup-wizard .setup-wizard-review-row > button.ghost-button {
  height: auto;
  margin: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 208px;
  min-height: 48px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 14px;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}
.setup-wizard-review-row > button svg { flex: 0 0 16px; width: 16px; height: 16px; }
@media (max-width: 650px) {
  .setup-wizard-review > .setup-wizard-review-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .setup-wizard .setup-wizard-review-row > button.ghost-button { justify-self: end; min-height: 48px; padding: 12px 16px; }
  .setup-wizard-review-card { padding: 16px; gap: 16px; }
  .setup-wizard-review-card strong { flex-shrink: 1; }
}

/* Review actions sit inside the feature card. */
.setup-wizard-review > .setup-wizard-review-row { display: block; }
.setup-wizard-review-card .setup-wizard-review-identity { flex: 1; }
.setup-wizard-review-card > button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px; min-height: 42px; font-size: 13px; white-space: nowrap; }
.setup-wizard-review-card > button svg { width: 16px; height: 16px; }
@media (max-width: 650px) {
  .setup-wizard-review-card { flex-wrap: wrap; }
  .setup-wizard-review-card > button { margin-left: auto; }
}

/* Align guided setup with the overview's neighbouring banner and card grid. */
.overview-features > .setup-wizard-callout {
  margin: 0 0 18px;
  padding: 20px 24px;
  gap: 24px;
}
.overview-features > .setup-wizard-callout h2 { line-height: 1.3; }
.overview-features > .setup-wizard-callout p { margin: 8px 0 0; font-size: 13px; line-height: 1.65; }
.overview-features > .setup-wizard-callout > button { flex-shrink: 0; margin: 0; min-width: 150px; }
@media (max-width: 650px) {
  .overview-features > .setup-wizard-callout { padding: 18px; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
  .overview-features > .setup-wizard-callout > div { flex-basis: calc(100% - 46px); }
  .overview-features > .setup-wizard-callout > button { width: 100%; }
}

.setup-wizard-callout .setup-wizard-mark { display: grid; place-items: center; font-size: 30px; line-height: 1; }

/* Match the overview banner actions and centre them vertically. */
.overview-features > .overview-vote-card > a.ghost-button,
.overview-features > .setup-wizard-callout > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 14px;
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  box-sizing: border-box;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
}
.overview-features > .setup-wizard-callout > button { background: #ffe16b; border: 1px solid #ffe16b; color: #292a2d; box-shadow: none; }
.overview-features > .setup-wizard-callout > button:hover { background: #ffdf57; border-color: #ffdf57; }
.overview-features > .setup-wizard-callout > button:active { background: #f2ce42; border-color: #f2ce42; }
@media (max-width: 650px) {
  .overview-features > .overview-vote-card > a.ghost-button,
  .overview-features > .setup-wizard-callout > button { flex: 0 0 auto; width: 100%; }
}

.overview-features > .setup-wizard-callout,
.overview-features > .overview-vote-card { transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.overview-features > .setup-wizard-callout:hover,
.overview-features > .overview-vote-card:hover {
  background: linear-gradient(145deg, #564e39, #303743 75%);
  border-color: #9a844d;
  box-shadow: 0 6px 20px #00000018;
}
@media (prefers-reduced-motion: reduce) {
  .overview-features > .setup-wizard-callout,
  .overview-features > .overview-vote-card { transition: none; }
}


/* Keep overview breathing room even after the support row is removed. */
body.hub-homepage main { grid-template-rows: 32px auto 32px 1px 32px auto 32px; }
body.hub-homepage .overview-features-heading { margin-bottom: 24px; }

/* Embedded editors inherit the normal feature page's controls and spacing. */
.setup-wizard-inline-editor { margin-top: 28px; }
.setup-wizard-inline-editor > .editor-back-link,
.setup-wizard-inline-editor > .page-heading,
.setup-wizard .feature-publish-actions { display: none; }
.setup-wizard--configure { max-width: none; width: 100%; }
.setup-wizard-inline-editor .feature-editor-workspace { margin-top: 0; }
