:root{color-scheme:light}body{margin:0;background:#fbf6ea}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,input,textarea,select{border:1px solid #c8c9bd;border-radius:8px}button{background:#fffcf3;padding:9px 12px;min-height:44px}input:not([type=range]),textarea,select{width:100%;padding:11px 12px;background:#fffdf6;font-size:14px;line-height:1.5}textarea{resize:vertical}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #bc8b25;outline-offset:2px}[hidden]{display:none!important}
.orientation-controls{margin-top:18px;padding-top:18px;border-top:1px solid #ded8c9}.orientation-controls h3{font-size:14px;margin:0}.orientation-controls .hint{margin:8px 0 12px}.turn-actions{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:6px}.turn-actions button{font-size:12px;padding:9px 4px;white-space:nowrap}.turn-actions .turn-flip{background:#f6e4af;border-color:#c9a64e;font-weight:600}.orientation-controls .field{margin:17px 0 0}
html body .trophy-editor{--zl-paper:#fbf6ea;--zl-ink:#173f73;--zl-accent:#f6e4af;--zl-border:#ded8c9;--theme:#e8b94b;grid-template-columns:76px 302px minmax(0,1fr)}
html body .trophy-editor .zl-header{background:#fbf6ea}.trophy-editor .zl-commands{margin-left:auto}.trophy-editor .zl-back{min-width:44px}.trophy-editor .ze-save-status{display:none!important}html body .trophy-editor.ze-standard-header{grid-template-rows:76px 0 minmax(0,1fr)}.trophy-editor .zl-panel{padding:10px 20px 24px}.trophy-editor .zl-inspector-head{padding:19px 20px 10px}.trophy-editor .zl-panel-title{font-size:24px!important}.trophy-editor .zl-tool[aria-selected=true]{border-color:#c9a64e!important}.trophy-editor .zl-tool:hover{background:#f6ecd2!important}html body .trophy-editor .zl-header .ze-primary-button{background:#173f73!important}
.base-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:3px 0 27px}.base-options button{padding:0 0 9px;overflow:hidden;background:#fffaf0;border:1px solid #ded8c9;display:flex;align-items:center;flex-direction:column;min-height:112px;font-size:14px}.base-options button[aria-pressed=true]{border:2px solid #b89543;background:#f7e8bc}.base-options img{width:100%;height:82px;object-fit:contain}.field{margin:23px 0}.field label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px;font-weight:500}.field output{white-space:nowrap;font-size:12px;color:#5d6d7a;font-variant-numeric:tabular-nums}.field input[type=range]{width:100%;margin:14px 0 0;accent-color:#ba9441;height:20px;cursor:pointer}.text-label{display:block;margin:19px 0 9px;font-size:14px;font-weight:600}.text-label:first-child{margin-top:3px}.quiet-note{margin-top:30px;border-top:1px dashed #d7ccb0;padding-top:22px}.quiet-note strong{font-family:ZaobaLayout,sans-serif;font-size:20px;font-weight:400}.quiet-note p{color:#6c746e;margin-top:6px}.hint{color:#68746e!important;font-size:12px!important;line-height:1.7!important}.eyebrow{font-size:11px;letter-spacing:.08em;color:#8c794d}.primary{background:#e8b94b;border:1px solid #c5a048;color:#173f73;font-weight:600}.full{width:100%;margin-top:10px}.text-button{border:0;background:transparent;padding:8px 0;text-decoration:underline;text-underline-offset:4px;font-size:12px;min-height:36px}.model-source-heading{display:flex;justify-content:space-between;align-items:center}.prompt-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.prompt-chips button{font-size:11px;min-height:34px;padding:5px 9px;border-color:#ddd0ac;background:#f6ecd3}.divider{height:1px;background:#ded8c9;margin-top:23px}details{margin-top:26px;border-top:1px solid #ded8c9;padding-top:15px}summary{cursor:pointer;font-size:13px;font-weight:600;min-height:32px;line-height:30px}.connection-card{display:flex;gap:12px;padding:14px;background:#f5e6b9;border-radius:10px;margin-bottom:14px}.connection-card strong{font-size:14px}.connection-card p{font-size:12px;margin:5px 0 0}
.trophy-editor .zl-stage{background:#fbf6e9;display:flex;flex-direction:column;padding:27px 34px 15px;isolation:isolate}.stage-header{display:flex;justify-content:space-between;align-items:center;pointer-events:none;z-index:1}.stage-header h2{font-family:ZaobaLayout,sans-serif;font-size:30px;font-weight:400;margin:7px 0 0}.view-label{font-size:12px;color:#6a736d;border:1px solid #d8d1c0;border-radius:20px;padding:7px 13px}#viewport{position:absolute;inset:135px 0 86px;z-index:0}#viewport canvas{width:100%;height:100%;display:block}.view-switch{position:absolute;top:108px;left:50%;transform:translateX(-50%);display:flex;background:#fffaf0e8;border:1px solid #d8cfb7;padding:4px;border-radius:30px;z-index:2;white-space:nowrap}.view-switch button{border:0;background:transparent;border-radius:23px;min-height:33px;padding:7px 15px;font-size:12px}.view-switch button[aria-pressed=true]{background:#f0d795}.stage-footer{margin-top:auto;display:flex;gap:16px;align-items:center;z-index:1;min-height:44px}.stage-footer p{font-size:11px;color:#6c756e}.history{display:flex;gap:6px}.history button{display:flex;gap:4px;align-items:center;border:1px solid #dbd3be;border-radius:9px;background:#fffaf1;padding:6px 8px;font-size:12px}.history .zb-ui-symbol{width:20px!important;height:20px!important;flex-basis:20px!important}.orbit-help{margin-left:auto}.model-caption{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #ded8c9;padding-top:11px;margin-top:8px;z-index:1;font-size:10px;color:#788076;min-height:27px}#structure-status{color:#52754e}.model-caption [data-error=true]{color:#a34237!important}#loading{position:absolute;z-index:4;left:50%;top:47%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:10px;background:#fffaf1ee;border:1px solid #ddcfac;border-radius:13px;padding:12px 18px;box-shadow:0 8px 30px #473a1810;font-size:13px;max-width:85%}#loading img{object-fit:contain}#preview-error{position:absolute;bottom:110px;left:26px;right:26px;z-index:3;background:#fff3de;border:1px solid #d1ae6a;padding:12px 16px;font-size:12px;line-height:1.6;border-radius:9px;color:#815723}#generation-status{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.error{color:#a14338!important}
dialog{border:1px solid #d4c6a5;background:#fbf6ea;color:#173f73;max-width:440px;width:calc(100% - 32px);border-radius:16px;padding:24px;font-family:'Yuanti SC','PingFang SC',sans-serif;box-sizing:border-box}dialog::backdrop{background:#24324570;backdrop-filter:blur(3px)}dialog p{font-size:14px;line-height:1.7}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.dialog-heading h2{font-family:ZaobaLayout,sans-serif;font-weight:400;font-size:26px;margin:0}.dialog-heading button{border:0;background:transparent;padding:8px}.notice{padding:12px;background:#f3e6c1;border-radius:9px;font-size:12px}dialog input{box-sizing:border-box;margin:10px 0}#api-status,#download-status{font-size:12px}html body .trophy-editor.zl-panel-collapsed{grid-template-columns:76px 0 minmax(0,1fr)}
@media(min-width:761px) and (max-width:1100px){html body .trophy-editor{grid-template-columns:68px 265px minmax(0,1fr)}.trophy-editor .zl-stage{padding:22px 20px 12px}.stage-header h2{font-size:25px}.stage-footer{gap:8px}.orbit-help{display:none}.model-caption{flex-wrap:wrap}}
@media(max-width:760px){html body .trophy-editor.ze-standard-header{grid-template-columns:minmax(0,1fr);grid-template-rows:60px 0 minmax(210px,1fr) minmax(150px,34dvh) 68px}html body .trophy-editor.ze-standard-header .zl-header{display:flex;gap:4px;padding:5px 7px}html body .trophy-editor .zl-header .ze-header-button{padding:7px!important;min-width:40px;height:42px}html body .trophy-editor .zl-header .ze-header-button .zb-ui-symbol{display:none!important}html body .trophy-editor .zl-title{font-size:22px!important}html body .trophy-editor.ze-standard-header .zl-rail{grid-row:5;grid-column:1;flex-direction:row;padding:4px 8px;border-top:1px solid #ded8c9}html body .trophy-editor.ze-standard-header .zl-inspector{grid-row:4;grid-column:1;border-top:1px solid #ded8c9}html body .trophy-editor.ze-standard-header .zl-stage{grid-row:3;grid-column:1;padding:12px 14px 7px}html body .trophy-editor.ze-standard-header.zl-panel-collapsed{grid-template-rows:60px 0 minmax(210px,1fr) 0 68px}.trophy-editor .zl-tool{flex:1;min-height:58px;gap:0}.trophy-editor .zl-tool .zb-ui-symbol{width:26px!important;height:26px!important;flex-basis:26px!important}.trophy-editor .zl-inspector-head{padding:8px 16px 0}.trophy-editor .zl-panel-title{font-size:21px!important}.trophy-editor .zl-panel{padding:6px 16px 18px}.base-options{grid-template-columns:repeat(2,1fr);margin:3px 0 15px}.base-options img{height:58px}.base-options button{min-height:85px}.field{margin:16px 0}.stage-header h2{font-size:21px;margin-top:3px}.stage-header .eyebrow{font-size:10px}.view-label{display:none}.view-switch{top:61px}.view-switch button{font-size:11px;min-height:27px;padding:5px 12px}#viewport{inset:40px 0 65px}.stage-footer{gap:5px;min-height:32px}.history button{font-size:10px;min-height:30px;padding:3px 6px}.history .zb-ui-symbol{width:17px!important;height:17px!important;flex-basis:17px!important}.orbit-help{display:none}#dimensions{font-size:10px;margin-left:auto}.model-caption{font-size:9px;line-height:1.4;padding-top:6px;margin-top:4px;min-height:21px}.model-caption span:first-child{max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#loading{padding:8px 10px;font-size:11px}#loading img{width:32px;height:32px}#preview-error{bottom:68px;left:12px;right:12px;font-size:11px;padding:7px}.quiet-note{margin-top:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Retain the shared controls, adapt their placement to this 3D-only canvas. */
html body .trophy-editor.ze-standard-surface .ze-history{position:static!important;inset:auto!important;border:0;padding:0!important;margin:0!important;flex-shrink:0}
html body .trophy-editor.ze-standard-surface .ze-history button{min-width:64px!important;height:34px;min-height:34px;padding:5px 7px!important;border:1px solid #ded8c9;background:#fffaf0}
html body .trophy-editor .zl-tool[aria-selected=true]{background:#f5e5b3!important}
@media(max-width:760px){html body .trophy-editor.ze-standard-surface .ze-history button{min-width:55px!important;height:30px;min-height:30px;padding:3px 5px!important}.trophy-editor.ze-standard-surface .ze-history .zb-ui-symbol{display:none!important}}
.base-options img:not([src]){visibility:hidden}
@media(max-width:760px){
 html body .zl-editor.trophy-editor.ze-standard-surface:not(.zl-panel-collapsed){grid-template-rows:60px 0 minmax(210px,1fr) minmax(150px,34dvh) 68px!important}
 html body .zl-editor.trophy-editor.ze-standard-surface.zl-panel-collapsed{grid-template-rows:60px 0 minmax(210px,1fr) 0 68px!important}
 html body .trophy-editor.ze-standard-header .zl-commands{width:auto;flex:0 0 auto;margin-left:auto;gap:0}
 html body .trophy-editor.ze-standard-header .zl-header .ze-header-button{flex:none!important;width:auto;min-width:76px;max-width:90px}
}
@media(max-width:760px) and (max-height:550px){
 html body .zl-editor.trophy-editor.ze-standard-surface:not(.zl-panel-collapsed){grid-template-rows:56px 0 minmax(120px,1fr) minmax(90px,27dvh) 60px!important}
 .trophy-editor .stage-header h2{font-size:17px}.trophy-editor .stage-header .eyebrow{display:none}.trophy-editor .view-switch{top:8px;left:auto;right:12px;transform:none}.trophy-editor #viewport{inset:25px 0 40px}.trophy-editor .model-caption{display:none}
}
@media(max-width:760px) and (min-height:551px){.trophy-editor #viewport{top:88px}}

.text-treatment{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 12px}.text-treatment button{font-size:13px}.text-treatment button[aria-pressed=true]{background:#f6e4af;border-color:#c9a64e;font-weight:600}

.studio-entry{background:#f6ecd3;border-color:#d4c393;font-size:13px}.studio-site{font-size:12px;color:#6b765f}.studio-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;border:1px solid #c5b78d;border-radius:8px;padding:10px;color:#173f73;text-decoration:none;font-size:14px;background:#fffaf0}.studio-link:focus-visible{outline:2px solid #bc8b25;outline-offset:2px}.studio-help{margin-top:18px;border-top:1px solid #dcd1b5;padding-top:15px;font-size:13px}.studio-help p{font-size:12px;line-height:1.8}#studio-dialog{max-height:calc(100dvh - 32px);overflow:auto}#studio-status{font-size:12px;overflow-wrap:anywhere}



/* Trophy size and two-filament controls; existing preview and editor shell retained. */
.size-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.size-options button{padding:12px 4px;border:1px solid #d7c79d;border-radius:10px;background:#fffaf0}.size-options small{display:block;font-size:10px;margin-top:6px}.size-options [aria-pressed=true],.trophy-palettes [aria-pressed=true]{background:#f3d97f;outline:1px solid #b59a4e}.size-comparison{margin:12px 0 20px;padding:10px;background:#fffaf0;border-radius:10px}.size-comparison span{font-size:11px}.size-comparison i{display:block;height:6px;background:#a7b3bd;margin:5px 0 9px;border-radius:3px}#actual-size-bar{background:#d6b13e}.trophy-colors{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.trophy-colors label{font-size:13px;display:flex;flex-direction:column;gap:9px}.trophy-colors input[type=color]{width:100%;height:64px;padding:3px;border:1px solid #cfbea1;border-radius:10px;background:#fffaf0}.trophy-colors input:not([type=color]){width:100%;font:12px monospace;text-align:center;padding:10px 2px;box-sizing:border-box}.trophy-palettes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.trophy-palettes button{border:1px solid #d7c79d;border-radius:10px;padding:10px 3px;background:#fffaf0;font-size:11px}.trophy-palettes i{display:block;width:35px;height:35px;border-radius:50%;margin:0 auto 8px}.text-treatment [aria-pressed=true]{background:#f3d97f}.model-caption{flex-wrap:wrap} 
/* Goal-focused tools: direct 2D lettering, shared size confirmation. */
.text-layer-list{display:grid;gap:7px;margin-top:16px}.text-layer-list button{text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.text-layer-list button[aria-pressed=true]{background:#f5e5b3;border-color:#b89543}.text-actions{display:flex;flex-wrap:wrap;gap:6px}.text-actions button{font-size:12px;flex:1;white-space:nowrap}#delete-text{color:#9b463a}#text-workspace{position:absolute;inset:125px 20px 110px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}#text-canvas{width:100%;max-width:850px;max-height:65%;flex:1;min-height:120px;touch-action:none;overflow:visible}#text-canvas [data-text-id]{cursor:move}#text-canvas [data-rotate]{cursor:grab}#flat-caption{font-size:13px;color:#796c54}.is-text-editing #viewport,.is-text-editing .view-switch{visibility:hidden}.is-text-editing .orbit-help{visibility:hidden}.is-text-editing #preview-error{bottom:90px}.is-text-editing #loading{top:15%}#size-status{font-size:12px;line-height:1.6}#download-dialog{max-width:580px;max-height:calc(100dvh - 28px);overflow:auto}#download-dialog .size-options small{font-size:12px}#size-controls input{box-sizing:border-box}#download-dialog #size-controls>p:first-child{margin-top:16px}.size-scene{display:flex;align-items:flex-end;justify-content:center;gap:16px;min-height:210px;padding:12px 4px 14px;border-bottom:1px solid #ded2bb}.comparison-object{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;min-width:0}.comparison-object strong{font-size:13px;margin-top:8px;font-variant-numeric:tabular-nums}.comparison-object>span{font-size:11px;margin-top:3px;color:#6e746b}.comparison-art{height:112px;aspect-ratio:1;max-width:none;position:relative}.phone-art{height:120px}.can-art{height:92px}.size-icon{position:absolute;inset:0;background-image:url('/trophy/assets/size-comparison.png');background-size:300% 100%;background-repeat:no-repeat}.trophy-icon{background-position:0 50%}.phone-icon{background-position:50% 50%}.can-icon{background-position:100% 50%}.size-options button{font-size:14px}.trophy-editor #panel-settings .size-scene{gap:0}.trophy-editor #panel-settings .comparison-object{width:33.33%}.trophy-editor #panel-settings .comparison-art{max-width:110px}.trophy-editor .zf-trigger{width:100%}
@media(max-width:760px){#text-workspace{inset:50px 12px 65px;gap:0}#text-workspace>p{margin:3px;font-size:10px}#text-canvas{min-height:80px;max-height:70%}.text-layer-list{grid-template-columns:repeat(2,minmax(0,1fr))}.size-scene{min-height:185px}#download-dialog{padding:18px}}

#download-dialog .size-scene{min-height:158px;padding:4px 0 8px}#download-dialog .hint{margin:8px 0}#download-dialog .text-label{margin:12px 0 5px}#download-dialog input{margin:3px 0;padding:8px 12px}#download-dialog .size-options button{padding:9px 4px}#download-dialog #download-contents{font-size:12px;margin:12px 0 8px}#download-dialog #download-status:empty,#size-status:empty{display:none}#download-dialog #export-zip{margin-top:4px}#download-dialog .dialog-heading h2{font-size:24px}

.generation-modes{border:0;padding:0;margin:18px 0 8px;display:flex;gap:12px}.generation-modes legend{font-weight:700;margin-bottom:8px}.generation-modes label{display:flex;align-items:center;gap:6px;border:1px solid #d5c8aa;border-radius:10px;padding:10px 16px;cursor:pointer}.generation-modes label:has(input:checked){background:#fff0bd;border-color:#a7782d}.generation-modes input{width:auto;margin:0}#hero-palette{flex-wrap:wrap}#hero-palette label{min-width:80px;flex:1}#hero-palette input{max-width:100%}
#panel-colors #palette-note{display:block!important;margin:0 0 14px}

.trophy-editor{--feature-theme:#F2C94C;--feature-ink:#244367}#hero-palette[hidden],#trophy-paint-view-tools[hidden]{display:none}.trophy-editor .ornament-section-title{margin-top:18px}

/* Add text uses the trophy's soft paper-gold theme. Canvas handles own transforms. */
.trophy-editor #add-text{background:#F6ECD2;border-color:#DAC9A1;color:#8A6936}
.trophy-editor #add-text:hover{background:#EFE0B8;border-color:#B99B64}
.trophy-editor #add-text:focus-visible{outline:2px solid #8A6936;outline-offset:3px}
