/* CP-4.7 — guided watch wizard (env0 5-step pattern) */

.watch-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(6px);
}

.watch-wizard-overlay[hidden] {
  display: none !important;
}

.watch-wizard-card {
  width: min(640px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(160deg, rgba(12, 24, 44, 0.98), rgba(6, 12, 24, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.55);
  padding: 1.35rem 1.5rem 1.25rem;
}

.watch-wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.watch-wizard-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.watch-wizard-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.watch-wizard-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.watch-wizard-close:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.watch-wizard-stepper {
  display: flex;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.watch-wizard-stepper li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
}

.watch-wizard-stepper li.is-active {
  color: var(--accent);
  font-weight: 600;
}

.watch-wizard-stepper li.is-done {
  color: var(--onboard-green, #34d399);
}

.watch-wizard-stepper-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.watch-wizard-stepper li.is-active .watch-wizard-stepper-bar,
.watch-wizard-stepper li.is-done .watch-wizard-stepper-bar {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #34d399));
}

.watch-wizard-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.watch-wizard-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.watch-wizard-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.watch-wizard-type-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.watch-wizard-type-card.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.watch-wizard-type-card strong {
  font-size: 0.82rem;
}

.watch-wizard-type-card small {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.watch-wizard-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.watch-wizard-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.watch-wizard-fields input,
.watch-wizard-fields select,
.watch-wizard-fields textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.watch-wizard-review {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  line-height: 1.55;
}

.watch-wizard-review dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.watch-wizard-review dd {
  margin: 0.15rem 0 0.65rem;
}

.watch-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.watch-wizard-skip {
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.watch-wizard-skip:hover {
  color: var(--text);
}

.watch-wizard-card--catalog {
  width: min(720px, 100%);
}

.watch-wizard-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(42vh, 360px);
  overflow: auto;
  margin-bottom: 0.5rem;
}

.watch-wizard-catalog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.watch-wizard-catalog-row:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.watch-wizard-catalog-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.watch-wizard-catalog-row-main strong {
  font-size: 0.86rem;
}

.watch-wizard-catalog-row-main small {
  font-size: 0.72rem;
  color: var(--muted);
}

.watch-wizard-catalog-row-cta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.watch-wizard-catalog-link {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}

.watch-wizard-signin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 560px) {
  .watch-wizard-type-grid {
    grid-template-columns: 1fr;
  }

  .watch-wizard-stepper li span:last-child {
    display: none;
  }
}
