body.wizard-open {
  overflow: hidden;
}

.shortcut-wizard {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 0.75rem;
  animation: wizardFadeIn 0.35s ease;
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wizard-shell {
  width: min(100%, 420px);
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  background: #1c1c1e;
  border-radius: 1.25rem;
  border: 1px solid #3a3a3c;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color: #f2f2f7;
}

.wizard-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
}

.wizard-header .icon-btn {
  background: #2c2c2e;
  border-color: #3a3a3c;
  color: #f2f2f7;
  flex-shrink: 0;
}

.wizard-header-text {
  flex: 1;
  min-width: 0;
}

.wizard-eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8e8e93;
}

.wizard-title {
  margin: 0.125rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-counter {
  font-size: 0.8125rem;
  color: #8e8e93;
  font-variant-numeric: tabular-nums;
}

.wizard-progress-track {
  height: 3px;
  background: #2c2c2e;
  margin: 0 1rem;
  border-radius: 999px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff9f0a, #ff375f);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-stage-inner {
  display: grid;
  gap: 1rem;
}

.wizard-stack-wrap {
  min-width: 0;
}

.wizard-stage {
  flex: 1;
  overflow: auto;
  padding: 1rem 1rem 0.5rem;
}

.wizard-instruction {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #aeaeb2;
}

.wizard-instruction strong {
  color: #f2f2f7;
  font-weight: 600;
}

.inline-var {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: #0a84ff;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

.wizard-footer {
  display: flex;
  gap: 0.625rem;
  padding: 0.875rem 1rem 1rem;
  border-top: 1px solid #3a3a3c;
  background: #1c1c1e;
}

.wizard-footer .btn {
  flex: 1;
  background: #2c2c2e;
  border-color: #3a3a3c;
  color: #f2f2f7;
}

.wizard-footer .btn.primary {
  background: #0a84ff;
  border-color: #0a84ff;
  color: #fff;
}

.wizard-footer .btn:disabled {
  opacity: 0.35;
}

.wizard-enter {
  animation: wizardSlideIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-enter-back {
  animation: wizardSlideInBack 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wizardSlideIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizardSlideInBack {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sc-stack {
  display: grid;
  gap: 0.625rem;
}

.sc-stack-item.is-dimmed {
  opacity: 0.45;
  filter: saturate(0.7);
}

.sc-stack-item.is-highlight .sc-block {
  border-color: #0a84ff;
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.35);
}

.sc-block {
  background: #2c2c2e;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid #3a3a3c;
  animation: scPopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.sc-loop-block {
  border-color: #ff9f0a;
}

.sc-loop-marker {
  padding: 0.35rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ff9f0a;
  background: rgba(255, 159, 10, 0.12);
}

.sc-loop-content {
  border-left: 3px solid #ff9f0a;
  margin-left: 0.75rem;
}

.sc-loop-inner {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #48484a;
}

.sc-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.sc-filter-pill {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 0.45rem;
  background: #48484a;
  font-size: 0.8125rem;
}

.sc-filter-tap {
  border: 1px dashed #8e8e93;
  color: #aeaeb2;
}

.sc-filter-op {
  font-size: 0.75rem;
  color: #8e8e93;
  text-transform: lowercase;
}

.sc-add-btn {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px dashed #636366;
  border-radius: 0.5rem;
  background: transparent;
  color: #8e8e93;
  font-size: 0.8125rem;
  text-align: left;
  cursor: default;
}

.sc-show-more {
  font-size: 0.8125rem;
  color: #0a84ff;
  margin: 0.25rem 0;
}

.sc-body-picker {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.sc-body-option {
  flex: 1;
  text-align: center;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  background: #48484a;
  font-size: 0.75rem;
  color: #aeaeb2;
}

.sc-body-option.is-active {
  background: #0a84ff;
  color: #fff;
  font-weight: 600;
}

.sc-action-count {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #8e8e93;
}

.sc-action-head.sc-cat-reminders {
  background: #ff375f33;
}

.sc-action-head.sc-cat-repeat {
  background: #ff9f0a33;
}

.sc-action-head.sc-cat-scripting {
  background: #bf5af233;
}

.sc-action-head.sc-cat-web {
  background: #64d2ff33;
}

.sc-text-list {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.sc-text-list-item {
  padding: 0.35rem 0.45rem;
  background: #1c1c1e;
  border-radius: 0.45rem;
  border: 1px solid #48484a;
}

.sc-separator-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
}

.sc-action {
  background: #2c2c2e;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid #3a3a3c;
  animation: scPopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.sc-action-nested {
  margin-left: 1.25rem;
  border-color: #ff9f0a;
  box-shadow: inset 3px 0 0 #ff9f0a;
}

.sc-nest-line {
  width: 2px;
  height: 0.5rem;
  background: #ff9f0a;
  margin-left: 1.75rem;
  border-radius: 1px;
  animation: scPopIn 0.4s ease 0.08s backwards;
}

@keyframes scPopIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sc-action-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  background: #3a3a3c;
}

.sc-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.sc-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.sc-action-body {
  padding: 0.75rem 0.875rem 0.875rem;
  display: grid;
  gap: 0.625rem;
}

.sc-field {
  display: grid;
  gap: 0.3rem;
}

.sc-field-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8e8e93;
}

.sc-field-value {
  font-size: 0.875rem;
}

.sc-var {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
  background: #0a84ff;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

.sc-chip {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 0.45rem;
  background: #48484a;
  font-size: 0.8125rem;
}

.sc-chip-tap {
  border: 1px dashed #8e8e93;
  color: #aeaeb2;
}

.sc-static {
  font-size: 0.875rem;
  color: #f2f2f7;
}

.sc-text-template {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.875rem;
  color: #aeaeb2;
}

.sc-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8e8e93;
  margin-bottom: 0.25rem;
}

.sc-kv-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.625rem;
  background: #1c1c1e;
  border-radius: 0.625rem;
  border: 1px solid #48484a;
}

.sc-kv-pair {
  display: grid;
  gap: 0.25rem;
}

.sc-kv-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #636366;
}

.sc-kv-box {
  padding: 0.55rem 0.65rem;
  background: #2c2c2e;
  border: 1px solid #48484a;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  word-break: break-all;
  color: #f2f2f7;
}

.sc-kv-box.sc-kv-full {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.sc-kv-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sc-kv-with-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sc-copy-inline {
  flex-shrink: 0;
}

.sc-copy {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0.35rem;
  background: #0a84ff;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
}

.sc-missing {
  color: #ff9f0a;
  font-style: normal;
  font-size: 0.8125rem;
}

.sc-footnote {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #8e8e93;
}

.sc-phone-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #2c2c2e;
  border-radius: 0.875rem;
  border: 1px solid #3a3a3c;
  font-size: 0.9375rem;
}

.sc-phone-icon {
  font-size: 1.5rem;
}

.sc-done {
  text-align: center;
  padding: 2rem 1rem;
  background: #2c2c2e;
  border-radius: 0.875rem;
  border: 1px solid #30d158;
}

.sc-done-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #30d158;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  animation: scDonePop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes scDonePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.sc-done p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #aeaeb2;
}

.wizard-launch-btn {
  font-size: 1rem;
  padding: 0.875rem 1rem;
}

.sc-stack .sc-action:nth-child(1) {
  animation-delay: 0.05s;
}

.sc-stack .sc-action:nth-child(2) {
  animation-delay: 0.12s;
}
