:root {
    --gs-bg: #050914;
    --gs-surface: rgba(13, 21, 42, 0.72);
    --gs-surface-strong: rgba(15, 26, 53, 0.94);
    --gs-line: rgba(155, 183, 255, 0.17);
    --gs-line-strong: rgba(129, 182, 255, 0.44);
    --gs-text: #f4f7ff;
    --gs-text-muted: #96a7c8;
    --gs-cyan: #53e7ff;
    --gs-mint: #57f0ba;
    --gs-violet: #9b80ff;
    --gs-orange: #ffb36b;
    --gs-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --gs-chat-backdrop: linear-gradient(180deg, rgba(5, 10, 24, 0.97) 0%, rgba(7, 15, 34, 0.95) 72%, rgba(10, 21, 43, 0.97) 100%);
    --gs-chat-shadow: 0 30px 90px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 255, 255, 0.04);
    --gs-radius: 22px;
    --gs-brightness: 1;
    font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
    color: var(--gs-text);
    background: var(--gs-bg);
}

.gs-shell[data-theme="light"] {
    --gs-bg: #eef5ff;
    --gs-surface: rgba(244, 249, 255, 0.78);
    --gs-surface-strong: rgba(255, 255, 255, 0.96);
    --gs-line: rgba(36, 86, 157, 0.18);
    --gs-line-strong: rgba(35, 111, 190, 0.5);
    --gs-text: #12213c;
    --gs-text-muted: #536985;
    --gs-shadow: 0 24px 70px rgba(44, 74, 124, 0.16);
    --gs-chat-backdrop: linear-gradient(180deg, rgba(244, 249, 255, 0.97) 0%, rgba(238, 246, 255, 0.95) 72%, rgba(247, 251, 255, 0.98) 100%);
    --gs-chat-shadow: 0 28px 80px rgba(44, 74, 124, 0.22), inset 0 1px rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(1200px 680px at 50% -180px, rgba(85, 169, 255, 0.25), transparent 64%),
        radial-gradient(820px 560px at 4% 100%, rgba(83, 231, 255, 0.15), transparent 71%),
        radial-gradient(780px 540px at 100% 85%, rgba(155, 128, 255, 0.13), transparent 72%),
        var(--gs-bg);
}

.gs-shell[data-theme="light"] .gs-grid {
    opacity: 0.84;
}

.gs-shell[data-theme="light"] .gs-canvas-vignette {
    background: radial-gradient(75% 70% at 50% 42%, transparent 45%, rgba(68, 120, 182, 0.08) 100%);
}

.gs-shell[data-theme="light"] .gs-producer-card,
.gs-shell[data-theme="light"] .gs-workflow-card,
.gs-shell[data-theme="light"] .gs-composer-body,
.gs-shell[data-theme="light"] .gs-composer-context,
.gs-shell[data-theme="light"] .gs-rail-shell,
.gs-shell[data-theme="light"] .gs-workflow-toolbar,
.gs-shell[data-theme="light"] .gs-selection-toolbar {
    color: #132644;
    background: rgba(247, 251, 255, 0.7);
}

.gs-shell[data-theme="light"] .gs-producer-brand,
.gs-shell[data-theme="light"] .gs-model-capability-summary,
.gs-shell[data-theme="light"] .gs-model-description,
.gs-shell[data-theme="light"] .gs-display-title,
.gs-shell[data-theme="light"] .gs-node-text-panel,
.gs-shell[data-theme="light"] .gs-rail-title-wrap h1,
.gs-shell[data-theme="light"] .gs-agent-empty h2 {
    color: #132644;
}

.gs-shell[data-theme="light"] .gs-node-field select,
.gs-shell[data-theme="light"] .gs-node-field input,
.gs-shell[data-theme="light"] .gs-node-field textarea,
.gs-shell[data-theme="light"] .gs-composer-new-conversation,
.gs-shell[data-theme="light"] .gs-reference-button,
.gs-shell[data-theme="light"] .gs-style-preset-entry,
.gs-shell[data-theme="light"] .gs-locale-switch,
.gs-shell[data-theme="light"] .gs-canvas-controls {
    color: #264669;
    background: rgba(229, 241, 255, 0.88);
}

.gs-shell[data-theme="light"] .gs-model-chip,
.gs-shell[data-theme="light"] .gs-appearance-controls,
.gs-shell[data-theme="light"] .gs-rail-nav,
.gs-shell[data-theme="light"] .gs-workflow-toolbar button,
.gs-shell[data-theme="light"] .gs-selection-toolbar button,
.gs-shell[data-theme="light"] .gs-workflow-toolbar select {
    color: #183556;
    background: rgba(233, 244, 255, 0.9);
}

.gs-shell[data-theme="light"] .gs-composer textarea,
.gs-shell[data-theme="light"] .gs-display-title,
.gs-shell[data-theme="light"] .gs-producer-brand strong,
.gs-shell[data-theme="light"] .gs-node-text-panel,
.gs-shell[data-theme="light"] .gs-node-text-panel.is-output p {
    color: #142d4e;
}

.gs-shell[data-theme="light"] .gs-node-rich-panel.is-dragover {
    background: rgba(57, 170, 216, 0.12);
}

.gs-shell[data-theme="light"] .gs-rich-image > img {
    background: rgba(211, 229, 248, 0.72);
}

.gs-shell[data-theme="light"] .gs-agent-message.is-assistant .gs-agent-message-content,
.gs-shell[data-theme="light"] .gs-agent-message.is-assistant .gs-agent-message-content strong {
    color: #174f73;
}

.gs-shell[data-theme="light"] .gs-agent-message.is-assistant .gs-agent-message-role {
    color: #237ba3;
}

.gs-shell[data-theme="light"] .gs-agent-message.is-user .gs-agent-message-content,
.gs-shell[data-theme="light"] .gs-agent-message.is-user .gs-agent-message-content strong {
    color: #8a4b16;
}

.gs-shell[data-theme="light"] .gs-agent-message.is-user .gs-agent-message-role {
    color: #b66720;
}

body[data-gs-theme="light"] {
    background: #eef5ff;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--gs-bg);
}

button,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gs-cyan);
    outline-offset: 3px;
}

.gs-shell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: clip;
    isolation: isolate;
    filter: brightness(var(--gs-brightness));
    background:
        radial-gradient(1200px 680px at 50% -180px, rgba(63, 113, 214, 0.16), transparent 64%),
        radial-gradient(820px 560px at 4% 100%, rgba(83, 231, 255, 0.08), transparent 71%),
        radial-gradient(780px 540px at 100% 85%, rgba(155, 128, 255, 0.1), transparent 72%),
        var(--gs-bg);
    transition: filter 120ms linear;
}

.gs-aurora {
    position: absolute;
    z-index: -2;
    width: 54vw;
    height: 42vw;
    min-width: 440px;
    min-height: 340px;
    border-radius: 50%;
    filter: blur(54px);
    opacity: 0.2;
    pointer-events: none;
}

.gs-aurora-one {
    top: -28vw;
    left: 18vw;
    background: #327dff;
}

.gs-aurora-two {
    right: -24vw;
    bottom: -28vw;
    background: #873cff;
}

.gs-header {
    position: absolute;
    z-index: 20;
    top: 22px;
    right: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.gs-wordmark,
.gs-header-actions,
.gs-account-strip,
.gs-model-rail,
.gs-composer,
.gs-plan-dialog,
.gs-account-dialog,
.gs-node {
    pointer-events: auto;
}

.gs-header-primary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: clamp(10px, 1.4vw, 20px);
}

.gs-wordmark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.gs-wordmark-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 0 10px rgba(83, 231, 255, 0.34));
}

.gs-wordmark-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gs-wordmark .gs-xiaotu-logo-wrap {
    width: 38px;
}

.gs-wordmark .gs-xiaotu-logo-wrap::before {
    width: 17px;
    height: 17px;
    filter: blur(3px);
}

.gs-wordmark .gs-xiaotu-logo {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 7px rgba(83, 231, 255, 0.46)) drop-shadow(0 0 16px rgba(137, 88, 255, 0.2));
}

.gs-wordmark .gs-agent-entry-brand {
    margin-top: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.gs-wordmark-copy {
    display: grid;
    gap: 2px;
}

.gs-wordmark-copy strong {
    font-size: 13px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.gs-wordmark-copy small {
    color: var(--gs-text-muted);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.gs-account-strip {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 5px;
    padding: 3px 5px;
    border: 1px solid rgba(110, 191, 255, 0.2);
    border-radius: 999px;
    background: rgba(6, 17, 36, 0.66);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
}

.gs-account-avatar {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(101, 226, 255, 0.34);
    border-radius: 50%;
    color: #06101f;
    background: linear-gradient(145deg, #5fe9ff, #ae9cff);
    font-size: 10px;
    font-weight: 800;
}

.gs-account-user {
    max-width: 104px;
    overflow: hidden;
    padding: 0 3px;
    color: var(--gs-text);
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-account-action {
    min-height: 23px;
    padding: 0 7px;
    border: 0;
    border-radius: 999px;
    color: #bfeaff;
    background: transparent;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.gs-account-action:hover,
.gs-account-action:focus-visible {
    color: #f4fdff;
    background: rgba(76, 194, 255, 0.14);
    outline: none;
}

.gs-account-action:disabled {
    cursor: progress;
    opacity: 0.5;
}

#studioAccountAuth[data-mode="logout"],
#studioAccountRecharge {
    font-size: 8px;
    letter-spacing: 0.03em;
}

#studioAccountAuth[data-mode="logout"] {
    color: #f3a4bd;
}

#studioAccountRecharge {
    color: #f4ca78;
}

#studioAccountAuth[data-mode="logout"]:hover,
#studioAccountAuth[data-mode="logout"]:focus-visible {
    color: #ffd3df;
    background: rgba(225, 93, 137, 0.13);
}

#studioAccountRecharge:hover,
#studioAccountRecharge:focus-visible {
    color: #ffe7a5;
    background: rgba(236, 179, 71, 0.13);
}

.gs-account-credits {
    min-width: 58px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #86f8c8;
    background: rgba(23, 113, 89, 0.18);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

.gs-account-dialog {
    width: min(390px, calc(100vw - 28px));
    padding: 0;
    border: 1px solid rgba(111, 200, 255, 0.28);
    border-radius: 20px;
    color: var(--gs-text);
    background: rgba(8, 19, 39, 0.96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), 0 0 44px rgba(83, 231, 255, 0.12);
    backdrop-filter: blur(24px);
}

.gs-account-dialog::backdrop {
    background: rgba(1, 6, 16, 0.7);
    backdrop-filter: blur(5px);
}

.gs-account-dialog-inner {
    position: relative;
    display: grid;
    gap: 14px;
    max-height: calc(100dvh - 28px);
    padding: 24px;
    overflow-y: auto;
}

.gs-account-dialog-inner h2 {
    margin: 0;
    font-size: 22px;
}

.gs-account-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--gs-line);
    border-radius: 50%;
    color: var(--gs-text-muted);
    background: rgba(8, 19, 39, 0.72);
    cursor: pointer;
}

.gs-account-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(115, 185, 255, 0.16);
    border-radius: 13px;
    background: rgba(3, 11, 25, 0.58);
}

.gs-account-auth-tabs[hidden] {
    display: none;
}

.gs-account-auth-tabs button {
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    color: var(--gs-text-muted);
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.gs-account-auth-tabs button[aria-selected="true"] {
    color: #06101f;
    background: linear-gradient(135deg, rgba(83, 231, 255, 0.94), rgba(179, 156, 255, 0.92));
    box-shadow: 0 6px 18px rgba(83, 231, 255, 0.13);
}

.gs-account-auth-tabs button:focus-visible {
    outline: 2px solid rgba(83, 231, 255, 0.72);
    outline-offset: 2px;
}

.gs-account-panel {
    display: grid;
    gap: 12px;
}

.gs-account-panel[hidden] {
    display: none;
}

.gs-account-panel label {
    display: grid;
    gap: 6px;
    color: var(--gs-text-muted);
    font-size: 10px;
}

.gs-account-panel input {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(115, 185, 255, 0.22);
    border-radius: 12px;
    color: var(--gs-text);
    background: rgba(3, 11, 25, 0.72);
    outline: none;
    user-select: text;
}

.gs-account-panel input:focus {
    border-color: rgba(83, 231, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(83, 231, 255, 0.1);
}

.gs-account-submit {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    color: #06101f;
    background: linear-gradient(135deg, var(--gs-cyan), #99deff 54%, #b39cff);
    font-weight: 800;
    cursor: pointer;
}

.gs-account-submit:disabled {
    cursor: progress;
    opacity: 0.55;
}

.gs-account-message {
    min-height: 18px;
    margin: 0;
    color: #ffd899;
    font-size: 10px;
}

.gs-account-message[data-tone="error"] {
    color: #ff9aa9;
}

.gs-account-message[data-tone="success"] {
    color: #83f5c3;
}

.gs-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gs-production-studio {
    position: relative;
    pointer-events: auto;
}

.gs-production-studio-trigger {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid rgba(119, 190, 255, 0.22);
    border-radius: 999px;
    color: #d8f3ff;
    background: linear-gradient(135deg, rgba(11, 31, 62, 0.86), rgba(26, 22, 68, 0.8));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.04);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.gs-production-studio-trigger svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #6ee7ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.gs-production-studio-trigger:hover,
.gs-production-studio-trigger[aria-expanded="true"] {
    border-color: rgba(83, 231, 255, 0.58);
    color: #fff;
    background: linear-gradient(135deg, rgba(18, 51, 92, 0.94), rgba(42, 31, 93, 0.92));
}

.gs-director-tools-entry {
    border-color: rgba(242, 184, 102, 0.34);
    color: #ffe8bd;
    background: linear-gradient(135deg, rgba(69, 48, 25, 0.9), rgba(45, 28, 63, 0.84));
}

.gs-director-tools-entry svg {
    stroke: #f2b866;
}

.gs-director-tools-entry:hover,
.gs-director-tools-entry:focus-visible {
    border-color: rgba(255, 205, 125, 0.72);
    color: #fff7e8;
    background: linear-gradient(135deg, rgba(94, 63, 29, 0.96), rgba(61, 38, 82, 0.94));
}

.gs-production-studio-chevron {
    color: #98aed0;
    transition: transform 160ms ease;
}

.gs-production-studio.is-open .gs-production-studio-chevron {
    transform: rotate(180deg);
}

.gs-production-studio-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 30px));
    max-height: min(620px, calc(100vh - 92px));
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(120, 190, 255, 0.25);
    border-radius: 16px;
    color: var(--gs-text);
    background: linear-gradient(155deg, rgba(8, 20, 43, 0.98), rgba(13, 16, 45, 0.98));
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px);
}

.gs-production-studio-menu[hidden] {
    display: none;
}

.gs-production-studio-menu > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 3px 10px;
}

.gs-production-studio-menu > header span,
.gs-production-project-type-head > span,
.gs-production-project-item > span {
    min-width: 0;
}

.gs-production-studio-menu > header strong,
.gs-production-studio-menu > header small,
.gs-production-project-type-head strong,
.gs-production-project-type-head small,
.gs-production-project-item strong,
.gs-production-project-item small {
    display: block;
}

.gs-production-studio-menu > header strong {
    font-size: 13px;
}

.gs-production-studio-menu > header small {
    margin-top: 3px;
    color: var(--gs-text-muted);
    font-size: 8px;
}

.gs-production-studio-menu > header button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(83, 231, 255, 0.24);
    border-radius: 8px;
    color: #bff7ff;
    background: rgba(22, 73, 105, 0.32);
    font-size: 9px;
    cursor: pointer;
}

.gs-production-studio-list {
    display: grid;
    max-height: min(520px, calc(100vh - 170px));
    gap: 6px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.gs-production-project-type {
    overflow: hidden;
    border: 1px solid rgba(130, 184, 255, 0.14);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 34, 65, 0.74), rgba(7, 15, 33, 0.88));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.gs-production-project-type-head,
