/* Focused wizard chrome for WizardShell. Prefixed .wizard-shell so Manager's login
   .focus / .focus-card layout is not overridden. Tokens (--surface/--line/--teal-* /
   --fg-* / --r-* / --t / --ease) come from the host app. */

.wizard-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  outline: none;
}

.wizard-shell .focus-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.wizard-shell .focus-top .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 14px;
  background: none;
  border: none;
}

.wizard-shell .focus-top .back:hover { color: var(--fg); }

.wizard-shell .focus-top .title {
  margin-left: auto;
  font-size: 13px;
  color: var(--fg-subtle);
  font-weight: 600;
  letter-spacing: .02em;
}

.wizard-shell .focus-top .brand {
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--fg-strong);
  font-size: 16px;
}

.wizard-shell .focus-top .brand span { color: var(--teal-500); }

/* Header slot — the create wizard's escape hatch to the full form, on every step. */
.wizard-shell .focus-top .header-extra { margin-left: 14px; }

.wizard-shell .escape-hatch {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
}

.wizard-shell .focus-body {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 40px 22px;
  min-height: 0;
}

.wizard-shell .focus-inner {
  width: 100%;
  max-width: 480px;
  animation: wizard-swap var(--t) var(--ease);
}

.wizard-shell.wide .focus-body {
  padding: 18px 22px;
  justify-content: stretch;
}

.wizard-shell.wide .focus-inner {
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: none;
}

@keyframes wizard-swap {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.wizard-shell .focus-foot {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
}

.wizard-shell .focus-foot .pinfo {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.wizard-shell .pbar {
  height: 7px;
  border-radius: var(--r-full);
  background: var(--slate-200);
  overflow: hidden;
}

.wizard-shell .pbar span {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  transition: width var(--t-slow) var(--ease);
}

.wizard-shell .foot-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.wizard-shell .foot-actions .hint { font-size: 12px; color: var(--fg-subtle); }
.wizard-shell .foot-actions .grow { flex: 1; }

@media (max-width: 820px) {
  .wizard-shell .focus-body { padding: 26px 18px; }
  .wizard-shell.wide .focus-body { padding: 14px 16px; }
}

/* Step bodies for a create wizard: one question, its help, and the controls under it. */
.wizard-step h1 { font-size: 22px; margin: 0 0 6px; }
.wizard-step h2 { font-size: 15px; margin: 22px 0 6px; }
.wizard-step .wizard-help { color: var(--fg-muted); font-size: 14px; margin: 0 0 18px; }
.wizard-step label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-strong); margin: 0 0 6px; }
.wizard-step input[type=text], .wizard-step select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit;
  background: var(--surface);
}
.wizard-step .wizard-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wizard-step .wizard-choice {
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-full);
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.wizard-step .wizard-choice.chosen { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.wizard-step .wizard-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wizard-step .wizard-row select { flex: 1; }
.wizard-step .wizard-optional { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; white-space: nowrap; }
.wizard-step .wizard-optional input { width: auto; }
.wizard-step .wizard-review { list-style: none; margin: 0; padding: 0; }
.wizard-step .wizard-review li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wizard-step .wizard-review li b { color: var(--fg-strong); text-align: right; }
