/* First-project setup stays separate from project-scoped dashboard controls. */
.app-shell.is-setup {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #fafbfc;
}
.is-setup .sidebar {
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 340px) minmax(
      160px,
      1fr
    );
  align-items: center;
  gap: 28px;
  padding: 22px 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}
.is-setup .sidebar > .brand {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  justify-self: start;
}
.setup-header-progress,
.onboarding-dialog-progress {
  --wizard-ink: var(--ink);
  --wizard-muted: var(--muted);
  --wizard-line: var(--line);
  min-height: 32px;
}
.setup-header-progress {
  display: none;
}
.is-setup .setup-header-progress {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.is-setup .workspace-switch,
.is-setup #view-switcher,
.is-setup #main-nav,
.is-setup .topbar,
.is-setup .drawer-backdrop,
.is-setup [data-collapse-sidebar] {
  display: none;
}
.is-setup .sidebar-help,
.is-setup .profile-copy,
.is-setup .profile-menu [data-account]:not([data-account="logout"]),
.is-setup .profile-menu .menu-divider {
  display: none;
}
.setup-theme-toggle {
  display: none;
}
.is-setup .setup-theme-toggle {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-right: 76px;
}
.is-setup .profile-footer {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  border: 0;
  padding: 0;
  margin: 0;
}
.is-setup .profile-trigger {
  padding: 5px 7px;
  gap: 9px;
}
.is-setup .profile-menu {
  top: calc(100% + 8px);
  bottom: auto;
  left: auto;
  right: 0;
  width: 174px;
}
.profile-menu .account-signout {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--danger);
}
.profile-menu button:hover,
.profile-menu button:focus-visible {
  background: var(--menu-hover, #f3f4f6);
}
.is-setup .workspace-main {
  flex: 1;
  min-height: 0;
}
.is-setup #main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.onboarding-wizard {
  --wizard-ink: #1d2738;
  --wizard-muted: #7c8492;
  --wizard-line: #e2e5eb;
  width: 100%;
  max-width: 1200px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 0 auto;
  padding: 32px;
  color: var(--wizard-ink);
}
.wizard-progress {
  display: grid;
  gap: 11px;
  width: 100%;
  max-width: 440px;
  flex-shrink: 0;
  margin: 0 auto;
}
.wizard-progress-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--wizard-muted);
  font-size: var(--text-sm);
}
.wizard-progress-summary > span {
  color: var(--wizard-ink);
  font-weight: 500;
}
.wizard-progress-summary small {
  font-size: inherit;
}
.wizard-progress-track {
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--wizard-line);
}
.wizard-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 300ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .wizard-progress-fill {
    transition: none;
  }
}
.onboarding-wizard .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wizard-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scroll-padding-block: 24px;
}
.wizard-layout:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-radius: 10px;
}
.wizard-stage {
  width: 100%;
  flex-shrink: 0;
  margin: auto;
  min-width: 0;
}
.wizard-content {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  min-width: 0;
  padding: 0;
}
.wizard-heading {
  display: flow-root;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.wizard-kicker {
  display: block;
  font-size: var(--text-sm);
  letter-spacing: 1.65px;
  font-weight: 550;
  color: #8a93a0;
  margin-bottom: 16px;
}
.wizard-heading h1 {
  font-size: var(--text-lg);
  line-height: 1.14;
  letter-spacing: -1.4px;
  font-weight: 550;
  margin: 0 0 18px;
}
.wizard-heading > p {
  font-size: var(--text-md);
  line-height: 1.8;
  color: #7a8391;
  max-width: 380px;
  margin: 0 auto;
}
.wizard-form {
  display: grid;
  gap: 23px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.wizard-field-label,
.onboarding-wizard legend {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  margin: 0 0 9px;
  padding: 0;
  color: var(--wizard-ink);
}
.onboarding-wizard input:not([type="radio"], [type="color"], [type="file"]),
.onboarding-wizard select,
.onboarding-wizard textarea {
  background: white;
  border-color: var(--wizard-line);
  border-radius: 10px;
  min-height: 46px;
  padding: 12px 13px;
  font-size: var(--text-sm);
}
.onboarding-wizard input::placeholder,
.onboarding-wizard textarea::placeholder {
  color: #9ba3ae;
}
.onboarding-wizard label.field {
  gap: 9px;
}
.onboarding-wizard .field-help {
  font-size: var(--text-sm);
  color: #8a93a0;
  line-height: 1.65;
  margin: 0;
}
.onboarding-wizard .button {
  border-radius: 10px;
  min-height: 43px;
  border-color: var(--wizard-line);
  font-size: var(--text-sm);
  padding: 11px 17px;
  gap: 9px;
}
.onboarding-wizard .button.primary {
  border-color: var(--blue);
  box-shadow: 0 2px 3px #164bdd12;
}
.onboarding-wizard .button svg {
  width: 16px;
  height: 16px;
}
.onboarding-wizard .button.small {
  min-height: 33px;
  padding: 7px 10px;
  font-size: var(--text-sm);
}
.website-input {
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: white;
  border: 1px solid var(--wizard-line);
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 20px;
}
.website-input:focus-within {
  border-color: #8fa7f8;
  box-shadow: 0 0 0 3px #164bdd09;
}
.website-site-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #8b94a1;
}
.website-site-icon > svg,
.website-site-icon > img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}
.website-prefix {
  flex-shrink: 0;
  margin-left: 10px;
  color: #8b94a1;
  font: inherit;
}
.website-input input {
  flex: 1;
  min-width: 0;
  width: 0;
  min-height: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 12px 0 !important;
  box-shadow: none;
  outline: none;
  font: inherit;
}
.website-input input:focus {
  box-shadow: none;
  outline: none;
}
/* Keep the website question as one compact group inside the shared content area. */
.website-form {
  gap: 0;
}
.website-form .wizard-heading {
  margin: 0 0 36px;
}
.website-field {
  position: relative;
}
.website-field > span:first-child {
  position: absolute;
  bottom: calc(100% + 9px);
}
.website-followup {
  align-self: start;
  display: grid;
  gap: 23px;
  padding-top: 23px;
}
.website-followup .wizard-return {
  margin-top: 0;
}
.wizard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.wizard-actions > .primary {
  flex: 1;
}
.wizard-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wizard-back {
  min-width: 88px;
  color: #747f8d;
  background: transparent;
}
.wizard-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 23px;
  font-size: var(--text-sm);
  color: #7c8592;
}
.wizard-skip svg,
.wizard-return svg {
  width: 13px;
  height: 13px;
}
.wizard-fineprint {
  font-size: var(--text-sm);
  color: #8b94a1;
  line-height: 1.8;
  text-align: center;
  margin: 24px 0 0;
}
.wizard-return {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 27px auto 0;
  font-size: var(--text-sm);
}
.wizard-brand-mark,
.upload-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--blue);
  border-radius: 10px;
  color: white;
  overflow: hidden;
}
.wizard-brand-mark {
  width: 35px;
  height: 35px;
  font-size: var(--text-md);
  font-weight: 500;
}
.wizard-brand-mark img,
.upload-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wizard-brand-mark svg {
  width: 20px;
  height: 20px;
}
.brand-upload-row {
  display: flex;
  align-items: center;
  gap: 17px;
}
.upload-brand {
  width: 72px;
  height: 72px;
  border: 1px solid #dce2eb;
  border-radius: 14px;
  background: #eef2f9;
  color: var(--blue);
  font-size: var(--text-lg);
}
.upload-brand svg {
  width: 29px;
  height: 29px;
}
.brand-upload-row > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.brand-upload-row .wizard-field-label {
  flex-basis: 100%;
  margin-bottom: 0;
}
.brand-upload-row small {
  flex-basis: 100%;
  font-size: var(--text-sm);
  color: #959da9;
  margin-top: 1px;
}
.brand-upload-row .text-button {
  font-size: var(--text-sm);
  margin-left: 5px;
}
.logo-step-upload {
  flex-direction: column;
  gap: 21px;
  text-align: center;
}
.logo-step-upload .upload-brand {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}
.logo-step-upload > div {
  justify-content: center;
}
.logo-step-upload .wizard-field-label {
  margin-bottom: 4px;
}
.logo-step-upload small {
  margin-top: 5px;
}
.wizard-timezone {
  position: relative;
  min-width: 0;
}
.timezone-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  min-height: 46px;
  width: 100%;
  border: 1px solid #e2e5eb;
  background: white;
  border-radius: 10px;
  text-align: left;
  font-size: var(--text-sm);
  color: #374256;
}
.timezone-trigger > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #8c95a2;
}
.timezone-trigger > svg:last-child {
  margin-left: auto;
}
#timezone-value {
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.wizard-timezone > .field-help {
  display: block;
  margin-top: 7px;
}
.timezone-control {
  position: relative;
}
.timezone-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: white;
  border: 1px solid #dde2e9;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 35px #18223424;
}
.timezone-popover.opens-up {
  top: auto;
  bottom: calc(100% + 4px);
}
.onboarding-wizard .timezone-search {
  min-height: 36px;
  font-size: var(--text-sm);
  padding: 9px;
  border-radius: 10px;
}
#timezone-options {
  max-height: var(--timezone-options-height, 190px);
  overflow: auto;
  margin-top: 7px;
}
#timezone-options [role="option"] {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: 5px;
  background: none;
  font-size: var(--text-sm);
  color: #576272;
  transition:
    background 140ms ease,
    color 140ms ease;
}
#timezone-options [role="option"] + [role="option"] {
  margin-top: 3px;
}
#timezone-options [role="option"] small {
  color: #9199a6;
  font-size: var(--text-sm);
  white-space: nowrap;
}
#timezone-options [role="option"]:hover,
#timezone-options [role="option"]:focus-visible,
#timezone-options [role="option"].active {
  background: var(--menu-hover, #f3f4f6);
  color: var(--wizard-ink);
}
#timezone-options [aria-selected="true"] {
  font-weight: 600;
}
.timezone-empty {
  padding: 12px;
  font-size: var(--text-sm);
  color: #8d96a3;
}
.onboarding-wizard fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.usecase-options {
  display: grid;
  gap: 8px;
}
.usecase-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #e2e5eb;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition:
    border-color 0.16s,
    background 0.16s;
}
.usecase-card input,
.platform-card input,
.theme-options input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.usecase-card:has(input:checked) {
  border-color: #a8bce9;
  background: #f5f7fe;
}
.usecase-card:has(input:focus-visible),
.platform-card:has(input:focus-visible),
.theme-options label:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.choice-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #e7eaf0;
  border-radius: 10px;
  color: #768292;
  background: #f9fafb;
  flex-shrink: 0;
}
.choice-icon svg {
  width: 17px;
  height: 17px;
}
.usecase-card:has(input:checked) .choice-icon {
  color: var(--blue);
  background: #eaf0ff;
  border-color: #dbe5fc;
}
.usecase-card strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
}
.usecase-card small {
  display: block;
  font-size: var(--text-sm);
  color: #939ba7;
  margin-top: 3px;
}
.choice-check {
  margin-left: auto;
  border: 1px solid #dbe1e9;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.choice-check svg {
  width: 11px;
  height: 11px;
  visibility: hidden;
  color: white;
}
.usecase-card:has(input:checked) .choice-check {
  background: var(--blue);
  border-color: var(--blue);
}
.usecase-card:has(input:checked) .choice-check svg {
  visibility: visible;
}
.platform-options > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.platform-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  padding: 11px 7px;
  border: 1px solid #e2e5eb;
  border-radius: 10px;
  background: white;
  min-height: 42px;
  font-size: var(--text-sm);
  text-align: center;
}
.platform-card > img,
.platform-card > svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.78;
}
.platform-card:has(input:checked) {
  border-color: #a8bce9;
  background: #f5f7fe;
  color: var(--blue);
}
.theme-options > div {
  display: flex;
  gap: 4px;
  background: #edf0f4;
  border: 1px solid #e3e7ed;
  padding: 4px;
  border-radius: 10px;
}
.theme-options label {
  position: relative;
  text-align: center;
  flex: 1;
  border-radius: 6px;
  padding: 9px;
  font-size: var(--text-sm);
  color: #818b99;
}
.theme-options label:has(input:checked) {
  background: white;
  box-shadow: 0 1px 3px #1723390c;
  color: #253149;
}
.setup-recommendation {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  background: #f0f3fa;
  border: 1px solid #e1e7f3;
  border-radius: 10px;
}
.setup-recommendation > svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #7289b1;
  margin-top: 1px;
}
.setup-recommendation strong {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #4a5b76;
}
.setup-recommendation p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: #8290a5;
  margin: 5px 0 0;
}
.brand-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e8ebf0;
  padding-top: 20px;
  min-width: 0;
}
.brand-summary > div {
  min-width: 0;
}
.brand-summary strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
}
.brand-summary small {
  display: block;
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #929ba8;
  margin-top: 4px;
}
.brand-summary > span:last-child {
  margin-left: auto;
  font-size: var(--text-sm);
  white-space: nowrap;
  border: 1px solid #e0e5ee;
  border-radius: 5px;
  padding: 5px 7px;
  color: #8691a2;
}
.installation-card {
  border: 1px solid #dfe4ec;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}
.installation-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #e9edf3;
}
.installation-heading > span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: var(--text-sm);
}
.installation-heading svg {
  width: 16px;
  height: 16px;
  color: #8b95a3;
}
#ready-widget-script {
  font-size: var(--text-sm);
  padding: 18px;
  line-height: 1.8;
  overflow: auto;
  margin: 0;
  color: #53657d;
  background: #f9fafc;
}
.installation-card > p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin: 15px 17px 10px;
  color: #8691a0;
}
.installation-card > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  margin: 0 17px 18px;
  color: var(--blue);
}
.installation-card > a svg {
  width: 13px;
  height: 13px;
}
.onboarding-wizard .form-error {
  font-size: var(--text-sm);
  line-height: 1.8;
}
@media (max-width: 960px) {
  .onboarding-wizard {
    padding: 32px 24px;
  }
  .wizard-heading h1 {
    font-size: var(--text-lg);
  }
  .platform-card {
    flex-direction: column;
  }
}
@media (max-width: 680px) {
  .is-setup .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 20px;
    gap: 18px;
  }
  .is-setup .setup-header-progress {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding-top: 8px;
  }
  .is-setup .setup-header-progress .wizard-progress {
    max-width: none;
  }
  .is-setup .setup-theme-toggle,
  .is-setup .profile-footer {
    grid-column: 2;
  }
  .is-setup .sidebar > .brand img {
    width: 128px;
    height: 32px;
  }
  .onboarding-wizard {
    margin: 0 auto;
    padding: 24px;
  }
  .wizard-content {
    width: 100%;
    padding: 0;
  }
  .wizard-layout {
    scrollbar-gutter: auto;
  }
  .wizard-heading h1 {
    font-size: var(--text-lg);
  }
  .wizard-heading h1 br {
    display: none;
  }
  .wizard-heading > p {
    font-size: var(--text-sm);
  }
  .platform-card {
    flex-direction: row;
  }
  .wizard-form {
    gap: 22px;
  }
  .brand-summary > span:last-child {
    max-width: 83px;
    white-space: normal;
    text-align: center;
  }
}

