/* The Boutique (client/js/ui/boutique.js; docs/superpowers/specs/2026-10-04-clothing-design.md
   §8): a pixel-kit window (client/css/social-ui.css) laid out as the clothing preview's
   boards: c1 (a shelf and the try-on), c2 (the colours), c3 (the confirm; the rules card is
   ui/hub/howto.js's, restyled at the end) and p1 (a phone). The values are the preview's
   (cloth.css). The window picks its layout from the room #windows gives it (boutique.js):
   .wide (the shelf, the try-on beside it), .mid (the same, narrower) and .phone (p1: a sheet
   under the bar; the try-on above the shelf, Buy pinned at the foot). Sized from #windows
   (100%), not the viewport. */

.pxui.bq { width: min(1560px, calc(100% - 24px)); height: min(960px, calc(100% - 16px)); display: flex; flex-direction: column; padding: 12px 14px; overflow: hidden; }
.bq h1, .bq h2, .bq p, .bq-dlg h2, .bq-dlg p { margin: 0; }
.bq .grow { flex: 1; }
.bq .kick { min-width: 0; overflow: hidden; color: var(--ink-3); font-size: 13px; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.bq .money, .bq-dlg .sums b { font-variant-numeric: tabular-nums; }
.bq .sepv { flex: none; width: 2px; height: 20px; background: var(--rule); }
.bq .muted { color: var(--ink-3); }
.bq .hub-pix, .bq-dlg .hub-pix { flex: none; display: inline-flex; }
.bq .hub-pix svg { display: block; }
.bq .osp, .bq .cic, .bq-dlg .cic { display: block; image-rendering: pixelated; }

/* ------------------------------------------------------------------ the head */
.bq .head { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 2px 10px; }
.bq .head h1 { font-size: 22px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bq .head .kick { margin-left: 4px; }
.bq .wal { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border: 3px solid var(--blue); border-radius: 8px; background: #fff; font-size: 16px; white-space: nowrap; }
.bq-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 3px solid var(--frame); border-radius: 8px; background: #fff; font-size: 18px; font-weight: 700; }
@media (hover: hover) { .bq-x:hover { border-color: var(--sel-line); } }

/* ------------------------------------------------------------------ the tabs: 8 shelves, Colours on the right */
.bq-tabs { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 0 10px; border-bottom: 2px dashed var(--rule); }
.bq-tabs .px-pocket { flex: none; height: 40px; padding: 0 12px; font-size: 15px; }
.bq-tabs .px-pocket .n { color: var(--ink-3); font-size: 12px; letter-spacing: 0; }
.bq-tabs .px-pocket[aria-selected=true] .n { color: var(--ink-2); }
.bq-tabs .px-pocket.col { margin-left: auto; }

/* ------------------------------------------------------------------ the body: the shelf and the try-on */
.bq-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 32%, 470px); grid-template-rows: minmax(0, 1fr); gap: 14px; padding-top: 10px; }
.bq .lcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.bq .frow { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.bq .frow .ctitle { color: var(--ink); }
.bq .chip2 { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border: 2px solid var(--plain-line); border-radius: 7px; background: var(--plain); font-size: 14px; font-weight: 600; }
.bq .chip2[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel); }
.bq .chip2 small { color: var(--ink-3); font-size: inherit; font-weight: 400; }
@media (hover: hover) { .bq .chip2:hover, .bq .sg:hover, .bq .dir:hover, .bq .cdot:hover { border-color: var(--sel-line); } }
.bq .shelf { flex: 1; min-height: 0; padding: 2px 4px 2px 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ring) transparent; }
.bq .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bq-empty { padding: 18px 8px; color: var(--ink-3); text-align: center; }