.gs-production-project-create,
.gs-production-project-item {
    width: 100%;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.gs-production-project-type-head {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
}

.gs-production-project-type-head:hover {
    background: rgba(37, 85, 128, 0.22);
}

.gs-production-project-type-head strong {
    font-size: 11px;
}

.gs-production-project-type-mark {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(83, 231, 255, 0.3);
    border-radius: 10px;
    color: #c8faff;
    background: linear-gradient(145deg, rgba(43, 166, 190, 0.32), rgba(91, 63, 177, 0.28));
    box-shadow: 0 0 20px rgba(63, 196, 225, 0.12);
    font-size: 9px;
    font-weight: 800;
}

.gs-production-project-type-head > span:nth-child(2) {
    flex: 1 1 auto;
}

.gs-production-project-type-flow {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #7898ba;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-production-project-type-head small,
.gs-production-project-item small {
    margin-top: 3px;
    color: var(--gs-text-muted);
    font-size: 8px;
}

.gs-production-project-type-arrow {
    color: #87b3dc;
    transition: transform 150ms ease;
}

.gs-production-project-type-head[aria-expanded="false"] .gs-production-project-type-arrow {
    transform: rotate(-90deg);
}

.gs-production-project-items {
    display: grid;
    gap: 4px;
    padding: 0 7px 7px;
}

.gs-production-project-items[hidden] {
    display: none;
}

.gs-production-project-create,
.gs-production-project-item {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.gs-production-project-create {
    color: #89f4da;
    border-color: rgba(81, 238, 196, 0.12);
    background: linear-gradient(135deg, rgba(25, 92, 77, 0.2), rgba(27, 73, 104, 0.18));
    font-size: 9px;
}

.gs-production-project-item {
    color: #dbeeff;
    background: rgba(26, 49, 85, 0.24);
}

.gs-production-project-create:hover,
.gs-production-project-item:hover {
    border-color: rgba(83, 231, 255, 0.34);
    background: rgba(35, 78, 120, 0.42);
}

.gs-production-project-item strong {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-production-project-open {
    flex: 0 0 auto;
    color: #72e7ff;
    font-size: 17px;
}

.gs-production-project-legacy-remark {
    margin: 0 8px 3px;
    color: #c99b69;
    font-size: 8px;
}

.gs-production-studio-status {
    display: block;
    min-height: 18px;
    padding: 7px 4px 0;
    color: #86a9ca;
    font-size: 8px;
}

.gs-production-studio-status[data-tone="error"] {
    color: #ff9fac;
}

.gs-shell[data-theme="light"] .gs-production-studio-trigger,
.gs-shell[data-theme="light"] .gs-production-studio-menu {
    color: #173454;
    background: rgba(245, 251, 255, 0.96);
}

.gs-shell[data-theme="light"] .gs-production-project-type {
    background: rgba(222, 237, 252, 0.66);
}

.gs-shell[data-theme="light"] .gs-production-project-item {
    color: #183556;
    background: rgba(206, 226, 247, 0.58);
}

.gs-production-workspace {
    width: min(1420px, calc(100vw - 44px));
    height: min(900px, calc(100vh - 44px));
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(83, 231, 255, 0.34);
    border-radius: 24px;
    color: #e8f6ff;
    background: #07101e;
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.7), inset 0 1px rgba(255, 255, 255, 0.05);
}

.gs-production-workspace::backdrop {
    background: rgba(1, 5, 13, 0.82);
    backdrop-filter: blur(10px);
}

.gs-production-workspace-shell {
    display: grid;
    height: 100%;
    grid-template-rows: auto 1fr auto;
    background:
        radial-gradient(circle at 78% 18%, rgba(88, 47, 201, 0.18), transparent 32%),
        radial-gradient(circle at 10% 80%, rgba(21, 167, 183, 0.12), transparent 30%),
        linear-gradient(145deg, rgba(6, 17, 34, 0.99), rgba(7, 11, 26, 0.99));
}

.gs-production-workspace-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(112, 190, 255, 0.17);
    background: rgba(8, 19, 39, 0.88);
}

.gs-production-workspace-brand,
.gs-production-workspace-header-actions,
.gs-production-project-meta,
.gs-production-form-actions,
.gs-production-sticky-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gs-production-workspace-brand > b {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(96, 239, 255, 0.45);
    border-radius: 13px;
    color: #a9fbff;
    background: linear-gradient(145deg, rgba(37, 159, 190, 0.35), rgba(97, 61, 194, 0.36));
    box-shadow: 0 0 30px rgba(77, 222, 239, 0.14);
    font-size: 12px;
}

.gs-production-workspace-brand strong,
.gs-production-workspace-brand small {
    display: block;
}

.gs-production-workspace-brand strong {
    font-size: 15px;
}

.gs-production-workspace-brand small {
    margin-top: 4px;
    color: #7895b7;
    font-size: 9px;
}

.gs-production-workspace button {
    border: 1px solid rgba(112, 190, 255, 0.22);
    color: #d9f4ff;
    background: rgba(24, 54, 89, 0.44);
    cursor: pointer;
}

.gs-production-workspace button:hover {
    border-color: rgba(83, 231, 255, 0.58);
}

.gs-production-workspace-header-actions button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
}

.gs-production-workspace-header-actions button:last-child {
    width: 34px;
    padding: 0;
    font-size: 18px;
}

.gs-production-workspace-main {
    min-height: 0;
    padding: 28px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.gs-production-workspace-message {
    display: block;
    min-height: 38px;
    padding: 10px 24px;
    border-top: 1px solid rgba(112, 190, 255, 0.13);
    color: #89a8c7;
    background: rgba(5, 13, 29, 0.92);
    font-size: 10px;
}

.gs-production-workspace-message[data-tone="success"] { color: #7ef2ce; }
.gs-production-workspace-message[data-tone="error"] { color: #ff9fab; }
.gs-production-workspace-message[data-tone="progress"] { color: #8beaff; }

.gs-production-kicker {
    margin: 0 0 8px;
    color: #65e7ef;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gs-production-center-hero,
.gs-production-create-intro,
.gs-production-create-form,
.gs-production-review-head,
.gs-production-project-head,
.gs-production-project-overview > article,
.gs-production-review-grid > label,
.gs-production-review-episode,
.gs-production-center-card {
    border: 1px solid rgba(117, 188, 255, 0.17);
    background: linear-gradient(145deg, rgba(15, 34, 64, 0.76), rgba(8, 17, 35, 0.88));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.gs-production-center-hero {
    position: relative;
    padding: 30px;
    overflow: hidden;
    border-radius: 20px;
}

.gs-production-center-hero::after {
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -170px;
    border-radius: 50%;
    background: rgba(70, 224, 239, 0.12);
    content: '';
    filter: blur(18px);
}

.gs-production-center-hero h2,
.gs-production-create-intro h2,
.gs-production-review-head h2,
.gs-production-project-head h2 {
    margin: 0;
    font-size: clamp(21px, 2.4vw, 34px);
}

.gs-production-center-hero > p:not(.gs-production-kicker),
.gs-production-create-intro > p:not(.gs-production-kicker),
.gs-production-review-head p,
.gs-production-project-head p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #91aac5;
    line-height: 1.75;
}

.gs-production-primary,
.gs-production-secondary,
.gs-production-danger {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 750;
}

.gs-production-primary {
    color: #06222b !important;
    border-color: rgba(114, 247, 255, 0.76) !important;
    background: linear-gradient(135deg, #6ff0ef, #58b7ff) !important;
    box-shadow: 0 10px 28px rgba(64, 205, 233, 0.2);
}

.gs-production-danger {
    color: #ffacb5 !important;
    border-color: rgba(255, 103, 126, 0.28) !important;
    background: rgba(100, 25, 42, 0.26) !important;
}

.gs-production-center-hero .gs-production-primary {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.gs-production-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.gs-production-center-card {
    display: flex;
    min-height: 150px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 15px;
}

.gs-production-center-card h3,
.gs-production-center-card p {
    margin: 8px 0 0;
}

.gs-production-center-card p {
    display: -webkit-box;
    overflow: hidden;
    color: #8da5bf;
    font-size: 10px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gs-production-center-card small {
    display: block;
    margin-top: 13px;
    color: #66839f;
    font-size: 9px;
}

.gs-production-project-badge,
.gs-production-lock-state,
.gs-production-project-meta span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(83, 231, 255, 0.22);
    border-radius: 999px;
    color: #91edf4;
    background: rgba(30, 107, 121, 0.19);
    font-size: 8px;
}

.gs-production-empty,
.gs-production-loading {
    grid-column: 1 / -1;
    padding: 50px 20px;
    border: 1px dashed rgba(110, 180, 235, 0.2);
    border-radius: 16px;
    color: #718aa6;
    text-align: center;
}

.gs-production-create-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
    gap: 18px;
}

.gs-production-create-intro,
.gs-production-create-form {
    padding: 24px;
    border-radius: 18px;
}

.gs-production-create-intro ol {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.gs-production-create-intro li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bdd3e8;
}

.gs-production-create-intro li span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(83, 231, 255, 0.26);
    border-radius: 10px;
    color: #72e7ff;
    font-size: 9px;
}

.gs-production-create-form,
.gs-production-review-grid,
.gs-production-review-episodes,
.gs-production-project-episodes {
    display: grid;
    gap: 14px;
}

.gs-production-create-form.is-busy {
    pointer-events: none;
}

.gs-production-create-form.is-busy > :not(.gs-production-stream-panel) {
    opacity: 0.55;
}

.gs-production-stream-panel {
    display: grid;
    min-height: 220px;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(83, 231, 255, 0.3);
    border-radius: 14px;
    background: rgba(3, 10, 23, 0.78);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.gs-production-stream-panel[hidden] {
    display: none;
}

.gs-production-stream-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(126, 201, 255, 0.14);
    color: #dff8ff;
    font-size: 10px;
}

.gs-production-stream-panel header span {
    color: #79a3c8;
    font-size: 9px;
    font-weight: 600;
}

.gs-production-stream-panel pre {
    min-height: 180px;
    max-height: 360px;
    margin: 0;
    padding: 13px;
    overflow: auto;
    color: #d7e5fb;
    white-space: pre-wrap;
    word-break: break-word;
    font: 500 10px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.gs-production-stream-panel[data-tone="progress"] header span {
    color: #ffd277;
}

.gs-production-stream-panel[data-tone="error"] {
    border-color: rgba(255, 104, 128, 0.58);
}

.gs-production-stream-panel[data-tone="error"] header span {
    color: #ff909f;
}

.gs-production-field {
    display: grid;
    gap: 7px;
    color: #cce1f2;
    font-size: 10px;
    font-weight: 700;
}

.gs-production-field small {
    color: #667f9b;
    font-size: 8px;
    font-weight: 500;
}

.gs-production-field input,
.gs-production-field textarea,
.gs-production-field select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(100, 186, 235, 0.24);
    border-radius: 10px;
    outline: none;
    color: #e9f8ff;
    background: rgba(5, 13, 29, 0.76);
    font: 500 11px/1.6 system-ui, "Microsoft YaHei", sans-serif;
    resize: vertical;
}

.gs-production-field input:focus,
.gs-production-field textarea:focus,
.gs-production-field select:focus {
    border-color: rgba(83, 231, 255, 0.68);
    box-shadow: 0 0 0 3px rgba(72, 206, 233, 0.1);
}

.gs-production-form-actions {
    justify-content: flex-end;
    margin-top: 5px;
}

.gs-production-review-head,
.gs-production-project-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-radius: 18px;
}

.gs-production-review-grid,
.gs-production-project-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.gs-production-review-grid > label,
.gs-production-project-overview > article {
    padding: 16px;
    border-radius: 14px;
}

.gs-production-review-grid textarea {
    min-height: 240px;
}

.gs-production-review-episodes,
.gs-production-project-episodes {
    margin-top: 20px;
}

.gs-production-review-episodes > h3 {
    margin: 0 0 2px;
}

.gs-production-project-episodes-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.gs-production-project-episodes-head > div {
    color: #f4f8ff;
    font-size: 14px;
    font-weight: 800;
}

.gs-production-project-episodes-head > small {
    color: #708da9;
    font-size: 9px;
}

.gs-production-review-episode {
    display: grid;
    grid-template-columns: 100px minmax(180px, 0.7fr) minmax(220px, 0.85fr) minmax(260px, 1fr) minmax(300px, 1.25fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 14px;
}

.gs-production-episode-index {
    color: #6deaf2;
    font-size: 9px;
    font-weight: 800;
}

.gs-production-sticky-actions {
    position: sticky;
    z-index: 2;
    right: 0;
    bottom: -28px;
    left: 0;
    justify-content: flex-end;
    margin: 24px -28px -28px;
    padding: 16px 28px;
    border-top: 1px solid rgba(105, 183, 233, 0.17);
    background: rgba(5, 13, 28, 0.92);
    backdrop-filter: blur(18px);
}

.gs-production-project-overview article h3,
.gs-production-project-overview article p {
    margin: 0;
}

.gs-production-project-overview article p {
    margin-top: 10px;
    color: #9bb1c7;
    font-size: 10px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.gs-production-project-meta {
    flex-wrap: wrap;
    margin-top: 14px;
}

.gs-production-episode-node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
}

.gs-production-episode-node.gs-workflow-card {
    width: auto;
    height: auto;
    min-height: 560px;
    grid-template-rows: auto minmax(108px, auto) auto minmax(170px, 1fr) auto;
    border-color: color-mix(in srgb, var(--gs-vendor-accent, var(--gs-cyan)) 42%, transparent);
}

.gs-production-episode-node.is-current {
    box-shadow: 0 0 0 2px rgba(83, 231, 255, 0.12), 0 24px 64px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.065);
}

.gs-production-episode-node.is-running {
    border-color: rgba(255, 201, 92, 0.62);
}

.gs-production-episode-source,
.gs-production-episode-output {
    min-width: 0;
    padding: 11px 12px;
    overflow: auto;
    border: 1px solid rgba(126, 201, 255, 0.14);
    border-radius: 13px;
    background: rgba(3, 10, 23, 0.35);
}

.gs-production-episode-source {
    max-height: 190px;
}

.gs-production-episode-output {
    max-height: 360px;
}

.gs-production-episode-source p,
.gs-production-episode-output p {
    margin: 0;
    color: #d7e5fb;
    font-size: 10px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.gs-production-episode-controls .gs-node-field.is-wide {
    grid-column: 1 / -1;
}

.gs-production-episode-node-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gs-production-episode-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.gs-production-episode-actions .gs-node-run,
.gs-production-episode-actions .gs-production-primary {
    width: auto;
    min-width: 0;
    height: 31px;
    min-height: 31px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1;
}

.gs-production-assets-stage {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(120, 204, 255, 0.16);
    scroll-margin-top: 24px;
}

.gs-production-assets-stage > .gs-production-project-episodes-head select {
    min-width: 220px;
}

.gs-production-asset-extraction-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(200, 120, 255, 0.24);
    border-radius: 14px;
    background: rgba(21, 15, 45, 0.52);
}

.gs-production-asset-extraction-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.gs-production-assets-stage.is-extracting .gs-production-asset-extraction-bar {
    border-color: rgba(255, 201, 92, 0.62);
}

.gs-production-assets-stage.is-extraction-failed .gs-production-asset-extraction-bar {
    border-color: rgba(255, 102, 126, 0.62);
}

.gs-production-asset-toolbar {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(126, 201, 255, 0.16);
    border-radius: 16px;
    background: rgba(7, 18, 38, 0.58);
}

.gs-production-asset-toolbar-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.gs-production-asset-settings {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(90px, 0.6fr));
    gap: 10px;
}

.gs-production-asset-setting-value {
    display: flex;
    min-height: 36px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(126, 201, 255, 0.2);
    border-radius: 10px;
    color: #bdefff;
    background: rgba(8, 22, 45, 0.72);
}

.gs-production-asset-batch-status {
    display: grid;
    grid-template-columns: auto minmax(140px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--gs-line);
    border-radius: 11px;
    color: var(--gs-text-muted);
    background: color-mix(in srgb, var(--gs-surface-strong) 78%, transparent);
    font-size: 9px;
    line-height: 1.45;
}

.gs-production-asset-batch-status strong {
    color: var(--gs-orange);
    font-size: 9px;
}

.gs-production-asset-batch-status progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: var(--gs-line);
}

.gs-production-asset-batch-status progress::-webkit-progress-bar {
    border-radius: 999px;
    background: var(--gs-line);
}

.gs-production-asset-batch-status progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #70dfea, #8cf0bc);
}

.gs-production-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    align-items: start;
    justify-content: start;
    gap: 14px;
}

.gs-production-asset-card.gs-workflow-card {
    width: 100%;
    height: auto;
    min-height: 520px;
    min-width: 0;
    grid-template-rows: auto 190px minmax(135px, 1fr) auto;
    border-color: color-mix(in srgb, var(--gs-vendor-accent, var(--gs-cyan)) 42%, transparent);
}

.gs-production-asset-card.gs-workflow-card.is-asset-dragover {
    border-color: var(--gs-vendor-accent, var(--gs-cyan));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--gs-vendor-accent, var(--gs-cyan)) 32%, transparent), 0 18px 44px rgba(0, 0, 0, 0.32);
}

