.setup-wizard { max-width: 1200px; min-width: 0; width: 100%; margin: 0 auto; padding: var(--wa-space-l); }
.setup-wizard__title { font-size: var(--wa-font-size-xl); font-weight: 700; margin: 0 0 var(--wa-space-l); }

.setup-wizard__stepper { display: flex; align-items: center; gap: 0; list-style: none; padding: var(--wa-space-m) var(--wa-space-l); margin: 0 0 var(--wa-space-l); background: var(--wa-color-surface-default); border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-m); }
.setup-wizard__step { display: flex; align-items: center; min-width: 0; color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); }
.setup-wizard__step:not(:last-child) { flex: 1; }
.setup-wizard__step-link { display: inline-flex; align-items: center; gap: var(--wa-space-s); color: inherit; text-decoration: none; }
.setup-wizard__step-link:hover .setup-wizard__step-label { text-decoration: underline; }
.setup-wizard__step--current { color: var(--wa-color-text-normal); font-weight: 600; }
.setup-wizard__step--done { color: var(--wa-color-success-60); font-weight: 600; }
.setup-wizard__step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wa-color-neutral-90); color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); flex: none; }
.setup-wizard__step--current .setup-wizard__step-num { background: var(--wa-color-brand-fill-loud); color: var(--wa-color-brand-on-loud); }
.setup-wizard__step--done .setup-wizard__step-num { background: var(--wa-color-success-fill-loud, #16a34a); color: #fff; }
.setup-wizard__step-conn { flex: 1; height: 2px; min-width: 16px; margin: 0 var(--wa-space-s); background: var(--wa-color-neutral-border-normal); border-radius: 1px; }
.setup-wizard__step--done .setup-wizard__step-conn { background: var(--wa-color-success-fill-loud, #16a34a); }

.setup-wizard__card { background: var(--wa-color-surface-default); border: 1px solid var(--wa-color-surface-border); border-radius: var(--wa-border-radius-l); box-shadow: var(--wa-shadow-m); padding: var(--wa-space-xl); }
.setup-wizard__step-title { font-size: var(--wa-font-size-l); font-weight: 700; margin: 0; }
.setup-wizard__step-sub { color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); margin: var(--wa-space-xs) 0 var(--wa-space-l); }
.setup-wizard__section-title { font-size: var(--wa-font-size-m); font-weight: 600; margin: var(--wa-space-l) 0 var(--wa-space-m); }
.setup-wizard__section-title--attrition { margin-bottom: var(--wa-space-xs); }

.setup-wizard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wa-space-m) var(--wa-space-l); margin-bottom: var(--wa-space-m); }
.setup-wizard__grid--two { grid-template-columns: repeat(2, 1fr); }
.setup-wizard__grid--four { grid-template-columns: 1fr 1fr 1.08fr 1fr; }

@media (max-width: 1400px) {
  .setup-wizard__grid--four { grid-template-columns: repeat(2, 1fr); }
}
.setup-wizard__swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--wa-color-neutral-border-normal); margin-right: var(--wa-space-xs); vertical-align: -2px; }
.setup-wizard__color-select::part(listbox) { max-height: 300px; }
.setup-wizard__domain { display: grid; grid-template-columns: 1fr 120px; gap: var(--wa-space-s); }
/* HMS-403 — the current-host note belongs under the domain+TLD pair, so it
   spans both grid tracks instead of shrinking into the domain column. */
.setup-wizard__current-domain { grid-column: 1 / -1; margin: 0; font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
.setup-wizard__hint { display: flex; align-items: center; gap: var(--wa-space-s); color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); margin: 0 0 var(--wa-space-s); padding-top: 0; }

