500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#ffffff;--panel:#ffffff;--line:#e4e3ec;--text:#22212a;--muted:#73717e;--lime:#7b6cff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px 'DM Sans','Noto Sans KR',sans-serif}button,select,input,textarea{font:inherit}button,select{cursor:pointer}button{color:inherit;border:1px solid var(--line);background:#f7f7fa;border-radius:7px;padding:9px 12px;transition:.18s}button:hover{border-color:#e4e3ec;background:#f7f7fa}button.active{background:var(--lime);border-color:var(--lime);color:#24222e}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--lime);outline-offset:3px}header{height:78px;padding:0 34px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{color:var(--text);font-size:22px;letter-spacing:1px;font-weight:700;text-decoration:none;display:flex;align-items:center;gap:12px}.mark{font-size:35px;color:var(--lime)}.brand small{border-left:1px solid var(--line);padding-left:18px;margin-left:8px;font-size:10px;letter-spacing:2px;color:var(--muted)}.header-actions{display:flex;gap:12px;align-items:center}.version{font-size:12px;color:var(--muted);margin-right:14px}main{max-width:1800px;margin:auto;padding:32px}.page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--lime)}h1{font-size:26px;font-weight:500;letter-spacing:-1px;margin:9px 0 0}.mode{display:flex;border:1px solid var(--line);padding:4px;border-radius:10px;gap:4px}.mode button{border:none;background:transparent;padding:10px 21px}.workspace{display:grid;grid-template-columns:280px minmax(350px,1fr) 320px;gap:20px;align-items:start}.controls,.output{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-title{padding:20px;display:flex;align-items:center;justify-content:space-between}.panel-title h2{font-size:16px;margin:0;font-weight:500}.panel-title span{font-size:10px;color:#73717e;letter-spacing:1px}nav{display:flex;padding:0 15px 15px;border-bottom:1px solid var(--line);gap:3px}nav button{flex:1;border:0;background:transparent;padding:8px 4px;font-size:13px}#controlBody{padding:20px}.group{margin-bottom:24px}.group:last-child{margin:0}.field-label,.group label{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#22212a;font-size:14px}.group label em{font-style:normal;font-size:12px;color:var(--lime)}.hint{font-size:12px;line-height:1.7;color:var(--muted);margin:9px 0 0}.options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.options button{padding:10px 4px;font-size:13px}.options.two{grid-template-columns:repeat(2,1fr)}.options button small{display:block;font-size:10px;margin-top:4px;opacity:.65}select,textarea,input[type=text],#termSearch{width:100%;background:#ffffff;border:1px solid #e4e3ec;color:var(--text);border-radius:7px;padding:11px;outline:none}input[type=range]{accent-color:var(--lime);width:100%}.range-values{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:3px}.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px}.viewer-toolbar>div{display:flex;align-items:center;gap:9px}.viewer-toolbar select{width:auto;font-size:12px;padding:7px}.muted{font-size:11px;color:var(--muted)}.live-dot{height:6px;width:6px;border-radius:50%;background:var(--lime)}#stage{background:#f7f7fa;position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;border:1px solid #e4e3ec;transition:aspect-ratio .25s;width:100%;max-height:650px;margin:auto}#renderHost{position:absolute;inset:0;touch-action:none}#renderHost canvas{display:block;width:100%;height:100%}.frame-top,.frame-bottom{position:absolute;left:20px;right:20px;display:flex;justify-content:space-between;color:#22212a;font:11px monospace;letter-spacing:1px;pointer-events:none;text-shadow:0 1px 4px #000}.frame-top{top:20px}.frame-bottom{bottom:20px}.crosshair{position:absolute;top:50%;left:50%;color:#22212a99;transform:translate(-50%,-50%);pointer-events:none}#grid{position:absolute;inset:0;pointer-events:none}#grid i{position:absolute;background:#eeedf425}#grid i:nth-child(1){left:33.333%;width:1px;height:100%}#grid i:nth-child(2){left:66.666%;width:1px;height:100%}#grid i:nth-child(3){top:33.333%;height:1px;width:100%}#grid i:nth-child(4){top:66.666%;height:1px;width:100%}#loadState{position:absolute;inset:0;display:grid;place-content:center;background:#ffffff;color:var(--lime);text-align:center;padding:24px}.viewer-bottom{display:flex;align-items:center;justify-content:space-between;padding:12px 0;color:var(--muted);font-size:11px}.viewer-bottom button{font-size:11px;padding:6px 9px;background:transparent}.viewer-bottom button.active{color:var(--lime);border-color:#e4e3ec}.insight{display:flex;gap:13px;background:#f7f7fa;border:1px solid #e4e3ec;border-radius:9px;padding:17px;margin-top:5px}.insight-icon{color:var(--lime);font-size:21px}.insight strong{font-size:14px;color:#7b6cff;font-weight:500}.insight p{font-size:13px;color:#73717e;margin:7px 0 0;line-height:1.75}.preset-head{display:flex;justify-content:space-between;align-items:center;margin-top:23px}.preset-head h3{font-size:14px;font-weight:500}.preset-head span{font-size:11px;color:var(--muted)}#presets{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.preset{text-align:left;padding:13px 11px;background:#ffffff;min-height:87px}.preset b{font-size:19px;color:var(--lime);display:block;margin-bottom:8px;font-weight:400}.preset span{font-size:12px;display:block}.preset small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.preview-note{font-size:11px;line-height:1.8;color:#73717e}.output{padding:0 18px 18px}.output .panel-title{padding:20px 0}.output textarea{resize:vertical;font-size:13px;line-height:1.7}.prompt-head{display:flex;justify-content:space-between;align-items:center;margin:23px 0 12px}.prompt-head strong{font-size:10px;letter-spacing:1.5px;color:var(--lime)}.copy{background:var(--lime);color:#24222e;font-size:12px;border:none;padding:7px 12px}#prompt{font-size:14px;line-height:1.85;color:#22212a;max-height:310px;overflow:auto}details{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}summary{cursor:pointer;color:#73717e;font-size:12px}details p{font-size:12px;line-height:1.85;color:var(--muted);margin-bottom:0}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}.chips span{font-size:10px;color:#22212a;background:#f7f7fa;border:1px solid #e4e3ec;border-radius:4px;padding:5px 7px}.position-card{margin-top:22px;padding:15px;background:#ffffff;border-radius:8px}.position-card>span{font-size:10px;letter-spacing:1.5px;color:#73717e}.position-card svg{display:block;width:100%;height:120px}.position-card p{font-size:12px;text-align:center;color:#73717e;margin:0;line-height:1.6}#playback{display:flex;align-items:center;gap:12px;padding:10px;background:#ffffff;border-radius:8px;margin-bottom:12px}#playback[hidden]{display:none}#playback button{white-space:nowrap;font-size:12px}#timeLabel{white-space:nowrap;font:11px monospace;color:var(--muted)}footer{display:flex;justify-content:space-between;padding-top:30px;font-size:10px;color:#73717e;letter-spacing:1px}footer b{margin:0 12px;font-weight:400}dialog{color:var(--text);background:#ffffff;border:1px solid #e4e3ec;border-radius:14px;max-width:780px;width:calc(100% - 32px);max-height:85vh;padding:28px}dialog::backdrop{background:#ffffffaa;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:23px;font-weight:500;margin-top:8px}.term{padding:17px 0;border-bottom:1px solid var(--line)}.term h3{font-size:15px;color:var(--lime);margin:0 0 7px}.term p{font-size:14px;line-height:1.8;color:#73717e;margin:0}.source-note{font-size:12px;line-height:1.9;margin-top:20px;color:var(--muted)}a{color:var(--lime)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 22px;background:var(--lime);color:#24222e;border-radius:7px;display:none;z-index:100;box-shadow:0 6px 30px #0005}.toggle{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);line-height:1.6}.toggle input{accent-color:var(--lime)}@media(min-width:1500px){.workspace{grid-template-columns:290px minmax(400px,1fr) 340px}#stage{min-height:450px}}@media(max-width:1150px){.workspace{grid-template-columns:245px minmax(320px,1fr)}.output{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px 25px}.output .panel-title{grid-column:1/-1}.output .position-card{display:none}.brand small,.version{display:none}main{padding:24px}#presets{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){header{padding:0 18px;height:66px}.brand{font-size:18px}.header-actions button{font-size:11px;padding:7px}.header-actions{gap:6px}main{padding:20px 14px}.page-title{display:block}.page-title h1{font-size:22px}.mode{margin-top:20px;width:fit-content}.workspace{display:flex;flex-direction:column;gap:18px}.viewer-panel{order:0;width:100%}.controls{order:1;width:100%}.output{order:2;width:100%;display:block}#controlBody{display:grid;grid-template-columns:1fr 1fr;gap:18px}#controlBody .group{margin:0;min-width:0}.viewer-toolbar .muted{display:none}.viewer-bottom{gap:5px}.viewer-bottom>span{font-size:10px}#presets{grid-template-columns:repeat(4,1fr)}.preset{padding:10px 7px}.preset span{font-size:11px}.preset small{display:none}footer{font-size:9px;gap:12px}footer span:last-child{display:none}.output .position-card{display:block}.output .field-label{margin-top:6px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.simulation-status{display:flex;justify-content:space-between;gap:10px;font:11px monospace;color:#73717e;margin:0 0 10px;flex-wrap:wrap}.motion-groups .subhead{display:block;font-size:12px;color:#73717e;letter-spacing:1px;margin:17px 0 8px}.motion-groups .subhead:first-child{margin-top:0}.controls{max-height:calc(100vh - 120px);overflow:auto;scrollbar-width:thin;scrollbar-color:#45513f transparent}.viewer-panel{position:sticky;top:22px}.options button{min-height:38px}.options button small{font-size:11px;line-height:1.4}.group .hint{font-size:12px}.output #prompt{max-height:390px}.subhead{font-weight:500}@media(max-width:720px){.controls{max-height:none}.viewer-panel{position:static}#controlBody{display:block}#controlBody .group{margin-bottom:24px}}
.preview-switch{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#ffffff;margin-bottom:12px;width:fit-content}.preview-switch button{font-size:14px;border:0;padding:10px 18px}#photoTools{background:#ffffff;border:1px solid #e4e3ec;border-radius:10px;padding:14px;margin-bottom:12px}.photo-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.upload-button{display:inline-flex;align-items:center;border:1px solid #e4e3ec;border-radius:7px;background:#f7f7fa;color:#7b6cff;padding:9px 12px;cursor:pointer;font-size:14px}.upload-button:focus-within{outline:2px solid var(--lime)}.upload-button input{position:absolute;width:1px;height:1px;opacity:0}#photoStatus{font-size:13px;line-height:1.6;margin:10px 0 0;color:#73717e}#photoTools .hint{font-size:13px}#photoPanel{position:absolute;inset:0;background:#f7f7fa}#photoCanvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}#photoCanvas:active{cursor:grabbing}[hidden]{display:none!important}.preview-note{font-size:13px}#stage{transition:none}@media(max-width:720px){.preview-switch{width:100%}.preview-switch button{flex:1}.viewer-bottom{flex-wrap:wrap;gap:10px}}
.focus-button{width:100%;margin-top:10px;font-size:14px}#focusMarker{position:absolute;width:38px;height:38px;transform:translate(-50%,-50%);border:2px solid var(--lime);border-radius:5px;pointer-events:none;box-shadow:0 0 0 1px #102013}
.model-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.model-tools button,.model-tools .upload-button{font-size:13px;padding:8px 10px}.model-tools span{width:100%;font-size:12px;color:var(--muted)}.preview-switch{width:100%}.preview-switch button{flex:1;padding:10px 8px}@media(max-width:420px){.preview-switch button{font-size:13px}}

.studio-options{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line,#e4e3ec);flex-wrap:wrap}.studio-options strong{font-size:14px;letter-spacing:.07em;margin-right:auto}.studio-options strong span{color:#7b6cff;margin-left:5px}.studio-options label{font-size:14px;display:flex;gap:8px;align-items:center}.studio-options select{max-width:160px;font:inherit}.studio-options button{font-size:14px}.environment-note{font-size:13px;line-height:1.6;padding:0 16px;color:#73717e}.model-tools[hidden]{display:none}.studio-options label[hidden]{display:none}#photoReference[aria-pressed=true]{color:#7b6cff;border-color:#7b6cff}#return3d{color:#7b6cff}.model-tools{flex-wrap:wrap}


#renderHost{touch-action:none}#distanceInput{width:100%;padding:10px 12px;border:1px solid #e4e3ec;border-radius:8px;background:#f7f7fa;color:#22212a;font:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #7b6cff;outline-offset:3px}.header-actions{flex-wrap:wrap}.prompt-head{gap:8px}.prompt-head strong{margin-right:auto}@media(max-width:640px){.header-actions{gap:6px}.header-actions button{padding:8px;font-size:12px}.viewer-bottom{flex-wrap:wrap;gap:8px}}

.shot-guide{display:flex;gap:14px;align-items:center;padding:14px;background:#f7f7fa;border:1px solid #e4e3ec;border-radius:12px;margin-top:12px}.shot-guide svg{width:65px;height:130px;flex-shrink:0;fill:#73717e;stroke:#73717e}.shot-guide .shot-crop{fill:#7b6cff26;stroke:#7b6cff;stroke-width:1.5}.shot-guide strong,.shot-guide span,.shot-guide b{display:block}.shot-guide strong{color:#7b6cff;font-size:15px}.shot-guide span{font-size:11px;color:#73717e;margin:5px 0 12px}.shot-guide b{font-size:13px;color:#7b6cff}.shot-guide p,.shot-live-note{font-size:12px;color:#73717e;line-height:1.6}.shot-live-note{padding:8px 12px;border-left:2px solid #7b6cff}
.model-info{margin:0 16px 14px;padding:12px 14px;border:1px solid var(--line,#e4e3ec);border-radius:10px;font-size:14px;line-height:1.6}.model-info summary{cursor:pointer;color:#7b6cff}.model-info strong{display:block;margin-top:10px}.model-info p{margin:5px 0;color:var(--muted)}.model-info a{color:inherit;text-underline-offset:3px}.model-info[hidden]{display:none}

.viewer-bottom{flex-wrap:wrap;gap:10px}.viewer-bottom>span{line-height:1.8;flex:1 1 220px}.viewer-bottom>div{display:flex;flex-wrap:wrap;gap:5px}#renderHost{cursor:grab}#renderHost:active{cursor:grabbing}

.space-cutaway{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted);margin:10px 0}.space-cutaway[hidden]{display:none}#spaceViewStatus:empty{display:none}
/* Keep the working controls beside the preview at desktop sizes. */
@media(min-width:1151px){.controls,.output{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#52624e transparent}.controls>.panel-title,.controls>nav{position:sticky;background:var(--panel);z-index:3}.controls>.panel-title{top:0}.controls>nav{top:59px}.output>.panel-title{position:sticky;top:0;z-index:3;background:var(--panel)}.viewer-panel{min-width:0}}
@media(min-width:721px) and (max-width:1150px){.controls{position:sticky;top:12px;max-height:calc(100dvh - 24px);overflow-y:auto;scrollbar-width:thin}}
.technique-guide{margin-top:12px;padding:12px;background:#ffffff;border:1px solid #e4e3ec;border-radius:8px}.technique-guide svg{display:block;width:100%;height:auto;max-height:185px}.technique-guide text,#lightPad text{font:12px sans-serif;fill:#73717e}.technique-guide strong{display:block;font-size:14px;margin:9px 0}.technique-guide p{font-size:13px;line-height:1.7;margin:6px 0;color:#73717e}.technique-guide small{display:block;font-size:12px;line-height:1.6;color:var(--muted)}#lightPad{width:100%;height:auto;touch-action:none;cursor:crosshair;margin-top:12px}.light-coordinates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.group .light-coordinates label{display:block;font-size:12px}.light-coordinates input{display:block;width:100%;min-width:0;background:#ffffff;color:var(--text);border:1px solid #e4e3ec;border-radius:5px;padding:8px 4px;margin-top:6px}.group label.toggle{justify-content:flex-start;gap:8px;line-height:1.6}.toggle input{accent-color:var(--lime)}@media(prefers-reduced-motion:reduce){.technique-guide animateMotion{display:none}}
/* Compact working summary, preserving FRAME LAB's charcoal/lime palette. */
.shot-summary{margin-top:12px;padding:13px;background:#ffffff;border:1px solid #e4e3ec;border-radius:9px}.summary-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.summary-caption strong{font-size:13px;font-weight:500;color:#7b6cff}.summary-caption>span{font-size:12px;color:#73717e}.shot-summary .chips{margin:0;gap:6px;display:flex;flex-wrap:wrap}.shot-summary .chips button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;text-align:left;padding:8px 10px;min-height:49px;min-width:90px;flex:1 1 auto;background:#f7f7fa;border:1px solid #e4e3ec;color:#22212a;border-radius:6px}.shot-summary .chips button:hover{background:#f7f7fa;border-color:#7b6cff}.shot-summary .chips button small{font-size:11px;color:#73717e}.shot-summary .chips button span{font-size:13px;line-height:1.4;border:0;padding:0;background:none;color:inherit}.optional-label{font-size:12px;color:var(--muted);font-weight:400}.asset-disclosure{border:1px solid var(--line);border-radius:8px;padding:12px;margin:14px 0;background:#ffffff}.asset-disclosure>summary{font-size:13px;color:#22212a;line-height:1.7}.asset-disclosure>summary>span{display:block;font-size:12px;color:var(--muted);padding-left:15px}.asset-disclosure[open]>.model-tools{margin-top:14px}.asset-disclosure .model-info{padding:12px 0 0}.model-tools #modelStatus{flex-basis:100%;line-height:1.6;font-size:12px}.environment-note{font-size:12px;line-height:1.7;margin:8px 0 12px}.space-cutaway{margin:8px 0}.insight{margin-top:14px}
.guide-card{border:1px solid #e4e3ec;background:#ffffff;border-radius:8px;padding:0;margin-top:12px;overflow:hidden}.guide-card>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:9px;cursor:pointer;color:#22212a}.guide-card>summary::-webkit-details-marker{display:none}.guide-card>summary:hover{background:#f7f7fa}.guide-card summary>svg{flex:0 0 74px;width:74px;height:58px;background:#ffffff;border-radius:5px}.guide-card summary>span{min-width:0}.guide-card strong{font-size:13px;line-height:1.6;display:block;font-weight:500}.guide-card small{font-size:12px;color:#73717e;line-height:1.6;display:block}.guide-card .guide-collapse{display:none}.guide-card[open] .guide-expand{display:none}.guide-card[open] .guide-collapse{display:block}.guide-card[open]>summary{flex-wrap:wrap}.guide-card[open] summary>svg{flex-basis:100%;width:100%;height:160px}.guide-card[open] summary>span{padding:0 4px}.guide-card svg text{font:12px sans-serif;fill:#73717e}.guide-explanation{padding:0 13px 13px}.guide-explanation p{font-size:13px;line-height:1.75;color:#73717e;margin:4px 0 8px}.guide-card:focus-within{outline:1px solid #8aac69;outline-offset:2px}.options button[aria-pressed=true]{box-shadow:inset 0 -2px 0 #769749}.controls{scroll-padding-top:110px}#prompt{overflow-wrap:anywhere}#modelSource,#spaceSource{overflow-wrap:anywhere}
@media(max-width:720px){.shot-summary .chips button{flex:1 1 calc(50% - 6px);min-width:0}.summary-caption strong{font-size:14px}.shot-summary .chips button span{font-size:14px}.viewer-bottom>span{font-size:12px;line-height:1.7}.viewer-bottom button{min-height:38px;font-size:12px}.controls{scroll-margin-top:12px}.environment-note{font-size:12px}.page-title{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.guide-card circle:has(animateMotion){display:none}}

/* Separate image and video prompt workflows. */
.prompt-intro{color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 20px}.prompt-section{min-width:0;border-top:1px solid var(--line);padding-top:20px;margin-bottom:26px}.prompt-section-title>span{font-size:12px;letter-spacing:1px;color:var(--lime)}.prompt-section h3{font-size:16px;font-weight:500;margin:7px 0 0}.prompt-section .prompt-head{margin:17px 0 10px}.prompt-section .copy{min-height:40px;font-size:14px;white-space:nowrap}.output .prompt-text{font-size:14px;line-height:1.85;overflow-wrap:anywhere;max-height:300px;overflow:auto;scrollbar-width:thin}.prompt-section details{margin-top:14px;padding-top:13px}.prompt-section summary,.prompt-section details p{font-size:14px}.prompt-download{width:100%;font-size:14px}.output>.prompt-intro,.output>.prompt-download,.output>details{grid-column:1/-1}@media(max-width:720px){.prompt-section{margin-bottom:24px}.output .prompt-text{max-height:320px}}

.prompt-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.prompt-actions button{min-width:0;min-height:44px;font-size:14px;line-height:1.5;white-space:normal;padding:10px 8px}.prompt-actions textarea{grid-column:1/-1;min-height:160px}

.prompt-legend{display:flex;flex-wrap:wrap;gap:6px}.prompt-legend>span{padding:3px 7px;border-radius:5px}.tone-lens{background:#f7f7fa;border-left:2px solid #e4e3ec}.tone-angle{background:#f7f7fa;border-left:2px solid #7b6cff}.tone-light{background:#f7f7fa;border-left:2px solid #e4e3ec}.prompt-selection-hint{margin-bottom:12px}.prompt-part{display:block;padding:10px 12px;border-radius:5px;user-select:text;cursor:text}.prompt-part+.prompt-part{margin-top:10px}.prompt-part::selection{background:#7b6cff;color:#24222e}.prompt-part:hover{filter:brightness(1.08)}
