#seedance-canvas-view{--ink:#162d49;--line:#d6e1eb;--accent:#126b79;color:var(--ink);min-width:0}
.sc-toolbar,.sc-tools,.sc-viewport,.sc-head,.sc-shot-settings,.sc-links li,.sc-node-footer{display:flex;align-items:center;gap:8px}
.sc-toolbar{justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}
.sc-tools{flex-wrap:wrap}
#sc-status,#sc-mode,#sc-empty p,.sc-receipt,.sc-type{font-size:12px;color:#526c83}
#sc-status[data-error="true"]{color:#a83e22}
#sc-stage{height:clamp(470px,74vh,960px);position:relative;overflow:hidden;border:1px solid #cbd9e4;border-radius:14px;background-color:#f6f9fb;background-image:radial-gradient(circle,#b4c6d2 1px,transparent 1.2px);background-size:24px 24px;touch-action:none;isolation:isolate;cursor:grab}
#sc-stage.sc-dragging{cursor:grabbing}
#sc-world,#sc-lines{position:absolute;inset:0;transform-origin:0 0}
#sc-world{width:0;height:0;inset:auto;left:0;top:0}
#sc-lines{pointer-events:none;height:100%;width:100%}
#sc-empty{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;text-align:center;pointer-events:none;padding:15px}
#sc-empty strong{font-size:20px}
#sc-empty p{max-width:290px;line-height:1.6;margin:8px 0}
.sc-viewport{position:absolute;bottom:12px;right:12px;padding:5px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 2px 10px #26395315;max-width:calc(100% - 24px);cursor:default}
.sc-viewport button,.sc-node button{border:1px solid #c9d9e4;background:white;color:#214056;border-radius:6px;font:inherit;font-size:12px;padding:5px 8px;cursor:pointer}
.sc-viewport button:hover,.sc-node button:hover{background:#edf5f8}
#sc-zoom{font-size:12px;min-width:36px;text-align:center}
#sc-mode:empty{display:none}
.sc-node{position:absolute;left:0;top:0;width:220px;border:1px solid #bdcdd8;border-radius:12px;background:#fff;box-shadow:0 3px 12px #18324d12;cursor:default}
.sc-node.sc-shot{width:310px;border-top:3px solid #305dcc}
.sc-node.sc-asset{border-top:3px solid var(--accent)}
.sc-node.sc-linking{outline:2px solid var(--accent)}
.sc-head{padding:10px 12px;justify-content:space-between;border-bottom:1px solid #e5ecf1;cursor:grab;touch-action:none;user-select:none}
.sc-head:active{cursor:grabbing}
.sc-type{font-weight:700;color:var(--accent)}
.sc-shot .sc-type{color:#345ba5}
.sc-head button,.sc-links button{background:transparent;border:0;padding:3px 5px}
.sc-body{padding:12px;display:grid;gap:9px}
.sc-body img,.sc-body video{width:100%;height:110px;object-fit:contain;border-radius:7px;background:#edf3f5;display:block}
.sc-body audio{width:100%;height:34px}
.sc-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}
.sc-body input,.sc-body select,.sc-body textarea{box-sizing:border-box;width:100%;min-width:0;padding:6px 8px;color:#142c46;background:white;border:1px solid #ccd9e1;border-radius:5px;font:inherit;font-size:13px}
.sc-body textarea{resize:vertical;min-height:70px;height:78px;touch-action:auto}
.sc-shot-settings>*{flex:1}
.sc-shot-settings label{font-size:11px;color:#587086}
.sc-port{align-self:center;display:inline-flex;align-items:center;gap:5px;max-width:100%;touch-action:none}
.sc-node .sc-port{padding:4px 7px;color:var(--accent);border-color:#acccd0}
.sc-port:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.sc-asset .sc-port{justify-self:end;flex-direction:row-reverse}
.sc-node-footer{justify-content:space-between;align-items:center}
.sc-node .sc-send{color:#fff;background:#235cc5;border-color:#235cc5}
.sc-node .sc-send:hover{background:#194eac}
.sc-links{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.sc-links:empty{display:none}
.sc-links li{background:#f1f6f7;border-radius:5px;padding:2px 5px;font-size:11px;color:#335866}
.sc-links li span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-receipt{font-size:11px;overflow-wrap:anywhere;margin:0}
#sc-picker{width:min(460px,92vw);padding:18px;border:1px solid var(--line);border-radius:12px}
#sc-library-list{display:grid;gap:7px;max-height:52vh;overflow:auto}
#sc-library-list button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;overflow-wrap:anywhere}
@media(max-width:700px){#sc-stage{height:65vh;min-height:390px}.sc-tools{gap:5px}.sc-viewport{bottom:8px;right:8px}.sc-toolbar button{font-size:12px}#sc-mode{max-width:130px}}