.setup-wizard__logo { margin-top: var(--wa-space-m); }
.setup-wizard__logo-drop { border: 2px dashed var(--wa-color-neutral-80); border-radius: var(--wa-border-radius-m); text-align: center; padding: var(--wa-space-m); color: var(--wa-color-text-quiet); position: relative; }
.setup-wizard__logo-drop:focus-within { outline: var(--wa-focus-ring); }
.setup-wizard__logo-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.setup-wizard__logo-hint { font-weight: 600; color: var(--wa-color-text-normal); margin: var(--wa-space-s) 0 0; }
.setup-wizard__logo-sub { color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-s); margin: var(--wa-space-xs) 0 0; }
.setup-wizard__logo-current { display: flex; align-items: center; gap: var(--wa-space-s); padding: var(--wa-space-s); max-width: 30rem; border: 1px solid var(--wa-color-neutral-border-normal); border-radius: var(--wa-border-radius-m); background: var(--wa-color-surface-default); }
.setup-wizard__logo-preview { flex: none; width: 20%; max-width: 7rem; height: 3.5rem; object-fit: contain; }
.setup-wizard__logo-current-meta { display: grid; gap: var(--wa-space-2xs); min-width: 0; }
.setup-wizard__logo-current-name { font-size: var(--wa-font-size-s); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup-wizard__logo-actions { display: flex; gap: var(--wa-space-2xs); }
.setup-wizard__logo-actions .setup-wizard__chip { padding-inline: var(--wa-space-2xs); font-size: var(--wa-font-size-xs); white-space: nowrap; }
.setup-wizard__logo-current[hidden] { display: none; }

.setup-wizard__table-wrap { border: 1px solid var(--wa-color-neutral-border-normal); border-radius: var(--wa-border-radius-m); overflow-x: auto; margin-bottom: var(--wa-space-m); background: var(--wa-color-surface-default); }
.setup-wizard__table { width: 100%; border-collapse: collapse; font-size: var(--wa-font-size-s); }
.setup-wizard__table th { text-align: left; padding: var(--wa-space-s) var(--wa-space-m); color: var(--wa-color-text-quiet); font-weight: 600; border-bottom: 1px solid var(--wa-color-neutral-border-normal); background: var(--wa-color-neutral-95); white-space: nowrap; }
.setup-wizard__table td { padding: var(--wa-space-s) var(--wa-space-m); border-bottom: 1px solid var(--wa-color-neutral-border-normal); }
.setup-wizard__table tbody tr:hover { background: var(--wa-color-neutral-95); }
.setup-wizard__table tfoot td { border-bottom: none; background: var(--wa-color-neutral-95); }
.setup-wizard__hotel-name { font-weight: 600; }
.setup-wizard__stars { color: var(--wa-color-warning-70); }
.setup-wizard__pms-missing { color: var(--wa-color-danger-60); }
.setup-wizard__empty { color: var(--wa-color-text-quiet); text-align: center; padding: var(--wa-space-l) !important; }
.setup-wizard__net { font-weight: 600; }
.setup-wizard__grip { color: var(--wa-color-text-quiet); cursor: grab; }

/* HMS-1799 — Saved setup templates page: the quiet line under the title,
   the document icon + bold name in the first cell, and the apply form's
   inline box so the wa-button sits in the Actions cell without a stray
   block wrapper. The Saved on stamp and the Actions cell never wrap. */
.setup-wizard__templates-sub {
  margin: calc(-1 * var(--wa-space-s)) 0 var(--wa-space-l);
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s);
}
.setup-wizard__template-name {
  display: inline-flex;
  align-items: center;
  gap: var(--wa-space-xs);
  font-weight: 600;
}
.setup-wizard__template-name i { color: var(--wa-color-text-quiet); }
.setup-wizard__template-saved,
.setup-wizard__templates-table td:last-child { white-space: nowrap; }
.setup-wizard__template-apply { display: inline; margin: 0; }
.setup-wizard__templates-back { margin: var(--wa-space-l) 0 0; }
.setup-wizard__templates-back a {
  display: inline-flex;
  align-items: center;
  gap: var(--wa-space-2xs);
}

.setup-wizard__info-banner { display: flex; align-items: center; gap: var(--wa-space-s); background: var(--wa-color-neutral-fill-quiet); border-radius: var(--wa-border-radius-m); padding: var(--wa-space-m); font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); margin-top: var(--wa-space-m); }
.setup-wizard__info-banner--tier-limit { margin-bottom: var(--wa-space-m); }
.setup-wizard__info-banner i { color: var(--wa-color-brand-60); }
/* HMS-1025 — Figma 600:29936 paints the Privileges note as a blue callout:
   #E8F3FF fill (the Figma Blue/95 hex, same literal the EXH chip below uses),
   a brand left accent and brand icon, and normal-weight body text. The other
   steps' live-status banners keep the neutral fill. */
.setup-wizard__info-banner--callout {
  background: #E8F3FF;
  border-left: 3px solid var(--wa-color-brand);
  color: var(--wa-color-text-normal);
}
.setup-wizard__info-banner--callout i { color: var(--wa-color-brand); }

.setup-wizard__hotels-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--wa-space-m); margin-bottom: var(--wa-space-m); }
.setup-wizard__add-hotel { display: flex; gap: var(--wa-space-s); align-items: center; }
.setup-wizard__search { min-width: 220px; }
.setup-wizard__add-btn { display: inline-flex; align-items: center; gap: var(--wa-space-xs); padding: var(--wa-space-s) var(--wa-space-m); border: 1px solid var(--wa-color-neutral-border-normal); border-radius: var(--wa-border-radius-m); background: var(--wa-color-surface-default); color: var(--wa-color-text-normal); font-size: var(--wa-font-size-s); cursor: pointer; }
.setup-wizard__add-btn:hover { background: var(--wa-color-neutral-95); }
/* HMS-1802 — the Privileges Add Tier submit disables at the ten-tier ceiling;
   dim it like the primary variant's disabled state (HMS-1661). */
.setup-wizard__add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.setup-wizard__add-btn:disabled:hover { background: var(--wa-color-surface-default); }
/* HMS-2016 — the cell stays a real table cell and the inner flex row starts
   at its padding edge, so Deals/Remove line up under the Actions header. */
