/* Wardrobe Concierge. Loaded after styles.css and reusing its tokens
   (--bg, --card, --ink, --muted, --line, --accent, --gold, --radius, --shadow)
   so the page belongs to the same site; only the layout here is new. */

.stylistmain { max-width: 1180px; margin: 0 auto; }

.step { margin: 0 0 42px; }
/* styles.css uses `.results` for the catalogue's card grid; here it is a
   section that must flow normally, or the tabs and panes get squeezed into
   grid cells. */
.step.results { display: block; }
.stephead { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; }
.stepn {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
}
.stephead h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px; font-weight: 600; margin: 0; line-height: 1.15;
}
.stepsub { margin: 3px 0 0; color: var(--muted); font-size: 14px; max-width: 68ch; }

/* ── Inspiration ─────────────────────────────────────────────────────────── */
.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: var(--card); padding: 26px; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.over {
  border-color: var(--accent); background: var(--accent-soft); outline: none;
}
.dropzone.full { opacity: 0.5; pointer-events: none; }
.dropinner { display: grid; gap: 4px; justify-items: center; }
.dropicon { font-size: 22px; color: var(--accent); line-height: 1; }
.dropnote { color: var(--muted); font-size: 13px; }

.inspirations { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.inspo { position: relative; margin: 0; width: 132px; }
.inspo img { width: 100%; border-radius: 10px; display: block; box-shadow: var(--shadow); }
.inspodel {
  position: absolute; top: -7px; right: -7px; width: 24px; height: 24px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted);
}
.inspodel:hover { color: var(--ink); border-color: var(--ink); }

.palettebar { margin-top: 16px; }
.plabel { font-size: 13px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sw {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 7px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  cursor: pointer; font-size: 13px; opacity: 0.42;
}
.sw.on { opacity: 1; border-color: var(--ink); }
.sw i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.12); }
.sw em { color: var(--muted); font-style: normal; font-size: 11.5px; }

/* ── The brief ───────────────────────────────────────────────────────────── */
.brief { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.bfield {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 13px 15px 15px; margin: 0;
}
.bwide { grid-column: 1 / -1; }
.bfield legend {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--muted); font-weight: 600; padding: 0 4px;
}
.legendnote { text-transform: none; letter-spacing: 0; font-weight: 400; }
.bfield select, .bfield input[type="number"] {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); font: inherit; font-size: 14px; color: var(--ink); width: 100%;
}
.bfield input[type="number"] { width: 92px; }
/* The second half of "where he lives" — the state or region, shown only for
   countries that span more than one climate. */
#region { margin-top: 8px; }
.unitrow label {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 12px; font-size: 13px; color: var(--muted);
}
.hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

