/* Piobox Customizer — styles. Scoped under .pc-shell; tokens can be overridden on the host element. */
.pc-shell, .pc-modal, .pc-toasts {
  --pc-bg: #fefcf9;
  --pc-card: #ffffff;
  --pc-fg: #101418;
  --pc-muted-fg: #50565c;
  --pc-tertiary: #686c71;
  --pc-panel: #f4f3f0;
  --pc-border: #e1e3e5;
  --pc-line-soft: #edeff0;
  --pc-primary: #11161d;
  --pc-primary-fg: #fcfcfc;
  --pc-ring: #555f6b;
  --pc-destructive: #e40014;
  --pc-amber: #b45309;
  --pc-emerald: #059669;
  --pc-photo-canvas: #ffffff;
  --pc-radius: .625rem;
  --pc-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pc-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pc-ease: cubic-bezier(.22, 1, .36, 1);
  --pc-fast: .18s;
  --pc-shadow-1: 0 1px 2px rgba(16, 20, 24, .06);
  --pc-shadow-2: 0 8px 24px -16px rgba(16, 20, 24, .5);
  --pc-shell-h: min(60rem, max(38rem, calc(100dvh - 9rem)));
  font-family: var(--pc-font);
  color: var(--pc-fg);
  font-size: .9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.pc-shell *, .pc-modal *, .pc-toasts * { box-sizing: border-box; }
:where(.pc-shell, .pc-modal, .pc-toasts) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.pc-shell, .pc-modal, .pc-toasts) :where(button) { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
:where(.pc-shell, .pc-modal, .pc-toasts) :where(button):disabled { cursor: not-allowed; }
.pc-shell img { display: block; }
.pc-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pc-icon { display: inline-flex; width: 1em; height: 1em; font-size: 1rem; flex-shrink: 0; }
.pc-icon svg { width: 100%; height: 100%; }
.pc-icon.is-open svg { transform: rotate(180deg); }
.pc-spin svg { animation: pc-spin 1s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
@keyframes pc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- layout ---------- */
.pc-shell { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-inline: 1rem; background: var(--pc-bg); }
@media (min-width: 640px) { .pc-shell { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .pc-shell { padding-inline: 2rem; } }
@media (min-width: 1280px) {
  .pc-shell { height: var(--pc-shell-h); grid-template-columns: minmax(0, 19rem) minmax(0, 1fr) minmax(0, 20rem); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 1.25rem; padding-inline: 2.5rem; }
  .pc-rail { grid-column: 1 / -1; grid-row: 1; }
  .pc-panel--blanks { grid-column: 1; grid-row: 2; border-right: 1px solid var(--pc-border); padding-right: 1.25rem; }
  .pc-center { grid-column: 2; grid-row: 2; }
  .pc-panel--right { grid-column: 3; grid-row: 2; border-left: 1px solid var(--pc-border); padding-left: 1.25rem; }
  .pc-bar { grid-column: 1 / -1; grid-row: 3; }
}
@media (min-width: 1536px) { .pc-shell { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr) minmax(0, 26rem); column-gap: 1.5rem; } }
@media (max-width: 1279px) { .pc-center { order: 1; } .pc-panel--blanks { order: 2; max-height: 34rem; } .pc-panel--right { order: 3; max-height: 40rem; } .pc-bar { order: 4; } }

/* ---------- typography helpers ---------- */
.pc-overline { font-size: .75rem; line-height: 1; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-muted-fg); }
.pc-overline-xs { font-size: .625rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-muted-fg); margin: 0 0 .375rem; }
.pc-mono-meta { font-family: var(--pc-mono); font-size: .6875rem; color: var(--pc-tertiary); font-variant-numeric: tabular-nums; margin: 0; }
.pc-strong { font-size: .875rem; font-weight: 500; margin: 0; display: block; }
.pc-strong-xs { font-size: .75rem; font-weight: 500; }
.pc-muted { font-size: .75rem; line-height: 1.55; color: var(--pc-muted-fg); margin: 0; }
.pc-hint { font-size: .6875rem; line-height: 1.5; color: var(--pc-muted-fg); margin: .375rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.pc-hint b { color: var(--pc-fg); font-weight: 500; }
.pc-warn { font-size: .75rem; line-height: 1.45; color: var(--pc-amber); background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .4); border-radius: .5rem; padding: .5rem .75rem; margin: 0; }
.pc-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-text-center { text-align: center; justify-content: center; }
.pc-link { color: var(--pc-fg); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pc-divider { border-top: 1px solid var(--pc-line-soft); }
.pc-divider-top { border-top: 1px solid var(--pc-line-soft); padding-top: 1rem; }
.pc-row { display: flex; align-items: center; gap: .5rem; }
.pc-row--between { justify-content: space-between; }
.pc-row--wrap { flex-wrap: wrap; gap: .375rem; }
.pc-row--top { align-items: flex-start; }
.pc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pc-dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex-shrink: 0; }
.pc-dot--lg { width: .875rem; height: .875rem; }
.pc-dot--xl { width: 1.25rem; height: 1.25rem; }
.pc-code { font-family: var(--pc-mono); font-size: .6875rem; line-height: 1.5; background: var(--pc-panel); border: 1px solid var(--pc-border); border-radius: .5rem; padding: .75rem; max-height: 18rem; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ---------- controls ---------- */
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.5rem; padding: 0 1rem; border-radius: .5rem; border: 1px solid transparent; font-size: .875rem; font-weight: 500; white-space: nowrap; transition: color var(--pc-fast) var(--pc-ease), background-color var(--pc-fast) var(--pc-ease), border-color var(--pc-fast) var(--pc-ease), box-shadow var(--pc-fast) var(--pc-ease), transform var(--pc-fast) var(--pc-ease); outline: none; }
.pc-btn:active:not(:disabled) { transform: scale(.98); }
.pc-btn:focus-visible { box-shadow: 0 0 0 2px rgba(85, 95, 107, .4); }
.pc-btn:disabled { opacity: .5; }
.pc-btn--primary { background: var(--pc-primary); color: var(--pc-primary-fg); box-shadow: var(--pc-shadow-1); }
.pc-btn--primary:hover:not(:disabled) { background: #232a33; box-shadow: var(--pc-shadow-2); }
.pc-btn--outline { background: var(--pc-card); color: var(--pc-fg); border-color: rgba(225, 227, 229, .9); box-shadow: var(--pc-shadow-1); }
.pc-btn--outline:hover:not(:disabled) { border-color: rgba(16, 20, 24, .25); background: #f7f6f3; }
.pc-btn--dark { background: var(--pc-fg); color: var(--pc-bg); font-size: .75rem; font-weight: 600; height: 2.5rem; }
.pc-btn--dark:hover { background: rgba(16, 20, 24, .9); }
.pc-btn--block { width: 100%; }
.pc-btn--lg { height: 3rem; font-size: .9375rem; }
.pc-btn .pc-icon { font-size: 1rem; }
.pc-iconbtn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; border: 1px solid rgba(225, 227, 229, .8); color: var(--pc-muted-fg); cursor: pointer; flex-shrink: 0; position: relative; overflow: hidden; }
.pc-iconbtn:hover { border-color: rgba(17, 22, 29, .5); color: var(--pc-fg); }
.pc-iconbtn--sm { width: 1.75rem; height: 1.75rem; }
.pc-iconbtn--ghost { border-color: transparent; }
.pc-iconbtn .pc-sr-only { pointer-events: none; }
.pc-input { display: block; width: 100%; height: 2.5rem; padding: .5rem .75rem; border-radius: .5rem; border: 1px solid var(--pc-border); background: transparent; font-size: .875rem; outline: none; transition: border-color var(--pc-fast), box-shadow var(--pc-fast); }
.pc-input::placeholder { color: var(--pc-muted-fg); }
.pc-input:focus-visible { border-color: var(--pc-ring); box-shadow: 0 0 0 3px rgba(85, 95, 107, .25); }
.pc-textarea { height: auto; min-height: 4.5rem; resize: none; line-height: 1.45; }
.pc-input--search { height: 2.25rem; padding-left: 2rem; background: var(--pc-card); }
.pc-search { position: relative; flex: 1; min-width: 0; }
.pc-search__icon { position: absolute; left: .625rem; top: 50%; transform: translateY(-50%); font-size: .875rem; color: var(--pc-muted-fg); pointer-events: none; }
.pc-chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.pc-chip { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 .7rem; border-radius: 999px; border: 1px solid rgba(225, 227, 229, .8); font-size: .6875rem; font-weight: 500; letter-spacing: -.01em; color: var(--pc-muted-fg); transition: all var(--pc-fast) var(--pc-ease); }
.pc-chip:hover { border-color: var(--pc-border); color: var(--pc-fg); }
.pc-chip.is-active { background: var(--pc-primary); border-color: var(--pc-primary); color: var(--pc-primary-fg); }
.pc-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(225, 227, 229, .8); font-size: .75rem; font-weight: 500; color: var(--pc-muted-fg); transition: all var(--pc-fast) var(--pc-ease); }
.pc-pill:hover { color: var(--pc-fg); border-color: var(--pc-border); }
.pc-pill.is-active { border-color: var(--pc-primary); color: var(--pc-fg); }
.pc-segment { display: inline-flex; gap: .125rem; padding: .125rem; border-radius: 999px; border: 1px solid rgba(225, 227, 229, .8); background: rgba(244, 243, 240, .5); }
.pc-segment__btn { padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 500; color: var(--pc-muted-fg); }
.pc-segment__btn.is-active { background: var(--pc-card); color: var(--pc-fg); box-shadow: var(--pc-shadow-1); }
.pc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 1rem; background: transparent; cursor: pointer; outline: none; margin: .25rem 0 0; }
.pc-range::-webkit-slider-runnable-track { height: .25rem; background: var(--pc-border); border-radius: 999px; }
.pc-range::-moz-range-track { height: .25rem; background: var(--pc-border); border-radius: 999px; }
.pc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #fff; background: var(--pc-fg); margin-top: -6px; box-shadow: 0 1px 3px rgba(18, 22, 27, .28); transition: transform var(--pc-fast) var(--pc-ease); }
.pc-range::-moz-range-thumb { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #fff; background: var(--pc-fg); box-shadow: 0 1px 3px rgba(18, 22, 27, .28); }
.pc-range:hover::-webkit-slider-thumb, .pc-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.pc-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--pc-ring); outline-offset: 2px; }
.pc-slider__label { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 500; }
.pc-slider__value { color: var(--pc-muted-fg); font-weight: 400; font-size: .75rem; font-variant-numeric: tabular-nums; }
.pc-slider + .pc-slider { margin-top: .75rem; }