.setup-wizard__actions-cell { white-space: nowrap; }
.setup-wizard__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--wa-space-xs);
}
.setup-wizard__deals { color: var(--wa-color-brand-60); font-size: var(--wa-font-size-s); margin-right: var(--wa-space-m); }
.setup-wizard__remove { background: none; border: none; color: var(--wa-color-danger-60); cursor: pointer; font-size: var(--wa-font-size-s); }
.setup-wizard__hotel-switch { max-width: 340px; margin-bottom: var(--wa-space-l); }

.setup-wizard__errors { color: var(--wa-color-danger-60); font-size: var(--wa-font-size-s); margin: var(--wa-space-m) 0; }
.setup-wizard__errors--dialog { margin: 0 0 var(--wa-space-m); padding-left: var(--wa-space-l); }
.setup-wizard__error-panel {
  margin: var(--wa-space-m) 0;
  padding: var(--wa-space-m);
  background: var(--wa-color-surface-default);
  border: 1px solid var(--wa-color-danger-border-normal);
  border-radius: var(--wa-border-radius-m);
  color: var(--wa-color-danger-60);
  font-size: var(--wa-font-size-s);
}
.setup-wizard__error-heading {
  display: flex;
  align-items: center;
  gap: var(--wa-space-s);
  margin: 0 0 var(--wa-space-s);
  color: var(--wa-color-danger-fill-loud);
  font-size: var(--wa-font-size-s);
  font-weight: 700;
}
.setup-wizard__error-heading i { flex: none; }
.setup-wizard__error-group {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) 1fr;
  gap: var(--wa-space-m);
  padding: var(--wa-space-s) 0;
}
.setup-wizard__error-group + .setup-wizard__error-group {
  border-top: 1px solid var(--wa-color-neutral-border-normal);
}
.setup-wizard__error-row { color: var(--wa-color-text-normal); font-weight: 700; }
.setup-wizard__error-list { margin: 0; padding-left: var(--wa-space-l); }
.setup-wizard__error-list li + li { margin-top: var(--wa-space-2xs); }
.setup-wizard__error-group--general { display: block; }
/* HMS-1804 — attrition threshold field errors: the message rides the
   wa-input hint slot so it paints directly under the control, and
   field--invalid repaints the border through the form-control token (the
   HMS-1466 hook the concession/settlement dialogs use). */
.setup-wizard wa-input.field--invalid,
.setup-wizard wa-date-input.field--invalid {
  --wa-form-control-border-color: var(--wa-color-danger-border-loud);
}
.setup-wizard__field-error {
  display: block;
  margin: 0 0 var(--wa-space-2xs);
  font-size: var(--wa-font-size-s);
  color: var(--wa-color-danger-fill-loud);
}
.setup-wizard__validation-banner {
  display: flex;
  align-items: center;
  gap: var(--wa-space-s);
  margin: 0 0 var(--wa-space-m);
  padding: var(--wa-space-s) var(--wa-space-m);
  border: 1px solid var(--wa-color-danger-border-normal);
  border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-danger-fill-quiet);
  color: var(--wa-color-danger-fill-loud);
}
.setup-wizard__validation-banner[hidden] { display: none; }
.setup-wizard__validation-banner > i {
  flex: 0 0 auto;
  font-size: var(--wa-font-size-xl);
}
.setup-wizard__validation-copy { min-width: 0; }
.setup-wizard__validation-copy strong {
  display: block;
  font-size: var(--wa-font-size-s);
  font-weight: var(--wa-font-weight-bold);
  line-height: 1.3;
}
.setup-wizard__validation-copy p {
  margin: var(--wa-space-3xs) 0 0;
  font-size: var(--wa-font-size-s);
  line-height: 1.3;
}
.setup-wizard__footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--wa-space-xl); padding-top: var(--wa-space-m); border-top: 1px solid var(--wa-color-neutral-border-normal); }
/* HMS-1044 — Back renders as a light-gray bordered button, not a text link. */
.setup-wizard__back {
  display: inline-flex; align-items: center; gap: var(--wa-space-xs);
  padding: var(--wa-space-xs) var(--wa-space-m);
  background: var(--wa-color-neutral-fill-quiet);
  color: var(--wa-color-neutral-on-quiet);
  border: 1px solid var(--wa-color-neutral-border-quiet);
  border-radius: var(--wa-border-radius-m);
  font-size: 0.875rem; text-decoration: none;
}
/* HMS-1665 — margin-left:auto keeps Continue pinned to the right edge when the
   footer has no Back sibling (the first step renders none); with Back
   present the auto margin absorbs the same free space space-between did. */
.setup-wizard__continue { display: inline-flex; align-items: center; gap: var(--wa-space-s); margin-left: auto; background: var(--wa-color-brand-fill-loud); color: var(--wa-color-brand-on-loud); border: none; border-radius: var(--wa-border-radius-m); padding: var(--wa-space-m) var(--wa-space-l); font-size: var(--wa-font-size-m); font-weight: 600; cursor: pointer; }

/* HMS-1720 — the pre-fill card sits between the stepper and the Event Details
   card: the Figma Blue fill (#E8F3FF, the same literal the Privileges callout
   and EXH chip use) with its paired #9FCEFF border marks it as the shortcut
   path, kept visually separate from manual entry. */