.tones { display: flex; flex-wrap: wrap; gap: 8px; }
.tone {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  cursor: pointer; font-size: 13px;
}
.tone i { width: 22px; height: 22px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.12); }
.tone.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); cursor: pointer; font-size: 13px; color: var(--ink);
}
.chips .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.actionrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
button.primary {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
button.primary:hover { filter: brightness(1.08); }
button.primary:disabled { opacity: 0.55; cursor: default; }
button.ghost {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font: inherit; cursor: pointer; color: var(--ink);
}
button.ghost:hover { border-color: var(--ink); }
.actionnote { font-size: 13px; color: var(--muted); }

/* ── Results ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button {
  padding: 10px 15px; border: none; background: none; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.panehead {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px; font-weight: 600; margin: 4px 0 6px;
}
.panenote { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; max-width: 78ch; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 30px; }
.slot { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 14px; }
.slot.gap { border-style: dashed; }
.slothead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slothead b { font-size: 14px; }
.slotcol { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0, 0, 0, 0.12); }
.slotspec { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.slotgap { font-size: 13px; color: var(--gold); margin: 0; }
.alts { margin-top: 10px; }
.alts summary { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.altgrid { display: grid; gap: 8px; margin-top: 8px; }

.cloth { display: flex; gap: 11px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--bg); }
/* Wraps UFF.coverFor output, which brings its own .cover element. */
.cloth .ccover { flex: none; width: 78px; min-height: 78px; background: var(--line); position: relative; }
.cloth .ccover .cover { margin: 0; border-radius: 0; height: 100%; aspect-ratio: auto; }
.cloth .ccover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cloth .ccover .cover.strip { display: grid; grid-auto-flow: row; grid-auto-rows: 1fr; gap: 1px; }
.cloth .ccover .cover.none { display: grid; place-items: center; }
.cloth .ccover .cover.none span { font-size: 9px; text-align: center; line-height: 1.2; padding: 0 4px; }
.cloth .ccover .coverbadge { display: none; }
.cbody { padding: 9px 11px 10px 0; min-width: 0; flex: 1; }
.ctop { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ctop h4 { margin: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cscore {
  flex: none; font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 1px 7px;
}
.cmill, .cspec { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creasons { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; }
.creasons li { color: var(--muted); }
.creasons li.good::before { content: "\2713  "; color: var(--accent); }
.creasons li.bad::before { content: "!  "; color: var(--gold); }
.cloth.compact .ccover { width: 56px; }

/* Pieces he already owns, from the 360 audit. */
.handoff {
  border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius);
  padding: 12px 16px; margin: 0 0 26px; font-size: 13.5px; color: var(--ink);
}
.handoff a { color: var(--accent); }
.linkbtn { border: none; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.slot.owned { border-color: var(--accent); }
.slot.refresh { border-color: var(--gold); }
.ownedpiece { display: flex; gap: 10px; align-items: center; margin: 8px 0 4px; }
.opcover { flex: none; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.1); }
.opcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opbody { display: grid; min-width: 0; }
.opcaption { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--accent); font-weight: 600; }
.slot.refresh .opcaption { color: var(--gold); }
.opbody b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opmeta { font-size: 12px; color: var(--muted); }
.specitem.owned { border-style: solid; border-color: var(--accent); }

.specgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.specitem { border: 1px dashed var(--line); border-radius: 11px; padding: 12px 13px; background: var(--card); }
.specitem .slotspec { margin-bottom: 0; }

.outfits { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 16px; }
.outfit { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 15px; }
.ohead { display: flex; align-items: center; gap: 10px; }
.ohead .on {
  width: 25px; height: 25px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
}
.ohead h4 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-weight: 600; }
.opieces { list-style: none; margin: 11px 0 0; padding: 0; display: grid; gap: 7px; }
.opieces li { display: grid; grid-template-columns: 14px auto 1fr; gap: 8px; align-items: baseline; font-size: 13px; }
.opieces span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onote { margin: 11px 0 0; font-size: 12px; color: var(--muted); font-style: italic; }

.boardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 13px; }

.fitgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.fitcard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 15px 17px; }
.fitcard.wide { margin-top: 16px; }
.fitcard h4 { margin: 0 0 10px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-weight: 600; }
.fitcard dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.fitcard dt { color: var(--muted); }
.fitcard dd { margin: 0; }
.fitcard dd .alt { color: var(--muted); font-size: 12px; }
.fitnote { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.avoidlist { margin: 0 0 14px; padding-left: 18px; font-size: 13px; color: var(--muted); }
.avoidlist li { margin: 4px 0; }
.avoidlist .dot { margin-right: 6px; }

/* ── Written consultation ────────────────────────────────────────────────── */
.locked { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 22px 24px; max-width: 70ch; }
.locked h4 { margin: 0 0 8px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-weight: 600; }
.locked p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.locked .warn { color: var(--gold); }
.written {
  max-width: 74ch; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 30px;
}
.written h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; margin: 0 0 10px; }
.written h4 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; font-weight: 600; margin: 26px 0 8px; }
.written .lede { font-size: 16px; color: #3a382f; }
.written p { font-size: 14.5px; }
.palrow { font-size: 13.5px; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.palrow b {
  min-width: 62px; color: var(--muted); font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px;
}
.pill { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; }
.pill.off { background: #f2ece2; color: var(--gold); }
.wlist { padding-left: 20px; font-size: 14px; }
.wlist li { margin: 10px 0; }
.wcloth { color: var(--accent); font-weight: 600; }
.wspec { color: var(--muted); font-size: 13px; }
.wmeta { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .stephead h2 { font-size: 22px; }
  .slots, .outfits, .boardgrid { grid-template-columns: 1fr; }
  .written { padding: 18px; }
}

/* ── Pairing view (shared by /stylist and /audit; markup in closet.js) ────── */
.pairpicker { margin-top: 6px; }
.pairpicker .chips { margin-bottom: 14px; }
.pairpicker h4 { margin: 14px 0 8px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.pairpicker h4 .count { color: var(--muted); font-weight: 500; font-size: 13px; }
.pairpicker h4.lv-good { color: var(--accent); }
.pairpicker h4.lv-warn { color: var(--gold); }
.pairpicker h4.lv-note { color: var(--ink); }
.pairlist { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; max-width: 80ch; }
.pairlist li { display: grid; grid-template-columns: 14px auto 1fr; gap: 10px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13.5px; }
.pairlist li span { color: var(--muted); font-size: 12.5px; }
.pairlist.lv-good li { border-left: 3px solid var(--accent); }
.pairlist.lv-warn li { border-left: 3px solid var(--gold); }
.pairlist.lv-note li { border-left: 3px solid var(--line); }

/* What to add, in order — the audit's findings pane. The number is outfits unlocked. */
.addfirst { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; max-width: 80ch; }
.addfirst li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.addfirst li.weak { border-style: dashed; }
.addfirst .addrank { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 22px; color: var(--accent); line-height: 1.1; white-space: nowrap; }
.addfirst li.weak .addrank { color: var(--gold); }
.addfirst .addbody { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.addfirst .addcol { color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.addfirst .addcol .dot { margin-right: 5px; vertical-align: -2px; }
.addfirst small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* ── Budget: one ceiling per garment among the additions ─────────────────── */
.budget { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 14px 18px 6px; margin: 0 0 18px; }
.budget .bhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.budget .bhead b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 600; }
.budget .bhead span { font-size: 13px; color: var(--muted); max-width: 70ch; }
.budget .bhead .linkbtn { margin-left: auto; font-size: 13px; }
.budget .brow { display: grid; grid-template-columns: 150px 1fr; gap: 4px 16px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.budget .brow label { display: flex; flex-direction: column; font-size: 14px; }
.budget .brow label small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.budget .brow input[type="range"] { width: 100%; accent-color: var(--accent); }
.budget .brow output { grid-column: 2; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .budget .brow { grid-template-columns: 1fr; } .budget .brow output { grid-column: 1; } }
.cloth .cprice { font-size: 13px; font-weight: 600; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.cloth .cprice span { font-weight: 500; color: var(--muted); font-size: 12px; }

/* Undertone tells: three short rows of chips under the undertone picker, and
   a verdict line with the palette that reading would give him. */
.clues { margin-top: 8px; }
.clues summary { font-size: 12.5px; color: var(--accent); cursor: pointer; list-style: none; }
.clues summary::before { content: "▸ "; color: var(--muted); }
.clues[open] summary::before { content: "▾ "; }
.clues summary::-webkit-details-marker { display: none; }
.cluerow { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 6px 12px; align-items: center; margin-top: 8px; }
.cluerow .clueq { font-size: 12.5px; color: var(--ink); }
.cluerow .chips .chip { padding: 5px 10px; font-size: 12px; }
.clueverdict { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.clueverdict b { color: var(--ink); font-weight: 600; }
.clueverdict .palrow { margin: 0; }
.clueverdict .dot.big { width: 16px; height: 16px; }
@media (max-width: 640px) { .cluerow { grid-template-columns: 1fr; gap: 4px; } }

/* The staple's render on a slot: a small still life at the left, the slot's
   text and cloth flowing beside it. */
.slot.haspic { position: relative; padding-left: 96px; min-height: 112px; }
.slot .slotpic { position: absolute; left: 14px; top: 14px; width: 70px; height: 88px; border-radius: 8px; overflow: hidden; background: #e8e0d3; display: block; }
.slot .slotpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot .slotpic:hover { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 560px) { .slot.haspic { padding-left: 80px; } .slot .slotpic { width: 56px; height: 70px; } }