/* ---------- designs rail ---------- */
.pc-rail { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; padding: 1rem 0 .625rem; border-bottom: 1px solid var(--pc-border); }
.pc-rail__label { padding-right: .375rem; }
.pc-rail__item { display: flex; align-items: center; border-radius: .5rem; border: 1px solid transparent; transition: all var(--pc-fast) var(--pc-ease); }
.pc-rail__item:hover { border-color: var(--pc-border); background: rgba(255, 255, 255, .7); }
.pc-rail__item.is-active { border-color: var(--pc-primary); background: var(--pc-card); box-shadow: var(--pc-shadow-1); }
.pc-rail__btn { display: flex; align-items: center; gap: .5rem; padding: .375rem .375rem .375rem .5rem; border-radius: .5rem; }
.pc-rail__num { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: .625rem; font-weight: 600; background: rgba(225, 227, 229, .7); }
.is-active .pc-rail__num { background: var(--pc-primary); color: var(--pc-primary-fg); }
.pc-rail__text { display: flex; flex-direction: column; min-width: 0; }
.pc-rail__name { font-size: .75rem; font-weight: 500; line-height: 1.2; max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pc-muted-fg); }
.is-active .pc-rail__name { color: var(--pc-fg); }
.pc-rail__meta { font-size: .625rem; line-height: 1.2; color: var(--pc-tertiary); font-variant-numeric: tabular-nums; }
.pc-rail__remove { display: grid; place-items: center; padding: .25rem; margin-right: .25rem; border-radius: .375rem; color: var(--pc-muted-fg); font-size: .75rem; }
.pc-rail__remove:hover { color: var(--pc-destructive); }
.pc-rail__add { display: inline-flex; align-items: center; gap: .375rem; padding: .5rem .625rem; border: 1px dashed rgba(225, 227, 229, .9); border-radius: .5rem; font-size: .75rem; font-weight: 500; color: var(--pc-muted-fg); }
.pc-rail__add:hover { color: var(--pc-fg); background: rgba(255, 255, 255, .7); }
.pc-rail__cap { font-size: .6875rem; color: var(--pc-tertiary); padding-left: .25rem; }
.pc-notice, .pc-alert { flex-basis: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .625rem .75rem; border-radius: .5rem; font-size: .75rem; line-height: 1.5; animation: pc-in .2s var(--pc-ease); margin: .25rem 0 0; }
.pc-notice { border: 1px solid rgba(225, 227, 229, .9); background: rgba(244, 243, 240, .6); color: rgba(16, 20, 24, .8); }
.pc-alert { border: 1px solid rgba(228, 0, 20, .2); background: rgba(228, 0, 20, .05); color: var(--pc-destructive); font-weight: 500; font-size: .875rem; }
.pc-notice__x { color: var(--pc-muted-fg); display: grid; place-items: center; flex-shrink: 0; }
.pc-notice__x:hover { color: var(--pc-fg); }
.pc-alerts { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }

/* ---------- centre: stage ---------- */
.pc-center { display: flex; flex-direction: column; min-height: 0; min-width: 0; gap: .5rem; }
.pc-center__row { display: flex; flex-direction: column; align-items: center; gap: .75rem; min-height: 0; flex: 1; }
@media (min-width: 640px) { .pc-center__row { flex-direction: row; align-items: flex-start; justify-content: center; gap: 1rem; } }
.pc-stage-holder { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; min-height: 0; }
@media (min-width: 640px) { .pc-stage-holder { order: 2; } .pc-layers { order: 1; } .pc-sides { order: 3; } }
.pc-stage-wrap { width: 100%; max-width: 46rem; }
@media (min-width: 1280px) { .pc-stage-wrap { max-width: min(100%, calc(100dvh - 15rem)); } }
.pc-stage { position: relative; aspect-ratio: 1; width: 100%; overflow: hidden; border-radius: 1rem; background: var(--pc-photo-canvas); box-shadow: 0 1px 2px rgba(16, 20, 24, .05), 0 18px 44px -28px rgba(16, 20, 24, .4); touch-action: none; }
.pc-stage.is-dropping { box-shadow: 0 0 0 2px var(--pc-ring), 0 18px 44px -28px rgba(16, 20, 24, .4); }
.pc-stage.is-disabled { pointer-events: none; opacity: .7; }
.pc-stage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.pc-stage__photo.is-mirrored { transform: scaleX(-1); }
.pc-stage__areas, .pc-stage__layers { position: absolute; inset: 0; pointer-events: none; }
.pc-stage__layers > * { pointer-events: auto; }
.pc-area { position: absolute; border: 1px solid rgba(16, 20, 24, .2); border-radius: 6px; opacity: 0; transition: opacity .15s, border-color .15s; }
.pc-area.is-active { border-color: rgba(17, 22, 29, .65); }
.pc-stage.is-dragging .pc-area { opacity: 1; }
.pc-area__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: .5625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-muted-fg); background: rgba(254, 252, 249, .9); border: 1px solid rgba(225, 227, 229, .6); border-radius: 999px; padding: .125rem .375rem; display: none; }
.pc-stage.is-dragging .pc-area:not(.is-active) .pc-area__label { display: block; }
.pc-guide { position: absolute; background: rgba(16, 20, 24, .6); pointer-events: none; z-index: 30; }
.pc-guide--v { top: 1rem; bottom: 1rem; left: 50%; width: 1px; transform: translateX(-50%); }
.pc-guide--h { left: 1rem; right: 1rem; height: 1px; }
.pc-layer { position: absolute; outline: none; cursor: move; touch-action: none; }
.pc-layer.is-text:not(.is-editing) { cursor: text; }
.pc-layer:focus-visible { box-shadow: inset 0 0 0 2px var(--pc-ring); }
.pc-layer__img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.pc-layer__hover { position: absolute; inset: -1px; border-radius: 5px; opacity: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); transition: opacity .15s; pointer-events: none; }
.pc-layer:not(.is-active):hover .pc-layer__hover { opacity: 1; }
.pc-layer.is-active { box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 2px rgba(16, 20, 24, .35); }
.pc-layer.is-editing { box-shadow: none; }
.pc-layer__rotline { position: absolute; left: 50%; top: -2rem; height: 2rem; width: 1px; transform: translateX(-50%); background: rgba(16, 20, 24, .55); z-index: 40; }
.pc-layer.is-compact .pc-layer__rotline { top: -1.5rem; height: 1.5rem; }
.pc-handle { position: absolute; z-index: 40; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); touch-action: none; cursor: grab; }
.pc-handle::after { content: ""; position: absolute; inset: -.5rem; }
.pc-handle--rotate { left: 50%; top: -2.5rem; width: 1.25rem; height: 1.25rem; transform: translateX(-50%); }
.pc-handle--tl { left: -.5rem; top: -.5rem; } .pc-handle--tr { right: -.5rem; top: -.5rem; } .pc-handle--bl { left: -.5rem; bottom: -.5rem; } .pc-handle--br { right: -.5rem; bottom: -.5rem; }
.pc-layer.is-compact .pc-handle { width: .75rem; height: .75rem; }
.pc-layer.is-compact .pc-handle--rotate { top: -2rem; width: 1rem; height: 1rem; }
.pc-layer.is-compact .pc-handle--tl { left: -.375rem; top: -.375rem; } .pc-layer.is-compact .pc-handle--tr { right: -.375rem; top: -.375rem; } .pc-layer.is-compact .pc-handle--bl { left: -.375rem; bottom: -.375rem; } .pc-layer.is-compact .pc-handle--br { right: -.375rem; bottom: -.375rem; }
.pc-layer__edit { position: absolute; inset: 0; z-index: 30; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: transparent; resize: none; overflow: hidden; text-align: center; outline: none; white-space: pre; cursor: text; transition: font-size 90ms ease-out, line-height 90ms ease-out; }
.pc-layer__edit::placeholder { color: #9aa1ac; }
.pc-stage__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pc-stage__empty[hidden] { display: none; }
.pc-stage__drop { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: .5rem; max-width: 20rem; margin: 1.5rem; padding: 1.75rem 2rem; border: 1px dashed var(--pc-border); border-radius: 1rem; background: var(--pc-bg); text-align: center; transition: border-color var(--pc-fast); }
.pc-stage__drop:hover, .pc-stage.is-dropping .pc-stage__drop { border-color: rgba(17, 22, 29, .5); }
.pc-stage__drop .pc-icon, .pc-stage__drop > svg { width: 1.75rem; height: 1.75rem; color: var(--pc-muted-fg); }
.pc-stage__drop-title { font-size: .875rem; font-weight: 600; }
.pc-stage__drop-hint { font-size: .75rem; line-height: 1.4; color: var(--pc-muted-fg); }
.pc-stage__status { position: absolute; left: 0; right: 0; bottom: .75rem; display: flex; justify-content: center; z-index: 40; pointer-events: none; }
.pc-stage__status[hidden] { display: none; }
.pc-pill--status { background: var(--pc-bg); color: var(--pc-muted-fg); }
.pc-pill--status svg { width: .875rem; height: .875rem; animation: pc-spin 1s linear infinite; }
.pc-stage__caption { margin: .625rem 0 0; text-align: center; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pc-muted-fg); }
.pc-stage__caption[hidden] { display: none; }