.gs-production-asset-preview {
    position: relative;
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(126, 201, 255, 0.12);
    border-radius: 14px;
    color: #6deaf2;
    font-size: 28px;
    font-weight: 900;
    background: radial-gradient(circle at 50% 40%, rgba(94, 211, 255, 0.18), rgba(8, 20, 43, 0.86));
}

.gs-production-asset-preview img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
    cursor: grab;
}

.gs-production-asset-preview img:active {
    cursor: grabbing;
}

.gs-production-asset-drop-hint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    border: 1px solid var(--gs-line);
    border-radius: 999px;
    color: var(--gs-text-muted);
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    background: color-mix(in srgb, var(--gs-surface-strong) 86%, transparent);
    pointer-events: none;
}

.gs-production-asset-card-body {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.gs-production-asset-card-body textarea {
    width: 100%;
    height: 100%;
    min-height: 135px;
    padding: 10px 11px;
    border: 1px solid var(--gs-line);
    border-radius: 10px;
    outline: 0;
    color: var(--gs-text);
    background: color-mix(in srgb, var(--gs-surface-strong) 82%, transparent);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.55;
    resize: vertical;
}

.gs-production-asset-card-body textarea:focus {
    border-color: var(--gs-line-strong);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gs-cyan) 10%, transparent);
}

.gs-production-asset-card-body textarea:disabled {
    color: var(--gs-text-muted);
    cursor: not-allowed;
    opacity: 0.78;
}

.gs-production-asset-card-footer {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gs-line);
}

.gs-production-asset-task-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    gap: 4px 8px;
}

.gs-production-asset-task-status > small {
    overflow: hidden;
    color: var(--gs-text-muted);
    font-size: 9px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-production-asset-task-status .gs-node-status {
    grid-column: 1 / -1;
    width: fit-content;
    font-weight: 600;
}

.gs-production-asset-card[data-task-state="idle"] .gs-node-status {
    color: var(--gs-text-muted);
}

.gs-production-asset-card[data-task-state="queued"] .gs-node-status,
.gs-production-asset-card[data-task-state="launching"] .gs-node-status {
    color: var(--gs-orange);
}

.gs-production-asset-card[data-task-state="running"] .gs-node-status {
    color: var(--gs-cyan);
}

.gs-production-asset-card[data-task-state="error"] .gs-node-status {
    color: #ff909f;
}

.gs-production-asset-card[data-task-state="done"] .gs-node-status {
    color: var(--gs-mint);
}

.gs-production-asset-task-id {
    max-width: 132px;
    justify-self: end;
    color: color-mix(in srgb, var(--gs-text-muted) 78%, transparent) !important;
    text-align: right;
}

.gs-production-asset-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.gs-production-asset-card-actions .gs-node-run {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 10px;
}

.gs-production-asset-empty {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 30px 16px;
    color: #7695b1;
    text-align: center;
}

.gs-production-episode-node.is-running .gs-node-status {
    color: #ffd277;
}

.gs-production-episode-node.is-failed .gs-node-status {
    color: #ff909f;
}

.gs-production-storage-proof {
    margin: 18px 0 0;
    color: #63829f;
    font-size: 9px;
}

.gs-shell[data-theme="light"] .gs-production-workspace {
    color: #173454;
    background: #eff7fc;
}

.gs-shell[data-theme="light"] .gs-production-workspace-shell {
    background: linear-gradient(145deg, #f4f9fd, #eaf3fb);
}

@media (max-width: 980px) {
    .gs-production-create-layout,
    .gs-production-review-grid,
    .gs-production-project-overview {
        grid-template-columns: 1fr;
    }

    .gs-production-review-grid textarea {
        min-height: 160px;
    }

    .gs-production-review-episode {
        grid-template-columns: 1fr 1fr;
    }

    .gs-production-asset-toolbar-head {
        align-items: stretch;
        flex-direction: column;
    }

    .gs-production-asset-batch-status {
        grid-template-columns: 1fr;
    }

    .gs-production-asset-extraction-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .gs-production-asset-settings {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .gs-production-workspace {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        border-radius: 16px;
    }

    .gs-production-workspace-header,
    .gs-production-workspace-main {
        padding-right: 15px;
        padding-left: 15px;
    }

    .gs-production-workspace-brand small,
    .gs-production-workspace-header-actions button:first-child {
        display: none;
    }

    .gs-production-review-episode {
        grid-template-columns: 1fr;
    }

    .gs-production-episode-node-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gs-production-project-episodes-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gs-production-assets-stage > .gs-production-project-episodes-head select,
    .gs-production-asset-settings {
        width: 100%;
    }

    .gs-production-asset-settings {
        grid-template-columns: 1fr;
    }

    .gs-production-asset-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gs-production-sticky-actions {
        margin-right: -15px;
        margin-left: -15px;
        padding-right: 15px;
        padding-left: 15px;
    }
}

.gs-appearance-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 31px;
    padding: 3px 6px;
    border: 1px solid var(--gs-line);
    border-radius: 999px;
    background: rgba(7, 14, 29, 0.68);
}

.gs-theme-toggle {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(133, 190, 255, 0.18);
    border-radius: 50%;
    color: #bfeeff;
    background: rgba(24, 67, 104, 0.34);
    cursor: pointer;
}

.gs-theme-toggle[aria-pressed="true"] {
    color: #294568;
    background: linear-gradient(145deg, #f9e1a6, #8fd7ff);
}

.gs-brightness-control {
    display: inline-flex;
    width: 104px;
    align-items: center;
    gap: 5px;
    color: #b7d7f9;
    font-size: 11px;
}

.gs-brightness-control input {
    width: 54px;
    accent-color: var(--gs-cyan);
    cursor: pointer;
}

.gs-brightness-control output {
    width: 30px;
    color: var(--gs-text-muted);
    font-size: 8px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.gs-session-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(87, 240, 186, 0.18);
    border-radius: 999px;
    color: #b7ffdf;
    background: rgba(11, 56, 49, 0.36);
    font-size: 11px;
    white-space: nowrap;
}

.gs-session-indicator::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gs-mint);
    box-shadow: 0 0 12px var(--gs-mint);
    content: "";
}

.gs-session-indicator.is-preview::before {
    background: var(--gs-orange);
    box-shadow: 0 0 12px var(--gs-orange);
}

.gs-locale-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--gs-line);
    border-radius: 999px;
    background: rgba(7, 14, 29, 0.68);
}

.gs-locale-switch button {
    min-width: 31px;
    height: 25px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--gs-text-muted);
    background: transparent;
    font-size: 10px;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease;
}

.gs-locale-switch button.is-active {
    color: #03101a;
    background: linear-gradient(120deg, var(--gs-cyan), #9ce8ff);
}

.gs-model-rail {
    position: absolute;
    z-index: 15;
    top: 82px;
    right: clamp(22px, 4vw, 70px);
    left: clamp(22px, 4vw, 70px);
    display: grid;
    grid-template-columns: minmax(178px, 0.26fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.gs-rail-title-wrap {
    padding-left: 6px;
}

.gs-rail-eyebrow,
.gs-dialog-kicker {
    display: block;
    margin: 0 0 3px;
    color: var(--gs-mint);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gs-rail-title-wrap h1 {
    max-width: 250px;
    margin: 0;
    color: #eaf3ff;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gs-rail-shell {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    padding: 5px 7px;
    border: 1px solid rgba(163, 196, 255, 0.13);
    border-radius: 14px;
    background: linear-gradient(125deg, rgba(14, 31, 62, 0.75), rgba(15, 19, 51, 0.62));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.gs-model-rail-track {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.gs-model-rail-track::-webkit-scrollbar {
    display: none;
}

.gs-model-rail-loop,
.gs-model-rail-copy {
    display: flex;
    width: max-content;
    align-items: stretch;
    gap: 8px;
}

.gs-model-rail-loop {
    will-change: transform;
}

.gs-model-rail-copy {
    padding-right: 8px;
}

.gs-model-chip {
    position: relative;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 7px;
    width: 166px;
    min-width: 166px;
    min-height: 50px;
    padding: 6px 8px;
    border: 1px solid rgba(139, 175, 255, 0.14);
    border-radius: 10px;
    color: var(--gs-text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--gs-chip-accent, var(--gs-cyan)) 16%, rgba(7, 16, 35, 0.92)), rgba(7, 16, 35, 0.76));
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gs-model-chip::after {
    position: absolute;
    right: 8px;
    bottom: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gs-chip-accent, var(--gs-cyan));
    box-shadow: 0 0 12px var(--gs-chip-accent, var(--gs-cyan));
    content: "";
}

.gs-model-chip:hover,
.gs-model-chip.is-selected {
    z-index: 1;
    border-color: color-mix(in srgb, var(--gs-chip-accent, var(--gs-cyan)) 58%, white 4%);
    background: linear-gradient(135deg, rgba(29, 62, 108, 0.78), rgba(18, 22, 58, 0.92));
    box-shadow: 0 12px 24px rgba(1, 8, 20, 0.35), 0 0 22px color-mix(in srgb, var(--gs-chip-accent, var(--gs-cyan)) 13%, transparent);
    transform: translateY(-2px);
}

.gs-model-chip.is-selected::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--gs-chip-accent, var(--gs-cyan));
    content: "";
}

.gs-model-icon {
    display: grid;
    grid-row: 1 / span 2;
    width: 27px;
    height: 27px;
    place-items: center;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #06111e;
    background: var(--gs-chip-accent, var(--gs-cyan));
    box-shadow: 0 0 22px color-mix(in srgb, var(--gs-chip-accent, var(--gs-cyan)) 34%, transparent);
}

.gs-model-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: saturate(1.25) contrast(1.08);
}

.gs-model-icon span {
    color: var(--gs-chip-accent, var(--gs-cyan));
    font-size: 11px;
    font-weight: 750;
}

.gs-model-chip strong,
.gs-model-chip small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-model-agent-icon {
    position: absolute;
    z-index: 3;
    top: 13px;
    left: 15px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--gs-chip-accent, var(--gs-cyan)) 55%, white 12%);
    border-radius: 6px;
    color: #03111e;
    background: var(--gs-chip-accent, var(--gs-cyan));
    box-shadow: 0 0 16px color-mix(in srgb, var(--gs-chip-accent, var(--gs-cyan)) 48%, transparent);
    opacity: 0;
    transform: scale(0.72) rotate(-10deg);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.gs-model-chip:hover .gs-model-agent-icon,
.gs-model-chip:focus-visible .gs-model-agent-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.gs-model-chip strong {
    padding-top: 0;
    font-size: 10px;
    font-weight: 650;
}

.gs-model-chip small {
    align-self: end;
    color: var(--gs-text-muted);
    font-size: 8px;
}

.gs-rail-nav {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid var(--gs-line);
    border-radius: 8px;
    color: var(--gs-text-muted);
    background: rgba(4, 11, 24, 0.78);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.gs-rail-nav:hover {
    border-color: var(--gs-line-strong);
    color: var(--gs-cyan);
    transform: translateY(-1px);
}

.gs-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    outline: none;
    cursor: default;
    touch-action: none;
}

.gs-canvas.is-panning {
    cursor: grabbing;
}

.gs-canvas.is-pan-ready:not(.is-panning) {
    cursor: grab;
}

.gs-grid,
.gs-canvas-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gs-grid {
    opacity: 0.72;
    background-image:
        linear-gradient(rgba(118, 159, 227, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 159, 227, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(118, 159, 227, 0.034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118, 159, 227, 0.034) 1px, transparent 1px);
    background-size: 54px 54px, 54px 54px, 13.5px 13.5px, 13.5px 13.5px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 21%, black 82%, transparent 100%);
}

.gs-canvas-vignette {
    background: radial-gradient(75% 70% at 50% 42%, transparent 45%, rgba(0, 0, 0, 0.34) 100%);
}

.gs-world {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    transform-origin: 0 0;
    will-change: transform;
}

.gs-connections {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: visible;
    pointer-events: auto;
}

.gs-connection-hit {
    fill: none;
    stroke: transparent;
    stroke-linecap: round;
    stroke-width: var(--gs-edge-hit-width, 50px);
    vector-effect: non-scaling-stroke;
    pointer-events: stroke;
    cursor: pointer;
}

.gs-connection-path {
    fill: none;
    stroke: var(--gs-edge-color, rgba(79, 197, 255, 0.77));
    stroke-linecap: round;
    stroke-width: 1.15;
    opacity: 0.46;
    filter: drop-shadow(0 0 2px rgba(76, 213, 255, 0.24));
    pointer-events: none;
    transition: stroke-width 140ms ease, opacity 140ms ease, filter 140ms ease;
}

.gs-connection-hit:hover + .gs-connection-path,
.gs-connection-hit:focus-visible + .gs-connection-path {
    stroke-width: 2;
    opacity: 0.82;
}

.gs-connection-path.is-selected {
    stroke-width: 3;
    opacity: 1;
    filter: drop-shadow(0 0 7px var(--gs-edge-color, rgba(79, 197, 255, 0.82)));
}

.gs-connection-path.is-preview {
    stroke-dasharray: 8 7;
    opacity: 0.78;
    pointer-events: none;
}

.gs-connection-path.is-agent {
    stroke: rgba(147, 115, 255, 0.7);
}

.gs-connection-path.is-locked {
    stroke: #ff9f43;
    stroke-width: 1.45;
    opacity: 0.78;
    filter: drop-shadow(0 0 4px rgba(255, 159, 67, 0.38));
}

.gs-connection-hit:hover + .gs-connection-path.is-locked,
.gs-connection-hit:focus-visible + .gs-connection-path.is-locked {
    stroke-width: 1.7;
    opacity: 0.92;
}

.gs-connection-path.is-locked.is-selected {
    stroke-width: 2.5;
    opacity: 1;
}

.gs-connection-path.is-running {
    stroke-dasharray: 3 11;
    opacity: 0.82;
    filter: drop-shadow(0 0 4px var(--gs-edge-color, rgba(79, 197, 255, 0.72)));
    animation: gs-edge-flow 4.8s linear infinite;
}

