/* Cutlib's neutral working surface: quiet materials and explicit task state. */
/* Contain XYFlow's elevated/selected edge SVGs in their own lower layer.
   No per-node z-index overrides: groups, selection, drag and portals keep
   their native ordering and all edge/handle hit targets remain available. */
#root .react-flow__viewport > .react-flow__edges {z-index:0!important;isolation:isolate}
#root .react-flow__viewport > .react-flow__nodes {z-index:1!important}
#root .react-flow__viewport > .react-flow__connection {z-index:0!important}
html[data-cutlib-polish] {--cp-focus:#b4d6e8;--cp-ease:cubic-bezier(.2,.7,.2,1)}
html[data-cutlib-polish][data-web-theme="light"] {--cp-focus:#37728d}
html[data-cutlib-polish] #root :is(.ds-media-toolbar,.ds-editor-controls,.ds-canvas-toolbar,.web-composer-tools) button,
.ct-panel button,.ct-confirm button,.ct-node-exports button,.ct-result-tools button {
 transition:background-color 140ms var(--cp-ease),border-color 140ms var(--cp-ease),color 140ms var(--cp-ease),box-shadow 140ms var(--cp-ease);
 -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
html[data-cutlib-polish] #root :is(.ds-media-toolbar,.ds-editor-controls,.ds-canvas-toolbar,.web-composer-tools) button:focus-visible,
.ct-panel :is(button,input,select,textarea):focus-visible,.ct-confirm button:focus-visible,.ct-node-frame:focus-visible,.ct-node-exports button:focus-visible,.ct-result-tools button:focus-visible {
 outline:2px solid var(--cp-focus);outline-offset:3px;
}
html[data-cutlib-polish] #root :is(.ds-media-toolbar,.ds-editor-controls,.ds-canvas-toolbar,.web-composer-tools) button:active:not(:disabled),
.ct-panel button:active:not(:disabled),.ct-confirm button:active:not(:disabled),.ct-result-tools button:active:not(:disabled) {box-shadow:inset 0 1px 3px #0003}
html[data-cutlib-polish] #root button:disabled {cursor:default}
html[data-cutlib-polish] #root .ds-node-caption > .cl-node-reference-tag[data-cx-reference-label] {font-size:0!important;letter-spacing:0}
html[data-cutlib-polish] #root .ds-node-caption > .cl-node-reference-tag[data-cx-reference-label]::before {content:attr(data-cx-reference-label);font-size:10px;letter-spacing:0;font-weight:450}
html[data-cutlib-polish] #root .ds-node-caption > .cx-reference-a11y {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html[data-cutlib-polish] #root .ds-node-caption > span[title] {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
html[data-cutlib-polish] #root .react-flow__node.dragging :is(.ds-node-surface,.ds-node-caption) {transition:none!important}
html[data-cutlib-polish] #root :is(.cl-agent-mode-menu,.cl-composer-menu,.ds-parameter-portal) {animation:cp-layer-in 150ms var(--cp-ease) both;transform-origin:bottom left}
html[data-cutlib-polish] #root .cl-agent-mode-menu {padding:6px;border-radius:16px;min-width:254px;box-shadow:0 12px 32px #0003}
html[data-cutlib-polish] #root .cl-agent-mode-menu > button {min-height:58px;padding:11px 12px;gap:11px;border-radius:11px}
html[data-cutlib-polish] #root .cl-agent-mode-menu > button > span {display:grid;gap:3px;min-width:0;flex:1;text-align:left}
html[data-cutlib-polish] #root .cl-agent-mode-menu > button strong {font-size:12px;font-weight:500}
html[data-cutlib-polish] #root .cl-agent-mode-menu > button small {font-size:11px;line-height:1.5;font-weight:400}
html[data-cutlib-polish] #root .cl-agent-mode-menu > button[aria-checked="true"] {background:var(--cx-raised,#292929)}
html[data-cutlib-polish] #root .cl-agent-mode-menu > button:focus-visible {outline:2px solid var(--cp-focus);outline-offset:-3px}
html[data-cutlib-polish] #root .clx-agent-activity[data-cx-outcome] {position:relative;padding-left:13px;row-gap:6px}
html[data-cutlib-polish] #root .clx-agent-activity[data-cx-outcome]::before {content:'';position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:50%;background:#a9bac4;box-shadow:0 0 0 3px #b5d7e40c}
html[data-cutlib-polish] #root .clx-agent-activity[data-cx-outcome="processing"][aria-busy="true"]::before {animation:cp-status-breathe 2.2s ease-in-out infinite}
html[data-cutlib-polish] #root .clx-agent-activity[data-cx-outcome="succeeded"]::before {background:#9dbbac}
html[data-cutlib-polish] #root .clx-agent-activity:is([data-cx-outcome="needs_review"],[data-cx-outcome="failed"],[data-cx-outcome="unconfirmed"])::before {background:#d2ae8c}
html[data-cutlib-polish] #root .clx-agent-activity[data-cx-outcome] .clx-activity-label {color:var(--cx-ink,#dedede)}
html[data-cutlib-polish] #root .cx-activity-billing {font-size:10px;line-height:1.5;color:var(--cx-muted,#999);font-variant-numeric:tabular-nums}
html[data-cutlib-polish] #root .cx-agent-capability {display:flex;align-items:center;gap:6px;min-height:22px;margin:0 0 7px;padding:0 2px;color:var(--cx-muted,#999);font:10px/1.5 Inter,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:.1px}
html[data-cutlib-polish] #root .cx-agent-capability::before {content:'';display:block;width:5px;height:5px;border:1px solid currentColor;border-radius:50%;box-sizing:border-box;opacity:.75}
html[data-cutlib-polish] #root .cx-agent-capability[data-state="canvas"] {color:#a8beb9}
html[data-cutlib-polish] #root .cx-agent-capability[data-state="canvas"]::before {background:currentColor;border-color:currentColor}
html[data-cutlib-polish][data-web-theme="light"] #root .cx-agent-capability[data-state="canvas"] {color:#4f7469}
html[data-cutlib-polish] #root .web-thinking:has(.clx-agent-activity[data-cx-outcome]:not([data-cx-outcome="processing"])) > .cl-thinking-dots {display:none}
.ct-panel,.ct-task-menu,.ct-confirm {animation:cp-layer-in 150ms var(--cp-ease) both}
.ct-task-menu {min-width:166px;background:#202020;border:1px solid #ffffff12;border-radius:14px;padding:5px;box-shadow:0 8px 24px #0004;transform-origin:top left}
.ct-panel .ct-task-menu button {min-height:34px;border-radius:9px;color:#d8d8d8}
.ct-panel .ct-task-menu button:focus {outline:none;background:#ffffff0c;color:#fff}
.ct-task-status {font-variant-numeric:tabular-nums}
.ct-toast {display:flex;align-items:center;gap:12px;padding:10px 12px 10px 15px;max-width:min(480px,calc(100vw - 28px));animation:cp-toast-in 160ms var(--cp-ease) both}
.ct-toast-message {min-width:0;overflow-wrap:anywhere}
.ct-toast .ct-toast-close {flex:none;width:24px;height:24px;min-height:24px;padding:0;background:transparent;color:#aaa;border:0;border-radius:6px;font:18px/1 sans-serif;cursor:pointer}
.ct-toast .ct-toast-close:hover {color:#fff;background:#ffffff0a}
.ct-toast .ct-toast-close:focus-visible {outline:2px solid var(--cp-focus);outline-offset:2px}
.ct-panel[aria-busy="true"] .ct-submit {cursor:progress}
@keyframes cp-layer-in {from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}
@keyframes cp-toast-in {from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@keyframes cp-status-breathe {0%,100%{opacity:.45}50%{opacity:1}}
@media(prefers-reduced-motion:reduce) {
 html[data-cutlib-polish] #root :is(.cl-agent-mode-menu,.cl-composer-menu,.ds-parameter-portal),.ct-panel,.ct-task-menu,.ct-confirm,.ct-toast {animation:none!important}
 html[data-cutlib-polish] #root .clx-agent-activity::before {animation:none!important}
 html[data-cutlib-polish] #root :is(.ds-media-toolbar,.ds-editor-controls,.ds-canvas-toolbar,.web-composer-tools) button,.ct-panel button,.ct-confirm button,.ct-node-exports button,.ct-result-tools button {transition:none!important}
}
html[data-web-reduce-motion="true"] :is(.ct-panel,.ct-task-menu,.ct-confirm,.ct-toast),html[data-web-reduce-motion="true"] .ct-panel[aria-busy="true"] .ct-submit,html[data-web-reduce-motion="true"] #root :is(.cl-agent-mode-menu,.cl-composer-menu,.ds-parameter-portal),html[data-web-reduce-motion="true"] #root .clx-agent-activity::before {animation:none!important}
html[data-web-reduce-motion="true"] :is(.ct-panel,.ct-confirm,.ct-node-exports,.ct-result-tools) button {transition:none!important}
html[data-cx-hidden="true"] #root .clx-agent-activity::before {animation-play-state:paused!important}
@media(forced-colors:active) {
 html[data-cutlib-polish] {--cp-focus:Highlight}
 .ct-task-menu,.ct-toast {background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}
 html[data-cutlib-polish] #root .clx-agent-activity::before {background:CanvasText!important;box-shadow:none}
}

/* Theme follows the application's persisted data-web-theme on html. Media
   playback keeps its own black matte; every working/control surface follows. */
html[data-cutlib-polish] {--cp-canvas:#080808;--cp-surface:#171717;--cp-raised:#242424;--cp-hover:#303030;--cp-ink:#dedede;--cp-muted:#929292;--cp-edge:#ffffff20;--cp-line:#ffffff12;--cp-dot:#424242;--cp-scheme:dark}
html[data-cutlib-polish][data-web-theme="light"] {--cp-canvas:#f3f4f6;--cp-surface:#fff;--cp-raised:#f1f2f4;--cp-hover:#e8ebef;--cp-ink:#24272d;--cp-muted:#69727d;--cp-edge:#d7dce3;--cp-line:#e6e9ee;--cp-dot:#c1c8d1;--cp-scheme:light}
html[data-cutlib-polish] #root button[data-cx-theme-native="true"] {display:none!important}
html[data-cutlib-polish] #root .cx-theme-choice-row {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:46px;padding:6px 10px;color:var(--cl-text,var(--cp-ink));font:inherit;font-size:12px;line-height:1.5}
html[data-cutlib-polish] #root .cx-theme-choices {display:flex;gap:3px;padding:3px;background:var(--cl-input,var(--cp-raised));border:1px solid var(--cl-border,var(--cp-line));border-radius:9px}
html[data-cutlib-polish] #root .cx-theme-choices>button {display:block;min-width:48px;min-height:28px;margin:0;padding:4px 9px;border:1px solid transparent;border-radius:6px;background:transparent;box-shadow:none;color:var(--cl-muted,var(--cp-muted));font:inherit;font-size:11px;line-height:1.4;cursor:pointer;transition:background-color 130ms ease,color 130ms ease,border-color 130ms ease}
html[data-cutlib-polish] #root .cx-theme-choices>button[aria-pressed="true"] {background:var(--cl-surface,var(--cp-surface));color:var(--cl-text,var(--cp-ink));border-color:var(--cl-border-strong,var(--cp-edge));box-shadow:0 1px 3px #0000000a}
html[data-cutlib-polish] #root .cx-theme-choices>button:hover:not(:disabled) {color:var(--cl-text,var(--cp-ink));background:var(--cl-hover,var(--cp-hover))}
html[data-cutlib-polish] #root .cx-theme-choices>button:focus-visible {outline:2px solid var(--cp-focus);outline-offset:2px}
html[data-cutlib-polish][data-web-theme="light"] #root .ds-studio {--ds-bg:var(--cp-canvas);--ds-panel:var(--cp-surface);--ds-raised:var(--cp-raised);--ds-border:var(--cp-edge);--ds-text:var(--cp-ink);--ds-muted:var(--cp-muted);--studio-canvas:var(--cp-canvas);--studio-surface:var(--cp-surface);--studio-panel:var(--cp-surface);--studio-raised:var(--cp-raised);--studio-ink:var(--cp-ink);--studio-caption:var(--cp-muted);--studio-border:var(--cp-edge);color-scheme:light}
html[data-cutlib-polish][data-web-theme="light"] body.ct-tools-workspace #root .ds-studio-immersive :is(.ds-canvas-stage,.react-flow) {background:var(--cp-canvas)!important;--studio-canvas:var(--cp-canvas);--studio-dot:var(--cp-dot);--xy-background-color:var(--cp-canvas);--xy-edge-stroke:#a8b1bc;--xy-edge-stroke-selected:#50748e;--xy-connectionline-stroke:#50748e;--xy-minimap-background-color:var(--cp-surface);--xy-minimap-mask-background-color:#e8ebefb3}
html[data-cutlib-polish][data-web-theme="light"] body.ct-tools-workspace #root .ds-studio-immersive .react-flow__background {background-color:var(--cp-canvas);opacity:.8!important}
html[data-cutlib-polish][data-web-theme="light"] body.ct-tools-workspace #root .ds-studio-immersive .react-flow__background circle {fill:var(--cp-dot)!important}
html[data-cutlib-polish][data-web-theme="light"] body.ct-tools-workspace #root .ds-studio-immersive .react-flow__background path {stroke:var(--cp-dot)!important}

html[data-cutlib-polish][data-web-theme="light"] :is(.ct-panel,.ct-confirm,.ct-toast,.cttl-menu) {--ct-bg:var(--cp-surface);--ct-line:var(--cp-edge);--ct-text:var(--cp-ink);--ct-muted:var(--cp-muted);background:var(--cp-surface);color:var(--cp-ink);border-color:var(--cp-edge);color-scheme:light;box-shadow:0 6px 24px #24314714}
html[data-cutlib-polish][data-web-theme="light"] .ct-panel :is(.ct-task-pill,.ct-task-menu) {background:var(--cp-surface);color:var(--cp-ink);border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] :is(.ct-panel,.ct-confirm) button {background:var(--cp-raised);color:var(--cp-ink);border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] :is(.ct-panel,.ct-confirm) button:hover:not(:disabled) {background:var(--cp-hover);color:var(--cp-ink)}
html[data-cutlib-polish][data-web-theme="light"] .ct-panel .ct-task-menu button {background:transparent;color:var(--cp-ink)}
html[data-cutlib-polish][data-web-theme="light"] .ct-panel .ct-task-menu button:is(:hover,:focus) {background:var(--cp-hover);color:var(--cp-ink)}
html[data-cutlib-polish][data-web-theme="light"] .ct-panel :is(.ct-task-status,.ct-icon,.ct-source-filename,.ct-panorama-hint,.ct-parameter-label) {color:var(--cp-muted)}
html[data-cutlib-polish][data-web-theme="light"] .ct-panel input:not([type="checkbox"]):not([type="range"]),html[data-cutlib-polish][data-web-theme="light"] .ct-panel select,html[data-cutlib-polish][data-web-theme="light"] .ct-generation-prompt {background:var(--cp-surface);color:var(--cp-ink);border-color:var(--cp-edge);color-scheme:light}
html[data-cutlib-polish][data-web-theme="light"] .ct-panel .ct-submit,html[data-cutlib-polish][data-web-theme="light"] .ct-confirm .ct-primary {background:#24272d;color:#fff;border-color:#24272d;box-shadow:0 0 0 4px #24272d0a}
html[data-cutlib-polish][data-web-theme="light"] .ct-submit .ct-icon {color:#fff}
html[data-cutlib-polish][data-web-theme="light"] .ct-panel .ct-submit:hover:not(:disabled) {background:#353a43;color:#fff}
html[data-cutlib-polish][data-web-theme="light"] .ct-error {color:#9d3d43;background:#fdf2f2;border-color:#e7c4c8}
html[data-cutlib-polish][data-web-theme="light"] .ct-toast.is-error {color:#9d3d43}
html[data-cutlib-polish][data-web-theme="light"] .ct-toast .ct-toast-close {background:transparent;color:var(--cp-muted)}
html[data-cutlib-polish][data-web-theme="light"] .ct-toast .ct-toast-close:hover {background:var(--cp-hover);color:var(--cp-ink)}
html[data-cutlib-polish][data-web-theme="light"] :is(.ct-node-placeholder,.ct-node-filmstrip,.ct-result-tools) {background:var(--cp-surface);color:var(--cp-muted);border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] :is(.ct-node-symbol,.ct-frame-count) {color:var(--cp-muted)}
html[data-cutlib-polish][data-web-theme="light"] .ct-node-filmstrip .ct-node-frame.is-active {background:var(--cp-raised);border-color:#718493}
html[data-cutlib-polish][data-web-theme="light"] .ct-result-tools button,html[data-cutlib-polish][data-web-theme="light"] .ct-node-exports button {background:var(--cp-surface);color:var(--cp-ink);border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] .ct-result-tools button:hover,html[data-cutlib-polish][data-web-theme="light"] .ct-node-exports button:hover {background:var(--cp-hover)}

/* Timeline track/metadata surfaces adapt; thumbnails retain their real pixels. */
html[data-cutlib-polish][data-web-theme="light"] .cttl {--cttl-surface:var(--cp-surface);--cttl-track:var(--cp-raised);--cttl-line:var(--cp-edge);--cttl-muted:var(--cp-muted);background:var(--cp-surface);color:var(--cp-ink);border-color:var(--cp-edge);color-scheme:light}
html[data-cutlib-polish][data-web-theme="light"] .cttl :is(.cttl-toolbar,.cttl-labels,.cttl-ruler-corner,.cttl-ruler) {background:var(--cp-surface);border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] .cttl :is(.cttl-track-label,.cttl-lane,.cttl-video-lane,.cttl-audio-lane:nth-of-type(even)) {background:var(--cp-raised);border-color:var(--cp-line)}
html[data-cutlib-polish][data-web-theme="light"] .cttl :is(.cttl-timecode,.cttl-zoom-label,.cttl-track-title,.cttl-track-mute,.cttl-tick,.cttl-button) {color:var(--cp-muted)}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-tick,html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-tick::after {border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-button:hover {background:var(--cp-hover);color:var(--cp-ink)}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-empty-track {color:#8d96a1}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-audio-clip {background:#d9e8e0;color:#345d4c;border-color:#9ebcab}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-clip.is-selected {border-color:#465e71;box-shadow:inset 0 0 0 1px #465e7133}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-clip.is-selected .cttl-trim-handle {background:#526c80}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-scroll {scrollbar-color:#bac2cd var(--cp-raised)}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-scroll::-webkit-scrollbar-thumb {background:#bac2cd}
html[data-cutlib-polish][data-web-theme="light"] .cttl .cttl-scroll::-webkit-scrollbar-track {background:var(--cp-raised)}
html[data-cutlib-polish][data-web-theme="light"] .cttl-menu :is(.cttl-menu-heading,.cttl-menu-gain output) {color:var(--cp-muted);border-color:var(--cp-line)}
html[data-cutlib-polish][data-web-theme="light"] .cttl-menu .cttl-menu-action {background:transparent;color:var(--cp-ink)}
html[data-cutlib-polish][data-web-theme="light"] .cttl-menu .cttl-menu-action:hover {background:var(--cp-hover)}
html[data-cutlib-polish][data-web-theme="light"] .cttl-menu .cttl-menu-action.is-danger {color:#9d3d43}
html[data-cutlib-polish][data-web-theme="light"] .cttl-menu select {background:var(--cp-surface);color:var(--cp-ink);border-color:var(--cp-edge)}

html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] {color:var(--cp-ink);color-scheme:light}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] :is(.ct-frames-tabs,.ct-frames-time-chip,.ct-frames-selected-chip) {background:var(--cp-raised);color:var(--cp-ink)}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] button.ct-frames-tab {background:transparent;color:var(--cp-muted)}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] button.ct-frames-tab.is-active {background:var(--cp-surface);color:var(--cp-ink);box-shadow:0 1px 3px #24314712}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] :is(.ct-frames-label,.ct-frames-subcard-title,.ct-frames-special-title) {color:var(--cp-ink)}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] :is(.ct-frames-caption,.ct-frames-range-note,.ct-frames-count,.ct-frames-hint,.ct-frames-selected-count,.ct-frames-seek-hint) {color:var(--cp-muted)}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] .ct-frames-subcard {border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] input.ct-frames-number[type="number"] {background:var(--cp-surface);color:var(--cp-ink);border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] :is(.ct-frames-time-jump,.ct-frames-time-remove) {color:var(--cp-ink);background:transparent}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] .ct-frames-seek {background:var(--cp-raised)}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] .ct-frames-seek-fill {background:#dce2e9}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] .ct-frames-marker {background:#63798a}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] input.ct-frames-range::-webkit-slider-runnable-track {background:#ccd3dc}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] input.ct-frames-range::-webkit-slider-thumb {background:#526c80}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] input.ct-frames-range::-moz-range-track {background:#ccd3dc}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] input.ct-frames-range::-moz-range-thumb {background:#526c80}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] button.ct-frames-play {background:transparent;color:#fff}
html[data-cutlib-polish][data-web-theme="light"] .ct-frames[data-ct-frames] .ct-frames-error {color:#9d3d43}
html[data-cutlib-polish][data-web-theme="light"] .cl-pano-overlay {--pano-bg:var(--cp-surface);--pano-surface:var(--cp-surface);--pano-raised:var(--cp-raised);--pano-line:var(--cp-line);--pano-edge:var(--cp-edge);--pano-ink:var(--cp-ink);--pano-muted:var(--cp-muted);color-scheme:light}
html[data-cutlib-polish][data-web-theme="light"] .cl-group-toolbar>.cl-group-action {background:var(--cp-surface);color:var(--cp-ink);border-color:var(--cp-edge)}
html[data-cutlib-polish][data-web-theme="light"] dialog.cl-group-review {--cl-surface:var(--cp-surface);--cl-border:var(--cp-line);--cl-border-strong:var(--cp-edge);--cl-text:var(--cp-ink);--cl-muted:var(--cp-muted);--cl-hover:var(--cp-hover);--cl-button:#24272d;--cl-ink:#fff;color-scheme:light}
@media(prefers-reduced-motion:reduce) {html[data-cutlib-polish] #root .cx-theme-choices>button {transition:none}}
html[data-cutlib-polish][data-web-reduce-motion="true"] #root .cx-theme-choices>button {transition:none}

/* Canvas chrome follows the reference: two corners, a creation rail and a
   floating viewport strip. Media pixels and saved node coordinates are intact. */
html[data-cutlib-polish] #root .ds-studio-immersive .ds-immersive-header{inset:12px 14px auto;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-immersive-project{min-width:0;max-width:min(440px,45vw);background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-project-title{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-floating-island{min-height:38px;border-radius:10px}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-immersive-actions{grid-column:2;justify-self:end}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail{left:12px;top:50%;bottom:auto;transform:translateY(-50%);width:46px;padding:6px 4px;gap:3px;border-radius:13px;box-sizing:border-box;background:var(--cp-surface,#222225);border:1px solid var(--cp-line,#ffffff0c);box-shadow:0 4px 20px #00000012;max-height:calc(100% - 164px);overflow-y:auto;scrollbar-width:none}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail button{width:36px;height:38px;min-height:38px;flex-shrink:0;border:0;border-radius:8px;padding:8px;background:transparent;color:var(--cp-ink,#e5e4e7);transition:background 160ms,color 160ms,transform 160ms}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail .ds-rail-plus{display:none}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail button:hover{background:var(--cp-hover,#ffffff0a);color:#f0abc5}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail button:active{transform:scale(.93)}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail button:focus-visible{outline:2px solid #d99ab4;outline-offset:-2px}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail button[aria-label="打开素材库"]{margin-top:8px;position:relative}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail button[aria-label="打开素材库"]::before{content:'';position:absolute;top:-6px;left:6px;right:6px;height:1px;background:var(--cp-line,#ffffff0b)}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-immersive-knowledge{inset:66px 14px 14px;border-radius:14px;background:var(--cp-surface,#171719);border-color:var(--cp-line,#ffffff10);animation:lz-panel-enter 200ms cubic-bezier(.2,.75,.25,1)}
html[data-cutlib-polish] #root .ds-studio-immersive .ds-immersive-panel-heading{background:var(--cp-surface,#202024);color:var(--cp-ink,#f5f3f4);border-color:var(--cp-line,#ffffff0a)}
html[data-cutlib-polish] #root .ds-studio-immersive .lz-canvas-welcome{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:18px;color:var(--cp-muted,#97949b);font-size:14px;white-space:nowrap;pointer-events:none;z-index:1}
html[data-cutlib-polish] #root .ds-studio-immersive .lz-canvas-welcome::before{content:'';position:absolute;inset:-130px -110px;z-index:-1;background:radial-gradient(ellipse,#eab4ca0b,transparent 70%);pointer-events:none}
html[data-cutlib-polish] #root .ds-studio-immersive .lz-canvas-welcome svg{color:#f0b2ca;filter:drop-shadow(0 3px 10px #f0b2ca26);animation:lz-cursor-breathe 4s ease-in-out infinite}
@keyframes lz-panel-enter{from{opacity:0;transform:translateY(8px) scale(.995)}to{opacity:1;transform:none}}
@keyframes lz-cursor-breathe{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-4px) rotate(0)}}
@media(max-width:760px){html[data-cutlib-polish] #root .ds-studio-immersive .ds-immersive-header{inset:8px;gap:5px}html[data-cutlib-polish] #root .ds-studio-immersive .ds-immersive-project{max-width:46vw;padding:2px}html[data-cutlib-polish] #root .ds-studio-immersive .ds-project-title{max-width:105px}html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail{left:8px;width:42px;padding:4px 2px;max-height:calc(100% - 150px)}html[data-cutlib-polish] #root .ds-studio-immersive .ds-canvas-rail button{height:38px;min-height:38px}html[data-cutlib-polish] #root .ds-studio-immersive .ds-immersive-knowledge{inset:58px 8px 8px}html[data-cutlib-polish] #root .ds-studio-immersive .lz-canvas-welcome{font-size:12px;gap:10px;left:55%}}
@media(prefers-reduced-motion:reduce){html[data-cutlib-polish] #root .ds-studio-immersive :is(.ds-immersive-knowledge,.ds-canvas-rail button,.lz-canvas-welcome svg){animation:none;transition:none}}
html[data-cutlib-polish][data-web-reduce-motion=true] #root .ds-studio-immersive :is(.ds-immersive-knowledge,.ds-canvas-rail button,.lz-canvas-welcome svg){animation:none;transition:none}