.setup-wizard__prefill {
  margin: 0 0 var(--wa-space-m);
  padding: var(--wa-space-m) var(--wa-space-l);
  background: #E8F3FF;
  border: 1px solid #9FCEFF;
  border-radius: var(--wa-border-radius-m);
}
.setup-wizard__prefill-title { font-size: var(--wa-font-size-m); font-weight: 600; margin: 0; }
.setup-wizard__prefill-sub { margin: var(--wa-space-2xs) 0 var(--wa-space-m); font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
.setup-wizard__prefill-label { display: block; font-size: var(--wa-font-size-s); font-weight: 600; margin-bottom: var(--wa-space-2xs); }
/* Dropdown + Load contract details share one row; flex-wrap drops the button
   under the combo on narrow screens instead of squeezing the trigger. */
.setup-wizard__prefill-row { display: flex; align-items: center; gap: var(--wa-space-s); flex-wrap: wrap; }
.setup-wizard__prefill-row .setup-wizard__combo { flex: 1 1 18rem; min-width: 0; }
.setup-wizard__prefill-template { margin: var(--wa-space-s) 0 0; font-size: var(--wa-font-size-s); }
/* HMS-1720 — the "Or enter event details manually" divider between the
   pre-fill card and the Event Details card. */
.setup-wizard__manual-divider {
  display: flex; align-items: center; gap: var(--wa-space-m);
  margin: 0 0 var(--wa-space-l);
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s);
}
.setup-wizard__manual-divider::before,
.setup-wizard__manual-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--wa-color-neutral-border-normal);
}
.setup-wizard__template-form {
  display: flex; flex-direction: column; gap: var(--wa-space-m);
  margin-block-start: var(--wa-space-xl);
  max-width: 22rem;
}
.setup-wizard__template-form wa-button { align-self: flex-start; }
.setup-wizard__preview-link { font-size: var(--wa-font-size-s); }

/* Mobile: stepper collapses to numbers only, grid to one column */
@media (max-width: 720px) {
  .setup-wizard { padding: var(--wa-space-s); }
  .setup-wizard__stepper { overflow-x: auto; scrollbar-width: none; padding: var(--wa-space-s) var(--wa-space-m); }
  .setup-wizard__step { flex: 0 0 auto; }
  .setup-wizard__card { padding: var(--wa-space-l); }
  .setup-wizard__domain { grid-template-columns: 1fr; }
  .setup-wizard__step-sub { overflow-wrap: anywhere; }
  .setup-wizard__grid, .setup-wizard__grid--two { grid-template-columns: 1fr; }
  .setup-wizard__grid--four { grid-template-columns: 1fr; }
  .setup-wizard__step-label { display: none; }
  .setup-wizard__table-wrap { overflow-x: auto; }
  .setup-wizard__hotels-bar { flex-direction: column; align-items: stretch; }
}

.setup-wizard__grid--three { grid-template-columns: repeat(3, 1fr); }

.setup-wizard__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wa-space-s, 0.75rem) var(--wa-space-xl, 1.5rem);
  padding: var(--wa-space-l, 1rem) var(--wa-space-xl, 1.5rem);
  background: var(--wa-color-surface-default);
  border-radius: var(--wa-border-radius-m, 8px);
}

.setup-wizard__summary-label {
  display: block;
  font-size: var(--wa-font-size-xs, 0.75rem);
  line-height: 1.2;
  color: var(--wa-color-text-quiet);
}

.setup-wizard__summary-value {
  display: block;
  font-size: var(--wa-font-size-s, 0.875rem);
  line-height: 1.3;
  color: var(--wa-color-text-normal);
}

@media (max-width: 768px) {
  .setup-wizard__grid--three { grid-template-columns: 1fr; }
  .setup-wizard__summary { grid-template-columns: repeat(2, 1fr); }
}

/* Setup wizard: contract combobox */
.setup-wizard__combo { position: relative; }
.setup-wizard__combo-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wa-space-s);
  width: 100%;
  border: 1px solid var(--wa-color-neutral-border-normal);
  border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-surface-default);
  color: var(--wa-color-text-normal);
  padding: var(--wa-space-xs) var(--wa-space-s);
  cursor: pointer;
}
.setup-wizard__combo-trigger:hover { border-color: var(--wa-color-brand-60); }
.setup-wizard__combo-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin-top: var(--wa-space-3xs);
  background: var(--wa-color-surface-default);
  border: 1px solid var(--wa-color-surface-border);
  border-radius: var(--wa-border-radius-m);
  box-shadow: var(--wa-shadow-m);
  padding: var(--wa-space-xs);
}
/* HMS-1656 — the controller flips the list above the trigger (is-flipped +
   an inline bottom offset) when the space down to the admin footer can't
   hold it, so the dropdown never covers the footer. */