.gs-group-layer {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.gs-node-group {
    position: absolute;
    width: var(--gs-group-width);
    height: var(--gs-group-height);
    border: 0.75px solid rgba(140, 211, 255, 0.38);
    border-radius: 22px;
    background: rgba(55, 112, 178, 0.035);
    transform: translate3d(var(--gs-group-x), var(--gs-group-y), 0);
    pointer-events: none;
}

.gs-node-group.is-selected {
    border-color: rgba(83, 231, 255, 0.72);
    background: rgba(83, 231, 255, 0.055);
}

.gs-node-group-header {
    position: absolute;
    top: -1px;
    left: 14px;
    min-height: 23px;
    padding: 0 10px;
    border: 1px solid rgba(118, 186, 255, 0.25);
    border-radius: 0 0 8px 8px;
    color: #9ec9f2;
    background: rgba(7, 18, 39, 0.82);
    font-size: 9px;
    cursor: grab;
    pointer-events: auto;
}

.gs-node-group-header:active {
    cursor: grabbing;
}

.gs-node-layer {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.gs-node {
    position: absolute;
    display: grid;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: translate3d(var(--gs-node-x), var(--gs-node-y), 0);
    user-select: none;
    pointer-events: auto;
}

.gs-node.is-dragging {
    z-index: 20;
    cursor: grabbing;
}

.gs-node.is-selected::after {
    position: absolute;
    z-index: 12;
    inset: -8px;
    border: 1px solid rgba(83, 231, 255, 0.78);
    border-radius: 18px;
    box-shadow: 0 0 0 3px rgba(83, 231, 255, 0.08), 0 0 24px rgba(83, 231, 255, 0.15);
    content: "";
    pointer-events: none;
}

.gs-box-selection {
    position: absolute;
    z-index: 55;
    border: 1px solid rgba(83, 231, 255, 0.76);
    background: rgba(83, 231, 255, 0.1);
    box-shadow: inset 0 0 18px rgba(83, 231, 255, 0.06);
    pointer-events: none;
}

.gs-producer-node {
    width: 380px;
}

.gs-display-node {
    width: var(--gs-display-node-width, 308px);
}

.gs-plan-node {
    width: 310px;
}

.gs-producer-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--gs-vendor-accent, var(--gs-cyan)) 28%, transparent);
    border-radius: 20px;
    color: var(--gs-text);
    background: linear-gradient(145deg, color-mix(in srgb, var(--gs-vendor-accent, var(--gs-cyan)) 15%, rgba(14, 28, 58, 0.94)), rgba(6, 14, 31, 0.92));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(18px);
}

.gs-workflow-node {
    width: 360px;
}

.gs-workflow-input-node {
    width: 360px;
}

.gs-workflow-input-node > .gs-port-output {
    top: 190px;
}

