/* The publish wizard (publish/): one question per screen. Loaded after
   styles.css. What it shares with other pages stays there: the icon library's
   grid (also in Admin > Medals) and the head of a review (also the detail page
   and My space). */

.wizard-shell { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 56px; align-items: start; padding-block: 28px 56px; }
.wizard { min-width: 0; }
.wizard-steps { position: sticky; top: 96px; }
.wizard-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.wizard-step-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-3); font: inherit; font-size: 14px; text-align: left; }
button.wizard-step-link { cursor: pointer; color: var(--text-2); }
button.wizard-step-link:hover { background: var(--surface-2); color: var(--text); }
.wizard-step-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border); font-size: 12px; font-variant-numeric: tabular-nums; background: var(--surface); }
.wizard-step.is-done .wizard-step-mark { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.wizard-step.is-current .wizard-step-link { color: var(--text); font-weight: 600; background: var(--accent-soft); }
.wizard-step.is-current .wizard-step-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 861px) { .wizard-progress { display: none; } }
@media (max-width: 860px) {
  .wizard-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wizard-steps { display: none; }
}
.wizard-kicker { font-size: 13px; font-weight: 600; color: var(--text-3); margin: 0 0 14px; }
.wizard-progress { display: grid; gap: 8px; margin-bottom: 30px; }
.wizard-progress-label { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wizard-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.wizard-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .25s ease; }
.wizard-headline { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: flex-start; }
.wizard-headline-text { flex: 1 1 320px; min-width: 0; }
.wizard-headline .icon-preview { flex: none; }
.wizard-question { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.wizard-help { color: var(--text-2); margin: 8px 0 26px; max-width: 60ch; }
.wizard-body { max-width: none; }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); }
.wizard-nav .btn { min-width: 120px; justify-content: center; }
.wizard-nav .btn-primary:only-child { margin-left: auto; }
.wizard-foot { margin-top: 26px; font-size: 13px; }
.input-lg { font-size: 18px; padding: 13px 14px; }
.textarea-lg { min-height: 300px; }
.textarea-prompt { min-height: 180px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.with-counter { position: relative; }
.with-counter .input { padding-right: 76px; }
.with-counter .counter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.counter { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.choices { display: grid; gap: 12px; }
.choices-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.choices-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  text-align: left; cursor: pointer; display: grid; gap: 6px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  transition: border-color .15s, background .15s;
}
.choice b { font-size: 16px; }
.choice span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.choice:hover { border-color: var(--accent-border); }
.choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.choices-pills .choice { padding: 8px 14px; border-radius: 999px; }
.choices-pills .choice b { font-size: 13.5px; font-weight: 550; }
.checklist-panel summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.checklist-panel .checklist { margin-top: 12px; }
.shots-edit figure { margin: 0; display: grid; gap: 6px; justify-items: start; }

.review-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.review-text { margin: 0; font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .wizard-question { font-size: 23px; }
  .wizard-nav .btn { flex: 1; min-width: 0; }
}

/* ------------------------------------------------------------ the icon */

.icon-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.icon-head > label { font-size: 13.5px; font-weight: 600; }
.icon-preview { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.icon-preview .product-logo { width: 48px; height: 48px; border-radius: 12px; }
.icon-preview .icon-tile span { font-size: 17px; }
.icon-preview .logo-emoji span { font-size: 24px; }
.icon-preview-copy { display: grid; gap: 2px; min-width: 0; }
.icon-preview-copy b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.icon-preview-copy span { font-size: 12px; color: var(--text-3); }
.icon-none { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px dashed var(--border-strong); color: var(--text-3); font-weight: 700; font-size: 14px; }
.icon-empty { grid-column: 1 / -1; margin: 8px 4px; }

/* ------------------------------------------------------------ categories and tags */

.choices-pills .choice { display: inline-flex; align-items: center; gap: 6px; }
.choice-badge { font-size: 10.5px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent) !important; }
.tag-selected { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; padding: 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
}
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2);
  font-size: 12.5px; cursor: pointer; transition: border-color .12s, background .12s;
}
.tag-chip:hover:not(:disabled) { border-color: var(--accent-border); color: var(--text); }
.tag-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tag-chip:disabled { opacity: .45; cursor: not-allowed; }
.tag-chip-on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.tag-chip-on:hover:not(:disabled) { color: var(--accent-text); border-color: var(--accent); opacity: .9; }
.tag-x { font-size: 15px; line-height: 1; opacity: .85; }
.tag-chip-new { border-style: dashed; border-color: var(--accent); color: var(--accent); font-weight: 600; }

.review-change { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); font-weight: 600; }
.review-change:hover { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