/* layers rail + side tabs */
.pc-layers { display: flex; align-items: center; gap: .625rem; width: 100%; padding: 0 .25rem; flex-shrink: 0; }
@media (min-width: 640px) { .pc-layers { flex-direction: column; width: auto; align-self: stretch; padding: 0; min-height: 0; } }
.pc-layers__label { flex-shrink: 0; }
.pc-layers__list { display: flex; align-items: center; gap: .625rem; flex: 1; min-width: 0; overflow-x: auto; padding: .5rem .25rem .5rem 0; scrollbar-width: none; }
.pc-layers__list::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .pc-layers__list { flex-direction: column; overflow-y: auto; overflow-x: visible; padding: .5rem; margin: 0 -.5rem; min-height: 0; } }
.pc-layerchip-wrap { position: relative; flex-shrink: 0; animation: pc-in .2s var(--pc-ease); }
.pc-layerchip { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: .75rem; border: 1px solid rgba(225, 227, 229, .8); background: var(--pc-photo-canvas); overflow: hidden; position: relative; transition: border-color var(--pc-fast); flex-shrink: 0; }
@media (min-width: 640px) { .pc-layerchip { width: 4rem; height: 4rem; } }
.pc-layerchip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .375rem; }
.pc-layerchip:hover { border-color: rgba(16, 20, 24, .4); }
.pc-layerchip.is-active { border-color: var(--pc-primary); box-shadow: 0 0 0 1px var(--pc-ring); }
.pc-layerchip--add { border-style: dashed; color: var(--pc-muted-fg); font-size: 1.25rem; }
.pc-layerchip--add:hover { color: var(--pc-fg); }
.pc-layerchip__x { position: absolute; top: -.5rem; right: -.5rem; z-index: 2; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid rgba(225, 227, 229, .9); background: var(--pc-bg); color: var(--pc-muted-fg); font-size: .75rem; box-shadow: var(--pc-shadow-1); }
.pc-layerchip__x:hover { background: var(--pc-destructive); border-color: var(--pc-destructive); color: #fff; }
.pc-sides { display: flex; gap: .375rem; flex-shrink: 0; }
@media (min-width: 640px) { .pc-sides { flex-direction: column; align-self: flex-start; } }
.pc-side { position: relative; display: block; width: 6rem; padding: .375rem; border-radius: .75rem; border: 1px solid rgba(225, 227, 229, .8); background: var(--pc-photo-canvas); transition: all var(--pc-fast) var(--pc-ease); }
@media (min-width: 1536px) { .pc-side { width: 8rem; } }
.pc-side:hover { border-color: rgba(16, 20, 24, .3); }
.pc-side.is-active { border-color: rgba(16, 20, 24, .3); box-shadow: var(--pc-shadow-1), 0 0 0 1px rgba(16, 20, 24, .1); }
.pc-side__stage { position: relative; display: block; aspect-ratio: 1; width: 100%; overflow: hidden; border-radius: .5rem; }
.pc-side__stage > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2.2%; }
.pc-side__stage > img.is-mirrored { transform: scaleX(-1); }
.pc-side__layer { position: absolute; max-width: none; object-fit: fill; transform-origin: center; }
.pc-side__label { display: block; margin-top: .25rem; text-align: center; font-size: .625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pc-muted-fg); }
.pc-side.is-active .pc-side__label { color: var(--pc-fg); }
.pc-side__count { position: absolute; top: -.375rem; right: -.375rem; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: .625rem; font-weight: 700; background: rgba(16, 20, 24, .15); color: var(--pc-fg); }
.pc-side.is-active .pc-side__count { background: var(--pc-fg); color: var(--pc-bg); }

