
/* Reference geometry stays shared; colors follow the page theme (user correction 2026-11-03). */
body{--text-card-soft:#f6f1e7;--text-card-edge:#bcb4a4;--text-card-hover:#eee7da;--text-item-hover:#faf6ee}
body[data-text-theme=trophy]{--text-card-soft:#F6ECD2;--text-card-edge:#B99B64;--text-card-hover:#EFE0B8;--text-item-hover:#FBF3E2}
body[data-text-theme=frame]{--text-card-soft:#F2DCE4;--text-card-edge:#BD8C9F;--text-card-hover:#EAD2DC;--text-item-hover:#FAF0F3}
body[data-text-theme=giftbox]{--text-card-soft:#F5DFD6;--text-card-edge:#BC9085;--text-card-hover:#EFD1C6;--text-item-hover:#FCF0EA}
body[data-text-theme=bunting]{--text-card-soft:#DEECE6;--text-card-edge:#86A9A1;--text-card-hover:#D0E2DA;--text-item-hover:#EEF6F1}
body[data-text-theme=plate]{--text-card-soft:#E5EAD8;--text-card-edge:#98A582;--text-card-hover:#DFE6CE;--text-item-hover:#F0F2E7}
body[data-text-theme=ornament]{--text-card-soft:#E0EAF4;--text-card-edge:#8EA9C1;--text-card-hover:#D2E1EF;--text-item-hover:#EFF5FA}
body[data-text-theme=candle]{--text-card-soft:#F8EDC8;--text-card-edge:#B99842;--text-card-hover:#F0E1AF;--text-item-hover:#FCF6E4}
html body :is(#add-text,#plate-add-text,#workshop-add-text,#frame-add-text).christmas-text-add{box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;min-height:88px;margin:15px 0;padding:14px;border:1px dashed var(--text-card-edge);border-radius:16px;background:var(--text-card-soft);color:#173f73;font:400 15px 'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif;cursor:pointer;text-align:center;box-shadow:none;transform:none;letter-spacing:normal}
html body .christmas-text-add .zb-ui-symbol{width:28px!important;height:28px!important;flex:0 0 28px!important}
html body :is(#add-text,#plate-add-text,#workshop-add-text,#frame-add-text).christmas-text-add:hover:not(:disabled){background:var(--text-card-hover);border-color:var(--za-selection-ink,var(--text-card-edge));color:#173f73;transform:none}
html body .christmas-text-items{display:flex;flex-direction:column;gap:9px;margin:15px 0;min-width:0}
html body .christmas-text-items .christmas-text-item{box-sizing:border-box;display:block;width:100%;min-width:0;min-height:52px;margin:0;padding:12px 18px;border:1px solid #c8c9bd;border-radius:13px;background:#fffcf3;color:#173f73;font:400 15px 'Yuanti SC',STYuanti,'Avenir Next','PingFang SC',sans-serif;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:none;transform:none}
html body .christmas-text-items .christmas-text-item:is([aria-pressed=true],.selected){background:var(--text-card-soft);border-color:var(--text-card-edge);box-shadow:none;color:#173f73}
html body .christmas-text-items .christmas-text-item:hover:not(:disabled):not([aria-pressed=true]):not(.selected){border-color:var(--text-card-edge);background:var(--text-item-hover);color:#173f73}
html body :is(.christmas-text-add,.christmas-text-item):focus-visible{outline:2px solid var(--za-selection-ink,#244367);outline-offset:3px}
html body :is(.christmas-text-add,.christmas-text-item):disabled{opacity:.45;cursor:not-allowed}
html body .christmas-text-add[hidden],html body .christmas-text-items[hidden]{display:none}
#frame-text-workspace{position:absolute;inset:76px 24px 90px;display:flex;justify-content:center;align-items:center}
#frame-text-workspace[hidden]{display:none}
#frame-text-canvas{width:100%;height:100%;touch-action:none;overflow:visible}
#frame-text-canvas [data-text-key]{cursor:move}
#frame-text-canvas [data-transform=rotate]{cursor:grab}
.frame-text-editing #viewport,.frame-text-editing .view-switch{visibility:hidden}
@media(max-width:760px){#frame-text-workspace{inset:60px 12px 70px}}
