/* =================================================================
   MS PRINT SOLUTIONS: Design Studio styles
   Uses the design tokens from css/styles.css (load that file first).
   ================================================================= */

.studio-page main { padding-bottom: 40px; }
.studio [hidden] { display: none !important; }
.studio-page.designing .wa-float { display: none; }
.studio section { padding: 0; }
.studio .work { padding: 0 14px; }
body.designing .studio .studio-head { padding: 96px 0 14px; }
body.designing .studio-head .sh-top > div:first-child { display: none; }
body.designing .sh-top { justify-content: flex-end; }
.studio .studio-head { padding: 118px 0 34px; }
.sh-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.studio-head h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.055em; margin: 0 0 14px; }
.studio-head p { max-width: 560px; margin: 0; font-size: 1.05rem; }

/* step indicator */
.steps-bar { list-style: none; display: flex; gap: 6px; padding: 6px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.steps-bar button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--dim); font: 500 .88rem var(--sans); padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer; transition: background-color .3s, color .3s; }
.steps-bar b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; border: 1px solid var(--line-2); }
.steps-bar li.done button { color: var(--muted); }
.steps-bar li.done b { background: var(--card-2); }
.steps-bar li.current button { background: var(--inv); color: var(--on-inv); }
.steps-bar li.current b { background: var(--accent); color: #fff; border-color: transparent; }
.steps-bar li.locked button { cursor: default; opacity: .55; }
@media (max-width: 600px) { .steps-bar { width: 100%; justify-content: space-between; gap: 2px; } .steps-bar button { padding: 5px 8px 5px 5px; font-size: .74rem; gap: 5px; } .steps-bar b { width: 22px; height: 22px; } }

.screen { animation: screenIn .6s var(--out); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } }
.screen-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 6px 0 26px; }
.screen-bar { margin-bottom: 14px; }
.back-btn { padding: 0 20px 0 6px; }

