:root {
  --ink: #141414;
  --muted: #80807f;
  --line: #eeeeec;
  --line-strong: #dcdcd8;
  --stage: #f7f6f3;
  --ok: #1f7a4a;
  --warn: #b8541a;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 10px 30px rgba(20,20,20,.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
[hidden] { display: none !important; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- controls ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #3a3a3a; }
.btn.big { padding: 13px 26px; font-size: 15px; }
.btn.danger { color: var(--danger); border-color: #f0c9c5; }
.btn.danger:hover { background: #fdf1f0; border-color: var(--danger); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.link { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.link:hover { color: var(--ink); text-decoration: underline; }
.mini {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12px; cursor: pointer;
}
.mini:hover { border-color: var(--ink); }
.mini.on-ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.mini.on-change { background: var(--warn); color: #fff; border-color: var(--warn); }
.icon-btn {
  position: absolute; background: #fff; color: var(--ink); border: 0; border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1;
}
select, input, textarea {
  font: inherit; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; width: 100%;
}
select:focus, input:focus, textarea:focus { outline: 2px solid #14141422; border-color: var(--ink); }
input[type="color"] { padding: 2px; height: 40px; width: 64px; display: block; cursor: pointer; }
input[type="checkbox"] { width: auto; }
.field { display: block; font-size: 12px; color: var(--muted); margin-top: 16px; }
.field > select, .field > textarea, .field > input { margin-top: 6px; }
.locked .auth { display: none !important; }
.locked .tabs { display: none; }
.locked .topbar { grid-template-columns: 1fr auto; }

/* ---- sign-in ---- */
.gate { position: fixed; inset: 0; background: #fff; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate-box { width: min(380px, 100%); text-align: center; display: flex; flex-direction: column; gap: 14px; }
.gate-logo { height: 70px; margin: 0 auto 6px; display: block; }
.gate-box h1 { font-size: 30px; }
.gate-box p { margin: 0; }
.gate-box input { text-align: center; padding: 13px; font-size: 16px; }
.gate-err { color: var(--danger); min-height: 20px; font-size: 14px; }

/* ---- top bar ---- */
.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px 36px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20;
}
.brand img { height: 42px; width: auto; display: block; }
.tabs { display: flex; gap: 4px; background: var(--stage); padding: 4px; border-radius: 999px; }
.tabs button { border: 0; background: none; padding: 8px 20px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); font-weight: 500; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.top-actions { display: flex; gap: 14px; justify-content: flex-end; }

/* ---- build a look ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; padding: 32px 36px 64px; max-width: 1560px; margin: 0 auto; }
.left { align-self: start; }
@media (min-width: 961px) { .left { position: sticky; top: 92px; } }
.hero { position: relative; background: var(--stage); border-radius: 22px; aspect-ratio: 5 / 4; max-height: 62vh; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero img { max-height: 90%; max-width: 74%; object-fit: contain; cursor: zoom-in; mix-blend-mode: multiply; }
.icon-btn.zoom { top: 16px; right: 16px; z-index: 2; }
.icon-btn.prev { left: 16px; } .icon-btn.next { right: 16px; }
.dots { position: absolute; bottom: 16px; display: flex; gap: 8px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #14141433; cursor: pointer; }
.dots i.on { background: var(--ink); }
.hero-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--stage); color: var(--muted); font-family: var(--serif); font-size: 22px; }
.hero-empty p { margin: 0; }
.strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.chipimg { width: 64px; height: 64px; border-radius: 12px; background: var(--stage); border: 2px solid transparent; padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chipimg img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.chipimg.on { border-color: var(--ink); }
.chipimg.add { border: 1.5px dashed var(--line-strong); background: #fff; color: var(--muted); font-size: 22px; }
.chipimg.add:hover { border-color: var(--ink); color: var(--ink); }
.chipimg.ref { position: relative; }
.chipimg.ref button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }
.pinfo { padding: 20px 2px 4px; }
.pinfo h1 { font-size: 34px; line-height: 1.1; }
.sku { color: var(--muted); font-size: 13px; letter-spacing: .04em; margin-top: 4px; }
.controls { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 16px 2px 0; }
.fit, .inseam { display: flex; align-items: center; gap: 12px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.inseam select { width: 118px; }
.right { align-self: start; }
.title-input { border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 4px 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 20px; }
.title-input:focus { outline: none; border-bottom-color: var(--ink); }
.main-actions { display: flex; gap: 10px; margin-top: 24px; }
.main-actions .dark { flex: 1; }
.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.more summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "– "; }
.more-body { padding-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---- pages: pieces + files ---- */
.page { max-width: 1560px; margin: 0 auto; padding: 36px 36px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h2 { font-size: 32px; }
.page-head p { margin: 6px 0 0; max-width: 56ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: 18px; padding: 34px 16px; text-align: center; color: var(--muted);
  margin-bottom: 22px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: all .15s;
}
.dropzone strong { font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 600; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: var(--stage); }
.dropzone.slim { padding: 14px; font-size: 14px; border-radius: 14px; }
.dropzone.compact { padding: 16px; }
.dropzone.compact strong { font-size: 17px; }
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar input[type="search"] { max-width: 300px; border-radius: 999px; padding: 9px 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.card { background: #fff; position: relative; cursor: pointer; }
.card .img { height: 250px; background: var(--stage); border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.card .img img { max-width: 82%; max-height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: transform .2s; }
.card:hover .img img { transform: scale(1.03); }
.card .badge { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 999px; padding: 2px 10px; font-size: 11px; letter-spacing: .08em; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card .file-ic { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.card .body { padding: 10px 4px 0; }
.card .nm { font-weight: 600; line-height: 1.25; word-break: break-word; }
.card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); flex: none; }
.card .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card .sel { position: absolute; top: 12px; right: 12px; z-index: 2; width: 20px; height: 20px; }
.media-page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
.side { border-right: 1px solid var(--line); padding-right: 20px; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mcat { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.mcat:hover { background: var(--stage); }
.mcat.on { background: var(--ink); color: #fff; }
.mcat .n { font-size: 12px; opacity: .6; }
.mcat .ce { display: none; gap: 4px; }
.mcat:hover .ce { display: flex; }
.mcat .ce button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 12px; opacity: .8; padding: 0 2px; }
.bulk { display: flex; gap: 8px; align-items: center; }
.bulk select { width: 170px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); }

/* ---- overlays ---- */
.drawer { position: fixed; inset: 0; background: rgba(20,20,20,.3); z-index: 50; display: flex; justify-content: flex-end; }
.drawer-box { width: min(440px, 100%); background: #fff; height: 100%; overflow: auto; padding: 24px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.drawer-head h3 { font-size: 24px; }
.hint { font-size: 13px; margin: 0 0 12px; }
.saved { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.saved .chk { display: flex; align-items: center; gap: 8px; }
.saved small, .saved .chg { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.saved .row { display: flex; gap: 6px; margin-top: 10px; }
.modal { position: fixed; inset: 0; background: rgba(20,20,20,.4); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 22px; width: min(620px, 100%); max-height: 94vh; overflow: auto; padding: 28px; box-shadow: var(--shadow); }
.modal-box.wide-box { width: min(980px, 100%); }
.modal-box.piece { width: min(860px, 100%); }
.modal-box h3 { font-size: 26px; margin-bottom: 6px; }
.modal-box > div > p.muted { margin: 0 0 16px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.form-actions > div { display: flex; gap: 10px; }
.piece-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; margin-top: 16px; }
.piece-prev { background: var(--stage); border-radius: 16px; height: 300px; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.piece-prev img { max-width: 84%; max-height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.thumbbox { position: relative; width: 70px; text-align: center; }
.thumbbox img { width: 70px; height: 70px; object-fit: contain; background: var(--stage); border-radius: 10px; mix-blend-mode: multiply; }
.thumbbox .tb { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.thumbbox .tb button { border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--muted); padding: 0 3px; }
.thumbbox .tb button:hover { color: var(--ink); }
.thumbbox .ph { width: 70px; height: 70px; border-radius: 10px; background: var(--stage); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.upl { display: grid; grid-template-columns: 64px 1fr 170px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.upl img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--stage); }
.upl .ph { width: 64px; height: 64px; border-radius: 10px; background: var(--stage); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.upl .no { font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }
.progress { height: 6px; border-radius: 3px; background: var(--stage); overflow: hidden; margin-top: 16px; }
.progress i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .2s; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; max-height: 50vh; overflow: auto; }
.pick { border: 2px solid transparent; border-radius: 12px; background: var(--stage); padding: 6px; cursor: pointer; text-align: center; font-size: 11px; }
.pick.on { border-color: var(--ink); }
.pick img { width: 100%; height: 90px; object-fit: contain; mix-blend-mode: multiply; }
.catrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.catrow small { color: var(--muted); }
.send-list { display: grid; gap: 10px; margin-top: 16px; }
.send-list .btn { justify-content: flex-start; padding: 14px 20px; }
.send-list .btn small { color: var(--muted); font-weight: 400; margin-left: auto; }
.send-list .btn.dark small { color: #bbb; }
.cgrid { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 6px; align-items: center; }
.cgrid .ch { font-family: var(--serif); font-weight: 600; padding: 6px 8px; font-size: 17px; }
.cgrid .cl { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; }
.cgrid .cv { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--stage); min-height: 52px; }
.cgrid .cv img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.cgrid .cv.diff { outline: 2px solid var(--warn); background: #fdf3ec; }
.details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.details summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.details summary::before { content: "+ "; }
.details[open] summary::before { content: "– "; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form .wide { grid-column: 1 / -1; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; transition: all .2s; pointer-events: none; z-index: 120; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

@media (max-width: 960px) {
  .topbar { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .tabs { grid-column: 1 / -1; order: 3; justify-self: stretch; justify-content: space-between; }
  .tabs button { flex: 1; padding: 8px 6px; }
  .layout { grid-template-columns: 1fr; padding: 16px; gap: 28px; }
  .page { padding: 20px 16px; }
  .media-page { grid-template-columns: 1fr; }
  .side { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .piece-grid { grid-template-columns: 1fr; }
  .upl { grid-template-columns: 56px 1fr; } .upl > select { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .icon-btn, .main-actions, .more, .tools, .notebtn, .dots, .lightbox, .drawer, .modal, .pantsbar, .field textarea + * { display: none !important; }
  .layout { grid-template-columns: 1fr 1fr; padding: 0; }
  .left { position: static; }
}

/* ---- outfit overview (mannequin) ---- */
.cattabs { margin-bottom: 14px; }
.small { font-size: 13px; margin: -10px 0 14px; }
.piece-note { margin-top: 6px; }
.piece-note .notebox { margin-top: 8px; max-width: 460px; }
.piece-note .notebox textarea { margin-top: 8px; font-size: 13px; }
.piece-note .notebox .row { display: flex; gap: 6px; }
.chipimg.none { font-size: 12px; color: var(--muted); }
.mannequin { position: relative; width: min(100%, 320px); aspect-ratio: 300 / 660; margin: 0 auto; }
.mannequin > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot {
  position: absolute; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1.5px dashed #b9b8b3; border-radius: 10px; color: #8a8985; font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  text-align: center; transition: background .15s, border-color .15s; outline-offset: 2px;
}
.slot:hover, .slot.over { border-color: var(--ink); background: #ffffffaa; color: var(--ink); }
.slot.filled { border-color: transparent; }
.slot.filled:hover { border-color: var(--line-strong); background: none; }
.slot.active { border: 2px solid var(--ink); border-style: solid; }
.slot img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.slot-label { padding: 2px; line-height: 1.2; }
.slot-dot { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); border: 2px solid #fff; }
.slot-dot.ok { background: var(--ok); } .slot-dot.change { background: var(--warn); }
.extras { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 18px auto 0; max-width: 360px; }
.extra { width: 92px; text-align: center; }
.extra .slot { position: relative; width: 92px; height: 92px; background: var(--stage); border-color: transparent; }
.extra .slot:not(.filled) { border-color: #b9b8b3; background: #fff; }
.extra .slot.active { border-color: var(--ink); }
.extra-name { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---- builder extras: options, pins, links, voice ---- */
.chipwrap { position: relative; }
.chipimg.also { border-color: var(--line-strong); }
.alsotoggle { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; color: var(--ink); }
.alsotoggle.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot-count { position: absolute; left: 4px; bottom: 4px; font-style: normal; background: var(--ink); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 6px; letter-spacing: 0; }
.figtools { text-align: center; margin: 8px 0 0; }
.figtools .link.on { color: var(--ink); font-weight: 600; }
.mannequin.pinmode { cursor: crosshair; }
.pin { position: absolute; z-index: 20; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid #fff; background: #e0a100; color: #fff; font-size: 11px; font-weight: 700; cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.3); padding: 0; touch-action: none; }
.pin.open { background: var(--ink); }
.pinpop { position: absolute; z-index: 30; width: 200px; margin: 18px 0 0 -100px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; }
.pinpop.left { margin-left: -190px; }
.pinpop textarea { font-size: 13px; padding: 7px 9px; }
.pinpop p { margin: 0; font-size: 14px; }
.pinpop .row { display: flex; gap: 6px; margin-top: 8px; justify-content: space-between; }
.linkrow { display: flex; gap: 8px; margin-top: 6px; }
.linkrow .btn { padding: 8px 16px; }
.linklist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.linkchip { display: inline-flex; align-items: center; gap: 6px; background: var(--stage); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; max-width: 100%; }
.linkchip a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.linkchip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12px; }
.vrec { margin-top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.recbtn { gap: 10px; padding: 11px 22px; }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: #d92d20; display: inline-block; }
.recdot.live { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.recing { display: flex; align-items: center; gap: 12px; font-size: 20px; font-family: var(--serif); }
.vlist { display: grid; gap: 10px; margin-top: 12px; }
.vitem { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.vitem audio { width: 100%; margin: 6px 0; height: 36px; }
.vhead { display: flex; justify-content: space-between; gap: 8px; }
.vfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.vacts { display: flex; gap: 6px; }
.vwarn { color: var(--warn); font-weight: 600; }
.vnote { margin: 8px 0 0; }

/* ---- storyboard ---- */
.boardpage { padding: 18px 28px 40px; max-width: 1700px; margin: 0 auto; }
.bhead2 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bhead2 .bsel { width: auto; min-width: 200px; font-family: var(--serif); font-size: 18px; font-weight: 600; border-radius: 999px; padding: 8px 16px; }
.bhead2 .btitle { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.bhead2 select { width: auto; border-radius: 999px; padding: 8px 14px; }
.bgroup { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bsave { margin-left: auto; font-size: 13px; }
.btools { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.btools .btn { padding: 7px 16px; }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.zoomlabel { min-width: 44px; text-align: center; font-size: 13px; color: var(--muted); }
.bbanner { background: #fdf3ec; border: 1px solid #f0cdb5; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.bmain { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.btray { border: 1px solid var(--line); border-radius: 16px; padding: 14px; max-height: calc(100vh - 220px); overflow: auto; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tthumb { aspect-ratio: 1; background: var(--stage); border-radius: 10px; padding: 4px; cursor: grab; display: flex; align-items: center; justify-content: center; }
.tthumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bcol { min-width: 0; }
.bselbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; background: var(--stage); border-radius: 12px; margin-bottom: 8px; min-height: 42px; }
.bselbar[hidden] { display: none; }
.selname { margin-right: 6px; font-size: 13px; }
.swatchbtn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); cursor: pointer; padding: 0; }
.swatchbtn.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.mini.danger { color: var(--danger); border-color: #f0c9c5; }
.bcanvas {
  position: relative; height: calc(100vh - 250px); min-height: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; touch-action: none; cursor: grab;
  background-color: #fbfaf8; background-image: radial-gradient(circle, #d8d6d0 1.2px, transparent 1.3px);
}
.bcanvas.panning { cursor: grabbing; }
.bworld { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.bempty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); pointer-events: none; }
.bitem { position: absolute; box-sizing: border-box; user-select: none; }
.bitem.sel { outline: 2px solid #2c5cff; outline-offset: 3px; }
.bitem.panel { background: #fff; border: 1.5px solid var(--line-strong); border-radius: 6px; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(20,20,20,.06); }
.bitem .bhead { height: 28px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 13px; cursor: grab; background: #faf9f7; border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; }
.bitem .bhead.slim { position: absolute; top: -24px; left: 0; background: none; border: 0; opacity: 0; }
.bitem.text:hover .bhead.slim, .bitem.text.sel .bhead.slim { opacity: 1; }
.grip { color: var(--muted); letter-spacing: -2px; }
.bimg { flex: none; background: var(--stage); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.bimg img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.bph { color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }
.bitem textarea, .bitem input { border: 0; border-radius: 0; background: transparent; padding: 8px 10px; font-size: 13px; width: 100%; resize: none; outline: none; user-select: text; }
.bitem .bcap { flex: 1; min-height: 0; border-top: 1px solid var(--line); }
.bitem .bmeta { flex: none; height: 30px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding: 0 10px; }
.bitem.note { box-shadow: 0 3px 10px rgba(0,0,0,.12); display: flex; flex-direction: column; border-radius: 2px; }
.bitem.note .bhead { background: rgba(0,0,0,.05); border: 0; border-radius: 0; }
.bitem.note .btext { flex: 1; font-size: 14px; }
.bitem.text .btext { height: 100%; font-weight: 500; line-height: 1.25; padding: 0; }
.bitem.image img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; cursor: grab; }
.bitem.image { cursor: grab; }
.bresize { position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px; border-radius: 4px; background: #2c5cff; border: 2px solid #fff; cursor: nwse-resize; display: none; touch-action: none; }
.bitem.sel .bresize { display: block; }
.ro .bedit { display: none !important; }
.btraytoggle { display: none; margin-bottom: 10px; }

/* ---- phones and tablets ---- */
@media (max-width: 960px) {
  .tabs { overflow-x: auto; justify-content: flex-start; }
  .tabs button { flex: none; padding: 8px 14px; }
  .brand img { height: 36px; }
  .hero { max-height: 52vh; }
  .title-input { font-size: 24px; }
  .mannequin { width: min(100%, 300px); }
  .btn, .pill, .chip, .mini { min-height: 40px; }
  .mini { padding: 6px 12px; }
  .main-actions { position: sticky; bottom: 0; background: #fffffff2; padding: 12px 0; z-index: 10; margin-top: 16px; }
  .boardpage { padding: 12px 12px 30px; }
  .bmain { grid-template-columns: 1fr; }
  .bmain.traymin .btray { display: none; }
  .btray { max-height: 46vh; }
  .btraytoggle { display: inline-flex; }
  .bcanvas { height: 62vh; min-height: 340px; }
  .bsave { margin-left: 0; }
  .modal-box { padding: 20px; border-radius: 18px; }
  .linkrow { flex-direction: column; }
  .pinpop { width: 170px; margin-left: -85px; }
}
@media (max-width: 480px) {
  .layout { padding: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .img { height: 180px; }
  .page-head h2 { font-size: 26px; }
  .upl { grid-template-columns: 56px 1fr; }
}

/* ---- models ---- */
.model-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card .img.person img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; mix-blend-mode: normal; transition: none; }
.card .badge.trust { left: auto; right: 10px; background: var(--ink); color: #fff; }
.thumbbox.person img { object-fit: cover; mix-blend-mode: normal; cursor: zoom-in; }
.thumbbox .main { position: absolute; top: 4px; left: 4px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; background: #fff; border-radius: 999px; padding: 1px 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.trustbox { background: #f2f7f3; border: 1px solid #cfe3d6; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-top: 10px; }
.lockrow { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.lockrow input { margin-top: 4px; width: 18px; height: 18px; }
.lockrow small { display: block; color: var(--muted); }
.modelbar { margin: 0 0 16px; }
.avatars { gap: 12px; flex-wrap: wrap; }
.avatar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); }
.avatar img, .avatar .plus { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-strong); background: var(--stage); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--muted); }
.avatar.on img, .avatar.on .plus { box-shadow: 0 0 0 2px var(--ink); }
.avatar span:not(.plus) { font-size: 11px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar.add .plus { border: 1.5px dashed var(--line-strong); box-shadow: none; }
.lockdot { position: absolute; top: 0; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.modelnote { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.trusted { color: var(--ok); font-weight: 600; }
.headslot { position: absolute; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1.5px dashed #b9b8b3; color: #8a8985; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.headslot.filled { border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.headslot img { width: 100%; height: 100%; object-fit: cover; }
.bmodel { width: auto; border-radius: 999px; padding: 8px 14px; }
.bsmall { width: auto; padding: 4px 10px; font-size: 12px; border-radius: 999px; }
.bmtag { font-weight: 400; font-size: 12px; }

/* polish: compact storyboard toolbar on phones, voice notes that fit narrow panels */
.vitem { overflow: hidden; min-width: 0; }
.vacts { flex-wrap: wrap; }
@media (max-width: 960px) {
  .btools { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .btools .bgroup { flex: none; flex-wrap: nowrap; }
  .bhead2 { gap: 8px; }
  .bhead2 .bsel { min-width: 0; flex: 1; }
}

/* ---- Google sign-in ---- */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 18px; padding: 13px 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.gbtn:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.gbtn:disabled { opacity: .5; cursor: wait; }
.gate-inapp { margin-top: 14px; text-align: left; background: var(--stage); padding: 10px 12px; border-radius: 10px; }
.userchip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.userchip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.adminonly { display: none; }
body.is-admin .adminonly { display: inline-block; }
.guest { display: none; padding: 7px 18px; }
body.locked .guest { display: inline-flex; }
.people-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.people-row img, .people-row .av { width: 36px; height: 36px; border-radius: 50%; background: var(--stage); object-fit: cover; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.people-row small { display: block; color: var(--muted); }
@media (max-width: 960px) { .userchip span { display: none; } }
.top-actions { align-items: center; }
.top-actions .link, .top-actions .btn { white-space: nowrap; }

/* view-only storyboard: just the board, full width */
.bmain.noside { grid-template-columns: 1fr; }
.bmain.noside .btray[hidden] { display: none; }

/* bulk upload: folder lines and a scrolling list */
.uplist { max-height: 46vh; overflow: auto; margin-top: 6px; }
.grouphead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin: 6px 0; background: var(--stage); border-radius: 12px; font-size: 14px; }
.grouphead select { width: auto; min-width: 140px; padding: 6px 10px; }

.colourbox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.colourbox input[type="color"] { display: inline-block; }
.hexcode { font-size: 13px; background: var(--stage); border-radius: 8px; padding: 4px 8px; }
.lockrow.wide { grid-column: 1 / -1; }

/* ---- manual colour: palette chips + picker ---- */
.colourrow { margin-top: 16px; }
.cswatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.cswatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.cswatch.on { box-shadow: 0 0 0 2px var(--ink); }
.crow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cpick { width: 44px; height: 36px; padding: 2px; border-radius: 10px; cursor: pointer; display: inline-block; }
.cname { width: 180px; }
.colourview { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cdot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); display: inline-block; }
.slot-colour { position: absolute; top: -5px; left: -5px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 1px 3px rgba(0,0,0,.25); z-index: 8; }
.palette { max-height: 50vh; overflow: auto; }
.palrow { display: grid; grid-template-columns: 40px 44px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.palimg { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; cursor: zoom-in; background: var(--stage); display: block; }
.palimg.none { cursor: default; }

/* ---- preview (viewer for every kind of file) ---- */
.lightbox { position: fixed; inset: 0; background: rgba(255,255,255,.985); z-index: 70; display: flex; flex-direction: column; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; gap: 10px; flex-wrap: wrap; }
.lb-title { font-family: var(--serif); font-size: 18px; font-weight: 600; min-width: 0; }
.lb-title small { font-family: inherit; font-weight: 400; color: var(--muted); margin-left: 10px; font-size: 13px; }
.lb-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-tools .btn { padding: 6px 14px; text-decoration: none; }
#lbZoomTools { display: inline-flex; gap: 8px; }
.lb-main { flex: 1; display: flex; min-height: 0; align-items: stretch; }
.lb-stage { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: grab; position: relative; min-width: 0; }
.lb-stage:active { cursor: grabbing; }
.lb-stage img { max-width: 88%; max-height: 92%; transition: transform .08s; user-select: none; background: var(--stage); border-radius: 14px; padding: 20px; }
.lb-stage iframe { width: min(960px, 96%); height: 94%; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: default; }
.lb-stage video { max-width: 92%; max-height: 92%; border-radius: 12px; background: #000; }
.lb-stage audio { width: min(520px, 90%); }
.lb-filecard { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 30px; border: 1px solid var(--line); border-radius: 18px; }
.lb-nav { width: 52px; border: 0; background: none; font-size: 40px; color: var(--muted); cursor: pointer; flex: none; }
.lb-nav:hover { color: var(--ink); }
.lb-info { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 6px 20px; min-height: 8px; font-size: 14px; }
.lb-info .btn { padding: 7px 18px; text-decoration: none; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 20px 14px; justify-content: center; }
.lb-thumb { flex: none; width: 58px; height: 58px; border-radius: 10px; border: 2px solid transparent; background: var(--stage); padding: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.lb-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-thumb.on { border-color: var(--ink); }

/* ---- piece details sheet ---- */
.modal-box.sheet { width: min(1020px, 100%); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head h3 { margin-bottom: 4px; }
.chipok { background: #eaf5ee; color: var(--ok); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sheet-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 12px; }
.sheet-main { background: var(--stage); border-radius: 16px; height: 420px; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.sheet-main img { max-width: 88%; max-height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.sheet-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sheet-thumb { position: relative; width: 68px; height: 68px; border-radius: 10px; border: 2px solid transparent; background: var(--stage); padding: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.sheet-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sheet-thumb small { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 999px; padding: 0 6px; font-size: 9px; letter-spacing: .04em; box-shadow: 0 1px 3px rgba(0,0,0,.15); white-space: nowrap; }
.sheet-thumb.on { border-color: var(--ink); }
.dlist { margin: 0; }
.drow { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.drow dt { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.drow dd { margin: 0; word-break: break-word; }
.dcol { display: inline-flex; align-items: center; gap: 8px; }
.dlinks { display: grid; gap: 4px; }
.dlinks a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }

/* ---- fabric and close-ups ---- */
.piece-details { margin-top: 18px; }
.factline { margin: 6px 0; font-size: 14px; }
.detailstrip { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.dthumb { width: 78px; border: 0; background: none; padding: 0; cursor: pointer; text-align: center; font: inherit; }
.dthumb img, .dthumb span { width: 78px; height: 78px; object-fit: cover; border-radius: 12px; background: var(--stage); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.dthumb small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.closeups { display: grid; gap: 10px; margin-top: 8px; }
.cu { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; }
.cu img, .cu .ph { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--stage); cursor: zoom-in; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.cufields { display: grid; gap: 6px; }
.cufields input, .cufields select { font-size: 13px; padding: 6px 10px; }
.cubtns { display: flex; flex-direction: column; gap: 2px; }
.cubtns button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12px; padding: 0 4px; }
.cubtns button:hover { color: var(--ink); }
.bshotlink { margin-left: auto; font-size: 11px; color: var(--ink); text-decoration: underline; cursor: pointer; }
@media (max-width: 960px) {
  .sheet-grid { grid-template-columns: 1fr; }
  .sheet-main { height: 300px; }
  .drow { grid-template-columns: 1fr; gap: 2px; }
  .lb-nav { width: 34px; font-size: 30px; }
  .lb-stage img { max-width: 96%; padding: 8px; }
}

/* ---- audit fixes ---- */
.layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.left, .right { min-width: 0; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.hero { max-height: min(50vh, 500px); }                              /* leave room for colour, fit and details without scrolling */
.cattabs { gap: 6px; }
.cattabs .chip { padding: 5px 12px; font-size: 13px; }
#pieceStrip { flex-wrap: nowrap; overflow-x: auto; padding: 4px 4px 8px; margin-inline: -4px; scrollbar-width: thin; }
#pieceStrip > * { flex: none; }
#stripHint { margin: 2px 0 6px; }
.slot:not(.filled) { border-color: #d4d3ce; color: #a5a4a0; }
.lb-title span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bpresent[hidden] { display: none; }
.ro .bcanvas { height: calc(100vh - 170px); }

/* ---- lookbook presentation (the way a client reads it) ---- */
.bpresent { max-width: 1120px; margin: 0 auto; padding: 8px 4px 56px; }
.bp-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin: 8px 0 4px; letter-spacing: -.01em; }
.bp-text { margin: 4px 0 18px; color: var(--muted); max-width: 70ch; }
.bp-h { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 34px 0 12px; color: var(--ink); }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-bottom: 8px; }
.bp-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.bp-card .bp-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px 6px; font-size: 13px; color: var(--muted); }
.bp-card .bp-head b { color: var(--ink); font-size: 14px; }
.bp-card .bp-img { background: var(--stage); margin: 0 12px; border-radius: 12px; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; cursor: zoom-in; overflow: hidden; }
.bp-card .bp-img img { width: 100%; height: 100%; object-fit: contain; }
.bp-card p { margin: 10px 16px 4px; font-size: 15px; line-height: 1.45; }
.bp-card .bp-meta { color: var(--muted); font-size: 13px; margin: 0 16px; }
.bp-card .bp-acts { display: flex; gap: 8px; padding: 12px 16px 16px; flex-wrap: wrap; margin-top: auto; }
.bp-card .bp-acts .btn { padding: 7px 16px; font-size: 14px; text-decoration: none; }
.bp-note { border-radius: 4px; padding: 16px 20px; margin: 18px 0; max-width: 520px; white-space: pre-wrap; box-shadow: 0 3px 10px rgba(0,0,0,.1); line-height: 1.5; }
.bp-gallery { display: flex; flex-wrap: wrap; gap: 14px; }
.bp-gallery img { height: 200px; width: auto; max-width: 100%; border-radius: 12px; cursor: zoom-in; object-fit: cover; }
@media (max-width: 960px) {
  .hero { max-height: 52vh; }
  .cattabs .chip { padding: 7px 13px; }
}

@media (max-width: 700px) {
  .lb-bar { flex-wrap: nowrap; padding: 10px 12px; align-items: flex-start; }
  .lb-title { flex: 1; font-size: 16px; }
  .lb-tools { flex: none; flex-wrap: nowrap; }
  .lb-tools #lbOpen, #lbZoomTools { display: none; }      /* pinch and double-tap zoom instead */
  .lb-tools .btn { padding: 8px 14px; }
}

/* ---- home, looks, storyboards ---- */
.brand { border: 0; background: none; padding: 0; cursor: pointer; display: block; }
.backlink { padding: 2px 0 8px; font-size: 14px; }
.home { max-width: 980px; margin: 0 auto; padding: clamp(40px, 10vh, 110px) 24px 80px; }
.home h1 { font-size: clamp(36px, 5.5vw, 56px); margin: 0 0 40px; line-height: 1.05; }
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 22px 20px; text-align: left; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.tile b { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; min-height: 40px; }
.tile span { color: var(--muted); font-size: 15px; }
.look-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.board-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: start; }
.card .img.look { background: #fff; border: 1px solid var(--line); height: 320px; }
.card .img.look img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; mix-blend-mode: normal; }
.card .img.board { height: auto; width: 100%; background: var(--stage); }
.card .img.board img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; mix-blend-mode: normal; }
.tthumb.look { background: #fff; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.lookimg { width: 100%; height: 100%; object-fit: contain; }
.picker.looks { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.picker.looks .pick img { height: 170px; }
.bhead2 .btitle { font-size: 26px; margin: 0; }
.gate-box h1 { font-size: clamp(36px, 6vw, 52px); }
.ro .bhead2 { margin-bottom: 4px; }
