:root {
  --paper: #f2f3ef;      /* cool linen */
  --ink: #1a1f2b;
  --muted: #5d6472;
  --line: #d9dcd4;
  --tile: #262c38;       /* dark tile so white artwork shows */
  --pick: #0f5f5a;       /* selection: deep teal (owner chose A, 26 Oct) */
  --pick-soft: #e3f1ee;  /* teal tint for badges */
  --wa: #128c4a;         /* WhatsApp action only */
  --warn: #9a5b00;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #15181f; --ink: #eceee9; --muted: #a2a8b3; --line: #2c313b; --tile: #232936; --pick: #5cc4b8; --pick-soft: #16302d; --warn: #e7a74a; }
}
:root[data-theme="dark"] { --paper: #15181f; --ink: #eceee9; --muted: #a2a8b3; --line: #2c313b; --tile: #232936; --pick: #5cc4b8; --pick-soft: #16302d; --warn: #e7a74a; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pick); outline-offset: 2px; }
.top { padding: 14px 16px; max-width: 1180px; margin: 0 auto; }
.brand { font: 800 20px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand sup { font-size: 0.5em; font-weight: 500; }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 120px; }
.loading, .empty { color: var(--muted); padding: 40px 0; }
.loading .spin { display: inline-block; width: 14px; height: 14px; margin: 0 8px -2px 0; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); border-top-color: var(--ink, #222); animation: srSpin .8s linear infinite; }
@keyframes srSpin { to { transform: rotate(360deg); } }

/* Occasion tabs */
.occs { display: flex; gap: 6px; overflow-x: auto; margin: 4px -16px 0; padding: 4px 16px 6px; scrollbar-width: none; }
.occs::-webkit-scrollbar { display: none; }
.occs a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.occs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Hero: the occasion name set big */
.hero { padding: 18px 0 8px; }
.hero h1 { font: 800 clamp(34px, 7vw, 76px)/0.95 var(--display); letter-spacing: -0.035em; margin: 0; max-width: 13ch; text-wrap: balance; hyphens: none; }
.hero p { margin: 14px 0 0; max-width: 52ch; color: var(--muted); font-size: 17px; }
/* Hero with a photo behind it (owner 27 Oct 2026, option A). Full width, text at the bottom over a dark fade. */
body.has-hero { overflow-x: clip; }
body.has-hero .top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
/* Logo on a solid black pill over the photo (owner 27 Oct 2026). */
body.has-hero .brand { color: #fff; background: #000; padding: 6px 11px; border-radius: 10px; display: inline-block; }
.hero.photo {
  --shade: linear-gradient(180deg, rgba(8, 10, 16, .55) 0%, rgba(8, 10, 16, .12) 28%, rgba(8, 10, 16, .42) 58%, rgba(8, 10, 16, .9) 100%);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  margin: 0 calc(50% - 50vw); padding: 84px max(16px, calc(50vw - 574px)) 30px;
  min-height: min(82vh, 620px); color: #fff;
  background: var(--shade), var(--hero) center 38% / cover no-repeat, #2a1012;
}
.hero.photo h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero.photo p { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.hero.photo .terms { text-shadow: none; }
.hero.photo .terms .badge { background: rgba(255, 255, 255, .94); color: #0f5f5a; box-shadow: none; }
.hero.photo .occs { margin: 0 0 auto; padding: 0 0 12px; }
.hero.photo .occs a { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(8, 10, 16, .25); }
.hero.photo .occs a[aria-current="page"] { background: #fff; border-color: #fff; color: #1a1f2b; }
@media (max-width: 700px) {
  /* Phones (owner 27 Oct): the whole photo across the top so every person shows, fading into the light page
     (no dark block); compact dark text below; logo on a small dark glass pill so it reads over the photo. */
  body.has-hero .top { padding-top: 12px; }
  body.has-hero .brand { font-size: 18px; }
  .hero.photo {
    min-height: 0; color: var(--ink); padding-top: calc(50vw + 2px); padding-bottom: 4px;
    background: linear-gradient(180deg, transparent 0, transparent calc(50vw - 46px), var(--paper) calc(50vw - 2px)),
      var(--hero) center top / 100% auto no-repeat, var(--paper);
  }
  .hero.photo h1 { color: var(--ink); text-shadow: none; font-size: 34px; margin-top: -6px; }
  .hero.photo p { color: var(--muted); text-shadow: none; font-size: 16px; margin-top: 10px; }
  .hero.photo .terms { margin-top: 12px; }
  .hero.photo .terms .badge { background: var(--pick-soft); color: var(--pick); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pick) 22%, transparent); }
  .hero.photo .occs a { color: var(--ink); border-color: var(--line); background: none; }
  .hero.photo .occs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .hero.photo + .step { margin-top: 32px; }
}
@media (min-width: 900px) {
  .hero.photo { background: linear-gradient(90deg, rgba(8, 10, 16, .62) 0%, rgba(8, 10, 16, 0) 62%), var(--shade), var(--hero) center 38% / cover no-repeat, #2a1012; }
}
.terms { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.terms .badge { display: inline-block; padding: 8px 14px; border-radius: 99px; background: var(--pick-soft); color: var(--pick); font-size: 14.5px; font-weight: 700; letter-spacing: .005em; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pick) 22%, transparent); }

/* Steps */
.step { margin-top: 44px; }
.step > h2 { font: 700 26px/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 4px; display: flex; gap: 12px; align-items: baseline; }
.step > h2 .n { font: 700 15px/1 var(--body); color: var(--paper); background: var(--ink); width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-3px); }
.step > .sub { color: var(--muted); margin: 0 0 16px 40px; }
.step.locked { opacity: 0.45; pointer-events: none; }

.tabs { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; margin: 0 0 16px 40px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px 40px; }
.search { flex: 1 1 220px; max-width: 360px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: transparent; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.card .pic { background: var(--tile); border-radius: 14px; aspect-ratio: 1; padding: 12px; overflow: hidden; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.gallery { align-items: start; }
.card .cap { font-size: 14px; margin-top: 6px; line-height: 1.3; }
.card .code { color: var(--muted); font-size: 12px; }
.card[aria-pressed="true"] .pic { outline-color: var(--pick); }
.card .pic.light { background: #eceee9; }   /* dark artwork shows on a light tile */
.more { margin: 16px 0 0; }

.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 28px 18px; text-align: center; cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--pick); }
.drop strong { font: 700 20px/1.2 var(--display); display: block; }
.drop span { color: var(--muted); font-size: 14px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mine { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; flex-wrap: wrap; }
.mine > img { width: 96px; height: 96px; object-fit: contain; background: var(--tile); border-radius: 12px; padding: 8px; flex: none; }
.mine > div { flex: 1 1 240px; min-width: 0; }
.note { color: var(--warn); font-size: 14px; margin: 6px 0 0; }
.err { color: #c0392b; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 40px; }
.chip { border: 1.5px solid var(--line); background: transparent; border-radius: 12px; padding: 9px 14px; cursor: pointer; text-align: left; }
.chip small { display: block; color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] small { color: inherit; opacity: 0.75; }
.prints { margin: 14px 0 0 40px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.prints .chip { padding: 6px 12px; }

/* Chosen colour, large, with the actions right under it */
.focus { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); grid-template-areas: "frame info" "dots info"; gap: 16px 24px; align-items: start; margin-left: 40px; }
.focus .frame { grid-area: frame; } .focus .dots { grid-area: dots; margin: 0; } .focus .focus-info { grid-area: info; align-self: center; }
.frame { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--sw, #888) 18%, var(--paper)); }
.frame img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; opacity: 0; transition: opacity .2s; }
.frame img.ok { opacity: 1; }
.frame .nav { top: 50%; transform: translateY(-50%); background: rgba(20, 24, 32, .55); }
.nophoto { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; margin: 0; color: var(--ink); font-size: 15px; }
.focus-info .fname { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 18px; margin-bottom: 14px; }
.focus-info .adjust { margin: -6px 0 14px; padding: 8px 12px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--ink); font-size: 14px; border-radius: 0 8px 8px 0; max-width: 46ch; }
.focus-info .muted { color: var(--muted); font-size: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 0 1 360px; justify-content: center; padding: 14px 18px; font-size: 16px; }
.tools-row .link.dl { display: inline-flex; align-items: center; gap: 6px; }
.link .ico { width: 16px; height: 16px; }
.dot-sm { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); flex: none; display: inline-block; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0 40px; max-width: 760px; }
.dot { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 0 0 2px var(--paper); }
.dot[aria-selected="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 0 0 2px var(--paper), 0 0 0 4px var(--pick); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wall-toggle { margin: 18px 0 12px 40px; }
.link { border: 0; background: none; padding: 0; color: var(--pick); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* The colour wall: every shirt colour at once */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px 12px; }
.shirt { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.shirt .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--sw) 22%, var(--paper)); outline: 3px solid transparent; outline-offset: 2px; }
.shirt img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.shirt img.ok { opacity: 1; }
.shirt .nophoto { font-size: 13px; padding: 10px; }
.shirt .nm { display: flex; gap: 7px; align-items: center; font-size: 14px; margin-top: 6px; }
.shirt .dot-sm { width: 12px; height: 12px; }
.shirt[aria-pressed="true"] .ph { outline-color: var(--pick); }

/* Viewer */
.viewer { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.92); z-index: 20; display: grid; grid-template-rows: 1fr auto; color: #fff; }
.viewer .stage { display: grid; place-items: center; padding: 16px 56px; min-height: 0; overflow: hidden; }
.viewer .stage img { display: block; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); max-width: min(100%, 900px); width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.viewer .stage img.art { background: #262c38; padding: clamp(16px, 4vw, 40px); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.viewer .stage img.art.on-light { background: #eceee9; }
.viewer .dock { padding: 14px 16px 20px; background: rgba(10, 12, 18, 0.9); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.viewer .title { width: 100%; text-align: center; font-weight: 600; }
.viewer .title span { color: #b9bfcc; font-weight: 400; }
.nav { position: absolute; top: 45%; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.nav.prev { left: 8px; } .nav.next { right: 8px; }
.close { position: absolute; top: 10px; right: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.btn { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.light { background: rgba(255,255,255,.14); color: #fff; }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.light-solid { background: #fff; color: #1a1f2b; }
.btn svg { width: 18px; height: 18px; }

/* Bottom bar once a colour is chosen */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.bar .what { font-size: 14px; line-height: 1.3; min-width: 0; }
.bar .what b { display: block; font-size: 15px; }
.bar .what span { color: var(--muted); }
.bar .bar-btns { display: flex; gap: 8px; flex: none; }
.bar .bar-btns .btn { justify-content: center; font-weight: 700; border-radius: 14px; }
.btn.buy .buy-txt { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.15; }
.btn.buy .buy-sub { font-size: 12.5px; font-weight: 600; opacity: .78; white-space: nowrap; }
.btn.buy .buy-sub .flags { letter-spacing: 2px; margin-right: 2px; }
@media (max-width: 560px) {
  .bar .what { display: none; }
  .bar .bar-btns { flex: 1; }
  .bar { padding: 10px 12px; }
  .bar .bar-btns { gap: 8px; }
  .bar .bar-btns .btn { flex: 1 1 0; padding: 13px 8px; gap: 6px; font-size: 14.5px; line-height: 1.2; text-align: center; letter-spacing: -0.01em; }
  .bar .bar-btns .btn svg { width: 17px; height: 17px; flex: none; }
}

.occasions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
.occasion { display: block; padding: 14px 14px 18px; border-radius: 16px; background: var(--tile); color: #fff; text-decoration: none; }
.occasion .peek { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.occasion .peek img { width: 100%; aspect-ratio: 1; object-fit: contain; background: rgba(255,255,255,.06); border-radius: 8px; padding: 4px; }
.occasion strong { font: 800 30px/1 var(--display); letter-spacing: -0.03em; display: block; }
.occasion span { color: #b9bfcc; font-size: 14px; }

@media (max-width: 900px) {
  .focus { grid-template-columns: 1fr; grid-template-areas: "frame" "dots" "info"; margin-left: 0; }
  .dots, .wall-toggle { margin-left: 0; }
}
@media (max-width: 560px) {
  .step > .sub, .tabs, .tools, .chips, .prints { margin-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .viewer .stage { padding: 12px 8px; }
  .viewer .nav { top: 40%; background: rgba(20, 24, 32, .55); }
  .hero p { font-size: 16px; }
  .step { margin-top: 34px; }
  .dot { width: 38px; height: 38px; }
  .actions { gap: 12px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Move / resize */
.focus-info .tools-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.editor { position: absolute; inset: 0; z-index: 3; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.editor .blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; cursor: default; }
.editor .zone { position: absolute; border: 1.5px dashed rgba(43, 63, 212, .55); border-radius: 4px; pointer-events: none; }
.editor .art-box { position: absolute; outline: 2px solid var(--pick); outline-offset: 2px; cursor: move; touch-action: none; }
.editor .art-box:focus-visible { outline-width: 3px; }
.editor .art-box img { width: 100%; height: 100%; object-fit: fill; opacity: .95; pointer-events: none; }
.editor .handle { position: absolute; right: -14px; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--pick); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: nwse-resize; }
.editor .size { position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; font-size: 12px; font-weight: 600; background: rgba(20,24,32,.75); color: #fff; padding: 2px 8px; border-radius: 99px; pointer-events: none; }
.editor .ed-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.editor .ed-bar .hint { margin-right: auto; font-size: 13px; background: rgba(255,255,255,.88); color: #1a1f2b; padding: 4px 10px; border-radius: 99px; }
.editor .ed-bar .btn { padding: 8px 16px; }
.frame.editing .nav { display: none; }
.editor .btn.ghost { background: #fff; color: #1a1f2b; }

/* Preview with your face */
.frame .face-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.frame .nav { z-index: 2; }
.focus-info .face-msg { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.viewer.facebox { display: grid; place-items: center; padding: 16px; }
.facebox .card-pop { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 24px 22px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.facebox h3 { margin: 0 32px 8px 0; font: 700 22px/1.2 var(--display); }
.facebox p { margin: 0 0 10px; font-size: 15px; }
.facebox .private { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--wa) 10%, transparent); }
.facebox .pick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.facebox .pick .btn { cursor: pointer; }
.facebox .cam { margin-top: 12px; display: grid; gap: 10px; }
.facebox video { width: 100%; border-radius: 12px; transform: scaleX(-1); background: #000; }
.facebox .status { min-height: 1.4em; margin-top: 10px; color: var(--muted); }
.facebox .close { position: absolute; top: 10px; right: 10px; }
.viewer.facebox { grid-template-rows: 1fr; }
.facebox .close { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.face-adjust { position: absolute; inset: 0; z-index: 3; touch-action: none; cursor: move; outline: 2px dashed rgba(43, 63, 212, .6); outline-offset: -6px; border-radius: 16px; }
.face-adjust .ed-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; cursor: default; }
.face-adjust .ed-bar .hint { margin-right: auto; font-size: 13px; background: rgba(255,255,255,.88); color: #1a1f2b; padding: 4px 10px; border-radius: 99px; }
.face-adjust .btn { padding: 8px 14px; } .face-adjust .btn.ghost { background: #fff; color: #1a1f2b; }
.facebox .cam-view { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.facebox .cam-view video { display: block; }
.facebox .guide { position: absolute; left: 50%; top: 46%; width: 42%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 3px dashed rgba(255,255,255,.8); border-radius: 50%; transition: border-color .2s; }
.facebox .guide.ok { border: 3px solid #2fd17a; }
.facebox .cue { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.facebox .snap:disabled { opacity: .45; cursor: not-allowed; }
.facebox .anyway { justify-self: center; }

/* Buyer's photo: full photo or person only */
.photo-choice { margin-top: 12px; }
.photo-choice p { margin: 0 0 8px; }
.photo-choice .opts { display: flex; gap: 12px; flex-wrap: wrap; }
.photo-choice .opt { display: grid; gap: 6px; justify-items: center; width: 132px; max-width: calc(50% - 6px); box-sizing: border-box; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.photo-choice .opt[aria-checked="true"] { border-color: var(--pick); box-shadow: 0 0 0 2px var(--pick); }
.photo-choice .opt:disabled { cursor: progress; opacity: .7; }
.photo-choice .opt img, .photo-choice .opt .pp { width: 112px; max-width: 100%; height: 112px; object-fit: contain; border-radius: 8px;
  background: repeating-conic-gradient(#e4e6e0 0% 25%, #f7f8f5 0% 50%) 50% / 16px 16px; }
.photo-choice .opt .pp { display: grid; place-items: center; font-size: 12px; font-weight: 400; color: var(--muted); text-align: center; padding: 6px; box-sizing: border-box; }

/* Under the shirt preview (0.18.13): the choice is compact, two small tiles side by side */
.choice-slot:empty { display: none; }
.choice-slot { margin-top: 12px; }
.choice-slot .photo-choice { margin: 0; }
.choice-slot .photo-choice p { margin: 0 0 8px; font-weight: 600; }
.choice-slot .photo-choice .opt { width: 112px; padding: 6px; font-size: 14px; }
.choice-slot .photo-choice .opt img, .choice-slot .photo-choice .opt .pp { width: 96px; height: 96px; }

/* Small-file note: one line; the how-to opens on tap */
.small-note { margin: 8px 0 0; }
.small-note summary { cursor: pointer; list-style: none; }
.small-note summary::-webkit-details-marker { display: none; }
.small-note summary .link { margin-left: 4px; }
.small-note[open] summary .link { display: none; }
.small-note p { margin: 6px 0 0; }

/* "Background removed" window */
.photo-choice .grade { display: block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.grade.good { color: #1f6f5c; background: #dff3ec; } .grade.warn { color: #8a5a00; background: #fbe9c6; }
.photo-choice .perfect { display: block; margin-top: 8px; font-size: 14px; }
.cutwin { position: fixed; inset: 0; z-index: 30; background: rgba(10, 12, 18, .6); display: grid; place-items: end center; padding: 0; }
.cutwin .sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 18px 18px 0 0; padding: 20px 18px 22px; box-sizing: border-box; }
.cutwin .x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tile); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.cutwin h3 { margin: 0 40px 12px 0; font: 700 20px/1.2 var(--display); }
.cutwin .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cutwin figure { margin: 0; text-align: center; font-size: 13px; }
.cutwin figure img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: repeating-conic-gradient(#e4e6e0 0% 25%, #f7f8f5 0% 50%) 50% / 16px 16px; }
.cutwin figcaption { margin-top: 6px; font-weight: 600; }
.cutwin figcaption .grade { display: inline-block; margin-left: 6px; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.cutwin p { margin: 14px 0 8px; }
.cutwin .steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: step; }
.cutwin .steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; row-gap: 4px; align-items: start; }
.cutwin .steps li::before { counter-increment: step; content: counter(step); grid-row: 1 / span 3; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.cutwin .steps li > * { grid-column: 2; }
.cutwin .steps .btn { justify-self: start; }
.cutwin .steps span { font-size: 14px; color: var(--muted); }
.cutwin details { font-size: 13px; color: var(--muted); } .cutwin summary { cursor: pointer; } .cutwin q { display: block; margin-top: 4px; }
.cutwin .acts { margin-top: 16px; display: flex; justify-content: flex-end; }
@media (min-width: 700px) { .cutwin { place-items: center; padding: 20px; } .cutwin .sheet { border-radius: 18px; } }

/* Design rows (many designs / categories) */
.row { margin: 0 0 18px 40px; }
.row h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font: 700 18px/1.2 var(--display); }
.row h3 .muted { font: 500 13px/1 var(--body); color: var(--muted); }
.row h3 .all { margin-left: auto; font-size: 14px; }
.row .strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 10px; margin: -4px -4px 0; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.row .strip .card { flex: 0 0 160px; scroll-snap-align: start; }
.row .strip .more-card .pic { display: grid; place-items: center; background: transparent; outline: 2px dashed var(--line); color: var(--pick); font-weight: 600; font-size: 15px; }
.see-all { margin: 4px 0 0 40px; }
@media (max-width: 560px) {
  .row { margin-left: 0; }
  .row .strip .card { flex-basis: 38vw; }
  .see-all { margin-left: 0; width: 100%; justify-content: center; }
}

/* Full browser */
.viewer.browse { grid-template-rows: auto 1fr; background: var(--paper); color: var(--ink); }
.browse .bar-top { position: sticky; top: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 56px 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.browse .bar-top .search { grid-column: 1 / -1; width: 100%; max-width: 520px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--paper); color: var(--ink); }
.browse .chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.browse .chips-row .chip { flex: 0 0 auto; }
.browse .sort { display: flex; gap: 4px; background: var(--tile); border-radius: 99px; padding: 3px; }
.browse .sort button { border: 0; background: none; color: #d8dbe3; padding: 6px 12px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.browse .sort button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.browse .close { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); top: 10px; right: 10px; }
.browse .scroll { overflow-y: auto; padding: 14px 16px 40px; }
.browse .count { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.browse .gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.browse .end { color: var(--muted); text-align: center; margin: 24px 0 0; }
@media (max-width: 560px) {
  .browse .bar-top { padding: 10px 52px 8px 12px; grid-template-columns: 1fr; }
  .browse .sort { justify-self: start; }
  .browse .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .browse .card .cap { font-size: 12px; } .browse .card .code { display: none; }
}

/* Quick look sheet */
.viewer.quick { display: grid; place-items: center; grid-template-rows: none; background: rgba(10, 12, 18, 0.6); }
.quick .sheet { position: relative; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.quick .grip { display: none; }
.quick .stage { position: relative; padding: 18px 56px 8px; min-height: 0; }
.quick .stage img { max-height: min(52dvh, 460px); max-width: 100%; }
.quick .dock { background: none; padding: 8px 18px 18px; }
.quick .title { color: var(--ink); }
.quick .title span { color: var(--muted); }
.quick .nav { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); top: 50%; transform: translateY(-50%); }
.quick .close { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
@media (max-width: 560px) {
  .viewer.quick { place-items: end center; }
  .quick .sheet { width: 100%; max-height: 62dvh; border-radius: 20px 20px 0 0; }
  .quick .grip { display: block; width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 10px auto 0; }
  .quick .stage { padding: 8px 48px 4px; }
  .quick .stage img { max-height: 36dvh; }
  .quick .nav { width: 36px; height: 36px; }
}

/* Step 2: style cards (two columns on phones), print size as one segmented bar */
#s2 .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-width: 900px; }
.chip.style { display: grid; gap: 2px; padding: 11px 13px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); text-align: left; color: var(--ink); }
.chip.style b { font-size: 15px; line-height: 1.25; }
.chip.style .sw { display: flex; align-items: center; margin-top: 7px; }
.chip.style .sw i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -5px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.chip.style .sw i:first-child { margin-left: 0; }
.chip.style .sw em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }
.chip.style[aria-pressed="true"] { background: var(--pick); border-color: var(--pick); color: #fff; }
.chip.style[aria-pressed="true"] small, .chip.style[aria-pressed="true"] .sw em { color: rgba(255,255,255,.82); opacity: 1; }
.chip.style[aria-pressed="true"] .sw i { border-color: var(--pick); }
.prints { gap: 10px; }
.prints .seg { display: inline-flex; background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 12px; padding: 4px; gap: 2px; }
.prints .seg .chip { border: 0; border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--ink); background: none; }
.prints .seg .chip[aria-pressed="true"] { background: var(--pick); color: #fff; }
@media (max-width: 560px) {
  #s2 .chips { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip.style { padding: 10px 11px; } .chip.style b { font-size: 14px; } .chip.style small { font-size: 11.5px; }
  .prints { flex-direction: column; align-items: stretch; gap: 6px; }
  .prints .seg { display: flex; } .prints .seg .chip { flex: 1; padding: 9px 4px; text-align: center; }
}
#s2 .fabrics { margin: 12px 0 0 40px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
#s2 .fabrics .seg { display: inline-flex; background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 12px; padding: 4px; gap: 2px; }
#s2 .fabrics .seg .chip { border: 0; border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--ink); background: none; }
#s2 .fabrics .seg .chip[aria-pressed="true"] { background: var(--pick); color: #fff; }
/* "For" row of a garment card (owner 27 Oct 2026): same look as the fabric row. */
#s2 .fits { margin: 12px 0 0 40px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
#s2 .fits .lbl { min-width: 44px; }
#s2 .fits .seg { display: inline-flex; flex-wrap: wrap; background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 12px; padding: 4px; gap: 2px; }
#s2 .fits .seg .chip { border: 0; border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--ink); background: none; }
#s2 .fits .seg .chip[aria-pressed="true"] { background: var(--pick); color: #fff; }
@media (max-width: 560px) { #s2 .fabrics { margin-left: 0; } }
@media (max-width: 560px) { #s2 .fits { margin-left: 0; } #s2 .fits .seg .chip { padding: 8px 12px; } }

/* Who wears it (model pool) */
#s3 .models { display: flex; align-items: center; gap: 12px; margin: 0 0 14px 40px; }
#s3 .models .lbl { color: var(--muted); font-size: 14px; }
#s3 .models .people { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
#s3 .models .person { flex: 0 0 auto; display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 11px; width: 56px; }
#s3 .models .person img, #s3 .models .person .mix { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--line); display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--pick-soft); color: var(--pick); }
#s3 .models .person[aria-pressed="true"] img, #s3 .models .person[aria-pressed="true"] .mix { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--pick); }
#s3 .models .person[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
#s3 .models .person small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56px; }
@media (max-width: 900px) { #s3 .models { margin-left: 0; } }

/* Share (0.18.1). Page pill: bottom-right of the hero photo (owner 29 Oct 2026), dark glass like the
   logo pill but smaller; top-right of the heading area when there is no photo. */
.hero { position: relative; }
.share-pill { position: absolute; top: 18px; right: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  padding: 7px 11px; border-radius: 10px; cursor: pointer; }
.share-pill .ico { width: 15px; height: 15px; }
.hero:not(.photo) .share-pill { position: static; float: right; margin: 4px 0 8px 12px; }
.hero.photo .share-pill { top: auto; bottom: 30px; right: max(16px, calc(50vw - 574px)); color: #fff; border-color: rgba(255, 255, 255, .25);
  background: rgba(8, 10, 16, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 700px) {
  .hero.photo .share-pill { bottom: auto; top: calc(50vw - 52px); right: 12px; }
}
.tools-row .link.sharedesign { display: inline-flex; align-items: center; gap: 6px; }
.share-menu { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 16, .45); display: grid; place-items: center; padding: 16px; }
.share-menu .box { position: relative; background: var(--paper); border-radius: 16px; padding: 18px; width: min(320px, 100%); display: grid; gap: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.share-menu b { font-size: 17px; margin-bottom: 6px; }
.share-menu a, .share-menu .copy { display: block; text-align: left; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 600 15px/1.2 var(--body); background: none; border: 0; cursor: pointer; }
.share-menu a:hover, .share-menu .copy:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.share-menu .x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }

/* Overseas quote under the preview (owner 31 Oct 2026) */
.chip.style .price { display: block; color: var(--pick); font-weight: 700; margin-top: 2px; }
.quote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--pick-soft); }
.quote .qty { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--pick); }
.quote .qty input { width: 84px; padding: 9px 10px; border: 1px solid color-mix(in srgb, var(--pick) 35%, transparent); border-radius: 10px; font: inherit; font-size: 16px; font-weight: 700; text-align: center; background: var(--paper); color: inherit; }
.quote .qsum { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.quote .qsum .total { font-size: 20px; letter-spacing: -0.01em; }
.quote .qsum .per, .quote .qsum .incl { font-size: 13px; color: var(--muted); }
.quote .qsum .min { font-size: 13px; color: #b42318; font-weight: 700; }
.quote .bulk { margin-left: auto; font-size: 14px; white-space: nowrap; }
.bar .what strong { color: var(--ink, inherit); }
@media (max-width: 600px) { .quote { gap: 8px 12px; } .quote .bulk { margin-left: 0; width: 100%; } }
