#vjtop-ref .seedream-tools {position:fixed;inset:0;z-index:25000;display:grid;place-items:center;padding:16px;background:#08090bc7;backdrop-filter:blur(10px);font:13px/1.5 system-ui,"Microsoft YaHei",sans-serif;color:#ededf0;color-scheme:dark;}
#vjtop-ref .seedream-tools[hidden] {display:none;}
#vjtop-ref .seedream-tools * {box-sizing:border-box;}
#vjtop-ref .seedream-tools [hidden] {display:none!important;}
#vjtop-ref .sd-dialog {width:min(1440px,100%);height:min(920px,calc(100dvh - 32px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #37373c;border-radius:14px;background:#1b1b1e;box-shadow:0 24px 100px #0009;}
#vjtop-ref .sd-header {display:flex;align-items:center;justify-content:space-between;flex:none;min-height:52px;gap:12px;padding:8px 16px;border-bottom:1px solid #303034;}
#vjtop-ref .sd-heading-wrap,#vjtop-ref .sd-header-actions {display:flex;align-items:center;gap:10px;min-width:0;}
#vjtop-ref .sd-header-actions {gap:4px;flex:none;}
#vjtop-ref .sd-header h2 {font-size:14px;line-height:1.4;font-weight:600;white-space:nowrap;margin:0;}
#vjtop-ref .sd-caption {margin:0;font-size:12px;color:#9999a3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
#vjtop-ref .sd-caption:empty {display:none;}
#vjtop-ref .sd-body {display:grid;grid-template-columns:minmax(0,1fr) 300px;flex:1;min-height:0;min-width:0;}
#vjtop-ref .sd-stage {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:0;overflow:hidden;padding:12px 16px;background:#111113;}
#vjtop-ref .sd-image-frame {position:relative;max-width:100%;width:100%;max-height:100%;min-height:0;overflow:hidden;flex:0 1 auto;isolation:isolate;background:conic-gradient(#303033 25%,#252527 0 50%,#303033 0 75%,#252527 0) 0 0/20px 20px;}
#vjtop-ref .sd-source {display:block;width:100%;height:100%;object-fit:contain;user-select:none;}
#vjtop-ref .sd-overlay,#vjtop-ref .sd-layer-preview {position:absolute;inset:0;width:100%;height:100%;touch-action:none;}
#vjtop-ref .sd-overlay {cursor:crosshair;}
#vjtop-ref .sd-region {stroke:#929299;stroke-width:1.5;vector-effect:non-scaling-stroke;fill:#ffffff06;stroke-dasharray:6 4;}
#vjtop-ref .sd-region.is-active {stroke:#b58aff;fill:#b58aff12;}
#vjtop-ref .sd-panel {display:flex;flex-direction:column;min-width:0;min-height:0;border-left:1px solid #303034;background:#1d1d20;}
#vjtop-ref .sd-panel-content {overflow:auto;flex:1;min-height:0;padding:14px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#515158 transparent;}
#vjtop-ref .sd-panel-content > h3 {margin:2px 0 12px;font-size:14px;font-weight:600;}
#vjtop-ref .sd-instruction {margin:0;padding:3px 0;border:0;border-bottom:1px solid #303034;border-radius:0;background:transparent;}
#vjtop-ref .sd-instruction.is-active {background:transparent;}
#vjtop-ref .sd-card-header,#vjtop-ref .sd-card-options,#vjtop-ref .sd-drawing-tools {display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
#vjtop-ref .sd-card-header {justify-content:space-between;flex-wrap:nowrap;margin-bottom:6px;}
#vjtop-ref .sd-card-header > .sd-button:not(.sd-instruction-summary) {flex:none;border-color:transparent;padding:4px 5px;color:#a1a1ac;font-size:11px;}
#vjtop-ref .sd-drawing-tools {order:-1;align-self:stretch;margin-bottom:auto;min-height:32px;flex:none;}
#vjtop-ref .sd-drawing-tools:empty {display:none;}
#vjtop-ref .sd-button {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;border:1px solid #3a3a40;border-radius:7px;padding:5px 9px;background:#ffffff04;color:#dcdce2;cursor:pointer;font:inherit;font-size:12px;line-height:1.4;white-space:nowrap;}
#vjtop-ref .sd-button svg {display:block;width:16px;height:16px;flex:none;}
#vjtop-ref .sd-button:hover:not(:disabled) {border-color:#525259;background:#303034;color:#f3f3f5;}
#vjtop-ref .sd-button[aria-pressed=true]:not(.sd-layer-visibility,.sd-layer-name) {border-color:#72588f;background:#2b2533;color:#c3a1fa;}
#vjtop-ref .sd-button:focus-visible,#vjtop-ref .seedream-tools input:focus-visible,#vjtop-ref .seedream-tools textarea:focus-visible,#vjtop-ref .seedream-tools select:focus-visible {outline:2px solid #bfc0cb;outline-offset:2px;}
#vjtop-ref .sd-button:disabled {opacity:.4;cursor:not-allowed;}
#vjtop-ref .sd-header-actions .sd-button {border-color:transparent;background:transparent;}
#vjtop-ref .sd-header-actions .sd-button:hover:not(:disabled) {background:#303034;}
#vjtop-ref .sd-header-actions .sd-close {margin-left:5px;border-left-color:#3a3a40;border-radius:0 7px 7px 0;}
#vjtop-ref .sd-instruction-summary {display:flex;align-items:center;justify-content:flex-start;flex:1;gap:8px;min-width:0;min-height:42px;padding:7px 3px;border-color:transparent;background:transparent;text-align:left;}
#vjtop-ref .sd-instruction-summary:hover:not(:disabled) {border-color:transparent;background:#252528;}
#vjtop-ref .sd-instruction-summary[aria-pressed=true],#vjtop-ref .sd-instruction-summary[aria-expanded=true] {border-color:transparent;background:transparent;color:#e9e9ef;}
#vjtop-ref .sd-instruction-number {display:inline-flex;align-items:center;justify-content:center;flex:none;width:21px;height:21px;border:1px solid #48484f;border-radius:5px;color:#aaaab3;font-size:11px;}
#vjtop-ref .sd-instruction.is-active .sd-instruction-number {border-color:#a785cf;color:#c7a7fb;background:#2b2533;}
#vjtop-ref .sd-instruction-summary-text {flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
#vjtop-ref .sd-instruction-region-count {flex:none;color:#94949e;font-size:11px;font-weight:400;}
#vjtop-ref .sd-instruction-details {padding:1px 3px 12px;}
#vjtop-ref .sd-instruction-text {display:block;width:100%;min-height:100px;max-height:240px;resize:vertical;border:1px solid #38383e;border-radius:7px;padding:9px;background:#161618;color:#eeeef2;font:inherit;font-size:12px;line-height:1.7;}
#vjtop-ref .sd-instruction-text::placeholder {color:#8d8d97;}
#vjtop-ref .sd-card-options {margin-top:8px;}
#vjtop-ref .sd-card-options .sd-button {min-height:28px;padding:4px 7px;font-size:11px;}
#vjtop-ref .sd-panel-content > .sd-button {margin-top:10px;}
#vjtop-ref .sd-note,#vjtop-ref .sd-stage-hint {color:#9999a4;font-size:11px;line-height:1.7;}
#vjtop-ref .sd-stage-hint {flex:none;align-self:stretch;margin:auto 0 0;text-align:left;}
#vjtop-ref .sd-color-label {display:flex;align-items:center;gap:5px;font-size:11px;color:#b9b9c2;}
#vjtop-ref .sd-color-label input[type=color] {width:27px;height:27px;padding:3px;border:1px solid #48484e;border-radius:5px;background:#161618;}
#vjtop-ref .sd-color-label input:disabled {opacity:.4;}
#vjtop-ref .sd-reference {width:100%;display:flex;align-items:center;gap:7px;font-size:11px;min-width:0;}
#vjtop-ref .sd-reference img {width:32px;height:32px;border:1px solid #414147;border-radius:5px;object-fit:cover;}
#vjtop-ref .sd-reference span {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#vjtop-ref .sd-footer {padding:12px 14px;border-top:1px solid #303034;display:flex;flex-direction:column;gap:8px;flex:none;}
#vjtop-ref .sd-resolution,#vjtop-ref .sd-download-format,#vjtop-ref .sd-layer-properties input {border:1px solid #3b3b42;border-radius:7px;padding:7px 8px;background:#171719;color:#e5e5ea;min-width:0;max-width:100%;font:inherit;font-size:12px;}
#vjtop-ref .sd-download-row {display:flex;align-items:center;justify-content:space-between;gap:10px;color:#aaaab5;font-size:11px;}
#vjtop-ref .sd-download-format {width:170px;}
#vjtop-ref .sd-download-format:disabled {opacity:.4;cursor:not-allowed;}
#vjtop-ref .sd-status {margin:0;font-size:11px;line-height:1.6;color:#aaaab5;}
#vjtop-ref .sd-status:empty {display:none;}
#vjtop-ref .sd-validation {margin:0;color:#e0b6b4;font-size:11px;line-height:1.5;}
#vjtop-ref .sd-primary {width:100%;background:#e2e2e7;color:#1b1b20;border-color:#e2e2e7;padding:9px;font-size:12px;font-weight:600;}
#vjtop-ref .sd-primary:hover:not(:disabled) {background:#f4f4f6;border-color:#f4f4f6;color:#1b1b20;}
#vjtop-ref .sd-description {margin:0 0 12px;color:#c3c3cd;font-size:12px;line-height:1.8;}
#vjtop-ref .sd-layer {position:absolute;object-fit:fill;max-width:none;max-height:none;user-select:none;cursor:move;touch-action:none;}
#vjtop-ref .sd-layer-row {display:flex;align-items:center;gap:6px;min-height:46px;padding:4px 5px;margin-bottom:3px;background:transparent;border:1px solid transparent;border-radius:7px;}
#vjtop-ref .sd-layer-row:hover {background:#252529;}
#vjtop-ref .sd-layer-row.is-active {background:#29252e;border-color:#72588f;}
#vjtop-ref .sd-layer-name {flex:1;min-width:0;justify-content:flex-start;text-align:left;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent;padding:4px;}
#vjtop-ref .sd-layer-name > span {min-width:0;overflow:hidden;text-overflow:ellipsis;}
#vjtop-ref .sd-layer-row.is-active .sd-layer-name {color:#c3a1fa;}
#vjtop-ref .sd-layer-thumb {display:block;width:32px;height:32px;flex:none;border:1px solid #4a4a51;border-radius:4px;object-fit:contain;background:conic-gradient(#363639 25%,#29292c 0 50%,#363639 0 75%,#29292c 0) 0 0/10px 10px;}
#vjtop-ref .sd-layer-visibility {width:30px;min-width:30px;padding:5px;flex:none;border-color:transparent;background:transparent;color:#b4b4be;}
#vjtop-ref .sd-layer-visibility[data-visible=false],#vjtop-ref .sd-layer-visibility[aria-pressed=false] {color:#797983;}
#vjtop-ref .sd-layer-properties {display:grid;gap:10px;margin-top:15px;padding:14px 0;border-top:1px solid #303034;}
#vjtop-ref .sd-layer-properties label {display:flex;align-items:center;gap:10px;font-size:11px;color:#a7a7b1;}
#vjtop-ref .sd-layer-properties input[type=number] {width:100px;}
#vjtop-ref .sd-layer-properties .sd-button {white-space:normal;}
#vjtop-ref .sd-layer-transform {position:absolute;border:1.5px solid #b58aff;pointer-events:none;z-index:100;}
#vjtop-ref .sd-layer-move {position:absolute;inset:0;cursor:move;pointer-events:auto;touch-action:none;}
#vjtop-ref .sd-resize-handle {position:absolute;display:block;width:10px;height:10px;min-width:0;min-height:0;padding:0;border:1.5px solid #b58aff;border-radius:2px;background:#f5efff;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%);}
#vjtop-ref .sd-resize-handle::after {position:absolute;inset:-7px;content:'';}
#vjtop-ref .sd-resize-handle:hover:not(:disabled) {border-color:#c9a9ff;background:#fff;}
#vjtop-ref .sd-resize-handle[data-corner=nw] {left:0;top:0;cursor:nwse-resize;}
#vjtop-ref .sd-resize-handle[data-corner=ne] {left:100%;top:0;cursor:nesw-resize;}
#vjtop-ref .sd-resize-handle[data-corner=sw] {left:0;top:100%;cursor:nesw-resize;}
#vjtop-ref .sd-resize-handle[data-corner=se] {left:100%;top:100%;cursor:nwse-resize;}
#vjtop-ref .seedream-tools input[type=checkbox] {accent-color:#bcbcc5;}
@media(max-width:760px) {
  #vjtop-ref .seedream-tools {padding:8px;}
  #vjtop-ref .sd-dialog {height:calc(100dvh - 16px);border-radius:10px;}
  #vjtop-ref .sd-header {min-height:48px;padding:6px 10px;gap:6px;}
  #vjtop-ref .sd-heading-wrap {gap:7px;}
  #vjtop-ref .sd-caption {font-size:11px;}
  #vjtop-ref .sd-body {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(160px,42%) minmax(0,1fr);}
  #vjtop-ref .sd-stage {padding:8px 10px;gap:6px;}
  #vjtop-ref .sd-stage-hint {font-size:10px;line-height:1.5;}
  #vjtop-ref .sd-panel {border-left:0;border-top:1px solid #303034;}
  #vjtop-ref .sd-panel-content {padding:10px 12px;}
  #vjtop-ref .sd-footer {padding:9px 12px;gap:6px;}
  #vjtop-ref .sd-instruction-text {min-height:80px;}
}
@media(max-width:400px) {
  #vjtop-ref .sd-header h2 {font-size:13px;}
  #vjtop-ref .sd-header-actions {gap:1px;}
  #vjtop-ref .sd-header-actions .sd-button {padding:5px 6px;}
  #vjtop-ref .sd-heading-wrap .sd-caption {max-width:48px;}
  #vjtop-ref .sd-card-options {gap:5px;}
}
@media(max-height:520px) {
  #vjtop-ref .seedream-tools {padding:4px;}
  #vjtop-ref .sd-dialog {height:calc(100dvh - 8px);}
  #vjtop-ref .sd-stage-hint {display:none;}
  #vjtop-ref .sd-footer {padding:8px 12px;gap:5px;}
}
@media(max-width:760px) and (max-height:520px) {
  #vjtop-ref .sd-body {display:block;overflow:auto;}
  #vjtop-ref .sd-stage {height:190px;}
  #vjtop-ref .sd-panel-content {max-height:240px;flex:none;overflow:auto;}
}
@media(pointer:coarse) {
  #vjtop-ref .sd-button {min-height:36px;}
  #vjtop-ref .sd-card-options .sd-button {min-height:32px;}
  #vjtop-ref .sd-resize-handle {width:12px;height:12px;min-height:0;}
  #vjtop-ref .sd-resize-handle::after {inset:-10px;}
}

