.sticker-library{display:grid;gap:8px}
.sticker-card[data-ui]{height:auto;min-height:82px;display:flex;flex-direction:column;gap:8px;padding:12px;width:100%;font-weight:500;background:var(--ui-color-surface-raised);border-color:var(--ui-color-border)}
.sticker-card img{width:100%;height:48px;object-fit:contain}
.sticker-card span{font-size:12px}
.sticker-layer-list{display:grid;gap:4px}
.sticker-row{display:flex;align-items:center;border:1px solid transparent;border-radius:var(--ui-radius-control);min-width:0;padding:4px;gap:4px}
.sticker-row.is-selected{background:var(--ui-color-accent-soft);border-color:var(--ui-color-accent-border)}
.sticker-row button[data-ui]{height:28px;min-height:28px;font-size:10px;padding:0 4px;background:transparent;border-color:transparent;flex-shrink:0}
.sticker-row .sticker-pick[data-ui]{display:flex;flex:1;min-width:0;justify-content:flex-start;text-align:left;white-space:normal;gap:6px;font-size:11px}
.sticker-inspector .sticker-row button[data-ui]{width:auto;min-width:0;max-width:none;flex:0 0 auto;margin:0;padding:0 4px}
.sticker-inspector .sticker-row .sticker-pick[data-ui]{flex:1 1 0;overflow:hidden;white-space:nowrap;justify-content:flex-start;text-overflow:ellipsis}
.sticker-pick img{flex-shrink:0}
.sticker-pick img{width:30px;height:30px;object-fit:contain}
.sticker-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.sticker-fields label{display:grid;gap:8px;font-size:11px;color:var(--ui-color-text-secondary)}
.sticker-fields input{width:100%;min-width:0;height:36px;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-control);background:var(--ui-color-surface-raised);color:var(--ui-color-text);padding:0 8px;font:inherit}
.sticker-fields input:focus-visible{outline:2px solid var(--ui-color-focus-ring);border-color:var(--ui-color-action-primary)}
.sticker-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.sticker-note{font-size:11px;line-height:1.8;color:var(--ui-color-text-muted)}
.sticker-inspector h3{font-size:12px;font-weight:650;margin:4px 0 16px}.sticker-inspector h3:not(:first-child){border-top:1px solid var(--ui-color-border);padding-top:20px;margin-top:20px}
.visual-sticker{position:absolute;cursor:move;touch-action:none;user-select:none}
.visual-sticker>img{width:100%;height:100%;display:block;pointer-events:none}
.sticker-selection{position:absolute;inset:0;pointer-events:none;display:none;outline:1px solid var(--ui-color-action-primary)}
.visual-sticker:hover .sticker-selection,.visual-sticker.is-selected .sticker-selection{display:block}
.sticker-resize{position:absolute;width:10px;height:10px;right:-5px;bottom:-5px;background:var(--ui-color-surface-raised);border:1px solid var(--ui-color-action-primary);pointer-events:auto;cursor:nwse-resize}
.visual-sticker.is-locked{cursor:default}.visual-sticker.is-locked .sticker-resize{display:none}
.clean-preview .sticker-selection,.exporting .sticker-selection{display:none!important}
.clean-preview .visual-sticker{pointer-events:none}
.sticker-dialog{width:min(480px,90vw);max-height:85vh;overflow:auto;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-dialog);padding:20px;background:var(--ui-color-surface);color:var(--ui-color-text);font-family:var(--ui-font-family)}
.sticker-dialog::backdrop{background:var(--ui-color-overlay)}
.sticker-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sticker-dialog h2{font-size:17px;margin:0}
.sticker-dialog .sticker-library{grid-template-columns:1fr 1fr}
#comboStickerPanel{overflow:auto;padding:16px;min-height:0;height:100%;background:var(--ui-color-surface)}
#comboStickerPanel>button{margin-bottom:20px;width:100%}
.editor-panel.editing-sticker>:not(.editor-panel-head):not(#comboStickerPanel){display:none!important}

.sticker-snap-settings{position:fixed;inset:110px 12px auto auto;margin:0;width:min(320px,calc(100vw - 24px));max-height:calc(100vh - 130px);overflow:auto;padding:16px;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-panel);background:var(--ui-color-surface);color:var(--ui-color-text);font-family:var(--ui-font-family);box-shadow:0 8px 28px #0002;z-index:20000}
.sticker-snap-settings header{display:flex;justify-content:space-between;align-items:center;gap:8px}.sticker-snap-settings h3{font-size:14px;margin:0}.sticker-snap-settings h4{font-size:12px;margin:20px 0 10px}
.sticker-snap-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;gap:6px;margin-bottom:8px}.sticker-snap-row input,.sticker-snap-row select{min-width:0;width:100%;height:32px;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-control);padding:0 6px;background:var(--ui-color-surface-raised);color:var(--ui-color-text);font:inherit;font-size:11px}
.sticker-snap-settings button[data-ui]{height:32px;min-height:32px;font-size:11px;padding:0 8px}.sticker-snap-guide.is-editable{touch-action:none}.sticker-snap-guide.is-editable::after{content:"";position:absolute;inset:-6px}
.ie-canvas-bar #canvas-info{margin-right:auto}

.sticker-snap-settings header h3{white-space:nowrap;flex:1}.sticker-snap-settings header button[data-ui]{width:auto;flex:0 0 auto}.preview-actions #stickerSnapSettings{width:auto;min-width:0;flex:0 0 auto}