.setup-wizard__combo-list.is-flipped { margin-top: 0; }
.setup-wizard__combo-options {
  display: flex;
  flex-direction: column;
  gap: 1px;
  /* HMS-1656 QA retest — about five rows tall, scrolling for longer lists. */
  max-height: var(--combo-options-max, 13rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* HMS-1656 QA retest — justify-content and the fixed height override Web
   Awesome's native button rule (centered content, its own height), which
   centered unselected rows while the selected row's check pushed its text
   left. Every row now starts at the same left edge and has the same box. */
.setup-wizard__combo-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--wa-space-s);
  width: 100%;
  min-height: 2.5rem;
  height: auto;
  margin: 0;
  text-align: left;
  line-height: 1.25;
  padding: 0.375rem var(--wa-space-s);
  border: none;
  background: none;
  color: var(--wa-color-text-normal);
  border-radius: var(--wa-border-radius-s);
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.setup-wizard__combo-option[hidden] { display: none; }
.setup-wizard__combo-option:hover,
.setup-wizard__combo-option:focus-visible { background: var(--wa-color-neutral-fill-quiet); }
.setup-wizard__combo-option.is-selected { background: var(--wa-color-brand-fill-quiet); }
.setup-wizard__combo-name { font-weight: 600; overflow-wrap: anywhere; }
.setup-wizard__combo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; }
.setup-wizard__combo-dates { color: var(--wa-color-text-quiet); font-size: 0.75rem; overflow-wrap: anywhere; }
.setup-wizard__combo-check { display: none; flex: none; margin-left: auto; color: var(--wa-color-brand-60); }
.setup-wizard__combo-option.is-selected .setup-wizard__combo-check { display: inline; }

/* Setup wizard: action chips */
/* HMS-1600 — the Hotels table's Deals/Remove pair (and HMS-1664's logo Remove
   on the event step). One shared box (height,
   padding, radius, font) so both read as the same control; the semantic
   fill-quiet/on-quiet pairs give the subtle tinted background with the
   darker stepped text the ticket asks for, and hover steps to fill-normal. */
.setup-wizard__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--wa-space-2xs);
  height: 1.75rem;
  padding: 0 var(--wa-space-s);
  border: none;
  border-radius: var(--wa-border-radius-m);
  font-size: var(--wa-font-size-s);
  font-weight: var(--wa-font-weight-semibold);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
/* HMS-2016 — QA pinned the literal Figma Blue ramp for the Hotels table's
   Deals control (#E8F3FF / #9FCEFF / #0071EC, the same pairing hotel-requests
   documents), not the product brand ramp, whose quiet fill reads grey here. */
.setup-wizard__chip--info {
  border: 1px solid #9FCEFF;
  background: #E8F3FF;
  color: #0071EC;
}
.setup-wizard__chip--info:hover,
.setup-wizard__chip--info:focus-visible { background: #D6EAFF; }
.setup-wizard__chip--danger {
  border: 1px solid var(--wa-color-danger-border-normal);
  background: var(--wa-color-danger-fill-quiet);
  color: var(--wa-color-danger-on-quiet);
}
.setup-wizard__chip--danger:hover,
.setup-wizard__chip--danger:focus-visible { background: var(--wa-color-danger-fill-normal); }

/* Setup wizard: pager */
.setup-wizard__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--wa-space-s);
  font-size: 0.8125rem;
  color: var(--wa-color-text-quiet);
}
.setup-wizard__pager-size {
  display: flex;
  align-items: center;
  gap: var(--wa-space-xs);
  white-space: nowrap;
}
.setup-wizard__pager-select {
  width: 4.5rem;
  min-width: 4.5rem;
  flex: none;
}
/* WA's small select otherwise spends 14px on each side plus another 14px
   before the chevron; at a compact width that leaves nine pixels for "20".
   Keep the same rhythm, just tightened, so both digits stay visible. */
.setup-wizard__pager-select::part(combobox) { padding-inline: var(--wa-space-xs); }
.setup-wizard__pager-select::part(expand-icon) { margin-inline-start: var(--wa-space-xs); }
.setup-wizard__pager-pages { display: flex; gap: var(--wa-space-3xs); }
.setup-wizard__pager-pages a,
.setup-wizard__page-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  background: none;
  border-radius: var(--wa-border-radius-s);
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.setup-wizard__pager-pages a:hover,
.setup-wizard__page-btn:hover { background: var(--wa-color-neutral-fill-quiet); }
.setup-wizard__pager-pages a.is-active,
.setup-wizard__pager-pages a[aria-current],
.setup-wizard__page-btn.is-current { background: var(--wa-color-brand-fill-quiet); color: var(--wa-color-brand-60); }
.setup-wizard__page-btn:disabled { opacity: 0.4; cursor: default; }
.setup-wizard__page-dots { padding: 0 var(--wa-space-2xs); color: var(--wa-color-text-quiet); }
.setup-wizard__combo-search { display: block; margin-bottom: var(--wa-space-2xs); }
.setup-wizard__summary-item { display: flex; justify-content: space-between; gap: var(--wa-space-s); padding: var(--wa-space-2xs) 0; }
.setup-wizard__logo-label { display: block; font-weight: 600; margin-bottom: var(--wa-space-xs); }
.setup-wizard__pager-size {
  display: flex;
  align-items: center;
  gap: var(--wa-space-xs);
}
.setup-wizard__pager--cutoffs .setup-wizard__pager-size {
  white-space: nowrap;
}
.setup-wizard__pager--cutoffs .setup-wizard__pager-size wa-select {
  flex: 0 0 auto;
  width: 5.5rem;
  min-width: 5.5rem;
}
.setup-wizard__pager--cutoffs + .setup-wizard__add-btn {
  margin-top: var(--wa-space-m);
}

