/* The designer's studio layout (spec §7 "Designer page layout"; mock-up docs/design/2026-10-14-designer-studio.png). */
.designer .step { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6c757d; }
.designer .step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #111; color: #fff; font-size: .75rem; }
.designer .lens-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #6d3fa0; font-weight: 600; }
.designer .lens-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .35rem 0 .75rem; }
@container (min-width: 36rem) { .designer .lens-tiles { grid-template-columns: repeat(6, 1fr); } }
.designer .create { container-type: inline-size; }
.designer .lens-tile { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .35rem .25rem; font-size: .8rem; background: #fff; border: 1px solid #ccc; border-radius: .6rem; cursor: pointer; }
.designer .lens-tile img { width: 100%; max-width: 5rem; height: auto; aspect-ratio: 1; border-radius: 50%; }
.designer .lens-tile[aria-checked="true"] { border: 2px solid #6d3fa0; padding: calc(.35rem - 1px) calc(.25rem - 1px); font-weight: 600; }
.designer .colour-row, .designer .lens-options { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .35rem 0; }
.designer .lens-options[hidden], .designer .photo-colours[hidden] { display: none; }
/* Each group of settings in a very light box (the owner, 2026-11-19), so the rows don't run together. */
.designer .lens-options { justify-content: center; width: fit-content; max-width: 100%; margin: .5rem auto; padding: .4rem .85rem; border: 1px solid #e9e6e1; border-radius: .85rem; }
.designer .colour-row .btn[aria-checked="true"], .designer .lens-options .btn[aria-checked="true"] { background: #111; color: #fff; }
.designer .photo-colours { display: flex; justify-content: center; gap: .35rem; margin: .5rem 0; }
.designer .photo-colour { width: 2rem; height: 1.25rem; border-radius: .5rem; border: 1px solid #ccc; }
.designer .palettes { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: .6rem 0; }
.designer .swatch { width: 3rem; height: 2rem; padding: 0; border: 1px solid #ccc; border-radius: .7rem; }
.designer .swatch[aria-pressed="true"] { outline: 2px solid #111; outline-offset: 2px; }
.designer .lens-options .swatch[aria-checked="true"] { outline: 2px solid #111; outline-offset: 2px; }
/* The Swirl's Detail: the label, Less, the range and More on one centered line. */
.designer .detail-row { flex-wrap: nowrap; }
.designer .detail-row .form-range { flex: 0 1 220px; width: 220px; min-width: 0; }
/* The Swirl's Repeats and Curl: each line laid out as the Detail's, in shared columns so the two ranges line up. */
.designer .shape-row { display: grid; grid-template-columns: auto auto minmax(0, 220px) auto; justify-content: center; column-gap: .6rem; row-gap: .7rem; }
.designer .shape-line { display: contents; }
.designer .shape-line .lens-options-label { justify-self: end; }
/* Candy's Repeats: past what the print floor allows now (--repeats-open, the open share, set by createPanel's drawShape), the track is
   gray, from the right edge of the knob at the cap (the knob is --thumb wide, set on .form-range in theme.css, and travels the track less its width; none past the top). */
.designer #swirl-repeats::-webkit-slider-runnable-track { background-image: linear-gradient(to right, transparent calc(var(--thumb) + (100% - var(--thumb)) * var(--repeats-open, 1)), #8f8f8f 0); }
.designer #swirl-repeats::-moz-range-track { background-image: linear-gradient(to right, transparent calc(var(--thumb) + (100% - var(--thumb)) * var(--repeats-open, 1)), #8f8f8f 0); }
/* Candy stripes' color toggles: small swatches, faded when off. */
.designer #candy-colors .btn-group { gap: .75rem; }
.designer #candy-colors .swatch { width: 2.25rem; height: 1.5rem; border-radius: .5rem; }
.designer #candy-colors .swatch[aria-pressed="false"] { opacity: .3; }
/* Logo mode's Background row: set apart from the logo's colours above it, its swatches their size. */
.designer .logo-options { margin-top: 1.25rem; }
.designer .logo-options .btn-group { gap: .35rem; }
.designer .logo-options .swatch { width: 2rem; height: 1.25rem; border-radius: .5rem; }
.designer .logo-options .swatch-custom { background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.designer .photo-panel { margin: .75rem 0; }
.designer .photo-file-wrap { position: relative; }
/* Covers the disabled picker so a tap on it can be answered (a disabled input hears nothing). */
.designer .photo-file-guard { position: absolute; inset: 0; cursor: pointer; }
.designer .photo-file-wrap.unlocked .photo-file-guard { display: none; }
/* The photo permission box: checkout's outline, kept compact so the live preview stays in view. */
.designer #photo-rights-box { padding: .55rem .9rem .55rem 2.9rem; font-size: .95rem; }
.designer #photo-rights-box .form-check-input { width: 1.25rem; height: 1.25rem; margin-left: -2rem; margin-top: .1rem; }
.designer .rights-msg { color: var(--accent, #6d3fa0); font-weight: 600; min-height: 0; }
.designer .rights-msg:empty { display: none; }
.designer .returns-box.nudge { border-color: var(--accent, #6d3fa0); background: var(--accent-soft, #f1ebf8); animation: rights-pulse .9s ease-out 2; }
@keyframes rights-pulse { 0% { box-shadow: 0 0 0 0 rgba(109, 63, 160, .55); } 100% { box-shadow: 0 0 0 .6rem rgba(109, 63, 160, 0); } }
@media (prefers-reduced-motion: reduce) { .designer .returns-box.nudge { animation: none; } }
.designer .face-note-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block: .75rem; }
.designer .photo-toggle { flex: none; min-height: 44px; padding-inline: 1rem; margin-inline-end: .25rem; }
.designer .face-map[hidden] { display: none; }
.designer .face-map { display: block; width: 100%; max-width: 22rem; margin-inline: auto; border-radius: .4rem; cursor: pointer; touch-action: none; }
.designer .live-wrap { position: relative; width: min(100%, 34rem); aspect-ratio: 1; margin: .75rem auto; }
.designer .live { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.designer .live-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 2rem; border: 2px dashed #bbb; border-radius: 50%; color: #6c757d; text-align: center; }
.designer .live-hint[hidden] { display: none; }
/* While the designer loads, the logo mark turns in the lens circle; it fades once the lens moves, the designer is ready or it failed. */
.designer .live-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: #6c757d; text-align: center; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s; }
.designer .live-loading img { width: 28%; height: auto; animation: live-loading-turn 6s linear infinite; }
@keyframes live-loading-turn { to { transform: rotate(360deg); } }
.designer[data-ready="true"] .live-loading, .designer .live-wrap:has(#live[data-frames]) .live-loading,
.designer:has(#designer-error:not([hidden])) .live-loading { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .designer .live-loading img { animation: none; } }
.designer .live-rung { position: absolute; right: .25rem; bottom: .25rem; padding: 0 .3rem; border-radius: .25rem; background: #fffc; font: 11px/1.4 ui-monospace, monospace; color: #333; pointer-events: none; }
.designer .live-idle { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 50%; background: #000a; color: #fff; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.designer .live-idle[hidden] { display: none; }
.designer .live-actions { width: min(100%, 34rem); margin: 0 auto; }
.designer .slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.designer .slot { position: relative; }
.designer .slot-pick { display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 50%; background: #f4f4f4; }
.designer .slot.empty .slot-pick { border: 2px dashed #bbb; background: #fff; color: #999; font-size: .75rem; }
.designer .slot.selected .slot-pick { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 63, 160, .25); }
.designer .slot-pick img { display: block; width: 100%; height: 100%; }
.designer .tile-toggle-row { display: flex; justify-content: center; margin-top: .75rem; }
.designer .slot.ticked .slot-pick { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 63, 160, .25); }
.designer .slot-tick { position: absolute; top: 0; left: 0; width: 44px; height: 44px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.designer .slot-delete { position: absolute; top: -.3rem; right: -.3rem; width: 2.3rem; height: 2.3rem; padding: 0; border: 1px solid #ccc; border-radius: 50%; background: #fff; line-height: 1; }
.designer .pending { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; padding: .75rem; border: 1px solid var(--accent); border-radius: .5rem; }
.designer .pending[hidden], .designer .undo[hidden] { display: none; }
.designer .pending img { width: 4rem; height: 4rem; border-radius: 50%; }
.designer .undo { margin-top: .5rem; }
.designer .shirt-canvas, .designer .closeup-canvas { display: block; width: 100%; border-radius: .5rem; background: #f2f2f2; }
.designer .shirt-canvas { aspect-ratio: 1; }
.designer .closeup-canvas { aspect-ratio: 3 / 4; touch-action: none; cursor: grab; }
.designer .closeup-canvas[hidden], .designer .shirt-canvas[hidden] { display: none; }
.designer .view-toggle .btn[aria-pressed="true"] { background: #111; color: #fff; }
.designer .price { margin: .75rem 0 .25rem; font-size: 1.75rem; }
/* The Product choice (only with more than one product on sale): pills like the sizes'. */
.designer .product-choice { margin: .75rem 0 0; }
.designer .products { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.designer .product { padding: .3rem .9rem; border: 1px solid #bbb; border-radius: 1.2rem; background: #fff; }
.designer .product[aria-checked="true"] { border-color: #111; background: #111; color: #fff; }
.designer .sizes { display: flex; flex-wrap: wrap; gap: .6rem; }
.designer .size { padding: .3rem .8rem; border: 1px solid #bbb; border-radius: 1.2rem; background: #fff; }
.designer .size[aria-checked="true"] { border-color: #111; background: #111; color: #fff; }
.designer .size { position: relative; }
.designer .size.has { border: 2px solid #111; padding: calc(.3rem - 1px) calc(.8rem - 1px); font-weight: 600; }
.designer .size-summary-row { margin: .6rem 0 0; }
.designer .size-summary { margin: 0; color: #333; }
.designer .add-size { text-decoration: none; }
.designer .add-size[aria-pressed="true"] { font-weight: 600; }
.designer .phrase-select { border-color: #ccc; border-radius: .5rem; }
.designer .phrase-select.phrase-script { font-family: "Satisfy", cursive; font-size: 1.15rem; }
.designer .phrase-select option { font-family: var(--bs-body-font-family); font-size: 1rem; }   /* the open list stays plain */
.designer .qty { width: 8rem; }
.designer .size-chart { max-width: 30rem; border: 1px solid #ccc; border-radius: .5rem; }
.designer .finish-head { display: block; }
.designer .title-phone, .designer .foot-price { display: none; }
.designer .finish-bar[hidden] { display: none; }

/* Phone: Finish is a full-screen panel (header and × on top, the middle scrolls, price / quantity / Add to cart pinned below),
   and a slim bar at the bottom of the page opens it. */
@media (max-width: 991.98px) {
  body:has(#finish-bar) { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }   /* the bar never covers Pick or the footer */
  .designer .finish { position: fixed; top: 0; right: 0; bottom: auto; left: 0; z-index: 1040; display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; padding: 0; background: #fff; transform: translateY(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .designer .finish.open { transform: none; visibility: visible; }
  .designer .finish-head { display: flex; flex: none; align-items: center; justify-content: space-between; padding: .4rem .75rem .4rem 1rem; padding-top: calc(.4rem + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); background: #fff; }
  .designer .finish-head .step { margin: 0; }
  .designer .title-wide { display: none; }
  .designer .title-phone { display: inline; }
  .designer .finish-close { flex: none; width: 44px; height: 44px; padding: 0; background-size: 14px; }
  .designer #finish-empty { margin: 0; padding: 1rem; }
  .designer #finish-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 1rem 1rem calc(var(--foot-h, 8rem) + 1rem); }
  .designer #price { display: none; }
  .designer .size-row { margin-top: 1rem; }   /* the price, which spaced the products from the sizes, is in the foot here */
  .designer .finish-foot { position: absolute; right: 0; bottom: 0; left: 0; padding: .6rem 1rem; padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -.25rem .75rem rgba(0, 0, 0, .06); }
  .designer .foot-row { flex-wrap: wrap; margin-top: 0 !important; }
  .designer .foot-price { display: block; flex: 0 0 auto; font-size: 1.15rem; font-weight: 600; }
  .designer .foot-row #add-to-cart { min-width: 7.5rem; }
  .designer .finish-foot #add-to-cart-status { margin: .4rem 0 0 !important; }
  .designer .finish-foot #add-to-cart-status:empty { display: none; }
  .designer .finish-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem 1rem; padding-bottom: calc(.55rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; font-weight: 500; }
  .designer .finish-bar.ready { cursor: pointer; }
  .designer .finish-bar-text { min-width: 0; }
  .designer .finish-bar .btn { flex: none; white-space: nowrap; }
}

@media (min-width: 992px) { .designer .finish { align-self: flex-start; } }
/* Reduce motion: the phone Finish sheet appears at once instead of sliding in (after the sheet's own rule above, which it must beat). */
@media (prefers-reduced-motion: reduce) { .designer .finish { transition: none; } }

/* The share icon in Finish, after Save for later: a round button as tall as Save for later, the standard share symbol, no words.
   It shares the design on the shirt, so it sits beside the other things you do with that design. */
.designer .finish-secondary .btn { white-space: nowrap; }
.designer .share-icon {
  /* Bootstrap's own button height (line, padding, borders), so the circle is exactly as tall as Save for later. */
  --share-size: calc(var(--bs-btn-line-height, 1.5) * var(--bs-btn-font-size, 1rem) + 2 * var(--bs-btn-padding-y, .375rem) + 2 * var(--bs-btn-border-width, 1px));
  flex: none; width: var(--share-size); height: var(--share-size); display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%;
}
.designer .share-status[hidden] { display: none; }

/* Logo mode (admin only, Plan 17): the logo's picture and colours where the photo panel was, the logo choice row, the lettering form,
   and Present, which shows the moving design alone, filling the screen (full screen, or laid over the page where that is refused). */
.designer .logo-panel { margin: .75rem 0; }
.designer .logo-map { display: block; width: 100%; max-width: 16rem; margin: 0 auto; border-radius: .4rem; }
.designer .logo-warning { margin: .5rem 0 0; color: #8a5300; }
.designer .logo-warning[hidden] { display: none; }
.designer .lettering-status { color: #b02a37; }
.designer .lettering-status:empty { display: none; }
.designer .live-wrap:fullscreen, .designer .live-wrap.presenting { display: flex; align-items: center; justify-content: center; max-width: none; margin: 0; background: #000; }
.designer .live-wrap.presenting { position: fixed; inset: 0; z-index: 1060; width: 100%; height: 100%; aspect-ratio: auto; }
.designer .live-wrap:fullscreen .live, .designer .live-wrap.presenting .live { width: min(100vw, 100vh); height: min(100vw, 100vh); }
.designer .present-on { position: fixed; top: 1rem; right: 1rem; z-index: 1061; background: #fff; }
@media (max-width: 991.98px) {
  /* Logo mode has no slim bar or full-screen panel: Finish sits in the page, below Pick. */
  .designer .logo-finish { position: static; display: block; height: auto; padding: 0 calc(var(--bs-gutter-x) * .5); margin-top: var(--bs-gutter-y); transform: none; visibility: visible; transition: none; }
  .designer .logo-finish #finish-body { overflow: visible; padding: 0; }
  .designer .logo-finish #finish-empty { padding: 0; }
}