/* ---------- panels ---------- */
.pc-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pc-panel__title { padding-bottom: .75rem; border-bottom: 1px solid var(--pc-border); flex-shrink: 0; margin: 0; }
.pc-panel__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem .25rem 1rem 0; scrollbar-width: thin; }
.pc-panel--right .pc-panel__scroll { padding-top: 1rem; }
@media (min-width: 1280px) { .pc-panel--right .pc-panel__scroll { padding-bottom: 20vh; } }
.pc-blanks__head { position: sticky; top: 0; z-index: 2; background: var(--pc-bg); display: flex; flex-direction: column; gap: .625rem; padding-bottom: .75rem; margin-top: -1.25rem; padding-top: 1.25rem; }
.pc-blanks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 640px) and (max-width: 1279px) { .pc-blanks__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pc-blank { display: flex; flex-direction: column; width: 100%; min-width: 0; padding: .5rem; border-radius: .75rem; border: 1px solid rgba(225, 227, 229, .6); background: rgba(255, 255, 255, .5); transition: all var(--pc-fast) var(--pc-ease); outline: none; }
.pc-blank:hover { border-color: var(--pc-border); background: var(--pc-card); }
.pc-blank.is-active { border-color: var(--pc-primary); background: var(--pc-card); box-shadow: var(--pc-shadow-1), 0 0 0 1px var(--pc-ring); }
.pc-blank:focus-visible { box-shadow: 0 0 0 2px rgba(85, 95, 107, .5); }
.pc-blank__stage { position: relative; display: block; aspect-ratio: 1; width: 100%; overflow: hidden; border-radius: .5rem; background: var(--pc-photo-canvas); box-shadow: inset 0 0 0 1px rgba(225, 227, 229, .3); }
.pc-blank__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pc-blank__text { display: block; margin-top: .5rem; padding: 0 .125rem; min-width: 0; }
.pc-blank__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.pc-blank__meta { display: block; margin-top: .125rem; font-family: var(--pc-mono); font-size: .625rem; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: var(--pc-muted-fg); }
.pc-empty-box { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; border: 1px dashed rgba(225, 227, 229, .8); border-radius: .75rem; font-size: .875rem; color: var(--pc-muted-fg); }
.pc-panel--blanks .pc-btn--dark { margin-top: 1rem; }

/* tabs */
.pc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; border-bottom: 1px solid var(--pc-border); flex-shrink: 0; }
.pc-tab { display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; padding: .625rem .375rem .75rem; min-width: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--pc-muted-fg); transition: color var(--pc-fast); }
.pc-tab:hover { color: var(--pc-fg); }
.pc-tab.is-active { color: var(--pc-fg); border-bottom-color: var(--pc-primary); }
.pc-tab__label { font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; }
.pc-tab__meta { display: flex; align-items: center; gap: .3rem; max-width: 100%; font-size: .6875rem; font-weight: 400; color: var(--pc-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1rem; }
.pc-tabbody { display: flex; flex-direction: column; gap: 1rem; }
.pc-tabbody > .pc-overline { margin-bottom: -.25rem; }
.pc-group { display: flex; flex-direction: column; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--pc-line-soft); }
.pc-group > .pc-overline { margin: 0; }

