#v-scenes{font-family:'OPPO Sans Web',sans-serif;padding:34px 38px 56px;max-width:1800px;margin:auto}
#v-scenes :is(button,input,textarea,select){font-family:inherit}
.sc-build{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:18px 20px;margin-top:14px}.sc-build-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sc-build h2{font-size:13px;font-weight:550}.sc-build-head p{font-size:11px;color:var(--accent);margin-top:5px}.sc-build-head>output{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--ink-3)}.sc-build-label{display:flex;justify-content:space-between;font-size:10px;color:var(--ink-3);margin:16px 0 5px}.sc-build input[type=range]{width:100%;accent-color:var(--accent);cursor:pointer}.sc-build-chapters{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0 16px}.sc-build-chapters button{padding:4px 8px;font-size:10px;color:var(--ink-3);border:1px solid var(--line);border-radius:4px}.sc-build-chapters button[aria-current=step]{color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft)}.sc-build-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sc-build-actions .btn{font-size:11px;padding:8px 11px}.sc-build-actions>label{font-size:10px;color:var(--ink-3);margin-left:auto}.sc-build-actions select{width:auto;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:5px;font-size:11px}#sc-build-play{background:var(--accent);border-color:var(--accent);color:white}
.sc-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}.sc-kicker{font-size:10px;color:var(--accent);letter-spacing:.19em;margin-bottom:12px}.sc-heading h1{font-size:32px;font-weight:550;letter-spacing:-.035em;line-height:1.35}.sc-heading p{margin-top:11px;font-size:12px;color:var(--ink-3);line-height:1.8}.sc-edition{font-size:10px;letter-spacing:.13em;color:var(--ink-3);white-space:nowrap;border:1px solid var(--line);border-radius:30px;padding:8px 14px}
.sc-layout{display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:24px;align-items:start}.sc-main,.sc-side{min-width:0}.sc-stage{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:12px 12px 0 0;background:#e9e7df;color:#3e534b}.sc-canvas{height:clamp(440px,53vw,650px);width:100%}.sc-canvas canvas{display:block;touch-action:none;width:100%;height:100%;outline-offset:-5px}.sc-stage-top{position:absolute;top:20px;left:22px;right:22px;display:flex;justify-content:space-between;gap:12px;pointer-events:none;font-size:10px;letter-spacing:.04em;z-index:1}.sc-live{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:.09em;background:#fff9;padding:6px 9px;border-radius:4px}.sc-live i{width:5px;height:5px;background:#41816e;border-radius:50%}#sc-scene-title{background:#fff9;border-radius:4px;padding:6px 9px}.sc-caption{position:absolute;left:22px;right:22px;bottom:17px;display:flex;justify-content:space-between;gap:12px;font-size:9px;pointer-events:none}.sc-caption>span{background:#e9e7dfbf;padding:4px 6px;border-radius:4px}.sc-loading{position:absolute;inset:65px 20px;display:grid;place-items:center;text-align:center;font-size:13px}.sc-loading[hidden]{display:none}.sc-loading p{max-width:360px;line-height:1.9}.sc-loading button{display:block;margin:16px auto;padding:9px 16px;border:1px solid #899d8f;border-radius:6px;background:#fff9}
.sc-toolbar{border:1px solid var(--line);border-top:0;display:flex;justify-content:space-between;gap:12px;padding:11px 14px;background:var(--surface);border-radius:0 0 12px 12px}.sc-light,.sc-view-tools{display:flex;align-items:center;gap:4px}.sc-toolbar button{font-size:11px;padding:7px 11px;border-radius:5px;color:var(--ink-2);white-space:nowrap}.sc-toolbar button:hover{background:var(--surface-2)}.sc-toolbar button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft)}
.sc-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:17px}.sc-presets button{display:flex;align-items:center;gap:10px;padding:13px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface);min-width:0}.sc-presets button[aria-pressed=true]{border-color:var(--accent-line);background:var(--accent-soft)}.sc-presets button>span:last-child{margin-left:auto;color:var(--ink-3);font-size:12px}.sc-presets b{display:block;font-size:12px;font-weight:550;white-space:nowrap}.sc-presets small{display:block;font-size:9px;color:var(--ink-3);margin-top:4px;white-space:nowrap}.sc-preset-mark{display:grid;place-items:center;width:33px;height:39px;flex-shrink:0;border:1px solid currentColor;border-radius:16px 16px 3px 3px;font-size:17px;font-weight:300}.sc-preset-mark.jade{color:#4c7868}.sc-preset-mark.amber{color:#b58b52}.sc-preset-mark.blue{color:#7c899e}.sc-local-note{font-size:10px;line-height:1.9;color:var(--ink-3);margin:15px 2px}
.sc-panel{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.sc-panel+.sc-panel{margin-top:16px}.sc-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:23px}.sc-panel h2{font-size:14px;font-weight:550}.sc-panel-head>span{font-size:10px;color:var(--ink-3)}.sc-label{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--ink-2);margin:20px 0 10px}.sc-label output{font-size:11px;font-weight:600;color:var(--accent)}.sc-panel input[type=range]{width:100%;accent-color:var(--accent);height:18px;cursor:pointer;margin:0}.sc-range-ends{display:flex;justify-content:space-between;font-size:9px;color:var(--ink-3);margin-top:3px}.sc-roofs{display:flex;gap:7px}.sc-roofs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 7px;border:1px solid var(--line);border-radius:7px;font-size:10px;color:var(--ink-2)}.sc-roofs button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.sc-roofs i{display:block;width:23px;height:23px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 2px 4px #ffffff26,inset 0 -3px 5px #0002}.sc-downloads{display:flex;gap:8px;margin-top:24px}.sc-downloads .btn{justify-content:center;flex:1;padding:9px 7px;font-size:11px;white-space:nowrap}.sc-note{font-size:10px;color:var(--ink-3);line-height:1.8;margin-top:11px}.sc-create .sc-panel-head{margin-bottom:17px}.sc-create .sc-label{margin-top:0}.sc-create textarea{display:block;width:100%;resize:vertical;min-height:126px;max-height:360px;padding:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:7px;font-size:12px;line-height:1.85}.sc-create textarea::placeholder{color:var(--ink-3)}.sc-prompt-example{font-size:10px;color:var(--accent);margin-top:10px}.sc-engine{font-size:10px;line-height:1.8;color:var(--ink-3);margin:19px 0 10px}.sc-engine button{color:var(--accent);text-decoration:underline}.sc-generate{width:100%;justify-content:space-between;background:var(--accent);border-color:var(--accent);color:#fff;font-size:12px;padding:12px 14px}.sc-generate:hover{filter:brightness(1.08)}#v-scenes button:disabled{opacity:.45;cursor:not-allowed}.sc-result{font-size:11px;line-height:1.9;color:var(--brick);overflow-wrap:anywhere;margin-top:12px}.sc-result:empty{display:none}.sc-result a{color:var(--accent)}
@media(min-width:1650px){.sc-layout{grid-template-columns:minmax(0,1fr) 330px}.sc-canvas{height:720px}.sc-panel{padding:25px}.sc-heading{margin-bottom:38px}}
@media(max-width:1180px){#v-scenes{padding:28px 22px 45px}.sc-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.sc-panel{padding:18px}.sc-canvas{height:540px}.sc-presets{gap:7px}.sc-presets button{padding:11px 8px;gap:7px}.sc-presets small{font-size:8px}.sc-preset-mark{width:26px;height:33px}.sc-view-tools{gap:0}.sc-toolbar{padding:10px 7px}.sc-toolbar button{padding:7px;font-size:10px}.sc-edition{display:none}}
@media(max-width:950px){.sc-layout{grid-template-columns:minmax(0,1fr)}.sc-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sc-panel+.sc-panel{margin-top:0}.sc-canvas{height:540px}.sc-heading h1{font-size:29px}}
@media(max-width:600px){#v-scenes{padding:23px 14px 45px}.sc-heading{margin-bottom:23px}.sc-heading h1{font-size:26px}.sc-heading p{font-size:11px}.sc-kicker{font-size:9px}.sc-canvas{height:420px}.sc-stage-top{left:14px;right:14px;top:14px}.sc-caption{left:10px;right:10px;bottom:12px;font-size:8px;gap:4px}.sc-side{grid-template-columns:minmax(0,1fr)}.sc-panel{padding:20px}.sc-presets{gap:6px}.sc-presets button{display:block;text-align:left;padding:11px 8px}.sc-presets b{font-size:10px;margin-top:8px}.sc-presets small{font-size:8px}.sc-presets button>span:last-child{display:none}.sc-preset-mark{font-size:14px;width:27px;height:32px}.sc-toolbar{gap:5px}.sc-toolbar button{font-size:10px;padding:7px 6px}.sc-light,.sc-view-tools{gap:0}}
/* Both scene types share one workspace; project content stays in the native app. */
#v-scenes [hidden]{display:none!important}.sc-modes{display:flex;gap:12px;margin-bottom:22px}.sc-modes button{min-width:215px;text-align:left;padding:15px 20px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.sc-modes b{display:block;font-size:13px;font-weight:550}.sc-modes small{display:block;font-size:10px;color:var(--ink-3);margin-top:5px}.sc-modes button[aria-pressed=true]{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent)}.sc-ui-study{min-width:0}.sc-ui-head,.sc-project-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:10px 10px 0 0}.sc-ui-head b,.sc-project-head b{font-size:13px;font-weight:550}.sc-ui-head small,.sc-project-head small{display:block;font-size:10px;color:var(--ink-3);margin-top:5px}.sc-ui-head button,.sc-project-head button{border:1px solid var(--line);border-radius:6px;padding:8px 12px;font-size:11px;white-space:nowrap}.sc-project-head>div:last-child{display:flex;gap:9px}#sc-ui-frame{display:block;width:100%;height:800px;border:1px solid var(--line);border-top:0;background:#111317;border-radius:0 0 10px 10px}.sc-ui-study:fullscreen{background:#111317;display:flex;flex-direction:column;width:100%;height:100%}.sc-ui-study:fullscreen #sc-ui-frame{flex:1;height:0}.sc-ui-study:fullscreen .sc-local-note{display:none}#sc-ui-intro .btn{font-size:11px;margin-top:18px}#sc-ui-intro .sc-note{font-size:12px;line-height:1.9}.sc-projects{margin-bottom:20px}.sc-projects-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.sc-projects-heading h2{font-size:12px;font-weight:550}.sc-projects-heading button{font-size:10px;color:var(--accent)}#sc-project-list{display:flex;gap:8px;overflow:auto;padding-bottom:5px}#sc-project-list button{flex:0 0 210px;border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:10px 13px;text-align:left}#sc-project-list button[aria-current=true]{background:var(--accent-soft);border-color:var(--accent-line)}#sc-project-list b{display:block;font-weight:500;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#sc-project-list small{font-size:9px;color:var(--ink-3);display:block;margin-top:4px}.sc-project-workspace{min-width:0;border-radius:10px;overflow:hidden;background:var(--surface)}#sc-project-app{display:block;width:100%;height:max(760px,calc(100dvh - 290px));border:1px solid var(--line);border-top:0;background:var(--surface)}#sc-project-gate:empty{display:none}.sc-project-workspace:fullscreen{display:flex;flex-direction:column;width:100%;height:100%;background:var(--surface)}.sc-project-workspace:fullscreen #sc-project-app{flex:1;height:0}.sc-project-head{border-radius:10px 10px 0 0}
.sc-demo-actions{display:flex;gap:8px;flex-wrap:wrap}.sc-demo-actions [data-sc-edit-demo],.sc-view-tools [data-sc-edit-demo]{color:var(--accent);border:1px solid var(--accent-line);background:var(--accent-soft)}
@media(max-width:800px){.sc-modes{gap:8px}.sc-modes button{min-width:0;flex:1;padding:12px}.sc-modes b{font-size:12px}.sc-modes small{font-size:9px}.sc-ui-head,.sc-project-head{padding:13px;flex-wrap:wrap}#sc-ui-frame{height:850px}#sc-project-app{height:850px}.sc-project-head button{font-size:10px;padding:7px 9px}.sc-project-head small{font-size:9px}.sc-view-tools,.sc-project-head>div:last-child{flex-wrap:wrap}}
