/* Data -> Objects: the preview on top, then a sideways step rail
   (Type -> Customize -> Your list -> Columns -> Review) that advances
   itself as each step is done. Shared tokens and controls in /forge.css. */

.wiz { margin-bottom: 20px; }
.wiz-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; }
.wiz-nav::-webkit-scrollbar { display: none; }
.wiz-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 7px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text-secondary); font: inherit; font-size: 13px; cursor: pointer; }
.wiz-pill-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-border); color: var(--color-text-primary); font-size: 11.5px; font-weight: 700; }
.wiz-pill.is-current { border-color: var(--color-text-primary); color: var(--color-text-primary); }
.wiz-pill.is-current .wiz-pill-num { background: var(--color-text-primary); color: var(--color-bg); }
.wiz-pill.is-done .wiz-pill-num { background: var(--color-success); color: #fff; }

.wiz-rail { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; transition: height .25s ease; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding-bottom: 4px; }
.wiz-rail::-webkit-scrollbar { display: none; }
.wiz-step .forge-number { grid-template-columns: minmax(0, 1fr) 84px; }
.wiz-step .forge-number input[type="range"] { min-width: 0; }
.wiz-step { flex: 0 0 100%; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; box-sizing: border-box; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 20px 22px; min-height: 200px; }
.wiz-title { font-size: 1.1rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.wiz-hint { color: var(--color-text-secondary); font-size: 13.5px; margin: 0 0 16px; }
.wiz-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.wiz-foot-split { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wiz-arrows { display: flex; justify-content: space-between; margin: 10px 0 0; }
.wiz-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-primary); font: inherit; font-size: 16px; cursor: pointer; }
.wiz-arrow:disabled { opacity: 0.35; cursor: default; }

/* step 1: template cards */
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .template-grid { grid-template-columns: repeat(4, 1fr); } }
.tcard { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-bg); color: var(--color-text-primary); font: inherit; text-align: left; cursor: pointer; }
.tcard[aria-checked="true"] { border-color: var(--color-text-primary); box-shadow: 0 0 0 1px var(--color-text-primary); }
.tcard-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--color-surface); border: 1px solid var(--color-border); display: grid; place-items: center; }
.tcard-icon svg { width: 22px; height: 22px; }
.tcard-name { font-weight: 700; font-size: 14px; }
.tcard-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tcard-blurb { font-size: 12px; color: var(--color-text-secondary); line-height: 1.4; }
.tcard-price { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; color: var(--color-text-secondary); }
/* phones: one line per type - icon, name, price - so all eight and the look fit on a screen */
@media (max-width: 640px) {
  .template-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tcard { flex-direction: row; align-items: center; gap: 8px; padding: 8px 9px; }
  .tcard-icon { width: 28px; height: 28px; flex: none; }
  .tcard-icon svg { width: 18px; height: 18px; }
  .tcard-name { font-size: 13px; line-height: 1.2; }
  .tcard-blurb { display: none; }
  .tcard-price { font-size: 11px; }
}

.source-panel { margin-top: 10px; }
.import-row { margin-top: 8px; display: flex; justify-content: flex-end; }
.dataset-summary { font-size: 13.5px; margin: 0 0 6px; }
.forge-map { margin-top: 14px; }
#generate-button { margin-top: 12px; }
@media (max-width: 640px) { .wiz-step { padding: 16px; } }

/* The look: three tiles with a thumbnail each, right under the type grid. */
.wiz-sub { font-size: 13px; font-weight: 700; margin: 16px 0 8px; }
.look-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.look-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 9px; border: 1px solid var(--color-border, #cfcfcb); border-radius: 12px; background: var(--color-surface, #fff); color: inherit; font: inherit; cursor: pointer; text-align: center; min-width: 0; }
.look-tile[aria-checked="true"] { border-color: var(--color-text-primary, #0a0a0a); box-shadow: 0 0 0 1px var(--color-text-primary, #0a0a0a); }
.look-tile svg { width: 100%; max-width: 132px; height: auto; display: block; }
.look-name { font-weight: 700; font-size: 13.5px; }
.look-blurb { font-size: 11.5px; color: var(--color-text-secondary, #555); line-height: 1.3; }
.wiz-tune { margin: 12px 0 8px; border: 1px solid var(--color-border, #cfcfcb); border-radius: 10px; padding: 0 12px; }
.wiz-tune > summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 13.5px; }
.wiz-tune[open] > summary { border-bottom: 1px solid var(--color-border, #cfcfcb); margin-bottom: 8px; }
.wiz-tune > .field-hint { margin-top: 0; }
@media (max-width: 640px) { .look-blurb { display: none; } }

/* Size: three tiles with the inches, and Custom opening the exact fields right there. */
.size-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.size-row .mode-option { padding: 8px 6px; }
.size-row .mode-label { display: block; font-size: 13px; }
.size-row .mode-blurb { display: block; font-weight: 400; font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }
.size-custom { margin-top: 8px; padding: 10px 12px 4px; border: 1px dashed var(--color-border); border-radius: 10px; }
.size-custom .forge-group-title { display: none; }
.size-custom .field-row { margin-bottom: 8px; }
.size-inches { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; color: var(--color-text-secondary); margin: 0 0 8px; }
@media (max-width: 640px) { .size-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .size-row .mode-blurb { font-size: 10.5px; } }

/* Colours: one quiet line on the Pick step - the current swatches and their names - that opens to the strips. */
.wiz-colors { margin-top: 14px; border-top: 1px solid var(--color-border); padding-top: 4px; }
.wiz-colors > summary { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; list-style: none; font-size: 13px; }
.wiz-colors > summary::-webkit-details-marker { display: none; }
.wiz-colors > summary::after { content: "▸"; margin-left: auto; font-size: 11px; color: var(--color-text-secondary); }
.wiz-colors[open] > summary::after { content: "▾"; }
.wiz-colors-label { font-weight: 700; }
.wiz-colors-dots { display: inline-flex; gap: 4px; }
.wiz-colors-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); display: inline-block; }
.wiz-colors-names { color: var(--color-text-secondary); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-colors[open] > summary .wiz-colors-names { display: none; }
.wiz-colors .field-row { margin: 2px 0 4px; }