/* Setup wizard: add-hotel row */
.setup-wizard__add-select { min-width: 16rem; }
.setup-wizard__add-select::part(listbox) { max-height: 12rem; }
/* HMS-1599 — the shared .setup-wizard__add-btn:hover rule paints every add
   button neutral-95 on hover; on the primary variant that swapped the brand
   fill for near-white. Hover/focus go one ramp stop darker (brand-40, the
   shade the portal topbar already uses) with a 150ms ease, matching the rest
   of the app's brand surfaces. */
.setup-wizard__add-btn--primary {
  background: var(--wa-color-brand-fill-loud);
  color: var(--wa-color-brand-on-loud);
  border: none;
  border-radius: var(--wa-border-radius-m);
  padding: var(--wa-space-xs) var(--wa-space-m);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.setup-wizard__add-btn.setup-wizard__add-btn--primary:hover,
.setup-wizard__add-btn.setup-wizard__add-btn--primary:focus-visible {
  background: var(--wa-color-brand-40);
}
/* HMS-1661 — the Add Hotel submit is disabled until the picker holds a
   hotel; dim it and drop the pointer so the state reads at a glance. */
.setup-wizard__add-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* HMS-1025 — badge chip preview inside the Privileges step table, same tone
   palette as privilege-config__chip. */
.setup-wizard__tier-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--wa-space-2xs) var(--wa-space-xs);
  border-radius: var(--wa-border-radius-l);
  font-size: var(--wa-font-size-s);
  font-weight: var(--wa-font-weight-semibold);
}
.setup-wizard__tier-chip--brand { background: #E8F3FF; color: #0071EC; }
.setup-wizard__tier-chip--neutral { background: var(--wa-color-neutral-90); color: var(--wa-color-text-normal); }
.setup-wizard__tier-chip--success { background: var(--wa-color-success-90); color: var(--wa-color-success); }
.setup-wizard__tier-chip--warning { background: #FEF3CD; color: #DA7E00; }
.setup-wizard__tier-chip--danger { background: var(--wa-color-danger-90); color: var(--wa-color-danger); }

/* HMS-1020 — keep "N rooms" on one line in the tier allocation cells. */
.setup-wizard__tier-alloc { white-space: nowrap; color: var(--wa-color-text-quiet); }

/* HMS-1044 — Figma cutoffs step: divider, compact unified table, summary. */
.setup-wizard__divider { border: 0; border-top: 1px solid var(--wa-color-neutral-border-quiet); margin: var(--wa-space-l) 0; }
.setup-wizard__table--compact td { padding: var(--wa-space-2xs) var(--wa-space-xs); }
.setup-wizard__table--compact th { padding: var(--wa-space-2xs) var(--wa-space-xs); }
/* Compact controls so the 8-column cutoffs table fits without clipping at
   desktop widths; the wrap still scrolls below ~900px. */
.setup-wizard__table--compact wa-select { width: 6.5rem; }
.setup-wizard__table--compact wa-input[type="date"] { width: 7rem; }
.setup-wizard__table--compact wa-input[type="number"] { width: 4.25rem; }
.setup-wizard__table-wrap { border: 1px solid var(--wa-color-neutral-border-quiet); border-radius: var(--wa-border-radius-m); overflow-x: auto; }
.setup-wizard__table--compact { border: none; }
.setup-wizard__sort-hint { font-size: 0.7rem; color: var(--wa-color-text-quiet); margin-left: 2px; }
.setup-wizard__scope { font-weight: var(--wa-font-weight-semibold); }
.setup-wizard__scope-tag { font-weight: 400; color: var(--wa-color-text-quiet); }
.setup-wizard__muted { color: var(--wa-color-text-quiet); font-size: 0.8125rem; }
.setup-wizard__summary-item { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 0; min-width: 0; }

/* HMS-1044 — Figma 600:30166 cutoffs grid: seven visible columns only.
   Cells stroke bottom-only like the Figma Table Header/Data blocks; the
   compact small controls keep rows at the Figma height instead of letting
   the reminder multi-select grow vertically. At 52rem and up the table fits
   its card without a horizontal scrollbar; narrower screens still scroll. */
.setup-wizard__table-wrap--cutoffs { border: none; border-radius: 0; background: transparent; }
.setup-wizard__table--cutoffs { table-layout: fixed; width: 100%; min-width: 52rem; border-collapse: collapse; }
.setup-wizard__table--cutoffs th,
.setup-wizard__table--cutoffs td { border: 0; border-bottom: 1px solid var(--wa-color-neutral-border-quiet); }
.setup-wizard__table--cutoffs thead th {
  padding: var(--wa-space-xs) var(--wa-space-xs);
  background: var(--wa-color-neutral-95);
  color: var(--wa-color-text-normal);
  font-size: var(--wa-font-size-xs);
  font-weight: var(--wa-font-weight-semibold);
  line-height: 1.2;
  white-space: nowrap;
}
.setup-wizard__table--cutoffs td {
  padding: var(--wa-space-2xs) var(--wa-space-xs);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.setup-wizard__table--cutoffs tbody tr:last-child td { border-bottom: 1px solid var(--wa-color-neutral-border-quiet); }
.setup-wizard__cutoffs-col-scope { width: 13%; }
.setup-wizard__cutoffs-col-room { width: 12%; }
.setup-wizard__cutoffs-col-date { width: 15%; }
.setup-wizard__cutoffs-col-days { width: 16%; }
.setup-wizard__cutoffs-col-action { width: 14%; }
.setup-wizard__cutoffs-col-override { width: 12%; }
.setup-wizard__cutoffs-col-reminders { width: 18%; }
.setup-wizard__table--cutoffs wa-select,
.setup-wizard__table--cutoffs wa-date-input,
.setup-wizard__table--cutoffs wa-input {
  width: 100%;
  --wa-form-control-padding-inline: var(--wa-space-xs);
}
.setup-wizard__cutoff-room-type::part(listbox) {
  width: max-content;
  min-width: 15rem;
  max-width: calc(100vw - 2rem);
}
.setup-wizard__cutoff-room-type wa-option,
.setup-wizard__cutoff-room-type wa-option::part(label) {
  white-space: nowrap;
}
.setup-wizard__table--cutoffs .setup-wizard__cutoffs-static { pointer-events: none; }
.setup-wizard__table--cutoffs .setup-wizard__field-error {
  font-size: var(--wa-font-size-xs);
  line-height: 1.2;
  overflow-wrap: normal;
}
.setup-wizard__cutoffs-text { color: var(--wa-color-text-normal); font-size: var(--wa-font-size-s); }
.setup-wizard__reminders-cell {
  display: flex;
  align-items: center;
  gap: var(--wa-space-2xs);
  min-width: 0;
}
.setup-wizard__reminders-cell .setup-wizard__reminder-select { flex: 1 1 auto; width: auto; min-width: 0; }
.setup-wizard__reminders-cell .setup-wizard__remove { flex: 0 0 auto; padding: var(--wa-space-2xs); }
/* The select API is max-options-visible; the Figma field is one compact row
   of dark day tags. No wrapping is the important part: three stacked tags
   made every cutoff row five times the designed height. */
.setup-wizard__reminder-select::part(tags) {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.setup-wizard__reminder-select::part(tag) {
  --wa-color-fill-quiet: var(--wa-color-brand-fill-loud);
  --wa-color-on-quiet: var(--wa-color-brand-on-loud);
  --wa-color-border-normal: transparent;
  flex: 0 0 auto;
  gap: 0.25em;
  padding: 0 0.4em;
  font-size: var(--wa-font-size-xs);
}
.setup-wizard__table--cutoffs wa-date-input::part(expand-button) {
  inline-size: 1.45em;
  margin-inline-start: var(--wa-space-2xs);
  margin-inline-end: 0;
  padding: 0.15em;
}
.setup-wizard__pager-count { white-space: nowrap; }
.setup-wizard__pager-pages--numbered { display: flex; gap: var(--wa-space-2xs); align-items: center; }
.setup-wizard__pager-pages--numbered .setup-wizard__page-btn,
.setup-wizard__pager-pages--numbered .setup-wizard__page-dots {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 var(--wa-space-xs);
  border: 1px solid var(--wa-color-neutral-border-normal);
  border-radius: var(--wa-border-radius-s);
  background: var(--wa-color-surface-default);
  color: var(--wa-color-text-normal);
}
.setup-wizard__pager-pages--numbered .setup-wizard__page-btn:hover:not(:disabled) { background: var(--wa-color-neutral-95); }
.setup-wizard__pager-pages--numbered .setup-wizard__page-btn.is-current {
  background: var(--wa-color-brand-fill-loud);
  border-color: var(--wa-color-brand-fill-loud);
  color: var(--wa-color-brand-on-loud);
}
.setup-wizard__pager-pages--numbered .setup-wizard__page-btn:disabled { opacity: 0.45; }
.setup-wizard__pager-pages--numbered .setup-wizard__page-dots { border: none; background: none; }
@media (max-width: 40rem) {
  .setup-wizard__pager--cutoffs {
    flex-direction: column;
    align-items: center;
    gap: var(--wa-space-s);
  }
}
/* HMS-1044 — the Figma summary card is a neutral-95 slab with the label
   stacked over its value in each of four columns, padded evenly. */
.setup-wizard__summary {
  background: var(--wa-color-neutral-95);
  padding: var(--wa-space-m);
}

/* HMS-1105 — compact Privileges tiers table so all columns fit without horizontal scroll at desktop widths.
   HMS-1025 — every column now carries a width: with Tier Name unspecified it
   absorbed all the slack and pushed Badge ~350px away from the name. The rem
   widths below are content minimums; fixed layout scales them up
   proportionally to fill wider wraps, so the spare space spreads evenly
   instead of pooling in one column. Sum is 41.5rem so the table still fits
   the ~676px wrap at a 1024px viewport without scrolling. */
.setup-wizard__table--tiers { table-layout: fixed; min-width: 40rem; }
.setup-wizard__table--tiers th { white-space: normal; vertical-align: bottom; padding: var(--wa-space-2xs); }
.setup-wizard__table--tiers td { vertical-align: middle; padding: var(--wa-space-2xs); }
.setup-wizard__table--tiers th:nth-child(1) { width: 1.75rem; }
.setup-wizard__table--tiers th:nth-child(2) { width: 4.5rem; }
.setup-wizard__table--tiers th:nth-child(3) { width: 3.75rem; }
.setup-wizard__table--tiers th:nth-child(4) { width: 4.25rem; }
.setup-wizard__table--tiers th:nth-child(5) { width: 6.25rem; }
.setup-wizard__table--tiers th:nth-child(6) { width: 7.75rem; }
.setup-wizard__table--tiers th:nth-child(7) { width: 6rem; }
.setup-wizard__table--tiers th:nth-child(8) { width: 7.25rem; }
.setup-wizard__table--tiers wa-input[name$="[booking_priority]"] {
  position: relative;
  width: 3.75rem;
  --wa-form-control-padding-inline: var(--wa-space-xs);
}
.setup-wizard__table--tiers tr:has(wa-input[name$="[booking_priority]"].field--invalid) td { padding-block-end: 1.75rem; }
.setup-wizard__table--tiers wa-input[name$="[booking_priority]"]::part(input) { text-align: center; }
.setup-wizard__table--tiers wa-input[name$="[booking_priority]"].field--invalid::part(hint) { font-size: 0; line-height: 0; }
.setup-wizard__table--tiers wa-input[name$="[booking_priority]"] .form-validation__error {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 2;
  width: max-content;
  max-width: 28rem;
  margin: 0;
}
.setup-wizard__table--tiers wa-input[name$="[rate_adjustment_pct]"] { width: 5.75rem; }

/* HMS-1025 — per-row Edit dialog: the row is display text except the
   priority/rate inputs; name, badge label, cutoff days and room preferences
   edit inside the dialog, whose inputs belong to the same step form. */
.setup-wizard__tier-actions { white-space: nowrap; }
.setup-wizard__tier-action-buttons { display: inline-flex; align-items: center; gap: var(--wa-space-2xs); vertical-align: middle; }
.setup-wizard__tier-cutoff { white-space: nowrap; }
.setup-wizard__edit-tier { display: inline-flex; align-items: center; gap: var(--wa-space-2xs); padding: var(--wa-space-2xs) var(--wa-space-xs); border: 1px solid var(--wa-color-neutral-border-normal); border-radius: var(--wa-border-radius-m); background: var(--wa-color-surface-default); color: var(--wa-color-text-normal); font-size: var(--wa-font-size-s); cursor: pointer; white-space: nowrap; }
.setup-wizard__edit-tier:hover { background: var(--wa-color-neutral-95); }
.setup-wizard__tier-form { display: flex; flex-direction: column; gap: var(--wa-space-m); }
.setup-wizard__tier-form wa-select { width: 100%; }
.setup-wizard__tier-form-actions { display: flex; justify-content: flex-end; }

/* HMS-1202 — submits from the wizard form (the cutoffs "Show" rows-per-page
   select, page buttons, Add/Remove Rule, Continue) are full-page Turbo visits
   whose only feedback was Turbo's delayed progress bar, so the wait read as a
   dead click. The submit-busy controller marks the form .auto-submit--busy +
   aria-busy on turbo:submit-start; dim the card and spin a viewport-centred
   loader until the visit swaps the page. The spinner is position:fixed, not
   absolute, because the form is taller than the viewport — an absolutely
   centred spinner could land below the fold. Reuses the dashboard-spin
   keyframes from admin_dashboard.css (all stylesheets load via :app). */
.setup-wizard__form.auto-submit--busy { cursor: progress; }
.setup-wizard__form.auto-submit--busy > * { opacity: 0.4; pointer-events: none; }
.setup-wizard__form.auto-submit--busy::after {
  content: "";
  position: fixed;
  top: 50%; left: 50%;
  width: 2rem; height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 3px solid var(--wa-color-surface-border);
  border-top-color: var(--wa-color-brand-fill-loud);
  border-radius: 50%;
  animation: dashboard-spin 0.8s linear infinite;
  pointer-events: none;
  z-index: 90;
}
.setup-wizard__form.auto-submit--busy::before {
  content: "Loading…";
  position: fixed;
  top: calc(50% + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  font-size: 0.8125rem;
  color: var(--wa-color-text-quiet);
  pointer-events: none;
  z-index: 90;
}