.wizard-preview-layout {
  display: grid;
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.wizard-editor {
  min-width: 0;
}
.wizard-editor .wizard-heading {
  margin-bottom: 32px;
}
#business-form {
  max-width: none;
}
.wizard-content > .installation-steps,
.wizard-content > .notice,
.wizard-content > .wizard-fineprint {
  max-width: 700px;
  margin-inline: auto;
}
.wizard-finish {
  text-align: center;
}
.wizard-finish-owl {
  display: block;
  margin: 0 auto 24px;
}
.wizard-finish .wizard-heading {
  margin-bottom: 24px;
}
.wizard-ready-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wizard-muted);
  font-size: var(--text-sm);
}
.wizard-ready-note svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}
@media (min-width: 1100px) {
  .onboarding-wizard {
    padding-inline: 48px;
  }
  .wizard-preview-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 72px;
    max-width: 1040px;
  }
  .wizard-preview-layout .wizard-heading {
    text-align: left;
  }
  .wizard-preview-layout .wizard-heading h1 {
    font-size: var(--text-lg);
  }
  .wizard-preview-layout .wizard-heading > p {
    margin-inline: 0;
  }
  .wizard-preview-layout .greeting-preview-widget {
    min-height: 420px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .onboarding-wizard * {
    animation: none !important;
    transition: none !important;
  }
}