/* colour */
.pc-current, .pc-nearest { display: flex; align-items: center; gap: .625rem; padding: .5rem .625rem; border-radius: .5rem; border: 1px solid rgba(225, 227, 229, .6); background: rgba(255, 255, 255, .6); }
.pc-nearest { border-radius: .75rem; padding: .75rem; background: rgba(244, 243, 240, .4); }
.pc-current__chip { display: block; width: 1.75rem; height: 1.75rem; border-radius: .375rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); flex-shrink: 0; }
.pc-nearest .pc-current__chip, .pc-row > .pc-current__chip { width: 2.25rem; height: 2.25rem; border-radius: .5rem; }
.pc-current__text { min-width: 0; flex: 1; }
.pc-current__text .pc-overline-xs { margin: 0; }
.pc-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: .375rem; }
.pc-swatch { position: relative; aspect-ratio: 1; border-radius: .375rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: box-shadow .15s; outline: none; }
.pc-swatch:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.pc-swatch:focus-visible, .pc-swatch.is-active { box-shadow: 0 0 0 2px var(--pc-bg), 0 0 0 4px var(--pc-fg); }
.pc-swatch__check { position: absolute; inset: 0; margin: auto; width: .875rem; height: .875rem; font-size: .875rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.pc-swatch.is-active .pc-swatch__check svg { stroke-width: 3; color: #fff; mix-blend-mode: difference; }
.pc-swatch-panel { max-height: 20rem; overflow-y: auto; overscroll-behavior: contain; padding-right: .25rem; display: flex; flex-direction: column; gap: 1rem; }
.pc-swatch-group__title { display: block; margin-bottom: .375rem; padding: 0 .125rem; }
.pc-swatch-group__title:hover { color: var(--pc-fg); }
.pc-sv { position: relative; height: 11rem; width: 100%; border-radius: .75rem; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); outline: none; }
.pc-sv:focus-visible { box-shadow: 0 0 0 2px var(--pc-card), 0 0 0 4px var(--pc-fg); }
.pc-sv__white { position: absolute; inset: 0; background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
.pc-sv__black { position: absolute; inset: 0; background: linear-gradient(to top, #000, rgba(0, 0, 0, 0)); }
.pc-sv__thumb { position: absolute; width: 1rem; height: 1rem; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.pc-hue { -webkit-appearance: none; appearance: none; width: 100%; height: .75rem; border-radius: 999px; outline: none; cursor: pointer; background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000); }
.pc-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #fff; background: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.pc-hue::-moz-range-thumb { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #fff; background: transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.pc-hexfield { position: relative; flex: 1; min-width: 0; }
.pc-hexfield__hash { position: absolute; left: .625rem; top: 50%; transform: translateY(-50%); font-family: var(--pc-mono); font-size: .875rem; color: var(--pc-muted-fg); pointer-events: none; }
.pc-input--hex { padding-left: 1.5rem; font-family: var(--pc-mono); text-transform: uppercase; letter-spacing: .08em; height: 2.25rem; }
.pc-recent { width: 1.5rem; height: 1.5rem; border-radius: .375rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: box-shadow .15s; }
.pc-recent:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.pc-recent.is-active { box-shadow: 0 0 0 2px var(--pc-fg); }
.pc-disclaimer { margin: 0; padding-top: .75rem; border-top: 1px solid var(--pc-line-soft); font-size: .6875rem; line-height: 1.6; color: var(--pc-muted-fg); }

/* design tab */
.pc-addrow { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pc-addrow .pc-btn { height: 2.75rem; border-radius: .75rem; font-size: .75rem; padding: 0 .75rem; }
.pc-starters { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.pc-starters--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-starter { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 .375rem; border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; background: var(--pc-card); font-size: .75rem; line-height: 1.5; white-space: nowrap; color: rgba(16, 20, 24, .85); transition: all var(--pc-fast) var(--pc-ease); }
.pc-starter:hover { border-color: rgba(16, 20, 24, .4); background: rgba(244, 243, 240, .4); color: var(--pc-fg); }
.pc-starter:active { transform: scale(.97); }
.pc-starter--logo img { height: .875rem; width: auto; max-width: 5.5rem; object-fit: contain; }
.pc-back { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; }
.pc-back .pc-icon { color: var(--pc-muted-fg); }
.pc-back__meta { margin-left: auto; font-size: .625rem; font-weight: 400; color: var(--pc-tertiary); font-variant-numeric: tabular-nums; }
.pc-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .375rem; }
.pc-tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 3.5rem; padding: 0 .25rem; border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; background: var(--pc-card); font-size: .6875rem; font-weight: 500; line-height: 1; color: var(--pc-muted-fg); transition: all var(--pc-fast) var(--pc-ease); }
.pc-tool span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pc-tool:hover:not(:disabled) { border-color: rgba(16, 20, 24, .4); background: rgba(244, 243, 240, .3); color: var(--pc-fg); }
.pc-tool--danger:hover:not(:disabled) { border-color: rgba(228, 0, 20, .4); background: rgba(228, 0, 20, .05); color: var(--pc-destructive); }
.pc-tool:disabled { opacity: .4; }
.pc-tool:active:not(:disabled) { transform: scale(.97); }
.pc-spots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
.pc-spot { min-height: 2.5rem; padding: 0 .5rem; border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; font-size: .75rem; font-weight: 500; text-align: center; transition: all var(--pc-fast) var(--pc-ease); }
.pc-spot:hover { border-color: rgba(16, 20, 24, .4); background: rgba(244, 243, 240, .3); }
.pc-spot.is-active { background: var(--pc-fg); border-color: var(--pc-fg); color: var(--pc-bg); }
.pc-stepper { display: flex; align-items: center; gap: .125rem; padding: .125rem; border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; }
.pc-stepper__btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .375rem; color: var(--pc-muted-fg); }
.pc-stepper__btn:hover { background: var(--pc-panel); color: var(--pc-fg); }
.pc-stepper__input { width: 3rem; height: 1.75rem; border: 0; background: transparent; text-align: center; font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.pc-stepper__input::-webkit-inner-spin-button, .pc-stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pc-stepper__pct { font-size: .75rem; color: var(--pc-muted-fg); margin-left: -.25rem; padding-right: .25rem; }
.pc-fonts { display: flex; flex-wrap: wrap; gap: .375rem; }
.pc-font { display: inline-flex; align-items: center; gap: .375rem; padding: .45rem .75rem; border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; font-size: .875rem; line-height: 1; color: var(--pc-muted-fg); transition: all var(--pc-fast) var(--pc-ease); cursor: pointer; }
.pc-font:hover { border-color: var(--pc-border); color: var(--pc-fg); }
.pc-font.is-active { border-color: var(--pc-primary); background: rgba(17, 22, 29, .05); color: var(--pc-fg); }
.pc-font--add { border-style: dashed; font-family: var(--pc-font) !important; font-size: .75rem; font-weight: 500; }
.pc-fontlib { display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--pc-line-soft); }
.pc-fontlib--compact { padding-top: 0; border-top: 0; }
.pc-fontlib__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .375rem .625rem; border: 1px solid rgba(225, 227, 229, .6); border-radius: .5rem; }
.pc-fontlib__sample { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-inkrow { display: flex; align-items: flex-start; gap: .625rem; }
.pc-inkrow__label { width: 3rem; flex-shrink: 0; padding-top: .75rem; font-size: .625rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-muted-fg); }
.pc-inkrow__swatches { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.pc-ink { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.5rem 0; border-radius: 50%; outline: none; cursor: pointer; position: relative; }
.pc-ink__dot { display: block; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); transition: box-shadow .15s; }
.pc-ink:hover .pc-ink__dot { box-shadow: 0 0 0 1px var(--pc-border); }
.pc-ink.is-active .pc-ink__dot { box-shadow: 0 0 0 1px var(--pc-bg), 0 0 0 3px var(--pc-ring); }
.pc-ink:focus-visible .pc-ink__dot { box-shadow: 0 0 0 2px var(--pc-ring); }
.pc-ink__dot--rainbow { background: conic-gradient(from 0deg, #f43f5e, #f59e0b, #22c55e, #3b82f6, #a855f7, #f43f5e); }
.pc-ink__dot--none { background: #fff linear-gradient(135deg, transparent 44%, #d4d4d8 44%, #d4d4d8 56%, transparent 56%); }
.pc-preflight { border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; background: rgba(244, 243, 240, .25); }
.pc-preflight__pending { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; margin: 0; font-size: .75rem; color: var(--pc-muted-fg); }
.pc-preflight__dot { display: inline-block; width: .375rem; height: .375rem; border-radius: 50%; flex-shrink: 0; background: rgba(16, 20, 24, .3); }
.pc-preflight__dot.is-pending { animation: pc-pulse 1.4s ease-in-out infinite; }
@keyframes pc-pulse { 50% { opacity: .3; } }
.pc-preflight__dot.is-ready, .pc-preflight__dot.is-pass { background: var(--pc-emerald); }
.pc-preflight__dot.is-review, .pc-preflight__dot.is-warn { background: #f59e0b; }
.pc-preflight__dot.is-fix, .pc-preflight__dot.is-fail { background: var(--pc-destructive); }
.pc-preflight__head { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .5rem .75rem .25rem; }
.pc-preflight__headline { flex: 1; min-width: 0; font-size: .75rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-preflight__head .pc-icon { color: var(--pc-muted-fg); font-size: .875rem; transition: transform .2s; }
.pc-preflight__facts { margin: 0; padding: 0 .75rem .5rem 1.625rem; font-size: .75rem; color: var(--pc-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-preflight__body { display: flex; flex-direction: column; gap: .75rem; padding: .625rem .75rem .75rem; border-top: 1px solid rgba(225, 227, 229, .6); }
.pc-preflight__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; }
.pc-preflight__item { display: flex; align-items: flex-start; gap: .5rem; }
.pc-preflight__item .pc-preflight__dot { margin-top: .4rem; }
.pc-preflight__title { margin: 0; font-size: .75rem; line-height: 1.4; }
.pc-preflight__detail { margin: .125rem 0 0; font-size: .6875rem; line-height: 1.45; color: var(--pc-muted-fg); }
.pc-fit { display: inline-flex; align-items: center; padding: .125rem .5rem; border-radius: .375rem; border: 1px solid; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pc-fit--ready { border-color: rgba(5, 150, 105, .25); background: rgba(5, 150, 105, .1); color: #064e3b; }
.pc-fit--caution { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); color: var(--pc-amber); }
.pc-fit--avoid { border-color: rgba(228, 0, 20, .25); background: rgba(228, 0, 20, .05); color: var(--pc-destructive); }
.pc-suggest { display: flex; align-items: center; gap: .5rem; width: 100%; margin-top: .5rem; padding: .5rem .75rem; border: 1px solid rgba(225, 227, 229, .9); border-radius: .5rem; font-size: .75rem; text-align: left; }
.pc-suggest:hover { border-color: rgba(16, 20, 24, .4); background: rgba(244, 243, 240, .4); }
.pc-suggest b { font-weight: 500; }
.pc-suggest .pc-muted { margin-left: auto; }

/* quote tab */
.pc-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; margin-top: .5rem; }
.pc-method { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 2.75rem; padding: .375rem .625rem; border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; text-align: left; transition: all var(--pc-fast) var(--pc-ease); }
.pc-method:hover { border-color: rgba(16, 20, 24, .4); }
.pc-method.is-active { background: var(--pc-fg); border-color: var(--pc-fg); color: var(--pc-bg); }
.pc-method__label { font-size: .6875rem; font-weight: 500; line-height: 1.2; }
.pc-method__note { font-size: .5625rem; line-height: 1.2; color: var(--pc-muted-fg); }
.pc-method.is-active .pc-method__note { color: rgba(254, 252, 249, .65); }
.pc-qtys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; margin-top: .375rem; }
@media (min-width: 640px) { .pc-qtys { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.pc-qty { min-height: 2.25rem; padding: 0 .25rem; border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; font-size: .75rem; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; transition: all var(--pc-fast) var(--pc-ease); }
.pc-qty:hover { border-color: rgba(16, 20, 24, .4); background: rgba(244, 243, 240, .3); }
.pc-qty.is-active { background: var(--pc-fg); border-color: var(--pc-fg); color: var(--pc-bg); }
.pc-tabbody label.pc-strong + .pc-input, .pc-tabbody label.pc-strong + .pc-textarea { margin-top: .375rem; }
.pc-only-mobile { display: none; }
@media (max-width: 1279px) { .pc-only-mobile { display: inline-flex; } }

/* ---------- bottom bar ---------- */
.pc-bar { display: flex; flex-wrap: wrap; align-items: center; column-gap: .75rem; row-gap: .5rem; padding: .625rem .25rem 1rem; border-top: 1px solid var(--pc-border); }
.pc-bar__chip { display: flex; align-items: center; gap: .625rem; min-width: 0; padding: .25rem .5rem .25rem .25rem; border-radius: .75rem; transition: background var(--pc-fast); }
.pc-bar__chip:hover { background: rgba(244, 243, 240, .6); }
.pc-bar__thumb { position: relative; display: block; width: 2.5rem; height: 2.5rem; border-radius: .5rem; overflow: hidden; background: var(--pc-photo-canvas); box-shadow: inset 0 0 0 1px rgba(225, 227, 229, .6); flex-shrink: 0; }
@media (min-width: 1280px) { .pc-bar__thumb { width: 2rem; height: 2rem; } }
.pc-bar__thumb img { width: 100%; height: 100%; object-fit: contain; padding: .125rem; }
.pc-bar__text { min-width: 0; display: flex; flex-direction: column; }
.pc-bar__title { font-size: .8125rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-bar__meta { font-size: .6875rem; line-height: 1.2; color: var(--pc-tertiary); white-space: nowrap; }
.pc-bar__sep { display: none; width: 1px; height: 1.75rem; background: rgba(225, 227, 229, .8); flex-shrink: 0; }
@media (min-width: 640px) { .pc-bar__sep { display: block; } }
.pc-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: auto; width: 100%; }
@media (min-width: 640px) { .pc-bar__actions { width: auto; flex-wrap: nowrap; } }
.pc-bar__actions .pc-btn { height: 3rem; }
@media (min-width: 1280px) { .pc-bar__actions .pc-btn { height: 2.5rem; } }
.pc-btn--submit { flex: 1 1 100%; white-space: normal; }
@media (min-width: 640px) { .pc-btn--submit { flex: 0 0 auto; } }
.pc-bar__status { flex-basis: 100%; margin: 0; font-size: .6875rem; line-height: 1.5; color: var(--pc-muted-fg); }
.pc-bar__status b { color: var(--pc-fg); font-weight: 500; }
.pc-bar__status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pc-input--share { flex: 1 1 18rem; height: 2rem; font-family: var(--pc-mono); font-size: .6875rem; }
@media (max-width: 639px) { .pc-hide-sm { display: none; } }

/* ---------- modals & toasts ---------- */
.pc-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .6); }
.pc-modal__card { position: relative; width: 100%; max-width: 48rem; max-height: 90dvh; overflow-y: auto; padding: 1.5rem; border-radius: 1rem; border: 1px solid rgba(225, 227, 229, .6); background: var(--pc-bg); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); outline: none; }
.pc-modal__card--sm { max-width: 36rem; }
.pc-modal__title { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.pc-modal__body { margin-top: 1.25rem; min-height: 12rem; }
.pc-modal__status { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3.5rem 0; font-size: .875rem; }
.pc-modal__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .pc-modal__grid--2 { grid-template-columns: 1fr 1fr; } }
.pc-modal__fig { margin: 0; min-width: 0; }
.pc-modal__imgbox { overflow: hidden; border-radius: .75rem; border: 1px solid rgba(225, 227, 229, .6); background: var(--pc-photo-canvas); }
.pc-modal__imgbox img { width: 100%; }
.pc-modal__imgbox--mt { margin-top: 1rem; }
.pc-modal__cap { margin-top: .5rem; text-align: center; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--pc-muted-fg); }
.pc-modal__foot { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .pc-modal__foot { flex-direction: row; justify-content: flex-end; } }
.pc-toasts { position: fixed; left: 0; right: 0; bottom: 1.5rem; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 0 1rem; pointer-events: none; }
.pc-toast { display: flex; align-items: center; gap: .75rem; padding: .625rem 1rem; border-radius: 999px; background: var(--pc-fg); color: var(--pc-bg); font-size: .875rem; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); pointer-events: auto; animation: pc-in .2s var(--pc-ease); }
.pc-toast__btn { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .75rem; border-radius: 999px; background: rgba(254, 252, 249, .15); font-size: .75rem; font-weight: 600; color: inherit; }
.pc-toast__btn:hover { background: rgba(254, 252, 249, .25); }

/* ---------- pop-out overlay ---------- */
.pc-scroll-lock { overflow: hidden; }
.pc-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 0; }
.pc-overlay[hidden] { display: none; }
.pc-overlay__backdrop { position: absolute; inset: 0; background: rgba(16, 20, 24, .55); backdrop-filter: blur(3px); animation: pc-fade .2s var(--pc-ease); }
.pc-overlay__panel { position: relative; z-index: 1; width: 100%; height: 100%; overflow: auto; background: var(--pc-bg); animation: pc-rise .24s var(--pc-ease); }
@media (min-width: 1024px) {
  .pc-overlay { padding: 1rem; }
  .pc-overlay__panel { width: min(124rem, 100%); height: 100%; border-radius: 1.25rem; box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .55); }
}
@keyframes pc-fade { from { opacity: 0; } }
@keyframes pc-rise { from { opacity: 0; transform: translateY(12px) scale(.995); } }
.pc-overlay__close { position: absolute; top: .75rem; right: .75rem; z-index: 5; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--pc-border); background: var(--pc-card); color: var(--pc-fg); box-shadow: var(--pc-shadow-1); cursor: pointer; }
.pc-overlay__close:hover { background: var(--pc-panel); }
.pc-overlay__close svg { width: 1.125rem; height: 1.125rem; }
.pc-overlay .pc-shell { min-height: 100%; }
@media (min-width: 1280px) {
  .pc-overlay .pc-shell { --pc-shell-h: calc(100dvh - 2rem); height: 100%; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 20rem); column-gap: 1rem; padding-inline: 1.5rem; }
  .pc-overlay .pc-stage-wrap { max-width: min(100%, calc(100dvh - 13rem)); }
  .pc-overlay .pc-blank__name { font-size: .75rem; }
}
@media (min-width: 1536px) { .pc-overlay .pc-shell { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) minmax(0, 22rem); } }
/* Focus mode: blanks column collapsed so the stage takes the space. */
@media (min-width: 1280px) {
  .pc-shell--blanks-collapsed { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem) !important; }
  .pc-shell--blanks-collapsed .pc-panel--blanks { display: none; }
  .pc-shell--blanks-collapsed .pc-center { grid-column: 1; }
  .pc-shell--blanks-collapsed .pc-panel--right { grid-column: 2; }
  .pc-shell--blanks-collapsed .pc-stage-wrap { max-width: min(100%, calc(100dvh - 12.5rem)); }
}
@media (min-width: 1536px) { .pc-shell--blanks-collapsed { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem) !important; } }
.pc-panel__title { display: flex; align-items: center; justify-content: space-between; }
.pc-panel__hide { font-size: .6875rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--pc-muted-fg); }
.pc-panel__hide:hover { color: var(--pc-fg); }
@media (max-width: 1279px) { .pc-panel__hide { display: none; } }

