/* Basic is the initial view. Keep this separate from each control's own hidden state. */
#sd_save_existing>div {max-width:820px}
#sd_save_existing>div>div>.space-y-6 {padding-bottom:12px}
#sd_save_existing #sd-existing-status:empty {display:none}
#sd_save_existing .sd-proof-field {display:flex;flex-direction:column;gap:4px;min-width:0}
#sd_save_existing .sd-proof-field>label,#sd_save_existing .sd-proof-field>input,#sd_save_existing .sd-proof-field>textarea {margin:0}
#sd_save_existing .sd-proof-notes-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#sd_save_existing .sd-proof-keyword-tabs {display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #a1a1aa;margin:6px 0 12px;padding:0 0 2px}
#sd_save_existing .sd-proof-keyword-tabs button {flex:none;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 12px;border:1px solid transparent;border-radius:5px 5px 0 0;background:transparent;color:#52525b;font:inherit;text-align:left;cursor:pointer}
#sd_save_existing .sd-proof-keyword-tabs button[aria-selected=true] {background:#fff;border-color:#087f7a;color:#065f5b;font-weight:600}
#sd_save_existing .sd-proof-keyword-tabs button:focus-visible {outline:2px solid #087f7a;outline-offset:-3px}
#sd_save_existing .sd-proof-keyword-panel {display:grid;grid-template-columns:104px minmax(0,1fr);gap:14px;align-items:start}
#sd_save_existing .sd-proof-keyword-preview {width:104px;height:104px;border:1px solid #a1a1aa;border-radius:5px;display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(#e4e4e7 0% 25%,#fff 0% 50%) 0 0/16px 16px}
#sd_save_existing .sd-proof-keyword-preview img {width:100%;height:100%;object-fit:contain;border-radius:4px}
#sd_save_existing .sd-proof-keyword-preview span {padding:6px;background:#fff;font-size:12px;text-align:center}
#sd_save_existing .sd-proof-keyword-panel textarea {width:100%;min-width:0;min-height:104px;margin:0;resize:vertical}
@media(max-width:600px){#sd_save_existing .sd-proof-notes-pair{grid-template-columns:1fr}#sd_save_existing .sd-proof-keyword-panel{grid-template-columns:72px minmax(0,1fr);gap:10px}#sd_save_existing .sd-proof-keyword-preview{width:72px;height:72px}}
#sd_save_existing.sd-compare-embossing>div {max-width:1000px}
#sd_save_existing .sd-proof-notifications {display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}
#sd_save_existing .sd-proof-notifications>label {display:inline-flex;align-items:center;gap:6px}
#sd_save_existing .sd-proof-notifications input {flex:none;margin:0}
#sd_save_existing .sd-embossing-comparison {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#sd_save_existing .sd-embossing-choice {display:flex;flex-direction:column;gap:8px;min-width:0;padding:10px;border:2px solid #a1a1aa;border-radius:6px;background:#fff;font:inherit;color:#27272a;text-align:center;cursor:pointer}
#sd_save_existing .sd-embossing-choice[aria-pressed=true] {border-color:#087f7a;box-shadow:0 0 0 1px #087f7a}
#sd_save_existing .sd-embossing-choice:focus-visible {outline:3px solid #087f7a;outline-offset:3px}
#sd_save_existing .sd-embossing-choice-title {font-size:14px;font-weight:600}
#sd_save_existing .sd-embossing-sample {display:flex;align-items:center;justify-content:center;height:320px;padding:12px;background:repeating-conic-gradient(#d4d4d8 0% 25%,#f4f4f5 0% 50%) 0 0/24px 24px;border-radius:3px}
#sd_save_existing .sd-embossing-sample img {display:block;max-width:100%;max-height:100%;object-fit:contain}
#sd_save_existing .sd-embossing-selected {font-size:13px;font-weight:600;color:#087f7a;visibility:hidden}
#sd_save_existing .sd-embossing-choice[aria-pressed=true] .sd-embossing-selected {visibility:visible}
#sd_save_existing [hidden] {display:none!important}
@media(max-width:600px){#sd_save_existing .sd-embossing-comparison{gap:8px}#sd_save_existing .sd-embossing-choice{padding:6px}#sd_save_existing .sd-embossing-sample{height:210px;padding:6px}}
#sticker-designer:not([data-editor-mode="advanced"]) [data-editor-advanced] {display:none!important}
/* Curve properties stay in the Extras panel; point controls live on the artboard. */
/* Template authoring lives in Options; the customer form can be embedded separately. */
#sticker-designer #sd-template-details {border:1px solid #cdd6d5;border-radius:6px;padding:12px;margin-bottom:22px}
#sticker-designer #sd-template-details>summary {font-weight:600;cursor:pointer;min-height:32px}
#sticker-designer #sd-template-details>label,#sticker-designer .sd-template-field {display:grid;gap:6px;margin:14px 0}
#sticker-designer .sd-template-field-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
#sticker-designer .sd-template-field-heading>label {min-width:0;overflow-wrap:anywhere}
#sticker-designer .sd-template-field-order {display:flex;gap:4px;flex-shrink:0}
#sticker-designer .sd-template-field-order button {width:22px;height:22px;min-height:22px;padding:1px;font-size:18px;line-height:1}
#sticker-designer #sd-template-details>.sd-check {display:flex;gap:10px}
#sticker-designer #sd-template-details h3 {font-size:17px;margin:24px 0 12px}
#sticker-designer .sd-template-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
#sticker-designer .sd-template-grid>label {display:grid;gap:6px;min-width:0}
#sticker-designer .sd-template-actions {display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
#sticker-designer .sd-template-actions button {flex:1;min-height:44px}
#sticker-designer .sd-template-binding {display:grid;grid-template-columns:1fr auto;gap:8px;margin:14px 0}
#sticker-designer .sd-template-binding select {grid-column:1 / -1}
#sticker-designer .sd-template-binding textarea {grid-column:1 / -1;width:100%;min-width:0;min-height:100px;resize:vertical;line-height:1.5}
#sticker-designer #sd-variable-expression,#sticker-designer #sd-template-visibility,#sticker-designer .sd-template-binding textarea {font-family:'Courier New',Courier,monospace}
#sticker-designer .sd-template-binding>button {grid-column:2;justify-self:end}
#sticker-designer .sd-template-binding .sd-template-field-error {grid-column:1 / -1;margin:0}
#sticker-designer #sd-template-details [aria-invalid="true"] {border-color:#a12622;outline:1px solid #a12622}
#sticker-designer .sd-template-binding-actions {display:flex;align-items:stretch;gap:8px}
#sticker-designer #sd-template-add-binding {flex:1;min-width:0}
#sticker-designer #sd-template-binding-help {flex:0 0 44px;padding:10px;font-size:18px;font-weight:700}
#sticker-designer .sd-template-help {margin-top:20px;font-size:13px;line-height:1.6}
#sticker-designer .sd-template-help p {margin:12px 0}
#sticker-designer .sd-template-field-error {color:#a12622;font-size:13px;line-height:1.5}
#sticker-designer #sd-template-errors {color:#a31924;overflow-wrap:anywhere}
#sticker-designer .sd-template-preview-dialog {width:min(1080px,calc(100vw - 24px));max-height:calc(100svh - 24px);padding:24px;border:0;border-radius:8px;overflow:auto;background:white;color:#27272a}
#sticker-designer .sd-template-preview-dialog::backdrop {background:#0006}
#sticker-designer .sd-template-preview-heading {display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}
#sticker-designer .sd-template-preview-heading h2 {font-size:22px;margin:0}
#sticker-designer [data-template-column-break][aria-pressed=true] {background:#dbeafe;border-color:#2563eb;color:#1e40af}
#sticker-designer .sd-template-preview-layout {display:grid;grid-template-columns:minmax(200px,280px) minmax(0,1fr);gap:24px;margin-top:16px}
#sticker-designer [data-template-display] {display:grid;place-items:center;min-width:0;min-height:250px;padding:24px;box-sizing:border-box;background:#eceeed;border-radius:6px;overflow:hidden}
#sticker-designer [data-template-display] {position:relative;isolation:isolate}
#sticker-designer [data-template-display][aria-busy=true]::before {content:'';position:absolute;inset:0;background:#ffffff80;z-index:1;pointer-events:none}
#sticker-designer [data-template-display][aria-busy=true]::after {content:'';position:absolute;left:50%;top:50%;width:36px;height:36px;margin:-18px 0 0 -18px;box-sizing:border-box;border:4px solid #d4d4d8;border-top-color:#27272a;border-radius:50%;animation:sd-save-spinner .75s linear infinite;z-index:2;pointer-events:none}
#sticker-designer [data-template-status] {white-space:pre-line;color:#a31924;margin-top:12px}
@media(max-width:640px){#sticker-designer .sd-template-preview-layout {grid-template-columns:1fr}#sticker-designer .sd-template-preview-dialog {padding:16px}#sticker-designer [data-template-display] {grid-row:1;min-height:200px;padding:16px}}
#sticker-designer .sd-curve-editor {border-top:1px solid #d4d4d8;margin-top:24px;padding-top:16px}
#sticker-designer .sd-curve-editor h3 {margin:0 0 12px}
#sticker-designer #sd-curve-settings {margin-top:16px}
#sticker-designer .sd-curve-editor input:not([type=checkbox]):not([type=color]),
#sticker-designer .sd-curve-editor select {width:100%;min-width:0;box-sizing:border-box}
#sticker-designer .sd-curve-editor .sd-label {display:block;margin-top:14px;margin-bottom:6px}
#sticker-designer .sd-curve-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
#sticker-designer .sd-curve-grid label,#sticker-designer .sd-curve-item>label {display:grid;gap:6px;min-width:0}
#sticker-designer .sd-curve-grid label>span {display:contents}
#sticker-designer .sd-curve-buttons {display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
#sticker-designer .sd-curve-buttons .sd-button {flex:1;padding:7px 9px;white-space:nowrap}
#sticker-designer .sd-curve-editor .sd-check {margin:14px 0}
#sticker-designer .sd-curve-item {min-width:0;border:1px solid #cdd6d5;border-radius:6px;padding:10px;margin:14px 0}
#sticker-designer .sd-curve-item legend {font-size:.9rem;font-weight:600;max-width:100%;overflow-wrap:anywhere;padding:0 4px}
#sticker-designer .sd-curve-item>label {margin-top:10px}
#sticker-designer .sd-curve-item .sd-button {font-size:.78rem}
#sticker-designer #sd-curve-add,#sticker-designer #sd-curve-edit,#sticker-designer #sd-curve-attach-button {margin-top:10px;width:100%}
#sticker-designer #sd-curve-start-value {display:block;text-align:right}
#sticker-designer #sd-path-draw,#sticker-designer #sd-shape-convert {width:100%;margin-top:14px}
#sticker-designer .sd-path-session {padding:12px;border:1px solid #168b85;border-radius:var(--sd-field-radius);background:#e9f6f3;margin-bottom:12px;scroll-margin-top:90px}
#sticker-designer .sd-path-session p {margin:0 0 10px;line-height:1.5}
#sticker-designer .sd-path-actions {display:flex;gap:8px;flex-wrap:wrap}
#sticker-designer .sd-node-actions {display:flex;align-items:center;gap:4px}
#sticker-designer .sd-node-actions[hidden],#sticker-designer .sd-node-actions strong {display:none}
#sticker-designer .sd-node-actions .sd-button {min-height:30px;height:30px;padding:3px 8px;margin:0;font-size:12px;white-space:nowrap}
#sticker-designer .sd-node-actions [aria-pressed=true] {background:#087f7a;color:#fff}
#sticker-designer .sd-path-actions .sd-button {min-height:44px;padding:8px 12px;flex:1 0 auto}
#sticker-designer .sd-path-actions [aria-pressed=true],#sticker-designer .sd-curve-buttons [aria-pressed=true],#sticker-designer .sd-cut-buttons [aria-pressed=true] {background:#087f7a;color:#fff}
#sticker-designer #sd-preview-svg.sd-drawing-path {cursor:crosshair;touch-action:none}
#sticker-designer .sd-item-picker-trigger {display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
#sticker-designer .sd-item-picker-trigger::after {content:'';flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 3px 4px 0}
#sticker-designer .sd-item-picker-trigger[aria-expanded=true]::after {transform:rotate(225deg);margin-top:8px}
#sticker-designer .sd-item-picker-list {position:fixed;z-index:100;max-height:240px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #a1a1aa;border-radius:var(--sd-field-radius);background:#fff;padding:4px;box-shadow:0 4px 12px #0002}
#sticker-designer .sd-item-picker-list [role=option] {min-height:44px;padding:8px;cursor:pointer;overflow-wrap:anywhere;border-radius:3px}
#sticker-designer .sd-item-picker-list [role=option].is-active,#sticker-designer .sd-item-picker-list [role=option][aria-disabled=false]:hover {background:#e5f6f4;outline:1px solid #168b85;outline-offset:-1px}
#sticker-designer .sd-item-picker-list [aria-disabled=true] {color:#71717a;cursor:not-allowed}
#sticker-designer .sd-item-picker-list .sd-item-unavailable {text-decoration:line-through}
#sticker-designer .sd-item-picker-list small {display:block;font-size:12px;line-height:1.4}
#sticker-designer .sd-guide-attachment {margin:16px 0;padding:10px;background:#e9f6f3;border-radius:5px}
#sticker-designer .sd-guide-attachment .sd-helper {margin-top:0}
#sticker-designer .sd-guide-attachment .sd-button {margin-top:10px}
/* Cropping keeps image bytes intact and edits a bounded rectangle in source coordinates. */
#sticker-designer #sd-icon-new,#sticker-designer #sd-icon-choose,#sticker-designer #sd-icon-revert {width:100%;margin-top:12px}
#sticker-designer #sd-icon-settings {margin-top:12px}
#sticker-designer #sd-icon-settings .sd-label {display:block;margin-top:14px;margin-bottom:6px}
#sticker-designer .sd-icon-library-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:320px;overflow-y:auto;padding:4px;margin-top:10px;overscroll-behavior:contain}
#sticker-designer .sd-icon-library-grid button {min-width:0;min-height:76px;padding:8px 3px;border:1px solid #d4d4d8;border-radius:6px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
#sticker-designer .sd-icon-library-grid button[aria-pressed=true] {border-color:#168b85;background:#e5f6f4}
#sticker-designer .sd-icon-library-grid img {width:32px;height:32px}
#sticker-designer .sd-icon-library-grid span {font-size:11px;line-height:1.25;overflow-wrap:anywhere}
#sticker-designer .sd-icon-pages {display:flex;justify-content:space-between;gap:12px;margin-top:10px}
#sticker-designer .sd-icon-pages button {min-height:44px;padding:8px 14px}
#sticker-designer .sd-icon-preview {display:block;width:100%;height:100px;object-fit:contain;margin:14px 0;background:repeating-conic-gradient(#e6e6e5 0% 25%,#fff 0% 50%) 0 0/16px 16px;border:1px solid #d4d4d8;border-radius:6px}
#sticker-designer #sd-icon-position {margin-top:18px}
#sticker-designer .sd-button.sd-crop-button {width:100%;margin:20px 0 10px}
#sticker-designer #sd-trace-image {width:100%}
#sticker-designer #sd-replace-image {width:100%;margin-top:12px}
#sticker-designer .sd-dialog.sd-image-crop-dialog {width:min(740px,calc(100vw - 24px));max-height:calc(100svh - 24px);overflow:auto}
#sticker-designer .sd-crop-preview {margin:12px 0;background:repeating-conic-gradient(#e6e6e5 0% 25%,#fff 0% 50%) 0 0/16px 16px;border:1px solid #d4d4d8;border-radius:5px;overflow:hidden}
#sticker-designer .sd-crop-preview svg {display:block;width:100%;height:min(45svh,420px);touch-action:none;user-select:none}
#sticker-designer [data-crop-handle] {cursor:move;outline:none}
#sticker-designer [data-crop-handle]:focus,#sticker-designer [data-crop-handle]:focus > rect:last-child {stroke:#f97316;stroke-width:3}
#sticker-designer [data-crop-handle="n"],#sticker-designer [data-crop-handle="s"] {cursor:ns-resize}
#sticker-designer [data-crop-handle="e"],#sticker-designer [data-crop-handle="w"] {cursor:ew-resize}
#sticker-designer [data-crop-handle="nw"],#sticker-designer [data-crop-handle="se"] {cursor:nwse-resize}
#sticker-designer [data-crop-handle="ne"],#sticker-designer [data-crop-handle="sw"] {cursor:nesw-resize}
#sticker-designer .sd-crop-ratio-label {display:flex;align-items:center;gap:10px;margin-top:12px;font-size:14px}
#sticker-designer .sd-crop-fields {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}
#sticker-designer .sd-crop-fields label {font-size:13px}
#sticker-designer .sd-crop-fields input,#sticker-designer .sd-crop-ratio-label select {display:block}
#sticker-designer .sd-crop-ratio-label select {flex:1}
#sticker-designer .sd-crop-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:16px;flex-wrap:wrap}
#sticker-designer .sd-crop-actions button {min-height:44px;padding:8px 14px}
#sticker-designer .sd-dialog.sd-mask-dialog {width:min(900px,calc(100vw - 24px));max-height:calc(100svh - 24px);overflow:auto}
#sticker-designer .sd-mask-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
#sticker-designer .sd-mask-controls label {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#sticker-designer .sd-mask-controls input,#sticker-designer .sd-mask-controls select {width:100%}
#sticker-designer .sd-mask-controls output {margin-left:auto}
#sticker-designer .sd-mask-viewport {height:min(48svh,480px);overflow:auto;margin-top:12px;border:1px solid #d4d4d8;background:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%) 0 0/16px 16px}
#sticker-designer .sd-mask-surface {position:relative;margin:auto;overflow:hidden}
#sticker-designer .sd-mask-surface canvas {display:block;width:100%;height:100%;touch-action:none;cursor:none}
#sticker-designer .sd-cut-area-dialog [data-field="regions"] {width:100%;margin:8px 0 12px}
#sticker-designer .sd-cut-area-dialog [data-status] {min-height:3em;margin:12px 0;font-size:14px}
#sticker-designer .sd-cut-area-dialog .sd-cut-buttons {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#sticker-designer .sd-cut-area-dialog [data-field="color"] {height:40px}
#sticker-designer .sd-dialog.sd-cut-area-dialog {width:min(1200px,calc(100vw - 24px))}
#sticker-designer .sd-cut-area-workspace {display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:20px}
#sticker-designer .sd-cut-area-settings {max-height:65svh;overflow:auto;padding-right:8px}
#sticker-designer .sd-cut-area-preview {min-width:0}
#sticker-designer .sd-cut-area-preview .sd-mask-viewport {height:52svh;margin-top:0}
#sticker-designer .sd-cut-area-dialog .sd-mask-controls {gap:10px}
@media(max-width:700px) {#sticker-designer .sd-cut-area-workspace {grid-template-columns:minmax(0,1fr);gap:12px}#sticker-designer .sd-cut-area-settings {max-height:30svh}#sticker-designer .sd-cut-area-preview .sd-mask-viewport {height:32svh;min-height:180px}}
#sticker-designer .sd-mask-cursor {position:absolute;pointer-events:none;transform:translate(-50%,-50%);border:1px solid #fff;box-shadow:0 0 0 1px #111;border-radius:50%}
#sticker-designer #sd-image-mask {margin-top:12px;width:100%}
#sticker-designer .sd-object-drawer {position:absolute;right:0;top:0;bottom:0;z-index:35;pointer-events:none;max-width:calc(100% - 40px)}
#sticker-designer .sd-object-drawer-trigger {pointer-events:auto;display:flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:40px;height:40px;margin:12px 10px;padding:8px;background:#fff;border:1px solid #d4d4d8;border-radius:5px;font:inherit;line-height:1;box-shadow:0 2px 8px #0001}
#sticker-designer .sd-object-drawer aside {pointer-events:auto;width:280px;max-width:100%;height:100%;display:flex;flex-direction:column;background:#fff;border-left:1px solid #d4d4d8;box-shadow:-4px 0 14px #0001}
#sticker-designer .sd-object-drawer-header {display:flex;align-items:center;justify-content:space-between;padding:12px 14px;gap:8px}
#sticker-designer .sd-object-drawer-header h2 {font:600 15px Montserrat,Arial,sans-serif;margin:0}
#sticker-designer .sd-object-drawer-header button {width:36px;height:36px;border:1px solid #d4d4d8;border-radius:5px;background:#f4f4f5;font-size:24px}
#sticker-designer .sd-object-drawer aside>p {font-size:12px;color:#52525b;padding:0 14px 12px;margin:0}
#sticker-designer .sd-object-drawer-rows {overflow:auto;flex:1;min-height:0;padding:0 8px 10px}
#sticker-designer .sd-object-drawer-rows>p {padding:8px;font-size:13px}
#sticker-designer .sd-object-row {display:flex;align-items:stretch;border-bottom:1px solid #e4e4e7;gap:4px}
#sticker-designer .sd-object-child {padding-left:14px}
#sticker-designer .sd-object-row button {font:inherit;font-size:13px;border:0;background:transparent;min-height:42px;border-radius:5px;color:#27272a}
#sticker-designer .sd-object-row .sd-object-select {display:flex;align-items:center;gap:8px;flex:1;min-width:0;text-align:left;padding:8px;overflow:hidden;white-space:nowrap}
#sticker-designer .sd-object-label {min-width:0;overflow:hidden;text-overflow:ellipsis}
#sticker-designer .sd-object-anchor {flex:none;margin-left:auto;padding:2px 5px;border-radius:4px;background:#075d58;color:#fff;font-size:10px}
#sticker-designer .sd-object-is-anchor .sd-object-select {box-shadow:inset 0 0 0 2px #087f7a}
#sticker-designer .sd-object-ink-badges {display:flex;gap:3px;flex-shrink:0;margin-left:auto}
#sticker-designer .sd-object-ink-badge {display:inline-block;border:1px solid #71717a;border-radius:3px;padding:1px 4px;font:700 10px/16px Arial,sans-serif;letter-spacing:.02em}
#sticker-designer .sd-object-ink-white {background:#fff;color:#27272a}
#sticker-designer .sd-object-ink-uv {background:#f3e8ff;border-color:#7e22ce;color:#581c87}
#sticker-designer .sd-object-type-icon {display:flex;flex:0 0 18px}
#sticker-designer .sd-object-drawer .sd-object-type-icon svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:none;overflow:visible}
#sticker-designer .sd-object-row .sd-object-select[aria-pressed=true] {background:#d8f5f2;color:#075d58;font-weight:600}
#sticker-designer .sd-object-row .sd-object-select:hover {background:#eef7f6}
#sticker-designer .sd-object-hidden .sd-object-select {opacity:.6}
#sticker-designer .sd-object-visibility {flex:0 0 38px;display:grid;place-items:center;padding:8px}
#sticker-designer .sd-object-download {flex:0 0 28px;display:grid;place-items:center;min-height:42px;color:#27272a;border-radius:5px}
#sticker-designer .sd-object-download:hover {background:#eef7f6}
#sticker-designer .sd-object-drawer .sd-object-download svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:none}
#sticker-designer .sd-object-drawer .sd-object-visibility svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;filter:none;overflow:visible}
#sticker-designer .sd-object-drawer [hidden] {display:none!important}
#sticker-designer .sd-object-drawer .sd-proof-notes-trigger svg {flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:none}
#sticker-designer .sd-proof-notes-trigger[data-attention="revision"][data-revision-source="admin"] {color:#991b1b;background:#fee2e2;border-color:#fca5a5}
#sticker-designer .sd-proof-notes-trigger[data-attention="revision"][data-revision-source="customer"] {color:#854d0e;background:#fef9c3;border-color:#facc15}
#sticker-designer .sd-proof-notes-trigger[data-attention="notes"] {color:#854d0e;background:#fef3c7;border-color:#fcd34d}
#sticker-designer .sd-proof-notes-trigger[data-attention="empty"] {color:#52525b}
#sticker-designer #sd-proof-notes-panel {width:350px}
#sticker-designer .sd-proof-notes-content {overflow:auto;flex:1;min-height:0;padding:0 14px 18px;font-size:13px;line-height:1.5}
#sticker-designer .sd-proof-notes-content section+section {border-top:1px solid #d4d4d8;margin-top:18px;padding-top:16px}
#sticker-designer .sd-proof-notes-content h3 {font-size:14px;font-weight:700;margin:0 0 10px}
#sticker-designer .sd-proof-note {border:1px solid #e4e4e7;border-radius:5px;padding:10px;margin-bottom:10px}
#sticker-designer .sd-proof-note-current {border-left-width:4px}
#sticker-designer .sd-proof-note[data-revision-source="admin"] {border-color:#fca5a5;background:#fef2f2}
#sticker-designer .sd-proof-note[data-revision-source="admin"] h4 {color:#991b1b}
#sticker-designer .sd-proof-note[data-revision-source="customer"] {border-color:#facc15;background:#fefce8}
#sticker-designer .sd-proof-note[data-revision-source="customer"] h4 {color:#854d0e}
#sticker-designer .sd-proof-note h4 {font-size:13px;font-weight:600;margin:0 0 4px}
#sticker-designer .sd-proof-note small {color:#71717a}
#sticker-designer .sd-proof-note p {white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}
@media(max-width:600px) {#sticker-designer .sd-mask-viewport {height:32svh;min-height:180px}}
#sticker-designer #sd-crop-reset {margin-right:auto}
@media(max-width:480px) {
    #sticker-designer .sd-crop-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
    #sticker-designer .sd-dialog.sd-image-crop-dialog {padding:14px}
    #sticker-designer .sd-crop-actions button {padding-inline:10px}
}

/* Admin editors fill the window; long tools and dialogs retain their own scrolling. */
body.sd-admin-editor {height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}
body.sd-admin-editor [data-site-content],body.sd-admin-editor [data-site-body],body.sd-admin-editor #sticker-designer,body.sd-admin-editor #sticker-designer .sd-main {display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
body.sd-admin-editor [data-site-content]>:not([data-site-body]),body.sd-admin-editor #sticker-designer .sd-toolbar,body.sd-admin-editor #sticker-designer .sd-read-only-notice {flex-shrink:0}
body.sd-admin-editor #sticker-designer .sd-workspace {flex:1;min-height:0;height:auto}
body.sd-admin-editor #sticker-designer .sd-stage {min-height:0}
body.sd-admin-editor #sticker-designer .sd-controls {max-height:100%}
body.sd-admin-editor #sticker-designer #sd-message {flex-shrink:0;max-height:25dvh;overflow:auto}

/* Site navigation, branding, fonts, footer, and action buttons come from x-main. */
#sticker-designer {color:#27272a;background:#fff;--sd-sticky-top:48px;--sd-stage-height:clamp(180px,28svh,280px);--sd-workspace-top:210px;--sd-field-radius:.375rem;--sd-field-padding-y:.5rem;--sd-field-padding-x:.75rem}
#sticker-designer * {box-sizing:border-box}
#sticker-designer [hidden] {display:none!important}
#sticker-designer :is(h2,h3,p) {margin:0}
#sticker-designer button {cursor:pointer}
#sticker-designer button:disabled {opacity:.45;cursor:not-allowed}
#sticker-designer :is(button,input,textarea,a):focus-visible {outline:3px solid #2abcb6;outline-offset:3px}
#sticker-designer :where(input,textarea) {font:inherit}
/* Match the site's rounded-md fields and Tailwind forms padding, including dynamically added Extras. */
#sticker-designer :where(select,textarea,input:not([type]),input[type=text],input[type=number],input[type=search],input[type=email],input[type=url],input[type=tel],input[type=password],.sd-font-trigger,.sd-item-picker-trigger) {width:100%;min-width:0;min-height:44px;border:1px solid #a1a1aa;border-radius:var(--sd-field-radius);padding:var(--sd-field-padding-y) var(--sd-field-padding-x);background-color:#fff;color:#27272a;font:inherit;font-size:16px;line-height:1.5}
#sticker-designer select {padding-right:2.5rem}
#sticker-designer input[type=checkbox] {width:17px;height:17px;accent-color:#2abcb6;border:1px solid #707071;border-radius:3px}
#sticker-designer input[type=range] {width:100%;height:32px;margin-top:5px;padding:0;accent-color:#2abcb6;cursor:pointer}
#sticker-designer input[type=range]:disabled {opacity:.4}
#sticker-designer input[type=color] {width:46px;height:36px;padding:2px;border:1px solid #a1a1aa;border-radius:5px;background:#fff;cursor:pointer}
#sticker-designer .sd-main {width:100%;padding:16px 24px 24px}
#sticker-designer #sd-loading-design {position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;margin:0;padding:24px;text-align:center;font-weight:600;background:rgba(230,230,229,.9)}
#sticker-designer #sd-loading-design-spinner {width:24px;height:24px;flex:none}
#sticker-designer #sd-loading-design-spinner>svg {display:block;width:24px;height:24px;filter:none}
#sticker-designer .sd-main[aria-busy=true] {pointer-events:none}
#sticker-designer .sd-main[aria-busy=true] #sd-empty {display:none!important}
#sticker-designer .sd-toolbar {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;margin-bottom:14px}
#sticker-designer .sd-studio-title {margin:0;padding:0;font-size:22px;line-height:1.2;white-space:nowrap}
#sticker-designer .sd-toolbar-actions {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
#sticker-designer .sd-file-actions {display:flex;gap:8px}
#sticker-designer .sd-edit-actions {display:contents}
#sticker-designer .sd-file-actions .sd-button {font-size:13px;white-space:nowrap}
#sticker-designer .sd-units {display:flex;align-items:center;gap:4px;font-size:13px}
#sticker-designer .sd-units .sd-compact-choice {display:none;width:auto;min-height:36px;padding:6px 28px 6px 8px;font-size:13px}
#sticker-designer .sd-units>span {margin-right:6px;color:#52525b}
#sticker-designer .sd-units button {min-height:40px;padding:6px 12px;background:#f4f4f5;border:1px solid #a1a1aa;border-radius:5px}
#sticker-designer .sd-units button[aria-pressed=true] {background:#27272a;border-color:#27272a;color:#fff}
#sticker-designer .sd-unit-toggle {gap:0}
#sticker-designer .sd-unit-toggle [data-units="in"] {border-top-right-radius:0;border-bottom-right-radius:0}
#sticker-designer .sd-unit-toggle [data-units="mm"] {border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}
#sticker-designer .sd-unit-toggle button:focus-visible {position:relative;z-index:1}
#sticker-designer .sd-editor-mode {gap:0}
#sticker-designer .sd-editor-mode [data-editor-mode-choice="basic"] {border-top-right-radius:0;border-bottom-right-radius:0}
#sticker-designer .sd-editor-mode [data-editor-mode-choice="advanced"] {border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}
#sticker-designer .sd-editor-mode button:focus-visible {position:relative;z-index:1}
#sticker-designer .sd-history {display:flex;align-items:center;gap:6px}
#sticker-designer .sd-history button {min-width:38px;min-height:40px;margin:0}
#sticker-designer .sd-history :is(#sd-undo,#sd-redo) {font-size:21px;padding:2px 6px}
#sticker-designer .sd-workspace {display:grid;grid-template-columns:350px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:20px;align-items:stretch;height:max(460px,calc(100svh - var(--sd-workspace-top) - 36px))}
#sticker-designer .sd-controls {position:relative;grid-column:1;grid-row:1;background:#fff;border:1px solid #d4d4d8;border-radius:8px;overflow:hidden;height:100%;min-height:0}
#sticker-designer .sd-read-only-notice {display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 20px;background:#fef3c7;color:#78350f;border-bottom:1px solid #f59e0b}
#sticker-designer .sd-read-only-notice form {margin-left:auto}
#sticker-designer.sd-read-only :is(.sd-file-actions,.sd-history,.sd-units,#sd-next,#sd-save-proof-draft,#sd-send-stickerforge) {display:none!important}
#sticker-designer.sd-read-only #selection-controls {pointer-events:none}
#sticker-designer.sd-read-only #selection-controls [data-transform-handle]:not([data-transform-handle=move]) {display:none}
#sticker-designer .sd-tabs {display:flex;overflow-x:auto;background:#f4f4f5;border-bottom:1px solid #d4d4d8;padding:6px 4px 0}
#sticker-designer .sd-tabs button {flex:1;min-width:max-content;white-space:nowrap;min-height:64px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px 9px;font-family:Montserrat,Arial,sans-serif;font-size:11px;font-weight:600;border:0;border-bottom:3px solid transparent;background:transparent;color:#52525b}
#sticker-designer .sd-tabs button span {font-size:22px;line-height:1.1}
#sticker-designer .sd-tabs button[aria-selected=true] {color:#18181b;border-color:#2abcb6}
#sticker-designer .sd-panel {padding:20px;height:calc(100% - 71px);overflow-y:auto;scrollbar-width:thin}
#sticker-designer .sd-panel h2 {font-size:18px;line-height:1.35}
#sticker-designer .sd-panel h3 {margin-top:22px;font-family:Montserrat,Arial,sans-serif;font-size:13px;font-weight:600}
#sticker-designer .sd-helper {font-size:13px;color:#52525b;line-height:1.5;margin-top:8px}
#sd_revision_image .sd-revision-images {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#sd_revision_image .sd-revision-images h4,#sd_revision_image .sd-revision-images label {display:block;font-weight:600;margin-bottom:8px}
#sd_revision_image .sd-revision-images p {overflow-wrap:anywhere;margin:8px 0}
#sd_revision_image .sd-revision-image-preview {display:flex;align-items:center;justify-content:center;height:180px;margin:12px 0;border:1px solid #a1a1aa;border-radius:8px;background:repeating-conic-gradient(#f4f4f5 0% 25%,#fff 0% 50%) 50%/16px 16px}
#sd_revision_image .sd-revision-image-preview img {max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:540px) {#sd_revision_image .sd-revision-images {grid-template-columns:1fr;gap:16px} #sd_revision_image .sd-revision-image-preview {height:140px}}
#sticker-designer .sd-upload {width:100%;margin:18px 0 8px;padding:15px 10px;border:2px dashed #2abcb6;border-radius:6px;background:#f4f4f5;display:flex;flex-direction:column;align-items:center;gap:3px;color:#27272a}
#sticker-designer .sd-upload:hover {border-color:#f15a29}
#sticker-designer .sd-upload>span {font-size:25px;line-height:1.2}
#sticker-designer .sd-upload strong {font-family:Montserrat,Arial,sans-serif;font-size:13px}
#sticker-designer .sd-upload small {font-size:12px;color:#52525b}
#sticker-designer .sd-photo-action {width:100%;min-height:44px;margin-top:16px}
#sticker-designer .sd-background-tools {min-width:0;margin:14px 0 0;padding:12px;border:1px solid #d4d4d8;border-radius:6px;background:#fafafa}
#sticker-designer .sd-background-tools legend {padding:0 5px;font-size:14px;font-weight:600}
#sticker-designer .sd-background-tools .sd-check {margin-top:0}
#sticker-designer .sd-background-tools #sd-image-contour-background + .sd-check {margin-top:12px}
#sticker-designer .sd-auto-removal {margin-top:14px;padding-top:14px;border-top:1px solid #d4d4d8}
#sticker-designer .sd-auto-removal .sd-photo-action {margin-top:0}
#sticker-designer .sd-filename {color:#71717a;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sticker-designer .sd-divider {height:1px;background:#d4d4d8;margin:20px 0}
#sticker-designer .sd-check {display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;margin-top:18px}
#sticker-designer .sd-range-label {display:flex;align-items:center;justify-content:space-between;margin-top:20px;font-size:14px;font-weight:600}
#sticker-designer .sd-range-label output {font-size:13px;font-weight:400;color:#52525b;font-variant-numeric:tabular-nums}
#sticker-designer .sd-scale-field {display:flex;align-items:center;gap:8px;margin-top:8px}
#sticker-designer .sd-image-dpi {display:inline-flex;align-items:center;justify-content:center;flex:none;margin-left:auto;min-height:44px;padding:8px 12px;border:1px solid #99ded9;border-radius:5px;background:#e9f8f7;color:#075e5a;font-size:16px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
#sticker-designer .sd-scale-field input {flex:0 1 6rem;width:6rem}
#sticker-designer .sd-low-resolution {color:#92400e;font-weight:600}
#sticker-designer .sd-image-dpi.sd-low-resolution {border-color:#f5ca89;background:#fff3df;color:#92400e;font-weight:700}
#sticker-designer .sd-range-ends {display:flex;justify-content:space-between;color:#71717a;font-size:12px}
#sticker-designer .sd-text-button {padding:0;background:transparent;border:0;color:#087f7a;font-size:13px;text-decoration:underline;text-underline-offset:3px;margin-top:18px}
#sticker-designer .sd-text-button:hover {color:#f15a29}
#sticker-designer .sd-text-button.link {text-decoration:none}
#sticker-designer .sd-removal {background:#f4f4f5;border-radius:6px;padding:12px;margin-top:14px}
#sticker-designer .sd-removal .sd-range-label {margin-top:12px}
#sticker-designer .sd-color-field {display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:18px 0}
#sticker-designer .sd-cut-colors {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#sticker-designer #sd-cut-admin .sd-cut-colors label {display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0}
#sticker-designer .sd-paint-editor {margin:18px 0;padding:12px;border:1px solid #d4d4d8;border-radius:6px}
#sticker-designer #sd-qr-editor>h3 {margin-top:18px}
#sticker-designer #sd-panel-extras>.sd-curve-editor {padding-top:20px}
#sticker-designer #sd-panel-extras>.sd-curve-editor>h3 {margin-top:0}
#sticker-designer #sd-qr-editor textarea {min-height:82px;resize:vertical}
#sticker-designer #sd-qr-editor>.sd-button {margin-top:12px;width:100%}
#sticker-designer .sd-qr-preview {display:block;width:180px;max-width:100%;height:auto;aspect-ratio:1;margin:18px auto 0;background:#fff}
#sticker-designer #sd-qr-editor .sd-range-label {gap:12px}
#sticker-designer .sd-paint-style {display:block;font-size:13px;font-weight:600}
#sticker-designer .sd-paint-style select {display:block;margin-top:6px}
#sticker-designer .sd-paint-editor .sd-color-field {margin:12px 0 0;gap:8px}
#sticker-designer .sd-gradient-controls .sd-range-label {margin-top:14px;gap:12px}
#sticker-designer .sd-gradient-preview {height:22px;border:1px solid #a1a1aa;border-radius:4px;margin:12px 0}
#sticker-designer .sd-gradient-preview.sd-gradient-preview-radial {width:100%;max-width:128px;height:auto;aspect-ratio:1}
#sticker-designer .sd-gradient-controls button {min-height:44px}

#sticker-designer .sd-shapes {display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}
#sticker-designer .sd-shapes button {border:1px solid #a1a1aa;border-radius:6px;padding:12px 8px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;background:#fff;font-size:13px}
#sticker-designer .sd-shapes svg {width:34px;height:34px;fill:#e6e6e5;stroke:#707071;stroke-width:1.5}
#sticker-designer :is(.sd-shapes,.sd-presets) button[aria-pressed=true] {border:2px solid #2abcb6;background:#f4f4f5;color:#18181b;font-weight:700}
#sticker-designer .sd-shapes button[aria-pressed=true] svg {stroke:#18181b;fill:#2abcb6}
#sticker-designer .sd-size-fields {display:flex;gap:12px;margin-top:12px}
#sticker-designer .sd-size-fields label {width:50%;font-size:13px;color:#52525b}
#sticker-designer .sd-size-fields label>span {display:flex;align-items:center;border:1px solid #a1a1aa;border-radius:var(--sd-field-radius);padding-right:var(--sd-field-padding-x);margin-top:5px;background:#fff;overflow:hidden}
#sticker-designer .sd-size-fields input {border:0;border-radius:0;box-shadow:none;background:transparent}
#sticker-designer .sd-size-fields input:disabled {color:#71717a;background:#f4f4f5}
#sticker-designer .sd-size-fields small {padding-left:3px;font-size:12px}
#sticker-designer .sd-presets {display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}
#sticker-designer .sd-presets button {min-height:58px;font-size:13px;border:1px solid #a1a1aa;border-radius:5px;background:#fff;padding:7px 3px}
#sticker-designer .sd-presets span {display:block;font-size:12px;font-weight:400;color:#52525b}
#sticker-designer .sd-option-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
#sticker-designer .sd-option-grid button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:108px;padding:9px 6px;border:1px solid #a1a1aa;border-radius:6px;background:#fff;font-size:12px;line-height:1.35}
#sticker-designer .sd-option-grid button[aria-pressed=true] {border:2px solid #2abcb6;background:#f4f4f5;font-weight:600}
#sticker-designer .sd-option-grid img {width:72px;height:56px;object-fit:contain}
#sticker-designer .sd-product-choices {grid-template-columns:repeat(3,minmax(0,1fr))}
#sticker-designer .sd-corner-options img {width:48px;height:48px}
#sticker-designer .sd-peel-options {grid-template-columns:repeat(3,minmax(0,1fr))}
#sticker-designer .sd-peel-field {display:block;margin-top:16px;margin-bottom:5px;font-size:13px;font-weight:600}
#sticker-designer:is(.sd-peel-mode,.sd-text-mode,.sd-shape-mode,.sd-image-mode) .sd-stage svg {touch-action:none}
#sticker-designer .sd-vector-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
#sticker-designer #sd-trace-dialog {width:min(1000px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90svh;overflow:auto;padding:22px;box-sizing:border-box}
#sticker-designer #sd-trace-dialog>.sd-helper {margin-bottom:18px}
#sticker-designer #sd-trace-dialog .sd-trace-status {margin:0 0 18px;padding:10px 14px;border:1px solid transparent;line-height:1.5}
#sticker-designer #sd-trace-dialog .sd-trace-status[data-state=error] {color:#991b1b;background:#fef2f2;border-color:#fca5a5;border-left-width:4px;border-radius:8px;font-weight:600}
#sticker-designer .sd-trace-layout {display:grid;grid-template-columns:210px 1fr;gap:24px}
#sticker-designer .sd-trace-fields {display:grid;gap:14px}
#sticker-designer .sd-trace-fields label {display:grid;gap:6px}
#sticker-designer .sd-trace-fields .sd-check {display:flex}
#sticker-designer .sd-trace-comparison {display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
#sticker-designer .sd-trace-comparison figure {margin:0;min-width:0}
#sticker-designer .sd-trace-comparison img,#sticker-designer [data-trace-preview] {width:100%;height:260px;object-fit:contain;background:repeating-conic-gradient(#e5e7eb 0% 25%,#fff 0% 50%) 0/16px 16px}
#sticker-designer [data-trace-preview] svg {width:100%;height:100%}
#sticker-designer .sd-trace-dialog .sd-dialog-actions {display:flex;justify-content:flex-end;gap:12px;margin-top:16px}
@media(max-width:640px) {#sticker-designer .sd-trace-layout {grid-template-columns:1fr}#sticker-designer .sd-trace-comparison img,#sticker-designer [data-trace-preview] {height:170px}}
#sticker-designer #sd-text-add {margin-top:14px;min-height:44px}
#sticker-designer #sd-text-content {white-space:pre;overflow-wrap:normal;resize:vertical;min-height:112px}
#sticker-designer #sd-text-line-help {margin:5px 0 0;font-size:12px}
#sticker-designer .sd-text-align-tools {display:flex;align-items:center;gap:4px;margin-top:8px}
#sticker-designer .sd-text-align-tools>span {margin-right:auto;font-size:12px}
#sticker-designer .sd-text-align-tools .sd-icon-button[aria-pressed=true] {border-color:#168b85;background:#e5f6f4;color:#087f7a}
#sticker-designer .sd-text-actions {display:flex;justify-content:space-between;gap:14px}
#sticker-designer .sd-text-actions button {min-height:44px}
#sticker-designer .sd-shapes.sd-object-shapes {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#sticker-designer #sd-shape-picker summary {cursor:pointer;min-height:44px;padding:14px 0 6px;font-size:14px;font-weight:600}
#sticker-designer #sd-panel-options>details>summary {padding:12px 0;cursor:pointer}
#sticker-designer .sd-object-shapes button {font-size:12px;min-height:72px}
#sticker-designer select {appearance:auto;background-image:none}
#sticker-designer select:focus-visible {outline:3px solid #2abcb6;outline-offset:3px}
#sticker-designer #sd-selection-bar {display:flex;align-items:center;min-width:0;border-top:1px solid #d4d4d8}
#sticker-designer .sd-selection-bar {display:flex;flex:none;flex-direction:column;align-items:flex-end;justify-content:center;gap:2px;max-width:40%;padding:2px 12px;font-size:12px}
#sticker-designer #sd-selection-count {min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sticker-designer .sd-selection-bar label {display:flex;flex:none;align-items:center;gap:6px;min-height:28px;white-space:nowrap}
#sticker-designer .sd-selection-tools {display:flex;flex:1;min-width:0;align-items:center;gap:4px;height:56px;padding:4px 8px 4px;overflow-x:auto;scrollbar-width:thin}
#sticker-designer .sd-selection-tools>* {flex-shrink:0}
#sticker-designer .sd-selection-tools #sd-open-debug {margin-left:auto}
#sticker-designer #sd-full-resolution {touch-action:none;user-select:none;font-size:12px;font-weight:700}
#sticker-designer #sd-full-resolution[aria-pressed=true] {background:#ccfbf1;color:#115e59}
#sticker-designer .sd-icon-group {display:flex;gap:2px}
#sticker-designer .sd-icon-button {display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:1px solid #d4d4d8;border-radius:5px;background:#fff;color:#27272a}
#sticker-designer .sd-icon-button:not(:disabled):hover {background:#e5f6f4;border-color:#168b85}
#sticker-designer .sd-icon-button svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#sticker-designer .sd-element-fields {min-width:0}
#sticker-designer .sd-element-fields .sd-helper {margin:0 0 8px}
#sticker-designer .sd-selection-list {max-height:180px;overflow-y:auto;margin:10px 0;border:1px solid #d4d4d8;border-radius:5px}
#sticker-designer .sd-selection-item {display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;font-size:14px;overflow-wrap:anywhere}
#sticker-designer #sd-align-target {flex:0 0 104px;width:104px;min-height:32px;margin-left:auto;padding-block:3px;font-size:12px}
#sticker-designer .sd-product-summary {display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:0 12px 6px;font-size:12px;line-height:1.5;color:#52525b;overflow-wrap:anywhere}
#sticker-designer .sd-pricing {display:flex;align-items:center;gap:10px;margin-left:auto;min-height:48px}
#sticker-designer .sd-pricing label {margin:0;font-weight:600}
#sticker-designer #sd-quantity {width:90px;min-width:0;min-height:32px;margin:0;padding:3px 8px}
#sticker-designer .sd-live-price {display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;max-width:280px;height:44px}
#sticker-designer .sd-live-price strong {flex-shrink:0;font-size:20px;line-height:1.2;color:#064e4a;font-variant-numeric:tabular-nums}
#sticker-designer .sd-live-price small {font-size:11px;line-height:1.3;overflow:auto}
@media(max-width:600px){#sticker-designer .sd-pricing{margin-left:0;flex-wrap:wrap}#sticker-designer .sd-live-price{max-width:210px}}
#sticker-designer .sd-embossed-tag {display:inline-block;padding:1px 7px;border:1px solid #7e22ce;border-radius:4px;background:#f3e8ff;color:#581c87;font-weight:800;letter-spacing:.04em;white-space:nowrap}
#sticker-designer .sd-export-options {margin-top:8px}
#sticker-designer .sd-swatches {display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}
#sticker-designer .sd-swatches button {background:var(--swatch);width:44px;height:44px;border-radius:50%;border:1px solid #a1a1aa;position:relative}
#sticker-designer .sd-swatches button[aria-pressed=true]::after {content:'';position:absolute;inset:-5px;border:2px solid #2abcb6;border-radius:50%}
#sticker-designer .sd-preview {display:flex;flex-direction:column;min-height:0;grid-column:2;grid-row:1;border:1px solid #d4d4d8;border-radius:8px;overflow:hidden;background:#fff}
#sticker-designer #sd-open-help {font-size:13px;white-space:nowrap}
@media(max-width:529.98px) {
    #sticker-designer #sd-open-help .sd-help-available {display:none}
}
#sticker-designer .sd-toggle {display:flex;align-items:center;gap:7px;color:#52525b;font-size:12px}
#sticker-designer .sd-preview> :not(.sd-stage) {flex-shrink:0}
#sticker-designer .sd-editing-guidance-notice {padding:10px 14px;background:#effafa;border-bottom:1px solid #b8dddd;font-size:13px;max-height:150px;overflow:auto}
#sticker-designer .sd-editing-guidance-notice p {white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 0}
#sticker-designer .sd-stage {flex:1;min-height:180px;position:relative;display:flex;flex-direction:column;background-color:#e6e6e5;background-image:radial-gradient(#a1a1aa .7px,transparent .7px);background-size:18px 18px;overflow:hidden;touch-action:pan-y}
#sticker-designer .sd-artboard-dimensions {flex:none;padding:12px 16px 8px;font-size:16px;font-weight:600;line-height:1.45;font-variant-numeric:tabular-nums;text-align:left}
#sticker-designer .sd-stage-artwork {flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
#sticker-designer.sd-glow-mode .sd-artboard-dimensions {color:#e8ffe4}
#sticker-designer .sd-glow-control {display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;font-size:13px;cursor:pointer;border-bottom:1px solid #d4d4d8}
#sticker-designer .sd-glow-control input {width:16px;height:16px}
#sticker-designer.sd-glow-mode .sd-stage {background:var(--sd-glow-scene)}
#sticker-designer.sd-glow-mode .sd-stage svg {filter:none}
#sticker-designer.sd-glow-mode .sd-export-image {background:var(--sd-glow-scene)}
#sticker-designer .sd-clear-controls {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;border-bottom:1px solid #d4d4d8;font-size:13px}
#sticker-designer .sd-clear-controls select {width:auto;max-width:65%;font-size:13px}
#sticker-designer.sd-clear-mode #sd-preview-svg {width:100%;height:100%;filter:none}
#sticker-designer .sd-stage.sd-dragover {box-shadow:inset 0 0 0 4px #2abcb6}
#sticker-designer .sd-stage svg {width:92%;height:92%;overflow:visible;filter:drop-shadow(0 4px 7px #0002)}
#sticker-designer .sd-stage svg.sd-draggable {cursor:grab;touch-action:none}
#sticker-designer .sd-stage svg.sd-draggable:active {cursor:grabbing}
#sticker-designer #sd-preview-svg {touch-action:none}
/* Give touch users a real move target inside selected artwork and kiss cuts. */
@media (any-pointer:coarse) {
    #sticker-designer #selection-controls [data-transform-handle="move"] {pointer-events:all}
}
#sticker-designer .sd-standard-peel-preview {display:block;max-width:100%;height:auto;margin:16px 0}
#sticker-designer #sd-dimension-guides {position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;filter:none;color:#647078}
#sticker-designer #sd-dimension-guides text {font:500 12px Arial,sans-serif;fill:#374151;font-variant-numeric:tabular-nums}
#sticker-designer .sd-dimension-axis {outline:none}
#sticker-designer .sd-dimension-axis [data-dimension-hit] {pointer-events:all;cursor:pointer}
#sticker-designer .sd-dimension-axis:is(:hover,:focus-visible,[aria-pressed="true"]) {color:#0f766e}
#sticker-designer.sd-glow-mode .sd-dimension-axis:is(:hover,:focus-visible,[aria-pressed="true"]) {color:#b5ffbf}
#sticker-designer .sd-dimension-label-background {fill:#e6e6e5;fill-opacity:.95}
#sticker-designer.sd-glow-mode #sd-dimension-guides {color:#b6c5b4}
#sticker-designer.sd-glow-mode #sd-dimension-guides text {fill:#e8ffe4}
#sticker-designer.sd-glow-mode .sd-dimension-label-background {fill:var(--sd-glow-scene)}
#sticker-designer .sd-stage-tools {position:absolute;bottom:12px;right:12px;display:flex;background:#fff;border:1px solid #a1a1aa;border-radius:5px}
#sticker-designer .sd-stage-tools button {min-width:36px;min-height:36px;border:0;background:transparent;font-size:18px}
#sticker-designer #sd-stage-tool-buttons {display:flex}
#sticker-designer #sd-toggle-stage-tools {display:none}
@media(max-width:529.98px) {
    #sticker-designer .sd-stage-tools {right:0;border-radius:5px 0 0 5px}
    #sticker-designer #sd-toggle-stage-tools {display:block;min-width:28px;min-height:44px;padding:0}
    #sticker-designer:not(.sd-stage-tools-open) #sd-stage-tool-buttons {display:none}
    #sticker-designer.sd-stage-tools-open #sd-toggle-stage-tools svg {transform:rotate(180deg)}
}
#sticker-designer #sd-zoom-reset {font-size:13px}
#sticker-designer #sd-zoom-level {align-self:center;min-width:48px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
#sticker-designer .sd-stage-tools button svg {width:18px;height:18px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;filter:none}
#sticker-designer #sd-pan-view[aria-pressed=true] {background:#ccfbf1;color:#115e59}
#sticker-designer .sd-stage-artwork.sd-pan-ready {touch-action:none}
#sticker-designer .sd-stage-artwork.sd-pan-ready #sd-preview-svg {touch-action:none}
#sticker-designer .sd-stage-artwork.sd-pan-ready, #sticker-designer .sd-stage-artwork.sd-pan-ready #sd-preview-svg, #sticker-designer .sd-stage-artwork.sd-pan-ready #sd-preview-svg * {cursor:grab!important}
#sticker-designer .sd-stage-artwork.sd-panning, #sticker-designer .sd-stage-artwork.sd-panning #sd-preview-svg, #sticker-designer .sd-stage-artwork.sd-panning #sd-preview-svg * {cursor:grabbing!important;user-select:none}
#sticker-designer .sd-message-bar {height:44px;min-height:44px;border-top:1px solid #d4d4d8}
#sticker-designer #sd-open-messages {display:flex;align-items:center;gap:10px;width:100%;height:43px;min-width:0;padding:0 16px;border:0;border-radius:0;background:#f4f4f5;color:#52525b;text-align:left;font-size:12px;white-space:nowrap}
#sticker-designer #sd-open-messages[data-severity=warning] {background:#fffbeb;color:#854d0e}
#sticker-designer #sd-open-messages[data-severity=error] {background:#fef2f2;color:#991b1b}
#sticker-designer #sd-open-messages:hover {filter:brightness(.97)}
#sticker-designer #sd-open-messages:focus-visible {outline:2px solid #168b85;outline-offset:-3px}
#sticker-designer #sd-open-messages svg {flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#sticker-designer #sd-message-count {flex:0 1 auto;min-width:0;max-width:75%;overflow:hidden;text-overflow:ellipsis;font-weight:600}
#sticker-designer #sd-message-summary {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
#sticker-designer .sd-message-action {flex:none;margin-left:auto;text-decoration:underline;text-underline-offset:3px}
#sticker-designer .sd-preview-messages {position:fixed;inset:auto;margin:0;padding:0;border:1px solid #d4d4d8;border-radius:8px;background:#fff;color:#27272a;box-shadow:0 6px 24px #0003;overflow:hidden}
#sticker-designer .sd-preview-messages:popover-open {display:flex;flex-direction:column}
#sticker-designer .sd-preview-messages::backdrop {background:transparent}
#sticker-designer .sd-messages-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px 8px 16px;border-bottom:1px solid #e4e4e7;flex:none}
#sticker-designer .sd-messages-heading h2 {font-size:16px;margin:0}
#sticker-designer .sd-messages-heading button {width:36px;height:36px;border:1px solid #d4d4d8;border-radius:5px;background:#f4f4f5;font-size:24px;flex:none}
#sticker-designer .sd-messages-body {padding:12px 16px;overflow-y:auto;overscroll-behavior:contain;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#sticker-designer .sd-messages-body p {margin:0 0 10px;padding:10px 12px;border-radius:5px;background:#f4f4f5}
#sticker-designer .sd-messages-body p[data-severity=warning] {background:#fffbeb;color:#854d0e}
#sticker-designer .sd-messages-body p[data-severity=error] {background:#fef2f2;color:#991b1b}
#sticker-designer .sd-working {position:absolute;left:12px;bottom:14px;background:#fff;border:1px solid #d4d4d8;border-radius:5px;font-size:12px;padding:5px 9px}
#sticker-designer .sd-preview-loading {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:25;display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #d4d4d8;border-radius:10px;background:rgba(255,255,255,.96);color:#171c23;box-shadow:0 3px 16px #0002;font-size:13px;white-space:nowrap;pointer-events:none}
#sticker-designer .sd-preview-loading[hidden] {display:none}
#sticker-designer .sd-preview-loading::before {content:"";width:20px;height:20px;flex:none;border:3px solid #cce6e2;border-top-color:#0f766e;border-radius:50%;animation:sd-preview-spin .8s linear infinite}
@keyframes sd-preview-spin {to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce) {#sticker-designer .sd-preview-loading::before {animation:none}}
#sticker-designer .sd-empty {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:#e6e6e5}
#sticker-designer .sd-empty>span {font-size:50px;color:#2abcb6}
#sticker-designer .sd-empty>strong {font-size:17px}
#sticker-designer .sd-empty>.sd-empty-logo,#sticker-designer #sd-loading-design>.sd-loading-logo {width:360px;max-width:75%;height:auto;max-height:min(30vh,180px);object-fit:contain;flex-shrink:1;min-height:0;pointer-events:none;opacity:.35}
#sticker-designer .sd-button {padding:10px 18px;min-height:44px;display:inline-flex;gap:10px;align-items:center;justify-content:center;margin:0}
#sticker-designer .sd-toolbar :is(button,a.sd-button,summary.sd-button) {padding:6px 10px;min-height:36px}
#sticker-designer .sd-toolbar .sd-units button {padding-inline:8px}
#sticker-designer .sd-artboard-status {position:absolute;left:12px;bottom:12px;z-index:5;max-width:calc(100% - 24px);padding:6px 10px;border-radius:6px;background:rgba(255,255,255,.94);color:#3f3f46;box-shadow:0 1px 5px #0002;font-size:12px;line-height:1.4;pointer-events:none}
#sticker-designer .sd-prototype-note {font-size:12px;color:#71717a;text-align:right;margin-top:10px}
#sticker-designer #sd-message {background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:6px;padding:12px 16px;margin-top:16px}
#sticker-designer .sd-file-link {display:inline-block;margin-top:10px;color:#087f7a;text-decoration:underline;text-underline-offset:3px;font-size:13px;overflow-wrap:anywhere}
#sticker-designer .sd-dialog {width:min(540px,calc(100% - 32px));border:1px solid #a1a1aa;border-radius:8px;padding:26px;max-height:90svh;overflow:auto;color:#27272a;background:#fff;margin:auto}
#sticker-designer .sd-dialog::backdrop {background:#0009}
#sticker-designer .sd-font-trigger {display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left}
#sticker-designer.sd-font-picker-open .sd-controls > :not(.sd-font-dialog) {display:none}
#sticker-designer .sd-font-dialog {position:absolute;inset:0;z-index:9;margin:0;width:100%;height:100%;max-width:none;max-height:none;padding:16px;border:0;border-radius:8px;overflow:hidden}
#sticker-designer .sd-font-actions {display:flex;justify-content:flex-end;gap:8px;padding-top:12px;flex-shrink:0}
#sticker-designer .sd-font-actions button {min-height:44px;padding:8px 14px}
#sticker-designer .sd-font-dialog[open] {display:flex;flex-direction:column}
#sticker-designer .sd-font-dialog .sd-dialog-header {flex-shrink:0;align-items:center;gap:12px}
#sticker-designer .sd-font-search-label {font-size:13px;font-weight:600;margin-bottom:6px}
#sticker-designer #sd-font-search {flex-shrink:0}
#sticker-designer .sd-font-results {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-top:12px;padding:4px}
#sticker-designer .sd-font-choice {display:grid;grid-template-columns:minmax(0,1fr) 22px;grid-template-rows:44px auto;align-items:center;gap:0 10px;min-height:76px;width:100%;border:1px solid #d4d4d8;border-radius:6px;padding:5px 12px 9px;margin-bottom:6px;background:#fff;text-align:left;color:#27272a}
#sticker-designer .sd-font-choice:is(:hover,[aria-pressed=true]) {border-color:#087f7a;background:#effbf9}
#sticker-designer .sd-font-choice.sd-font-choice-organization {border:3px solid #f97316;background:#fff7ed}
#sticker-designer .sd-font-choice.sd-font-choice-organization:is(:hover,[aria-pressed=true]) {border-color:#c2410c;background:#ffedd5}
#sticker-designer .sd-font-choice-organization .sd-font-check {color:#c2410c}
#sticker-designer .sd-font-preview {grid-column:1;grid-row:1;display:block;max-width:100%;width:100%;height:44px;object-fit:contain;object-position:left center}
#sticker-designer .sd-font-name {grid-column:1;grid-row:1;font-size:18px}
#sticker-designer .sd-font-choice small {grid-column:1;grid-row:2;color:#52525b;font-size:12px}
#sticker-designer .sd-font-check {grid-column:2;grid-row:1/3;color:#087f7a;font-size:20px;visibility:hidden}
#sticker-designer .sd-font-choice[aria-pressed=true] .sd-font-check {visibility:visible}
#sticker-designer .sd-dialog-header {display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}
#sticker-designer .sd-dialog-header h2 {font-size:22px}
#sticker-designer .sd-dialog-header button {flex-shrink:0;width:44px;height:44px;border:1px solid #d4d4d8;border-radius:5px;background:#f4f4f5;font-size:24px}
#sticker-designer .sd-dialog>p {color:#52525b;font-size:13px}
#sticker-designer .sd-help-dialog>p {margin:14px 0;font-size:14px;line-height:1.6}
#sticker-designer .sd-help-dialog .sd-dialog-header {gap:12px}
#sticker-designer .sd-help-actions {display:flex;justify-content:flex-end;margin-top:20px}
#sticker-designer .sd-binding-help {width:min(700px,calc(100% - 32px))}
#sticker-designer .sd-binding-help-body {font-size:14px;line-height:1.6;overflow-wrap:anywhere}
#sticker-designer .sd-binding-help-body p {margin:0 0 12px}
#sticker-designer .sd-binding-help-body section {margin-top:24px}
#sticker-designer .sd-binding-help-body h3 {font-size:17px;font-weight:600;margin:0 0 10px}
#sticker-designer .sd-binding-help-body ol,#sticker-designer .sd-binding-help-body ul {padding-left:22px;margin:0;list-style:decimal}
#sticker-designer .sd-binding-help-body ul {list-style:disc}
#sticker-designer .sd-binding-help-body li+li {margin-top:8px}
#sticker-designer .sd-binding-help-body table {width:100%;border-collapse:collapse;table-layout:fixed;margin-top:12px}
#sticker-designer .sd-binding-help-body th,#sticker-designer .sd-binding-help-body td {text-align:left;vertical-align:top;padding:10px;border-bottom:1px solid #d4d4d8}
#sticker-designer .sd-binding-help-body th {background:#f4f4f5;font-weight:600}
#sticker-designer .sd-binding-help-body th:first-child {width:32%}
#sticker-designer .sd-binding-help-body td span {display:block;color:#52525b;margin-top:4px}
#sticker-designer .sd-binding-help-body code {font-size:.92em;background:#f4f4f5;padding:2px 4px;border-radius:4px;white-space:normal}
@media(max-width:480px){#sticker-designer .sd-binding-help {padding:16px}#sticker-designer .sd-binding-help-body th,#sticker-designer .sd-binding-help-body td {padding:8px}}
#sticker-designer .sd-export-links {display:flex;flex-direction:column;gap:9px;margin:20px 0}
#sticker-designer .sd-export-links button {text-align:left;border:1px solid #a1a1aa;border-radius:6px;background:#f4f4f5;padding:12px 16px;position:relative}
#sticker-designer .sd-export-links strong {display:block;font-size:15px}
#sticker-designer .sd-export-links span {display:block;font-size:12px;color:#52525b;padding-right:14px;margin-top:2px}
#sticker-designer .sd-export-links b {position:absolute;right:15px;top:20px;font-size:19px;color:#087f7a}
#sticker-designer .sd-notes-label {display:block;font-size:14px;font-weight:600}
#sticker-designer .sd-confirm-content {font-size:15px;line-height:1.5}
#sticker-designer .sd-confirm-choices {display:grid;gap:18px;margin:20px 0;border:0;padding:0;min-width:0}
#sticker-designer .sd-confirm-choice {border:1px solid #a1a1aa;border-radius:8px;background:#fff;padding:18px}
#sticker-designer .sd-confirm-choice:has(input:checked) {border-color:#087f7a;box-shadow:0 0 0 1px #087f7a}
#sticker-designer .sd-confirm-choice .sd-check {margin:0;font-size:16px}
#sticker-designer .sd-confirm-choice p {margin:12px 0 0}
#sticker-designer .sd-confirm-warning {padding:12px;border-left:4px solid #b45309;background:#fffbeb;color:#78350f}
#sticker-designer .sd-inset-warning {padding:10px;border-left:3px solid #b45309;background:#fffbeb;color:#78350f}
#sticker-designer .sd-confirm-notes {margin-top:26px}
#sticker-designer #sd_confirm textarea {width:100%;min-height:90px;margin-top:8px;resize:vertical}
#sticker-designer .sd-confirm-review {font-weight:600;margin-top:20px}
#sticker-designer #sd-submit-status:not(:empty) {margin-top:12px}
#sd_save_existing[aria-busy="true"] #sd-existing-status:not(:empty):not([role="alert"])::before,
#sd_save_existing #sd-existing-status[aria-busy="true"]:not(:empty):not([role="alert"])::before,
#sd_confirm[aria-busy="true"] #sd-submit-status:not(:empty):not([role="alert"])::before {
    content:"";display:inline-block;width:14px;height:14px;margin-right:8px;
    border:2px solid currentColor;border-right-color:transparent;border-radius:50%;
    vertical-align:-2px;animation:sd-save-spinner .75s linear infinite;
}
@keyframes sd-save-spinner {to {transform:rotate(360deg)}}
/* Save dialogs can live outside the editor root, including admin and asset saves. */
.sd-save-error {margin-top:16px;padding:16px;border:1px solid #991b1b;border-radius:8px;background:#991b1b;color:#fff;overflow-wrap:anywhere}
.sd-save-error strong,.sd-save-error span {display:block}
.sd-save-error strong {margin-bottom:6px;font-size:16px}
.sd-save-error:focus-visible {outline:2px solid #991b1b;outline-offset:3px}
@media(prefers-reduced-motion:reduce) {
    #sd_save_existing #sd-existing-status::before,
    #sd_confirm #sd-submit-status::before {animation:none}
}
@media(max-width:480px) {
    #sticker-designer #sd_confirm .border-t:has(>#sd_confirm_submit) {display:grid;grid-template-columns:1fr;gap:10px}
    #sticker-designer #sd_confirm .border-t>button {width:100%;margin:0}
    #sticker-designer #sd_confirm .border-t>div {display:none}
}
#sticker-designer .sd-notes-label span {font-size:12px;color:#71717a;font-weight:400}
#sticker-designer .sd-dialog textarea {height:82px;margin-top:8px;resize:vertical}
#sticker-designer .sd-export-image {display:block;max-width:160px;max-height:160px;margin:14px auto 0;background:repeating-conic-gradient(#e6e6e5 0% 25%,#fff 0% 50%) 0 0/16px 16px;border:1px solid #d4d4d8;border-radius:5px}
#sticker-designer .sd-preview-messages #sd-material-status {padding:0;margin:0;background:none}
#sticker-designer #sd-retry-texture {margin:0 0 10px}
#sticker-designer .sd-noscript {padding:20px;text-align:center;background:#fef9c3}
@media(max-width:1279px) {
    #sticker-designer #sd-open-help,
    #sticker-designer .sd-file-actions .sd-button {font-size:11px;padding-inline:8px}
}
@media(max-width:1279px) {
    #sticker-designer .sd-studio-title {display:none}
    #sticker-designer .sd-toolbar-actions {display:contents}
    #sticker-designer #sd-open-help {margin-left:auto}
}
@media(max-width:1023px) {
    #sticker-designer .sd-edit-actions {display:flex;align-items:center;gap:8px;margin-left:auto}
    #sticker-designer .sd-units>span {display:none}
    #sticker-designer .sd-main {padding-inline:16px}
    #sticker-designer .sd-workspace {grid-template-columns:280px minmax(0,1fr);gap:12px}
    #sticker-designer .sd-controls {font-size:13px}
    #sticker-designer .sd-panel {padding:12px;height:calc(100% - 59px)}
    #sticker-designer .sd-panel h2 {font-size:16px}
    #sticker-designer .sd-tabs button {min-height:52px;font-size:10px;padding:5px 2px 7px}
    #sticker-designer .sd-tabs button span {font-size:18px}
}
@media(max-width:767px) {
    #sticker-designer .sd-main {padding:12px}
    #sticker-designer .sd-toolbar {flex-wrap:wrap;gap:8px}
    #sticker-designer .sd-units {font-size:12px}
    #sticker-designer .sd-units>span {display:none}
    #sticker-designer .sd-units button {padding:5px 8px;min-height:38px}
    #sticker-designer .sd-edit-actions {display:flex;align-items:stretch;justify-content:flex-end;gap:6px;width:100%;min-width:0}
    #sticker-designer .sd-history {gap:4px;margin-left:0;flex:none;align-items:stretch}
    #sticker-designer .sd-history button {min-width:32px;min-height:36px;height:36px}
    #sticker-designer .sd-toolbar-actions {display:contents}
    #sticker-designer .sd-file-actions {flex:0 1 auto;min-width:0;gap:4px}
    #sticker-designer .sd-file-actions .sd-button {flex:0 1 auto;min-width:0;padding-inline:5px;font-size:11px}
    #sticker-designer .sd-file-actions>.sd-button {height:36px;padding-block:4px}
    #sticker-designer .sd-file-actions #sd-next {white-space:normal;line-height:1.1;min-width:78px}
    #sticker-designer .sd-workspace {display:flex;flex-direction:column;gap:12px;height:max(360px,calc(100svh - var(--sd-workspace-top) - 24px))}
    #sticker-designer .sd-stage {flex:1;height:auto}
    #sticker-designer .sd-artboard-dimensions {padding:10px 12px 6px;font-size:14px}
    #sticker-designer .sd-preview {flex:1;width:100%;height:100%;position:sticky;top:var(--sd-sticky-top);z-index:8;box-shadow:0 4px 8px #0001}
    #sticker-designer .sd-selection-tools {padding-inline:4px}
    #sticker-designer #sd-open-messages {padding-inline:12px;gap:8px}
    #sticker-designer .sd-controls {width:100%;height:auto;overflow:visible}
    #sticker-designer .sd-font-dialog {position:relative;inset:auto;height:min(520px,60svh);min-height:280px;}
    #sticker-designer .sd-tabs {position:sticky;top:calc(var(--sd-preview-height,320px) + var(--sd-sticky-top));z-index:7;border-radius:8px 8px 0 0}
    #sticker-designer .sd-panel {height:auto;overflow:visible;padding:12px}
    #sticker-designer .sd-panel :is(button,input,select,summary) {scroll-margin-top:calc(var(--sd-preview-height,320px) + var(--sd-sticky-top) + 90px);scroll-margin-bottom:120px}
    #sticker-designer .sd-shapes {grid-template-columns:repeat(4,1fr);gap:7px}
    #sticker-designer .sd-shapes button {font-size:12px;padding:10px 4px}
    #sticker-designer .sd-shapes svg {width:27px;height:27px}
    #sticker-designer .sd-swatches {grid-template-columns:repeat(8,1fr);gap:9px}
    #sticker-designer .sd-swatches button {width:28px;height:28px}
    #sticker-designer .sd-prototype-note {text-align:center;font-size:11px;margin-top:6px}
    #sticker-designer .sd-dialog {padding:20px}
}
@media(max-width:767px) and (max-height:760px) {
    #sticker-designer .sd-preview {position:static}
    #sticker-designer .sd-tabs {top:var(--sd-sticky-top)}
    #sticker-designer .sd-panel :is(button,input,select,summary) {scroll-margin-top:calc(var(--sd-sticky-top) + 90px)}
}
@media(max-width:360px) {
    #sticker-designer .sd-main {padding-inline:8px}
}
/* Compact editor actions keep the artboard accessible on phones. */
#sticker-designer .sd-assets-menu {position:relative}
#sticker-designer .sd-assets-menu summary {list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px}
#sticker-designer .sd-assets-menu summary::-webkit-details-marker {display:none}
#sticker-designer .sd-assets-options {position:absolute;right:0;top:100%;z-index:30;min-width:160px;padding:6px;display:grid;gap:4px;background:#fff;border:1px solid #d4d4d8;border-radius:6px;box-shadow:0 4px 12px #0002}
#sticker-designer .sd-assets-options button {width:100%;margin:0;text-align:left;white-space:nowrap}
#sticker-designer #sd-toggle-tools {display:none}
#sticker-designer #sd-toggle-tools svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#sticker-designer .sd-tools-heading {display:none}
#sticker-designer .sd-artboard-heading {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 12px;flex:none}
#sticker-designer:has(.sd-object-properties[data-node-editing],.sd-object-properties[data-cut-editing]) .sd-artboard-heading {background:#fef3c7;color:#92400e}
#sticker-designer:has(.sd-object-properties[data-node-editing],.sd-object-properties[data-cut-editing]) .sd-artboard-heading .sd-artboard-dimensions {color:inherit}
#sticker-designer .sd-artboard-heading .sd-artboard-dimensions {padding:0;min-width:0;flex-shrink:1}
#sticker-designer :is(.sd-cut-line-status,.sd-node-edit-status) {flex:none;padding:3px 8px;border-radius:4px;background:#b91c1c;color:#fff;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap}
#sticker-designer .sd-cut-line-status[data-mode="manual"] {background:#1d4ed8}
#sticker-designer .sd-node-edit-status {display:none;background:#92400e}
#sticker-designer:has(.sd-object-properties[data-node-editing],.sd-object-properties[data-cut-editing]) .sd-node-edit-status {display:inline-block}
#sticker-designer #sd-expand-artboard {flex:none;display:grid;place-items:center;width:22px;height:22px;min-width:0;min-height:0;padding:0;border:0;background:transparent;color:inherit}
#sticker-designer #sd-expand-artboard svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:none}
#sticker-designer #sd-expand-artboard[aria-pressed=false] .sd-collapse-icon,
#sticker-designer #sd-expand-artboard[aria-pressed=true] .sd-expand-icon {display:none}
@media(max-width:767px) {
    #sticker-designer #sd-toggle-tools {display:inline-flex;align-items:center;flex:none;margin:0 auto 0 0;font-size:11px;height:36px;white-space:nowrap}
    #sticker-designer:not(.sd-tools-open) .sd-controls {display:none}
    #sticker-designer .sd-workspace {position:relative}
    #sticker-designer .sd-controls {position:absolute;top:0;left:0;z-index:40;display:flex;flex-direction:column;width:min(340px,100%);height:min(600px,70dvh);overflow:hidden;box-shadow:4px 4px 16px #0002}
    #sticker-designer .sd-tools-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;flex:none}
    #sticker-designer .sd-tools-heading h2 {font:600 15px Montserrat,Arial,sans-serif}
    #sticker-designer #sd-close-tools {width:36px;height:36px;border:1px solid #d4d4d8;border-radius:5px;background:#f4f4f5;font-size:24px}
    #sticker-designer .sd-controls .sd-tabs {position:static;flex:none}
    #sticker-designer .sd-controls .sd-panel {flex:1;min-height:0;height:auto;overflow-y:auto;overscroll-behavior:contain}
    #sticker-designer .sd-controls .sd-panel :is(button,input,select,summary) {scroll-margin:12px}
    #sticker-designer .sd-controls .sd-font-dialog {height:100%;min-height:0}
    #sticker-designer .sd-assets-menu {flex:none}
}
html.sd-artboard-fullscreen {overflow:hidden}
#sticker-designer.sd-artboard-expanded .sd-preview {position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;border:0;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#sticker-designer.sd-artboard-expanded .sd-stage {flex:1;min-height:0;height:auto}
#sticker-designer.sd-artboard-expanded .sd-selection-tools {max-height:25dvh;overflow:auto;flex-shrink:0}
#sticker-designer.sd-artboard-expanded .sd-product-summary {display:none}
#sticker-designer.sd-artboard-expanded :is(.sd-dialog[open],.sd-item-picker-list) {z-index:1001}
/* Barcode previews use their natural aspect ratio; help stays readable on phones. */
#sticker-designer .sd-barcode-preview{display:block;width:100%;height:auto;max-height:180px;object-fit:contain;margin:14px 0;background:#fff}
#sticker-designer .sd-barcode-preview[hidden]{display:none}
#sticker-designer .sd-barcode-help{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
#sticker-designer .sd-barcode-type-help dt{font-weight:700;margin-top:16px}
#sticker-designer .sd-barcode-type-help dd{margin:4px 0 0;line-height:1.5}
#sticker-designer #sd-barcode-help{margin:8px 0 0}
/* Promotion artwork keeps its aspect ratio and readable settings on phones. */
#sticker-designer .sd-promotion-preview{display:block;width:100%;height:auto;max-height:180px;object-fit:contain;margin:14px 0;background:#fff}
#sticker-designer #sd-promotion-help-button{display:block;margin:18px 0 14px}
#sticker-designer .sd-promotion-help{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90svh;overflow:hidden}
#sticker-designer .sd-promotion-help[open]{display:flex;flex-direction:column}
#sticker-designer .sd-promotion-help .sd-dialog-header{gap:12px;flex-shrink:0;margin-bottom:6px}
#sticker-designer .sd-promotion-help .sd-promotion-help-intro{margin:0 0 18px;line-height:1.5;flex-shrink:0}
#sticker-designer .sd-promotion-help-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding-bottom:16px;border-bottom:1px solid #e4e4e7;flex-shrink:0}
#sticker-designer .sd-promotion-help-tabs button{min-width:0;min-height:42px;padding:8px 6px;border:1px solid #d4d4d8;border-radius:6px;background:#f4f4f5;color:#3f3f46;font:600 12px Montserrat,Arial,sans-serif}
#sticker-designer .sd-promotion-help-tabs button[aria-selected=true]{border-color:#178881;background:#e7f8f6;color:#125e59}
#sticker-designer .sd-promotion-help-tabs button:focus-visible,#sticker-designer .sd-promotion-help-panel:focus-visible{outline:2px solid #178881;outline-offset:2px}
#sticker-designer .sd-promotion-help-body{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:20px 8px 2px 0}
#sticker-designer .sd-promotion-help-section{margin-bottom:18px}
#sticker-designer .sd-promotion-help-section h3{font:700 14px Montserrat,Arial,sans-serif;line-height:1.4;margin:0 0 7px;color:#27272a}
#sticker-designer .sd-promotion-help-section p,#sticker-designer .sd-promotion-help-section li{font-size:14px;line-height:1.65;color:#52525b}
#sticker-designer .sd-promotion-help-section p{margin:0}
#sticker-designer .sd-promotion-help-section ul{list-style:disc;padding-left:20px;margin:0}
#sticker-designer .sd-promotion-help-section li+li{margin-top:7px}
#sticker-designer .sd-promotion-help-source{display:inline-block;margin:0 0 10px;font-size:14px;font-weight:600}
@media(max-width:560px){#sticker-designer .sd-promotion-help-tabs{grid-template-columns:repeat(3,minmax(0,1fr));max-height:144px;overflow-y:auto;overscroll-behavior:contain}}
#sticker-designer .sd-promotion-help a,#sticker-designer .sd-promotion-guidelines a{text-decoration:underline}
#sticker-designer .sd-promotion-warning{padding:12px;background:#fff5da;border-left:3px solid #b87900;color:#5c4200}
#sticker-designer #sd-promotion-position{margin-top:16px}
#sticker-designer #sd-promotion-width{width:90px}
#sticker-designer #sd-bubble-new,#sticker-designer #sd-calendar-new,#sticker-designer #sd-barcode-new,#sticker-designer #sd-promotion-new{display:block;width:100%;margin:12px 0 16px}
#sticker-designer #sd-calendar-editor .sd-color-field{gap:12px}
#sticker-designer .sd-calendar-error{margin:6px 0 12px;color:#a12622;font-size:13px}
#sticker-designer #sd-calendar-editor [aria-invalid="true"]{border-color:#a12622;outline:1px solid #a12622}
#sticker-designer .sd-extra-actions{display:flex;gap:10px;margin:12px 0}
#sticker-designer .sd-extra-actions[hidden]{display:none}
#sticker-designer .sd-extra-actions>.sd-button{flex:1;min-width:0;width:auto;margin:0;padding-inline:12px}
#sticker-designer #sd-promotion-editor .sd-label{display:block;margin:14px 0 6px;font-size:13px;font-weight:600}
#sticker-designer .sd-promotion-title-fields{margin-top:12px}
#sticker-designer .sd-promotion-qr-fields{margin:18px 0;padding:14px;border:1px solid #e4e4e7;border-radius:6px}
#sticker-designer .sd-promotion-qr-target{overflow-wrap:anywhere}
#sticker-designer #sd-clipart-new{display:block;width:100%;margin:12px 0 16px}
#sticker-designer #sd-clipart-editor .sd-label{display:block;margin:14px 0 6px;font-size:13px;font-weight:600}
#sticker-designer #sd-clipart-choose{margin-bottom:12px}
#sticker-designer #sd-clipart-position{margin-top:18px}
#sticker-designer #sd-clipart-width{width:90px}
#sticker-designer .sd-clipart-preview{display:block;width:100%;height:140px;object-fit:contain;margin:14px 0 8px;background:#f4f4f5;border-radius:6px}
#sticker-designer .sd-clipart-preview[hidden]{display:none}
#sticker-designer .sd-clipart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding:3px}
#sticker-designer .sd-clipart-grid button{display:flex;flex-direction:column;align-items:center;min-width:0;padding:6px;border:1px solid #d4d4d8;border-radius:6px;background:#f4f4f5;color:#27272a;gap:6px}
#sticker-designer .sd-clipart-grid button[aria-pressed=true]{border-color:#178881;background:#e7f8f6;box-shadow:0 0 0 1px #178881}
#sticker-designer .sd-clipart-grid button:focus-visible{outline:2px solid #178881;outline-offset:1px}
#sticker-designer .sd-clipart-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
#sticker-designer .sd-clipart-grid span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:600 11px/1.35 Montserrat,Arial,sans-serif;min-height:30px;overflow-wrap:anywhere}
#sticker-designer #sd-emoji-new{display:block;width:100%;margin:12px 0 16px}
#sticker-designer #sd-emoji-editor .sd-label{display:block;margin:14px 0 6px;font-size:13px;font-weight:600}
#sticker-designer #sd-emoji-choose{margin-bottom:12px}
#sticker-designer #sd-emoji-position{margin-top:18px}
#sticker-designer #sd-emoji-width{width:90px}
#sticker-designer .sd-emoji-preview{display:block;width:100%;height:140px;object-fit:contain;margin:14px 0 8px;background:#f4f4f5;border-radius:6px}
#sticker-designer .sd-emoji-preview[hidden]{display:none}
/* Reserve one row even with no selection; changing object types must not resize the artboard. */
#sticker-designer .sd-object-properties{display:flex;align-items:center;gap:20px;height:48px;margin:0;padding:0 12px 2px;min-width:0;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
#sticker-designer .sd-object-properties>*{flex-shrink:0}
#sticker-designer #sd-object-transform{display:flex;align-items:center;gap:14px;font-size:12px}
#sticker-designer #sd-object-transform[hidden]{display:none}
#sticker-designer .sd-object-measurements,#sticker-designer .sd-object-cuts{display:flex;align-items:center;gap:6px}
#sticker-designer .sd-object-measurements label,#sticker-designer .sd-object-cuts label{display:flex;align-items:center;gap:4px;margin:0;white-space:nowrap}
#sticker-designer .sd-object-cuts label[hidden]{display:none}
#sticker-designer .sd-object-measurements[hidden],#sticker-designer .sd-object-cuts[hidden]{display:none}
#sticker-designer .sd-node-measurements .sd-icon-button{width:30px;height:32px;font-size:22px}
#sticker-designer .sd-object-measurements input{width:68px;min-width:0}
#sticker-designer .sd-object-measurements label:has([data-object-measure="y"]){margin-right:10px}
#sticker-designer .sd-object-measurements [data-object-proportions]{margin-left:-4px}
#sticker-designer .sd-object-measurements [data-object-proportions],
#sticker-designer .sd-object-measurements [data-object-proportions]:not(:disabled):hover{width:28px;height:32px;padding:3px;border:0;background:transparent;box-shadow:none}
#sticker-designer .sd-object-properties input:is([type=text],[type=number]){min-height:32px;padding:3px 6px}
#sticker-designer #sd-selection-bar[hidden]+.sd-object-properties:not([data-node-editing]):not([data-cut-editing]){display:none}
#sticker-designer .sd-object-name{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;font-size:12px}
#sticker-designer .sd-object-name[hidden]{display:none}
#sticker-designer .sd-object-name>label{flex:none;font-weight:700;margin:0}
#sticker-designer .sd-object-name-field{display:flex;align-items:center;gap:6px;min-width:0;width:230px}
#sticker-designer .sd-object-name-field>.sd-icon-button{flex:none}
#sticker-designer .sd-object-border{display:flex;align-items:center;gap:6px;font-size:12px}
#sticker-designer .sd-object-border[hidden]{display:none}
#sticker-designer .sd-object-border>label{font-weight:700;margin:0 4px 0 0}
#sticker-designer #sd-object-border-percent{width:78px;min-width:0}
#sticker-designer .sd-object-colors{display:flex;align-items:center;gap:12px;min-width:0;max-width:min(360px,100%);font-size:12px}
#sticker-designer .sd-object-colors[hidden]{display:none}
#sticker-designer .sd-object-colors>strong{flex:none}
#sticker-designer .sd-color-swatches{display:flex;gap:7px;overflow-x:auto;min-width:0;padding:3px 2px 6px;scrollbar-width:thin}
#sticker-designer input.sd-object-color{flex:0 0 36px;width:36px;height:36px;min-width:36px;padding:3px;border:1px solid #a1a1aa;border-radius:6px;background:#fff;cursor:pointer}
#sticker-designer input.sd-object-color::-webkit-color-swatch-wrapper{padding:0}
#sticker-designer input.sd-object-color::-webkit-color-swatch{border:0;border-radius:3px}
#sticker-designer input.sd-object-color:focus-visible{outline:2px solid #178881;outline-offset:2px}
#sticker-designer .sd-transparent-icon{display:block;position:relative;width:16px;height:16px;border:1px solid #71717a;border-radius:2px;background:repeating-conic-gradient(#fff 0% 25%,#d4d4d8 0% 50%) 0/8px 8px}
#sticker-designer .sd-transparent-icon:after{content:'';position:absolute;left:6px;top:-2px;width:2px;height:18px;background:#c42b35;transform:rotate(45deg)}
#sticker-designer input.sd-object-color[data-transparent=true]{background:repeating-conic-gradient(#fff 0% 25%,#d4d4d8 0% 50%) 0/12px 12px}
#sticker-designer input.sd-object-color[data-transparent=true]::-webkit-color-swatch{background:transparent!important}
#sticker-designer input.sd-object-color[data-transparent=true]::-moz-color-swatch{background:transparent!important;border:0}
#sticker-designer .sd-color-picker{position:fixed;inset:auto;margin:0;padding:14px;box-sizing:border-box;border:1px solid #d4d4d8;border-radius:10px;background:#fff;color:#27272a;box-shadow:0 8px 28px #0003;overflow:auto;font:13px/1.4 Montserrat,Arial,sans-serif}
#sticker-designer .sd-color-picker:popover-open{display:grid;gap:12px}
#sticker-designer .sd-color-picker::backdrop{background:transparent}
#sticker-designer .sd-color-picker label{display:grid;gap:5px;margin:0;font-weight:600}
#sticker-designer .sd-color-area{position:relative;height:130px;border-radius:5px;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);touch-action:none;cursor:crosshair}
#sticker-designer .sd-color-area>span{position:absolute;width:10px;height:10px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #333;transform:translate(-50%,-50%);pointer-events:none}
#sticker-designer .sd-color-picker input[type=range]{width:100%;margin:3px 0;height:12px;padding:0;appearance:none;border:0;border-radius:6px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);cursor:pointer}
#sticker-designer .sd-color-picker input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#71717a;box-shadow:0 0 0 1px #333}
#sticker-designer .sd-color-picker input[type=range]::-moz-range-thumb{width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#71717a;box-shadow:0 0 0 1px #333}
#sticker-designer .sd-color-hex-row{display:flex;align-items:center;gap:8px}
#sticker-designer [data-color-preview]{flex:0 0 32px;height:32px;border:1px solid #a1a1aa;border-radius:5px}
#sticker-designer .sd-color-picker input[type=text]{min-width:0;width:100%;padding:8px;border:1px solid #a1a1aa;border-radius:6px;font:inherit}
#sticker-designer .sd-color-picker input[aria-invalid=true]{border-color:#b91c1c}
#sticker-designer .sd-color-picker .sd-color-transparent{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:8px;font:inherit;border:1px solid #d4d4d8;border-radius:6px;background:#f4f4f5;color:#27272a;cursor:pointer}
#sticker-designer .sd-color-picker .sd-color-transparent[hidden]{display:none}
#sticker-designer .sd-color-picker-actions{display:flex;gap:8px}
#sticker-designer .sd-color-picker-actions button{flex:1;padding:8px;font:inherit;border-radius:6px;cursor:pointer}
#sticker-designer .sd-color-picker :is(button,input,.sd-color-area):focus-visible{outline:2px solid #178881;outline-offset:3px}
#sticker-designer .sd-emoji-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding:3px}
#sticker-designer .sd-emoji-grid button{display:flex;flex-direction:column;align-items:center;min-width:0;padding:6px;border:1px solid #d4d4d8;border-radius:6px;background:#f4f4f5;color:#27272a;gap:6px}
#sticker-designer .sd-emoji-grid button[aria-pressed=true]{border-color:#178881;background:#e7f8f6;box-shadow:0 0 0 1px #178881}
#sticker-designer .sd-emoji-grid button:focus-visible{outline:2px solid #178881;outline-offset:1px}
#sticker-designer .sd-emoji-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
#sticker-designer .sd-emoji-grid span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:600 11px/1.35 Montserrat,Arial,sans-serif;min-height:30px;overflow-wrap:anywhere}
#sticker-designer :is(#sd-white-ink-admin,#sd-spot-uv-admin){margin:20px 0;padding:16px;border:1px solid #d4d4d8;border-radius:8px}
#sticker-designer .sd-production-details>summary{cursor:pointer;font-family:Montserrat,Arial,sans-serif;font-size:13px;font-weight:600}
#sticker-designer .sd-production-details>summary:focus-visible{outline:2px solid #178881;outline-offset:4px}
#sticker-designer .sd-spot-uv-shimmer-sweep{transform-box:fill-box;transform-origin:center;animation:sd-spot-uv-shimmer 6s ease-in-out infinite}
@keyframes sd-spot-uv-shimmer{0%{transform:translateX(-115%)}84%,100%{transform:translateX(115%)}}
@media(prefers-reduced-motion:reduce){#sticker-designer .sd-spot-uv-shimmer-sweep{animation:none;opacity:.35}#sticker-designer .sd-spot-uv-shimmer-sweep ~ .sd-spot-uv-shimmer-sweep{display:none}}
#sticker-designer :is(#sd-white-ink-admin,#sd-spot-uv-admin) label:not(.sd-check){display:block;margin:14px 0 6px}
#sticker-designer :is(#sd-white-ink-admin,#sd-spot-uv-admin,#sd-cut-admin) fieldset{margin:16px 0;padding:12px;border:1px solid #d4d4d8;border-radius:8px;min-width:0}
#sticker-designer .sd-ink-presets{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 14px}
#sticker-designer .sd-ink-presets button{flex:1;padding:8px 5px;min-width:0;white-space:nowrap}
#sticker-designer #sd-cut-admin{margin:0 0 20px;padding:14px;border:1px solid #d4d4d8;border-radius:8px}
#sticker-designer #sd-cut-admin label{display:block;margin:14px 0 6px}
#sticker-designer .sd-cut-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#sticker-designer .sd-cut-buttons>*{flex:1 1 105px;min-width:0}
#sticker-designer .sd-cut-buttons .sd-button{padding:8px 10px;font-size:13px;line-height:1.35}
#sticker-designer #sd-cut-admin .sd-cut-buttons label{margin:0}
#sticker-designer #sd-ink-upload{width:100%;margin-top:12px}
#sticker-designer .sd-template-bound-control{display:contents;border:0;padding:0;margin:0;min-width:0}
#sticker-designer .sd-template-bound-control[disabled] :is(input,select,textarea,button){cursor:not-allowed;opacity:.65}
#sticker-designer .sd-template-bound-note{display:block;margin:5px 0 12px;color:#426966;font:500 11px/1.45 Montserrat,Arial,sans-serif;overflow-wrap:anywhere}
#sticker-designer .sd-template-bound-selection::after{content:' · Variable Controlled';color:#426966;font-weight:600}
#sticker-designer .sd-renderer-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
#sticker-designer .sd-renderer-control select{width:auto;max-width:210px;margin:0;padding-top:5px;padding-bottom:5px}
#sticker-designer #sd-renderer-status{color:var(--sd-ink,#426966);min-width:42px}
#sticker-designer .sd-dialog.sd-appearance-dialog {position:fixed;inset:5rem 1rem auto auto;margin:0;padding:1rem;width:min(360px,calc(100vw - 2rem));max-height:calc(100dvh - 6rem);overflow:auto;z-index:60;box-shadow:0 8px 30px #0003;}
.sd-appearance-fields {display:grid;gap:1rem;padding:1rem;}
.sd-appearance-fields fieldset {display:grid;gap:.65rem;border:1px solid #d5dfde;border-radius:.5rem;padding:.75rem;}
.sd-appearance-fields legend {font-weight:700;padding:0 .3rem;}
.sd-effect-section {border:1px solid #d5dfde;border-radius:.5rem;}
.sd-effect-section > summary {font-weight:700;padding:.75rem;cursor:pointer;}
.sd-effect-body {display:grid;gap:.65rem;padding:0 .75rem .75rem;}
.sd-appearance-field {display:flex;align-items:center;justify-content:space-between;gap:1rem;}
#sticker-designer .sd-appearance-field input:not([type=checkbox]),#sticker-designer .sd-appearance-field select {width:8rem;flex-shrink:0;border:1px solid #baccca;border-radius:.375rem;padding:.45rem .6rem;}
.sd-appearance-field input[type=color] {height:2.25rem;}
.sd-appearance-fields p,.sd-appearance-status {font-size:.875rem;line-height:1.45;}
.sd-appearance-status {padding:0 1rem 1rem;color:#9f2424;}

#sticker-designer #sd-bubble-editor .sd-label {display:grid;gap:6px}
#sticker-designer #sd-bubble-editor textarea {width:100%;box-sizing:border-box}
#sticker-designer .sd-compound-badge {display:inline-block;flex:none;padding:2px 6px;border-radius:4px;background:#e8eef9;color:#29466f;font-size:11px;font-weight:600;white-space:nowrap}
#sticker-designer .sd-object-compound {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#sticker-designer .sd-object-compound[hidden] {display:none}
#sticker-designer .sd-object-compound .sd-button {padding:5px 9px;font-size:12px}