#wizard-title:focus {
  outline: none;
}

/* Saved progress stays quiet and does not shift the primary input. */
.wizard-save-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
  margin-top: 22px;
  color: var(--wizard-muted);
  font-size: var(--text-sm);
}
.wizard-save-feedback .text-button {
  font-size: inherit;
}
.wizard-save-feedback .save-error {
  color: var(--danger);
}
.optional-label {
  margin-left: 5px;
  color: var(--wizard-muted);
  font-size: var(--text-sm);
  font-weight: 400;
}

.wizard-save-feedback[hidden] {
  display: none;
}

.greeting-preview {
  --preview-surface: #fff;
  --preview-line: #e5e7eb;
  --preview-ink: #1d2738;
  --preview-muted: #6b7280;
  --preview-accent: #164bdd;
  min-width: 0;
}
.greeting-preview[data-widget-theme="dark"] {
  --preview-surface: #111;
  --preview-line: #333;
  --preview-ink: #ededed;
  --preview-muted: #a3a3a3;
  --preview-accent: #90acff;
}
.greeting-preview-label {
  margin-bottom: 10px;
  color: var(--wizard-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 1.3px;
}
.greeting-preview-widget {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--preview-line);
  border-radius: 18px;
  background: var(--preview-surface);
  color: var(--preview-ink);
  box-shadow: 0 12px 32px #0000000d;
}
.greeting-preview-stage {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}
.greeting-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--preview-line);
  font-size: 13px;
  font-weight: 500;
}
.greeting-preview-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--preview-line);
  border-radius: 10px;
  color: var(--preview-accent);
  font-size: 14px;
}
.greeting-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.greeting-preview-logo svg {
  width: 17px;
  height: 17px;
}
.greeting-preview-header > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.greeting-preview-close {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 19px;
  font-weight: 400;
  opacity: 0.5;
}
.greeting-preview-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 20px 20px;
}
#greeting-preview-message {
  margin: 0 0 12px;
  color: var(--preview-ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
}
.greeting-preview-description {
  margin: 0 0 28px;
  color: var(--preview-muted);
  font-size: 12px;
  line-height: 1.7;
}
.greeting-preview-start {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: auto;
  padding: 13px 14px;
  border: 1px solid var(--preview-line);
  border-radius: 10px;
  color: var(--preview-accent);
  font-size: 12px;
}
.greeting-preview-start svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.greeting-preview-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 20px 18px;
  color: var(--preview-muted);
  font-size: 9px;
}
.greeting-preview-launcher {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 54px;
  height: 54px;
  border: 1px solid var(--preview-line);
  border-radius: 50%;
  background: var(--preview-surface);
  color: var(--preview-ink);
  box-shadow: 0 4px 12px #00000012;
}
.greeting-preview-launcher svg {
  width: 24px;
  height: 24px;
}