/* category + item cards */
/* 3 × 2 on desktop (5 categories + "Continue"), 2 columns on tablet, 1 on phones; an odd last card spans the row so it never sits alone */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (min-width: 561px) and (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } .cat-grid > :last-child:nth-child(odd) .thumb { aspect-ratio: 32 / 9; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pick-card { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font: inherit; overflow: hidden; transition: transform .5s var(--out), border-color .3s, box-shadow .4s; }
.pick-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; }
.pick-card:hover, .pick-card:focus-visible { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.pick-card:hover::after { opacity: 1; }
.pick-card .thumb { height: 120px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 10px; overflow: hidden; }
.pick-card .thumb svg { width: 86%; height: 86%; }
.pick-card .thumb .ico-big { width: 52px; height: 52px; color: var(--text); opacity: .85; }
.pick-card h3 { font-size: 1.12rem; margin: 0; }
.pick-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.pick-card .count { position: absolute; top: 14px; right: 14px; font-size: .74rem; color: var(--m); border: 1px solid var(--line-2); padding: 3px 9px; border-radius: 999px; background: var(--card); z-index: 1; }
.cat-card .thumb { height: auto; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), var(--bg-2)); }
.cat-card .thumb svg { width: 64px; height: 64px; }
.silo .body { fill: color-mix(in srgb, var(--text) 18%, var(--bg-2)); stroke: color-mix(in srgb, var(--text) 40%, transparent); stroke-width: .03; }
.silo .glass { fill: color-mix(in srgb, var(--bg) 70%, #3b5bdb); }
.silo .dark, .silo .tyre { fill: var(--bg); }
.silo .rim { fill: var(--c); }

/* workspace */
.work { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 14px; height: calc(100svh - 168px); min-height: 520px; }
.viewport { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); touch-action: none; }
.stage3d, .stage2d { position: absolute; inset: 0; }
.stage3d canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.stage3d canvas:active { cursor: grabbing; }
/* before / after compare overlay: only the divider takes pointer input, so the view still orbits */
.cmp { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cmp-lbl { position: absolute; top: 64px; padding: 4px 10px; border-radius: 999px; font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(10, 11, 14, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmp-before { left: 14px; } .cmp-after { right: 14px; }
.cmp-line { position: absolute; top: 0; bottom: 0; width: 28px; margin-left: -14px; cursor: ew-resize; pointer-events: auto; touch-action: none; }
.cmp-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 13px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 14px rgba(0, 0, 0, .35); }
.cmp-handle { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; display: flex; align-items: center; justify-content: center; gap: 0; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff; cursor: ew-resize; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.cmp-handle svg { width: 12px; height: 12px; }
.cmp-handle svg:first-child { transform: rotate(180deg); }
.cmp-handle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.viewport.placing canvas { cursor: crosshair !important; }
.flat-canvas { display: block; }
.vp-top, .vp-bottom { position: absolute; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; pointer-events: none; z-index: 2; }
.vp-top { top: 14px; } .vp-bottom { bottom: 14px; align-items: flex-end; }
.seg { pointer-events: auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 .82rem var(--sans); cursor: pointer; transition: background-color .25s, color .25s; }
.seg button svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--inv); color: var(--on-inv); }
.seg button:disabled { opacity: .35; cursor: default; }
.vp-note { pointer-events: auto; margin: 0; font-size: .74rem; color: var(--muted); padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); max-width: 60%; }
.vp-hint { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 3; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .86rem; font-weight: 500; box-shadow: 0 14px 30px -12px var(--accent); animation: hintIn .5s var(--out); width: max-content; max-width: calc(100% - 28px); text-align: center; line-height: 1.35; }
.vp-hint button { margin-left: 10px; border: 0; background: rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: 3px 10px; cursor: pointer; font: inherit; font-size: .8rem; }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, -8px); } }
.vp-loader { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--muted); font-size: .92rem; }
.ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line-2); stroke-width: 3; }
.ring .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: 90; animation: spin 1.1s linear infinite; transform-origin: 24px 24px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* panel */
.panel { display: flex; flex-direction: column; min-height: 0; border-radius: 28px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.sheet-handle { display: none; }
.panel-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 18px 18px 10px; }
.panel-head small { color: var(--m); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.panel-head h2 { font-size: 1.45rem; margin: 2px 0 0; letter-spacing: -.04em; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
/* tools: an icon toolbar down the left of the panel on desktop, a 4-column icon grid on tablets and phones */
.panel-main { flex: 1; min-height: 0; display: flex; border-top: 1px solid var(--line); }
.tabs { flex: none; width: 80px; display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; overflow-y: auto; scrollbar-width: none; border-right: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 58px; padding: 8px 4px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 .7rem/1.1 var(--sans); text-align: center; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.tabs button svg { width: 20px; height: 20px; flex: none; }
.tabs button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tabs button[aria-selected="true"] { background: var(--inv); color: var(--on-inv); border-color: var(--inv); }
.tab-body { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 20px; }
.tab-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-height: 760px) and (min-width: 901px) { .tabs button { min-height: 48px; gap: 3px; padding: 5px 4px; } .tabs button svg { width: 18px; height: 18px; } }
.ctl > .ctl-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; letter-spacing: .01em; }
.ctl-label span { font-weight: 500; color: var(--dim); }
.ctl p.help { margin: 8px 0 0; font-size: .8rem; color: var(--dim); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; }
.swatch { aspect-ratio: 1; min-width: 40px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .3s var(--out), box-shadow .2s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.colour-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.colour-row input[type="color"] { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: none; padding: 3px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 .86rem var(--sans); cursor: pointer; transition: .2s; }
.chip-btn:hover { color: var(--text); border-color: var(--text); }
.chip-btn[aria-pressed="true"] { background: var(--inv); color: var(--on-inv); border-color: var(--inv); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 14px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: var(--bg-2); color: var(--muted); text-align: center; cursor: pointer; font: inherit; width: 100%; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--text); }
.drop svg { width: 26px; height: 26px; }
.drop b { color: var(--text); font-weight: 600; }
.drop small { font-size: .76rem; color: var(--dim); }
.asset-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.asset { position: relative; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--bg-2) 0 25%, var(--card-2) 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; padding: 6px; cursor: pointer; }
.asset img { max-width: 100%; max-height: 100%; object-fit: contain; }
.asset:hover { border-color: var(--line-2); }
.asset small { position: absolute; bottom: 4px; left: 4px; right: 4px; font-size: .62rem; background: var(--bg); color: var(--muted); border-radius: 6px; padding: 1px 4px; text-align: center; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field-in { width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
textarea.field-in { min-height: 70px; resize: vertical; }
select.field-in { appearance: auto; }
.field-in:focus { outline: none; border-color: var(--line-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; font-size: .9rem; }
.toggle input { width: 42px; height: 24px; appearance: none; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background-color .25s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--out); }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(18px); }
.tpl-grid { display: grid; gap: 8px; }
.tpl { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; font: inherit; transition: .25s; }
.tpl:hover { border-color: var(--accent); transform: translateX(3px); }
.tpl b { font-weight: 600; }
.tpl span { font-size: .82rem; color: var(--muted); }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 500 .82rem var(--sans); cursor: pointer; transition: .2s; }
.mini-btn:hover { border-color: var(--text); }
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn.danger:hover { border-color: #e5484d; color: #e5484d; }
.decal-list { display: flex; flex-direction: column; gap: 6px; }
.decal-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.decal-item[aria-pressed="true"] { border-color: var(--accent); }
.decal-item .dthumb { width: 36px; height: 36px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; overflow: hidden; flex: none; font-size: .7rem; color: var(--muted); }
.decal-item .dthumb img { max-width: 100%; max-height: 100%; }
.decal-item span { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decal-item small { margin-left: auto; color: var(--dim); font-size: .74rem; flex: none; }
.sel-card { flex: none; max-height: 52%; overflow-y: auto; border-top: 1px solid var(--line); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.sel-card .sel-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 600; }
.sel-card .sel-head span { color: var(--m); font-weight: 500; }
.sel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sel-grid label { font-size: .74rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.nudge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.panel-foot { flex: none; padding: 14px 18px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.files-note { margin: 0; font-size: .74rem; color: var(--dim); }
.files-note::before { content: "\1F512  "; }
.empty-note { font-size: .86rem; color: var(--muted); padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); }

/* send */
.send-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: start; }
.send-img { margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.send-img img { width: 100%; display: block; }
.send-img figcaption { padding: 12px 16px; font-size: .8rem; color: var(--muted); }
.sum-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.sum-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.sum-list li b { color: var(--text); font-weight: 500; }
.send-btns { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.send-btns .btn { justify-content: space-between; }
.send-note { min-height: 1.2em; font-size: .86rem; color: var(--muted); margin: 14px 0; }
.link-btn { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

.credits { border: 1px solid var(--line-2); border-radius: 24px; background: var(--card); color: var(--text); padding: 26px; max-width: 520px; width: calc(100% - 32px); }
.credits::backdrop { background: rgba(0,0,0,.55); }
.credits h3 { font-size: 1.5rem; }
.credits p, .credits li { color: var(--muted); font-size: .9rem; }

/* mobile: viewport on top, controls in a bottom sheet */
@media (max-width: 900px) {
  .studio-head { padding: 104px 0 18px; }
  .studio-page.designing .studio-head { display: none; }
  .studio-page.designing footer { display: none; }
  .studio .work { display: block; height: auto; min-height: 0; padding: 0; margin: 0; }
  .viewport { position: fixed; left: 8px; right: 8px; top: 86px; height: calc(56svh - 80px); border-radius: 22px; }
  .vp-note { display: none; }
  .vp-top { top: 10px; left: 10px; right: 10px; } .vp-bottom { bottom: 10px; left: 10px; right: 10px; }
  .seg button { min-height: 34px; padding: 0 10px; font-size: .78rem; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; top: calc(56svh + 14px); z-index: 60; border-radius: 24px 24px 0 0; border-bottom: 0; box-shadow: 0 -20px 50px -20px rgba(0,0,0,.6); transition: top .5s var(--out); }
  .panel.expanded { top: 18svh; }
  .sheet-handle { display: grid; place-items: center; height: 22px; width: 100%; border: 0; background: transparent; cursor: pointer; flex: none; }
  .sheet-handle span { width: 44px; height: 5px; border-radius: 999px; background: var(--line-2); }
  .panel-head { padding: 0 16px 8px; } .panel-head h2 { font-size: 1.2rem; }
  .panel-main { flex-direction: column; border-top: 0; }
  .tabs { width: auto; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; padding: 4px 16px 10px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .tabs button { min-height: 50px; gap: 3px; padding: 6px 2px; border-color: var(--line); font-size: .68rem; }
  .tabs button svg { width: 18px; height: 18px; }
  .tab-body { padding: 14px 16px 18px; gap: 16px; }
  .panel-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .files-note { font-size: .7rem; }
  .send-grid { grid-template-columns: 1fr; gap: 24px; }
}
/* phones: a compact 4 × 2 tool grid (icon beside label) and a slightly taller sheet, so the controls stay in view */
@media (max-width: 560px) {
  .viewport { height: calc(52svh - 80px); }
  .panel { top: calc(52svh + 14px); }
  .panel-head small { display: none; }
  .tabs { gap: 5px; padding: 2px 12px 8px; }
  .tabs button { flex-direction: row; min-height: 36px; gap: 4px; padding: 4px 2px; font-size: .66rem; }
  .tabs button svg { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) { .screen, .vp-hint { animation: none; } .ring .arc { animation: none; } }

/* ===== Design Studio 2.0: film range, designs, parts ===== */
.film-now { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.film-now i, .film-tile i, .part-sw { display: block; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.film-now i { width: 44px; height: 44px; flex: none; }
.film-now b { display: block; font-size: .95rem; } .film-now small { color: var(--muted); font-size: .78rem; }
/* film library: colour families, finish filter and named swatches */
.colfam-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px 2px; }
.colfam { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 5px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--muted); font: 500 .66rem/1.1 var(--sans); cursor: pointer; transition: .2s; }
.colfam i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 0 0 1px var(--line-2); transition: transform .25s var(--out); }
.colfam .colfam-all { background: conic-gradient(#c8102e, #f5c400, #2e8b3e, #1e3aa8, #5b2a86, #e2457a, #c8102e); }
.colfam:hover { color: var(--text); } .colfam:hover i { transform: scale(1.08); }
.colfam[aria-pressed="true"] { color: var(--text); border-color: var(--line-2); background: var(--bg-2); }
.colfam[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 0 0 2px var(--accent); }
.fin-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fin-chips .chip-btn { min-height: 32px; font-size: .78rem; padding: 0 11px; }
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.film-grid.recent { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.film-grid.recent .film-tile i { width: 36px; height: 36px; }
.film-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 14px; border: 1px solid transparent; background: none; color: var(--muted); font: 500 .7rem/1.2 var(--sans); text-align: center; cursor: pointer; transition: .2s; -webkit-touch-callout: none; user-select: none; }
.film-tile i { width: 52px; height: 52px; transition: transform .3s var(--out); }
.film-tile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.film-tile:hover { color: var(--text); background: var(--bg-2); } .film-tile:hover i { transform: scale(1.08); }
.film-tile[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--bg-2); }
@media (max-width: 560px) { .film-tile i { width: 44px; height: 44px; } .film-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); } }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.design-tile { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 600 .82rem var(--sans); text-align: left; cursor: pointer; transition: .2s; }
.design-tile img { width: 100%; aspect-ratio: 180 / 64; border-radius: 10px; display: block; object-fit: cover; }
.design-tile small { color: var(--muted); font-weight: 400; font-size: .72rem; line-height: 1.3; }
.design-tile:hover { border-color: var(--line-2); transform: translateY(-1px); }
.design-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pal-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pal { display: flex; border-radius: 999px; overflow: hidden; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; background: none; }
.pal span { width: 16px; height: 26px; display: block; }
.pal[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.brand-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-cols label { display: flex; flex-direction: column; gap: 6px; font-size: .74rem; color: var(--muted); }
.brand-cols input[type=color] { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: none; padding: 3px; cursor: pointer; }
.part-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.part-row:first-child { border-top: 0; padding-top: 0; }
.part-row .ctl-label { margin: 0; }
.ctl-label .mini-btn { min-height: 30px; padding: 0 10px; font-size: .74rem; font-weight: 500; color: var(--text); align-self: center; }
.ctl-label .mini-btn svg { width: 13px; height: 13px; }
.part-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 2px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.part-head .part-sw { width: 22px; height: 22px; flex: none; }
.part-head b { font-size: .9rem; font-weight: 600; }
.part-head span { margin-left: auto; color: var(--muted); font-size: .76rem; text-align: right; }
.part-head svg { width: 14px; height: 14px; flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .25s var(--out); }
.part-head[aria-expanded="true"] svg { transform: rotate(-90deg); color: var(--accent); }
.part-head:hover b { color: var(--accent); }
.part-row.open { margin: 0 -10px; padding: 12px 10px; border-radius: 16px; border-top-color: transparent; background: color-mix(in srgb, var(--accent) 7%, var(--bg-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.part-row.open + .part-row { border-top-color: transparent; }
.part-lib { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.part-sws { display: flex; gap: 6px; flex-wrap: wrap; }
.part-sw-btn { padding: 2px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; }
.part-sw-btn .part-sw { width: 30px; height: 30px; }
.part-sw-btn[aria-pressed="true"] { border-color: var(--accent); }
.part-sw-btn.orig .part-sw { background: none; box-shadow: none; border: 2px dashed var(--muted); }
.part-sw-btn .part-sw, .film-tile i, .film-now i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 1px var(--line-2); }

/* real photos on the category and item cards (images/studio/<id>.jpg) */
.pick-card .thumb { position: relative; overflow: hidden; }
.thumb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform .6s var(--out); }
.pick-card:hover .thumb-photo { transform: scale(1.04); }

/* ===== utilities (small spacing helpers used by the panel templates in app.js) ===== */
.film-now i.primer { background: #9a9ea6; } /* grey primer dot before a colour is picked */
.studio .u-mt0 { margin-top: 0; }
.studio .u-mt8 { margin-top: 8px; }
.studio .u-mt10 { margin-top: 10px; }
.studio .u-self-start { align-self: flex-start; }
.noscript-msg { padding: 40px 0; }