/* the cards: your trainer wearing it, its name, its price; the marks */
.bq .itm { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 22px 6px 8px; border: 3px solid var(--blue); border-radius: 12px; background: var(--slot); text-align: center; }
.bq .itm .pic { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 118px; padding-bottom: 4px; border-radius: 8px; background: radial-gradient(ellipse 34px 8px at 50% 86%, #00000022 0 98%, transparent), linear-gradient(#eaf3fc, #fff); }
.bq .itm .cic { width: 48px; height: 96px; }
.bq .itm .nm { max-width: 100%; min-height: 18px; font-size: 15px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.bq .itm .pr { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 15px; font-weight: 700; }
.bq .itm .pr.own { color: var(--online-text); font-size: 13px; font-weight: 500; }
.bq .itm .pr.bpp { color: #5a3a8a; }
.bq .itm.owned { border-color: #5aa86a; background: #e6f4e4; }
.bq .itm.isbp { border-color: #8a6ac8; background: #efe8fb; }
.bq .itm.sel { border-color: var(--sel-line); background: #fff3df; box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px #f6c98a; }
@media (hover: hover) { .bq .itm:hover { border-color: var(--sel-line); } }
.bq .mk, .bq .tr, .bq .trying { position: absolute; top: 5px; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border: 2px solid; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .05em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.bq .mk { left: 6px; background: #fff; }
.bq .mk.r, .bq .tr, .bq .trying { left: auto; right: 6px; }
.bq .mk.own { border-color: #2e7d32; color: #1e5a22; background: #e3f4e1; }
.bq .mk.new { border-color: #b0362a; color: #fff; background: var(--red); }
.bq .mk.bp { border-color: #5a3a8a; color: #fff; background: #8a6ac8; }
.bq .tr { border-color: #8a5200; color: #6a4a00; background: #fff1c2; }
.bq .trying { border-color: var(--sel-line); color: #fff; background: var(--sel-line); }

/* the key under the shelf, and the rules strip */
.bq .ckey { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); font-size: 13px; }
.bq .ckey > span { display: inline-flex; align-items: center; gap: 5px; }
.bq .ckey .mk, .bq .ckey .tr { position: static; }
.bq .ckey b.ok { color: var(--online-text); }
.bq .rstrip { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 8px 10px; border: 2px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 13px; }
.bq .rstrip > span:not(.grow) { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bq .rstrip > span:not(.grow):not(:first-child)::before { content: "·"; color: var(--ink-3); }
.bq .lnk { min-height: 30px; padding: 0 4px; border: 0; background: none; color: var(--blue-dk); font-size: 14px; font-weight: 600; text-decoration: underline; }

/* ------------------------------------------------------------------ Colours (c2): the 6 parts */
.bq .parts { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 2px 4px 2px 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ring) transparent; }
.bq .cprow { flex: none; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 10px 8px; border: 3px solid var(--blue); border-radius: 12px; background: var(--slot); }
.bq .cprow.on { border-color: var(--sel-line); background: #fff3df; }
.bq .cprow .pl > b { display: block; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; }
.bq .cprow .pl small { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.25; }
.bq .cprow .pl .now { display: block; margin-top: 3px; color: var(--ink); font-size: 13px; }
.bq .cprow .pl .now b { letter-spacing: .04em; text-transform: uppercase; }
.bq .csws { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 5px; }
.bq .csw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 7px 0 0; border: 0; background: none; color: var(--ink-2); font-size: 11px; line-height: 1.1; }
.bq .csw i { position: relative; display: block; width: 100%; max-width: 52px; height: 40px; border: 3px solid var(--frame); border-radius: 7px; font-style: normal; }
.bq .csw.std i { background: repeating-linear-gradient(45deg, #fff 0 6px, #e6edf6 6px 12px); }
.bq .csw.std i::after { content: "STD"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.bq .csw .cn { max-width: 100%; overflow: hidden; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; }
.bq .csw .p { margin-top: -3px; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bq .csw.std .p, .bq .csw.free .p, .bq .csw.own .p { color: var(--online-text); }
.bq .csw.own .p { font-weight: 600; }
.bq .csw.worn i { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--frame); }
.bq .csw.sel i { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sel-line); }
.bq .csw.sel .cn { color: var(--sel-line); font-weight: 700; }
.bq .csw .tk { position: absolute; right: -6px; top: -8px; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.bq .csw .fr { position: absolute; left: -2px; top: 0; height: 15px; padding: 0 3px; border-radius: 3px; background: #2e7d32; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .05em; line-height: 15px; text-transform: uppercase; }

/* ------------------------------------------------------------------ the try-on */
.bq .card { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: 3px solid var(--frame); border-radius: 12px; background: #fff; }
.bq .card .ch { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 7px; border-bottom: 3px solid var(--rule); background: linear-gradient(#cfe6fa, #eef6fd); }
.bq .card .ch h2 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.bq .try .cb { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 9px; padding: 10px 12px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ring) transparent; }
.bq .try .cb > * { flex: none; }
.bq .stagebox { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 222px; overflow: hidden; border: 3px solid var(--frame); border-radius: 10px;
  background: repeating-linear-gradient(90deg, #00000010 0 2px, transparent 2px 48px), repeating-linear-gradient(0deg, #00000010 0 2px, transparent 2px 48px), linear-gradient(#f1b263, #e39d4c); }
.bq .stagebox .ped { display: flex; align-items: flex-end; justify-content: center; }
.bq .stagebox .osp { width: 200px; height: 210px; }
.bq .turn { flex: none; width: 44px; height: 44px; padding: 0; border: 3px solid var(--frame); border-radius: 8px; background: #ffffffe6; font-size: 16px; font-weight: 700; }
@media (hover: hover) { .bq .turn:hover { border-color: var(--sel-line); } }
.bq .dirs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bq .dir { position: relative; display: flex; align-items: center; justify-content: center; height: 62px; padding: 0; border: 3px solid var(--plain-line); border-radius: 8px; background: var(--plain); }
.bq .dir[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel); }
.bq .dir .osp { width: 32px; height: 52px; }
.bq .dir .ar { position: absolute; right: 4px; bottom: 2px; color: var(--ink-3); font-size: 11px; }
.bq .seg { display: flex; gap: 4px; }
.bq .seg .sg { flex: 1; height: 40px; border: 2px solid var(--plain-line); border-radius: 7px; background: var(--plain); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.bq .seg .sg[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel); }
.bq .wear { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; padding: 6px 9px; border: 2px solid var(--rule); border-radius: 8px; background: #fff; font-size: 13px; line-height: 1.3; }
.bq .wear .wk { padding-top: 2px; color: var(--ink-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.bq .wear .wv b { color: var(--sel-line); }
.bq .colrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.bq .colrow .clab { width: 100%; color: var(--ink-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.bq .cdot { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 9px 0 5px; border: 2px solid var(--plain-line); border-radius: 7px; background: #fff; font-size: 13px; }
.bq .cdot.sq { justify-content: center; width: 32px; padding: 0; }
.bq .cdot i { display: block; width: 20px; height: 20px; border: 2px solid var(--frame); border-radius: 4px; }
.bq .cdot i.own { background: repeating-linear-gradient(45deg, #fff 0 4px, #e6edf6 4px 8px); }
.bq .cdot.sq i { width: 22px; height: 22px; }
.bq .cdot[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel); }
.bq .cmore { color: var(--ink-3); font-size: 12px; }
.bq .selinfo { display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); font-size: 13px; line-height: 1.3; }
.bq .selinfo .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); font-size: 18px; font-weight: 700; }
.bq .selinfo b { color: var(--ink); }
.bq .pill2 { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 2px solid var(--plain-line); border-radius: 5px; background: #fff; color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bq .pill2.uni { border-color: #2e7d32; color: #1e5a22; background: #e3f4e1; }
.bq .pill2.std { border-color: var(--blue); color: var(--blue-dk); background: #e6f0fb; }
.bq .pill2.rare { border-color: #8a5200; color: #6a4a00; background: #fff1c2; }
.bq .pill2.bp { border-color: #5a3a8a; color: #fff; background: #8a6ac8; }
/* Buy, pinned at the foot of the try-on */
.bq .buy { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 9px; border-top: 2px dashed var(--rule); }
.bq .try .cb > .buy { position: sticky; bottom: -12px; margin-bottom: -12px; padding-bottom: 12px; background: #fff; }
.bq .buy .px-btn { width: 100%; height: 52px; font-size: 19px; }
.bq .buy .after { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); font-size: 13px; }
.bq .buy .after b, .bq .pbuy .aft b { color: var(--ink); }

/* a short computer screen (1280 x 800): the try-on's picture and facings smaller */
@media (max-height: 860px) {
  .bq .stagebox { height: 178px; }
  .bq .stagebox .osp { width: 160px; height: 168px; }
  .bq .dir { height: 50px; }
  .bq .dir .osp { width: 24px; height: 39px; }
  .bq .itm .pic { height: 104px; }
}

/* ------------------------------------------------------------------ mid (700 to 1279 px): the colour rows' names above their swatches */
.bq.mid .head .kick { display: none; }
.bq.mid .cprow { grid-template-columns: minmax(0, 1fr); }
/* (the swatches wrap, as a phone's do: each at least 52 px, the price fits, a 44 px target) */
.bq.mid .csws { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); row-gap: 8px; }
.bq.mid .cprow .pl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.bq.mid .cprow .pl .now { margin-top: 0; }
.bq.mid .rstrip > span:not(:first-child):not(.grow) { display: none; }

/* ------------------------------------------------------------------ a phone (p1) */
/* a sheet under the bar (#windows starts under it), a grab handle; the tabs in
   their own strip (it scrolls inside itself if it must, never the page); the
   try-on above the shelf; the shelf scrolls; Buy pinned at the foot */
.pxui.bq.phone { left: 0; right: 0; top: 4px; bottom: 0; width: auto; height: auto; max-width: none; max-height: none; transform: none; padding: 0 10px; overflow: hidden; border-bottom-width: 0; border-radius: 16px 16px 0 0; }
.bq .grab { flex: none; width: 44px; height: 5px; margin: 7px auto 6px; border-radius: 3px; background: #c4d2e4; }
.bq.phone .head { gap: 6px; padding: 0 0 6px; }
.bq.phone .head h1 { flex: 1; min-width: 0; overflow: hidden; font-size: 19px; text-overflow: ellipsis; }
.bq.phone .head .grow { display: none; }
.bq.phone .bq-x { width: 44px; height: 44px; }
.bq .pwal { flex: none; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 2px 7px; overflow: hidden; font-size: 14px; white-space: nowrap; }
.bq .pwal .sepv { height: 16px; }
.bq .pwal .muted { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.bq .pbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bq.phone .bq-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding-bottom: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.bq.phone .bq-tabs .px-pocket { justify-content: center; min-width: 0; height: 44px; padding: 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.bq.phone .bq-tabs .px-pocket .n { display: none; }
.bq.phone .bq-tabs .px-pocket.col { margin-left: 0; border-color: #5a3a8a; background: #e6d6ff; }
.bq.phone .bq-tabs .px-pocket.col[aria-selected=true] { border-color: var(--sel-line); background: var(--sel); }
.bq .ptry { flex: none; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px; padding: 8px 0; }
.bq.phone .stagebox { height: 132px; gap: 0; }
.bq.phone .stagebox .turn { display: none; }
.bq.phone .stagebox .osp { width: 120px; height: 126px; }
.bq .ctl { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bq .psel { color: var(--ink-2); font-size: 12px; line-height: 1.3; }
.bq .psel > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bq .psel b { color: var(--ink); font-size: 15px; }
.bq.phone .dirs { gap: 4px; }
.bq.phone .dir { height: 44px; }
.bq.phone .dir .ar { position: static; color: var(--ink); font-size: 15px; font-weight: 700; }
.bq.phone .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bq.phone .seg .sg { height: 44px; padding: 0; font-size: 11px; font-weight: 700; }
.bq .pscr { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ring) transparent; }
.bq.phone .lcol { padding: 2px 2px 12px; }
.bq.phone .shelf, .bq.phone .parts { flex: none; padding: 0; overflow: visible; }
.bq.phone .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bq.phone .itm { padding: 20px 4px 6px; }
.bq.phone .itm .pic { height: 88px; }
.bq.phone .itm .cic { width: 32px; height: 64px; }
.bq.phone .itm .nm { font-size: 13px; }
.bq.phone .itm .pr { font-size: 14px; }
.bq.phone .mk, .bq.phone .tr, .bq.phone .trying { top: 4px; height: 18px; padding: 0 4px; font-size: 10px; }
.bq.phone .mk { left: 4px; }
.bq.phone .mk.r, .bq.phone .tr, .bq.phone .trying { left: auto; right: 4px; }
.bq.phone .cprow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.bq.phone .csws { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 8px; }
.bq.phone .cdot { min-width: 44px; justify-content: center; }
.bq.phone .rstrip { white-space: normal; }
.bq.phone .rstrip > span:not(.grow) { white-space: normal; }
.bq .pbuy { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; border-top: 2px dashed var(--rule); }
.bq .pbuy .px-btn { flex: 1; min-width: 0; height: 52px; font-size: 18px; }
.bq .pbuy .aft { flex: none; display: flex; flex-direction: column; width: 108px; color: var(--ink-2); font-size: 12px; line-height: 1.3; }
.bq.phone button { min-height: 44px; }
/* a sheet with little room (.tight: the pads under it, a phone on its side): one scroller under the head */
.bq.phone.tight .pbody { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ring) transparent; }
.bq.phone.tight .pscr { flex: none; overflow: visible; }
.bq.phone.tight .grab { margin: 4px auto 3px; }
@media (max-width: 359px) {
  .bq.phone .bq-mark { display: none; }
  .bq .ptry { grid-template-columns: 104px minmax(0, 1fr); }
  .bq.phone .stagebox .osp { width: 100px; height: 105px; }
}

/* ------------------------------------------------------------------ the confirm (c3) */
/* the scrim over the whole room: taps stay off the shelf */
.window.bq-scrim { inset: 0; max-width: none; max-height: none; padding: 8px; display: flex; align-items: center; justify-content: center; background: #0b1222b0; }
.pxui.bq-dlg { flex: none; width: min(470px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
.bq-dlg .dh { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 2px dashed var(--rule); }
.bq-dlg h2 { flex: 1; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; }
.bq-dlg .ci { display: flex; align-items: center; gap: 14px; }
.bq-dlg .cpic { flex: none; display: flex; align-items: flex-end; justify-content: center; width: 96px; height: 118px; padding-bottom: 4px; border: 3px solid var(--blue); border-radius: 10px; background: linear-gradient(#eaf3fc, #fff); }
.bq-dlg .cpic .cic { width: 48px; height: 96px; }
.bq-dlg .ct { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.bq-dlg .ct b { color: var(--ink); font-size: 21px; }
.bq-dlg.sm .cpic { width: 64px; height: 80px; }
.bq-dlg.sm .cpic .cic { width: 32px; height: 64px; }
.bq-dlg.sm .ct b { font-size: 18px; }
.bq-dlg .sums { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; padding: 9px 12px; border: 2px solid var(--rule); border-radius: 8px; background: #fff; font-size: 15px; }
.bq-dlg .sums b { text-align: right; }
.bq-dlg .sums .neg { color: var(--red-dk); }
.bq-dlg .sums .tot { padding-top: 5px; border-top: 2px dashed var(--rule); }
.bq-dlg .dnote, .bq-dlg .todo { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.bq-dlg .dnote b, .bq-dlg .todo b { color: var(--ink); }
.bq-dlg .todo { padding-left: 18px; }
.bq-dlg .why3 { padding: 9px 11px; border: 3px solid var(--red-edge); border-radius: 10px; background: #fdf1ee; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.bq-dlg .why3 b { color: var(--red-dk); }
.bq-dlg .dacts { display: flex; gap: 8px; }
.bq-dlg .dacts .px-btn { height: 48px; font-size: 17px; }
.bq-dlg .dacts .px-btn.a, .bq-dlg .dacts .px-btn.dis { flex: 1; min-width: 0; }
.bq-dlg .px-btn.dis { border-color: var(--plain-line); background: #e4e4dc; color: #7a8290; box-shadow: none; }
@media (max-width: 520px) {
  .window.bq-scrim { padding: 6px; align-items: flex-end; }
  .pxui.bq-dlg { width: 100%; }
  .bq-dlg .bq-x { width: 44px; height: 44px; }
  .bq-dlg .dacts .px-btn { min-height: 48px; }
}

/* ------------------------------------------------------------------ "How the Boutique works" (c3's right card) */
/* ui/hub/howto.js HOWTO.boutique: numbered lines in orange circles, no slot boxes */
.pxui.how-boutique { width: min(600px, 100%); }
.how-boutique .hub-how-list { gap: 13px; padding-top: 4px; }
.how-boutique .hub-how-row { align-items: flex-start; min-height: 0; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 16px; line-height: 1.38; }
.how-boutique .hub-how-tile { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #e08a3a; color: #fff; }
.how-boutique .hub-how-num { font-size: 16px; }

/* ------------------------------------------------------------------ touch: 44 px targets */
@media (pointer: coarse) {
  .bq button, .bq-dlg button { min-height: 44px; }
  .bq .bq-x, .bq-dlg .bq-x, .bq .cdot, .bq .turn { min-width: 44px; }
}

/* ================================================================== the Closet */
/* client/js/ui/closet.js (spec §9): boards c4 (a computer: Wearing now, Your pieces, Saved
   looks) and p2 (a phone: a sheet under the bar). The values are the preview's (c4/p2's own
   styles). .wide: three columns; .mid (700 to 1099 px): Wearing now beside the other two,
   stacked; .phone: p2. It shares the Boutique's ✕ / ? (.bq-x) and its question box (.bq-dlg). */
.pxui.closet { width: min(1320px, calc(100% - 24px)); height: min(940px, calc(100% - 16px)); display: flex; flex-direction: column; padding: 12px 14px; overflow: hidden; }
.closet h1, .closet h2, .closet h3, .closet p, .cl-dlg p { margin: 0; }
.closet .grow { flex: 1; }
.closet .kick { min-width: 0; overflow: hidden; color: var(--ink-3); font-size: 13px; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.closet .hub-pix { flex: none; display: inline-flex; }
.closet .hub-pix svg { display: block; }
.closet .osp, .closet .cic, .cl-dlg .cic { display: block; image-rendering: pixelated; }
.closet .head { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 2px 10px; }
.closet .head h1 { font-size: 22px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.closet .head .kick { margin-left: 4px; }
.cl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 350px minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 2px dashed var(--rule); }
.closet .card { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: 3px solid var(--frame); border-radius: 12px; background: #fff; }
.closet .card .ch { flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px 7px; border-bottom: 3px solid var(--rule); background: linear-gradient(#cfe6fa, #eef6fd); }
.closet .card .ch h2 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.closet .card .ch .kick { font-size: 12px; }
.closet .card .cb { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 9px; padding: 10px 12px 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ring) transparent; }
.closet .card .cb > * { flex: none; }
.closet .dnote { color: var(--ink-2); font-size: 13px; line-height: 1.4; }

/* Wearing now: the trainer, the facings, the summary, the two buttons, the colours */
.closet .stagebox { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; height: 200px; overflow: hidden; border: 3px solid var(--frame); border-radius: 10px; background: radial-gradient(ellipse 60px 12px at 50% 90%, #00000024 0 98%, transparent), linear-gradient(#dcecfa, #f4f9fe); }
.closet .stagebox .ped { display: flex; align-items: flex-end; justify-content: center; }
.closet .stagebox .osp { width: 96px; height: 156px; }
.closet .turn { flex: none; width: 44px; height: 44px; padding: 0; border: 3px solid var(--frame); border-radius: 8px; background: #ffffffe6; font-size: 16px; font-weight: 700; }
.closet .dirs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.closet .dir { position: relative; display: flex; align-items: center; justify-content: center; height: 62px; padding: 0; border: 3px solid var(--plain-line); border-radius: 8px; background: var(--plain); }
.closet .dir[aria-pressed=true] { border-color: var(--sel-line); background: var(--sel); }
.closet .dir .osp { width: 32px; height: 52px; }
.closet .dir .ar { position: absolute; right: 4px; bottom: 2px; color: var(--ink-3); font-size: 11px; }
.closet .wear { display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; padding: 6px 9px; border: 2px solid var(--rule); border-radius: 8px; background: #fff; font-size: 13px; line-height: 1.3; }
.closet .wear .wk { padding-top: 2px; color: var(--ink-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.closet .wear .wv { min-width: 0; overflow-wrap: anywhere; }
.closet .btn2 { display: flex; gap: 6px; }
.closet .btn2 .px-btn { flex: 1; min-width: 0; height: 44px; font-size: 14px; }
.closet .sect { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 9px; border-top: 2px dashed var(--rule); }
.closet .sect h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.closet .ocols { display: flex; flex-direction: column; gap: 6px; }
.closet .ocol { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; }
.closet .ocol .sl, .closet .slot .sl { color: var(--ink-3); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.closet .dots { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.closet .dot { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; }
.closet .dot i { display: block; width: 24px; height: 24px; border: 2px solid var(--frame); border-radius: 5px; }
.closet .dot.std i { background: repeating-linear-gradient(45deg, #fff 0 4px, #e6edf6 4px 8px); }
.closet .dot[aria-pressed=true] i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sel-line); }

/* Your pieces: a row a slot; STD / NONE dashed, your pieces on your trainer */
.closet .slot { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 0; border-bottom: 2px dashed #dce8f4; }
.closet .slot:last-child { border-bottom: 0; }
.closet .slot .sl small { display: block; color: var(--ink-3); font-size: 12px; letter-spacing: 0; text-transform: none; }
.closet .pcs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.closet .pc { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; overflow: hidden; border: 3px solid var(--blue); border-radius: 9px; background: #fff; }
.closet .pc.on { border-color: var(--sel-line); background: var(--sel); }
.closet .pc.std { border-style: dashed; border-color: var(--plain-line); background: var(--plain); color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.closet .pc.std.on { border-color: var(--sel-line); background: var(--sel); color: var(--ink); }
.closet .pc .cic { width: 48px; height: 48px; }
.closet .pc .wtag { position: absolute; left: 0; right: 0; bottom: 0; background: var(--sel-line); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .05em; line-height: 12px; text-align: center; text-transform: uppercase; }
.closet .pc.empty { width: auto; min-width: 0; height: auto; min-height: 56px; padding: 4px 10px; border-style: dashed; border-color: var(--plain-line); background: none; color: var(--ink-3); font-size: 12px; text-align: center; }
@media (hover: hover) { .closet .pc:not(.empty):hover, .closet .dir:hover, .closet .turn:hover, .cl-dlg .rl:hover { border-color: var(--sel-line); } .closet .dot:hover i { border-color: var(--sel-line); } }

/* Saved looks: a look's picture, name, what it is, Rename / Delete; Wear; Empty */
.closet .looks { display: flex; flex-direction: column; gap: 8px; }
.closet .look { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border: 3px solid var(--blue); border-radius: 12px; background: var(--slot); }
.closet .look.on { border-color: var(--sel-line); background: #fff3df; }
.closet .look .lp, .cl-dlg .rl .lp { display: flex; align-items: flex-end; justify-content: center; width: 62px; height: 84px; overflow: hidden; border-radius: 8px; background: linear-gradient(#eaf3fc, #fff); }
.closet .look .lp .cic { width: 48px; height: 78px; margin-bottom: 3px; }
.closet .look .lt { min-width: 0; line-height: 1.25; }
.closet .look .lt b { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.closet .look .lt small { display: block; color: var(--ink-2); font-size: 12px; }
.closet .look > .px-btn { height: 44px; padding: 0 14px; }
.closet .lacts { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 2px; }
.closet .lnk { min-height: 28px; padding: 0 2px; border: 0; background: none; color: var(--blue-dk); font-size: 13px; font-weight: 600; text-decoration: underline; }
.closet .lnk.del { color: var(--red-dk); }
.closet .look.empty { grid-template-columns: minmax(0, 1fr); min-height: 62px; border-style: dashed; border-color: var(--plain-line); background: var(--plain); color: var(--ink-3); font-size: 14px; text-align: center; }
.closet .look.edit, .closet .look.ask { grid-template-columns: 62px minmax(0, 1fr); }
.closet .look .ed { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.closet .look .ed .px-field { width: 100%; height: 40px; font-size: 16px; }
.closet .look .ed .row { display: flex; gap: 6px; }
.closet .look .ed .row .px-btn { flex: 1; min-width: 0; height: 40px; padding: 0 8px; font-size: 13px; }
.closet .look .ed .rhint { color: var(--ink-3); font-size: 12px; }

/* a short computer screen (1280 x 800): the trainer and the facings smaller */
@media (max-height: 860px) {
  .closet .stagebox { height: 150px; }
  .closet .stagebox .osp { width: 64px; height: 104px; }
  .closet .dir { height: 50px; }
  .closet .dir .osp { width: 24px; height: 39px; }
  .closet .look .lp { height: 60px; }
  .closet .look .lp .cic { width: 32px; height: 52px; margin-bottom: 4px; }
}

/* mid (700 to 1099 px): Wearing now on the left; Your pieces over Saved looks */
.closet.mid .head .kick { display: none; }
.closet.mid .cl-body { grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.closet.mid .card.now { grid-row: 1 / span 2; }

/* a phone (p2): a sheet under the bar; the trainer and the 6 parts, the facings, the 3 tabs
   (the one chosen scrolls, up and down only), the two buttons pinned at the foot */
.pxui.closet.phone { left: 0; right: 0; top: 4px; bottom: 0; width: auto; height: auto; max-width: none; max-height: none; transform: none; padding: 0 10px; overflow: hidden; border-bottom-width: 0; border-radius: 16px 16px 0 0; }
.closet .grab { flex: none; width: 44px; height: 5px; margin: 7px auto 6px; border-radius: 3px; background: #c4d2e4; }
.closet.phone .head { gap: 6px; padding: 0 0 6px; }
.closet.phone .head h1 { flex: 1; min-width: 0; overflow: hidden; font-size: 19px; text-overflow: ellipsis; }
.closet.phone .head .grow { display: none; }
.closet.phone .bq-x { width: 44px; height: 44px; }
.closet .pbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.closet .pnow { flex: none; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; padding: 2px 0 8px; }
.closet.phone .stagebox { height: 132px; gap: 0; }
.closet.phone .stagebox .osp { width: 64px; height: 104px; }
.closet.phone .wear { grid-template-columns: 62px minmax(0, 1fr); align-content: start; row-gap: 1px; column-gap: 6px; padding: 0; border: 0; background: none; font-size: 12px; }
.closet.phone .wear .wk { font-size: 10px; }
.closet .pdirs { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-bottom: 8px; }
.closet.phone .dir { height: 44px; }
.closet.phone .dir .ar { position: static; color: var(--ink); font-size: 15px; font-weight: 700; }
.closet .pseg { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px 0 8px; border-top: 2px dashed var(--rule); }
.closet .pseg .sg { min-width: 0; height: 44px; padding: 0 4px; overflow: hidden; border: 3px solid var(--frame); border-radius: 8px; background: #c4d2e4; color: var(--ink-2); font-size: 14px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.closet .pseg .sg[aria-selected=true] { border-color: var(--sel-line); background: var(--sel); color: var(--ink); }
.closet .pseg .sg small { font-size: 12px; }
.closet .pscr { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ring) transparent; }
.closet .ptab { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 12px; }
.closet.phone .slot { grid-template-columns: 72px minmax(0, 1fr); }
.closet.phone .ocol { grid-template-columns: 64px minmax(0, 1fr); }
.closet.phone .dot { width: 44px; height: 44px; }
.closet.phone .dot i { width: 32px; height: 32px; }
.closet.phone .look { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; padding: 5px 6px 5px 5px; }
.closet.phone .look .lp { width: 52px; height: 64px; }
.closet.phone .look .lp .cic { width: 32px; height: 52px; margin-bottom: 4px; }
.closet.phone .look .lt b { font-size: 15px; }
.closet.phone .look .lt small { font-size: 11px; }
.closet.phone .look > .px-btn { padding: 0 12px; font-size: 14px; }
.closet.phone .look.empty { min-height: 50px; font-size: 13px; }
.closet.phone .look.edit, .closet.phone .look.ask { grid-template-columns: 52px minmax(0, 1fr); }
.closet.phone .look .ed .px-field { height: 44px; }
.closet .pfoot { flex: none; display: flex; gap: 6px; padding: 8px 0 10px; border-top: 2px dashed var(--rule); }
.closet .pfoot .px-btn { flex: 1; min-width: 0; height: 48px; font-size: 15px; }
.closet.phone button { min-height: 44px; }
.closet.phone .lnk { min-width: 44px; }
/* a sheet with little room (.tight: the pads under it, a phone on its side): one scroller under the head */
.closet.phone.tight .pbody { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ring) transparent; }
.closet.phone.tight .pscr { flex: none; overflow: visible; }
.closet.phone.tight .grab { margin: 4px auto 3px; }
@media (max-width: 359px) {
  .closet.phone .cl-mark { display: none; }
  .closet .pnow { grid-template-columns: 100px minmax(0, 1fr); }
}

/* "Replace a look?" (all 6 full): the Boutique's question box, a button a look */
.cl-dlg .rlist { display: flex; flex-direction: column; gap: 6px; }
.cl-dlg .rl { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 52px; padding: 4px 10px 4px 4px; border: 3px solid var(--blue); border-radius: 10px; background: var(--slot); text-align: left; }
.cl-dlg .rl .lp { width: 40px; height: 52px; }
.cl-dlg .rl .lp .cic { width: 32px; height: 52px; }
.cl-dlg .rl .rt { min-width: 0; line-height: 1.25; }
.cl-dlg .rl b { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.cl-dlg .rl small { display: block; color: var(--ink-2); font-size: 12px; }

/* touch: 44 px targets */
@media (pointer: coarse) {
  .closet button, .cl-dlg button { min-height: 44px; }
  .closet .bq-x, .closet .turn, .closet .dot, .closet .lnk { min-width: 44px; }
  .closet .dot { height: 44px; }
}