.greeting-preview-widget,
.greeting-preview-header,
.greeting-preview-logo,
.greeting-preview-start,
.greeting-preview-description,
.greeting-preview-footer,
.greeting-preview-launcher,
#greeting-preview-message {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .greeting-preview-widget,
  .greeting-preview-header,
  .greeting-preview-logo,
  .greeting-preview-start,
  .greeting-preview-description,
  .greeting-preview-footer,
  .greeting-preview-launcher,
  #greeting-preview-message {
    transition: none;
  }
}

.installation-steps {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}
.installation-steps .installation-card {
  margin: 0;
}
.install-instruction {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.7;
}
.install-instruction > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--wizard-line);
  border-radius: 50%;
  font-size: var(--text-sm);
  color: var(--wizard-muted);
}
.install-instruction code {
  font-size: var(--text-sm);
}
.installation-builder-help {
  margin: -5px 0 0;
  color: var(--wizard-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.installation-docs {
  justify-self: start;
  font-size: var(--text-sm);
}

/* The installation content, guide controls and actions share one column. */
.onboarding-wizard[data-step="6"] .installation-steps,
.onboarding-wizard[data-step="6"] .installation-notice,
.onboarding-wizard[data-step="6"] .wizard-footer {
  max-width: 640px;
}
.installation-title {
  margin-bottom: 28px;
}
.installation-title h1 {
  margin-bottom: 0;
}
.installation-steps {
  gap: 14px;
  margin-bottom: 0;
}
.installation-heading {
  min-height: 54px;
  padding: 10px 16px;
  gap: 12px;
}
.installation-heading .installation-script-label {
  gap: 9px;
  font-size: var(--text-sm);
  line-height: 20px;
}
.installation-script-label svg {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  color: var(--wizard-muted);
}
#ready-widget-script {
  padding: 20px;
  font-size: var(--text-sm);
  line-height: 1.8;
  tab-size: 2;
}
#ready-widget-script code {
  font: inherit;
  color: inherit;
}
#ready-widget-script .code-tag { color: #194eac; }
#ready-widget-script .code-attribute { color: #843295; }
#ready-widget-script .code-string { color: #146749; }
#ready-widget-script .code-punctuation { color: #586579; }
html[data-theme="dark"] #ready-widget-script .code-tag { color: #97bdff; }
html[data-theme="dark"] #ready-widget-script .code-attribute { color: #dcb0ed; }
html[data-theme="dark"] #ready-widget-script .code-string { color: #95d8b7; }
html[data-theme="dark"] #ready-widget-script .code-punctuation { color: #b9c5d8; }
#copy-install {
  min-width: 104px;
}
#copy-install[data-copied] {
  color: #176246;
  border-color: #bdd8ca;
  background: #f0f8f3;
}
html[data-theme="dark"] #copy-install[data-copied] {
  color: #95d8b7;
  border-color: #345845;
  background: #12251c;
}
.installation-guides {
  max-width: 640px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--wizard-line);
}
.installation-guides h2 {
  margin: 0 0 12px;
  font-size: var(--text-sm);
  line-height: 1.5;
  font-weight: 500;
  color: var(--wizard-muted);
}
.installation-guides-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.installation-guide-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 2px;
  border-radius: 6px;
  color: var(--wizard-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.installation-guide-link:hover,
.installation-guide-link:focus-visible {
  background: var(--soft);
  color: var(--wizard-ink);
}
.installation-guide-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
}
.installation-guide-marks img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.installation-guide-marks.multiple img {
  width: 18px;
  height: 18px;
}
html[data-theme="dark"] .installation-guide-marks img {
  filter: invert(1);
}
.installation-notice {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: var(--text-sm);
}
.onboarding-wizard[data-step="6"] .wizard-footer {
  padding-top: 24px;
}
@media (max-width: 600px) {
  #ready-widget-script { padding: 16px; font-size: var(--text-sm); }
  .installation-heading { padding-inline: 12px; }
  .installation-heading .installation-script-label { gap: 6px; font-size: var(--text-sm); }
  .installation-guides-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
