.round-tablecloth-stage[hidden],.round-tablecloth-settings[hidden],.round-tablecloth-stage [hidden],.round-tablecloth-settings [hidden]{display:none!important}
.round-template-bar{position:absolute;left:12px;right:12px;top:48px;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.round-template-bar button{border:1px solid #ccb28b;border-radius:18px;padding:8px 12px;background:#fffaf1;color:#60472e;min-height:36px;cursor:pointer}.round-template-bar small{color:#806c53;font-size:11px}.round-template-dialog{width:min(640px,calc(100vw - 32px));max-height:85dvh;border:1px solid #dcc6a7;border-radius:20px;background:#fffaf1;color:#493827;padding:20px;box-sizing:border-box}.round-template-dialog::backdrop{background:rgba(30,23,16,.42)}.round-template-dialog header,.round-template-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.round-template-dialog h3{margin:0}.round-template-dialog p,.round-template-dialog small{font-size:13px;color:#806c53}.round-template-dialog button{cursor:pointer;font:inherit}.round-template-dialog [data-close]{border:0;border-radius:50%;background:#f0e5d4;min-width:44px;min-height:44px}.round-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:55dvh;overflow-y:auto;margin:16px 0}.round-template-grid button{min-width:0;border:1px solid #e2cfb4;border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;color:inherit;position:relative}.round-template-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;max-height:220px}.round-template-grid strong{font-size:15px}.round-template-grid span{font-size:12px;line-height:1.5}.round-template-grid [aria-pressed=true]{background:#fff0d3;border-color:#a26e30;box-shadow:inset 0 0 0 1px #a26e30}.round-template-grid [aria-pressed=true]::after{content:'✓';position:absolute;right:10px;top:8px;color:#8e5e25}.round-template-image-error{color:#a03829}.round-template-dialog [data-apply]{min-height:44px;border:0;border-radius:22px;padding:10px 22px;background:#785737;color:white;white-space:nowrap}.round-template-dialog [data-apply]:disabled{opacity:.5}.round-template-dialog [hidden]{display:none!important}@media(max-width:500px){.round-template-dialog{padding:16px;margin:auto}.round-template-dialog footer{padding-bottom:env(safe-area-inset-bottom)}.round-template-grid{max-height:52dvh}.round-template-bar small{width:100%}}
.round-tablecloth-stage{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;z-index:21;background:radial-gradient(ellipse at 50% 40%,#fffcf6,#eee6da);border-radius:22px;overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto}
.round-tablecloth-stage>canvas{width:100%;height:100%;min-height:0;touch-action:none;cursor:grab}.round-tablecloth-stage>p{padding:10px;margin:0;text-align:center;font-size:12px;color:#806c53}
.round-tablecloth-stage .round-tablecloth-sheet,.round-tablecloth-stage .round-tablecloth-official{position:absolute;top:55px;right:5%;bottom:45px;left:5%;inset:55px 5% 45px;width:90%;height:calc(100% - 100px);object-fit:contain;background:transparent;z-index:2}
.round-tablecloth-settings{padding:18px;margin:12px 0;display:grid;gap:12px;background:#fffaf1;border:1px solid #decbb0;border-radius:16px;color:#473a2c}
.round-tablecloth-settings h3,.round-tablecloth-settings p{margin:0}.round-tablecloth-settings small{font-size:12px;line-height:1.6;color:#806c53}.round-tablecloth-settings select{width:100%;padding:10px;background:white;border:1px solid #cbb38e;border-radius:10px;font:inherit}.round-tablecloth-settings label{display:grid;gap:8px;font-size:13px}.round-tablecloth-settings label:has([type=checkbox]){display:flex;align-items:flex-start}.round-tablecloth-settings input[type=range]{width:100%;accent-color:#947245}.round-tablecloth-settings input[type=checkbox]{width:auto;accent-color:#947245}.round-tablecloth-settings button{padding:11px;border:1px solid #c6a574;border-radius:10px;background:#5d4932;color:#fff;font:inherit;cursor:pointer}.round-tablecloth-settings button:disabled{opacity:.5;cursor:default}.round-tablecloth-price{display:flex;justify-content:space-between;font-size:13px;border-top:1px solid #e6daca;padding-top:12px}
.round-tablecloth-active #frameStage{position:relative;min-height:300px}.round-tablecloth-active #frameModel,.round-tablecloth-active #legacyFramePreview,.round-tablecloth-active #productRenderCanvas,.round-tablecloth-active .puzzle-stage,.round-tablecloth-active .mug-stage,.round-tablecloth-active .scene-preview-card{display:none!important}
.round-tablecloth-active .editor>section:not(.round-tablecloth-settings),.round-tablecloth-active .editor>.creator-intro,.round-tablecloth-active #lightToggle,.round-tablecloth-active #homeSceneButton,.round-tablecloth-active #toolCompare,.round-tablecloth-active #aiWorkGift,.round-tablecloth-active #fitImageButton,.round-tablecloth-active #toolText,.round-tablecloth-active #toolScene,.round-tablecloth-active .puzzle-product-arrow{display:none!important}
.round-tablecloth-settings #orderPanel{display:grid!important;gap:12px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.round-tablecloth-settings #orderPanel>h2,.round-tablecloth-settings #orderPanel>label:has(>#quantityInput),.round-tablecloth-settings #submitOrder,.round-tablecloth-settings #orderResult,.round-tablecloth-settings .order-secondary-actions{display:none!important}
.round-tablecloth-active .ai-work-edit-capabilities,.round-tablecloth-active .ai-work-edit-heading p{display:none!important}.round-tablecloth-active .ai-work-edit-heading::after{content:'当前作品已用于圆形桌布预览。选择颜色并调整画面后确认制作效果。';font-size:12px;color:#725f48}
@media(min-width:851px){body.h5-workspace.round-tablecloth-active .product-preview>.preview-controls{display:none!important}body.h5-workspace.round-tablecloth-active .product-preview{grid-template-rows:minmax(0,1fr) auto}body.h5-workspace.round-tablecloth-active .product-preview.pc-product-layout{grid-template-rows:auto minmax(0,1fr) auto}}
@media(min-width:851px){body.h5-workspace.round-tablecloth-active .product-preview>#frameStage{grid-row:1;min-height:0}body.h5-workspace.round-tablecloth-active .product-preview>.workbench-preview-bottom{grid-row:2}body.h5-workspace.round-tablecloth-active .product-preview.pc-product-layout>#frameStage{grid-row:2}body.h5-workspace.round-tablecloth-active .product-preview.pc-product-layout>.workbench-preview-bottom{grid-row:3}}

.round-tablecloth-stage .round-tablecloth-sheet,.round-tablecloth-stage .round-tablecloth-official{position:absolute;top:58px;right:5%;bottom:48px;left:5%;inset:58px 5% 48px;width:90%;height:calc(100% - 106px);object-fit:contain;cursor:default}
.round-tablecloth-stage>p{position:absolute;bottom:0;left:0;right:0;line-height:1.5;pointer-events:none}
.round-tablecloth-stage .mug-view-switch{z-index:4}
.round-tablecloth-active .wall-art-stage,.round-tablecloth-active .mug-stage{display:none!important}

.round-tablecloth-active .blanket-stage,.round-tablecloth-active .wooden-puzzle-stage{display:none!important}
@media(max-width:850px){.round-tablecloth-settings{margin:12px;padding:16px}.round-tablecloth-active #frameStage{min-height:380px}.round-tablecloth-active .editor{display:block!important}}

.round-tablecloth-stage .round-tablecloth-model{position:absolute;top:38px;right:0;bottom:38px;left:0;inset:38px 0 38px;width:100%;height:calc(100% - 76px);background:transparent;z-index:1;cursor:grab;touch-action:none;outline-offset:-5px}
.round-tablecloth-stage .round-tablecloth-model:active{cursor:grabbing}
.round-tablecloth-stage .round-tablecloth-model{top:112px;inset:112px 0 38px;height:calc(100% - 150px)}
.round-tablecloth-stage .round-tablecloth-sheet,.round-tablecloth-stage .round-tablecloth-official{top:112px;inset:112px 5% 48px;height:calc(100% - 160px)}
.round-tablecloth-stage .round-tablecloth-model:focus-visible{outline:2px solid #b5905b}
.round-tablecloth-stage .mug-view-switch button:disabled{opacity:.5;cursor:default}

.round-tablecloth-active #resetViewButton,.round-tablecloth-active .h5-preview-note{display:none!important}

/* Official fixed-view roundTablecloth gallery; model, editor and checkout preview retain their own states. */
.round-tablecloth-effects{position:absolute;top:62px;right:16px;bottom:38px;left:16px;inset:62px 16px 38px;display:flex;flex-direction:column;gap:10px;min-height:0}.round-tablecloth-effects[hidden]{display:none!important}.round-tablecloth-effects-picture{position:relative;flex:1;min-height:0;display:grid;place-items:center}.round-tablecloth-effects-picture canvas{width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;inset:0;object-fit:contain}.round-tablecloth-effects-status{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#715d43;font-size:13px}.round-tablecloth-effects-status[hidden]{display:none}.round-tablecloth-effects-status button{padding:8px 16px;border:1px solid #b89a6b;border-radius:18px;background:#fffaf1;color:#59462d;cursor:pointer}.round-tablecloth-effects-tabs{display:flex;justify-content:center;gap:8px;flex:none}.round-tablecloth-effects-tabs button{display:flex;align-items:center;gap:7px;border:1px solid #decdb4;background:#fffaf2;border-radius:10px;padding:5px 9px;color:#6c5538;font:inherit;font-size:12px;cursor:pointer;min-height:44px}.round-tablecloth-effects-tabs img{width:40px;height:40px;object-fit:contain;border-radius:5px}.round-tablecloth-effects-tabs button[aria-pressed=true]{border-color:#9c793d;background:#f2e4c9;color:#513b22;box-shadow:0 0 0 1px #9c793d}.round-tablecloth-effects-tabs button:focus-visible{outline:2px solid #997337;outline-offset:2px}@media(max-width:500px){.round-tablecloth-effects{top:58px;right:8px;bottom:38px;left:8px;inset:58px 8px 38px}.round-tablecloth-effects-tabs{gap:4px}.round-tablecloth-effects-tabs button{padding:5px;font-size:11px;gap:4px}.round-tablecloth-effects-tabs img{width:28px;height:28px}}

/* Reserve space for the template controls in every preview mode. */
.round-tablecloth-stage .round-tablecloth-effects{top:112px;inset:112px 16px 38px}

/* A local chooser above the bottom-left entry, never a full-screen modal. */
.round-template-bar{top:auto;right:auto;left:18px;bottom:38px;z-index:8}
.round-template-bar button{min-height:44px}
.round-template-dialog{position:absolute;inset:auto auto 90px 18px;width:min(360px,calc(100% - 36px));max-height:calc(100% - 155px);margin:0;padding:14px;z-index:9;display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 28px #62401e26;overflow:hidden}
.round-template-dialog[hidden]{display:none!important}
.round-template-dialog h3{font-size:16px}.round-template-dialog header{flex:none}
.round-template-grid{margin:0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;gap:8px}
.round-template-grid img{max-height:130px}.round-template-grid strong{font-size:13px}.round-template-grid span{font-size:11px}
.round-template-grid [aria-busy=true]{opacity:.65}
.round-template-dialog [data-feedback]{position:static;margin:0;padding:0;text-align:left;flex:none}.round-template-dialog [data-feedback]:empty{display:none}
.round-template-dialog [data-custom]{flex:none;min-height:40px;border:1px solid #cfb797;border-radius:12px;background:#fffaf1;color:inherit}
.round-tablecloth-stage .round-tablecloth-model{top:62px;inset:62px 0 38px;height:calc(100% - 100px)}
.round-tablecloth-stage .round-tablecloth-sheet,.round-tablecloth-stage .round-tablecloth-official{top:62px;inset:62px 5% 48px;height:calc(100% - 110px)}
@media(max-width:600px){.round-template-bar{left:10px}.round-template-dialog{left:10px;bottom:88px;width:calc(100% - 20px);padding:12px}.round-template-grid img{max-height:100px}}