.gs-workflow-card {
    display: grid;
    height: 380px;
    box-sizing: border-box;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
    border: 1px solid color-mix(in srgb, var(--gs-vendor-accent, #ff9f43) 42%, transparent);
    border-radius: 20px;
    color: var(--gs-text);
    background:
        radial-gradient(160px 110px at 100% 0%, color-mix(in srgb, var(--gs-vendor-accent, #ff9f43) 15%, transparent), transparent 74%),
        linear-gradient(145deg, rgba(22, 35, 59, 0.94), rgba(7, 15, 31, 0.93));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.065);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.gs-workflow-card.has-controls {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.gs-workflow-node.is-camera-control-node {
    width: 440px;
}

.gs-workflow-card.is-camera-control-card {
    height: 660px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-color: color-mix(in srgb, var(--gs-cyan) 52%, transparent);
    background:
        radial-gradient(210px 150px at 100% 0%, rgba(119, 102, 255, 0.18), transparent 72%),
        linear-gradient(145deg, rgba(15, 42, 66, 0.97), rgba(6, 17, 31, 0.97));
}

.gs-camera-control-host {
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(81, 226, 255, 0.14);
    border-radius: 15px;
    background: rgba(5, 14, 26, 0.48);
}

.gs-camera-control-host .qda-qwen-camera {
    min-height: 0;
    background: transparent;
}

.gs-camera-control-host .qda-qwen-camera-view {
    min-height: 250px;
}

.gs-camera-control-host.is-dragover {
    border-color: rgba(94, 236, 255, 0.74);
    box-shadow: 0 0 0 3px rgba(94, 236, 255, 0.12), inset 0 0 28px rgba(94, 236, 255, 0.08);
}

.gs-shell[data-theme="light"] .gs-camera-control-host {
    border-color: rgba(66, 126, 151, 0.2);
    background: rgba(240, 249, 252, 0.74);
}

.gs-workflow-node.is-failed .gs-workflow-card {
    border-color: rgba(255, 106, 106, 0.58);
}

.gs-workflow-card-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.gs-workflow-card-header > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.gs-workflow-card-header strong {
    overflow: hidden;
    color: #f4f8ff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-workflow-card-header small {
    overflow: hidden;
    color: var(--gs-text-muted);
    font-size: 8px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-workflow-symbol {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #251205;
    background: linear-gradient(135deg, #ffd09a, var(--gs-vendor-accent, #ff9f43));
    box-shadow: 0 0 24px color-mix(in srgb, var(--gs-vendor-accent, #ff9f43) 38%, transparent);
    font-size: 19px;
}

.gs-workflow-rich-input {
    min-height: 0;
    border-top: 1px solid rgba(255, 180, 99, 0.14);
    overflow: auto;
}

.gs-workflow-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.gs-workflow-controls.is-classic-contract {
    align-content: start;
}

.gs-workflow-controls.is-classic-contract .gs-node-field:only-child,
.gs-workflow-controls.is-classic-contract .gs-node-field:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
}

.gs-workflow-crop-field {
    grid-column: 1 / -1;
}

.gs-output-art.gs-workflow-input-surface {
    width: 100%;
    height: 640px;
    min-height: 640px;
    box-sizing: border-box;
    aspect-ratio: auto;
    padding: 16px;
    border: 1px solid rgba(140, 211, 255, 0.2);
    cursor: default;
    overflow: hidden;
}

.gs-workflow-input-surface .gs-workflow-rich-input {
    height: 100%;
    border-top: 0;
    overflow: hidden;
}

.gs-workflow-input-surface .gs-node-rich-panel.is-images-first {
    display: grid;
    height: 100%;
    grid-template-rows: minmax(300px, 1.2fr) minmax(150px, 0.72fr);
    gap: 10px;
    padding: 0;
}

.gs-workflow-input-surface .gs-rich-input-zone {
    display: grid;
    min-width: 0;
    min-height: 0;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(140, 211, 255, 0.16);
    border-radius: 12px;
    background: rgba(3, 10, 23, 0.34);
}

.gs-workflow-input-surface .gs-rich-input-zone > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 190, 117, 0.92);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.gs-workflow-input-surface .gs-rich-input-zone > header small {
    color: rgba(142, 223, 255, 0.62);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0;
}

.gs-workflow-input-surface .gs-rich-input-zone.is-image-input {
    grid-template-rows: auto minmax(0, 1fr);
}

.gs-workflow-input-surface .gs-rich-input-zone.is-text-input {
    grid-template-rows: auto minmax(0, 1fr);
}

.gs-workflow-input-surface .gs-node-rich-panel.is-images-first .gs-node-rich-assets {
    position: relative;
    display: grid;
    min-height: 0;
    padding: 8px;
    border: 1px dashed rgba(255, 178, 92, 0.28);
    border-radius: 9px;
    background: transparent;
    overflow: auto;
}

.gs-workflow-input-surface .gs-node-rich-assets.is-auto-layout:not(:empty) {
    grid-template-columns: repeat(var(--gs-rich-grid-columns), minmax(0, 1fr));
    grid-template-rows: repeat(var(--gs-rich-grid-rows), minmax(0, 1fr));
    align-content: stretch;
    align-items: stretch;
    overflow: hidden;
}

.gs-workflow-input-surface .gs-rich-image.is-auto-fit {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 7px;
    background: transparent;
}

.gs-workflow-input-surface .gs-node-rich-assets[data-rich-image-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    background: transparent;
}

.gs-workflow-input-surface .gs-node-rich-assets[data-rich-image-count="1"] .gs-rich-image.is-auto-fit {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: var(--gs-media-aspect, auto);
    place-self: center;
}

.gs-workflow-input-surface .gs-rich-image.is-auto-fit > img {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 6px;
    object-fit: contain;
}

.gs-workflow-input-surface .gs-rich-image.is-auto-fit figcaption {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    padding: 3px 4px;
    border-radius: 5px;
    color: rgba(225, 240, 250, 0.86);
    background: rgba(2, 10, 22, 0.68);
    opacity: 0;
    transition: opacity 160ms ease;
}

.gs-workflow-input-surface .gs-rich-image.is-auto-fit:hover figcaption,
.gs-workflow-input-surface .gs-rich-image.is-auto-fit:focus-within figcaption {
    opacity: 1;
}

.gs-rich-image-more {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border: 1px solid rgba(100, 200, 255, 0.28);
    border-radius: 999px;
    color: rgba(170, 224, 255, 0.92);
    background: rgba(0, 0, 0, 0.62);
    font-size: 9px;
}

.gs-workflow-input-surface .gs-node-rich-panel.is-images-first .gs-node-rich-assets:empty::before {
    display: grid;
    min-height: 100%;
    place-items: center;
    color: var(--gs-text-muted);
    content: '＋';
    font-size: 22px;
}

.gs-workflow-input-surface .gs-node-rich-panel.is-images-first .gs-node-rich-editor {
    min-height: 0;
    padding: 9px;
    border: 1px solid rgba(140, 211, 255, 0.16);
    border-radius: 9px;
    background: rgba(2, 8, 20, 0.42);
    overflow: auto;
}

.gs-workflow-rich-input .gs-node-rich-panel {
    min-width: 0;
    padding: 11px 0 0;
}

.gs-workflow-rich-input .gs-node-rich-editor {
    min-height: 66px;
}

.gs-display-node.is-composite-display {
    --gs-display-node-width: 360px;
}

.gs-display-node.is-composite-display .gs-output-art {
    height: 220px;
    min-height: 220px;
    aspect-ratio: auto;
    border-color: rgba(255, 159, 67, 0.24);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.26), 0 0 24px rgba(255, 159, 67, 0.06);
}

.gs-display-node.is-composite-display.is-output-video .gs-output-art.is-media,
.gs-display-node.is-composite-display.is-single-image .gs-output-art.is-media {
    height: auto;
    min-height: 0;
    aspect-ratio: var(--gs-output-ratio, 16 / 9);
}

.gs-producer-brand {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon identity"
        "icon summary"
        "icon description";
    grid-template-rows: auto auto auto;
    min-width: 0;
    align-items: center;
    column-gap: 11px;
    row-gap: 7px;
}

.gs-producer-identity {
    display: grid;
    grid-area: identity;
    min-width: 0;
    gap: 2px;
}

.gs-producer-brand strong {
    overflow: hidden;
    color: #eff8ff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-producer-brand small {
    color: var(--gs-text-muted);
    font-size: 9px;
}

.gs-vendor-icon {
    display: grid;
    grid-area: icon;
    align-self: start;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #05111f;
    background: var(--gs-vendor-accent, var(--gs-cyan));
    box-shadow: 0 0 26px color-mix(in srgb, var(--gs-vendor-accent, var(--gs-cyan)) 34%, transparent);
}

.gs-model-capability-summary {
    grid-area: summary;
    min-width: 0;
    min-height: 30px;
    margin: 0;
    color: color-mix(in srgb, var(--gs-vendor-accent, var(--gs-cyan)) 68%, #dcecff);
    font-size: 9px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.gs-model-description {
    grid-area: description;
    min-width: 0;
    margin: 0;
    color: var(--gs-muted);
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.gs-vendor-icon img,
.gs-vendor-icon .gs-node-symbol {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    object-fit: contain;
}

.gs-producer-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.gs-node-field {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.gs-node-field-model {
    grid-column: 1 / -1;
}

.gs-node-field > span {
    color: var(--gs-text-muted);
    font-size: 8px;
    letter-spacing: 0.06em;
}

.gs-node-field select,
.gs-node-field input,
.gs-node-field textarea {
    width: 100%;
    min-width: 0;
    height: 31px;
    padding: 0 9px;
    border: 1px solid rgba(134, 186, 255, 0.16);
    border-radius: 9px;
    color: #dcecff;
    background: rgba(4, 12, 27, 0.72);
    font-size: 9px;
    text-overflow: ellipsis;
}

.gs-node-field.is-textarea {
    grid-column: 1 / -1;
}

.gs-node-field textarea {
    min-height: 56px;
    height: 56px;
    padding-block: 8px;
    resize: vertical;
}

.gs-node-field select {
    padding-right: 26px;
}

.gs-node-field input:read-only {
    color: rgba(220, 236, 255, 0.62);
    cursor: default;
}

.gs-producer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gs-node-run {
    display: inline-flex;
    min-width: 76px;
    height: 31px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    color: #04131f;
    background: linear-gradient(120deg, var(--gs-vendor-accent, var(--gs-cyan)), #a8efff);
    box-shadow: 0 9px 24px color-mix(in srgb, var(--gs-vendor-accent, var(--gs-cyan)) 22%, transparent);
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.gs-node-text-panel {
    display: grid;
    gap: 5px;
    padding: 12px 14px 0;
    color: #d9e8fb;
    background: transparent;
}

.gs-node-text-panel > span,
.gs-node-text-panel > header > span,
.gs-text-node-label {
    color: var(--gs-text-muted);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.gs-node-rich-panel {
    min-width: 300px;
    padding-bottom: 10px;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.gs-node-rich-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gs-node-rich-panel > header small {
    color: rgba(142, 223, 255, 0.62);
    font-size: 8px;
    font-weight: 500;
}

.gs-node-rich-panel.is-dragover {
    border-radius: 12px;
    background: rgba(47, 178, 224, 0.12);
    box-shadow: inset 0 0 0 1px rgba(83, 231, 255, 0.5), 0 0 26px rgba(83, 231, 255, 0.13);
}

.gs-node-rich-panel.is-persisting {
    cursor: progress;
    opacity: 0.68;
}

.gs-node-rich-editor {
    width: 100%;
    min-height: 62px;
    padding: 0;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gs-node-rich-editor:empty::before {
    color: rgba(160, 180, 212, 0.58);
    content: attr(data-placeholder);
    pointer-events: none;
}

.gs-node-rich-assets {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.gs-node-rich-assets:empty {
    display: none;
}

.gs-rich-image {
    position: relative;
    display: grid;
    width: var(--gs-rich-image-scale, 72%);
    min-width: 96px;
    max-width: 100%;
    gap: 4px;
    margin: 2px 0 0;
}

.gs-rich-image > img {
    display: block;
    width: 100%;
    max-height: 260px;
    border-radius: 10px;
    object-fit: contain;
    background: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    cursor: grab;
    user-select: none;
}

.gs-rich-image > img:active {
    cursor: grabbing;
}

.gs-rich-image figcaption,
.gs-rich-image-scale {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(180, 205, 239, 0.68);
    font-size: 8px;
}

.gs-rich-image figcaption span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-rich-image figcaption button {
    display: grid;
    width: 16px;
    height: 16px;
    margin-left: auto;
    place-items: center;
    border-radius: 50%;
    color: #b9cce8;
    background: rgba(5, 13, 28, 0.62);
    font-size: 12px;
    cursor: pointer;
}

.gs-rich-image-scale input {
    min-width: 58px;
    height: 12px;
    flex: 1;
    accent-color: var(--gs-cyan);
}

.gs-rich-image-scale output {
    width: 28px;
    text-align: right;
}

.gs-node-text-panel.is-output p {
    margin: 0;
    color: #d7e5fb;
    font-size: 11px;
    line-height: 1.55;
}

.gs-text-node-label {
    padding: 0 14px 6px;
    color: #c3b2ff;
    font-weight: 700;
}

.gs-node-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #80f1c2;
    font-size: 9px;
}

.gs-node-status::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    content: "";
}

.gs-display-title {
    padding: 0 2px 8px;
    overflow: hidden;
    color: #edf7ff;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-output-art {
    position: relative;
    display: grid;
    min-height: 152px;
    min-width: 0;
    aspect-ratio: var(--gs-output-ratio, 16 / 9);
    align-items: stretch;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 68% 28%, rgba(255, 229, 182, 0.36) 0 3%, transparent 3.3%),
        radial-gradient(circle at 55% 46%, rgba(122, 63, 255, 0.35) 0 18%, transparent 35%),
        radial-gradient(circle at 27% 72%, rgba(70, 209, 255, 0.28) 0 13%, transparent 29%),
        linear-gradient(148deg, rgba(20, 42, 84, 0.5), rgba(52, 36, 107, 0.5) 48%, rgba(14, 23, 57, 0.5));
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
    cursor: context-menu;
}

.gs-output-art.is-media {
    min-height: 0;
    background: #030914;
}

.gs-display-node.is-output-image .gs-output-art.is-media,
.gs-display-node.is-output-image-list .gs-output-art.is-media,
.gs-display-node.is-output-image .gs-output-list,
.gs-display-node.is-output-image-list .gs-output-list,
.gs-display-node.is-output-image .gs-output-art > img,
.gs-display-node.is-output-image-list .gs-output-art img {
    background: transparent;
}

.gs-output-art[data-display-drop].is-dragover,
.gs-node-rich-panel.is-dragover {
    outline: 2px solid rgba(83, 231, 255, 0.86);
    outline-offset: -3px;
    box-shadow: inset 0 0 24px rgba(83, 231, 255, 0.16);
}

.gs-output-art.is-media::before,
.gs-output-art.is-media::after {
    display: none;
}

.gs-output-art > img,
.gs-output-art > video,
.gs-output-art > audio {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #030914;
}

.gs-output-art > audio {
    align-self: center;
    height: 54px;
    padding: 12px;
    box-sizing: border-box;
}

.gs-output-list {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
    overflow: auto;
    box-sizing: border-box;
    background: #030914;
}

.gs-output-list > img {
    width: 100%;
    height: 100%;
    min-height: 90px;
    object-fit: contain;
    border-radius: 8px;
    background: #07101f;
}

.gs-output-art.is-text-result {
    background: rgba(3, 9, 20, 0.94);
}

.gs-output-text {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 16px;
    overflow: auto;
    box-sizing: border-box;
    color: #dcecff;
    font: 10px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gs-display-node.is-composite-display.is-output-text .gs-output-art {
    height: auto;
    min-height: 220px;
    aspect-ratio: auto;
    align-items: start;
    overflow: visible;
}

.gs-display-node.is-composite-display.is-output-text .gs-output-text {
    height: auto;
    min-height: 220px;
    overflow: visible;
}

.gs-composite-group-results {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 14px;
    box-sizing: border-box;
    gap: 12px;
    list-style: none;
}

.gs-composite-group-result {
    display: grid;
    min-width: 0;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 9px 12px;
    padding: 11px;
    border: 1px solid rgba(255, 159, 67, 0.28);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(22, 35, 59, 0.88), rgba(7, 15, 31, 0.94));
}

.gs-composite-group-result header {
    display: flex;
    min-width: 0;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gs-composite-group-result header strong {
    color: #ffd29b;
    font-size: 11px;
}

.gs-composite-group-result header span {
    color: var(--gs-text-muted);
    font-size: 9px;
}

.gs-composite-group-media {
    width: 112px;
    aspect-ratio: 16 / 9;
    align-self: start;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
}

.gs-composite-group-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gs-composite-group-result p {
    min-width: 0;
    margin: 0;
    color: #dcecff;
    font-size: 10px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gs-output-failure {
    position: absolute;
    inset: auto 10px 10px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 104, 126, 0.55);
    border-radius: 10px;
    background: rgba(52, 8, 18, 0.9);
    color: #ffd5dc;
    font-size: 9px;
    line-height: 1.45;
}

.gs-output-failure > span {
    max-height: 56px;
    overflow: auto;
    overflow-wrap: anywhere;
}

.gs-output-failure button {
    display: inline-flex;
    min-width: 58px;
    height: 28px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(255, 166, 94, 0.72);
    border-radius: 8px;
    color: #fff4e8;
    background: linear-gradient(135deg, rgba(255, 130, 72, 0.94), rgba(255, 78, 112, 0.88));
    box-shadow: 0 8px 20px rgba(32, 2, 10, 0.34);
    cursor: pointer;
}

.gs-output-failure button:disabled {
    opacity: 0.48;
    cursor: wait;
}

.gs-output-art::before,
.gs-output-art::after {
    display: none;
}

.gs-output-empty {
    display: grid;
    place-content: center;
    gap: 7px;
    padding: 24px;
    color: #e2efff;
    text-align: center;
}

.gs-output-empty span {
    font-size: 11px;
}

.gs-output-empty small {
    color: var(--gs-text-muted);
    font-size: 8px;
}

.gs-display-context-menu {
    position: fixed;
    z-index: 80;
    display: grid;
    min-width: 156px;
    padding: 6px;
    border: 1px solid rgba(139, 192, 255, 0.22);
    border-radius: 12px;
    background: rgba(5, 13, 29, 0.96);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
}

.gs-display-context-menu button {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    color: #dbeaff;
    background: transparent;
    font-size: 10px;
    text-align: left;
    cursor: pointer;
}

.gs-display-context-menu button:hover:not(:disabled),
.gs-display-context-menu button:focus-visible {
    color: #f4fbff;
    background: rgba(69, 160, 219, 0.2);
}

.gs-display-context-menu button:disabled {
    cursor: not-allowed;
    opacity: 0.36;
}

.gs-display-context-menu button.is-danger {
    color: #ffbfc8;
}

.gs-context-divider {
    height: 1px;
    margin: 5px 6px;
    background: rgba(145, 190, 255, 0.12);
}

.gs-port {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: var(--gs-port-hit-size, 50px);
    height: var(--gs-port-hit-size, 50px);
    place-items: center;
    border-radius: 50%;
    cursor: crosshair;
}

.gs-port::before {
    width: 11px;
    height: 11px;
    border: 2px solid rgba(235, 250, 255, 0.92);
    border-radius: 50%;
    background: var(--gs-port-color, var(--gs-cyan));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gs-port-color, var(--gs-cyan)) 17%, transparent), 0 0 15px var(--gs-port-color, var(--gs-cyan));
    content: '';
    transition: transform 130ms ease, box-shadow 130ms ease;
}

.gs-port:hover::before,
.gs-port.is-connect-target::before {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--gs-port-color, var(--gs-cyan)) 24%, transparent), 0 0 22px var(--gs-port-color, var(--gs-cyan));
    transform: scale(1.18);
}

.gs-port.is-snap-target::before {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--gs-port-color, var(--gs-cyan)) 30%, transparent), 0 0 28px var(--gs-port-color, var(--gs-cyan));
    transform: scale(1.3);
}

.gs-canvas.is-connecting .gs-port-input:not(.is-connect-target) {
    opacity: 0.36;
}

.gs-port-input {
    left: 0;
    transform: translate(-50%, -50%);
}

.gs-port-output {
    right: 0;
    transform: translate(50%, -50%);
}

.gs-agent-empty {
    position: absolute;
    z-index: 2;
    top: 54%;
    left: 50%;
    display: grid;
    width: min(590px, calc(100vw - 48px));
    justify-items: center;
    gap: 14px;
    padding: 32px 38px;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.gs-agent-empty[hidden] {
    display: none;
}

.gs-agent-empty h2 {
    max-width: 510px;
    margin: 0;
    color: #f2f7ff;
    font-size: clamp(25px, 3.1vw, 44px);
    font-weight: 560;
    letter-spacing: -0.055em;
    line-height: 1.1;
}

.gs-agent-empty .gs-agent-animated-title {
    color: transparent;
    background: linear-gradient(90deg, #f2f7ff 0%, #78efff 24%, #ffffff 48%, #a88cff 72%, #f2f7ff 100%);
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 28px rgba(83, 231, 255, 0.14);
    animation: gs-xiaotu-type-shimmer 4.8s linear infinite;
}

.gs-agent-empty > p:not(.gs-agent-kicker) {
    max-width: 510px;
    margin: 0;
    color: var(--gs-text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.gs-agent-empty > .gs-agent-tagline {
    color: transparent;
    background: linear-gradient(90deg, #79efff 0%, #ffffff 38%, #ad91ff 68%, #79efff 100%);
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    font-weight: 760;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-shadow: 0 0 18px rgba(83, 231, 255, 0.2);
    animation: gs-xiaotu-type-shimmer 4.8s linear -2.4s infinite;
}

.gs-shell[data-theme="light"] .gs-agent-empty .gs-agent-animated-title,
.gs-shell[data-theme="light"] .gs-agent-empty > .gs-agent-tagline {
    background-image: linear-gradient(90deg, #172b50 0%, #007f9f 26%, #3155a6 51%, #6b42b9 75%, #172b50 100%);
}

.gs-agent-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 3px;
    color: #c3d4f5;
    font-size: 10px;
}

.gs-agent-steps span {
    padding: 7px 10px;
    border: 1px solid rgba(142, 189, 255, 0.16);
    border-radius: 999px;
    background: rgba(13, 26, 54, 0.5);
}

.gs-agent-steps i {
    color: var(--gs-cyan);
    font-style: normal;
}

.gs-agent-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(92, 204, 255, 0.18);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.gs-orbit-a {
    top: -9px;
    left: 50%;
    width: 202px;
    height: 202px;
    transform: translateX(-50%) rotate(32deg);
    animation: gs-agent-orbit-a 18s ease-in-out infinite alternate;
}

.gs-orbit-b {
    top: 16px;
    left: 50%;
    width: 276px;
    height: 165px;
    border-color: rgba(155, 128, 255, 0.2);
    transform: translateX(-50%) rotate(-18deg);
    animation: gs-agent-orbit-b 24s ease-in-out -7s infinite alternate;
}

.gs-agent-spark {
    position: absolute;
    color: var(--gs-cyan);
    filter: drop-shadow(0 0 10px var(--gs-cyan));
    opacity: 0.68;
    will-change: transform, opacity, filter;
}

.gs-spark-a {
    top: 16px;
    left: 24%;
    animation: gs-agent-spark-a 5.4s ease-in-out infinite;
}

.gs-spark-b {
    top: 76px;
    right: 21%;
    color: var(--gs-violet);
    animation: gs-agent-spark-b 6.8s ease-in-out -2.3s infinite;
}

.gs-canvas-hud {
    position: absolute;
    z-index: 8;
    bottom: 28px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(181, 203, 239, 0.68);
    font-size: 10px;
    letter-spacing: 0.03em;
}

.gs-hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gs-mint);
    box-shadow: 0 0 11px var(--gs-mint);
}

.gs-clear-canvas {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 118, 142, 0.22);
    border-radius: 8px;
    color: rgba(255, 177, 191, 0.82);
    background: rgba(44, 12, 25, 0.42);
    font: inherit;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.gs-clear-canvas:hover:not(:disabled),
.gs-clear-canvas:focus-visible {
    border-color: rgba(255, 118, 142, 0.58);
    color: #ffe1e7;
    background: rgba(73, 17, 35, 0.68);
}

.gs-clear-canvas:disabled {
    opacity: 0.36;
    cursor: default;
}

.gs-canvas-controls {
    position: absolute;
    z-index: 8;
    right: 28px;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 4px 6px;
    border: 1px solid rgba(138, 188, 255, 0.16);
    border-radius: 11px;
    background: rgba(8, 19, 41, 0.62);
    box-shadow: 0 11px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
}

.gs-workflow-toolbar,
.gs-selection-toolbar {
    z-index: 18;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 4px 6px;
    border: 1px solid rgba(138, 188, 255, 0.17);
    border-radius: 11px;
    background: rgba(8, 19, 41, 0.68);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

.gs-workflow-toolbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.gs-selection-toolbar {
    flex: 0 0 auto;
    margin-left: 2px;
}

.gs-selection-toolbar[hidden] {
    display: none;
}

.gs-connection-assist {
    position: fixed;
    z-index: 42;
    inset: 0;
    pointer-events: none;
}

.gs-connection-assist[hidden] {
    display: none;
}

.gs-connection-assist-action {
    position: fixed;
    top: var(--gs-assist-node-center-y, 50%);
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(83, 231, 255, 0.42);
    border-radius: 10px;
    color: #e9fbff;
    background: rgba(7, 22, 46, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 0 22px rgba(83, 231, 255, 0.12);
    backdrop-filter: blur(16px);
    font: 600 10px/1.2 Inter, "Microsoft YaHei", sans-serif;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.gs-connection-assist-action.is-upstream {
    left: calc(var(--gs-assist-node-left, 50%) - 12px);
    transform: translate(-100%, -50%);
}

.gs-connection-assist-action.is-display {
    left: calc(var(--gs-assist-node-right, 50%) + 12px);
    transform: translateY(-50%);
}

.gs-connection-assist-action:hover,
.gs-connection-assist-action:focus-visible {
    border-color: rgba(83, 231, 255, 0.82);
    background: rgba(10, 36, 70, 0.96);
}

.gs-connection-assist-action.is-upstream:hover,
.gs-connection-assist-action.is-upstream:focus-visible {
    transform: translate(-100%, -50%) translateY(-1px);
}

.gs-connection-assist-action.is-display:hover,
.gs-connection-assist-action.is-display:focus-visible {
    transform: translateY(calc(-50% - 1px));
}

.gs-connection-assist-action:disabled {
    opacity: 0.46;
    cursor: default;
}

.gs-workflow-toolbar select {
    width: 142px;
    height: 24px;
    padding: 0 22px 0 8px;
    border: 1px solid rgba(135, 190, 255, 0.15);
    border-radius: 7px;
    color: #cce5ff;
    background: rgba(5, 14, 31, 0.72);
    font-size: 9px;
}

.gs-workflow-toolbar button,
.gs-selection-toolbar button {
    display: grid;
    min-width: 28px;
    height: 24px;
    place-items: center;
    padding: 0 7px;
    border: 1px solid rgba(135, 190, 255, 0.15);
    border-radius: 7px;
    color: #bfe1ff;
    background: rgba(5, 14, 31, 0.5);
    font-size: 9px;
    cursor: pointer;
}

.gs-workflow-toolbar button:hover:not(:disabled),
.gs-selection-toolbar button:hover:not(:disabled) {
    border-color: rgba(83, 231, 255, 0.52);
    color: #effdff;
}

#deleteStudioWorkflow:not(:disabled) {
    color: #ff9cac;
}

#deleteStudioWorkflow:hover:not(:disabled) {
    border-color: rgba(255, 92, 118, 0.68);
    color: #ffe3e8;
    background: rgba(122, 24, 47, 0.36);
}

.gs-workflow-toolbar button:disabled,
.gs-selection-toolbar button:disabled {
    cursor: default;
    opacity: 0.34;
}

.gs-workflow-divider {
    width: 1px;
    height: 18px;
    margin: 0 1px;
    background: rgba(135, 190, 255, 0.14);
}

.gs-selection-toolbar output {
    min-width: 76px;
    padding: 0 7px;
    color: #9fdff4;
    font-size: 9px;
    text-align: center;
}

.gs-canvas-control-icon,
.gs-canvas-control-fit {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(135, 190, 255, 0.15);
    border-radius: 7px;
    color: #bddefd;
    background: rgba(5, 14, 31, 0.5);
    cursor: pointer;
}

.gs-canvas-control-icon {
    font-size: 15px;
}

.gs-canvas-control-fit {
    min-width: 37px;
    padding: 0 6px;
    font-size: 9px;
}

.gs-canvas-control-icon:hover,
.gs-canvas-control-fit:hover {
    border-color: rgba(83, 231, 255, 0.46);
    color: #e7fbff;
}

.gs-zoom-readout {
    min-width: 39px;
    color: #b9d0ef;
    font-size: 9px;
    text-align: center;
}

.gs-resource-dock {
    position: absolute;
    z-index: 28;
    top: 215px;
    bottom: 76px;
    left: 24px;
    display: flex;
    width: 228px;
    min-height: 280px;
    flex-direction: column;
    border: 1px solid rgba(132, 198, 255, 0.24);
    border-radius: 20px;
    color: var(--gs-text);
    background:
        radial-gradient(circle at 18% 10%, rgba(69, 156, 255, 0.13), transparent 34%),
        linear-gradient(150deg, rgba(17, 35, 68, 0.92), rgba(7, 15, 34, 0.88));
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.055);
    overflow: hidden;
    backdrop-filter: blur(24px);
    transform: translate3d(0, 0, 0);
    transition: opacity 520ms ease, transform 520ms ease, visibility 520ms ease;
    pointer-events: auto;
}

.gs-resource-dock.is-collapsed {
    visibility: hidden;
    opacity: 0;
    transform: translate3d(-34px, 12px, 0) scale(0.96);
    pointer-events: none;
}

.gs-resource-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    min-height: 58px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px 7px 12px;
    border-bottom: 1px solid rgba(132, 188, 255, 0.12);
}

.gs-resource-mark,
.gs-resource-entry {
    display: grid;
    place-items: center;
    color: #04111e;
    background: linear-gradient(135deg, var(--gs-cyan), #91bfff 58%, var(--gs-violet));
    box-shadow: 0 0 24px rgba(83, 231, 255, 0.25);
}

.gs-resource-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.gs-resource-header > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.gs-resource-header strong {
    font-size: 12px;
    letter-spacing: 0.03em;
}

.gs-resource-header small {
    color: var(--gs-text-muted);
    font-size: 8px;
}

.gs-resource-header button,
.gs-resource-pager button {
    display: grid;
    place-items: center;
    border: 1px solid rgba(136, 190, 255, 0.16);
    border-radius: 8px;
    color: #bfe5ff;
    background: rgba(5, 14, 31, 0.54);
    cursor: pointer;
}

.gs-resource-header button {
    width: 26px;
    height: 26px;
    font-size: 17px;
}

.gs-resource-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 8px 10px;
}

.gs-resource-tabs button {
    min-height: 29px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #8fa6c9;
    background: transparent;
    font-size: 9px;
    font-weight: 650;
    cursor: pointer;
}

.gs-resource-tabs button:hover,
.gs-resource-tabs button.is-active {
    border-color: rgba(83, 231, 255, 0.28);
    color: #ddf8ff;
    background: rgba(45, 120, 158, 0.24);
}

.gs-resource-panel {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    padding: 0 10px 10px;
}

.gs-resource-panel[hidden] {
    display: none;
}

.gs-resource-search {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(132, 188, 255, 0.15);
    border-radius: 10px;
    color: #7fb6d9;
    background: rgba(3, 11, 26, 0.44);
}

.gs-resource-search > span {
    text-align: center;
}

.gs-resource-search input {
    min-width: 0;
    height: 32px;
    padding: 0 8px 0 0;
    border: 0;
    outline: 0;
    color: var(--gs-text);
    background: transparent;
    font-size: 10px;
}

.gs-resource-search input::placeholder {
    color: rgba(156, 177, 210, 0.6);
}

.gs-resource-scroll {
    min-height: 0;
    margin-top: 8px;
    padding-right: 3px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(112, 178, 226, 0.28) transparent;
    scrollbar-width: thin;
    touch-action: pan-y;
}

.gs-resource-group + .gs-resource-group {
    margin-top: 6px;
}

.gs-resource-group-heading {
    display: grid;
    width: 100%;
    min-height: 30px;
    grid-template-columns: 22px minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 5px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 20%, transparent);
    color: color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 45%, #ffffff);
    background: color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 8%, rgba(14, 31, 61, 0.72));
    text-align: left;
    cursor: pointer;
}

.gs-resource-group-heading strong {
    font-size: 9px;
    font-weight: 650;
}

.gs-resource-group-heading small {
    color: #7194ba;
    font-size: 8px;
}

.gs-resource-group-heading i {
    font-style: normal;
    transition: transform 160ms ease;
}

.gs-resource-group-heading[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

.gs-resource-node-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding-top: 6px;
}

.gs-resource-node-grid[hidden] {
    display: none;
}

.gs-resource-node-card,
.gs-resource-asset-card {
    display: grid;
    min-width: 0;
    border: 1px solid rgba(133, 187, 255, 0.13);
    border-radius: 11px;
    color: var(--gs-text);
    background: linear-gradient(140deg, rgba(24, 50, 88, 0.5), rgba(7, 17, 37, 0.54));
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.gs-resource-node-card {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 88px;
    gap: 10px;
    padding: 10px 11px;
    border-color: color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 24%, transparent);
    background:
        radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 15%, transparent), transparent 42%),
        linear-gradient(140deg, rgba(24, 50, 88, 0.62), rgba(7, 17, 37, 0.72));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.gs-resource-node-card:hover,
.gs-resource-asset-card:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 58%, transparent);
    background: linear-gradient(140deg, rgba(29, 83, 123, 0.58), rgba(17, 24, 55, 0.72));
    transform: translateY(-1px);
}

.gs-resource-card-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 38%, transparent);
    border-radius: 12px;
    color: color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 76%, #ffffff);
    background: color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 16%, rgba(7, 17, 37, 0.84));
    box-shadow: 0 0 18px color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 15%, transparent);
    font-size: 18px;
}

.gs-resource-card-copy {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 4px;
}

.gs-resource-card-copy strong,
.gs-resource-card-copy small,
.gs-resource-card-copy em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-resource-card-copy strong {
    font-size: 11px;
    white-space: nowrap;
}

.gs-resource-card-copy small {
    display: -webkit-box;
    color: #8fa6c7;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gs-resource-card-copy em {
    width: max-content;
    align-self: end;
    padding: 2px 6px;
    border: 1px solid color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 26%, transparent);
    border-radius: 999px;
    color: color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 72%, #ffffff);
    background: color-mix(in srgb, var(--gs-resource-accent, #53e7ff) 9%, transparent);
    font-size: 7px;
    font-style: normal;
    white-space: nowrap;
}

.gs-resource-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 7px;
}

.gs-resource-actions button,
.gs-resource-main-action {
    min-height: 27px;
    padding: 0 8px;
    border: 1px solid rgba(120, 184, 238, 0.18);
    border-radius: 8px;
    color: #aedeff;
    background: rgba(12, 33, 62, 0.52);
    font-size: 8px;
    cursor: pointer;
}

.gs-resource-actions button:hover,
.gs-resource-main-action:hover {
    border-color: rgba(83, 231, 255, 0.46);
    color: #ecfdff;
}

.gs-resource-asset-kinds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.gs-resource-asset-kinds button {
    min-height: 29px;
    border: 1px solid rgba(120, 184, 238, 0.16);
    border-radius: 8px;
    color: #819bbc;
    background: rgba(7, 20, 42, 0.5);
    font-size: 9px;
    cursor: pointer;
}

.gs-resource-asset-kinds button.is-active {
    border-color: rgba(83, 231, 255, 0.54);
    color: #e9fdff;
    background: linear-gradient(135deg, rgba(27, 111, 156, 0.48), rgba(73, 62, 150, 0.42));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 0 16px rgba(83, 231, 255, 0.09);
}

.gs-resource-status {
    min-height: 24px;
    padding: 6px 2px 0;
    color: #7fc3d8;
    font-size: 8px;
    line-height: 1.35;
}

.gs-resource-status.is-warning {
    color: #ffc28f;
}

.gs-resource-asset-list {
    display: grid;
    align-content: start;
    gap: 6px;
    margin-top: 2px;
}

.gs-resource-asset-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 56px;
    gap: 8px;
    padding: 5px;
}

.gs-resource-asset-card:disabled {
    cursor: default;
    opacity: 0.66;
}

.gs-resource-asset-preview {
    display: grid;
    width: 54px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    color: #b8ebff;
    background: linear-gradient(140deg, rgba(50, 111, 160, 0.34), rgba(75, 52, 139, 0.3));
    overflow: hidden;
}

.gs-resource-asset-preview img,
.gs-resource-asset-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gs-resource-asset-preview video {
    pointer-events: none;
}

.gs-resource-asset-popover {
    position: fixed;
    z-index: 120;
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(107, 221, 255, 0.42);
    border-radius: 14px;
    color: var(--gs-text);
    background: linear-gradient(150deg, rgba(12, 31, 60, 0.98), rgba(7, 15, 34, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
}

.gs-resource-asset-popover > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 8px;
}

.gs-resource-asset-popover > header strong {
    overflow: hidden;
    color: #e9f8ff;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-resource-asset-popover-close {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(120, 184, 238, 0.2);
    border-radius: 8px;
    color: #aedeff;
    background: rgba(8, 22, 45, 0.78);
    cursor: pointer;
}

.gs-resource-asset-popover-media {
    display: grid;
    min-height: 180px;
    max-height: 46vh;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.gs-resource-asset-popover-media img,
.gs-resource-asset-popover-media video {
    display: block;
    width: 100%;
    max-height: 46vh;
    object-fit: contain;
    background: transparent;
}

.gs-resource-asset-popover-media video {
    pointer-events: none;
}

.gs-resource-asset-popover > footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.gs-resource-asset-popover > footer button {
    min-height: 31px;
    border: 1px solid rgba(120, 184, 238, 0.2);
    border-radius: 9px;
    color: #b9d8f3;
    background: rgba(10, 28, 54, 0.8);
    font-size: 9px;
    cursor: pointer;
}

.gs-resource-asset-popover > footer button.is-primary {
    border-color: rgba(83, 231, 255, 0.48);
    color: #edfeff;
    background: linear-gradient(135deg, rgba(36, 153, 190, 0.72), rgba(85, 84, 190, 0.68));
}

.gs-resource-asset-popover > footer button:disabled {
    cursor: wait;
    opacity: 0.52;
}

.gs-resource-dock.is-asset-manager-view {
    position: fixed;
    z-index: 80;
    inset: 5vh 3vw;
    width: auto;
    min-height: 0;
    border-radius: 16px;
    box-shadow: 0 0 0 100vmax rgba(0, 4, 12, 0.82), 0 30px 100px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.06);
    transform: none;
}

.gs-resource-dock.is-asset-manager-view .gs-resource-tabs button:not([data-resource-tab="assets"]),
.gs-resource-dock.is-asset-manager-view [data-resource-panel="nodes"],
.gs-resource-dock.is-asset-manager-view [data-resource-panel="settings"] {
    display: none;
}

.gs-resource-dock.is-asset-manager-view .gs-resource-tabs {
    grid-template-columns: minmax(0, 180px);
}

.gs-resource-dock.is-asset-manager-view [data-resource-panel="assets"] {
    display: grid;
    min-height: 0;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

.gs-resource-dock.is-asset-manager-view .gs-resource-actions {
    justify-content: flex-start;
}

.gs-resource-dock.is-asset-manager-view #studioResourceOpenAssets {
    display: none;
}

.gs-resource-dock.is-asset-manager-view .gs-resource-asset-kinds {
    width: min(360px, 100%);
}

.gs-resource-dock.is-asset-manager-view .gs-resource-asset-list {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    padding: 4px 8px 4px 0;
}

.gs-resource-dock.is-asset-manager-view .gs-resource-asset-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 112px;
    padding: 8px;
}

.gs-resource-dock.is-asset-manager-view .gs-resource-asset-preview {
    width: 112px;
    height: 94px;
}

.gs-resource-pager {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    padding-top: 7px;
}

.gs-resource-pager button {
    width: 26px;
    height: 23px;
}

.gs-resource-pager button:disabled {
    cursor: default;
    opacity: 0.32;
}

.gs-resource-empty {
    margin: 22px 8px;
    color: #748eaf;
    font-size: 9px;
    line-height: 1.6;
    text-align: center;
}

.gs-resource-settings {
    gap: 9px;
}

.gs-resource-section-label {
    margin: 2px 0 0;
    color: #7996ba;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gs-resource-account {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    min-height: 54px;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(132, 188, 255, 0.14);
    border-radius: 11px;
    background: rgba(5, 15, 32, 0.42);
}

.gs-resource-account > span:last-child {
    display: grid;
    gap: 3px;
}

.gs-resource-account strong {
    font-size: 9px;
}

.gs-resource-account small {
    color: #809abc;
    font-size: 8px;
    line-height: 1.4;
}

.gs-resource-account-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #68768c;
}