/* Editing uses the compact workbench; layer management keeps its existing layout. */
#vjtop-ref .seedream-tools:is([data-mode=layers],[data-mode=layer_decomposition]) .sd-header-actions .sd-icon {display:none;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-dialog {border-color:#34373c;background:#191b1e;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-header {min-height:49px;padding:8px 12px;border-color:#303339;background:#191b1e;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-header h2 {font-weight:500;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-body {display:grid;grid-template-columns:minmax(0,1fr) 248px;grid-template-rows:minmax(0,1fr);}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-stage {height:auto;padding:13px 16px 18px;gap:14px;background:#101214;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-drawing-tools {align-self:flex-start;gap:3px;min-height:0;padding:3px;border:1px solid #31353b;border-radius:9px;background:#191b1e;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-button {min-height:30px;border-color:transparent;padding:5px 8px;background:transparent;color:#c4c8cf;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-icon {display:block;width:16px;height:16px;flex:none;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-button:hover:not(:disabled) {border-color:transparent;background:#2c2f34;color:#f0f1f4;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-button[aria-pressed=true] {border-color:#786290;background:#2c2636;color:#c6a8ee;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-header-actions {gap:2px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-header-actions .sd-button {width:30px;height:30px;padding:5px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-header-actions .sd-button-label {display:none;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-header-actions .sd-close {border-left-color:#3a3d42;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-image-frame {border-radius:3px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region {fill:#ffffff03;stroke:#969ca5;stroke-width:1;stroke-dasharray:5 4;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region.is-active {fill:#b69ae60b;stroke:#bea0e9;stroke-width:1.5;stroke-dasharray:none;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region-labels {position:absolute;inset:0;z-index:2;pointer-events:none;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region-tag {position:absolute;min-width:22px;min-height:22px;height:22px;padding:0 4px;border:1px solid #747b87;border-radius:5px;background:#343943;color:#eeeef2;font-size:12px;line-height:20px;text-align:center;pointer-events:auto;touch-action:manipulation;transform:translate(4px,4px);}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region-tag.is-active,#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region-tag[aria-pressed=true] {border-color:#c1a4e6;background:#5c4778;color:#fff;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region-tag:hover:not(:disabled) {border-color:#b7bbc3;background:#424853;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region-tag.is-active:hover:not(:disabled) {border-color:#c1a4e6;background:#6c5589;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-stage-hint {color:#9298a2;font-size:11px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-panel {border-color:#303339;background:#1c1e22;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-panel-content {flex:1;min-height:0;max-height:none;padding:0 13px 14px;overflow-y:auto;scrollbar-gutter:stable;overflow-anchor:none;scrollbar-color:#464b54 transparent;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-editing-heading {display:flex;align-items:center;justify-content:space-between;flex:none;gap:8px;margin:0;padding:16px 13px 9px;color:#bfc4cd;font-size:12px;font-weight:500;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-editing-heading > :last-child {color:#888f9a;font-size:11px;font-weight:400;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction {min-width:0;padding:0;border-color:#303339;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-card-header {gap:4px;margin-bottom:0;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-summary {min-height:44px;padding:11px 0;gap:8px;border:0;background:transparent;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-summary > svg {width:14px;height:14px;color:#89929f;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-summary[aria-expanded=true] .sd-summary-chevron {transform:rotate(180deg);}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-number {width:20px;height:20px;border-color:#4a4f57;color:#b2b7c0;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction.is-active .sd-instruction-number {border-color:#a38ac3;background:#2b2534;color:#d0b9ef;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-summary-text {color:#b7bdc7;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction.is-active .sd-instruction-summary-text {color:#eceef2;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-region-count {color:#89929f;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-details {padding:0 0 13px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-text {min-height:96px;max-height:190px;padding:10px;border-color:#383d46;background:#14171b;color:#e5e8ee;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-text::placeholder {color:#89909c;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-card-options {gap:5px;margin-top:9px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-card-options .sd-button {min-height:28px;padding:4px 7px;border-color:#393e47;font-size:11px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-card-meta {display:flex;align-items:center;gap:6px;margin-top:7px;min-width:0;color:#858e9c;font-size:11px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-card-meta > span {flex:1;min-width:0;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-card-meta .sd-button {min-height:25px;padding:3px;font-size:11px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-color-label {min-height:28px;padding:4px 7px;border:1px solid #393e47;border-radius:7px;color:#bfc6d1;cursor:pointer;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-color-label input[type=color] {width:15px;height:15px;padding:0;border:0;border-radius:3px;background:none;cursor:pointer;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-color-label input[type=color]::-webkit-color-swatch-wrapper {padding:0;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-color-label input[type=color]::-webkit-color-swatch {border:0;border-radius:3px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-reference {margin-top:3px;padding:5px;border:1px solid #393e47;border-radius:7px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-reference img {width:27px;height:27px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-editing-add-row {flex:none;padding:8px 13px;border-top:1px solid #303339;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-editing-add-row .sd-button {width:100%;justify-content:flex-start;margin:0;padding-left:0;color:#b4bdca;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-footer {padding:13px;gap:9px;border-color:#32363e;background:#1c1e22;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-output-row {display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;color:#9ca5b3;font-size:11px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-output-row .sd-resolution {min-width:0;max-width:145px;height:34px;padding:6px 7px;border-color:#3b4048;background:#171a1f;color:#ccd2dc;font-size:11px;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-output-row option {background:#1c1e22;color:#ccd2dc;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-submit-row {display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit],[data-mode=layer_decomposition]) .sd-credit {display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--app-purple,#a94aff);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit],[data-mode=layer_decomposition]) .sd-credit-icon {display:block;width:16.8px;height:16.8px;flex:none;background:currentColor;-webkit-mask:url('/assets/credit.svg') center / contain no-repeat;mask:url('/assets/credit.svg') center / contain no-repeat;}
#vjtop-ref .seedream-tools[data-mode=layer_decomposition] .sd-submit-row {display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;}
#vjtop-ref .seedream-tools[data-mode=layer_decomposition] .sd-submit-row .sd-primary {width:auto;flex:none;}
#vjtop-ref .seedream-tools[data-mode=layer_decomposition] .sd-credit-prefix {color:#aaaab5;font-size:11px;}
#vjtop-ref .seedream-tools[data-mode=layer_decomposition] .sd-billing-note {margin:0;color:#aaaab5;font-size:11px;line-height:1.6;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-submit-row .sd-primary {display:grid;place-items:center;flex:none;width:38px;height:38px;min-height:38px;padding:0;border:0;border-radius:12px;background:#dedfe5;color:#20232a;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-submit-row .sd-primary:hover:not(:disabled) {background:#f0f1f4;color:#20232a;}
#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-submit-icon,#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-submit-icon > svg,#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-submit-row .sd-primary > svg {display:block;width:20px;height:20px;flex:none;}
@media(max-width:610px) {
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-body {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(170px,42%) minmax(0,1fr);}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-stage {padding:10px 12px;gap:10px;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-panel {border-left:0;border-top:1px solid #303339;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-editing-heading {padding-top:13px;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-text {min-height:86px;}
}
@media(min-width:611px) and (max-width:760px) {
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-panel {border-left:1px solid #303339;border-top:0;}
}
@media(max-width:610px) and (max-height:520px) {
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-body {display:block;overflow:auto;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-stage {height:190px;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-panel-content {max-height:240px;flex:none;}
}
@media(pointer:coarse) {
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-button,#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-card-options .sd-button,#vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-color-label {min-height:40px;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-instruction-text {font-size:16px;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-region-tag {min-width:25px;min-height:25px;height:25px;line-height:23px;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-submit-row .sd-primary {width:44px;height:44px;min-height:44px;}
  #vjtop-ref .seedream-tools:is([data-mode=interactive],[data-mode=layer_edit]) .sd-output-row .sd-resolution {height:44px;}
}
