/* Shared visual language with the current CD Mocky studio. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Noto Sans JP",sans-serif;font-size:14px;line-height:1.55;color:#141c21;--page:#f5f6f7;--surface:#fff;--stage:#e9ebec;--quiet:#f1f3f5;--hover:#e8ecef;--ink:#141c21;--muted:#5d6a72;--faint:#8b979e;--line:#e3e7ea;--line-strong:#c8d1d6;--input-line:#bcc7cd;--accent:#189ed0;--cyan:#189ed0;--cyan-dark:#08779e;--accent-soft:#eaf6fb;--radius:8px;--header:60px;--inspector:384px;--shadow-float:0 1px 2px #141c2114,0 4px 16px #141c2112}
body{background:var(--page)}button{border:1px solid var(--line-strong);background:var(--surface);border-radius:8px;color:var(--ink);font-weight:500}button:hover{background:var(--hover);border-color:var(--line-strong)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #08779e;outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:650;min-height:44px}.primary:hover{background:#117ca6;border-color:#117ca6;color:#fff}.secondary{background:#fff;min-height:40px;font-size:12px;border-color:var(--line-strong)}.text-button,.icon-button{border-color:transparent;background:transparent;color:var(--muted)}.text-button{font-size:12px}.text-button:hover,.icon-button:hover{background:var(--quiet);color:var(--cyan-dark)}
.header{height:var(--header);padding:0 24px;gap:24px;border-color:var(--line);display:flex;align-items:center;flex-wrap:nowrap}.brand{font-size:23px;font-weight:800;gap:9px;letter-spacing:-.8px;line-height:1.15}.brand img{width:29px;height:32px}.brand-name{display:flex;align-items:center;gap:8px;min-width:0}.header .brand .beta,.start-beta{display:inline-flex;align-items:center;align-self:center;white-space:nowrap;margin:0;padding:2px 5px;border:0;border-radius:3px;background:#edf4f7;color:#7993a1;font-size:9px;font-weight:600;line-height:1.3;letter-spacing:.1px}.workflow{position:static;transform:none;margin:0 auto;gap:8px}.workflow>svg{width:20px;height:1px;background:var(--line-strong);stroke:none}.workflow button{padding:7px 16px;border:1px solid transparent;font-size:13px;min-height:34px;border-radius:7px;background:transparent;color:var(--muted);font-weight:600}.workflow button.active{background:var(--accent);color:#fff}.header-actions{gap:10px}.language{display:flex;gap:0;background:var(--quiet);border-radius:8px;padding:3px}.language button{border:0;border-radius:5px;font-size:10px;line-height:18px;padding:2px 7px;color:var(--muted);background:transparent}.language button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 3px #141c2114}.header-actions .primary.small{min-height:34px;padding:6px 12px;font-size:12px}
.workspace{height:calc(100dvh - var(--header));min-height:510px;grid-template-columns:minmax(0,1fr) var(--inspector)}.stage-column{min-width:0;background:var(--stage)}.stage-toolbar{height:52px;padding:0 18px;background:#fff;border-bottom:1px solid var(--line);gap:10px}.segmented{background:var(--quiet);border:1px solid var(--line);padding:3px;border-radius:8px}.segmented button{font-size:12px;min-height:30px;padding:5px 12px;box-shadow:none;color:var(--muted)}.segmented button.active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:none}.toolbar-right{gap:3px;min-width:0}.save-state{color:var(--faint);font-size:10px;margin-right:10px}.project-file-button{font-size:11px;min-height:32px;gap:6px;padding:6px 9px}.project-file-button svg{width:15px;height:15px}.stage-toolbar .icon-button{width:31px;height:32px}.stage-caption{left:20px;top:18px;color:var(--muted);font-size:11px}.stage-caption #dimensions{color:var(--faint);font-size:10px}.stage-bottom{bottom:18px;z-index:2}.camera-views{background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow-float);backdrop-filter:none;padding:4px;gap:3px}.camera-views button{font-size:12px;padding:6px 12px;min-height:32px;border-radius:5px;color:var(--muted)}.camera-views button.active{background:var(--accent);color:#fff}.camera-views .icon-button{height:32px;width:32px;margin-left:2px;border-radius:5px}.stage-footer{min-height:32px;padding:0 20px;font-size:10px;background:#fff;color:var(--faint);border-color:var(--line)}
.inspector{border-left:1px solid var(--line);overflow:hidden}.inspector-scroll{position:relative;overflow-y:auto;scrollbar-gutter:stable;scrollbar-color:#c8d1d6 transparent;scrollbar-width:thin;display:flex;flex-direction:column}.step-panel{flex:1}.panel-section{padding:20px 22px;border-color:var(--line)}.panel-section h2{font-size:13px;line-height:1.45;font-weight:650;letter-spacing:0;color:var(--ink);margin-bottom:14px}.section-title{margin-bottom:12px;align-items:center}.section-title h2{margin:0}.section-title .text-button{font-size:11px}.field{font-size:12px;color:var(--muted);gap:8px;margin-bottom:16px}.field.inline{min-height:40px;gap:12px}.field select{width:158px}.field>span:first-child{flex-shrink:1}input[type=number],select{height:40px;border:1px solid var(--input-line);background:#fff;border-radius:8px;font-size:12px;color:var(--ink);font-weight:500;padding:7px 9px}.number-unit{height:40px;border-color:var(--input-line);background:#fff;border-radius:8px}.number-unit input{height:38px!important;font-size:12px;color:var(--ink)}.number-unit>span{color:var(--faint);font-size:11px}.range-field{gap:14px;min-height:40px}.range-field .number-unit{width:86px}.range-field>input[type=number]{width:65px}.check-row{font-size:12px;line-height:1.5;min-height:32px;color:var(--muted)}.check-row input{width:16px;height:16px}.field-note{font-size:11px;color:var(--faint);line-height:1.75}summary{font-size:11px;color:var(--muted);min-height:30px}.inline-note{font-size:11px;background:var(--quiet);color:var(--muted);border-radius:8px}.size-presets{gap:6px;margin-top:-7px}.size-presets button{font-size:11px;min-width:36px;padding:5px 8px;background:var(--quiet);color:var(--muted)}.size-presets button.active,.sample-list button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.sample-list button{font-size:11px;padding:7px;background:#fff}.two-fields{gap:14px}.metal{width:26px;height:26px}.color-swatches button{width:28px;height:28px}.color-swatches button.active,.metal.active{box-shadow:0 0 0 2px var(--accent)}
.upload-card{border:1px dashed var(--line-strong);padding:12px;gap:12px;background:#fff}.upload-card:hover{background:var(--accent-soft);border-color:var(--accent)}.upload-card>img{width:68px;height:68px}.upload-card strong{font-size:12px;max-width:220px;color:var(--ink)}.upload-card small{font-size:10px;color:var(--faint)}.upload-label{font-size:11px;color:var(--cyan-dark)}
.choice-grid,.layout-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px;padding:0;border:0;background:transparent;min-width:0}.choice-card,.layout-options button{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;overflow:hidden;text-align:center;padding:0!important;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--ink);box-shadow:none}.choice-card:hover,.layout-options button:hover{border-color:#80bcd0;background:var(--quiet)}.choice-thumb{height:64px;display:flex;align-items:center;justify-content:center;background:#f1f3f5;color:#5b7f8f;overflow:hidden}.choice-thumb>svg{width:70px;height:62px;fill:none;stroke:currentColor;stroke-width:1.5}.product-thumb>svg{width:49px;height:49px}.choice-label,.layout-options button>[data-i18n]{display:flex;align-items:center;justify-content:center;min-height:35px;padding:7px 4px;font-size:11px;line-height:1.35;font-weight:600;white-space:normal;overflow-wrap:anywhere}.choice-card.active,.layout-options button.active{border-color:var(--accent);background:var(--accent);color:#fff;box-shadow:0 0 0 1px var(--accent)}.choice-card.active:hover,.layout-options button.active:hover{background:var(--accent);color:#fff}.choice-card.active .choice-thumb{background:#e8f1f5}.choices-layerMode,.choices-shape,.choices-hardware{grid-template-columns:repeat(2,minmax(0,1fr))}.choices-layerMode .choice-thumb{height:57px}.choices-layerMode .choice-thumb svg{height:54px}.choices-hardware .choice-thumb{height:65px}.choices-material{grid-template-columns:repeat(3,minmax(0,1fr))}.choices-material .choice-thumb{background:repeating-conic-gradient(#e3e9ed 0% 25%,#f9fbfc 0% 50%) 50%/16px 16px}.choices-material .choice-label{font-size:10px}.choices-baseShape{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-thumb canvas{width:100%;height:100%;object-fit:cover}.product-section .choice-grid{margin-bottom:0}.layout-options .layout-drawing{width:100%;height:78px;color:#5b7f8f;background:var(--quiet)}.layout-options button.active .layout-drawing{background:#e8f1f5}.layout-options .layout-drawing.pair i{left:calc(50% - 22px);top:30px}.layout-options .layout-drawing.pair i:last-child{left:50%;top:17px}.layout-options button>[data-i18n]{width:100%}.camera-preset-grid{gap:8px}.camera-preset-grid button{min-height:38px;font-size:12px;background:#fff}.camera-preset-grid button.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.inspector-bottom{position:sticky;bottom:0;z-index:4;padding:14px 22px;min-height:72px;border-color:var(--line);margin-top:auto;background:#fff;gap:12px}.inspector-bottom .primary{min-height:44px;font-size:13px;justify-content:space-between;padding:10px 14px}.inspector-bottom .text-button{font-size:12px;min-height:40px;padding:8px 12px}.capture-actions{gap:8px;margin-top:18px}.export-section .capture-actions>button{font-size:11px;min-height:44px}.capture-actions>.secondary{background:#fff;border-color:var(--line-strong);color:var(--ink)}.capture-actions>.secondary:hover{background:var(--hover);color:var(--ink)}
dialog{border-radius:12px;border-color:var(--line);color:var(--ink)}.dialog-heading{padding:18px 24px}.dialog-heading h2{font-size:15px;font-weight:650}.dialog-footer{border-color:var(--line)}.dialog-footer .secondary{min-height:44px}.dialog-footer .primary{min-height:44px}.mocky-movie-intro,.mocky-movie-options .field-note,.help-content{color:var(--muted)}.mocky-movie-options .field select{height:40px;background:#fff}.start-brand-name{display:flex;align-items:center;gap:8px;min-width:0}.start-brand{flex-wrap:nowrap}.start-visual{aspect-ratio:1.75;margin:0;background:#eef1f3}.start-body{padding-bottom:20px}.start-visual .start-placeholder{display:none}.start-visual>img{object-fit:contain}.start-heading{border-color:var(--line)}
@media(max-width:1280px){:root{--header:108px;--inspector:356px}.header{padding:0 20px;gap:16px;flex-wrap:wrap;align-content:center;justify-content:space-between;row-gap:6px}.brand{font-size:23px}.workflow{order:3;flex:0 0 100%;justify-content:center;height:36px;margin:0;gap:8px}.header-actions{margin-left:auto;height:34px}.header-actions>.icon-button{display:inline-flex}.panel-section{padding:20px}.stage-toolbar{padding:0 14px}.save-state{display:none}.brand .beta{display:inline-flex}.stage-footer{padding-inline:16px}}
@media(max-width:920px){.workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - var(--header));padding-bottom:74px}.stage-column{height:46dvh;min-height:330px;max-height:490px;flex:none;position:sticky;top:0;z-index:3}.stage-wrap{min-height:230px;overflow:hidden}.stage-footer{display:none}.stage-toolbar{height:48px;padding:0 18px}.stage-caption{left:18px;top:14px}.inspector{border-left:0;border-top:1px solid var(--line);overflow:visible;min-height:0}.inspector-scroll{overflow:visible;display:block;scrollbar-gutter:auto}.panel-section{padding:22px;max-width:680px;margin-inline:auto}.inspector-bottom{position:fixed;bottom:0;left:0;right:0;padding:12px 22px;min-height:70px;box-shadow:0 -2px 10px #141c2108}.inspector-bottom .primary{flex:none;min-width:160px;margin-left:auto}.viewport{bottom:49px}.stage-bottom{position:absolute;inset:auto 0 0;height:49px;background:#fff;border-top:1px solid var(--line);align-items:center}.camera-views{height:100%;border:0;border-radius:0;box-shadow:none;padding:4px;gap:5px}.camera-views button{min-height:36px;padding:7px 16px}.cut-view{padding:55px 35px}.stage-wrap:has(#camera-tools[hidden]) .viewport{bottom:0}.choice-thumb{height:85px}.choice-thumb>svg{height:76px;width:80px}.choices-material .choice-thumb{height:78px}.choices-hardware .choice-thumb,.choices-layerMode .choice-thumb{height:72px}.choice-label,.layout-options button>[data-i18n]{font-size:12px;min-height:38px}.choices-material .choice-label{font-size:12px}.product-thumb>svg{height:54px;width:54px}.upload-card strong{max-width:70vw}.save-state{display:inline}.field select{width:180px}}
@media(max-width:600px){.header{padding:8px 12px;gap:6px;row-gap:4px}.brand{font-size:20px;gap:7px;letter-spacing:-.6px}.brand img{width:25px;height:29px}.brand-name{flex-direction:column;align-items:flex-start;gap:3px}.header .brand .beta{align-self:flex-start;font-size:8px;margin:0;padding:1px 4px}.header-actions{gap:5px}.header-actions #export-top{display:none}.header-actions>.icon-button{display:inline-flex;width:29px;height:30px}.language button{font-size:10px;padding:2px 6px}.workflow{gap:8px;height:34px}.workflow button{font-size:12px;min-height:32px;padding:6px 17px}.workflow>svg{width:18px}.stage-column{height:43dvh;min-height:310px;max-height:420px}.stage-toolbar{padding:0 10px;height:46px;gap:4px}.view-mode button{font-size:11px;padding:5px 8px;min-width:38px}.toolbar-right{gap:1px}.toolbar-right .icon-button{width:28px;height:32px;padding:6px}.toolbar-right .divider{margin:0 4px}.project-file-button{padding:6px;min-height:32px}.project-file-button span{display:none}.save-state{font-size:9px;margin-right:5px;max-width:48px;overflow:hidden;white-space:nowrap}.stage-wrap{min-height:220px}.stage-caption{left:14px;top:12px;font-size:10px}.stage-caption #dimensions{font-size:9px}.panel-section{padding:20px}.inspector-bottom{padding:12px 20px}.choice-thumb{height:70px}.choice-thumb>svg{height:65px}.choice-label{font-size:11px}.field select{width:165px}.field input[type=number],.field select,.number-unit input,.mocky-movie-options .field select{font-size:16px}.range-field{min-height:44px}.check-row{min-height:36px}.text-button{min-height:32px}.capture-actions{grid-template-columns:1fr 1fr}.export-section .capture-actions>button{font-size:11px}.start-brand-name{flex-wrap:wrap;gap:4px 8px}.start-brand{font-size:16px}.start-beta{font-size:8px}.start-brand img{width:25px;height:28px}.start-heading{gap:8px}.camera-views button{padding-inline:13px}}
@media(max-width:360px){.brand{font-size:17px;gap:5px}.header{padding-inline:9px}.header-actions{gap:2px}.workflow button{padding-inline:12px}.stage-toolbar{padding-inline:7px}.save-state{display:none}.panel-section{padding:18px}.field.inline{gap:8px}.field select{width:154px}.choice-label,.choices-material .choice-label{font-size:10px}.inspector-bottom{padding-inline:18px}}
button{transition:border-color .12s,box-shadow .12s}.product-types .choice-card.active{background:var(--accent);color:#fff;border-color:var(--accent)}.product-types .choice-card.active:hover{background:var(--accent);color:#fff}
@media(forced-colors:active){.choice-card.active,.product-types .choice-card.active,.layout-options button.active,.workflow button.active{background:Highlight;color:HighlightText;border:2px solid Highlight;forced-color-adjust:none}}

/* Arrangement and capture follow the current CD studio's inspector rhythm. */
.workflow-details{margin:0;border:0;border-bottom:1px solid var(--line);padding:0;background:#fff}.workflow-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:57px;padding:17px 22px;font-size:13px;font-weight:650;color:var(--ink);margin:0!important}.workflow-details>summary::before{content:none}.workflow-details>summary::after{content:'›';font-size:18px;line-height:1;font-weight:400;color:var(--faint);transform:rotate(90deg)}.workflow-details[open]>summary::after{transform:rotate(-90deg)}.accordion-body{padding:0 22px 20px}.accordion-body .panel-section{border:0;padding:0}.accordion-body>.layout-options{margin-bottom:0}.accordion-body>.field:last-child{margin-bottom:0}
#arrangement-editor{display:block}.arrangement-items{padding:20px 22px;border-bottom:1px solid var(--line)}.arrangement-items h2{font-size:13px;font-weight:650;margin:0}.arrangement-items .section-title{margin-bottom:12px}.item-count{display:flex;align-items:center;gap:7px;color:var(--faint);font-size:11px}.item-count input{width:57px;height:34px;padding:4px 7px;text-align:center}.arrangement-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:10px}.arrangement-actions button{font-size:11px;padding:8px 6px;min-height:36px}.arrangement-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:198px;overflow-y:auto;scrollbar-width:thin;padding:1px 2px 2px 1px}.arrangement-list button{justify-content:flex-start;gap:7px;min-width:0;padding:6px 8px;font-size:11px;border-color:var(--line);text-align:left}.arrangement-list img{width:29px;height:30px;object-fit:contain;flex:none;background:repeating-conic-gradient(#e7ecef 0% 25%,#fff 0% 50%) 50%/8px 8px;border-radius:4px}.arrangement-list .item-name{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.arrangement-list button.active,.arrange-tool-row button.active{background:var(--accent);border-color:var(--accent);color:#fff}.arrangement-list button.active:hover,.arrange-tool-row button.active:hover{background:var(--accent);color:#fff}#grid-items{margin-top:6px;padding:5px 0;font-size:11px}.transform-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.transform-grid .field{min-width:0;margin-bottom:12px;font-size:11px}.transform-grid .number-unit{width:100%}.transform-grid .number-unit input{width:100%;padding-left:5px!important}.transform-grid .number-unit>span{padding:0 5px 0 2px;font-size:10px}.arrange-tool-row{display:flex;gap:6px}.arrange-tool-row button{flex:1;min-height:36px;font-size:11px;padding:7px}.arrangement-outline{position:absolute;border:1.5px solid var(--accent);border-radius:3px;pointer-events:none;z-index:2;box-shadow:0 0 0 1px #ffffff65}.arrangement-outline>span{position:absolute;top:0;left:0;transform:translate(-1px,-100%);max-width:200px;padding:2px 6px;background:var(--accent);color:#fff;font-size:10px;line-height:1.6;border-radius:3px 3px 0 0;white-space:nowrap}body[data-step=arrange] #viewport canvas{cursor:grab}body[data-step=arrange] #viewport canvas:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.inspector-bottom{display:block}.workflow-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.workflow-navigation .primary{flex:1}.shoot-export{width:100%}.export-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.export-settings .field{min-width:0;margin:0;font-size:11px;gap:6px}.export-settings .field select{width:100%;font-size:12px;height:38px}.shoot-export .capture-actions{margin:0;gap:8px}.shoot-export .capture-actions>button{width:100%;min-width:0;min-height:44px;font-size:11px;margin:0;padding:8px;white-space:nowrap}.shoot-export .capture-actions svg{width:15px;height:15px}.export-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:31px;margin-top:6px}.export-meta .output-size{font-size:10px;margin:0;text-align:right}.export-meta #previous{padding:4px 0;min-height:28px;font-size:11px}.export-extra .svg-export{margin:0}.export-extra .field-note{margin-top:8px}.shoot-export .capture-actions .secondary{background:#fff;color:var(--ink);border-color:var(--line-strong)}
@media(max-width:1280px){.workflow-details>summary{padding-inline:20px}.accordion-body{padding-inline:20px}.arrangement-items{padding-inline:20px}.transform-grid{gap:7px}}
@media(max-width:920px){.workflow-details{max-width:680px;margin-inline:auto}.workflow-details>summary{padding:18px 22px}.accordion-body{padding-inline:22px}.arrangement-items{max-width:680px;margin-inline:auto;padding-inline:22px}.workflow-navigation .primary{flex:none;min-width:160px;margin-left:auto}.inspector-bottom{padding:12px 22px calc(12px + env(safe-area-inset-bottom));position:fixed;bottom:0;left:0;right:0;max-height:40dvh;overflow-y:auto}.shoot-export .export-settings{margin-bottom:9px}.export-settings .field select{font-size:16px;height:40px}body[data-step=shoot] .workspace{padding-bottom:205px}.export-meta{min-height:25px;margin-top:4px}.arrangement-list{max-height:182px;grid-template-columns:repeat(3,minmax(0,1fr))}.arrangement-list img{width:26px;height:28px}}
@media(max-width:600px){.workflow-details>summary{padding-inline:20px}.accordion-body{padding-inline:20px}.arrangement-items{padding-inline:20px}.arrangement-list{grid-template-columns:repeat(2,minmax(0,1fr))}.transform-grid .number-unit input{font-size:16px}.item-count input{font-size:16px}.arrangement-actions button,.arrange-tool-row button{min-height:40px}.inspector-bottom{padding-inline:20px}.shoot-export .capture-actions>button{font-size:11px;min-height:44px}.export-meta .output-size{font-size:9px}}
@media(max-width:360px){.workflow-details>summary{padding-inline:18px}.accordion-body,.arrangement-items{padding-inline:18px}.inspector-bottom{padding-inline:18px}.shoot-export .capture-actions>button{padding-inline:5px;font-size:10px}.export-settings{gap:8px}.transform-grid{gap:6px}}
.export-meta #previous{padding:5px 9px;min-width:44px;min-height:32px}

/* Multiple goods and shared-base editor */
.product-beta{font-size:9px;line-height:1;padding:0 3px 8px;opacity:.8}.goods-library .section-title{margin-bottom:10px}.goods-list{max-height:140px}.library-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}.library-actions button{font-size:11px;min-height:34px}.goods-name-row{display:flex;gap:8px}.goods-name-row input{min-width:0;flex:1;height:34px}.goods-name-row button{font-size:11px}.goods-library h2{margin:0}.goods-library .field-note{margin:0}.diorama-dialog{width:min(1060px,96vw);max-width:1060px;padding:0;border:1px solid var(--line);border-radius:10px;color:var(--ink)}.diorama-content{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;padding:20px;max-height:75dvh;overflow:auto}.diorama-views{display:grid;grid-template-rows:230px 280px;gap:12px;min-width:0}.diorama-plan{background:#f7fafb;border:1px solid var(--line);border-radius:8px;position:relative;overflow:hidden}.diorama-plan>span{position:absolute;top:8px;left:12px;font-size:11px;pointer-events:none;color:var(--muted)}#diorama-svg{width:100%;height:100%;touch-action:none}.diorama-slot{cursor:grab}#diorama-preview{position:relative;min-width:0;min-height:200px;background:#eef1f3;border-radius:8px;overflow:hidden}#diorama-preview canvas{display:block;width:100%;height:100%}.diorama-controls .arrangement-list{max-height:150px}.diorama-controls .transform-grid .field{font-size:12px}#scatter-items{margin-top:10px}#edit-selected-goods{font-size:11px}#load-goods{width:100%}@media(max-width:650px){.diorama-content{grid-template-columns:1fr;padding:14px;gap:14px}.diorama-views{grid-template-columns:1fr 1fr;grid-template-rows:200px}.diorama-controls .arrangement-list{max-height:110px}}@media(max-width:440px){.workflow button{padding-inline:11px!important}.workflow>svg{width:12px}.diorama-views{grid-template-columns:1fr;grid-template-rows:210px 210px}.goods-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:440px){.header .workflow{gap:4px;min-width:0}.header .workflow button{flex:1;min-width:0;padding:6px 3px!important;font-size:11px}.header .workflow>svg{width:8px;flex:none}}

#goods-name{border:1px solid var(--input-line);border-radius:8px;padding:7px 9px;font-size:12px;color:var(--ink);background:#fff}@media(max-width:600px){#goods-name{font-size:16px}}

#edit-selected-goods,#grid-items{display:flex;width:100%;justify-content:flex-start}#grid-items{margin-top:0}

/* Camera framing and the shared CD-style movie workflow. */
.shoot-camera-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}.shoot-camera-tools button{min-height:38px;font-size:12px}.shoot-camera-tools button.active{background:var(--accent);border-color:var(--accent);color:#fff}.output-frame{position:absolute;pointer-events:none;z-index:1;border:1px solid #ffffffc0;box-shadow:0 0 0 5000px #172c3a24;box-sizing:border-box}#viewport{overflow:hidden}#shoot-camera .number-unit{max-width:100px}#camera-distance{width:100%}.mocky-movie-dialog{width:min(580px,calc(100vw - 30px));max-width:580px;max-height:90dvh;overflow-y:auto}.mocky-movie-content{max-height:none;overflow:visible;padding-bottom:0}.mocky-movie-dialog .dialog-heading{position:static}.mocky-movie-preview{margin:16px auto;width:min(100%,calc(300px * var(--movie-preview-ratio,1) + 2px));max-width:100%;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#eef1f3}.mocky-movie-preview canvas,.mocky-movie-preview video{display:block;width:100%;height:auto;aspect-ratio:var(--movie-preview-ratio,1);object-fit:contain}.movie-preview-controls{display:flex;align-items:center;gap:12px}.movie-preview-controls button{min-width:72px;font-size:12px}.movie-preview-controls input{flex:1;min-width:0}.movie-inline-actions{display:flex;gap:10px;margin:18px 24px 0}.movie-inline-actions #start-movie{flex:1}#movie-progress-wrap{margin:14px 24px 0}#movie-progress-wrap progress{width:100%;height:8px;accent-color:var(--accent)}#export-status{margin:12px 24px 20px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.mocky-movie-dialog #movie-result{margin-top:12px}.mocky-movie-dialog #movie-download{display:flex;width:100%;min-height:44px}@media(max-width:600px){#shoot-camera input[type=number]{font-size:16px}.movie-inline-actions{margin-inline:18px}#export-status,#movie-progress-wrap{margin-inline:18px}.mocky-movie-dialog .mocky-movie-content{padding-inline:18px}}

.mocky-movie-dialog #movie-live-preview{width:min(100%,calc(220px * var(--movie-preview-ratio,1) + 2px))}.mocky-movie-dialog .movie-inline-actions{position:sticky;bottom:0;z-index:3;margin:10px 0 0;padding:14px 24px;background:#fff;border-top:1px solid var(--line)}.mocky-movie-dialog .mocky-movie-options{margin-top:12px}.mocky-movie-dialog .field{margin-bottom:12px}.mocky-movie-dialog .mocky-movie-intro{margin:0 0 14px}.mocky-movie-dialog .mocky-movie-preview{margin-block:12px}.mocky-movie-dialog .mocky-movie-size{margin:9px 0 0}@media(max-width:600px){.mocky-movie-dialog .movie-inline-actions{padding-inline:18px}}

#movie-dialog #export-status[data-state=error]{color:#a53535}

.mocky-movie-dialog .movie-inline-actions{position:static}.mocky-movie-dialog #movie-result{padding:0 24px 20px;margin:12px 0 0}.mocky-movie-dialog #movie-result .mocky-movie-preview{margin-top:10px}@media(max-width:600px){.mocky-movie-dialog #movie-result{padding-inline:18px}}