.gs-resource-account-dot.is-active {
    background: var(--gs-mint);
    box-shadow: 0 0 10px var(--gs-mint);
}

.gs-resource-main-action {
    width: 100%;
    min-height: 34px;
}

.gs-resource-entry {
    position: absolute;
    z-index: 35;
    bottom: 66px;
    left: 24px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(160, 211, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    pointer-events: auto;
    overflow: visible;
    --gs-entry-guide-accent: var(--gs-cyan);
    animation: gs-resource-entry-pulse 2.8s ease-in-out infinite;
}

.gs-resource-entry[hidden] {
    display: none;
}

.gs-shell[data-theme="light"] .gs-resource-dock {
    color: #153052;
    background: linear-gradient(150deg, rgba(248, 252, 255, 0.94), rgba(226, 240, 255, 0.9));
    box-shadow: 0 24px 72px rgba(52, 92, 144, 0.19), inset 0 1px rgba(255, 255, 255, 0.88);
}

.gs-shell[data-theme="light"] .gs-resource-node-card,
.gs-shell[data-theme="light"] .gs-resource-asset-card,
.gs-shell[data-theme="light"] .gs-resource-account,
.gs-shell[data-theme="light"] .gs-resource-search {
    color: #173454;
    background: rgba(239, 247, 255, 0.84);
}

.gs-shell[data-theme="light"] .gs-resource-search input {
    color: #173454;
}

@keyframes gs-resource-entry-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(83, 231, 255, 0.18); transform: translateY(0); }
    50% { box-shadow: 0 0 30px rgba(83, 231, 255, 0.36); transform: translateY(-2px); }
}

.gs-collapsed-entry-guide {
    --gs-entry-guide-start-x: -22px;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: max-content;
    color: color-mix(in srgb, var(--gs-entry-guide-accent) 78%, #fff);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px color-mix(in srgb, var(--gs-entry-guide-accent) 62%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    animation: gs-collapsed-entry-guide-cycle 30s ease-in-out infinite;
}

.gs-collapsed-entry-guide.is-right {
    --gs-entry-guide-start-x: 22px;
}

.gs-collapsed-entry-guide-arrow {
    color: var(--gs-entry-guide-accent);
    font-size: 14px;
    line-height: 1;
    animation: gs-collapsed-entry-guide-arrow-bob 1s ease-in-out infinite;
}

@keyframes gs-collapsed-entry-guide-cycle {
    0%, 83.32% {
        opacity: 0;
        visibility: hidden;
        transform: translate3d(calc(-50% + var(--gs-entry-guide-start-x)), 9px, 0);
    }
    83.33% {
        opacity: 0;
        visibility: visible;
        transform: translate3d(calc(-50% + var(--gs-entry-guide-start-x)), 9px, 0);
    }
    85% {
        opacity: 1;
        visibility: visible;
        transform: translate3d(-50%, 0, 0);
    }
    97% {
        opacity: 1;
        visibility: visible;
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: translate3d(-50%, -14px, 0);
    }
}

@keyframes gs-collapsed-entry-guide-arrow-bob {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 4px, 0); }
}