/* ---------- size run ---------- */
.pc-sizes { display: flex; flex-direction: column; gap: .375rem; margin-top: .5rem; }
.pc-size { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: .625rem; padding: .3rem .5rem .3rem .625rem; border: 1px solid rgba(225, 227, 229, .8); border-radius: .5rem; transition: border-color var(--pc-fast), background-color var(--pc-fast); }
.pc-size.is-filled { border-color: rgba(16, 20, 24, .3); background: var(--pc-card); }
.pc-size.is-oos { opacity: .45; }
.pc-size__label { font-size: .8125rem; font-weight: 600; letter-spacing: -.01em; }
.pc-size__ctrl { display: flex; align-items: center; justify-self: start; gap: .125rem; padding: .125rem; border: 1px solid rgba(225, 227, 229, .9); border-radius: .5rem; background: var(--pc-card); }
.pc-size__btn { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .375rem; font-size: 1rem; line-height: 1; color: var(--pc-muted-fg); }
.pc-size__btn:hover:not(:disabled) { background: var(--pc-panel); color: var(--pc-fg); }
.pc-size__btn:disabled { opacity: .35; }
.pc-size__input { width: 3rem; height: 1.75rem; border: 0; background: transparent; text-align: center; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.pc-size__input::-webkit-inner-spin-button, .pc-size__input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pc-size__price { font-size: .75rem; color: var(--pc-muted-fg); font-variant-numeric: tabular-nums; }
.pc-quickfill { margin-top: .625rem; }
.pc-qty--sm { min-height: 1.875rem; padding: 0 .55rem; font-size: .6875rem; }

/* ---------- price breakdown ---------- */
.pc-price { display: flex; flex-direction: column; gap: .375rem; padding-top: 1rem; border-top: 1px solid var(--pc-line-soft); }
.pc-price > .pc-overline { margin-bottom: .25rem; }
.pc-price__row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: .5rem; font-size: .8125rem; }
.pc-price__label { display: flex; flex-direction: column; min-width: 0; }
.pc-price__meta { font-size: .6875rem; color: var(--pc-tertiary); }
.pc-price__unit { font-size: .6875rem; color: var(--pc-muted-fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-price__total { min-width: 4.25rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.pc-price__sum { display: flex; align-items: baseline; justify-content: space-between; margin-top: .5rem; padding-top: .625rem; border-top: 1px solid var(--pc-border); font-size: .875rem; font-weight: 600; }
.pc-price__big { font-size: 1.375rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-price__unitline { margin: 0; font-size: .75rem; color: var(--pc-muted-fg); font-variant-numeric: tabular-nums; }
.pc-price__break { margin: .25rem 0 0; padding: .5rem .625rem; border-radius: .5rem; background: rgba(5, 150, 105, .08); border: 1px solid rgba(5, 150, 105, .2); font-size: .75rem; line-height: 1.45; color: #064e3b; }
.pc-hint--warn { color: var(--pc-amber); }
.pc-btn__price { margin-left: .5rem; padding-left: .5rem; border-left: 1px solid rgba(252, 252, 252, .25); font-variant-numeric: tabular-nums; }
.pc-bar__chip--price .pc-bar__title { font-size: 1rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
