.ab-pz {
    color: var(--color-text, #192a3a);
    background: var(--color-background, #fff);
    font-family: var(--font-body-family, system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.5;
}
.ab-pz *, .ab-pz *::before, .ab-pz *::after { box-sizing: border-box; }
.ab-pz [hidden] { display: none !important; }
.ab-pz .ab-pz-layout { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ab-pz .ab-pz-preview { position: sticky; top: 24px; min-width: 0; }
.ab-pz .ab-pz-controls { min-width: 0; }
.ab-pz .ab-pz-controls h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; }
.ab-pz .ab-pz-from { margin: 0 0 24px; }
.ab-pz .ab-pz-tabs { display: flex; gap: 24px; overflow-x: auto; margin-bottom: 12px; }
.ab-pz button, .ab-pz input, .ab-pz select, .ab-pz textarea { font: inherit; }
.ab-pz button { cursor: pointer; }
.ab-pz button:disabled { cursor: wait; opacity: 0.65; }
.ab-pz .ab-pz-tab { min-height: 44px; padding: 8px 2px; color: inherit; border: 0; border-bottom: 2px solid transparent; background: transparent; white-space: nowrap; }
.ab-pz .ab-pz-tab[aria-selected="true"] { border-bottom-color: var(--color-accent, #178f95); }
.ab-pz .ab-pz-stage { position: relative; background: var(--color-surface, #f6f1ea); border-radius: 12px; isolation: isolate; }
.ab-pz .ab-pz-mockup { display: block; width: 100%; height: auto; border-radius: 12px; }
.ab-pz .ab-pz-area { position: absolute; border: 1px dashed transparent; }
.ab-pz .ab-pz-stage:hover .ab-pz-area, .ab-pz .ab-pz-stage:focus-within .ab-pz-area, .ab-pz .ab-pz-has-design .ab-pz-area { border-color: var(--color-accent, #178f95); }
.ab-pz .ab-pz-design { position: absolute; transform-origin: center; outline: 1px solid var(--color-accent, #178f95); cursor: grab; touch-action: none; user-select: none; }
.ab-pz .ab-pz-design:active { cursor: grabbing; }
.ab-pz .ab-pz-artwork { display: block; width: 100%; object-fit: contain; pointer-events: none; }
.ab-pz .ab-pz-text { display: flex; align-items: center; justify-content: center; width: 100%; white-space: pre; line-height: 1; pointer-events: none; }
.ab-pz .ab-pz-handle { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 1px solid var(--color-accent, #178f95); border-radius: 50%; color: var(--color-text, #192a3a); background: #fff; font: 20px/1 system-ui, sans-serif; touch-action: none; }
.ab-pz .ab-pz-resize { right: -16px; bottom: -16px; cursor: nwse-resize; }
.ab-pz .ab-pz-rotate { top: -48px; left: calc(50% - 16px); cursor: grab; }
.ab-pz .ab-pz-rotate::after { content: ''; position: absolute; top: 31px; left: 14px; width: 1px; height: 16px; background: var(--color-accent, #178f95); pointer-events: none; }
.ab-pz .ab-pz-remove { top: -16px; left: -16px; }
.ab-pz .ab-pz-chip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; overflow: hidden; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; border: 1px solid var(--color-border, #e6ded6); border-radius: 8px; background: var(--color-background, #fff); }
.ab-pz .ab-pz-chip::before { content: ''; flex: 0 0 18px; width: 18px; height: 23px; border: 1px solid currentColor; border-radius: 2px 6px 2px 2px; }
.ab-pz .ab-pz-actions { display: flex; justify-content: center; gap: 24px; min-height: 44px; }
.ab-pz .ab-pz-actions button { min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--color-accent, #178f95); text-decoration: underline; text-underline-offset: 4px; }
.ab-pz .ab-pz-size { min-height: 24px; margin: 8px 0 0; text-align: center; font-size: 14px; }
.ab-pz .ab-pz-controls > label, .ab-pz .ab-pz-fields > label { display: grid; gap: 6px; margin-bottom: 18px; }
.ab-pz input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .ab-pz select, .ab-pz textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--color-border, #e6ded6); border-radius: 8px; background: var(--color-background, #fff); color: var(--color-text, #192a3a); }
.ab-pz input[type="color"] { height: 44px; }
.ab-pz input[type="file"] { font-size: 14px; overflow: hidden; }
.ab-pz input::file-selector-button { padding: 5px 8px; border: 0; border-radius: 4px; margin-right: 8px; font: inherit; color: var(--color-text, #192a3a); background: var(--color-surface, #f6f1ea); cursor: pointer; }
.ab-pz textarea { min-height: 100px; resize: vertical; }
.ab-pz input[type="checkbox"], .ab-pz input[type="radio"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--color-accent, #178f95); }
.ab-pz input:disabled, .ab-pz select:disabled { opacity: 0.55; cursor: not-allowed; }
.ab-pz fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.ab-pz legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.ab-pz .ab-pz-method { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 12px; margin-bottom: 10px; border: 1px solid var(--color-border, #e6ded6); border-radius: 8px; cursor: pointer; }
.ab-pz .ab-pz-method input { margin: 0; }
.ab-pz .ab-pz-method small { grid-column: 2; font-size: 14px; }
.ab-pz .ab-pz-method:has(input:checked) { border: 2px solid var(--color-accent, #178f95); padding: 11px; }
.ab-pz .ab-pz-placement { padding-top: 20px; border-top: 1px solid var(--color-border, #e6ded6); }
.ab-pz .ab-pz-toggle { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-bottom: 16px; cursor: pointer; }
.ab-pz .ab-pz-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 24px 0; }
.ab-pz .ab-pz-total output { font-size: 24px; font-weight: 600; }
.ab-pz .ab-pz-total small { font-size: 14px; }
.ab-pz .ab-pz-submit { width: 100%; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--color-button, #f34670); color: var(--color-button-text, #fff); font-weight: 600; }
.ab-pz .ab-pz-problem { padding: 12px 16px; border-left: 3px solid var(--color-button, #f34670); background: var(--color-surface, #f6f1ea); overflow-wrap: anywhere; }
.ab-pz :focus-visible { outline: 3px solid var(--color-accent, #178f95); outline-offset: 4px; }
.ab-pz button { transition: opacity 120ms ease; }
.ab-pz button:hover { opacity: 0.8; }
@media (max-width: 760px) {
    .ab-pz .ab-pz-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ab-pz .ab-pz-preview { position: static; }
}
@media (prefers-reduced-motion: reduce) {
    .ab-pz *, .ab-pz *::before, .ab-pz *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.ab-pz-back { margin: 0 0 16px; }
.ab-pz-back a { color: inherit; }
.ab-pz .ab-pz-eyebrow { margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted, #55606c); }
.ab-pz .ab-pz-hint { margin: -8px 0 18px; font-size: 14px; color: var(--color-muted, #55606c); }
.ab-pz .ab-pz-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.ab-pz .ab-pz-row > label { display: grid; gap: 6px; margin-bottom: 18px; }
.ab-pz .ab-pz-placement legend small { font-weight: 400; color: var(--color-muted, #55606c); }
.ab-pz-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