.gs-composer {
    position: absolute;
    z-index: 30;
    right: 50%;
    bottom: 28px;
    width: min(806px, calc(100vw - 38px));
    border-radius: 22px;
    background: var(--gs-chat-backdrop);
    box-shadow: var(--gs-chat-shadow);
    backdrop-filter: blur(24px) saturate(118%);
    transform: translateX(50%);
    opacity: 1;
    transition: opacity 700ms ease, transform 700ms ease, visibility 700ms ease;
}

.gs-composer.is-collapsed {
    visibility: hidden;
    opacity: 0;
    transform: translateX(50%) translateY(38px);
    pointer-events: none;
}

.gs-composer-collapse {
    display: grid;
    width: 22px;
    height: 22px;
    margin-left: 0;
    place-items: center;
    border-radius: 7px;
    color: #a9dfff;
    background: rgba(5, 18, 38, 0.5);
    font-size: 14px;
    cursor: pointer;
}

.gs-composer-new-conversation {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: auto;
    padding: 0 9px;
    gap: 4px;
    border: 1px solid rgba(112, 194, 255, 0.2);
    border-radius: 7px;
    color: #bce8ff;
    background: rgba(23, 54, 89, 0.42);
    font-size: 10px;
    cursor: pointer;
}

.gs-composer-new-conversation:hover:not(:disabled),
.gs-composer-new-conversation:focus-visible {
    color: #fff;
    border-color: rgba(112, 216, 255, 0.52);
    background: rgba(52, 134, 179, 0.3);
}

.gs-composer-new-conversation:disabled {
    cursor: wait;
    opacity: 0.48;
}

.gs-composer-collapse:hover,
.gs-composer-collapse:focus-visible {
    color: #fff;
    background: rgba(52, 134, 179, 0.3);
}

.gs-agent-entry {
    position: absolute;
    z-index: 29;
    right: 50%;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    width: 190px;
    min-height: 154px;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    border: 0;
    color: #dffbff;
    background: transparent;
    transform: translateX(50%);
    cursor: pointer;
}

.gs-agent-entry[hidden] {
    display: none;
}

.gs-xiaotu-logo-wrap {
    position: relative;
    display: grid;
    width: 66px;
    place-items: center;
}

.gs-xiaotu-logo-wrap::before {
    position: absolute;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 255, 255, 0.96) 0 8%, rgba(83, 231, 255, 0.72) 22%, rgba(126, 91, 255, 0.38) 48%, transparent 72%);
    filter: blur(5px);
    content: '';
    animation: gs-xiaotu-core-glow 2.8s ease-in-out infinite;
}

.gs-xiaotu-logo {
    position: relative;
    width: 66px;
    height: 66px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(83, 231, 255, 0.42)) drop-shadow(0 0 28px rgba(137, 88, 255, 0.24));
    transition: transform 240ms ease, filter 240ms ease;
}

.gs-agent-entry:hover .gs-xiaotu-logo,
.gs-agent-entry:focus-visible .gs-xiaotu-logo {
    filter: drop-shadow(0 0 15px rgba(116, 244, 255, 0.7)) drop-shadow(0 0 38px rgba(137, 88, 255, 0.42));
    transform: translateY(-3px) scale(1.04);
}

.gs-agent-entry-brand {
    margin-top: 0;
    color: transparent;
    background: linear-gradient(90deg, #80efff 0%, #fff 28%, #9c82ff 52%, #fff 74%, #80efff 100%);
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-shadow: 0 0 18px rgba(83, 231, 255, 0.22);
    animation: gs-xiaotu-type-shimmer 3.6s linear infinite;
}

.gs-agent-entry-tagline {
    color: transparent;
    background: linear-gradient(108deg, rgba(128, 239, 255, 0.9), #fff 44%, rgba(177, 143, 255, 0.94));
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 8px rgba(109, 224, 255, 0.22));
    font-family: "STXingkai", "华文行楷", "KaiTi", "楷体", serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.12em;
    white-space: nowrap;
    transform: skewX(-6deg);
}

.gs-agent-transcript {
    display: none;
    max-height: 50dvh;
    margin: 0 18px 10px;
    padding: 4px 8px 0 2px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    flex-direction: column;
    gap: 12px;
    border: 0;
    color: #ddecff;
    background: transparent;
    scrollbar-color: rgba(127, 194, 255, 0.68) rgba(19, 43, 72, 0.12);
    scrollbar-width: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.12) 5%, rgba(0, 0, 0, 0.56) 15%, #000 28%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.12) 5%, rgba(0, 0, 0, 0.56) 15%, #000 28%, #000 100%);
}

.gs-agent-transcript::-webkit-scrollbar {
    width: 10px;
}

.gs-agent-transcript::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(19, 43, 72, 0.12);
}

.gs-agent-transcript::-webkit-scrollbar-thumb {
    min-height: 42px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(127, 194, 255, 0.68);
    background-clip: padding-box;
}

.gs-agent-transcript::-webkit-scrollbar-thumb:hover {
    background: rgba(145, 218, 255, 0.86);
    background-clip: padding-box;
}

.gs-agent-transcript.is-visible {
    display: flex;
}

.gs-agent-message {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    width: min(690px, 100%);
    margin: 0 auto;
    border: 0;
    background: transparent;
}

.gs-agent-message.is-user {
    opacity: 1;
}

.gs-agent-message.is-user .gs-agent-message-role {
    color: #ffb46f;
}

.gs-agent-message.is-user .gs-agent-message-content,
.gs-agent-message.is-user .gs-agent-message-content strong {
    color: #ffd2a3;
}

.gs-agent-message.is-assistant .gs-agent-message-role {
    color: #6fdcff;
}

.gs-agent-message.is-assistant .gs-agent-message-content,
.gs-agent-message.is-assistant .gs-agent-message-content strong {
    color: #d9f2ff;
}

.gs-agent-message-role {
    padding-top: 2px;
    color: #7da3ca;
    font-size: 9px;
    line-height: 1.6;
    text-align: right;
}

.gs-agent-message-content {
    min-width: 0;
    color: #ddecff;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.gs-agent-message-content > :first-child {
    margin-top: 0;
}

.gs-agent-message-content > :last-child {
    margin-bottom: 0;
}

.gs-agent-message-attachments {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin: 0 0 7px;
    overflow-x: auto;
    overflow-y: hidden;
}

.gs-agent-message-attachments img {
    flex: 0 0 56px;
    width: 56px;
    height: 44px;
    border: 1px solid rgba(117, 209, 255, 0.28);
    border-radius: 8px;
    object-fit: cover;
}

.gs-agent-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.gs-agent-message-actions button {
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(94, 221, 255, 0.34);
    border-radius: 9px;
    color: #c9f6ff;
    background: linear-gradient(135deg, rgba(32, 115, 149, 0.44), rgba(80, 72, 169, 0.36));
    box-shadow: 0 7px 18px rgba(3, 13, 31, 0.2);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.gs-agent-message-actions button:hover,
.gs-agent-message-actions button:focus-visible {
    border-color: rgba(113, 232, 255, 0.7);
    color: #fff;
    background: linear-gradient(135deg, rgba(38, 137, 174, 0.62), rgba(101, 88, 195, 0.54));
}

.gs-agent-message-actions button:disabled {
    cursor: progress;
    opacity: 0.48;
}

.gs-shell[data-theme="light"] .gs-agent-message-actions button {
    border-color: rgba(37, 132, 174, 0.28);
    color: #145675;
    background: linear-gradient(135deg, rgba(128, 220, 242, 0.34), rgba(170, 157, 235, 0.28));
    box-shadow: 0 6px 15px rgba(68, 102, 140, 0.13);
}

.gs-agent-message-content p,
.gs-agent-message-content ul,
.gs-agent-message-content ol,
.gs-agent-message-content h1,
.gs-agent-message-content h2,
.gs-agent-message-content h3 {
    margin: 0 0 7px;
}

.gs-agent-message-content ul,
.gs-agent-message-content ol {
    padding-left: 18px;
}

.gs-agent-message-content code {
    padding: 1px 4px;
    border-radius: 4px;
    color: #bff7ff;
    background: rgba(83, 231, 255, 0.08);
}

.gs-agent-message.is-failed .gs-agent-message-content {
    color: #ffc2cc;
}

.gs-agent-message.is-streaming .gs-agent-message-content::after {
    display: inline-block;
    width: 5px;
    height: 12px;
    margin-left: 3px;
    background: var(--gs-cyan);
    box-shadow: 0 0 9px rgba(83, 231, 255, 0.7);
    content: '';
    animation: gs-agent-cursor 900ms steps(1) infinite;
}

.gs-composer-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 29px;
    padding: 0 13px;
    border: 1px solid rgba(126, 178, 255, 0.15);
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
    color: #c4d8fc;
    background: rgba(15, 25, 51, 0.71);
    font-size: 10px;
    backdrop-filter: blur(18px);
}

.gs-context-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gs-violet);
    box-shadow: 0 0 10px var(--gs-violet);
}

.gs-text-action {
    padding: 0;
    color: #8edfff;
    background: transparent;
    font-size: 10px;
    cursor: pointer;
}

.gs-text-action:hover {
    color: #e8fbff;
}

.gs-composer-body {
    padding: 12px 14px 13px;
    border: 1px solid rgba(143, 191, 255, 0.25);
    border-radius: 0 0 20px 20px;
    background: linear-gradient(136deg, rgba(18, 36, 72, 0.7), rgba(11, 19, 43, 0.7));
    box-shadow: 0 22px 72px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(26px);
}

.gs-composer-bottomline,
.gs-composer-actions {
    display: flex;
    align-items: center;
}

.gs-composer-bottomline {
    justify-content: space-between;
    gap: 12px;
}

.gs-reference-button,
.gs-create-button {
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.gs-reference-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px dashed rgba(109, 214, 255, 0.4);
    border-radius: 9px;
    color: #b9eaff;
    background: rgba(4, 15, 34, 0.42);
}

.gs-reference-button span:first-child {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 0;
    color: var(--gs-cyan);
    font-size: 20px;
}

.gs-reference-button:hover {
    color: white;
    transform: translateY(-1px);
}

.gs-composer-reference-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 194, 255, 0.55) transparent;
}

.gs-composer-body.is-drop-target {
    outline: 1px solid rgba(92, 234, 255, 0.78);
    outline-offset: -1px;
    box-shadow: inset 0 0 28px rgba(64, 197, 255, 0.12);
}

.gs-composer-reference {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    height: 52px;
    aspect-ratio: var(--gs-reference-aspect, 4 / 3);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(117, 209, 255, 0.3);
    border-radius: 9px;
    background: rgba(4, 15, 34, 0.72);
}

.gs-composer-reference img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gs-composer-reference-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    display: grid;
    width: 17px;
    height: 17px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    color: #fff;
    background: rgba(3, 10, 22, 0.78);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.gs-composer-reference-remove:hover,
.gs-composer-reference-remove:focus-visible {
    background: rgba(185, 50, 79, 0.86);
}

.gs-composer textarea {
    display: block;
    width: 100%;
    min-height: 39px;
    margin: 6px 0 8px;
    padding: 0;
    border: 0;
    resize: none;
    color: #edf5ff;
    background: transparent;
    font-size: 14px;
    line-height: 1.55;
}

.gs-composer textarea::placeholder {
    color: rgba(171, 194, 230, 0.6);
}

.gs-composer textarea:focus {
    outline: 0;
}

.gs-composer-actions {
    margin-left: auto;
    flex: 0 0 auto;
    gap: 7px;
}

.gs-style-preset-entry {
    min-height: 24px;
    padding: 0 11px;
    border: 1px solid rgba(133, 190, 255, 0.2);
    border-radius: 999px;
    color: rgba(196, 218, 247, 0.72);
    background: rgba(20, 41, 75, 0.42);
    font-size: 10px;
    cursor: default;
}

.gs-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
}

.gs-create-button {
    min-width: 99px;
    padding: 0 12px;
    color: #02131c;
    background: linear-gradient(120deg, #52eaff, #5abaf4 53%, #9983ff);
    box-shadow: 0 8px 20px rgba(79, 210, 255, 0.19);
}

.gs-create-button:hover {
    transform: translateY(-1px);
}

.gs-create-button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.gs-create-button.is-streaming span:last-child {
    animation: gs-agent-send 1200ms linear infinite;
}

.gs-toast-region {
    position: absolute;
    z-index: 60;
    top: 181px;
    right: 50%;
    display: grid;
    max-width: min(460px, calc(100vw - 42px));
    gap: 8px;
    transform: translateX(50%);
    pointer-events: none;
}

.gs-toast {
    padding: 10px 13px;
    border: 1px solid rgba(83, 231, 255, 0.26);
    border-radius: 10px;
    color: #dcfaff;
    background: rgba(7, 22, 45, 0.89);
    box-shadow: 0 13px 34px rgba(0, 0, 0, 0.28);
    font-size: 11px;
    line-height: 1.45;
    animation: gs-toast-in 220ms ease both;
    backdrop-filter: blur(14px);
}

.gs-toast.is-warning {
    border-color: rgba(255, 179, 107, 0.46);
    color: #ffe0b7;
}

.gs-plan-dialog {
    width: min(498px, calc(100vw - 38px));
    padding: 0;
    border: 1px solid rgba(136, 190, 255, 0.27);
    border-radius: 24px;
    color: var(--gs-text);
    background: linear-gradient(145deg, rgba(22, 43, 82, 0.98), rgba(9, 17, 39, 0.98));
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.66);
}

.gs-workflow-name-dialog {
    width: min(410px, calc(100vw - 38px));
    padding: 0;
    border: 1px solid rgba(136, 190, 255, 0.27);
    border-radius: 20px;
    color: var(--gs-text);
    background: linear-gradient(145deg, rgba(22, 43, 82, 0.98), rgba(9, 17, 39, 0.98));
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.66);
}

.gs-workflow-name-dialog::backdrop {
    background: rgba(1, 5, 14, 0.59);
    backdrop-filter: blur(4px);
}

.gs-workflow-name-dialog-inner {
    padding: 24px;
}

.gs-workflow-name-dialog h2 {
    margin: 0;
    font-size: 23px;
}

.gs-workflow-name-dialog p:not(.gs-dialog-kicker) {
    margin: 8px 0 16px;
    color: var(--gs-text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.gs-workflow-name-dialog input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(136, 190, 255, 0.24);
    border-radius: 10px;
    outline: 0;
    color: #eaf5ff;
    background: rgba(4, 12, 27, 0.72);
}

.gs-shell[data-theme="light"] .gs-workflow-name-dialog {
    color: #142d4e;
    background: rgba(247, 251, 255, 0.98);
}

.gs-shell[data-theme="light"] .gs-workflow-name-dialog input {
    color: #142d4e;
    background: rgba(229, 241, 255, 0.9);
}

.gs-plan-dialog::backdrop {
    background: rgba(1, 5, 14, 0.59);
    backdrop-filter: blur(4px);
}

.gs-plan-dialog-inner {
    position: relative;
    padding: 28px;
}

.gs-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--gs-line);
    border-radius: 8px;
    color: #aec5ec;
    background: rgba(4, 11, 25, 0.56);
    font-size: 20px;
    cursor: pointer;
}

.gs-plan-dialog h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.045em;
}

.gs-plan-dialog p:not(.gs-dialog-kicker) {
    margin: 10px 0 20px;
    color: var(--gs-text-muted);
    font-size: 12px;
    line-height: 1.7;
}

.gs-plan-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gs-plan-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(140, 185, 255, 0.14);
    border-radius: 11px;
    background: rgba(5, 13, 30, 0.43);
}

.gs-plan-list span {
    color: var(--gs-cyan);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.gs-plan-list strong {
    color: #dbe8ff;
    font-size: 12px;
    font-weight: 560;
}

.gs-plan-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 22px;
}

