/* Turnstyle Account Manager: the step-by-step wizards (Create event, Add
   Ticket, Add Price Tier). Colors and sizes come from the variables in
   app.css; nothing here sets a color of its own. */

.wiz { max-width: 44rem; }
.wiz > h2 { margin-top: 0.5rem; overflow-wrap: anywhere; }

/* ── Step indicator ── */
.wiz-progress { margin: 0.75rem 0 1rem; }
.wiz-count { margin: 0 0 0.5rem; font-weight: 700; }
.wiz-steps { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.wiz-steps li {
  display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 0.9rem;
}
.wiz-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--surface-2); color: var(--text);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.wiz-steps li.is-done { color: var(--text); }
.wiz-steps li.is-done .wiz-num { background: var(--ok-bg); color: var(--ok-text); }
.wiz-steps li[aria-current="step"] { border-color: var(--text); color: var(--text); font-weight: 700; }
.wiz-steps li[aria-current="step"] .wiz-num { background: var(--accent); color: var(--on-accent); }

/* On a phone only the current step keeps its name; the others show their
   number (the names stay available to screen readers). */
@media (max-width: 560px) {
  .wiz-steps li:not([aria-current="step"]) { padding: 0.25rem 0.3rem; }
  .wiz-steps li:not([aria-current="step"]) .wiz-name {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}

/* ── The step ── */
.wiz-form.card { margin-top: 0; }
.wiz-form .wiz-title { margin-top: 0; font-size: 1.2rem; }
.wiz-form .actions { margin-bottom: 0; }
.wiz[aria-busy="true"] a { pointer-events: none; opacity: 0.6; }
/* The buttons stack full width on a phone, so none is cut off or squeezed. */
@media (max-width: 420px) {
  .wiz-form .actions .btn { flex: 1 1 100%; }
}

/* A message tied to one field. */
.field-error { margin: 0.3rem 0 0; font-size: 0.9rem; font-weight: 600; color: var(--err-text); }

/* ── Review ── */
.wiz-review { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.wiz-review:first-of-type { border-top: 0; padding-top: 0; }
.wiz-review-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.wiz-review-head h3 { margin: 0; font-size: 1.05rem; }
.wiz-edit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 0.5rem; font-weight: 600; }
.wiz-review .details { margin-top: 0; }

/* A notice that offers the next thing to do (after the Ticket wizard). */
.notice .actions { margin-bottom: 0; }

/* ── The web address shown under the event name (Create event) ── */
.addr {
  margin: -0.35rem 0 1rem; padding: 0.6rem 0.8rem; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.addr-label { margin: 0 0 0.15rem; font-size: 0.9rem; font-weight: 600; }
.addr-value { min-height: 1.5em; font-family: var(--mono); font-size: 0.95rem; overflow-wrap: anywhere; }
/* A guess made in the browser, before the server has confirmed it. */
.addr-value.is-guess { color: var(--muted); }
.addr-value.is-empty { color: var(--muted); font-family: inherit; }
.addr-why { margin-top: 0.3rem; font-size: 0.9rem; color: var(--warn-text); }
.addr-why[hidden] { display: none; }
.addr-review { min-width: 0; }

/* A problem with one field that has its own button (the list of types did not load). */
.field-note { margin: 0.4rem 0 0; color: var(--warn-text); }
.field-note[hidden] { display: none; }
.field-note .btn { margin-left: 0.25rem; }

/* ── Search and sharing: the two fields, their counters and the preview ── */
.seo .field:last-of-type { margin-bottom: 0.75rem; }
.seo-count { font-variant-numeric: tabular-nums; }
.serp { margin: 0; min-width: 0; }
.serp-box {
  padding: 0.75rem 0.9rem; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.serp-title { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--info-text); overflow-wrap: anywhere; }
.serp-url { margin: 0.2rem 0; font-size: 0.85rem; color: var(--ok-text); overflow-wrap: anywhere; }
.serp-url[hidden] { display: none; }
.serp-desc { margin: 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.serp-desc.is-quiet { color: var(--muted); font-style: italic; }