.gs-dialog-secondary,
.gs-dialog-primary {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.gs-dialog-secondary {
    border: 1px solid var(--gs-line-strong);
    color: #b9dcff;
    background: rgba(16, 41, 76, 0.54);
}

.gs-dialog-primary {
    color: #071324;
    background: linear-gradient(120deg, var(--gs-cyan), #83b5ff);
}

@keyframes gs-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gs-edge-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -56; }
}

@keyframes gs-agent-cursor {
    0%, 52% { opacity: 1; }
    53%, 100% { opacity: 0; }
}

@keyframes gs-agent-send {
    to { transform: rotate(360deg); }
}

@keyframes gs-xiaotu-core-glow {
    0%, 100% { opacity: 0.64; transform: scale(0.82); }
    50% { opacity: 1; transform: scale(1.18); }
}

@keyframes gs-xiaotu-type-shimmer {
    from { background-position: 200% 50%; }
    to { background-position: -20% 50%; }
}

@keyframes gs-agent-orbit-a {
    0% {
        opacity: 0.52;
        transform: translateX(-50%) rotate(20deg) scale(0.96);
    }
    52% {
        opacity: 0.94;
        transform: translateX(-50%) rotate(48deg) scale(1.04);
    }
    100% {
        opacity: 0.64;
        transform: translateX(-50%) rotate(74deg) scale(0.99);
    }
}

@keyframes gs-agent-orbit-b {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) rotate(-34deg) scale(1.03);
    }
    48% {
        opacity: 0.86;
        transform: translateX(-50%) rotate(-8deg) scale(0.97);
    }
    100% {
        opacity: 0.58;
        transform: translateX(-50%) rotate(18deg) scale(1.02);
    }
}

@keyframes gs-agent-spark-a {
    0%, 100% {
        opacity: 0.42;
        filter: drop-shadow(0 0 5px var(--gs-cyan));
        transform: translate3d(-5px, 4px, 0) rotate(-12deg) scale(0.78);
    }
    46% {
        opacity: 1;
        filter: drop-shadow(0 0 15px var(--gs-cyan));
        transform: translate3d(5px, -7px, 0) rotate(12deg) scale(1.16);
    }
}

@keyframes gs-agent-spark-b {
    0%, 100% {
        opacity: 0.38;
        filter: drop-shadow(0 0 5px var(--gs-violet));
        transform: translate3d(5px, -4px, 0) rotate(10deg) scale(0.76);
    }
    54% {
        opacity: 0.96;
        filter: drop-shadow(0 0 16px var(--gs-violet));
        transform: translate3d(-6px, 8px, 0) rotate(-14deg) scale(1.2);
    }
}

.gs-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.gs-workflow-launcher {
    position: absolute;
    z-index: 28;
    top: 188px;
    right: 24px;
    bottom: 142px;
    display: grid;
    width: 214px;
    min-height: 292px;
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: 11px;
    border: 1px solid rgba(163, 196, 255, 0.17);
    border-radius: 18px;
    color: var(--gs-text);
    background:
        radial-gradient(circle at 82% 8%, rgba(166, 140, 255, 0.14), transparent 32%),
        linear-gradient(145deg, rgba(14, 31, 62, 0.84), rgba(10, 16, 40, 0.78));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.055);
    overflow: hidden;
    backdrop-filter: blur(20px);
    transform: translate3d(0, 0, 0);
    transition: opacity 520ms ease, transform 520ms ease, visibility 520ms ease;
    pointer-events: auto;
}

.gs-workflow-launcher.is-collapsed {
    visibility: hidden;
    opacity: 0;
    transform: translate3d(34px, 12px, 0) scale(0.96);
    pointer-events: none;
}

.gs-agent-product-launcher {
    right: 250px;
    --gs-agent-product-accent: #ff75bf;
}

.gs-agent-product-launcher .gs-workflow-launcher-mark,
.gs-agent-product-launcher-entry {
    border-color: rgba(255, 117, 191, 0.42);
    background: linear-gradient(135deg, #ffd0ea, #ff75bf 56%, #8f7dff);
    box-shadow: 0 0 24px rgba(255, 117, 191, 0.28);
}

.gs-agent-product-launcher .gs-workflow-launcher-header small {
    color: #ffb9df;
}

.gs-workflow-launcher-status {
    display: block;
    min-height: 18px;
    color: rgba(255, 188, 221, .92);
    font-size: 11px;
    line-height: 1.45;
}

.gs-workflow-launcher-status:empty {
    display: none;
}

.gs-workflow-launcher-header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
}

.gs-workflow-launcher-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 180, 95, 0.3);
    border-radius: 9px;
    color: #07111f;
    background: linear-gradient(135deg, #ffd08b, #ff9f43 55%, #b98dff);
    box-shadow: 0 0 22px rgba(255, 159, 67, 0.24);
    font-size: 14px;
}

.gs-workflow-launcher-header > span:nth-child(2) {
    display: grid;
    gap: 1px;
}

.gs-workflow-launcher-header small {
    color: #ffca84;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: 0.16em;
}

.gs-workflow-launcher-header strong {
    font-size: 11px;
    letter-spacing: 0.02em;
}

.gs-workflow-launcher-header button {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(136, 190, 255, 0.16);
    border-radius: 8px;
    color: rgba(180, 221, 255, 0.72);
    background: rgba(5, 14, 31, 0.54);
    font-size: 15px;
    cursor: pointer;
}

.gs-workflow-launcher-header button:hover,
.gs-workflow-launcher-header button:focus-visible {
    border-color: rgba(255, 180, 95, 0.42);
    color: #fff1d4;
}

.gs-workflow-launcher > p {
    margin: 6px 0 4px 40px;
    color: var(--gs-text-muted);
    font-size: 8px;
}

.gs-workflow-launcher-track {
    min-height: 0;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}

.gs-workflow-launcher-loop,
.gs-workflow-launcher-copy {
    display: grid;
    gap: 8px;
}

.gs-workflow-launcher-loop {
    padding: 12px 0;
    will-change: transform;
}

.gs-workflow-launcher-copy {
    padding-bottom: 8px;
}

.gs-workflow-launcher-duplicate[hidden] {
    display: none;
}

.gs-workflow-launcher-card {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 66px;
    grid-template-columns: 36px minmax(0, 1fr) 17px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 30%, rgba(139, 175, 255, 0.14));
    border-radius: 12px;
    color: var(--gs-text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 14%, rgba(7, 16, 35, 0.94)), rgba(7, 16, 35, 0.78));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gs-workflow-launcher-card::after {
    position: absolute;
    right: 9px;
    bottom: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gs-workflow-accent, #ff9f43);
    box-shadow: 0 0 10px var(--gs-workflow-accent, #ff9f43);
    content: "";
}

.gs-workflow-launcher-card:hover,
.gs-workflow-launcher-card:focus-visible {
    z-index: 1;
    border-color: color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 68%, white 8%);
    background: linear-gradient(135deg, rgba(34, 58, 101, 0.88), rgba(24, 23, 62, 0.92));
    box-shadow: 0 12px 26px rgba(1, 8, 20, 0.35), 0 0 22px color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 15%, transparent);
    outline: none;
    transform: translateX(-3px);
}

.gs-workflow-launcher-card:disabled {
    cursor: progress;
    opacity: 0.55;
}

.gs-workflow-launcher-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 44%, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    color: color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 78%, white 18%);
    background: color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 13%, rgba(4, 12, 27, 0.92));
    box-shadow: 0 0 18px color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 18%, transparent);
}

.gs-workflow-launcher-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.gs-workflow-launcher-card-copy {
    min-width: 0;
}

.gs-workflow-launcher-card-copy strong,
.gs-workflow-launcher-card-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-workflow-launcher-card-copy strong {
    font-size: 10px;
    font-weight: 680;
}

.gs-workflow-launcher-card-copy small {
    margin-top: 4px;
    color: var(--gs-text-muted);
    font-size: 8px;
}

.gs-workflow-launcher-arrow {
    color: color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 68%, #cfe9ff);
    font-size: 12px;
    opacity: 0.7;
}

.gs-workflow-launcher-entry {
    position: absolute;
    z-index: 35;
    right: 24px;
    bottom: 66px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 190, 111, 0.42);
    border-radius: 12px;
    color: #07111f;
    background: linear-gradient(135deg, #ffd08b, #ff9f43 55%, #b98dff);
    box-shadow: 0 0 24px rgba(255, 159, 67, 0.28);
    cursor: pointer;
    pointer-events: auto;
    overflow: visible;
    --gs-entry-guide-accent: #ffb45f;
    animation: gs-resource-entry-pulse 2.8s ease-in-out infinite;
}

.gs-workflow-launcher-entry[hidden] {
    display: none;
}

.gs-agent-product-launcher-entry {
    right: 70px;
    --gs-entry-guide-accent: #ff75bf;
}

.gs-shell[data-theme="light"] .gs-workflow-launcher {
    border-color: rgba(72, 111, 169, 0.2);
    background: linear-gradient(145deg, rgba(247, 252, 255, 0.9), rgba(225, 236, 251, 0.84));
    box-shadow: 0 22px 58px rgba(51, 78, 116, 0.17), inset 0 1px rgba(255, 255, 255, 0.7);
}

.gs-shell[data-theme="light"] .gs-workflow-launcher-card {
    color: #183354;
    background: linear-gradient(135deg, color-mix(in srgb, var(--gs-workflow-accent, #ff9f43) 11%, rgba(251, 254, 255, 0.96)), rgba(232, 241, 252, 0.92));
}

@media (max-width: 1120px) {
    .gs-workflow-launcher {
        right: 16px;
        width: 196px;
    }

    .gs-workflow-launcher-entry {
        right: 16px;
    }

    .gs-agent-product-launcher {
        right: 220px;
    }

    .gs-agent-product-launcher-entry {
        right: 62px;
    }
}

@media (max-width: 1560px) {
    .gs-production-studio-trigger {
        width: 34px;
        justify-content: center;
        padding: 0;
    }

    .gs-production-studio-trigger > span {
        display: none;
    }
}

@media (max-width: 880px) {
    .gs-workflow-launcher {
        top: 190px;
        right: 16px;
        bottom: 120px;
        width: 184px;
    }

    .gs-agent-product-launcher {
        right: 216px;
    }
}

@media (max-width: 560px) {
    .gs-workflow-launcher {
        top: 258px;
        right: 12px;
        bottom: 168px;
        width: 158px;
        min-height: 214px;
        padding: 8px;
    }

    .gs-workflow-launcher-entry {
        right: 12px;
        bottom: 58px;
    }

    .gs-agent-product-launcher {
        right: 178px;
    }

    .gs-agent-product-launcher-entry {
        right: 58px;
    }

    .gs-workflow-launcher-header {
        grid-template-columns: 28px minmax(0, 1fr) 14px;
        gap: 6px;
    }

    .gs-workflow-launcher-mark {
        width: 27px;
        height: 27px;
    }

    .gs-workflow-launcher > p {
        margin-left: 34px;
    }

    .gs-workflow-launcher-card {
        min-height: 58px;
        grid-template-columns: 31px minmax(0, 1fr) 12px;
        gap: 6px;
        padding: 7px;
    }

    .gs-workflow-launcher-icon {
        width: 31px;
        height: 31px;
    }

    .gs-workflow-launcher-card-copy small {
        font-size: 7px;
    }
}

@media (max-width: 1120px) {
    .gs-session-indicator {
        display: none;
    }
}

@media (max-width: 880px) {
    .gs-production-studio-menu {
        position: fixed;
        top: 58px;
        right: 16px;
    }

    .gs-header {
        top: 15px;
        right: 17px;
        left: 17px;
    }

    .gs-model-rail {
        top: 104px;
        right: 16px;
        left: 16px;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .gs-rail-title-wrap {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .gs-rail-eyebrow {
        margin: 0;
    }

    .gs-rail-title-wrap h1 {
        font-size: 14px;
    }

    .gs-rail-shell {
        min-height: 50px;
    }

    .gs-model-group-label {
        height: 50px;
    }

    .gs-model-chip {
        width: 150px;
        min-width: 150px;
        min-height: 50px;
        padding: 6px 8px;
    }

    .gs-model-icon {
        width: 27px;
        height: 27px;
    }

    .gs-agent-empty {
        top: 48%;
        padding: 24px;
    }

    .gs-agent-empty h2 {
        font-size: 28px;
    }

    .gs-agent-steps {
        gap: 4px;
        font-size: 9px;
    }

    .gs-agent-steps span {
        padding: 6px 7px;
    }

    .gs-composer {
        bottom: 16px;
        width: calc(100vw - 24px);
    }

    .gs-workflow-toolbar {
        top: 62px;
        right: 17px;
        left: auto;
        transform: none;
    }

    .gs-canvas-hud {
        bottom: 12px;
        left: 16px;
    }

    .gs-toast-region {
        top: 203px;
    }

    .gs-resource-dock {
        top: 190px;
        bottom: 64px;
        left: 16px;
        width: 196px;
    }

    .gs-resource-entry {
        bottom: 58px;
        left: 16px;
    }
}

@media (max-width: 560px) {
    .gs-production-studio-trigger {
        width: 34px;
        justify-content: center;
        padding: 0;
    }

    .gs-production-studio-trigger > span {
        display: none;
    }

    .gs-production-studio-menu {
        top: 56px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .gs-header-primary {
        gap: 10px;
    }

    .gs-account-user,
    .gs-wordmark-copy small {
        display: none;
    }

    .gs-account-strip {
        gap: 2px;
        padding-right: 3px;
    }

    .gs-account-action {
        padding: 0 5px;
    }

    .gs-account-credits {
        min-width: 48px;
        padding-right: 5px;
        padding-left: 5px;
    }

    .gs-model-rail {
        top: 146px;
    }

    .gs-workflow-toolbar {
        top: 104px;
        right: auto;
        left: 16px;
    }

    .gs-toast-region {
        top: 245px;
    }

    .gs-brightness-control output {
        display: none;
    }

    .gs-brightness-control {
        width: 70px;
    }

    .gs-rail-title-wrap h1 {
        font-size: 13px;
    }

    .gs-rail-shell {
        grid-template-columns: 25px minmax(0, 1fr) 25px;
        padding: 6px;
    }

    .gs-rail-nav {
        width: 24px;
        height: 26px;
        font-size: 18px;
    }

    .gs-model-chip {
        grid-template-columns: 30px minmax(0, 1fr);
        width: 142px;
        min-width: 142px;
    }

    .gs-model-chip strong {
        font-size: 10px;
    }

    .gs-model-chip small {
        font-size: 8px;
    }

    .gs-model-group-label {
        display: none;
    }

    .gs-workflow-toolbar select {
        width: 108px;
    }

    #saveStudioWorkflowAs,
    #importStudioWorkflow {
        display: none;
    }

    .gs-agent-empty {
        top: 46%;
        width: calc(100vw - 28px);
    }

    .gs-agent-empty > p:not(.gs-agent-kicker) {
        font-size: 11px;
    }

    .gs-agent-steps i {
        display: none;
    }

    .gs-agent-steps {
        flex-wrap: wrap;
    }

    .gs-composer-bottomline {
        align-items: flex-end;
    }

    .gs-create-button {
        min-width: 80px;
    }

    .gs-producer-node,
    .gs-display-node,
    .gs-plan-node {
        max-width: calc(100vw - 28px);
    }

    .gs-producer-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gs-node-field-model {
        grid-column: 1 / -1;
    }

    .gs-resource-dock {
        top: 190px;
        right: 14px;
        bottom: 62px;
        left: 14px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-workflow-launcher-loop {
        will-change: auto;
        transform: none !important;
    }

    .gs-agent-orbit,
    .gs-agent-spark,
    .gs-resource-entry,
    .gs-workflow-launcher-entry,
    .gs-xiaotu-logo-wrap::before,
    .gs-agent-entry-brand,
    .gs-agent-animated-title,
    .gs-agent-tagline {
        animation: none !important;
    }

    .gs-collapsed-entry-guide {
        display: none;
        will-change: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
