.theme-control{display:flex;align-items:center;gap:9px;min-width:0;color:inherit;font-size:12px}.theme-control-label{white-space:nowrap}.theme-segments{display:inline-flex;align-items:center;gap:2px;flex-shrink:0;padding:3px;border:1px solid var(--ui-border);border-radius:11px;background:var(--ui-surface-muted)}.theme-segments>.theme-mode-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:30px;margin:0;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:var(--ui-text-secondary);font:inherit;white-space:nowrap;cursor:pointer}.theme-segments>.theme-mode-button:hover{background:var(--ui-hover)}.theme-segments>.theme-mode-button[aria-pressed=true]{background:var(--ui-surface);color:var(--ui-text);box-shadow:0 1px 3px #0001}.theme-control-compact .theme-segments{gap:1px;padding:2px}.theme-control-compact .theme-mode-button{width:28px;min-height:28px;padding:0}@media(forced-colors:active){.theme-segments>.theme-mode-button[aria-pressed=true]{outline:1px solid ButtonText;outline-offset:-2px}}.home-skills{border-top:1px solid var(--ui-border);padding-top:18px}.home-skills>header{gap:16px;align-items:center;margin-bottom:18px}.home-skills header nav{display:flex;gap:23px;min-width:0;overflow-x:auto;align-items:center}.home-skills header nav button{font-size:12px;white-space:nowrap;padding:8px 0;color:var(--ui-text-muted)}.home-skills header nav button[aria-pressed=true]{color:var(--ui-text);font-weight:600}.home-skill-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.home-skills header .home-skill-actions button{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--ui-surface);padding:0;color:var(--ui-text-muted)}.home-skills header .home-skill-actions button:hover{background:var(--ui-hover);color:var(--ui-text)}.home-skills-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/4);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}.home-skill-card{min-width:0;padding:6px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;text-align:left;scroll-snap-align:start;transition:border-color .15s}.home-skill-card:hover{border-color:var(--ui-border-strong);background:var(--ui-hover)}.home-skill-cover{position:relative;overflow:hidden;aspect-ratio:1.75;border-radius:9px;color:var(--cover-ink);background:radial-gradient(ellipse at 70% 20%,#ffffff12,transparent 70%),linear-gradient(150deg,var(--cover-base),#181c1c)}.home-skill-cover>span{position:absolute;top:10px;left:11px;font-size:9px;letter-spacing:.06em;background:#10181866;padding:4px 6px;border:1px solid #ffffff18;border-radius:4px}.home-skill-cover>svg{display:block;width:100%;height:100%;padding-top:12px;stroke:currentColor;stroke-width:1.5;opacity:.8}.home-skill-cover>small{position:absolute;bottom:8px;right:9px;display:flex;align-items:center;gap:4px;font-size:8px;opacity:.65}.home-skill-card>div:last-child{padding:13px 8px 10px}.home-skill-card strong{display:flex;align-items:center;gap:8px;font-weight:500;font-size:13px;line-height:1.5;color:var(--ui-text)}.home-skill-card strong>svg{flex-shrink:0;margin-left:auto;color:var(--ui-text-muted)}.home-skill-card p{margin:7px 0 0;color:var(--ui-text-muted);font-size:11px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:37px}.home-skills-empty{display:flex;align-items:center;gap:12px;min-height:130px;color:var(--ui-text-muted);font-size:12px;border:1px dashed var(--ui-border);border-radius:12px;padding:22px}.home-skills-empty button{display:flex;align-items:center;gap:7px;color:var(--ui-text-secondary);font-size:12px;margin-left:auto}.home-selected-skill{display:flex;align-items:center;gap:7px;color:var(--ui-accent-text);font-size:12px;white-space:nowrap}.home-selected-skill>button{display:flex;padding:5px;border-radius:50%}.home-skill-compose-hint{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:11px;color:var(--ui-text-muted);margin:11px 3px}.home-skill-compose-hint>span,.home-skill-compose-hint>button{display:flex;align-items:center;gap:6px}.home-skill-compose-hint>button{color:var(--ui-text-secondary);font-size:11px}.home-skill-config{font-size:11px;color:var(--ui-accent-text);margin:4px 0}.home-skill-compose .composer-input textarea{min-height:140px}.home-skill-compose .composer-controls{overflow-x:auto;min-width:0}.home-skill-compose .composer-controls>*{flex-shrink:0}@media(min-width:1750px){.home-skills-rail{grid-auto-columns:calc((100% - 64px)/5)}}@media(max-width:1100px){.home-skills-rail{grid-auto-columns:calc((100% - 32px)/3)}}@media(max-width:700px){.home-skills-rail{grid-auto-columns:76%;gap:12px}.home-skills>header{align-items:flex-start;gap:10px}.home-skills header nav{gap:18px}.home-skill-actions{gap:4px}.home-skill-actions>button:first-child{display:none!important}.home-skills-empty{flex-wrap:wrap}.home-skill-compose-hint{align-items:flex-start;flex-direction:column;gap:10px}.home-selected-skill{max-width:260px}.home-skill-compose .composer-input textarea{min-height:120px}.home-skill-card p{font-size:12px}}.automation-capabilities{border:1px solid var(--ui-border);border-radius:10px;padding:12px 14px;margin:0 0 18px;font-size:12px;color:var(--ui-text-secondary)}.automation-capabilities>summary{cursor:pointer;color:var(--ui-text);font-size:13px}.automation-capabilities>summary>span{margin-left:16px;color:var(--ui-text-muted);font-size:12px}.automation-capabilities p{line-height:1.65;margin:8px 0}.capability-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:8px}.capability-list article{background:var(--ui-surface);border-radius:8px;padding:12px}.capability-list article>div{display:flex;justify-content:space-between;gap:12px;color:var(--ui-accent-text)}.capability-list strong{font-weight:500;color:var(--ui-text)}.capability-list small{display:block;line-height:1.7;overflow-wrap:anywhere}.capability-missing{color:var(--ui-warning)}.audio-capability-fields{margin:14px 0;display:grid;gap:8px;font-size:12px}.audio-capability-fields label{display:inline-flex;align-items:center;gap:6px;margin-right:12px}.audio-capability-fields small{color:var(--ui-text-muted)}.production-routing{border-top:1px solid var(--ui-border);padding:12px 0;font-size:12px}.production-routing summary{cursor:pointer;color:var(--ui-text-secondary)}.production-routing article{padding:8px 0;border-bottom:1px solid var(--ui-border)}.production-routing article p{margin:5px 0;color:var(--ui-accent-text)}.production-routing .platform-select{max-width:100%}.agent-route-notes{display:block;font-size:12px;color:var(--ui-text-secondary);line-height:1.8}.knowledge-index-status{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;line-height:1.6;color:var(--ui-text-muted);padding:9px 0}.knowledge-index-status>svg{flex:none;color:var(--ui-text-secondary)}.knowledge-index-status small{flex-basis:100%;padding-left:20px;font-size:11px;color:var(--ui-accent-text)}.knowledge-index-status button{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--ui-text-secondary);padding:3px 7px;border:1px solid var(--ui-border);border-radius:6px}.provider-tabs{flex-wrap:wrap}.model-editor-fields a{color:var(--ui-accent-text)}.model-editor-fields input[aria-label="向量 API 地址"]{font-size:12px}.canvas-action-trigger{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:0;background:transparent;color:var(--ui-text);padding:9px 10px;border-radius:8px;font-size:13px;cursor:pointer}.canvas-action-trigger:hover,.canvas-action-trigger[aria-expanded=true]{background:var(--ui-selected)}.canvas-action-trigger.compact{padding:7px;background:color-mix(in srgb,var(--ui-surface) 87.5%,transparent)}.canvas-action-menu{z-index:1800;padding:7px;border:1px solid var(--ui-border);background:var(--ui-surface);box-shadow:0 10px 30px #0006;border-radius:14px;overflow:auto;color:var(--ui-text);-webkit-user-select:none;user-select:none}.canvas-action-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;font-size:14px;cursor:pointer}.canvas-action-menu button:hover,.canvas-action-menu button:focus-visible{background:var(--ui-hover);outline:0}.canvas-action-menu button:disabled{opacity:.4;cursor:default}.breakdown-source-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--ui-text-muted);font-size:12px}.breakdown-source{position:relative;width:100%;border-radius:12px;overflow:hidden;background:var(--ui-surface-muted);min-height:155px}.breakdown-source video{display:block;width:100%;height:168px;object-fit:contain}.breakdown-source-empty{display:flex;min-height:168px;align-items:center;justify-content:center;gap:10px;color:var(--ui-text-muted)}.breakdown-source-switch{position:absolute;right:7px;top:7px}.video-selection-toolbar{position:absolute;z-index:60;display:flex;align-items:center;gap:2px;padding:7px 10px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:15px;box-shadow:0 5px 20px #0007;overflow-x:auto;white-space:nowrap;font-size:13px;-webkit-user-select:none;user-select:none}.video-selection-toolbar>button,.video-selection-toolbar>a{display:flex;align-items:center;gap:6px;padding:9px 8px;flex-shrink:0;border-radius:8px;color:var(--ui-text)}.video-selection-toolbar>button:hover,.video-selection-toolbar>a:hover{background:var(--ui-hover)}.video-toolbar-divider{height:23px;width:1px;background:var(--ui-border);flex-shrink:0;margin:0 4px}.modal:has(.video-operation-workspace){width:min(1020px,95vw);max-height:93dvh;padding:22px}.video-operation-workspace{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:22px;font-size:13px}.video-operation-workspace main{min-width:0}.video-operation-preview{position:relative;background:#111;max-height:50vh;width:100%;overflow:hidden;border-radius:9px}.video-operation-preview video{display:block;width:100%;height:100%;object-fit:fill}.video-crop-overlay{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none;cursor:crosshair}.video-crop-overlay>span{position:absolute;border:2px solid #d4e9e6;background:#b8d8d922;box-shadow:0 0 0 1000px #0008;pointer-events:none}.video-operation-workspace aside{border-left:1px solid var(--ui-border);padding-left:20px;min-width:0}.video-operation-workspace h3{font-size:15px;margin:0 0 14px}.video-operation-workspace label{display:block;color:var(--ui-text-secondary);line-height:1.7;margin:12px 0}.video-operation-workspace input,.video-operation-workspace textarea{display:block;width:100%;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:7px;color:var(--ui-text);padding:8px;font-size:13px}.video-operation-workspace textarea{min-height:90px;resize:vertical}.video-operation-workspace .primary{width:100%;margin-top:12px;padding:10px;font-size:13px}.video-operation-workspace .tool-note{font-size:12px;line-height:1.6;color:var(--ui-text-muted);overflow-wrap:anywhere}.video-operation-workspace button:not(.ark-select){margin-top:8px}.video-range-fields,.video-crop-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.video-operation-result{border-top:1px solid var(--ui-border);margin-top:16px;padding-top:8px}.video-operation-result video{width:100%;max-height:300px;background:#111;border-radius:7px}.video-operation-result audio{width:100%;display:block;margin-top:12px}.video-operation-result p{color:var(--ui-text-muted);font-size:12px}.video-operation-result a{display:inline-block;margin:8px 0;color:var(--ui-accent-text)}.motion-reference{height:100px;max-width:100%;object-fit:contain;border-radius:7px}@media(max-width:720px){.video-operation-workspace{grid-template-columns:1fr}.video-operation-workspace aside{border:0;padding:0}.video-operation-preview{max-height:none}.video-selection-toolbar{font-size:12px}}.intro-source{display:block;width:100%;max-height:45vh;object-fit:contain;background:#111;border-radius:10px}.intro-tabs{display:flex;gap:8px;margin-bottom:14px}.intro-tabs button,.intro-styles button{padding:8px 10px;border:1px solid var(--ui-border);border-radius:8px;color:var(--ui-text-secondary)}.intro-tabs button[aria-pressed=true],.intro-styles button[aria-pressed=true]{color:var(--ui-text);background:var(--ui-selected);border-color:var(--ui-accent)}.intro-styles{display:grid;grid-template-columns:1fr 1fr;gap:7px}.intro-workspace input[type=range]{padding:0;accent-color:var(--ui-accent)}.image-edit-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2400;background:var(--ui-overlay);display:flex;align-items:center;justify-content:center;padding:24px;-webkit-user-select:none;user-select:none;color:var(--ui-text)}.image-edit-dialog{position:relative;width:min(1100px,100%);max-height:85vh;display:flex;flex-direction:column;overflow:hidden;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:18px;box-shadow:0 24px 90px #0009;font-size:13px}.image-edit-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:8px;color:var(--ui-text);padding:9px 12px;font:inherit;cursor:pointer;white-space:nowrap}.image-edit-dialog button:hover{background:var(--ui-hover)}.image-edit-dialog button:disabled{opacity:.4;cursor:default}.image-edit-dialog button:focus-visible,.image-edit-dialog input:focus-visible,.image-edit-dialog textarea:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.image-edit-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--ui-border);gap:16px}.image-edit-dialog>header>div{display:flex;align-items:baseline;gap:14px;min-width:0}.image-edit-dialog>header strong{font-size:16px;flex-shrink:0}.image-edit-dialog>header span{color:var(--ui-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-edit-dialog>header button{background:transparent;border:0;padding:7px}.image-edit-body{display:grid;grid-template-columns:minmax(0,1fr) 220px;min-height:0;overflow:auto}.image-edit-stage{height:min(62vh,640px);min-height:230px;display:flex;align-items:center;justify-content:center;overflow:hidden;background-color:#171717;background-image:linear-gradient(45deg,#202020 25%,transparent 25%),linear-gradient(-45deg,#202020 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#202020 75%),linear-gradient(-45deg,transparent 75%,#202020 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.image-edit-stage canvas{display:block;max-width:100%;max-height:100%;touch-action:none}.image-edit-stage.is-annotating canvas{cursor:crosshair}.image-edit-loading{display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--ui-text-secondary)}.image-edit-loading svg,.image-edit-status svg{animation:image-edit-spin 1s linear infinite}.image-edit-body>aside{padding:20px 16px;display:flex;flex-direction:column;gap:18px;background:var(--ui-surface);border-left:1px solid var(--ui-border);overflow:auto}.image-edit-body label{display:flex;flex-direction:column;gap:10px;color:var(--ui-text-secondary);font-size:12px}.image-edit-body input[type=range]{width:100%;accent-color:var(--ui-accent);cursor:pointer}.image-edit-angle{display:flex;align-items:center;gap:8px}.image-edit-angle input{min-width:0;width:100%;padding:9px 10px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:7px;color:var(--ui-text);font:inherit}.image-edit-flips{display:flex;flex-direction:column;gap:10px}.image-edit-dialog button[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-text)}.image-edit-tools{display:flex;gap:6px}.image-edit-tools button{flex:1;flex-direction:column;padding:9px 4px;font-size:11px}.image-edit-body input[type=color]{width:100%;height:34px;padding:3px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:6px;cursor:pointer}.image-edit-body textarea{resize:vertical;min-height:90px;max-height:180px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:7px;padding:9px;color:var(--ui-text);font-family:inherit;font-size:13px;line-height:1.5;-webkit-user-select:text;user-select:text}.image-edit-body small{font-size:11px;line-height:1.5;color:var(--ui-text-muted)}.image-edit-history{display:flex;gap:8px}.image-edit-history button{flex:1;padding:9px 8px}.image-edit-reset{width:100%}.image-edit-note{margin:auto 0 0;color:var(--ui-text-muted);font-size:12px;line-height:1.7}.image-edit-dialog>footer{padding:14px 20px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--ui-border);min-height:66px}.image-edit-dialog>footer>div{flex:1;min-width:0}.image-edit-dialog>footer span{font-size:12px;color:var(--ui-text-muted)}.image-edit-dialog>footer p{margin:0;color:var(--ui-danger);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.image-edit-status{display:flex;align-items:center;gap:6px}.image-edit-dialog .image-edit-save{background:var(--ui-button);border-color:var(--ui-button);color:var(--ui-on-accent)}.image-edit-dialog .image-edit-save:hover{background:var(--ui-button)}.image-edit-confirm{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;background:color-mix(in srgb,var(--ui-surface-muted) 66.7%,transparent);display:flex;align-items:center;justify-content:center;padding:20px}.image-edit-confirm>div{background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:14px;padding:24px;box-shadow:0 10px 40px #0007;max-width:430px}.image-edit-confirm strong{font-size:16px}.image-edit-confirm p{color:var(--ui-text-secondary);line-height:1.7;margin:13px 0 22px}.image-edit-confirm nav{display:flex;justify-content:flex-end;gap:9px}@keyframes image-edit-spin{to{transform:rotate(360deg)}}@media(max-width:680px){.image-edit-backdrop{padding:10px}.image-edit-dialog{max-height:92vh}.image-edit-body{grid-template-columns:minmax(0,1fr) 165px}.image-edit-body>aside{padding:14px 10px;gap:13px}.image-edit-stage{height:54vh;min-height:190px}.image-edit-dialog>header,.image-edit-dialog>footer{padding:12px}.image-edit-dialog>header span{display:none}.image-edit-dialog>footer{flex-wrap:wrap}.image-edit-dialog>footer>div{flex-basis:100%}.image-edit-dialog button{padding:8px}.image-edit-history{gap:4px}}@media(prefers-reduced-motion:reduce){.image-edit-loading svg,.image-edit-status svg{animation:none}}.image-selection-toolbar{position:absolute;z-index:60;display:flex;align-items:center;gap:2px;padding:6px 8px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:14px;box-shadow:0 5px 20px #0007;white-space:nowrap;font-size:13px;-webkit-user-select:none;user-select:none}.image-selection-toolbar>button,.image-selection-toolbar>a{display:flex;align-items:center;gap:7px;padding:9px 8px;border:0;background:transparent;flex-shrink:0;border-radius:8px;color:var(--ui-text);font-size:inherit;cursor:pointer}.image-selection-toolbar>button:hover,.image-selection-toolbar>a:hover,.image-selection-toolbar>button[aria-expanded=true]{background:var(--ui-selected)}.image-selection-toolbar>button:disabled{opacity:.4;cursor:default}.image-toolbar-divider{height:22px;width:1px;background:var(--ui-border);margin:0 3px}.image-grid-menu{z-index:1800;padding:7px;border:1px solid var(--ui-border);background:var(--ui-surface);box-shadow:0 10px 30px #0006;border-radius:13px;overflow:auto;color:var(--ui-text);-webkit-user-select:none;user-select:none;font-size:13px}.image-grid-presets button,.image-grid-custom{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;font-size:inherit;cursor:pointer}.image-grid-presets button>span,.image-grid-custom>svg{margin-left:auto;color:var(--ui-text-muted)}.image-grid-presets button:hover,.image-grid-presets button:focus-visible,.image-grid-custom:hover,.image-grid-custom:focus-visible{background:var(--ui-hover);outline:0}.image-grid-menu button:disabled{opacity:.4;cursor:default}.image-grid-custom{border-top:1px solid var(--ui-border);border-radius:0 0 8px 8px}.image-grid-custom-body{padding:2px 9px 9px}.image-grid-custom-body>p{margin:5px 0 10px;color:var(--ui-text-secondary);font-size:12px}.image-grid-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.image-grid-picker button{aspect-ratio:1;border:1px solid var(--ui-border-strong);border-radius:4px;background:var(--ui-surface-raised);padding:0;cursor:pointer}.image-grid-picker button.chosen{background:var(--ui-accent-soft);border-color:var(--ui-accent)}.image-grid-picker button:focus-visible{outline:2px solid var(--ui-border-strong);outline-offset:1px}.image-grid-fields{display:flex;gap:12px;margin:12px 0}.image-grid-fields label{display:flex;align-items:center;gap:6px;color:var(--ui-text-secondary);font-size:12px}.image-grid-fields input{width:60px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:6px;color:var(--ui-text);padding:5px 7px;font-size:13px}.image-grid-apply{width:100%;padding:9px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);color:var(--ui-text);cursor:pointer;font-size:13px}.image-grid-apply:hover{background:var(--ui-hover)}.image-grid-error,.image-grid-progress{font-size:12px;line-height:1.5;margin:8px 10px;white-space:normal;overflow-wrap:anywhere}.image-grid-error{color:var(--ui-danger)}.image-grid-progress{color:var(--ui-success)}.image-grid-spinner{animation:image-grid-spin 1s linear infinite}@keyframes image-grid-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.image-grid-spinner{animation:none}}.canvas-list-page{position:absolute;top:76px;right:0;bottom:0;left:0;z-index:5;background:var(--ui-canvas);overflow:auto;padding:28px clamp(24px,5vw,90px) 64px;color:var(--ui-text)}.canvas-list-page>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:23px;border-bottom:1px solid var(--ui-border)}.canvas-list-page h1{font-size:24px;letter-spacing:.02em;margin:0 0 8px;font-weight:600}.canvas-list-page header p{margin:0;color:var(--ui-text-muted);font-size:12px}.canvas-list-search{display:flex;align-items:center;gap:8px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:9px;padding:9px 12px;color:var(--ui-text-muted)}.canvas-list-search input{background:none;border:0;outline:0;color:var(--ui-text);width:180px;font-size:12px}.canvas-list-tabs{display:flex;gap:24px;overflow-x:auto;margin:18px 0 24px;border-bottom:1px solid var(--ui-border)}.canvas-list-tabs button{display:flex;align-items:center;gap:7px;white-space:nowrap;padding:15px 1px;border-radius:0;border-bottom:2px solid transparent;color:var(--ui-text-muted);font-size:13px}.canvas-list-tabs button[aria-pressed=true]{color:var(--ui-text);border-color:var(--ui-accent)}.canvas-list-tabs button span{font-size:12px;color:var(--ui-text-muted)}.canvas-list-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px;align-items:start}.canvas-list-card,.canvas-list-new{min-width:0;border:1px solid var(--ui-border);background:var(--ui-surface-muted);border-radius:16px;overflow:hidden}.canvas-list-new{align-self:stretch;padding:8px;text-align:left}.canvas-list-new>div{aspect-ratio:1.25;display:grid;place-items:center;border-radius:10px;background:var(--ui-surface);color:var(--ui-text-secondary)}.canvas-list-new svg{box-sizing:content-box;border:1px dashed var(--ui-border-strong);padding:14px;border-radius:50%}.canvas-list-new strong{display:block;font-size:13px;margin:16px 10px 8px}.canvas-list-new>span{display:block;font-size:11px;margin:0 10px 16px;color:var(--ui-text-muted)}.canvas-list-preview{width:100%;aspect-ratio:1.25;position:relative;display:block;overflow:hidden;text-align:left;background:var(--ui-surface);padding:0}.canvas-list-preview>img,.canvas-list-preview>video{height:100%;width:100%;object-fit:contain;background:#191919}.list-kind{position:absolute;top:10px;left:10px;background:#161616d9;border:1px solid #ffffff16;border-radius:5px;padding:4px 7px;font-size:10px;color:#ddd}.list-content-preview{height:100%;padding:48px 18px 16px;background:linear-gradient(140deg,var(--ui-surface-raised),var(--ui-surface));color:var(--ui-text-muted)}.list-content-preview p{font-size:12px;line-height:1.75;color:var(--ui-text-secondary);white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.list-content-preview>svg{display:none}.list-audio-wave{display:flex;height:100%;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:linear-gradient(135deg,var(--ui-surface-raised),var(--ui-surface));color:var(--ui-text-secondary);font-size:11px}.list-running{position:absolute;bottom:10px;left:10px;font-size:11px;display:flex;gap:5px;align-items:center;background:#161616df;border-radius:5px;padding:5px 7px;color:#eee}.list-media-icon{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);background:#161616a6;padding:7px;border-radius:50%;box-sizing:content-box;color:#eee}.canvas-list-card-body{padding:14px}.canvas-list-card-body>strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:500}.canvas-list-card-body>p{font-size:11px;color:var(--ui-text-muted);line-height:1.6;margin:8px 0 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:17px}.canvas-list-card-body footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--ui-text-muted)}.canvas-list-card-body footer span,.canvas-list-card-body footer button{display:flex;align-items:center;gap:5px}.canvas-list-card-body footer button{color:var(--ui-accent-text);font-size:10px;padding:3px 0}.canvas-list-card:hover,.canvas-list-new:hover{border-color:var(--ui-border-strong)}.canvas-list-empty{padding:50px;text-align:center;color:var(--ui-text-muted)}.canvas-list-empty svg{margin:auto}.canvas-list-empty button{color:var(--ui-text);font-size:12px}.canvas-list-note{font-size:12px;color:var(--ui-text-muted);margin-top:22px}.studio .canvas-view-tabs{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}.canvas-view-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--ui-text-muted);padding:8px 11px;border-radius:8px;white-space:nowrap}.canvas-view-tabs button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text)}.studio.list-mode>.react-flow{visibility:hidden;opacity:0;pointer-events:none}.studio.list-mode>:is(.group-layer,.canvas-controls,.bottom-dock,.canvas-hint,.empty-canvas,.selection-actions,.sidebar,.run-monitor,.director-trigger){display:none}.studio.list-mode .topbar{z-index:8}.studio.list-mode .topbar .project-group{box-shadow:none}.studio.list-mode .topbar{background:var(--ui-canvas)}.studio.list-mode .topbar-right{margin-left:auto}@media(min-width:1600px){.canvas-list-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}@media(max-width:900px){.studio .canvas-view-tabs{gap:0}.canvas-view-tabs button{padding:8px}.canvas-view-tabs button svg{display:none}.studio .project-name{width:90px}.studio .canvas-name{max-width:80px}}@media(max-width:700px){.studio .topbar{flex-wrap:wrap}.studio .canvas-view-tabs{order:3;position:absolute;top:46px;left:50%;transform:translate(-50%);display:flex}.canvas-view-tabs button{padding:7px 15px}.canvas-list-page{top:102px;right:0;bottom:0;left:0;padding:22px 16px 40px}.canvas-list-page>header{align-items:flex-start;gap:14px;flex-direction:column;padding-bottom:16px}.canvas-list-page h1{font-size:21px}.canvas-list-search,.canvas-list-search input{width:100%}.canvas-list-tabs{gap:20px;margin:10px 0 18px}.canvas-list-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.canvas-list-new>div,.canvas-list-preview{aspect-ratio:1}.canvas-list-card-body{padding:11px}.canvas-list-card-body footer{flex-wrap:wrap}.canvas-list-new strong{margin:12px 4px 8px}.canvas-list-new>span{margin:0 4px 12px}.canvas-list-new{padding:6px}.canvas-list-card-body>strong{font-size:12px}}.assets-organized .assets-main{min-width:0}.assets-organized .assets-main>header h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-page-actions{display:flex;gap:8px;flex-shrink:0}.asset-folder-heading{display:flex;align-items:center;gap:5px;color:var(--ui-text-muted);margin:22px 6px 5px;font-size:11px}.asset-folder-heading>span{flex:1}.asset-folder-heading>button{padding:3px;display:flex;color:var(--ui-text-secondary);border-radius:4px}.asset-folder-list{display:flex;flex-direction:column;gap:4px;overflow:auto}.asset-folder-list>button{display:flex;align-items:center;gap:9px;text-align:left;min-height:34px;border-radius:7px;padding:8px 10px;font-size:12px;color:var(--ui-text-secondary);min-width:0}.asset-folder-list>button.selected{background:var(--ui-selected);color:var(--ui-text)}.asset-folder-list>button>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.asset-folder-list svg{flex-shrink:0}.asset-folder-list small{font-size:10px;color:var(--ui-text-muted)}.assets-organized .assets-filters{margin-bottom:14px}.asset-organize-toolbar{display:flex;gap:14px;align-items:center;font-size:11px;color:var(--ui-text-muted);margin-bottom:16px;min-height:25px}.asset-organize-toolbar>button{display:flex;align-items:center;gap:6px;font-size:11px}.asset-organize-toolbar>button:first-of-type{margin-left:auto}.asset-organize-toolbar>label{display:flex;align-items:center;gap:6px}.asset-organize-toolbar input{accent-color:var(--ui-accent)}.organized-asset-card{gap:9px}.organized-asset-card.is-selected{border-color:var(--ui-accent)}.organized-asset-cover{display:block;width:100%;padding:0;position:relative;overflow:hidden;border-radius:8px;aspect-ratio:1;background:var(--ui-surface)}.organized-asset-cover>img,.organized-asset-cover>video,.organized-asset-cover>.audio-cover{width:100%;height:100%;object-fit:cover}.asset-selection-mark{position:absolute;right:8px;top:8px;width:18px;height:18px;border-radius:4px;background:#222c;border:1px solid #888;display:grid;place-items:center;color:#fff}.organized-asset-card>footer{display:flex;align-items:center;gap:8px}.organized-asset-card>footer>small{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--ui-text-muted)}.organized-asset-card>footer>button{display:flex;border-radius:4px;padding:4px;color:var(--ui-text-muted)}.character-library>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}.character-library h1{font-size:20px;font-weight:500;margin:0}.character-library>header p{font-size:11px;color:var(--ui-text-muted);margin:9px 0 0}.character-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.character-filters>.ark-select{width:auto;min-width:84px;max-width:170px;background:var(--ui-surface);border:1px solid transparent;border-radius:24px;height:34px;padding:0 14px;font-size:12px;gap:12px}.character-filters>.ark-select[aria-expanded=true]{background:var(--ui-hover);border-color:var(--ui-border-strong)}.character-filters>.library-search{margin-left:auto;width:160px}.character-manage{height:32px;width:32px;border-radius:50%;display:grid;place-items:center;color:var(--ui-text-secondary);background:var(--ui-surface)}.character-results{display:flex;align-items:center;gap:12px;margin:20px 0 16px;font-size:11px;color:var(--ui-text-muted)}.character-results>button{font-size:11px;color:var(--ui-text-secondary)}.character-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:18px}.character-card{min-width:0;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:12px;overflow:hidden}.character-cover{width:100%;aspect-ratio:3/4;padding:0;background:var(--ui-surface-muted);position:relative;display:grid;place-items:center;color:var(--ui-text-muted)}.character-cover>img{width:100%;height:100%;object-fit:cover}.character-cover>span{position:absolute;bottom:10px;left:10px;max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#191919bb;padding:4px 8px;color:#ddd;font-size:10px;border-radius:5px}.character-card-copy{padding:12px 12px 8px}.character-card-copy>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.character-card-copy>small{display:block;font-size:10px;color:var(--ui-text-muted);margin-top:7px}.character-card-copy>p{font-size:11px;color:var(--ui-text-muted);margin:9px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.character-card>footer{padding:5px 8px 10px;display:flex;gap:4px}.character-card>footer>button{display:flex;align-items:center;gap:6px;color:var(--ui-text-muted);font-size:11px;padding:5px;border-radius:5px}.character-card>footer>button:last-child{margin-left:auto;color:var(--ui-text)}.modal:has(.character-editor){width:680px}.character-editor .form-field{font-size:12px}.character-editor .form-field>input,.character-editor .form-field>textarea,.character-editor .ark-select{font-size:12px}.character-editor-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.character-editor-fields .form-field{min-width:0}.character-editor textarea{height:85px;resize:vertical}.character-reference-heading{display:flex;align-items:center;justify-content:space-between;margin:18px 0 12px;gap:8px}.character-reference-heading strong{font-size:12px;font-weight:500}.character-reference-heading small{font-size:10px;color:var(--ui-text-muted);font-weight:400;margin-left:7px}.character-selected-images{display:flex;gap:8px;overflow:auto;padding-bottom:12px}.character-selected-images>div{width:72px;height:82px;position:relative;flex-shrink:0;border:1px solid var(--ui-border-strong);border-radius:7px;overflow:hidden}.character-selected-images img{width:100%;height:100%;object-fit:cover}.character-selected-images span{position:absolute;left:3px;bottom:3px;font-size:9px;background:#111a;padding:1px 4px;border-radius:3px;color:#fff}.character-selected-images button{position:absolute;right:2px;top:2px;padding:3px;background:#111b;border-radius:50%;display:flex;color:#fff}.character-image-search{width:100%;height:31px;margin:0 0 9px}.character-reference-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-height:160px;overflow:auto}.character-reference-options>button{padding:3px;border:1px solid var(--ui-border);border-radius:7px;position:relative;min-width:0}.character-reference-options>button[aria-pressed=true]{border-color:var(--ui-accent)}.character-reference-options img{width:100%;height:70px;object-fit:cover;border-radius:4px}.character-reference-options span{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%;padding:4px 1px}.character-reference-options svg{position:absolute;right:6px;top:6px;background:var(--ui-button);border-radius:50%;padding:2px;box-sizing:content-box;color:var(--ui-on-accent)}.character-editor>footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--ui-border);padding-top:16px;margin-top:20px}.character-editor>footer .primary{width:auto;margin:0}.collection-error{font-size:12px;color:var(--ui-danger);line-height:1.6}.collection-list{display:flex;flex-direction:column;gap:5px;max-height:35vh;overflow:auto;margin-bottom:20px}.collection-list>div{display:flex;align-items:center;gap:8px;padding:9px 10px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:7px}.collection-list span{flex:1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-list button{display:flex;padding:5px;border-radius:4px;color:var(--ui-text-secondary)}.collection-form-actions{display:flex;gap:9px;justify-content:flex-end}.collection-form-actions .primary{width:auto;margin:0}.collection-delete p{font-size:13px;color:var(--ui-text-secondary);line-height:1.8}.collection-delete button{margin-right:10px}.danger-text{color:var(--ui-danger)!important}.character-library-drawer{position:absolute;top:60px;bottom:85px;left:12px;width:min(780px,calc(100vw - 24px));z-index:35;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;box-shadow:0 14px 40px #0008;overflow:auto;padding:20px}.character-library-drawer>.drawer-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:15px;font-size:12px}.character-library-drawer>.drawer-toolbar button{display:flex;gap:6px;align-items:center}.character-library.compact h1{font-size:17px}.character-library.compact .character-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}@media(max-width:850px){.assets-organized>aside{flex-wrap:wrap;gap:4px;padding:8px 15px}.assets-organized>aside>button{padding:8px 12px}.asset-folder-heading{margin:0 5px;flex-basis:100%}.asset-folder-list{flex-direction:row;max-width:100%;padding-bottom:4px}.asset-folder-list>button{flex-shrink:0;max-width:170px}.character-filters>.library-search{margin-left:0;flex:1;min-width:130px}.character-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.asset-page-actions .subtle-button{font-size:11px}.character-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.character-reference-options{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:500px){.assets-organized .assets-main>header{align-items:flex-start;gap:16px;flex-direction:column}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.character-library>header{align-items:flex-start}.character-filters{gap:6px}.character-filters>.ark-select{min-width:0;padding:0 10px}.character-reference-heading{flex-wrap:wrap}.character-reference-options{grid-template-columns:repeat(3,minmax(0,1fr))}.character-library-drawer{padding:14px}}.asset-library-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:160;color:var(--ui-text);font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px}.character-editor .form-field{margin:10px 0;gap:7px}.character-editor .form-field>input,.character-editor .form-field>.ark-select{height:36px;background:var(--ui-input);border-color:var(--ui-border)}.character-editor .form-field>textarea{width:100%;min-height:76px;height:76px;resize:vertical;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:8px;padding:10px;line-height:1.7;color:var(--ui-text);outline:none}.character-editor .form-field>textarea:focus{border-color:var(--ui-accent)}.character-editor .character-image-search{width:100%;height:31px}.character-editor>footer{position:sticky;bottom:-20px;background:var(--ui-surface);padding:12px 0;margin-top:14px;z-index:2}.character-native-audio{min-width:0}.character-native-audio>.ark-select{width:100%;height:36px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;font-size:12px}.character-native-audio>.tool-note{font-size:11px;margin:0;color:var(--ui-text-muted)}.character-audio-preview{margin-top:9px;padding:10px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);min-width:0}.character-audio-preview>div{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--ui-text-secondary)}.character-audio-preview>div>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.character-audio-preview button{display:flex;padding:4px;border-radius:4px;color:var(--ui-text-muted)}.character-audio-preview audio{display:block;width:100%;min-width:0;height:32px;margin-top:8px;color-scheme:var(--ui-color-scheme)}.assets-organized .asset-grid{grid-template-columns:repeat(auto-fill,minmax(140px,160px));gap:16px 12px;align-content:start}.assets-organized .asset-card{padding:5px;border-radius:9px;gap:7px}.assets-organized .organized-asset-cover{border-radius:6px}.assets-organized .asset-card>span{font-size:11px}.asset-item-actions{display:inline-flex;align-items:center;gap:2px;flex-shrink:0}.asset-item-actions>button{display:flex;align-items:center;justify-content:center;padding:4px;border-radius:4px;color:var(--ui-text-muted)}.asset-item-actions>button:hover{background:var(--ui-hover);color:var(--ui-text)}.asset-item-actions>button:focus-visible{outline:1px solid var(--ui-accent);outline-offset:1px}.asset-browser-manage{display:flex;justify-content:flex-end;margin-top:4px}@media(max-width:520px){.assets-organized .asset-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}}.organized-asset-card .asset-role-links{display:flex;gap:5px;flex-wrap:wrap;padding:0 11px 8px}.asset-role-links small{font-size:11px;color:var(--ui-text-secondary);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:4px;padding:2px 5px}.organized-asset-card .product-material-label{font-size:10px;color:var(--ui-text-secondary);padding:0 6px}.canvas-shortcuts{position:fixed;z-index:45;left:50%;bottom:84px;transform:translate(-50%);width:min(1152px,calc(100vw - 32px));max-height:calc(100dvh - 150px);overflow:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:25px 0;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:18px;box-shadow:0 12px 40px #0005;-webkit-user-select:none;user-select:none}.shortcuts-close{position:absolute;right:14px;top:14px;color:var(--ui-text);padding:0;display:flex}.shortcut-column{padding:0 25px;border-right:1px solid var(--ui-border)}.shortcut-column:last-child{border:0}.shortcut-column h3{font-size:13px;font-weight:500;color:var(--ui-accent-text);margin:0 0 15px}.shortcut-row{height:40px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;color:var(--ui-text-muted);white-space:nowrap}.shortcut-keys{display:flex;gap:8px;align-items:center;color:var(--ui-text)}.shortcut-keys kbd{display:inline-flex;justify-content:center;align-items:center;min-width:28px;height:28px;padding:0 5px;border:1px solid var(--ui-border);border-radius:9px;font-family:inherit;font-size:13px;background:transparent}.shortcut-gesture{width:27px;height:28px;display:inline-flex;align-items:center;justify-content:center;position:relative;color:var(--ui-text)}.shortcut-gesture>svg+svg{position:absolute;left:-3px;top:-1px;color:var(--ui-accent-text)}.shortcut-gesture.mouse:after,.shortcut-gesture.mouse-pan:after{content:"";position:absolute;left:13px;top:7px;width:2px;height:5px;border-radius:3px;background:var(--ui-accent-soft)}.shortcut-gesture.mouse-left:after{content:"";position:absolute;left:8px;top:6px;width:4px;height:7px;border-radius:4px 0 0;background:var(--ui-accent-soft)}@media(max-width:1050px){.shortcut-column{padding:0 16px}.shortcut-row{font-size:12px}.shortcut-keys{gap:5px}.shortcut-keys kbd{min-width:24px;height:26px;font-size:12px}}@media(max-width:820px){.canvas-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px}.shortcut-column:nth-child(2){border:0}.shortcut-column{padding:0 20px}}@media(max-width:430px){.shortcut-column{padding:0 10px}.shortcut-row{font-size:11px;gap:4px}.shortcut-keys{gap:3px}.shortcut-keys kbd{min-width:20px;padding:0 3px;font-size:11px}}.account-menu{position:relative;flex-shrink:0}.account-popover{position:absolute;right:0;top:calc(100% + 10px);width:212px;padding:7px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;box-shadow:0 14px 38px #0008;z-index:55;text-align:left}.account-popover>div{padding:10px 11px 14px;border-bottom:1px solid var(--ui-border);margin-bottom:5px}.account-popover strong{display:block;font-size:13px;font-weight:550;color:var(--ui-text)}.account-popover small{display:block;font-size:11px;color:var(--ui-text-muted);margin-top:5px}.account-popover>button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border-radius:6px;text-align:left;font-size:12px;color:var(--ui-text)}.account-popover>button:hover{background:var(--ui-hover)}.account-popover>button>svg:last-child:not(:first-child){margin-left:auto}.workspace-preferences>p{font-size:12px;color:var(--ui-text-muted);margin:0 0 24px}.preferences-item{display:flex;align-items:center;gap:15px;width:100%;text-align:left;border:1px solid var(--ui-border);padding:18px;border-radius:10px;background:var(--ui-surface)}.preferences-item>span{flex:1}.preferences-item strong{font-size:13px;font-weight:500;display:block}.preferences-item small{font-size:11px;color:var(--ui-text-muted);display:block;margin-top:7px}.asset-browser{position:fixed;z-index:35;right:0;top:0;bottom:0;width:min(480px,100vw);background:var(--ui-surface);border-left:1px solid var(--ui-border);box-shadow:-15px 0 35px #0005;display:flex;flex-direction:column;padding:18px;font-size:12px;color:var(--ui-text);-webkit-user-select:none;user-select:none}.asset-browser>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.asset-browser strong{font-size:14px;font-weight:500}.asset-browser button{font-size:12px;border-radius:5px}.asset-browser-filters{display:flex;gap:7px}.asset-browser nav{display:flex;gap:16px;border-bottom:1px solid var(--ui-border);padding:15px 0 9px;margin-bottom:12px}.asset-browser nav button{padding:5px 8px}.asset-browser nav button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text)}.asset-search{display:flex;align-items:center;gap:8px;background:var(--ui-input);border-radius:7px;padding:8px;color:var(--ui-text-muted)}.asset-search input{min-width:0;flex:1;background:transparent;border:0;color:var(--ui-text);font-size:12px;outline:0}.asset-browser-actions{display:flex;align-items:center;gap:12px;padding:14px 0}.asset-browser-actions>span{margin-right:auto;color:var(--ui-text-muted)}.asset-browser-actions button{display:flex;gap:4px}.asset-browser-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;overflow:auto;align-content:start;flex:1}.asset-browser-grid article{border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);padding:7px;position:relative}.asset-browser-grid article.selected{border-color:var(--ui-accent)}.asset-browser-media{width:100%;height:115px;background:#151515!important;display:grid;place-items:center;position:relative;overflow:hidden;color:#ddd}.asset-browser-media img,.asset-browser-media video{width:100%;height:115px;object-fit:cover}.asset-browser-media audio{width:100%}.asset-browser-media>svg{position:absolute;top:8px;right:8px}.asset-browser-grid article p{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:8px 0}.asset-stars{display:flex;color:#a08034;gap:2px}.asset-stars button{padding:2px}.asset-browser-grid footer{display:flex;justify-content:space-between;margin-top:8px}.asset-browser-grid footer>button:last-child{font-size:10px;background:var(--ui-hover);padding:4px 7px}.asset-browser-grid small{font-size:9px;color:var(--ui-warning)}.asset-batch-footer{display:flex;gap:16px;align-items:center;border-top:1px solid var(--ui-border);padding-top:15px}.asset-batch-footer span{margin-right:auto}.asset-preview-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000a;display:grid;place-items:center;z-index:70}.asset-preview-overlay>div{width:min(800px,94vw);max-height:90vh;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;padding:16px}.asset-preview-overlay header,.asset-preview-overlay footer{display:flex;align-items:center;justify-content:space-between;padding:5px 0 14px}.asset-preview-overlay img,.asset-preview-overlay video{display:block;max-width:100%;max-height:65vh;margin:auto;object-fit:contain}.asset-preview-overlay footer{padding-top:16px;justify-content:flex-end;gap:22px}.asset-preview-overlay a{display:flex;gap:5px}.asset-browser-empty{text-align:center;padding:70px 10px;color:var(--ui-text-muted)}.asset-browser-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.asset-browser-media,.asset-browser-media img,.asset-browser-media video{height:auto;aspect-ratio:1;width:100%}.asset-browser-grid article{padding:5px}@media(max-width:400px){.asset-browser-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.director-stage{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;grid-template-columns:280px minmax(0,1fr) 260px;background:#060608;color:var(--ui-text);font-size:12px;-webkit-user-select:none;user-select:none}.director-stage button{color:var(--ui-text-secondary);border-radius:5px;font-size:12px;display:inline-flex;align-items:center;gap:6px;padding:7px}.director-stage button:hover,.director-stage button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text)}.director-stage input{background:var(--ui-input);border:1px solid var(--ui-border);border-radius:5px;padding:6px;color:var(--ui-text);min-width:0;width:100%;font-size:12px}.director-stage input[type=range]{padding:0;accent-color:var(--ui-accent)}.director-stage input[type=color]{width:35px;padding:2px}.stage-left,.stage-properties{background:var(--ui-surface-muted);border-right:1px solid var(--ui-border);overflow:auto}.stage-left>header,.stage-properties>header{height:48px;padding:14px;border-bottom:1px solid var(--ui-border);display:flex;align-items:center;gap:12px;font-size:13px}.stage-left-body{display:flex;height:calc(100% - 48px)}.stage-left nav{width:44px;border-right:1px solid var(--ui-border);padding:8px 4px;display:flex;flex-direction:column;gap:10px}.stage-left nav button{padding:8px}.stage-library{padding:14px 10px;flex:1;min-width:0}.stage-library h3{font-size:12px;font-weight:500;margin:0 0 14px}.stage-library>p{font-size:11px;color:var(--ui-text-muted);line-height:1.6}.stage-object{display:flex;margin-top:8px;align-items:center;border-radius:5px}.stage-object.selected{background:var(--ui-selected)}.stage-object>button:first-child{flex:1;text-align:left;overflow:hidden;white-space:nowrap}.stage-object>button:not(:first-child){padding:5px}.stage-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stage-presets button{display:flex;flex-direction:column;justify-content:center;background:var(--ui-surface);border:1px solid var(--ui-border);padding:15px 5px}.stage-wide{width:100%;margin-bottom:8px}.stage-center{position:relative;min-width:0;overflow:hidden}.director-viewport{position:absolute;top:0;right:0;bottom:0;left:0}.director-viewport canvas{display:block;width:100%;height:100%}.stage-view-switch{position:absolute;top:10px;left:50%;transform:translate(-50%);display:flex;gap:4px;padding:4px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px}.stage-view-switch button{white-space:nowrap}.stage-reset{position:absolute;right:18px;top:60px;background:var(--ui-surface)}.stage-center>footer{position:absolute;bottom:20px;left:50%;transform:translate(-50%);display:flex;gap:7px;align-items:center;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:22px;padding:7px;white-space:nowrap}.stage-properties{border-left:1px solid var(--ui-border)}.stage-properties>label,.stage-properties>.select,.stage-properties>input,.stage-properties>.ark-select{display:block;margin:16px;width:calc(100% - 32px)}.stage-properties label{color:var(--ui-text-muted);line-height:1.8}.stage-vector>div{display:flex;gap:5px;margin-top:8px}.stage-vector>div>label{display:flex;align-items:center;gap:3px;background:var(--ui-surface-raised);padding:0 5px;border-radius:5px;flex:1;min-width:0;font-size:10px}.stage-vector input{border:0;padding:5px 0;width:100%}.stage-check{display:flex!important;justify-content:space-between}.stage-check input{width:auto}.stage-object-actions,.stage-file-actions{display:flex;flex-wrap:wrap;gap:5px;padding:14px;border-top:1px solid var(--ui-border)}.stage-timeline{position:absolute;bottom:0;left:0;right:0;height:100px;background:var(--ui-surface-muted);border-top:1px solid var(--ui-border);display:flex;align-items:center;gap:10px;padding:16px;overflow:auto}.stage-center:has(.stage-timeline)>footer{bottom:115px}.stage-timeline>input[type=range]{flex:1}.stage-timeline>input[type=number]{width:60px}.stage-timeline>button{white-space:nowrap}.stage-timeline>span{white-space:nowrap}@media(max-width:900px){.director-stage{grid-template-columns:210px minmax(0,1fr) 210px}}@media(max-width:650px){.director-stage{grid-template-columns:160px minmax(0,1fr)}.stage-properties{position:absolute;right:0;top:55px;width:190px;max-height:55vh;opacity:.96}.stage-view-switch{left:12px;transform:none}.stage-center>footer{left:6px;transform:none;gap:0}.stage-center>footer button{padding:6px;font-size:10px}.stage-presets{grid-template-columns:1fr}}.director-stage fieldset{border:0;margin:0;padding:0;min-width:0}.director-stage button:disabled{opacity:.4;cursor:default}.stage-fields>label,.stage-fields>input{display:block;margin:16px;width:calc(100% - 32px)}.stage-property-tabs{display:flex;padding:8px 14px;gap:8px;border-bottom:1px solid var(--ui-border)}.stage-property-tabs button{flex:1;justify-content:center}.stage-poses{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:14px}.stage-poses button{justify-content:center;border:1px solid var(--ui-border);background:var(--ui-surface);min-height:34px}.stage-poses button[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-accent-soft)}.stage-joints{padding:0 14px 14px}.stage-joints details{border-top:1px solid var(--ui-border);padding:10px 0}.stage-joints summary{cursor:pointer;color:var(--ui-text-secondary);margin-bottom:6px}.stage-joint-row{display:grid;grid-template-columns:40px minmax(0,1fr) 52px;align-items:center;gap:7px;margin:8px 0}.stage-joint-row input[type=number]{padding:4px;text-align:right}.stage-center:has(.stage-timeline)>footer{bottom:152px}.stage-timeline{height:140px;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px 16px;overflow:hidden}.stage-timeline-controls{display:flex;align-items:center;gap:10px}.stage-timeline-controls>input[type=range]{flex:1;width:50px}.stage-timeline-controls>label{display:flex;align-items:center;gap:4px;white-space:nowrap}.stage-timeline-controls input[type=number]{width:50px}.stage-timeline-controls>span{font-variant-numeric:tabular-nums;min-width:42px}.stage-timeline button{white-space:nowrap}.stage-key-track{display:flex;align-items:center;gap:6px;overflow-x:auto;min-height:32px}.stage-key-track>span{white-space:nowrap;color:var(--ui-text-muted);margin-right:6px}.stage-key{display:flex;align-items:center;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:5px;flex-shrink:0}.stage-key>button:last-child{padding:4px}.stage-export-controls{margin-left:auto;display:flex;gap:6px;align-items:center;padding-left:14px;white-space:nowrap}.stage-export-controls .ark-select{min-width:84px}.stage-timeline-note{margin:0;color:var(--ui-text-muted);font-size:10px}.stage-export-status{position:absolute;top:70px;left:50%;transform:translate(-50%);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:220px;z-index:3;box-shadow:0 12px 35px #0008}.stage-export-status progress{accent-color:var(--ui-accent);width:100%}.stage-export-status small{color:var(--ui-text-secondary)}.stage-export-status button{align-self:flex-end}.stage-left fieldset textarea{width:100%;min-height:90px;background:var(--ui-input);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:6px}.stage-pose-note{font-size:11px;color:var(--ui-text-muted);padding:0 14px}.stage-joints .stage-joint-row label{white-space:nowrap}.stage-pose-panel>h3,.stage-pose-panel>p{padding:0 14px;font-size:12px}.stage-pose-panel>p{color:var(--ui-text-muted);font-size:11px}.stage-joint-row{grid-template-columns:64px minmax(0,1fr) 56px}.stage-joint-row>span{font-size:10px;white-space:nowrap}.stage-joint-row>label{display:flex;align-items:center;gap:3px}.reference-prompt-host{position:relative;min-width:0}.inspector .reference-prompt{display:block;width:100%;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;min-height:86px;height:auto;max-height:220px;outline:none;cursor:text;line-height:1.85;padding:13px 2px;color:var(--ui-text);-webkit-user-select:text;user-select:text}.reference-prompt:empty:before{content:attr(data-placeholder);color:var(--ui-text-muted);pointer-events:none}.expanded-inspector .reference-prompt{min-height:200px;max-height:calc(100dvh - 320px)}.prompt-mention{display:inline-flex;vertical-align:middle;align-items:center;gap:4px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-surface);padding:0 5px;line-height:22px;font-size:inherit;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;margin:0 2px}.prompt-mention:hover,.prompt-mention:focus-visible{background:var(--ui-hover);border-color:var(--ui-border-strong);outline:none}.prompt-mention img{width:19px;height:19px;object-fit:cover;border-radius:4px}.mention-symbol{background:var(--ui-surface-raised);color:var(--ui-text);border-radius:4px;display:inline-flex;width:19px;height:19px;align-items:center;justify-content:center}.prompt-mention.missing{border-color:var(--ui-danger);color:var(--ui-danger)}.mention-picker{position:absolute;left:0;bottom:calc(100% + 5px);width:min(350px,calc(100vw - 52px));background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;box-shadow:0 12px 38px #0008;padding:10px;z-index:60;color:var(--ui-text)}.mention-picker header{display:flex;align-items:center;gap:8px;padding:2px 3px 9px;border-bottom:1px solid var(--ui-border)}.mention-picker header input{background:none;border:0;outline:none;min-width:0;flex:1;font-size:12px;color:var(--ui-text)}.mention-picker header button{display:flex;padding:3px}.mention-tabs{display:flex;gap:4px;padding:9px 0}.mention-tabs button{padding:5px 8px;border-radius:6px;font-size:11px;color:var(--ui-text-secondary)}.mention-tabs button[aria-selected=true]{background:var(--ui-selected);color:var(--ui-text)}.mention-options{max-height:min(230px,30vh);overflow:auto}.mention-options>button{display:flex;align-items:center;gap:9px;width:100%;padding:7px;border-radius:6px;text-align:left}.mention-options>button[aria-selected=true],.mention-options>button:hover{background:var(--ui-selected)}.mention-options img{width:34px;height:34px;object-fit:cover;border-radius:5px}.mention-options>button>svg{width:34px;flex-shrink:0;color:var(--ui-text-secondary)}.mention-options span{min-width:0;display:flex;flex-direction:column;gap:3px}.mention-options strong{font-size:12px;font-weight:400}.mention-options small{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--ui-text-muted)}.mention-options p{font-size:11px;text-align:center;color:var(--ui-text-muted);padding:18px 2px}.mention-picker footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ui-border);margin-top:7px;padding-top:8px;font-size:10px;color:var(--ui-text-muted);gap:6px}.mention-picker footer button{font-size:10px;color:var(--ui-accent-text);padding:3px}.inspector .reference-strip{overflow-x:auto;flex-wrap:nowrap;padding:5px 0;gap:7px}.inspector .reference-tile{width:52px;height:52px;flex:0 0 52px;padding:0;position:relative;overflow:visible;border-radius:8px}.inspector .reference-tile .reference-insert{position:relative;opacity:1;inset:auto;display:flex;width:100%;height:100%;padding:0;justify-content:center;align-items:center;border-radius:8px;overflow:hidden;background:var(--ui-surface-raised)}.reference-insert>img,.reference-insert>video{width:100%;height:100%;object-fit:cover}.reference-insert .reference-order{position:absolute;top:3px;left:3px;background:#202020d9;border-radius:8px;padding:0 4px;font-size:10px;line-height:16px;color:#eee}.reference-type{position:absolute;bottom:2px;left:3px;font-size:9px;background:#252525ce;padding:0 3px;border-radius:3px;color:#eee}.inspector .reference-tile>.reference-remove{position:absolute;top:-4px;right:-4px;border-radius:50%;padding:2px;z-index:2;opacity:0}.inspector .reference-tile>.reference-preview-button{position:absolute;bottom:2px;right:2px;top:auto;padding:3px;border-radius:4px;background:#202020c9;opacity:0;color:#eee}.inspector .reference-tile:hover>button,.inspector .reference-tile:focus-within>button{opacity:1}.reference-preview-shade{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;z-index:1100;background:var(--ui-overlay);padding:24px}.reference-preview{width:fit-content;min-width:min(330px,90vw);max-width:90vw;max-height:90vh;overflow:auto;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;padding:15px;box-shadow:0 18px 65px #0009;outline:none}.reference-preview header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px;font-size:13px;color:var(--ui-text)}.reference-preview header>button{display:flex;padding:4px}.reference-preview>img,.reference-preview>video{display:block;max-width:85vw;max-height:75vh;object-fit:contain;border-radius:8px}.reference-preview>audio{display:block;max-width:80vw}.reference-preview>p{white-space:pre-wrap;max-width:650px;font-size:13px;line-height:1.8;color:var(--ui-text)}.run-monitor .run-group+.run-group{border-top:1px solid var(--ui-border);margin-top:6px;padding-top:6px}.run-monitor>div{max-height:340px;overflow:auto}@media(max-width:700px){.inspector .reference-prompt{max-height:150px;min-height:66px}.mention-picker{bottom:100%;max-height:50dvh;overflow:auto}.inspector .reference-tile>.reference-remove,.inspector .reference-tile>.reference-preview-button{opacity:1}.reference-preview-shade{padding:12px}}.inspector.v2-inspector .reference-prompt{height:auto;min-height:100px;max-height:220px}.inspector.v2-inspector.expanded-inspector .reference-prompt{height:auto;min-height:230px;max-height:calc(100dvh - 310px)}.mention-picker{position:fixed;bottom:auto;z-index:1005;overflow:auto}@media(max-width:700px){.inspector.v2-inspector .reference-prompt{min-height:66px;max-height:160px}}.reference-metadata{display:none}.reference-bindings{max-height:150px;overflow:auto}.reference-bindings summary{cursor:pointer}.reference-bindings div{margin-top:4px;overflow-wrap:anywhere}.reference-bindings p{margin:4px 0}.reference-bindings pre{white-space:pre-wrap;font:inherit;overflow-wrap:anywhere}.modal:has(.media-workspace){width:min(1120px,96vw);padding:18px;max-height:94dvh}.media-workspace{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:18px;font-size:12px}.media-preview{height:330px;background:#111;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}.media-preview video,.media-preview img{height:100%;width:100%;object-fit:contain}.media-empty{display:flex;flex-direction:column;align-items:center;gap:18px;color:var(--ui-text-muted)}.media-settings{border-left:1px solid var(--ui-border);padding-left:16px}.media-settings h3{font-size:14px;font-weight:500;margin:0 0 16px}.media-settings>label{display:block;margin:12px 0;color:var(--ui-text-secondary);line-height:1.8}.media-settings textarea,.media-settings input[type=number]{display:block;width:100%;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:6px;color:var(--ui-text);padding:8px}.media-settings textarea{height:75px;font-size:12px}.media-settings .primary{margin-top:15px;width:100%;font-size:12px}.media-settings input[type=range]{width:100%}.media-settings .media-check{display:flex;gap:8px}.media-track-heading,.analysis-results>header{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ui-border);padding:14px 0 10px}.media-workspace button{font-size:12px}.media-track-heading button,.analysis-results>header button{display:flex;gap:5px;align-items:center;padding:7px;border:1px solid var(--ui-border);border-radius:6px}.media-clips{max-height:210px;overflow:auto}.media-clip{display:flex;align-items:center;gap:7px;padding:9px;background:var(--ui-surface);border-radius:7px;margin:7px 0}.media-clip>span{flex:1;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-clip>label{display:flex;align-items:center;gap:4px;color:var(--ui-text-muted)}.media-clip input[type=number]{width:48px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:4px;padding:4px;color:var(--ui-text);font-size:11px}.media-picker,.analysis-scenes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-height:230px;overflow:auto}.media-picker button,.analysis-scenes button{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:7px;padding:6px;font-size:10px;display:flex;flex-direction:column;gap:5px;align-items:center;overflow:hidden}.media-picker img,.analysis-scenes img{width:100%;height:65px;object-fit:cover}.media-picker span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.analysis-results p{font-size:11px;color:var(--ui-text-muted)}.media-error{color:var(--ui-danger);font-size:12px;line-height:1.6}.media-download{display:flex;justify-content:center;gap:5px;margin-top:12px;border:1px solid var(--ui-border-strong);padding:9px;border-radius:7px}.media-workspace .frame-controls{flex-wrap:wrap}.media-workspace .frame-controls>button{display:flex;align-items:center;gap:4px}.media-workspace .tool-note{font-size:10px}@media(max-width:700px){.media-workspace{grid-template-columns:1fr}.media-settings{border:0;border-top:1px solid var(--ui-border);padding:15px 0}.media-preview{height:220px}.media-clip{flex-wrap:wrap}}.lip-sync-panel{border-top:1px solid var(--ui-border);margin-top:18px;padding-top:12px}.lip-sync-panel h4{font-size:13px;margin:0 0 8px}.lip-sync-panel label{display:block;margin:10px 0;line-height:1.8}.lip-faces{display:flex;gap:8px}.lip-faces button{flex:1;min-width:0;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:6px;padding:6px;display:flex;flex-direction:column;align-items:center;gap:4px}.lip-faces button[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-selected)}.lip-faces img{width:72px;height:72px;object-fit:cover;border-radius:4px}.lip-faces small{font-size:10px;color:var(--ui-text-secondary)}.lip-time{display:flex;align-items:center;gap:5px}.lip-sync-panel details{margin-top:10px;overflow-wrap:anywhere}.media-settings{max-height:80dvh;overflow:auto}.lip-region-preview{position:relative;aspect-ratio:16/9;background:#111}.lip-region-preview video{width:100%;height:100%;object-fit:fill}.lip-region-preview>span{position:absolute;pointer-events:none;border:1px solid #ddd;background:#ffffff10}.modal:has(.breakdown-workspace){width:min(1240px,96vw);padding:20px;max-height:94dvh}.breakdown-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;font-size:12px;outline:0}.breakdown-view{min-width:0;max-height:76dvh;overflow:auto}.breakdown-video{height:clamp(180px,30dvh,350px);background:#111;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center}.breakdown-video video{width:100%;height:100%;object-fit:contain}.breakdown-video>div{text-align:center;color:#aaa}.breakdown-controls{display:flex;gap:8px;align-items:center;margin:12px 0;flex-wrap:wrap}.breakdown-controls button,.breakdown-result-actions button,.breakdown-task>button:not(.primary){display:flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid var(--ui-border);border-radius:6px;font-size:12px}.breakdown-controls small{color:var(--ui-text-muted);margin-right:auto}.breakdown-controls button[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-accent)}.breakdown-controls .ark-select{max-width:155px;font-size:11px}.breakdown-scrubber{width:100%;accent-color:var(--ui-accent)}.breakdown-timeline{display:flex;gap:3px;margin:12px 0;overflow:auto}.breakdown-timeline button{flex-basis:0;min-width:24px;height:29px;border:1px solid var(--ui-border);background:var(--ui-surface);font-size:11px;border-radius:4px}.breakdown-timeline button[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-text)}.breakdown-keyframes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.breakdown-keyframes button{min-width:0;padding:5px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:7px;text-align:left}.breakdown-keyframes img{width:100%;height:clamp(65px,11dvh,110px);object-fit:contain;background:#171717;border-radius:4px}.breakdown-keyframes span{display:block;font-size:11px;color:var(--ui-text-secondary);padding:5px 2px}.breakdown-signal{position:relative;height:62px;padding:20px 0 0;color:var(--ui-accent-text)}.breakdown-signal>span{position:absolute;top:4px;left:0;color:var(--ui-text-muted);font-size:10px}.breakdown-signal svg{width:100%;height:36px;background:var(--ui-surface-muted);border-radius:4px}.breakdown-signal input{position:absolute;left:0;bottom:0;width:100%;height:36px;opacity:0;cursor:crosshair}.breakdown-signal:focus-within{outline:1px solid var(--ui-accent)}.breakdown-result-actions{display:flex;gap:8px;align-items:center;margin-top:15px;flex-wrap:wrap}.breakdown-result-actions>span{margin-right:auto;color:var(--ui-text-muted);font-size:11px}.breakdown-detail{min-width:0;border-left:1px solid var(--ui-border);padding-left:18px;max-height:76dvh;overflow:auto}.breakdown-settings{padding-bottom:12px;border-bottom:1px solid var(--ui-border)}.breakdown-settings summary{cursor:pointer;color:var(--ui-text-secondary);font-size:12px}.breakdown-detail label{display:block;margin:12px 0;color:var(--ui-text-secondary);font-size:12px}.breakdown-detail textarea{display:block;width:100%;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:6px;padding:9px;color:var(--ui-text);font-family:inherit;font-size:12px;line-height:1.6;resize:vertical;margin-top:5px;min-height:55px}.breakdown-settings .ark-select{width:100%;margin-top:5px}.breakdown-settings input[type=range]{width:100%;accent-color:var(--ui-accent)}.breakdown-settings label>span{float:right}.breakdown-settings small,.breakdown-detail .tool-note{font-size:11px;color:var(--ui-text-muted);line-height:1.7}.breakdown-dimensions,.breakdown-detail nav{display:flex;gap:5px;margin:14px 0}.breakdown-dimensions button,.breakdown-detail nav button{flex:1;border:1px solid var(--ui-border);border-radius:6px;font-size:12px;padding:7px}.breakdown-dimensions button[aria-pressed=true],.breakdown-detail nav button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text);border-color:var(--ui-accent)}.breakdown-task{margin:14px 0}.breakdown-task .primary{width:100%;font-size:12px;min-height:34px}.breakdown-task [role=status]{display:flex;align-items:center;gap:8px;color:var(--ui-text-secondary);font-size:12px;margin-bottom:10px}.breakdown-task [role=alert]{color:var(--ui-danger);line-height:1.6}.breakdown-notes header{display:flex;align-items:center;gap:10px;padding:4px 0}.breakdown-notes header strong{font-weight:500}.breakdown-notes header small{margin-left:auto;color:var(--ui-text-muted)}.breakdown-notes .breakdown-reviewed{display:flex;align-items:center;gap:6px}.breakdown-audio dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.breakdown-audio dd{margin:0;text-align:right}.breakdown-audio h4{font-size:13px;font-weight:500}.breakdown-confirm{padding:10px;background:var(--ui-hover);border-radius:6px;line-height:1.6}.breakdown-confirm button{padding:7px;margin-right:7px;border:1px solid var(--ui-border-strong);border-radius:5px;font-size:12px}.breakdown-detail .tool-actions{gap:8px}.tool-node-body .breakdown-node-video{width:100%;height:145px;object-fit:contain;background:#151515;border-radius:5px}.tool-node-body .breakdown-node-state{font-size:11px;color:var(--ui-text-secondary)}@media(max-width:850px){.breakdown-workspace{grid-template-columns:1fr}.breakdown-detail{border:0;border-top:1px solid var(--ui-border);padding:15px 0;max-height:none}.breakdown-view{max-height:none;overflow:visible}.breakdown-video{height:250px}.breakdown-keyframes img{height:90px}}.breakdown-result-actions{position:sticky;bottom:0;background:var(--ui-surface);padding:8px 0;margin-top:8px;z-index:1}.script-production-review{font-size:13px;display:grid;gap:16px}.script-production-review header{display:flex;justify-content:space-between;gap:20px;align-items:start}.script-production-review h3{font-size:15px;margin:0 0 8px}.script-production-review p{line-height:1.65;margin:4px 0;color:var(--ui-text-secondary)}.production-counts,.production-models{display:flex;gap:10px;flex-wrap:wrap}.production-counts span{background:var(--ui-surface-raised);border-radius:7px;padding:5px 9px;color:var(--ui-text-secondary)}.production-models label{display:grid;gap:6px;min-width:160px;flex:1}.production-shot-list{border:1px solid var(--ui-border);border-radius:10px;overflow:hidden}.production-shot-list>details+details{border-top:1px solid var(--ui-border)}.production-shot-list summary{display:flex;align-items:center;gap:14px;padding:13px;cursor:pointer;list-style:none}.production-shot-list summary span:first-child{flex-shrink:0;color:var(--ui-text)}.production-shot-list summary span:nth-child(2){flex-shrink:0;color:var(--ui-text-secondary)}.production-shot-list summary span:nth-child(3){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-text-muted);flex:1}.production-shot-editors{display:grid;gap:12px;padding:0 14px 14px}.production-shot-editors label{display:grid;gap:6px;color:var(--ui-text-secondary)}.production-shot-editors textarea{min-height:100px;line-height:1.6;font-size:13px}.production-review-notes,.production-issues{border-radius:8px;background:var(--ui-surface);padding:12px 14px;color:var(--ui-text-secondary)}.production-review-notes li,.production-issues li{margin:6px 0;line-height:1.6}.production-issues{border:1px solid var(--ui-warning)}.production-issues ul{max-height:140px;overflow:auto}.production-run-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.production-run-status progress{height:4px;accent-color:var(--ui-accent)}.production-run-status p,.production-run-status details{flex-basis:100%}.script-production-review footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid var(--ui-border);padding-top:16px}.script-production-review footer label{flex:1;display:flex;align-items:center;gap:7px;color:var(--ui-text-secondary)}.script-production-review footer button{display:flex;align-items:center;gap:7px}.production-empty{padding:20px 0}@media(max-width:650px){.production-shot-list summary{flex-wrap:wrap;gap:8px}.production-shot-list summary span:nth-child(3){flex-basis:100%}.production-models label{min-width:100%}}.script-production-review header>span{white-space:nowrap;flex-shrink:0;color:var(--ui-text-secondary)}.script-production-review header>div{min-width:0}.production-overview summary{cursor:pointer;color:var(--ui-text-muted)}.production-captions{display:grid;gap:8px;color:var(--ui-text-secondary)}.production-captions>div{display:flex;gap:8px;align-items:center}.production-captions>div>input{flex:1;min-width:0}.production-captions>div>label{display:flex;align-items:center;gap:4px}.production-captions input[type=number]{width:62px}.production-resume{flex-basis:100%;display:flex;gap:10px;flex-wrap:wrap}.production-resume p{flex-basis:100%}.production-scope{display:grid;grid-template-columns:80px minmax(180px,1fr);align-items:center;gap:8px;color:var(--ui-text-secondary)}.production-scope small{grid-column:2;color:var(--ui-text-muted);line-height:1.6}.production-captions input{padding:9px 10px;border:1px solid var(--ui-border);background:var(--ui-input);color:var(--ui-text);border-radius:8px;font:inherit}.production-captions input:focus{outline:none;border-color:var(--ui-border-strong)}.production-review-queue{display:grid;gap:12px}.production-review-queue article,.production-delivery{border:1px solid var(--ui-border);border-radius:8px;padding:12px}.production-review-queue article>strong{display:block;margin-bottom:8px}.production-review-queue .asset-review{margin:0}.production-delivery video{display:block;width:100%;max-height:320px;background:#161616;margin:8px 0}.production-delivery [role=alert]{color:var(--ui-warning)}.character-archive>p{font-size:12px}.character-archive input:not([type=checkbox]){width:100%}.skills-center{padding:22px 28px 30px;max-width:1500px;margin:0 auto;color:var(--ui-text-secondary);font-size:12px}.skills-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.skills-heading h1{font-size:20px;font-weight:600;margin:0 0 8px;color:var(--ui-text)}.skills-heading p,.skill-muted,.skill-footnote{font-size:12px;line-height:1.7;color:var(--ui-text-muted);margin:0}.skills-heading>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.skills-center button,.skill-detail button,.skill-editor button,.skill-picker button,.skill-import-form button{display:inline-flex;align-items:center;gap:6px}.skills-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px}.skill-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.skill-tabs button{padding:8px 12px;border-radius:7px;white-space:nowrap;color:var(--ui-text-muted);font-size:12px}.skill-tabs button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text)}.skill-tabs small{font-size:10px;color:var(--ui-text-muted);margin-left:4px}.skill-search{display:flex;align-items:center;gap:8px;border:1px solid var(--ui-border);background:var(--ui-input);border-radius:8px;padding:8px 10px;min-width:0}.skills-toolbar .skill-search{margin-left:auto}.skill-search input{background:none;border:0;color:var(--ui-text);font:inherit;min-width:0;width:190px}.skill-categories{margin-bottom:18px}.skills-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.skills-grid article{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;overflow:hidden;min-width:0}.skills-grid article.is-disabled{opacity:.65}.skills-grid .skill-card-main{display:block;text-align:left;padding:18px;width:100%}.skill-card-main>div{display:flex;align-items:center;gap:8px;color:var(--ui-text-secondary)}.skill-card-main small{color:var(--ui-text-muted);font-size:11px}.skill-card-main>div>span{margin-left:auto;color:var(--ui-text-muted);font-size:10px}.skill-card-main h2{font-size:14px;line-height:1.6;color:var(--ui-text);margin:14px 0 7px;overflow-wrap:anywhere}.skill-card-main p{font-size:12px;color:var(--ui-text-muted);line-height:1.7;margin:0;min-height:40px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.skills-grid article>footer{border-top:1px solid var(--ui-border);display:flex;align-items:center;gap:12px;padding:11px 16px;font-size:11px}.skills-grid footer small{margin-right:auto;color:var(--ui-text-muted)}.skills-grid footer button{font-size:11px;color:var(--ui-text-secondary)}.skill-footnote{margin-top:24px;font-size:11px}.skills-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:65px 15px;color:var(--ui-text-muted)}.skills-empty button{color:var(--ui-accent-text)}.skill-import-list{display:flex;flex-direction:column;gap:8px}.skill-import-list article{display:flex;align-items:center;gap:14px;padding:15px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:9px}.skill-import-list article>div{flex:1;min-width:0}.skill-import-list strong{font-size:12px;overflow-wrap:anywhere}.skill-import-list p{margin:5px 0 0;color:var(--ui-text-muted);font-size:11px}.skill-import-list article>span{color:var(--ui-text-secondary);font-size:11px;white-space:nowrap}.skill-editor,.skill-detail,.skill-picker,.skill-import-form,.skill-history{font-size:12px;line-height:1.7;color:var(--ui-text-secondary);min-width:0}.skill-editor .form-field,.skill-import-form .form-field{margin:0 0 15px;display:flex;flex-direction:column;gap:7px}.skill-editor input:not([type=checkbox]),.skill-editor textarea{width:100%;padding:10px 12px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:8px;font:inherit;color:var(--ui-text);resize:none}.skill-form-row{display:grid;grid-template-columns:2fr 1fr;gap:14px}.skill-editor footer,.skill-detail footer,.skill-picker footer,.skill-import-form footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid var(--ui-border);padding-top:15px;margin-top:18px;flex-wrap:wrap}.skill-enable{display:flex;align-items:center;gap:8px;margin-right:auto}.skill-detail section{margin-bottom:18px}.skill-detail h3,.skill-history h3{font-size:12px;color:var(--ui-text-muted);margin:15px 0 6px;font-weight:500}.skill-detail p,.skill-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.skill-detail .skill-muted{margin-bottom:20px}.skill-picker .skill-tabs{margin:15px 0}.skill-picker .skill-search{margin-top:12px}.skill-pick-list{max-height:360px;overflow:auto;display:flex;flex-direction:column;gap:8px}.skill-pick-list>button{display:flex;align-items:center;justify-content:space-between;text-align:left;border:1px solid var(--ui-border);border-radius:9px;padding:12px}.skill-pick-list>button[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-selected)}.skill-pick-list strong{font-size:12px;font-weight:500;display:block}.skill-pick-list small{display:block;font-size:11px;color:var(--ui-text-muted);margin-top:3px}.skill-file{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px dashed var(--ui-border-strong);border-radius:10px;margin:18px 0}.skill-file span{font-size:11px;color:var(--ui-text-muted)}.skill-file input{font:inherit;width:100%}.skill-import-form .skill-muted{margin:12px 0}.skill-source{margin:12px 0;padding:12px;background:var(--ui-surface);border-radius:8px}.skill-source pre{white-space:pre-wrap;max-height:200px;overflow:auto;overflow-wrap:anywhere;font:inherit}.skill-source a{color:var(--ui-accent-text)}.skill-history details{border-bottom:1px solid var(--ui-border);padding:14px 0}.skill-picker-trigger{white-space:nowrap}.script-skills{padding:10px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.script-skills span{font-size:11px;color:var(--ui-text-secondary)}.chat-skill-tags{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0;color:var(--ui-accent-text);font-size:11px}.chat-skill-tags span{padding:3px 7px;background:var(--ui-surface);border-radius:5px}@media(max-width:760px){.skills-center{padding:16px}.skills-heading{align-items:flex-start;flex-direction:column;gap:14px}.skills-heading h1{font-size:18px}.skills-toolbar{flex-wrap:wrap}.skills-toolbar .skill-search{margin-left:0;flex:1}.skills-grid,.skill-form-row{grid-template-columns:1fr}.skill-import-list article{flex-wrap:wrap}.skill-import-list article>div{flex-basis:70%}.skill-import-list article>span{margin-left:34px}.skill-search input{width:100%}}.skills-center .primary,.skill-editor .primary,.skill-detail .primary,.skill-picker .primary,.skill-import-form .primary{width:auto;margin:0;padding:9px 15px;min-height:34px;white-space:nowrap}.skills-heading>div:last-child{flex-shrink:0;flex-wrap:nowrap}.skills-heading .subtle-button{white-space:nowrap}.skill-editor .inline-error{margin:12px 0}@media(max-width:760px){.skills-heading>div:last-child{flex-wrap:wrap}}.asset-library-modal .modal:has(.skill-editor){width:min(800px,94vw)}.asset-library-modal .modal:has(.skill-detail),.asset-library-modal .modal:has(.skill-history){width:min(720px,94vw)}.asset-library-modal .modal:has(.skill-picker){width:min(640px,94vw)}.asset-library-modal .modal:has(.skill-import-form){width:min(560px,94vw)}.skill-editor{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}.skill-editor>.skill-form-row,.skill-editor>.form-field:has([aria-label=技能简介]),.skill-editor>.form-field:has([aria-label=执行步骤]),.skill-editor>.skill-source,.skill-editor>footer,.skill-editor>.inline-error{grid-column:1/-1}.skill-editor>footer{position:sticky;bottom:-20px;background:var(--ui-surface);padding:12px 0;margin-top:0;z-index:2}.skill-editor textarea[aria-label=执行步骤]{min-height:140px}.skill-history details summary{cursor:pointer}@media(max-width:620px){.skill-editor{grid-template-columns:1fr}.skill-editor>*{grid-column:1}.skill-form-row{gap:0}}.skill-selection-mode{display:flex;gap:4px;padding:4px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;margin-bottom:14px}.skill-selection-mode button{flex:1;justify-content:center;padding:8px 12px;border-radius:5px;color:var(--ui-text-muted)}.skill-selection-mode button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text)}.chat-skill-status{display:flex;align-items:flex-start;gap:10px;font-size:11px;color:var(--ui-text-muted);margin:3px 0 14px;min-width:0}.chat-skill-status>details{min-width:0;flex:1}.chat-skill-status summary{display:flex;align-items:center;gap:6px;flex-wrap:wrap;cursor:pointer;list-style:none}.chat-skill-chip{padding:3px 7px;background:var(--ui-surface);border-radius:5px;color:var(--ui-accent-text);overflow-wrap:anywhere}.chat-skill-status>.skill-picker-trigger{font-size:11px;color:var(--ui-text-muted);display:inline-flex;gap:4px;align-items:center;padding:4px 0}.chat-skill-explanation{font-size:11px;color:var(--ui-text-muted);line-height:1.7;padding:6px 0 0 18px}.chat-skill-explanation p{margin:4px 0}.chat-skill-explanation strong{font-weight:500;color:var(--ui-text-secondary)}.chat-skill-chevron{opacity:.65}.chat-skill-status details[open] .chat-skill-chevron{transform:rotate(180deg)}.skill-standard-editor>*{grid-column:1/-1}.skill-standard-note{padding:11px 14px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface);margin-bottom:17px}.skill-standard-note strong{font-size:12px;font-weight:500;color:var(--ui-text-secondary)}.skill-standard-note p{margin:4px 0 0;color:var(--ui-text-muted);font-size:11px}.skill-standard-note a{color:var(--ui-accent-text);margin-left:8px}.skill-editor-tabs{border-bottom:1px solid var(--ui-border);padding-bottom:10px;margin-bottom:18px}.skill-validation{margin-left:auto;color:var(--ui-text-muted);font-size:11px}.skill-standard-fields small{color:var(--ui-text-muted);font-size:11px}.skill-body-label{display:flex;align-items:center;justify-content:space-between;gap:12px}.skill-body-label button{font-size:11px;color:var(--ui-accent-text)}.skill-standard-fields textarea[aria-label=技能正文]{min-height:230px;line-height:1.8}.skill-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;line-height:1.7!important;-moz-tab-size:2;tab-size:2}.skill-writing-guide{color:var(--ui-text-muted);font-size:11px;margin-bottom:16px}.skill-writing-guide summary{cursor:pointer}.skill-writing-guide p{margin:7px 0}.skill-format-warnings{color:var(--ui-warning);font-size:11px;margin-bottom:12px}.skill-format-warnings p{margin:4px 0}.skill-document-preview{padding:16px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:9px;margin-bottom:18px}.skill-markdown{overflow-wrap:anywhere;font-size:12px;line-height:1.85}.skill-markdown h1{font-size:18px;margin:18px 0 12px}.skill-markdown h2{font-size:14px;margin:20px 0 8px;color:var(--ui-text)}.skill-markdown h3{font-size:13px}.skill-markdown p{white-space:normal;margin:8px 0}.skill-markdown ul,.skill-markdown ol{padding-left:22px}.skill-markdown pre{white-space:pre-wrap;background:var(--ui-surface-muted);padding:12px;border-radius:7px}.skill-markdown a{color:var(--ui-accent-text)}.skill-markdown table{display:block;overflow:auto;border-collapse:collapse}.skill-markdown th,.skill-markdown td{padding:7px;border:1px solid var(--ui-border)}.skill-detail footer a{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--ui-text-secondary);white-space:nowrap}.skill-standard-editor .skill-source-field{grid-column:1/-1}.skill-package,.skill-runner{border-top:1px solid var(--ui-border);margin:18px 0;padding-top:14px;min-width:0}.skill-package h3,.skill-runner h3{font-size:13px;color:var(--ui-text);margin:0 0 8px}.skill-package h3 small{font-size:11px;color:var(--ui-text-muted);margin-left:8px}.skill-package-files{margin-top:10px;border:1px solid var(--ui-border);border-radius:8px;overflow:hidden}.skill-package-files details{padding:9px 12px;border-bottom:1px solid var(--ui-border)}.skill-package-files details:last-child{border:0}.skill-package-files summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px}.skill-package-files summary>span{flex:1;overflow-wrap:anywhere}.skill-package-files summary>small{color:var(--ui-text-muted);white-space:nowrap}.skill-package-files label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px}.skill-package pre,.skill-run-result pre{max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ui-surface-muted);padding:10px;border-radius:6px;font-size:11px}.skill-package a,.skill-run-result a{color:var(--ui-accent-text);display:inline-flex;align-items:center;gap:5px;margin:4px 12px 4px 0;font-size:11px}.skill-runner textarea{display:block;width:100%;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:7px;color:var(--ui-text);padding:10px;margin:10px 0;font:inherit;box-sizing:border-box}.skill-runner>.platform-select{margin-top:10px}.skill-run-result{padding:10px 0;font-size:11px;border-top:1px solid var(--ui-border);margin-top:10px}.skill-run-result strong{font-size:11px;font-weight:500;overflow-wrap:anywhere}.skill-run-result details{margin-top:8px}.skill-run-result summary{cursor:pointer;color:var(--ui-text-secondary)}.skill-package-files details[open]>summary{margin-bottom:10px}.script-characters{padding:12px 0;border-bottom:1px solid var(--ui-border);margin-bottom:14px}.script-characters>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.script-characters header strong{font-size:13px;font-weight:500}.script-characters header span{font-size:12px;color:var(--ui-text-muted);margin-left:12px}.script-characters .subtle-button{font-size:12px;padding:7px 10px}.script-cast-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.script-cast-chips article{display:flex;align-items:center;gap:8px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;padding:6px 8px;max-width:100%}.script-cast-chips img{width:34px;height:40px;object-fit:cover;border-radius:4px}.script-cast-chips strong{font-size:12px;font-weight:500}.script-cast-chips small{display:block;color:var(--ui-text-muted);font-size:11px;margin-top:3px}.script-cast-chips button{padding:5px;color:var(--ui-text-secondary)}.script-cast-chips .tool-note{margin:0}.script-character-picker{font-size:13px}.script-cast-search{display:flex;gap:10px;margin-bottom:14px}.script-cast-search .library-search{flex:1;min-width:0}.script-character-options{max-height:48vh;overflow:auto;display:grid;gap:8px}.script-character-options>button{display:flex;align-items:center;gap:12px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:8px;padding:10px;text-align:left;min-width:0}.script-character-options>button[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-selected)}.script-character-options img{width:52px;height:66px;object-fit:cover;border-radius:4px}.script-character-options>button>div{flex:1;min-width:0}.script-character-options strong{font-size:13px;font-weight:500}.script-character-options small{display:block;color:var(--ui-text-secondary);font-size:11px;margin-top:5px}.script-character-options p{color:var(--ui-text-muted);font-size:12px;line-height:1.5;margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.script-character-picker footer{display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:var(--ui-text-muted);font-size:12px}.shot-cast-trigger{display:flex;align-items:center;gap:5px;max-width:140px;font-size:12px;color:var(--ui-text-secondary)}.shot-cast-trigger span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shot-cast-options{font-size:13px}.shot-cast-options label{display:flex;gap:8px;align-items:center;padding:8px 0}.shot-character-summary{font-size:12px;font-weight:400;color:var(--ui-text-secondary)}.script-cast-brief{font-size:12px;color:var(--ui-text-secondary);line-height:1.7;white-space:pre-wrap}.script-cast-brief summary{cursor:pointer}.script-cast-brief p{margin:8px 0}.script-workspace .script-create-busy{margin:10px 0;color:var(--ui-text-secondary);font-size:12px}@media(max-width:700px){.script-characters header span{display:block;margin:4px 0 0}.script-cast-search{flex-wrap:wrap}}.script-role-bindings{display:grid;gap:8px;margin:12px 0}.script-role-bindings label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.script-role-bindings select{max-width:260px}.tool-node-body{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:12px;color:var(--ui-text-secondary);font-size:14px;background:var(--ui-surface);border-radius:15px;overflow:auto}.tool-node-body>svg{color:var(--ui-text-muted);margin-bottom:12px}.tool-node-body>p{margin:2px 0 12px;font-size:13px;color:var(--ui-text-secondary)}.tool-node-body>span{align-self:flex-start;color:var(--ui-text-muted);font-size:12px}.tool-node-body>button{font-size:13px;padding:5px 10px;text-align:left;align-self:flex-start;border-radius:6px;color:var(--ui-text)}.tool-node-body .tool-main-button{align-self:stretch;text-align:center;background:var(--ui-surface-raised);padding:11px;margin-top:10px}.tool-node-body header{width:100%;font-weight:500;color:var(--ui-text);margin-bottom:12px}.tool-node-body header small{color:var(--ui-accent-text);background:var(--ui-accent-soft);padding:3px 5px;border-radius:4px;font-size:11px}.tool-node-body .tool-upload{border:1px dashed var(--ui-border);display:flex;flex:1;min-height:90px;width:100%;flex-direction:column;gap:12px;align-items:center;justify-content:center;color:var(--ui-text-muted)}.tool-dimensions{display:flex;width:100%;gap:8px}.tool-dimensions button{flex:1;border-radius:20px;padding:7px;background:var(--ui-surface-raised);font-size:12px}.tool-dimensions button[aria-pressed=true]{background:var(--ui-accent-soft);color:var(--ui-accent-text)}.script-steps{display:flex;gap:12px;font-size:12px}.modal:has(.script-workspace){width:min(1260px,96vw)}.modal:has(.tool-workspace){width:700px}.tool-workspace{font-size:13px;color:var(--ui-text)}.tool-workspace video{width:100%;max-height:380px;background:#151515;border-radius:8px}.tool-workspace textarea,.script-workspace textarea{min-height:90px;resize:vertical;border:1px solid var(--ui-border);border-radius:7px;padding:10px;background:var(--ui-input);color:var(--ui-text)}.tool-note{font-size:12px;line-height:1.8;color:var(--ui-text-muted)}.frame-controls{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:12px}.frame-controls input{flex:1;min-width:0}.frame-controls select{font-size:12px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:4px;color:var(--ui-text)}.tool-actions,.tool-reference-list{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.tool-actions button,.tool-reference-list>*{padding:8px 10px;border-radius:6px;border:1px solid var(--ui-border);display:flex;align-items:center;gap:5px;font-size:12px}.tool-reference-list [aria-pressed=true]{background:var(--ui-selected)}.tool-empty{text-align:center;background:var(--ui-surface);border:1px dashed var(--ui-border);border-radius:10px;padding:40px 15px;color:var(--ui-text-muted)}.tool-empty svg{margin:auto}.script-workspace nav{display:flex;gap:12px;margin-bottom:18px}.script-workspace nav button{padding:10px 14px;border-radius:7px;font-size:13px;color:var(--ui-text-muted)}.script-workspace nav button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-text)}.script-table-scroll{overflow:auto;margin-bottom:12px}.script-workspace table{border-collapse:collapse;min-width:1120px;width:100%;font-size:12px}.script-workspace th,.script-workspace td{border:1px solid var(--ui-border);padding:8px;min-width:80px}.script-workspace th{color:var(--ui-text-secondary);font-weight:400;text-align:left}.script-workspace td input{width:100%;max-width:190px;border:0;background:var(--ui-input);padding:7px;border-radius:4px;color:var(--ui-text);font-size:12px}.script-workspace td input[type=checkbox]{width:auto}.script-workspace td:last-child{white-space:nowrap}.script-workspace td:last-child button{display:inline-flex;padding:4px}.prompt-library input{width:100%;padding:10px;background:var(--ui-input);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:8px}.prompt-library>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.prompt-library button{padding:14px;text-align:left;background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:8px}.prompt-library strong{font-size:13px;font-weight:500;display:block;margin-bottom:8px}.prompt-library span{font-size:11px;color:var(--ui-text-muted);line-height:1.6}.audio-node-create{display:flex;flex-direction:column;gap:30px;align-items:center}.audio-video-actions.compact{position:absolute;top:52px;left:12px;right:12px;z-index:2}.audio-video-buttons{display:flex;flex-wrap:wrap;gap:8px}.audio-video-buttons button{display:flex;align-items:center;gap:6px;font-size:12px;padding:8px;border-radius:6px;background:var(--ui-surface-raised)}.audio-video-buttons button:disabled{opacity:.45}.audio-video-targets{margin-top:6px;padding:10px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;max-height:180px;overflow:auto}.audio-video-targets p{font-size:12px;line-height:1.6;color:var(--ui-text-secondary);margin:0 0 8px}.audio-video-targets button{display:flex;justify-content:space-between;gap:12px;padding:8px;width:100%;text-align:left;font-size:12px}.audio-video-targets button:hover{background:var(--ui-hover)}.audio-video-targets button span{white-space:nowrap;color:var(--ui-accent-text)}.script-assets>section{border-bottom:1px solid var(--ui-border);padding:0 0 22px;margin:20px 0}.script-assets>section>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.script-assets strong{font-size:13px;font-weight:500}.script-assets button{font-size:12px}.script-assets>section>header button{display:flex;align-items:center;gap:5px;padding:7px;border:1px solid var(--ui-border);border-radius:6px}.script-assets>section>div{display:flex;flex-wrap:wrap;gap:14px;min-height:60px}.script-assets article{width:145px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:9px;overflow:hidden;position:relative}.script-assets article>button:first-child{display:flex;flex-direction:column;gap:8px;padding:8px;width:100%}.script-assets article img,.script-assets article>button>div{width:100%;height:100px;object-fit:contain;background:var(--ui-surface-muted);border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.script-assets article span{font-size:11px;color:var(--ui-text-muted);max-height:35px;overflow:hidden}.entity-delete{position:absolute;right:3px;top:3px;padding:3px;background:var(--ui-surface);border-radius:50%}.script-asset-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;background:var(--ui-overlay);display:grid;place-items:center}.script-asset-overlay>section{width:min(700px,95vw);max-height:85dvh;overflow:auto;border:1px solid var(--ui-border);border-radius:15px;background:var(--ui-surface);padding:20px}.script-asset-overlay header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.script-asset-overlay label{display:flex;align-items:center;gap:10px;font-size:12px}.script-asset-overlay input,.script-asset-overlay textarea{flex:1;background:var(--ui-input);border:1px solid var(--ui-border);color:var(--ui-text);border-radius:6px;padding:9px;font-size:13px}.script-asset-overlay textarea{width:100%;height:130px}.script-source-tabs{display:flex;gap:7px;border-bottom:1px solid var(--ui-border);margin:15px 0;padding-bottom:12px}.script-source-tabs button{padding:8px;border-radius:6px}.script-source-tabs button[aria-pressed=true]{background:var(--ui-selected)}.script-asset-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.script-asset-choices button{display:flex;flex-direction:column;gap:8px}.script-asset-choices img{width:100%;height:100px;object-fit:contain;background:#111;border-radius:6px}.script-upload{display:flex;flex-direction:column;align-items:center;gap:12px;padding:45px;border:1px dashed var(--ui-border-strong);border-radius:8px;width:100%}.script-batch-actions{display:flex;gap:8px;margin:12px 0}.script-batch-actions button{padding:8px;border:1px solid var(--ui-border);border-radius:6px;font-size:12px}.tool-node-preview{max-width:100%;height:140px;object-fit:contain;border-radius:6px}.tool-plan{display:grid;gap:8px;padding:10px 0;border-top:1px solid var(--ui-border)}.tool-plan>div{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;padding:10px}.tool-plan small{font-size:11px;color:var(--ui-text-muted);line-height:1.7}.tool-plan p,.tool-plan li{font-size:12px;line-height:1.6}.tool-plan textarea,.stage-library textarea{width:100%;height:96px;background:var(--ui-input);border:1px solid var(--ui-border);color:var(--ui-text);padding:8px;border-radius:6px;resize:vertical}.prompt-library article{display:flex;gap:3px;border:1px solid var(--ui-border);border-radius:8px}.prompt-library article>button:first-child{flex:1;border:0}.prompt-library article>button:last-child{width:32px;padding:8px;border:0}.prompt-library>section{margin-top:16px;display:grid;gap:10px}.prompt-library textarea{min-height:90px;width:100%;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:6px;padding:12px;color:var(--ui-text)}.studio>.toast{position:fixed;z-index:1200}.script-generation-settings{display:flex;gap:10px;align-items:center;margin:12px 0;font-size:12px}.script-generation-settings>.custom-select{width:220px}.script-generation-settings>button{padding:7px 10px;border:1px solid var(--ui-border);border-radius:6px}.script-generation-error{font-size:12px;line-height:1.6;color:var(--ui-danger)}.node-name[role=button]{display:block;cursor:grab;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.react-flow__node.dragging .node-name[role=button]{cursor:grabbing}.script-extraction-status{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:10px;padding:10px 12px;margin:12px 0;color:var(--ui-text-secondary);font-size:12px;line-height:1.6}.script-extraction-status>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.script-extraction-status>div>span{flex:1;min-width:160px}.script-extraction-status button{font-size:12px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:6px;background:var(--ui-surface-raised);color:var(--ui-text)}.script-extraction-status details{margin-top:8px}.script-extraction-status details p{white-space:pre-wrap}.script-extraction-status small{color:var(--ui-text-muted)}.script-extraction-status [role=alert]{color:var(--ui-warning)}.canvas-extraction-progress{position:absolute;z-index:10;left:50%;bottom:24px;transform:translate(-50%);width:min(620px,90vw);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;padding:8px 12px}.canvas-extraction-progress .script-extraction-status{border:0;margin:0;padding:4px}.canvas-extraction-progress>button{font-size:12px;color:var(--ui-accent-text);padding:4px 8px}.script-entity-details{white-space:pre-wrap;font-size:12px;color:var(--ui-text-secondary);line-height:1.6}.script-entity-details label{display:block;margin-top:12px}.script-entity-details textarea{min-height:66px;width:100%;margin-top:5px}.script-asset-overlay section>footer{display:flex;justify-content:flex-end;padding-top:12px}.script-extraction-status .spin{animation:script-extraction-spin 1s linear infinite}@keyframes script-extraction-spin{to{transform:rotate(360deg)}}.script-entity-details fieldset{border:1px solid var(--ui-border);border-radius:8px;margin-top:12px;padding:8px 12px;display:flex;gap:16px;flex-wrap:wrap}.script-entity-details fieldset label{display:flex;gap:6px;margin:0}.script-entity-details fieldset input{flex:0;width:auto}.script-assets article small{font-size:10px;color:var(--ui-text-muted)}.script-entity-details textarea{height:70px;min-height:60px}.script-entity-details fieldset input{padding:0}.script-asset-overlay section>footer .primary{padding:9px 15px;border-radius:8px}.script-entity-details fieldset input[type=checkbox]{flex:0 0 14px;width:14px;height:14px;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;accent-color:var(--ui-accent)}.script-entity-details{overflow-wrap:anywhere}.script-assets article.script-asset-card{width:238px}.script-asset-card .entity-preview>div{width:100%;height:130px;background:var(--ui-surface-muted);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.script-assets .script-asset-card .entity-preview img{height:130px}.entity-card-details{padding:0 10px 10px;display:flex;flex-direction:column;gap:9px}.entity-card-details p{font-size:11px;color:var(--ui-text-secondary);line-height:1.5;max-height:50px;overflow:auto;white-space:pre-wrap;margin:0}.entity-card-details label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--ui-text-muted)}.entity-card-details textarea{resize:vertical;min-height:90px;width:100%;padding:7px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:6px;color:var(--ui-text);font-size:11px;line-height:1.5}.entity-card-details .ark-select{width:100%;font-size:11px}.entity-card-actions{display:flex;gap:7px}.entity-card-actions button{display:flex;align-items:center;justify-content:center;gap:4px;flex:1;border:1px solid var(--ui-border);border-radius:6px;padding:6px}.entity-photo-strip{display:flex;gap:5px}.script-assets .entity-photo-strip img{width:48px;height:38px;object-fit:contain}.script-assets .script-asset-overlay .primary{margin-top:14px}.script-asset-overlay details{font-size:12px;padding:9px 0}.script-asset-overlay details p{white-space:pre-wrap;line-height:1.6}.script-entity-details>label>input[type=checkbox]{flex:0;width:auto}.asset-review details{margin:6px 0}.asset-review summary{cursor:pointer;overflow-wrap:anywhere}.asset-review label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:8px 0}.asset-review input[type=checkbox]{width:auto;flex:none}.asset-review audio,.entity-card-details audio{width:100%;min-width:0;height:34px}.script-asset-card>.asset-review{padding:0 10px 10px}.script-asset-card .asset-review span{max-height:none;overflow:visible}.manual-segment{border:1px solid var(--ui-border);border-radius:10px;padding:18px;margin:16px 0}.manual-source{white-space:pre-wrap;line-height:1.7}.manual-reference-list{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.manual-reference-list>div{display:flex;flex-direction:column;gap:8px;width:210px;padding:10px;background:var(--ui-surface);border-radius:8px}.manual-reference-list img{width:100%;height:150px;object-fit:contain}.manual-reference-list audio{width:100%}.manual-script-workspace details{margin-top:16px}.manual-material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.manual-material-grid article{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--ui-border);border-radius:12px;min-width:0}.manual-material-grid img{width:100%;height:150px;object-fit:contain}.manual-material-grid pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font:inherit;line-height:1.7;color:var(--ui-text-secondary)}.manual-material-photos{display:flex;flex-wrap:wrap;gap:6px}.manual-material-photos img{flex:1;min-width:0;width:calc(50% - 3px)}.manual-material-grid textarea{width:100%;min-height:180px;box-sizing:border-box}.manual-material-grid select{max-width:100%}.canvas-menu-surface{position:fixed;z-index:32;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px;box-shadow:0 10px 25px #0005;font-size:14px;font-weight:400;padding:10px;line-height:1.4;user-select:none;-webkit-user-select:none}.canvas-menu-surface button{height:36px;display:flex;align-items:center;gap:10px;border:0;border-radius:6px;background:transparent;color:inherit;width:100%;padding:0 5px;text-align:left;white-space:nowrap;font-size:14px;line-height:1.4;font-weight:400;cursor:pointer}.canvas-menu-surface button:hover:not(:disabled),.canvas-menu-surface button:focus-visible:not(:disabled),.canvas-menu-surface button[aria-expanded=true]:not(:disabled){background:var(--ui-hover);outline:none}.canvas-menu-surface button:disabled{color:var(--ui-text-muted);cursor:default;opacity:1}.canvas-menu-surface .source-icon{flex-shrink:0}.canvas-add-menu{width:220px;padding:10px 10px 8px;max-height:calc(100dvh - 16px);overflow-y:auto;scrollbar-width:thin}.canvas-add-menu>header{height:32px;display:flex;align-items:center;justify-content:space-between;color:var(--ui-text-muted);padding:0 4px;font-size:12px;font-weight:500}.canvas-add-menu>header>button{width:25px;height:26px;justify-content:center;color:var(--ui-text-secondary);padding:0}.canvas-add-menu h4{font-size:12px;font-weight:500;color:var(--ui-text-muted);margin:0;padding:9px 4px 5px;height:30px}.canvas-add-menu .menu-badge,.canvas-submenu .menu-badge{font-size:11px;line-height:16px;border-radius:4px;padding:0 4px;font-weight:400}.menu-badge.beta{color:var(--ui-text-secondary);background:var(--ui-surface-raised)}.menu-badge.new{color:var(--ui-accent-text);background:var(--ui-accent-soft)}.menu-chevron{margin-left:auto;color:var(--ui-text-secondary)}.canvas-submenu{width:188px;padding:6px;border-radius:12px;z-index:34;max-height:calc(100dvh - 16px);overflow:auto}.canvas-submenu button{padding:0 8px}.canvas-context-menu{width:196px;padding:8px 15px;max-height:calc(100dvh - 16px);overflow-y:auto;scrollbar-width:thin}.canvas-context-menu button{font-size:13px;padding:0;height:36px;gap:4px}.canvas-context-menu kbd{margin-left:auto;font-family:inherit;font-size:12px;color:var(--ui-text-muted)}.canvas-menu-divider{height:1px;background:var(--ui-border);margin:3px 0}.depth-extraction-panel{position:absolute;z-index:65;box-sizing:border-box;padding:12px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text);overflow:auto;box-shadow:0 8px 28px #0003;-webkit-user-select:none;user-select:none;font-size:12px}.depth-extraction-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.depth-extraction-panel h3{font-size:13px;line-height:20px;margin:0;font-weight:600}.depth-extraction-close{color:var(--ui-text-muted);display:flex;align-items:center;justify-content:center;padding:2px;border-radius:4px}.depth-extraction-close:hover{background:var(--ui-hover);color:var(--ui-text)}.depth-extraction-panel>label{display:block;margin-bottom:8px;font-size:12px;line-height:18px}.depth-quality{display:grid;grid-template-columns:1fr 1fr;gap:8px}.depth-quality button{height:32px;border:1px solid transparent;border-radius:20px;background:var(--ui-surface-raised);font-size:11px;line-height:16px;color:var(--ui-text-secondary)}.depth-quality button[aria-pressed=true]{border-color:var(--ui-accent);color:var(--ui-text)}.depth-quality button:not(:disabled):hover{background:var(--ui-hover)}.depth-extraction-confirm{display:block;width:100%;height:32px;margin-top:28px;border-radius:8px;background:var(--ui-button);color:var(--ui-on-accent);font-size:13px;line-height:20px}.depth-extraction-confirm:disabled{background:var(--ui-border-strong);color:var(--ui-on-accent);cursor:default}.depth-extraction-account,.depth-extraction-status,.depth-extraction-error{margin:8px 0 0;line-height:1.4;font-size:11px;overflow-wrap:anywhere}.depth-extraction-account{color:var(--ui-text-muted)}.depth-extraction-status{color:var(--ui-success)}.depth-extraction-error{color:var(--ui-danger);-webkit-user-select:text;user-select:text}.depth-extraction-query{margin-top:8px;font-size:11px;color:var(--ui-accent-text);text-decoration:underline}.depth-extraction-panel button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.depth-extraction-panel button:disabled{cursor:default}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}.team-management,.team-events,.team-activity{font-size:13px;min-width:0}.team-toolbar,.team-toolbar>div,.team-filters,.team-actions,.team-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.team-toolbar{justify-content:space-between;margin-bottom:18px}.team-table-wrap{overflow:auto;border:1px solid var(--ui-border);border-radius:12px}.team-table{width:100%;border-collapse:collapse;text-align:left}.team-table th{font-size:12px;color:var(--ui-text-muted);font-weight:500;background:var(--ui-surface);padding:12px 16px;white-space:nowrap}.team-table td{padding:13px 16px;border-top:1px solid var(--ui-border);color:var(--ui-text-secondary);vertical-align:middle;font-size:12px}.team-table strong{color:var(--ui-text);font-weight:500;display:block}.team-table small{display:block;color:var(--ui-text-muted);margin-top:5px}.team-name{display:flex;align-items:center;gap:10px;text-align:left}.team-name svg{color:var(--ui-text-muted)}.team-actions{gap:12px;white-space:nowrap}.team-actions button:hover,.team-table a{color:var(--ui-accent-text)}.team-chips{display:flex;gap:5px;flex-wrap:wrap;max-width:240px}.team-chips button{background:var(--ui-surface);border-radius:5px;padding:4px 7px}.team-status{color:var(--ui-accent-text)}.team-status.disabled{color:var(--ui-text-muted)}.team-status.pending{color:var(--ui-warning)}.team-empty{padding:32px;text-align:center;color:var(--ui-text-muted)}.team-error{color:var(--ui-danger);line-height:1.7}.team-form{display:grid;gap:18px;min-width:0}.team-form p,.team-form small{font-size:12px;color:var(--ui-text-muted);line-height:1.8;margin:0}.team-form input{width:100%;padding:11px 12px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-input);color:var(--ui-text)}.team-form footer{display:flex;justify-content:flex-end;border-top:1px solid var(--ui-border);padding-top:18px}.team-form .form-field{margin:0}.team-customer-list{margin:28px 0}.team-customer-list h3,.team-events h3,.team-activity h3{font-size:14px;font-weight:500;display:flex;align-items:center;gap:8px}.team-customer-list p{font-size:12px;color:var(--ui-text-muted)}.team-customer-list>button{display:flex;align-items:center;width:100%;gap:12px;padding:12px 0;border-bottom:1px solid var(--ui-border);text-align:left}.team-customer-list small{margin-left:auto;color:var(--ui-text-muted)}.team-filters{margin:16px 0}.team-filters>input{background:var(--ui-input);border:1px solid var(--ui-border);border-radius:7px;padding:7px;color:var(--ui-text-secondary);color-scheme:var(--ui-color-scheme)}.team-pagination{justify-content:flex-end;margin-top:16px;color:var(--ui-text-muted)}.team-events{margin-top:24px}.team-events pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:440px;font-size:11px;color:var(--ui-text-secondary)}.team-table summary{color:var(--ui-text-muted);cursor:pointer;margin-top:6px}.team-table a{display:block;margin-top:5px}.team-activity>p{color:var(--ui-text-secondary);font-size:12px}.team-activity>details{margin-top:18px}.workspace-login form>small{display:block;font-size:12px;color:var(--ui-text-muted);line-height:1.8;margin-top:18px}.team-global-empty{max-width:1280px;padding:32px;margin:auto}.team-global-empty>nav{display:flex;gap:16px;margin:24px 0}@media(max-width:700px){.team-table td,.team-table th{padding:10px}.team-filters{gap:8px}.team-table{min-width:560px}.team-toolbar .library-search{width:100%}}.account-session-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;background:var(--ui-bg)}.account-session-overlay .workspace-login{height:100%}.team-management .team-toolbar>div{display:flex;flex-direction:row;flex-wrap:nowrap;width:auto;gap:10px}.team-management .team-toolbar .primary{width:auto;min-width:120px;margin:0;padding:10px 16px}.team-table{min-width:690px}.team-table td,.team-name,.team-chips button,.team-status{white-space:nowrap}.team-name>svg{flex-shrink:0}.team-name>span{min-width:80px}.team-actions{flex-wrap:nowrap}.team-chips{min-width:72px}.team-table small{font-size:11px}.team-toolbar .library-search{max-width:320px}.team-table-wrap{max-width:100%}.team-management .team-table td:nth-child(5){white-space:normal;min-width:104px;width:120px}.team-management>.team-table-wrap>.team-table th:last-child,.team-management>.team-table-wrap>.team-table td:last-child{width:1%;white-space:nowrap}.team-management .team-actions{flex-wrap:nowrap;min-width:max-content;max-width:none;gap:12px}.team-management .team-actions button{white-space:nowrap;flex-shrink:0}.team-management .team-table td,.team-management .team-table th{padding-left:12px;padding-right:12px}.modal:has(.billing-panel){width:min(1120px,calc(100vw - 40px));max-width:1120px}.billing-panel{font-size:12px;color:var(--ui-text)}.billing-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.billing-heading p,.billing-scope,.billing-footnote{font-size:12px;line-height:1.7;color:var(--ui-text-muted)}.billing-heading p{margin:7px 0 0}.billing-provider{display:flex;align-items:center;gap:7px;font-weight:550}.billing-scope{margin:16px 0}.billing-totals{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:12px;margin:18px 0 22px}.billing-totals>div{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:9px;padding:16px}.billing-totals span,.billing-totals small{display:block;color:var(--ui-text-muted);font-size:11px;line-height:1.5}.billing-totals strong{display:block;font-size:21px;font-weight:550;margin:10px 0}.billing-totals strong small{display:inline}.billing-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.billing-filters>input{flex:1;min-width:190px}.billing-filters input{border:1px solid var(--ui-border);border-radius:6px;padding:9px 10px;background:var(--ui-input);color:var(--ui-text);font:inherit;color-scheme:var(--ui-color-scheme)}.billing-filters label{display:flex;align-items:center;gap:7px;color:var(--ui-text-muted)}.billing-filters .select-root{min-width:105px}.billing-actions{display:flex;gap:8px;align-items:center;margin:16px 0}.billing-actions>span{margin-right:auto;color:var(--ui-text-muted)}.billing-panel .subtle-button{font-size:12px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.billing-table-wrap{overflow:auto;border:1px solid var(--ui-border);border-radius:8px;max-height:340px}.billing-table{border-collapse:collapse;width:100%;min-width:870px;text-align:left;white-space:nowrap}.billing-table th{font-size:11px;font-weight:500;color:var(--ui-text-muted);background:var(--ui-surface);position:sticky;top:0;z-index:1}.billing-table th,.billing-table td{padding:12px 14px;border-bottom:1px solid var(--ui-border)}.billing-table td{font-variant-numeric:tabular-nums;vertical-align:top;font-size:12px}.billing-table td:nth-child(n+4){text-align:right}.billing-table strong{font-weight:500}.billing-table span,.billing-table code,.billing-table small{display:block;margin-top:6px;color:var(--ui-text-muted);font-size:11px;max-width:230px;overflow:hidden;text-overflow:ellipsis}.billing-table code{color:var(--ui-text-muted);-webkit-user-select:text;user-select:text}.billing-table small.billing-error{white-space:normal;color:var(--ui-danger)}.billing-empty{padding:36px;text-align:center;color:var(--ui-text-muted)}.billing-panel .billing-error{color:var(--ui-danger);line-height:1.6}.billing-notice{color:var(--ui-success);font-size:12px}.billing-footnote{font-size:11px;margin:14px 0}.billing-account{border-top:1px solid var(--ui-border);margin-top:18px;padding-top:8px}.billing-account-toggle{width:100%;display:flex;align-items:center;gap:8px;padding:12px 0;font-size:12px}.billing-account-toggle span{margin-left:auto;color:var(--ui-text-secondary)}.billing-wallet{padding:10px 0}.billing-wallet-controls{display:flex;align-items:center;gap:10px}.billing-wallet-controls .select-root{max-width:340px;flex:1}.billing-wallet p,.billing-wallet>small{font-size:11px;color:var(--ui-text-muted);line-height:1.6}.billing-balance{display:flex;gap:30px;flex-wrap:wrap;margin:18px 0}.billing-balance span{color:var(--ui-text-muted);font-size:11px}.billing-balance strong{display:block;color:var(--ui-text);font-size:14px;font-weight:500;margin-top:7px}@media(max-width:700px){.modal:has(.billing-panel){width:calc(100vw - 20px);padding:18px}.billing-totals{grid-template-columns:1fr;gap:7px}.billing-totals>div{padding:12px}.billing-totals strong{font-size:18px;margin:6px 0}.billing-actions{flex-wrap:wrap}.billing-actions>span{width:100%}.billing-filters>input{flex-basis:100%}.billing-heading{align-items:flex-start}.billing-heading .subtle-button{font-size:11px}.billing-balance{gap:18px}}.agent-access{max-width:1000px;font-size:12px;color:var(--ui-text-secondary);line-height:1.7}.agent-access section{margin-bottom:26px}.agent-access-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.agent-access-heading h3,.agent-access-heading h4{display:flex;align-items:center;gap:8px;margin:0;color:var(--ui-text);font-size:14px;font-weight:550}.agent-access-heading h4{font-size:13px}.agent-access-heading>span{font-size:11px;color:var(--ui-text-muted)}.agent-access p{margin:10px 0 16px}.agent-access-guide,.agent-access-editor{border:1px solid var(--ui-border);border-radius:10px;padding:20px;background:var(--ui-surface)}.agent-access-badge{display:inline-flex;border:1px solid var(--ui-border);border-radius:5px;padding:2px 7px;color:var(--ui-accent-text);font-size:11px;font-weight:400;white-space:nowrap}.agent-access-badge.revoked{border-color:var(--ui-border);color:var(--ui-text-muted)}.agent-access-guide ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;counter-reset:agent-step;margin:20px 0}.agent-access-guide li{counter-increment:agent-step;min-width:0}.agent-access-guide li:before{content:counter(agent-step);display:block;color:var(--ui-text-muted);font-size:11px;margin-bottom:6px}.agent-access-guide li strong{display:block;color:var(--ui-text);font-weight:500;margin-bottom:7px}.agent-access-guide li span{font-size:11px;color:var(--ui-text-muted)}.agent-access fieldset{border:0;padding:0;margin:20px 0;min-width:0}.agent-access legend{color:var(--ui-text);font-size:12px;margin-bottom:10px}.agent-access legend span{margin-left:8px;color:var(--ui-text-muted);font-size:11px}.agent-access-customers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:250px;overflow:auto}.agent-access-customers label{display:flex;align-items:flex-start;gap:9px;background:var(--ui-surface);border:1px solid var(--ui-border);padding:10px 12px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere}.agent-access input{accent-color:var(--ui-accent);flex-shrink:0;margin:3px 0 0;width:14px;height:14px}.agent-access-permissions label{display:flex;align-items:flex-start;gap:9px;margin:12px 0;cursor:pointer}.agent-access-permissions strong{display:block;color:var(--ui-text);font-size:12px;font-weight:500}.agent-access-permissions small{display:block;color:var(--ui-text-muted);font-size:11px;margin-top:3px}.agent-access button{font-size:12px}.agent-access button:disabled{opacity:.45;cursor:not-allowed}.agent-access-confirm{margin-top:16px;padding:16px;border:1px solid var(--ui-border-strong);border-radius:7px;background:var(--ui-surface);color:var(--ui-text-secondary)}.agent-access-confirm>strong{color:var(--ui-text);font-weight:500}.agent-access-confirm p{margin:7px 0 12px;overflow-wrap:anywhere}.agent-access-confirm>div{display:flex;gap:10px;flex-wrap:wrap}.agent-access-error{color:var(--ui-danger);border-left:2px solid var(--ui-danger);padding:8px 12px;background:var(--ui-danger-bg)}.agent-access-notice{display:flex;align-items:flex-start;gap:7px;color:var(--ui-success)}.agent-access-notice svg{flex-shrink:0;margin-top:3px}.agent-access-record{padding:18px 0;border-top:1px solid var(--ui-border)}.agent-access-record dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:16px 0 0}.agent-access-record dl>div{min-width:0}.agent-access-record dt{color:var(--ui-text-muted);font-size:11px}.agent-access-record dd{margin:4px 0 0;color:var(--ui-text-secondary);overflow-wrap:anywhere}.agent-access-records>p,.agent-access-footnote{color:var(--ui-text-muted);font-size:11px}.agent-access-empty{border:1px dashed var(--ui-border);border-radius:8px;padding:22px;color:var(--ui-text-muted)}.agent-access-danger{border:1px solid var(--ui-danger);background:var(--ui-danger-bg);border-radius:6px;padding:8px 12px;color:var(--ui-danger)}.agent-access input:focus-visible,.agent-access button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}@media(max-width:1100px){.agent-access-guide ol{grid-template-columns:1fr;gap:16px}.agent-access-guide li{display:grid;grid-template-columns:16px minmax(0,1fr);gap:0 8px}.agent-access-guide li:before{grid-row:span 2;margin:0}.agent-access-guide li span{grid-column:2}}@media(max-width:600px){.agent-access-guide,.agent-access-editor{padding:16px}.agent-access-customers,.agent-access-record dl{grid-template-columns:1fr}.agent-access-heading{align-items:flex-start;flex-wrap:wrap}.agent-access-record h4{flex-wrap:wrap}.agent-access-confirm>div>button{min-height:38px}.agent-access-records .agent-access-heading>button{min-height:34px}}.settings-page{max-width:1480px;padding:6px 36px 50px;margin:0 auto}.settings-page>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:12px}.settings-page h1{margin:0;font-size:20px;font-weight:550}.settings-page>header p{margin:8px 0 0;color:var(--ui-text-muted);font-size:12px}.settings-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:32px;align-items:start}.settings-navigation{display:flex;flex-direction:column;gap:5px;position:sticky;top:16px}.settings-navigation button{display:flex;align-items:center;gap:10px;padding:11px 12px;color:var(--ui-text-secondary);font-size:13px;text-align:left;white-space:nowrap;border-radius:8px}.settings-navigation button:hover{background:var(--ui-hover)}.settings-navigation button.selected{background:var(--ui-selected);color:var(--ui-text)}.settings-content{min-width:0;border-left:1px solid var(--ui-border);padding-left:28px}.settings-content>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.settings-content h2{margin:0;font-size:16px;font-weight:550}.settings-content>header>span{font-size:12px;color:var(--ui-text-muted)}.settings-content .generation-settings{max-width:1000px}.settings-copy{font-size:12px;color:var(--ui-text-muted);line-height:1.9;margin:0 0 18px}.settings-content .customer-management{padding:0;max-width:none}.settings-content .customer-management>header h1{font-size:16px}.settings-content .customer-management>header{margin-bottom:18px}.settings-content .customer-management>header p{display:none}.settings-actions{display:flex;gap:10px;flex-wrap:wrap}.backup-summary{display:flex;gap:32px;margin:26px 0}.backup-summary span{font-size:12px;color:var(--ui-text-muted);display:flex;align-items:baseline;gap:7px}.backup-summary strong{font-size:22px;font-weight:500;color:var(--ui-text)}.settings-note{border-top:1px solid var(--ui-border);margin-top:32px;padding-top:20px;font-size:12px;color:var(--ui-text-muted);line-height:1.9}.settings-note strong{font-weight:500;color:var(--ui-text-secondary)}.settings-about{max-width:720px}.settings-about>img{filter:var(--ui-logo-filter);width:42px;margin:6px 0}.settings-about h3{font-size:18px;font-weight:550;margin:12px 0}.settings-about dl{margin:26px 0}.settings-about dl>div{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--ui-border);gap:20px;font-size:12px}.settings-about dt{color:var(--ui-text-muted)}.settings-about dd{margin:0;color:var(--ui-text-secondary);text-align:right}.workspace-nav>nav{min-height:0;overflow-y:auto}.workspace-nav>.nav-bottom{flex-shrink:0;display:flex;flex-direction:column;gap:4px;padding-top:14px;border-top:1px solid var(--ui-border);margin-top:auto}.workspace-nav>.nav-bottom>button{display:flex;align-items:center;gap:10px;border-radius:7px;font-size:12px;color:var(--ui-text-muted);padding:9px 12px;text-align:left}.workspace-nav>.nav-bottom>button.selected{background:var(--ui-selected);color:var(--ui-text)}.workspace-nav>.nav-bottom>button:hover{color:var(--ui-text);background:var(--ui-hover)}.workspace-nav>.nav-bottom>.nav-help{font-size:11px;color:var(--ui-text-muted)}@media(max-width:1050px){.settings-page{padding:6px 24px 40px}.settings-layout{grid-template-columns:145px minmax(0,1fr);gap:18px}.settings-content{padding-left:18px}}@media(max-width:850px){.settings-layout{display:block}.settings-navigation{position:static;flex-direction:row;overflow:auto;margin-bottom:24px;gap:6px}.settings-navigation button{flex-shrink:0;font-size:12px;padding:9px 10px}.settings-content{padding-left:0;border-left:0}.settings-page{padding:6px 20px 36px}.settings-content>header{margin-bottom:18px}.backup-summary{gap:20px}.settings-content .provider-tabs{overflow:auto;flex-wrap:nowrap}.settings-content .provider-tabs button{flex-shrink:0}.settings-content .settings-row{flex-wrap:wrap}.settings-content .settings-row>.form-field{min-width:min(220px,100%)}.settings-content .model-editor-heading{flex-wrap:wrap;gap:8px}}.inspiration-library>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.inspiration-library h2{font-size:16px;font-weight:550;margin:0}.inspiration-library header p{font-size:12px;color:var(--ui-text-muted);margin:8px 0 0}.inspiration-library header>div:last-child{display:flex;align-items:center;gap:14px}.inspiration-library header button,.inspiration-error button{display:inline-flex;gap:7px;align-items:center;font-size:12px;color:var(--ui-danger)}.inspiration-page{max-width:1480px;margin:auto;padding:10px 40px 60px}.inspiration-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:44px 20px;border:1px dashed var(--ui-border);border-radius:12px;color:var(--ui-text-muted);font-size:12px;text-align:center}.inspiration-empty strong{font-size:14px;font-weight:500;color:var(--ui-text-secondary)}.inspiration-empty p{margin:0;line-height:1.8}.inspiration-preview{width:100%;aspect-ratio:16/10;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:10px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--ui-text-muted)}.inspiration-preview img,.inspiration-preview video{width:100%;height:100%;object-fit:cover}.inspiration-preview>span{position:absolute;bottom:8px;left:8px;font-size:10px;padding:4px 6px;border-radius:5px;background:#151515da;color:#ddd}.inspiration-library .inspiration-card{border-radius:10px}.inspiration-card p{font-size:11px;color:var(--ui-text-muted);line-height:1.6;margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.inspiration-approved>video{width:100%;max-height:50vh;border-radius:8px;background:#111}.inspiration-approved footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.inspiration-approved footer a{font-size:12px;color:var(--ui-text-secondary);display:inline-flex;align-items:center;gap:5px;margin-right:auto}.inspiration-error{color:var(--ui-danger);display:flex;gap:12px}.viral-heading-actions{display:flex;gap:16px;align-items:center}.viral-heading-actions button{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--ui-text-secondary)}@media(max-width:850px){.inspiration-page{padding:10px 24px 40px}}@media(max-width:650px){.inspiration-page{padding:10px 20px 36px}.inspiration-library>header{align-items:flex-start;flex-wrap:wrap}.inspiration-library .inspiration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.explore-form{display:flex;flex-direction:column;gap:16px;font-size:13px}.explore-form label{display:flex;flex-direction:column;gap:8px;color:var(--ui-text-secondary)}.explore-form input,.explore-form textarea{width:100%;box-sizing:border-box;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:7px;color:var(--ui-text);font:inherit;padding:10px;min-width:0;outline:none}.explore-form input:focus,.explore-form textarea:focus{border-color:var(--ui-accent)}.explore-form p,.template-description{font-size:12px;color:var(--ui-text-muted);line-height:1.8;white-space:pre-wrap}.explore-upload{padding:18px;border:1px dashed var(--ui-border-strong);border-radius:8px;align-items:center;text-align:center}.explore-upload input{font-size:12px}.inspiration-approved .primary{margin-left:auto;display:inline-flex;align-items:center;gap:8px;width:auto}.viral-replication{display:flex;flex-direction:column;gap:12px;margin-top:12px}.viral-replication details{font-size:12px}.viral-frame-strip{display:flex;gap:4px}.viral-frame-strip figure{margin:0;min-width:0;flex:1}.viral-frame-strip figcaption{font-size:10px;color:var(--ui-text-muted);text-align:center}.viral-shot-map>div{padding:10px 0;border-top:1px solid var(--ui-border)}.viral-shot-map strong{font-size:12px}.viral-shot-map p{white-space:pre-wrap}.viral-motion-options{display:flex;flex-direction:column;gap:8px;font-size:12px}.viral-motion-options>label{display:flex;align-items:center;gap:7px;line-height:1.5}.viral-motion-options input[type=checkbox]{width:14px;height:14px;flex:none;accent-color:var(--ui-accent)}.viral-motion-options p{margin:0;line-height:1.6}.viral-center{padding:28px 30px 40px;max-width:1600px;margin:auto;color:var(--ui-text);font-size:13px;min-width:0}.viral-center button,.viral-center input,.viral-center textarea{font:inherit}.viral-center button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--ui-surface);border:1px solid var(--ui-border);color:var(--ui-text);border-radius:7px;padding:7px 11px;cursor:pointer}.viral-center button:hover{background:var(--ui-hover)}.viral-center button:disabled{opacity:.42;cursor:not-allowed}.viral-center input,.viral-center textarea{background:var(--ui-input);border:1px solid var(--ui-border);color:var(--ui-text);border-radius:6px;padding:8px;min-width:0;outline:none}.viral-center input:focus,.viral-center textarea:focus{border-color:var(--ui-accent)}.viral-center button:focus-visible{outline:1px solid var(--ui-accent);outline-offset:2px}.viral-heading,.viral-heading>div,.viral-tabs,.viral-filters,.viral-review,.viral-rules footer,.viral-analysis-list footer{display:flex;align-items:center;gap:10px}.viral-heading{justify-content:space-between;margin-bottom:22px}.viral-heading h1{font-size:17px;margin:0;font-weight:600}.viral-heading span{color:var(--ui-text-muted);font-size:12px;margin-left:8px}.viral-tabs{border-bottom:1px solid var(--ui-border);margin-bottom:16px;gap:20px;overflow:auto}.viral-tabs button{background:none;border:0;border-radius:0;padding:0 0 13px;white-space:nowrap;color:var(--ui-text-muted)}.viral-tabs button[aria-pressed=true]{color:var(--ui-text);border-bottom:2px solid var(--ui-accent)}.viral-tabs small{background:var(--ui-hover);padding:1px 6px;border-radius:6px;font-size:11px}.viral-source-note{display:flex;align-items:center;gap:8px;color:var(--ui-text-secondary);font-size:12px;margin-bottom:18px;flex-wrap:wrap}.viral-source-note>span:last-child{margin-left:8px;color:var(--ui-text-muted)}.viral-dot{width:6px;height:6px;border-radius:50%;background:var(--ui-success-bg)}.viral-filters{margin-bottom:16px;flex-wrap:wrap}.viral-filters>label{display:flex;gap:6px;align-items:center;background:var(--ui-surface-muted);border:1px solid var(--ui-border);padding:0 9px;border-radius:7px}.viral-filters input{border:0;width:240px;background:none}.viral-filters>span{margin-left:auto;color:var(--ui-text-muted)}.viral-browser{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,.92fr);gap:20px;align-items:start}.viral-list{display:flex;flex-direction:column;gap:8px}.viral-center .viral-card{display:grid;grid-template-columns:130px minmax(0,1fr);text-align:left;padding:10px;gap:13px;justify-content:initial;align-items:center;border-color:var(--ui-border);background:var(--ui-surface-muted)}.viral-center .viral-card.selected{border-color:var(--ui-accent);background:var(--ui-selected)}.viral-cover{position:relative;height:82px;background:var(--ui-surface);border-radius:6px;overflow:hidden}.viral-cover img{width:100%;height:100%;object-fit:cover}.viral-cover span{position:absolute;bottom:4px;right:5px;background:#000b;border-radius:3px;padding:1px 4px;font-size:10px;color:#fff}.viral-card strong{font-size:13px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.55}.viral-card small{display:block;color:var(--ui-text-muted);font-size:11px;margin-top:5px}.viral-card p{font-size:11px;color:var(--ui-text-secondary);margin:7px 0}.viral-card em{font-style:normal;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ui-text-muted);font-size:10px;max-width:100%}.viral-card b{color:var(--ui-warning);font-size:11px}.viral-detail{position:sticky;top:0;background:var(--ui-surface-muted);border:1px solid var(--ui-border);border-radius:10px;padding:16px;min-width:0}.viral-detail>header{display:flex;justify-content:space-between;gap:14px;margin-bottom:12px;line-height:1.6}.viral-detail>header strong{font-size:14px;font-weight:500}.viral-detail a{display:inline-flex;align-items:center;gap:4px;color:var(--ui-text-muted);white-space:nowrap;font-size:11px}.viral-detail>video{width:100%;max-height:350px;background:#090909;border-radius:7px}.viral-preview{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:180px;background:var(--ui-surface-muted);border-radius:7px;color:var(--ui-text-muted);padding:20px;text-align:center}.viral-preview p{font-size:12px}.viral-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:18px 0}.viral-metrics small{display:block;color:var(--ui-text-muted);font-size:11px;margin-bottom:6px}.viral-metrics strong{font-size:13px;font-weight:500}.viral-muted{color:var(--ui-text-muted)!important;font-size:11px;line-height:1.8}.viral-center details{font-size:12px;line-height:1.65}.viral-center summary{cursor:pointer;color:var(--ui-text-secondary);display:list-item}.viral-center details p{color:var(--ui-text-muted)}.viral-note{display:flex;flex-direction:column;gap:8px;margin-top:16px;font-size:12px}.viral-note textarea{min-height:75px;resize:vertical;line-height:1.6}.viral-note>span{display:flex;gap:8px}.viral-review{margin-top:12px;flex-wrap:wrap}.viral-center .viral-primary{background:var(--ui-button);color:var(--ui-on-accent);border-color:var(--ui-button)}.viral-center .viral-primary:hover{background:color-mix(in srgb,var(--ui-button) 88%,white)}.viral-analyze{border-top:1px solid var(--ui-border);margin-top:18px;padding-top:16px}.viral-analyze>div{display:flex;gap:8px;flex-wrap:wrap}.viral-analyze p{font-size:11px;color:var(--ui-text-muted);line-height:1.8}.viral-empty{min-height:210px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--ui-text-muted);text-align:center;padding:20px}.viral-empty p{margin:0;line-height:1.8;font-size:12px}.viral-empty strong{font-size:14px;font-weight:500;color:var(--ui-text-secondary)}.viral-rules-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,420px);gap:25px;align-items:start}.viral-rules article,.viral-analysis-list>article{background:var(--ui-surface-muted);border:1px solid var(--ui-border);border-radius:9px;padding:16px;margin-bottom:12px}.viral-rules header,.viral-analysis-list header{display:flex;justify-content:space-between;gap:16px}.viral-rules header span,.viral-analysis-list header span{font-size:11px;color:var(--ui-text-muted)}.viral-rules article p{color:var(--ui-text-secondary);font-size:12px;line-height:1.7}.viral-rules article small{font-size:11px;color:var(--ui-text-muted)}.viral-rules footer{margin-top:15px}.viral-rule-editor{border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);padding:18px;display:flex;flex-direction:column;gap:14px}.viral-rule-editor header{display:flex;justify-content:space-between;align-items:center}.viral-rule-editor label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--ui-text-secondary);min-width:0}.viral-rule-editor small{color:var(--ui-text-muted);font-size:11px;line-height:1.6}.viral-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.viral-error{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--ui-danger)!important;background:var(--ui-danger-bg);padding:10px 12px;border-radius:6px;font-size:12px;margin-bottom:12px;line-height:1.7}.viral-error button{padding:2px;border:0;background:none}.viral-run-log{margin-top:25px;padding-top:15px;border-top:1px solid var(--ui-border)}.viral-run-log summary{display:flex;gap:8px;align-items:center}.viral-run-log>div{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--ui-border);padding:6px 0;font-size:11px}.viral-run-log>div p{flex:1}.viral-run-log>div small{color:var(--ui-text-muted)}.viral-analysis-list{max-width:1100px}.viral-analysis-list footer{flex-wrap:wrap}.viral-analysis-list footer small{margin-left:auto;color:var(--ui-text-muted);font-size:11px}.viral-analysis-list details{margin-top:14px}.viral-summary{white-space:pre-wrap;line-height:1.9}.viral-evidence-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.viral-evidence-grid img{width:100%;height:95px;object-fit:contain;background:#101013;border-radius:5px}.viral-evidence-grid strong,.viral-evidence-grid p{font-size:11px}.source-clip-button{display:flex;align-items:center;gap:4px;background:var(--ui-hover);color:var(--ui-text);border:1px solid var(--ui-border-strong);border-radius:5px;font-size:11px;white-space:nowrap}.source-clip-dialog{width:min(760px,95vw);background:var(--ui-surface);padding:18px;border:1px solid var(--ui-border);border-radius:10px}.source-clip-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.source-clip-dialog h2{font-size:14px}.source-clip-dialog button{background:none;border:0;color:var(--ui-text);cursor:pointer}.source-clip-dialog video{width:100%;max-height:70vh;background:#000}.dialog-backdrop:has(.source-clip-dialog){position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;background:#000a;display:flex;align-items:center;justify-content:center}@media(max-width:1000px){.viral-center{padding:20px}.viral-browser{grid-template-columns:minmax(270px,1fr) minmax(280px,1fr)}.viral-center .viral-card{grid-template-columns:90px minmax(0,1fr)}.viral-cover{height:65px}.viral-metrics{grid-template-columns:repeat(3,1fr)}.viral-rules-layout{grid-template-columns:1fr}.viral-rule-editor{grid-row:1}}@media(max-width:700px){.viral-center{padding:18px 14px}.viral-heading{align-items:flex-start;gap:12px}.viral-heading>div{flex-wrap:wrap;gap:6px}.viral-heading h1{font-size:16px}.viral-heading span{width:100%;margin-left:24px;font-size:11px}.viral-heading button{font-size:11px;padding:6px 8px}.viral-browser{display:flex;flex-direction:column}.viral-list,.viral-detail{width:100%;box-sizing:border-box}.viral-detail{position:static}.viral-center .viral-card{grid-template-columns:100px minmax(0,1fr)}.viral-filters>label{width:100%;box-sizing:border-box}.viral-filters input{width:100%}.viral-tabs{gap:16px}.viral-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.viral-run-log>div{flex-wrap:wrap;gap:5px}.viral-run-log>div p{min-width:160px}.viral-run-log>div small{width:100%}}.viral-connections{border:1px solid var(--ui-border);border-radius:10px;padding:14px;margin-bottom:14px}.viral-connections>strong{font-size:13px}.viral-connections>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--ui-border)}.viral-connections span{display:grid;gap:5px;min-width:0}.viral-connections b{font-size:13px;font-weight:500}.viral-connections small{font-size:11px;color:var(--ui-text-muted)}.viral-connections button{flex-shrink:0}.viral-connections .viral-error{padding:0;background:none;color:var(--ui-danger)}.viral-rule-editor .viral-form-grid{min-width:0}.viral-dot.paused{background:var(--ui-warning-bg)}.viral-cover{display:flex;align-items:center;justify-content:center;color:var(--ui-text-muted)}.agent-create{font-size:12px;color:var(--ui-text-secondary)}.agent-reference-button{display:flex;align-items:center;gap:5px;white-space:nowrap;padding:6px 8px;font-size:12px}.agent-models{display:flex;gap:14px;border-top:1px solid var(--ui-border);margin-top:12px;padding-top:12px;overflow-x:auto}.agent-models>label{display:flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap}.agent-models>label>span{font-size:11px;color:var(--ui-text-muted)}.agent-models .ark-select{font-size:12px;min-height:28px;max-width:360px;background:transparent;border-color:var(--ui-border)}.agent-context-tags{display:flex;gap:6px;flex-wrap:wrap}.agent-context-tags>span{display:flex;align-items:center;gap:5px;padding:4px 7px;background:var(--ui-hover);border-radius:5px;font-size:11px}.agent-clear{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--ui-text-muted);margin-bottom:8px}.agent-skill{border:1px solid var(--ui-border);border-radius:8px;padding:10px 12px;font-size:11px;line-height:1.8}.agent-skill summary{display:flex;align-items:center;gap:6px;cursor:pointer;flex-wrap:wrap}.agent-skill summary>span{margin-left:auto;color:var(--ui-text-muted)}.agent-skill p{white-space:pre-wrap;margin:10px 0}.agent-skill small{color:var(--ui-text-muted)}.agent-task{margin-top:22px;border:1px solid var(--ui-border);background:var(--ui-surface-muted);border-radius:12px;padding:16px}.agent-task>header{display:flex;gap:14px;align-items:center;justify-content:space-between}.agent-task>header>.ark-select{font-size:12px;max-width:65%}.agent-status{display:flex;gap:6px;align-items:center;font-size:11px}.agent-progress{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.agent-progress>span{display:flex;align-items:center;gap:5px;padding:6px 10px;border:1px solid var(--ui-border);border-radius:6px;color:var(--ui-text-muted)}.agent-progress>.done{color:var(--ui-success);border-color:var(--ui-success)}.agent-progress>.current{color:var(--ui-text);border-color:var(--ui-border-strong)}.agent-task-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.agent-task-actions button{display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid var(--ui-border);border-radius:6px;font-size:11px}.agent-task-actions>span{font-size:10px;color:var(--ui-text-muted);margin-left:auto}.agent-evidence,.agent-script{border-top:1px solid var(--ui-border);margin-top:14px;padding-top:12px;font-size:11px;line-height:1.8}.agent-evidence summary,.agent-script summary{cursor:pointer}.agent-script>p{white-space:pre-wrap;font-size:12px;color:var(--ui-text)}.agent-missing{padding:12px;border:1px solid var(--ui-warning);margin-top:12px;font-size:12px}.agent-shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.agent-shots>article{min-width:0;border:1px solid var(--ui-border);border-radius:8px;overflow:hidden;background:var(--ui-surface)}.agent-shots header{display:flex;justify-content:space-between;padding:9px;font-size:11px}.agent-shots header>span{color:var(--ui-text-muted)}.agent-shots img,.agent-shots video{display:block;width:100%;height:150px;object-fit:contain;background:#111}.agent-shots p{font-size:12px;line-height:1.7;margin:9px;overflow-wrap:anywhere}.agent-shots small{display:block;font-size:11px;color:var(--ui-text-muted);margin:9px;line-height:1.6}.agent-shots footer{display:flex;gap:14px;margin:10px}.agent-shots a{display:flex;gap:4px;align-items:center;color:var(--ui-accent-text);font-size:11px;text-decoration:none}.agent-shot-pending{height:150px;display:grid;place-items:center;color:var(--ui-warning);font-size:11px}.agent-task-note{font-size:10px;color:var(--ui-text-muted);margin:14px 0 0;line-height:1.8}.agent-create .inline-error{font-size:12px;line-height:1.8;overflow-wrap:anywhere}@media(max-width:750px){.agent-shots{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-task{padding:12px}.agent-task>header{align-items:flex-start;flex-direction:column;gap:10px}.agent-task>header>.ark-select{max-width:100%;width:100%}.agent-skill summary>span{margin-left:0;width:100%}.agent-models{gap:10px}.agent-models .ark-select{max-width:none}.agent-shots img,.agent-shots video,.agent-shot-pending{height:120px}}@media(max-width:430px){.agent-shots{grid-template-columns:1fr}.agent-shots img,.agent-shots video,.agent-shot-pending{height:180px}}.customer-management{max-width:1480px;margin:auto;padding:3px 40px 70px;color:var(--ui-text)}.customer-management>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.customer-management h1{font-size:16px;font-weight:500;margin:0 0 10px}.customer-management>header p,.customer-management-note{font-size:12px;color:var(--ui-text-muted);line-height:1.8;margin:0}.customer-management>header>button{white-space:nowrap}.customer-management-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;font-size:12px;color:var(--ui-text-muted)}.customer-management-toolbar>div{display:flex;gap:8px}.customer-list-wrap{overflow:auto;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface-muted)}.customer-management-list{width:100%;min-width:660px;border-collapse:collapse;text-align:left;font-size:12px}.customer-management-list th{font-weight:400;color:var(--ui-text-muted);padding:13px 18px;background:var(--ui-surface);white-space:nowrap}.customer-management-list td{padding:9px 18px;border-top:1px solid var(--ui-border);color:var(--ui-text-muted)}.customer-management-list th:first-child{width:44%}.customer-management-list tr.current{background:var(--ui-surface)}.customer-management-list tbody tr:hover{background:var(--ui-hover)}.customer-management-name{display:flex;align-items:center;gap:12px;min-width:0}.customer-space-icon{width:30px;height:30px;display:grid;place-items:center;flex-shrink:0;background:var(--ui-surface);border-radius:8px;color:var(--ui-text-secondary)}.customer-management-name>div{min-width:0}.customer-management-name strong{display:block;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:450;font-size:13px;color:var(--ui-text)}.customer-management-name small{display:block;font-size:11px;color:var(--ui-text-muted);margin-top:5px}.customer-current-tag{font-size:10px;color:var(--ui-accent-text);border:1px solid var(--ui-border-strong);border-radius:4px;padding:2px 5px;flex-shrink:0}.customer-management-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;white-space:nowrap}.customer-management-list th:last-child{text-align:right}.customer-management-actions button{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ui-text-secondary)}.customer-management-actions button:hover{color:var(--ui-text)}.customer-management-note{margin-top:18px}.customer-management-notice{display:flex;align-items:center;gap:7px;color:var(--ui-success);font-size:12px;margin:0 0 14px}.customer-management-error{color:var(--ui-danger)!important;font-size:12px;line-height:1.7}.modal:has(.customer-space-form){width:440px}.customer-space-form>p{font-size:12px;line-height:1.8;color:var(--ui-text-muted)}.customer-space-form footer{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.customer-space-form .primary{display:flex;align-items:center;gap:7px;font-size:12px;padding:8px 17px}.customer-space-form footer button{white-space:nowrap;margin-top:0}.customer-management-empty{min-height:100vh;background:var(--ui-surface-muted);padding:24px 0}.customer-management-empty>header{max-width:1480px;margin:0 auto 40px;padding:0 40px;display:flex;align-items:center;gap:12px;font-size:22px;color:var(--ui-text)}.customer-management-empty>header img{width:48px;filter:var(--ui-logo-filter)}@media(max-width:800px){.customer-management{padding:5px 20px 40px}.customer-management-name strong{max-width:220px}.customer-management-toolbar .library-search{width:170px}}.customer-management-tabs{gap:4px!important}.customer-management-tabs button{display:flex;align-items:center;gap:7px;padding:8px 11px;border-radius:7px;color:var(--ui-text-muted);font-size:12px}.customer-management-tabs button[aria-selected=true]{background:var(--ui-selected);color:var(--ui-text)}.customer-management-tabs span{font-size:11px;color:var(--ui-text-muted)}.customer-trash-time{display:block;font-size:10px;color:var(--ui-text-muted);margin-top:4px}.customer-delete-confirm{border:1px solid var(--ui-danger);background:var(--ui-danger-bg);color:var(--ui-danger);border-radius:7px;padding:8px 14px;font-size:12px}.customer-delete-confirm:hover{background:var(--ui-danger-bg)}.customer-management button:disabled{opacity:.4;cursor:default}.customer-space-form strong{font-weight:500;color:var(--ui-text)}@media(max-width:680px){.customer-management-toolbar{align-items:flex-start;flex-direction:column}.customer-management-actions{gap:12px}}.customer-memory-panel{max-height:65dvh;overflow:auto;font-size:12px}.memory-search{width:100%;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:7px;padding:9px 11px;color:var(--ui-text);margin:0 0 14px;font:inherit}.memory-item{padding:14px 0;border-top:1px solid var(--ui-border);overflow-wrap:anywhere}.memory-item header{display:flex;align-items:center;gap:8px}.memory-item strong{font-size:13px;font-weight:500;flex:1}.memory-item small,.memory-item details,.memory-empty{font-size:11px;color:var(--ui-text-muted)}.memory-item p{white-space:pre-wrap;line-height:1.8;color:var(--ui-text-secondary)}.memory-item footer,.memory-conflict footer{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}.memory-item button,.memory-conflict button{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--ui-warning);border:1px solid var(--ui-warning);border-radius:6px;padding:5px 9px}.memory-item button:disabled,.memory-conflict button:disabled{opacity:.4}.memory-item label{display:block;margin-top:12px;color:var(--ui-text-secondary)}.memory-item input,.memory-item textarea{display:block;width:100%;margin-top:5px;border:1px solid var(--ui-border);border-radius:6px;padding:8px;background:var(--ui-input);color:var(--ui-text);font:inherit;box-sizing:border-box;outline:none}.memory-item input:focus,.memory-item textarea:focus{border-color:var(--ui-accent)}.memory-item blockquote{margin:8px 0;padding-left:10px;border-left:2px solid var(--ui-border-strong);white-space:pre-wrap}.memory-item details summary{cursor:pointer}.memory-conflict{margin-top:8px;padding:10px 12px;border:1px solid var(--ui-warning);border-radius:8px;background:var(--ui-warning-bg);font-size:12px}.memory-conflict>p{margin:0 0 10px;color:var(--ui-warning)}.memory-conflict>div{display:flex;gap:10px}.memory-conflict>div>span{flex-shrink:0;font-size:11px;color:var(--ui-warning);padding-top:3px}.memory-conflict p{margin:0;line-height:1.8;white-space:pre-wrap}.chat-memory-status{margin:10px 0 0 33px;color:var(--ui-success);font-size:11px}.chat-memory-status>button,.chat-memory-open{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--ui-success)}.chat-memory-status .memory-conflict{max-width:560px}.chat-memory-status .memory-conflict button{display:inline-flex}.chat-memory-status>p{color:var(--ui-warning)}.chat-room-header>.chat-memory-open{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;white-space:nowrap;margin-left:auto;margin-right:12px;font-size:11px}.chat-history-recall{font-size:11px;color:var(--ui-text-muted);margin:10px 0 0 33px}.chat-history-recall button{display:block;text-align:left;margin-top:5px;color:var(--ui-accent-text);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:740px){.chat-memory-status,.chat-history-recall{margin-left:0}}.memory-health{margin:12px 0 18px;padding:11px 13px;border:1px solid var(--ui-border);border-radius:8px;color:var(--ui-text-secondary);font-size:12px;line-height:1.7}.memory-health>div{display:flex;gap:15px;flex-wrap:wrap;color:var(--ui-text-secondary)}.memory-health p{margin:6px 0;font-size:12px}.memory-health small{font-size:11px;color:var(--ui-text-muted)}.chat-decision-fallback{display:block;margin:10px 0 0 33px;font-size:11px;color:var(--ui-warning)}.kb-workspace{font-size:12px;position:relative;min-width:0}.kb-toolbar{display:flex;gap:10px;align-items:center}.kb-toolbar>label{display:flex;gap:8px;align-items:center;padding:9px 11px;border:1px solid var(--ui-border);border-radius:7px;min-width:150px;width:320px;color:var(--ui-text-muted)}.kb-toolbar input{background:none;border:0;outline:none;color:var(--ui-text);font:inherit;min-width:0;width:100%}.kb-toolbar>div:not(.ark-select){flex:1}.kb-toolbar button{display:inline-flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.kb-toolbar>.ark-select{width:125px;flex-shrink:0}.kb-toolbar>.primary{background:var(--ui-button)!important;color:var(--ui-on-accent)!important}.kb-auto-note{display:flex;align-items:center;gap:7px;color:var(--ui-text-muted);font-size:11px;margin:13px 0 18px!important;line-height:1.7}.kb-auto-note>span{width:5px;height:5px;border-radius:50%;background:var(--ui-accent-soft);flex-shrink:0}.kb-grid{display:grid;grid-template-columns:150px minmax(0,1fr);border:1px solid var(--ui-border);border-radius:10px;overflow:hidden;min-height:430px;background:var(--ui-surface)}.kb-grid.has-selection{grid-template-columns:150px minmax(220px,.9fr) minmax(320px,1.2fr)}.kb-categories{padding:12px 8px;border-right:1px solid var(--ui-border);background:var(--ui-surface-muted)}.kb-categories button{display:flex;width:100%;align-items:center;gap:7px;padding:9px 8px;border-radius:6px;color:var(--ui-text-muted);font-size:11px;margin-bottom:3px}.kb-categories button.active{background:var(--ui-selected);color:var(--ui-text)}.kb-categories small{margin-left:auto;color:var(--ui-text-muted)}.kb-list{min-width:0;max-height:68dvh;overflow:auto}.kb-list-heading{display:flex;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--ui-border);color:var(--ui-text-secondary)}.kb-list-heading small{color:var(--ui-text-muted)}.kb-row{display:flex;width:100%;gap:11px;text-align:left;padding:16px;border-bottom:1px solid var(--ui-border);min-width:0}.kb-row>svg{color:var(--ui-text-muted);flex-shrink:0;margin-top:2px}.kb-row>div{min-width:0;flex:1}.kb-row strong{display:block;font-size:12px;font-weight:500;color:var(--ui-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kb-row p{font-size:11px;line-height:1.6;margin:6px 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ui-text-muted);overflow-wrap:anywhere}.kb-row footer{display:flex;flex-wrap:wrap;gap:6px 9px;font-size:10px;align-items:center}.kb-row small{color:var(--ui-text-muted)}.kb-row footer>span{color:var(--ui-text-muted)}.kb-row footer>span.pending{color:var(--ui-warning)}.kb-row.selected,.kb-row:hover{background:var(--ui-selected)}.kb-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:350px;padding:28px;text-align:center;color:var(--ui-text-muted)}.kb-empty strong{font-size:13px;font-weight:500;color:var(--ui-text-secondary)}.kb-empty p{margin:0;font-size:11px;color:var(--ui-text-muted);line-height:1.9}.kb-empty>button{padding:8px 18px;background:var(--ui-hover);border:1px solid var(--ui-border-strong);border-radius:6px;color:var(--ui-text-secondary);font-size:12px}.kb-empty small{font-size:10px;color:var(--ui-text-muted);margin-top:8px}.kb-detail{border-left:1px solid var(--ui-border);padding:16px;min-width:0;max-height:68dvh;overflow:auto;background:var(--ui-surface)}.kb-detail>header{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px}.kb-detail>header strong{flex:1;overflow-wrap:anywhere;font-size:13px;font-weight:500}.kb-detail>header button{color:var(--ui-text-muted);flex-shrink:0}.kb-detail-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.kb-detail-actions button,.kb-version-list button{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--ui-text-secondary);padding:5px 7px;border:1px solid var(--ui-border);border-radius:5px}.kb-detail-meta{display:flex;gap:6px 10px;flex-wrap:wrap;font-size:10px;color:var(--ui-text-muted);margin-bottom:12px}.kb-source-file{display:flex;align-items:center;gap:8px;font-size:11px;border:1px solid var(--ui-border);background:var(--ui-surface);padding:9px;border-radius:6px;margin-bottom:12px;color:var(--ui-text-muted);min-width:0}.kb-source-file>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kb-source-file a{color:var(--ui-accent-text);display:flex;align-items:center;gap:4px;white-space:nowrap}.kb-chunks section{border-top:1px solid var(--ui-border);padding:12px 0}.kb-chunks small{font-size:10px;color:var(--ui-text-muted)}.kb-chunks p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ui-text-secondary);font-size:12px;line-height:1.9;margin:6px 0!important}.kb-warning{font-size:11px!important;color:var(--ui-warning)!important;line-height:1.7!important}.kb-evidence{font-size:11px;color:var(--ui-text-secondary);margin-bottom:13px}.kb-evidence summary{cursor:pointer;list-style:none;display:flex;gap:6px;align-items:center}.kb-evidence blockquote{border-left:2px solid var(--ui-border-strong);margin:10px 0;padding-left:10px}.kb-evidence a{display:inline-flex;gap:4px;align-items:center;font-size:10px;color:var(--ui-accent-text)}.kb-evidence p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.kb-upload-progress{position:relative;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:7px;margin:12px 0;padding:12px 30px 12px 12px}.kb-upload-progress>div{display:flex;gap:7px;align-items:center;margin:4px 0;min-width:0}.kb-upload-progress span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40%}.kb-upload-progress small{font-size:10px;color:var(--ui-text-muted);overflow-wrap:anywhere}.kb-upload-progress>button{position:absolute;right:8px;top:10px}.kb-workspace.is-dragging:after{content:"松开即可上传并整理资料";position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:color-mix(in srgb,var(--ui-accent-soft) 94%,transparent);border:1px dashed var(--ui-accent);border-radius:10px;color:var(--ui-accent-text);pointer-events:none;z-index:5}.kb-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.kb-source-dialog,.kb-version-list{max-height:65dvh;overflow:auto}.kb-version-list article{border-bottom:1px solid var(--ui-border);padding:14px 0}.kb-version-list strong,.kb-version-list small{display:block;font-size:12px;margin-bottom:6px}.kb-version-list small{font-size:10px;color:var(--ui-text-muted)}.kb-version-list p{font-size:12px;white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}.knowledge-conflict{border:1px solid var(--ui-warning);background:var(--ui-warning-bg);border-radius:7px;padding:12px;font-size:11px;margin-bottom:14px;color:var(--ui-warning)}.knowledge-conflict p{white-space:pre-wrap;line-height:1.7;margin:8px 0}.knowledge-conflict footer{display:flex;gap:8px;flex-wrap:wrap}.knowledge-conflict button{display:flex;align-items:center;gap:5px;font-size:11px;border:1px solid var(--ui-warning);padding:6px 9px;border-radius:5px}.knowledge-conflict button:disabled{opacity:.4}.chat-sources .chat-source-button{display:block;text-align:left;font-size:11px;color:var(--ui-text-muted);padding:5px 0}.chat-knowledge-status{font-size:11px;margin:10px 0 0 33px;color:var(--ui-success)}.chat-knowledge-status>button{display:inline-flex;gap:5px;align-items:center}.chat-knowledge-status .knowledge-conflict{max-width:580px;margin-top:8px}@media(max-width:1100px){.kb-grid.has-selection{grid-template-columns:125px minmax(0,1fr)}.kb-grid.has-selection .kb-detail{grid-column:1/-1;border-left:0;border-top:1px solid var(--ui-border);max-height:60dvh}.kb-categories{font-size:10px}}@media(max-width:650px){.kb-toolbar{flex-wrap:wrap}.kb-toolbar>label{width:100%;flex:1 1 100%}.kb-toolbar>div:not(.ark-select){display:none}.kb-toolbar>.ark-select{flex:1}.kb-auto-note{align-items:flex-start}.kb-auto-note>span{margin-top:6px}.kb-grid,.kb-grid.has-selection{grid-template-columns:minmax(0,1fr)}.kb-categories{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--ui-border);gap:5px;padding:8px}.kb-categories button{flex-shrink:0;width:auto;white-space:nowrap;font-size:10px}.kb-list{max-height:52dvh}.kb-empty{min-height:280px;padding:22px 12px}.kb-grid.has-selection .kb-detail{grid-column:1}.kb-form-row{grid-template-columns:1fr;gap:0}.chat-knowledge-status{margin-left:0}}.modal:has(.storyboard-candidate){width:min(1100px,96vw);max-height:92dvh}.storyboard-candidate{display:grid;gap:14px}.storyboard-candidate p{font-size:13px;line-height:1.8;color:var(--ui-text-secondary)}.storyboard-candidate button{font:inherit;white-space:nowrap;padding:8px 10px;border:1px solid var(--ui-border);border-radius:7px;color:var(--ui-text-secondary)}.storyboard-candidate button:disabled{opacity:.4}.storyboard-candidate .primary{background:var(--ui-button);color:var(--ui-on-accent)}.candidate-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.candidate-columns.single{grid-template-columns:1fr}.candidate-columns>div{display:grid;align-content:start;gap:10px}.candidate-columns strong{color:var(--ui-text)}.candidate-shot{border:1px solid var(--ui-border);padding:18px;border-radius:10px}.candidate-shot>header{display:flex;gap:10px;justify-content:space-between}.candidate-shot>header span,.candidate-origin{font-size:12px;color:var(--ui-text-muted)}.candidate-dialogue{padding:9px;background:var(--ui-surface-muted);border-radius:6px}.candidate-review{border:1px solid var(--ui-warning);padding:14px;border-radius:8px}.candidate-review p{color:var(--ui-warning)}.candidate-review small{color:var(--ui-text-muted)}.storyboard-candidate textarea{width:100%;resize:vertical;min-height:40px}.storyboard-candidate details>summary{cursor:pointer;color:var(--ui-text-secondary)}.storyboard-candidate details>textarea{font:12px/1.65 monospace}.storyboard-candidate>footer{position:sticky;bottom:-20px;padding:14px 0;background:var(--ui-surface);display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;z-index:2}@media(max-width:760px){.candidate-columns{grid-template-columns:1fr}.candidate-shot{padding:12px}}.modal .storyboard-candidate>footer>button{flex:0 0 auto;width:auto;min-width:74px}.modal .storyboard-candidate>footer>.primary{margin:0;min-width:100px}.chat-profile-action{margin:12px 0;color:var(--ui-text-secondary);font-size:12px}.chat-profile-action summary{display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--ui-text-secondary);list-style:none}.chat-profile-action summary::-webkit-details-marker{display:none}.profile-action-fields{margin-top:10px;border-left:1px solid var(--ui-border);padding-left:12px;display:grid;gap:12px}.profile-action-fields article{min-width:0}.profile-action-fields strong{font-size:12px;color:var(--ui-text);font-weight:500}.profile-action-fields p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:5px 0;color:var(--ui-text-secondary)}.profile-action-fields .profile-action-before{color:var(--ui-text-muted)}.profile-action-fields em{font-style:normal;font-size:11px;color:var(--ui-accent-text);margin-left:8px}.profile-action-fields article>div{display:flex;gap:8px;flex-wrap:wrap}.profile-action-fields button{display:inline-flex;gap:4px;align-items:center;font-size:11px;color:var(--ui-text-muted);background:none;border:0;padding:2px 0;cursor:pointer}.profile-action-fields button:hover{color:var(--ui-text)}.chat-profile-action footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.chat-profile-action footer button{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--ui-text-secondary);border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:7px;padding:7px 11px;cursor:pointer}.chat-profile-action footer button:disabled{opacity:.5;cursor:default}.profile-action-note{font-size:11px;color:var(--ui-text-muted);line-height:1.6}.modal:has(.script-manual-editor){width:min(880px,94vw);max-height:90dvh}.script-manual-editor{display:grid;gap:14px}.script-edit-basics{display:grid;grid-template-columns:1fr 1fr;gap:12px}.script-edit-beat{border:1px solid var(--ui-border);border-radius:9px;padding:14px}.script-edit-beat>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.script-manual-editor button{font:inherit;padding:6px 9px;border:1px solid var(--ui-border);border-radius:6px;color:var(--ui-text-secondary)}.script-manual-editor .primary{background:var(--ui-button);color:var(--ui-on-accent)}.script-manual-editor details>summary{cursor:pointer;color:var(--ui-text-secondary);padding:8px 0}.script-edit-phase{margin:10px 0}.script-edit-phase>strong{font-size:12px;color:var(--ui-text-secondary)}.script-edit-props{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--ui-text-muted);font-size:11px;margin:3px 0 10px}.script-edit-props label,.script-edit-voiceover{display:inline-flex;align-items:center;gap:5px}.script-edit-props input,.script-edit-voiceover input{width:auto}.script-edit-prop-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.script-manual-editor>footer{position:sticky;bottom:-20px;background:var(--ui-surface);display:flex;justify-content:flex-end;gap:8px;padding:14px 0;z-index:2}.script-edit-preview{max-height:400px;overflow:auto;border:1px solid var(--ui-border);border-radius:8px;padding:12px;line-height:1.8}.script-manual-editor button:disabled{opacity:.4}@media(max-width:650px){.script-edit-basics,.script-edit-prop-row{grid-template-columns:1fr}}.modal .script-manual-editor>footer>button{flex:0 0 auto;width:auto;min-width:70px;white-space:nowrap}.modal .script-manual-editor>footer>.primary{margin-left:auto;min-width:180px}.script-conversion-status{margin:16px 0;padding:14px 16px;border:1px solid var(--ui-warning);border-radius:10px;background:var(--ui-warning-bg);color:var(--ui-warning);font-size:13px;line-height:1.8}.script-conversion-status p{margin:8px 0}.script-conversion-status ul{padding-left:22px;margin:10px 0}.script-conversion-status li{margin:7px 0;overflow-wrap:anywhere}.script-conversion-status button{margin:4px 0 4px 8px;padding:7px 10px;border:1px solid var(--ui-warning);border-radius:7px;background:transparent;color:inherit;font:inherit;cursor:pointer}.script-conversion-status>button{margin-left:0}.script-conversion-status button:disabled{opacity:.5;cursor:default}.customer-chat-shell{height:calc(100dvh - 76px);min-height:440px;padding:0 24px 16px 14px;color:var(--ui-text);font-size:12px}.customer-chat{height:100%;display:grid;grid-template-columns:190px minmax(0,1fr);gap:26px}.customer-chat.history-collapsed{grid-template-columns:minmax(0,1fr)}.chat-history{display:flex;flex-direction:column;min-height:0;padding:8px 14px 10px 0;border-right:1px solid var(--ui-border)}.chat-history-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;color:var(--ui-text-muted);padding:0 8px;font-size:11px}.chat-history button,.chat-room button{font:inherit}.chat-history-top button{color:var(--ui-text-muted);display:grid;place-items:center;padding:5px;border-radius:5px}.chat-new{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;border:1px solid var(--ui-border);border-radius:9px;padding:10px;background:var(--ui-surface);color:var(--ui-text)}.chat-new:hover{background:var(--ui-hover)}.chat-history-search{display:flex;align-items:center;gap:7px;margin:14px 5px 3px;color:var(--ui-text-muted)}.chat-history-search input{width:100%;min-width:0;border:0;background:none;color:var(--ui-text);padding:6px 0;font:inherit;font-size:11px}.chat-history-search button{display:grid;place-items:center;color:var(--ui-text-muted)}.chat-history nav{flex:1;overflow:auto;min-height:0;margin-top:5px}.chat-history nav>p{font-size:10px;color:var(--ui-text-muted);margin:16px 8px 8px}.chat-history nav>button{display:block;width:100%;text-align:left;padding:10px 9px;border-radius:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ui-text-secondary);margin:2px 0}.chat-history nav>button:hover{background:var(--ui-hover)}.chat-history nav>button.active{background:var(--ui-selected);color:var(--ui-text)}.chat-history>small{font-size:10px;color:var(--ui-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:12px 8px 0}.chat-room{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.chat-room-header{display:flex;justify-content:space-between;align-items:center;gap:15px;height:38px;flex-shrink:0;color:var(--ui-text-muted)}.chat-room-header>div{display:flex;align-items:center;gap:12px}.chat-room-header button{display:grid;place-items:center;color:var(--ui-text-muted);padding:5px}.chat-room-header h1{font-size:13px;font-weight:500;margin:0;color:var(--ui-text-secondary)}.chat-room-header>span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}.chat-feed{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:18px 22px 30px}.chat-feed-inner{max-width:720px;margin:auto}.chat-entry{margin-bottom:30px;line-height:1.85;font-size:13px;overflow-wrap:anywhere}.chat-entry.user{display:flex;justify-content:flex-end;margin-bottom:26px}.chat-entry.user .chat-entry-content{max-width:85%;background:var(--ui-accent-soft);border-radius:14px 14px 3px;padding:10px 16px;color:var(--ui-text)}.chat-entry.user p{white-space:pre-wrap;margin:0}.chat-author{display:flex;align-items:center;gap:9px;margin:0 0 11px;color:var(--ui-text-muted);font-size:11px}.chat-author img{width:24px;max-height:17px;filter:var(--ui-logo-filter);opacity:.8}.chat-entry.assistant .chat-entry-content{padding-left:33px}.chat-entry-actions{display:flex;gap:8px;padding-left:30px;margin-top:10px}.chat-entry-actions button{color:var(--ui-text-muted);padding:5px;border-radius:5px;display:grid;place-items:center}.chat-entry-actions button:hover{color:var(--ui-accent-text);background:var(--ui-hover)}.chat-sources{font-size:10px;color:var(--ui-text-muted);line-height:1.8;margin:14px 0 4px 33px}.chat-sources summary{cursor:pointer}.chat-sources span{display:block;padding-top:4px}.chat-thinking{display:flex;align-items:center;gap:8px;color:var(--ui-text-muted);font-size:12px;padding:6px 0}.chat-cancelled{color:var(--ui-text-muted);margin:0}.chat-failure,.chat-load-error{color:var(--ui-danger);font-size:12px}.chat-load-error{padding:10px 0}.chat-load-error button{margin-left:15px;text-decoration:underline}.chat-markdown{line-height:1.9;color:var(--ui-text)}.chat-markdown p{margin:0 0 13px}.chat-markdown p:last-child{margin-bottom:0}.chat-markdown strong{color:var(--ui-text);font-weight:600}.chat-markdown :is(h1,h2,h3,h4){font-size:14px;font-weight:550;line-height:1.6;margin:22px 0 10px;color:var(--ui-text)}.chat-markdown :is(h1,h2,h3,h4):first-child{margin-top:0}.chat-markdown :is(ol,ul){padding-left:22px;margin:10px 0 16px}.chat-markdown li{padding-left:3px;margin:5px 0}.chat-markdown li p{margin:0}.chat-markdown a{color:var(--ui-accent-text);text-decoration:underline;text-underline-offset:3px}.chat-markdown pre{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:8px;padding:14px;overflow:auto;font-size:11px;white-space:pre}.chat-markdown code{font-size:.92em;background:var(--ui-surface);border-radius:3px;padding:2px 4px}.chat-markdown pre code{padding:0;background:none}.chat-markdown blockquote{margin:14px 0;padding:3px 14px;border-left:2px solid var(--ui-border-strong);color:var(--ui-text-secondary)}.chat-markdown table{display:block;overflow:auto;border-collapse:collapse;font-size:12px;margin:15px 0}.chat-markdown th,.chat-markdown td{padding:8px 12px;border:1px solid var(--ui-border);text-align:left}.chat-markdown hr{border:0;border-top:1px solid var(--ui-border);margin:20px 0}.chat-image-label{color:var(--ui-text-muted)}.chat-composer-area{width:100%;max-width:766px;padding:0 22px;margin:0 auto;flex-shrink:0}.chat-composer{padding:15px 16px 12px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:17px}.chat-composer:focus-within{border-color:var(--ui-accent)}.chat-composer textarea{display:block;box-sizing:border-box;width:100%;min-height:60px;max-height:180px;padding:0;margin:0;border:0;background:transparent;color:var(--ui-text);resize:none;font:inherit;font-size:13px;line-height:1.8;outline:none!important;box-shadow:none!important}.chat-composer textarea::placeholder{color:var(--ui-text-muted)}.chat-composer footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:8px}.chat-composer .ark-select{width:auto;min-width:100px;max-width:75%;border:1px solid var(--ui-border);border-radius:20px;padding:6px 10px;background:transparent;color:var(--ui-text);min-height:30px;font-size:11px;gap:12px}.chat-composer .ark-select>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-compose-actions{display:flex;gap:10px;align-items:center}.chat-compose-actions>button{display:grid;place-items:center;color:var(--ui-text-secondary)}.chat-compose-actions .chat-send{width:32px;height:32px;border-radius:50%;background:var(--ui-button);color:var(--ui-on-accent);padding:0}.chat-compose-actions .chat-send:hover{background:color-mix(in srgb,var(--ui-button) 88%,white)}.customer-chat button:disabled{opacity:.35;cursor:default}.chat-composer-note{text-align:center;font-size:10px;color:var(--ui-text-muted);line-height:1.7;padding:10px 0 0;min-height:26px}.chat-composer-note button{color:var(--ui-accent-text)}.chat-room.is-empty .chat-composer-area{margin-top:auto;margin-bottom:auto;transform:translateY(-24px)}.chat-greeting{display:flex;gap:12px;align-items:center;justify-content:center;margin-bottom:28px}.chat-greeting img{width:38px;filter:var(--ui-logo-filter)}.chat-greeting h2{font-size:19px;font-weight:500;color:var(--ui-text);margin:0}.chat-starters{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:16px}.chat-starters button{display:flex;align-items:center;gap:6px;border:1px solid var(--ui-border);border-radius:18px;padding:7px 10px;font-size:11px;color:var(--ui-text-muted)}.chat-starters button:hover{background:var(--ui-hover);color:var(--ui-text)}@media(max-width:1050px){.customer-chat{grid-template-columns:154px minmax(0,1fr);gap:16px}.customer-chat-shell{padding-right:14px}.chat-feed{padding-right:8px;padding-left:8px}.chat-composer-area{padding:0 8px}.chat-greeting h2{font-size:17px}}@media(max-width:740px){.customer-chat-shell{height:calc(100dvh - 72px);padding:0 12px 12px;min-height:400px}.customer-chat{grid-template-columns:minmax(0,1fr);gap:12px}.chat-history{max-height:150px;border-right:0;border-bottom:1px solid var(--ui-border);display:grid;grid-template-columns:130px minmax(0,1fr);gap:6px 12px;padding:0 0 8px}.chat-history-top,.chat-history>small{display:none}.chat-history-search{margin:0}.chat-history nav{grid-column:1/-1;display:flex;gap:8px;margin:0;overflow:auto}.chat-history nav>p{display:none}.chat-history nav>button{max-width:180px;flex-shrink:0;width:auto}.chat-room{min-height:0}.chat-greeting{gap:8px;margin-bottom:20px}.chat-greeting h2{font-size:16px}.chat-greeting img{width:30px}.chat-room.is-empty .chat-composer-area{transform:none}.chat-entry.assistant .chat-entry-content,.chat-entry-actions{padding-left:0}.chat-sources{margin-left:0}.chat-composer-note span{font-size:9px}}.chat-feed:focus{outline:none}.chat-feed:focus-visible{outline:1px solid var(--ui-accent);outline-offset:-1px;border-radius:8px}.chat-mode-toggles{display:flex;align-items:center;gap:6px;flex:1;flex-wrap:wrap}.chat-mode-toggles button{display:flex;align-items:center;gap:5px;white-space:nowrap;border:1px solid var(--ui-border);color:var(--ui-text-muted);border-radius:18px;padding:6px 9px;font-size:11px}.chat-mode-toggles button[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-accent-text)}.chat-reasoning{margin:0 0 16px;color:var(--ui-text-muted);font-size:12px}.chat-reasoning summary,.chat-web-sources summary{display:flex;gap:6px;align-items:center;cursor:pointer}.chat-reasoning summary:after,.chat-web-sources summary:after{content:"⌄";margin-left:6px}.chat-reasoning>div{white-space:pre-wrap;border-left:2px solid var(--ui-border);padding:8px 12px;margin-top:10px;max-height:240px;overflow:auto;line-height:1.8}.chat-web-sources{font-size:11px;color:var(--ui-accent-text);margin-top:15px}.chat-web-sources>a{display:block;color:var(--ui-accent-text);padding-top:6px;overflow-wrap:anywhere}.chat-composer footer{gap:8px;flex-wrap:wrap}.chat-composer footer>.ark-select{max-width:45%}.chat-compose-actions{margin-left:auto}@media(max-width:740px){.chat-mode-toggles{order:3;flex-basis:100%}.chat-composer footer>.ark-select{max-width:80%}}.chat-selected-context,.chat-used-context{display:flex;flex-wrap:wrap;gap:6px}.chat-selected-context{padding:0 2px 10px}.chat-used-context{padding:8px 0 0 34px}.chat-selected-context>span,.chat-used-context>span{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--ui-border);border-radius:6px;padding:3px 6px;font-size:10px;color:var(--ui-text-secondary);max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-selected-context img,.chat-used-context img{width:19px;height:19px;object-fit:cover;border-radius:3px}.chat-context-tabs{display:flex;gap:8px;margin:12px 0 16px}.chat-context-tabs>button{padding:8px 12px;border:1px solid var(--ui-border);border-radius:7px;font-size:12px;color:var(--ui-text-muted)}.chat-context-tabs>button[aria-pressed=true]{background:var(--ui-accent-soft);color:var(--ui-accent-text);border-color:var(--ui-accent)}.chat-production-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 0 0 34px;font-size:11px;color:var(--ui-accent-text)}.chat-production-actions button{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-surface);color:var(--ui-accent-text);font-size:11px}.chat-production-actions button:hover:not(:disabled){background:var(--ui-hover)}.chat-production-actions p{width:100%;margin:4px 0;color:var(--ui-danger)}.chat-production-actions>span{margin-right:2px}.chat-entry.user .chat-used-context{justify-content:flex-end;padding-left:0}@media(max-width:740px){.chat-production-actions,.chat-used-context{padding-left:0}}.chat-nav-activity{margin-left:auto;display:inline-flex;align-items:center;gap:6px}.chat-nav-activity>span{display:inline-flex;align-items:center}.chat-unread-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ui-accent);flex-shrink:0}.chat-history nav>button{display:flex;align-items:center;gap:8px}.chat-thread-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-history nav>button>svg{flex-shrink:0;color:var(--ui-accent-text)}.chat-entry.user{flex-direction:column;align-items:flex-end}.chat-user-actions{padding:0;margin-top:5px;opacity:.45}.chat-entry.user:hover .chat-user-actions,.chat-user-actions:focus-within{opacity:1}.chat-entry.user:has(.chat-question-editor) .chat-entry-content{width:100%;max-width:100%;padding:12px 14px;border:1px solid var(--ui-border-strong);border-radius:12px}.chat-question-editor textarea{width:100%;min-height:90px;max-height:260px;resize:none;background:transparent;border:0;color:var(--ui-text);font:inherit;line-height:1.8;padding:0;outline:none!important}.chat-question-editor footer{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.chat-question-editor button{font-size:11px;border-radius:7px;padding:6px 10px;color:var(--ui-text-secondary)}.chat-question-editor .chat-edit-submit{background:var(--ui-button);color:var(--ui-on-accent)}.chat-thread-row{display:flex;align-items:center;border-radius:7px;margin:2px 0;color:var(--ui-text-secondary)}.chat-thread-row:hover{background:var(--ui-hover)}.chat-thread-row.active{background:var(--ui-selected);color:var(--ui-text)}.chat-thread-open{display:flex;align-items:center;gap:8px;min-width:0;flex:1;text-align:left;padding:10px 4px 10px 9px;color:inherit}.chat-thread-delete{display:grid;place-items:center;flex:0 0 auto;padding:7px;margin-right:3px;border-radius:5px;color:var(--ui-text-muted);opacity:0}.chat-thread-row:hover .chat-thread-delete,.chat-thread-row:focus-within .chat-thread-delete{opacity:1}.chat-thread-delete:hover{color:var(--ui-danger);background:var(--ui-danger-bg)}.chat-thread-delete:disabled{opacity:0!important}.chat-delete-dialog{display:flex;flex-direction:column;gap:12px}.chat-delete-dialog p{margin:0;color:var(--ui-text)}.chat-delete-dialog small{color:var(--ui-text-muted);line-height:1.7}.chat-delete-dialog .danger-button{align-self:flex-end;background:var(--ui-danger-bg);color:var(--ui-danger);border-radius:7px;padding:8px 13px}.chat-delete-dialog .danger-button:disabled{opacity:.5}@media(max-width:740px){.chat-thread-row{max-width:190px;flex:0 0 auto}.chat-thread-open{min-width:0}.chat-thread-delete{opacity:1}}.script-character-picker>label.dialog-description{display:grid;gap:6px}.script-character-picker>label.dialog-description input{width:100%;min-width:0}.chat-message-time{display:block;margin:12px 0 0 33px;color:var(--ui-text-muted);font-size:11px;line-height:1.6;font-variant-numeric:tabular-nums}.chat-entry.user .chat-message-time{margin-left:0;text-align:right}@media(max-width:740px){.chat-message-time{margin-left:0}}.chat-script-feedback{margin:12px 0 0 33px;font-size:11px;color:var(--ui-text-muted)}.chat-script-feedback>button,.chat-script-feedback details button{padding:5px 8px;border:1px solid var(--ui-border);border-radius:6px;color:var(--ui-accent-text)}.chat-script-feedback details{margin-bottom:8px}.chat-script-feedback summary{cursor:pointer}.chat-feedback-quote{white-space:pre-wrap}.chat-script-feedback small{margin-right:8px}@media(max-width:740px){.chat-script-feedback{margin-left:0}}.knowledge-dark{padding:18px 34px 40px;color:var(--ui-text);font-size:12px;max-width:1440px;margin:auto}.knowledge-dark h1{font-size:16px;font-weight:500;margin:0}.knowledge-dark h2,.knowledge-dark h3{font-size:13px;font-weight:500;margin:0}.knowledge-dark p{line-height:1.8}.knowledge-dark .eyebrow{font-size:11px;color:var(--ui-text-muted);margin:0 0 8px}.knowledge-dark .page-heading{margin-bottom:22px}.knowledge-dark .page-heading p:last-child{font-size:12px;color:var(--ui-text-muted);margin:8px 0}.knowledge-dark .segmented{display:flex;gap:6px;margin-bottom:20px}.knowledge-dark .segmented button{padding:8px 14px;border-radius:7px;color:var(--ui-text-muted);background:var(--ui-surface)}.knowledge-dark .segmented button[aria-selected=true]{background:var(--ui-selected);color:var(--ui-text)}.knowledge-dark .profile-form{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;padding:20px}.knowledge-dark .section-intro{display:flex;align-items:center;gap:12px;margin-bottom:18px;color:var(--ui-text-secondary)}.knowledge-dark .section-intro p{margin:5px 0 0;font-size:11px;color:var(--ui-text-muted)}.knowledge-dark .profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.knowledge-dark .form-field{font-size:12px;min-width:0}.knowledge-dark .form-field textarea{min-height:88px;resize:vertical;font-size:12px;line-height:1.7}.knowledge-dark .profile-form>footer{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--ui-border);padding-top:16px;color:var(--ui-text-muted);font-size:11px}.knowledge-dark .profile-form>footer>span{margin-right:auto}.knowledge-dark .primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;width:auto;margin:0;padding:9px 13px}.knowledge-dark .quiet{font-size:12px;padding:8px;color:var(--ui-text-secondary)}.knowledge-dark .records-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.knowledge-dark .records-toolbar p{font-size:11px;color:var(--ui-text-muted);margin:6px 0 0}.knowledge-dark .customer-search{display:flex;align-items:center;gap:8px;border:1px solid var(--ui-border);border-radius:6px;padding:7px 10px;width:min(100%,320px);color:var(--ui-text-muted)}.knowledge-dark .customer-search input{background:none;border:0;color:var(--ui-text);font:inherit;min-width:0;width:100%}.knowledge-dark .knowledge-list{border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);margin-top:16px;overflow:hidden}.knowledge-dark .knowledge-list article{display:flex;gap:14px;padding:18px;border-bottom:1px solid var(--ui-border);align-items:flex-start}.knowledge-dark .knowledge-list article:last-child{border:0}.knowledge-dark .record-icon{color:var(--ui-text-muted);padding:7px;background:var(--ui-surface);border-radius:6px}.knowledge-dark .record-copy{flex:1;min-width:0}.knowledge-dark .record-copy>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.knowledge-dark .record-copy p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;margin:9px 0;color:var(--ui-text-secondary)}.knowledge-dark .record-copy small{font-size:10px;color:var(--ui-text-muted)}.knowledge-dark .state-pill{display:inline-block;font-size:10px;padding:3px 6px;border-radius:4px;background:var(--ui-hover);color:var(--ui-text-muted);white-space:nowrap}.knowledge-dark .state-pill.active{background:var(--ui-success-bg);color:var(--ui-success)}.knowledge-dark .state-pill.pending{background:var(--ui-warning-bg);color:var(--ui-warning)}.knowledge-dark .record-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.knowledge-dark .record-actions button{color:var(--ui-text-muted);padding:4px;display:flex;align-items:center;gap:5px}.knowledge-dark .record-actions .positive{color:var(--ui-accent-text);font-size:11px}.knowledge-dark button:disabled{opacity:.4;cursor:default}.knowledge-dark .customer-empty{text-align:center;padding:65px 15px;color:var(--ui-text-muted)}.knowledge-dark .customer-empty h3{margin:14px 0 6px;color:var(--ui-text-secondary)}.knowledge-dark .customer-empty p{color:var(--ui-text-muted);font-size:11px}.knowledge-dark .checkbox-label{display:flex;gap:8px;align-items:center;margin-bottom:16px;color:var(--ui-text-secondary)}.knowledge-dark .version-list article{border-bottom:1px solid var(--ui-border);padding:15px 0}.knowledge-dark .version-list strong,.knowledge-dark .version-list small{display:block}.knowledge-dark .version-list small{color:var(--ui-text-muted);font-size:10px;margin-top:6px}.knowledge-dark .version-list p{white-space:pre-wrap;color:var(--ui-text-secondary)}.knowledge-dark .error-message{padding:12px;border:1px solid var(--ui-danger);border-radius:7px;color:var(--ui-danger)}.knowledge-dark .error-message button{margin-left:15px;text-decoration:underline}.knowledge-dark .agent-page{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;height:calc(100dvh - 140px);min-height:440px}.knowledge-dark .conversation-list{overflow:auto;border-right:1px solid var(--ui-border);padding-right:14px}.knowledge-dark .conversation-list>p{font-size:10px;color:var(--ui-text-muted);margin:18px 0 12px}.knowledge-dark .conversation-list>button{display:flex;gap:8px;align-items:center;width:100%;padding:9px;border-radius:7px;text-align:left;font-size:12px;color:var(--ui-text-secondary);margin-bottom:5px}.knowledge-dark .conversation-list>button.active{background:var(--ui-selected);color:var(--ui-text)}.knowledge-dark .conversation-list>button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knowledge-dark .conversation-list svg{flex-shrink:0}.knowledge-dark .agent-main{display:flex;flex-direction:column;min-width:0;min-height:0}.knowledge-dark .agent-main>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--ui-border);padding-bottom:12px;gap:12px}.knowledge-dark .agent-main>header p{font-size:11px;color:var(--ui-text-muted);margin:6px 0 0}.knowledge-dark .message-feed{flex:1;overflow:auto;padding:20px 8px;min-height:0}.knowledge-dark .agent-welcome{max-width:580px;margin:35px auto;color:var(--ui-text-muted)}.knowledge-dark .agent-symbol{color:var(--ui-text-secondary);margin-bottom:20px}.knowledge-dark .agent-welcome h2{font-size:15px;color:var(--ui-text)}.knowledge-dark .agent-welcome p{font-size:12px}.knowledge-dark .agent-welcome small{font-size:11px;color:var(--ui-text-muted)}.knowledge-dark .prompt-ideas{display:flex;flex-direction:column;gap:8px;margin:22px 0}.knowledge-dark .prompt-ideas button{display:flex;justify-content:space-between;align-items:center;text-align:left;border:1px solid var(--ui-border);border-radius:8px;padding:12px;font-size:12px;color:var(--ui-text-secondary)}.knowledge-dark .chat-message{max-width:880px;margin:0 auto 22px}.knowledge-dark .message-author{display:block;font-size:10px;color:var(--ui-text-muted);margin-bottom:8px}.knowledge-dark .chat-message>div{padding:12px 15px;border-radius:9px;background:var(--ui-surface);border:1px solid var(--ui-border)}.knowledge-dark .chat-message.user>div{background:var(--ui-hover)}.knowledge-dark .chat-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.knowledge-dark .memory-action{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--ui-accent-text);margin:9px 0}.knowledge-dark .context-sources{font-size:10px;color:var(--ui-text-muted);margin:8px 0;line-height:1.8}.knowledge-dark .context-sources span{display:block}.knowledge-dark .chat-compose{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:11px;padding:12px;margin-top:10px}.knowledge-dark .chat-compose>textarea{border:0;background:none;width:100%;min-height:70px;color:var(--ui-text);font:inherit;resize:vertical;line-height:1.7}.knowledge-dark .chat-compose>footer{display:flex;align-items:center;gap:8px;margin-top:8px}.knowledge-dark .chat-compose>footer>span{font-size:10px;color:var(--ui-text-muted);margin-right:auto}.knowledge-dark .discard-draft{font-size:10px;color:var(--ui-text-muted)}.knowledge-dark .chat-compose .primary{padding:7px 9px}.knowledge-dark .loading-line{display:flex;align-items:center;gap:8px}@media(max-width:800px){.knowledge-dark{padding:16px}.knowledge-dark .profile-grid{grid-template-columns:1fr}.knowledge-dark .agent-page{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 130px)}.knowledge-dark .conversation-list{display:flex;gap:7px;border:0;border-bottom:1px solid var(--ui-border);padding:0 0 8px;max-height:65px}.knowledge-dark .conversation-list>p{display:none}.knowledge-dark .conversation-list>button{width:auto;max-width:150px;flex-shrink:0;margin:0;white-space:nowrap}.knowledge-dark .knowledge-list article{flex-wrap:wrap;padding:13px;gap:9px}.knowledge-dark .record-actions{margin-left:auto}.knowledge-dark .record-copy{flex-basis:75%}.knowledge-dark .agent-welcome{margin:15px auto}.knowledge-dark .agent-main{min-height:350px}.knowledge-dark .agent-page{grid-template-rows:auto minmax(0,1fr)}.knowledge-dark .chat-compose>footer{flex-wrap:wrap}.knowledge-dark .chat-compose .primary{margin-left:auto}}.knowledge-dark .form-field{margin:10px 0 14px;gap:7px}.knowledge-dark .form-field>input,.knowledge-dark .form-field>textarea{width:100%;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-input);padding:10px 12px;color:var(--ui-text);font:inherit;line-height:1.7}.knowledge-dark .profile-form .form-field>textarea{height:200px;min-height:74px}.knowledge-dark .form-field>textarea:focus{border-color:var(--ui-accent)}.home-create{padding-top:16px;margin-bottom:40px;position:relative}.home-create>h1{text-align:center;font-size:24px;font-weight:580;letter-spacing:.2px;margin:4px 0 24px}.creation-tabs{width:280px;margin:0 auto 30px;padding:4px;display:flex;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:28px}.creation-tabs>button{width:50%;height:34px;font-size:13px;border-radius:22px;color:var(--ui-text-secondary)}.creation-tabs>button[aria-selected=true]{background:var(--ui-surface-raised);color:var(--ui-text);font-weight:600;box-shadow:0 1px 5px #0002}.home-composer{border:1px solid var(--ui-border);border-radius:20px;background:var(--ui-surface);padding:20px}.home-composer:focus-within{border-color:var(--ui-accent)}.composer-input{display:flex;gap:20px;min-height:108px}.composer-input textarea{flex:1;resize:vertical;min-height:90px;max-height:250px;color:var(--ui-text);border:0;outline:none;background:transparent;font:inherit;font-size:14px;line-height:1.8;padding:0}.composer-input textarea::placeholder{color:var(--ui-text-muted)}.composer-reference{position:relative;order:-1;flex-shrink:0;width:62px;height:78px}.composer-reference>button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;width:100%;height:100%;background:var(--ui-hover);color:var(--ui-text-secondary);border:1px solid var(--ui-border);border-radius:7px}.composer-reference small{font-size:10px}.composer-reference>img{width:100%;height:100%;object-fit:cover;border-radius:7px}.composer-reference:has(img)>button{position:absolute;right:-6px;top:-6px;width:20px;height:20px;border-radius:50%;background:#444;padding:0;color:#fff}.composer-toolbar{display:flex;align-items:center;gap:8px;margin-top:15px;flex-wrap:nowrap}.composer-controls{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}.composer-controls::-webkit-scrollbar{display:none}.composer-toolbar .ark-select{width:max-content;max-width:none;flex:0 0 auto}.composer-controls>.composer-model-select{flex:0 1 auto;min-width:160px}.composer-toolbar .ark-select>span{white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis}.composer-controls>.composer-duration{flex-shrink:0}.composer-toolbar .ark-select{background:transparent;border-color:transparent;font-size:12px;min-height:30px;padding:5px 8px;color:var(--ui-text-secondary)}.composer-controls>.ark-select:first-child{color:var(--ui-accent-text)}.composer-submit{display:grid;place-items:center;margin-left:auto;width:34px;height:34px;border-radius:50%;background:var(--ui-button);color:var(--ui-on-accent);flex-shrink:0}.composer-submit:disabled{background:var(--ui-hover);color:var(--ui-text-muted)}.composer-hint{display:flex;align-items:center;min-height:35px;padding:8px 3px;font-size:11px;color:var(--ui-text-muted)}.composer-hint>button{display:flex;align-items:center;gap:7px;color:var(--ui-text-secondary);padding:0;font-size:11px}.home-create .quick-actions{margin-bottom:0}.home-generation-result{margin-top:17px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:14px;overflow:hidden}.home-generation-result>header,.home-generation-result>footer{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:13px 16px;font-size:11px;color:var(--ui-text-secondary)}.home-generation-result button,.home-generation-result a{display:flex;align-items:center;gap:6px;color:var(--ui-text);text-decoration:none;font-size:11px}.home-generation-result>img,.home-generation-result>video{display:block;width:100%;max-height:360px;object-fit:contain;background:#151515}.home-generation-result>audio{display:block;width:calc(100% - 32px);margin:16px}.home-generation-result>footer>span{margin-right:auto}.home-generation-pending{display:flex;justify-content:center;align-items:center;gap:12px;color:var(--ui-warning);font-size:12px;min-height:100px}.home-text-result{white-space:pre-wrap;font-size:13px;line-height:1.8;padding:0 18px 15px}.home-generation-result .inline-error{padding:0 16px}.composer-input{flex-wrap:wrap}.composer-input textarea{min-width:160px}.composer-references{order:-1;display:flex;gap:10px;padding:6px;max-width:100%;overflow:auto;align-items:flex-start}.composer-references:has(.composer-reference:nth-child(3)){flex-basis:100%}.composer-reference-order{position:absolute;left:3px;top:3px;background:#222c;color:#eee;border-radius:50%;width:17px;height:17px;display:grid;place-items:center;font-size:10px}.composer-reference-move{position:absolute;bottom:2px;left:3px;right:3px;display:flex;justify-content:space-between;opacity:0}.composer-reference:hover .composer-reference-move,.composer-reference:focus-within .composer-reference-move{opacity:1}.composer-reference-move>button{background:#222d;border-radius:4px;color:#eee;width:20px;height:19px;line-height:16px}.composer-reference>button:disabled{opacity:.4}@media(max-width:700px){.home-create>h1{font-size:20px}.home-create{padding-top:8px}.home-composer{padding:15px}.composer-reference{width:48px;height:65px}.composer-controls>.composer-model-select{flex:0 0 auto}.composer-input{gap:12px}.composer-reference-move{opacity:1}.home-generation-result>footer{flex-wrap:wrap}.creation-tabs{width:230px}}.review-desk{max-width:1440px;margin:auto;padding:32px;color:var(--ui-text)}.review-desk>header,.review-picker,.review-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:space-between}.review-desk h1{font-size:30px;margin:4px 0 10px}.review-desk p,.review-desk small,.review-desk time{color:var(--ui-text-muted)}.review-desk select,.review-desk button,.review-desk a.primary{font:inherit;border:1px solid var(--ui-button);border-radius:8px;padding:10px;background:var(--ui-button);color:inherit}.review-desk select{display:block;width:100%;max-width:650px;margin-top:8px}.review-desk label{display:block}.review-desk button:disabled{opacity:.45;cursor:not-allowed}.review-desk a{color:var(--ui-accent-text)}.review-desk .primary{background:var(--ui-button);color:var(--ui-on-accent);text-decoration:none}.review-picker{margin:30px 0;align-items:end}.review-picker>label{flex:1}.review-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}.review-layout aside{display:grid;gap:10px;max-height:85vh;overflow:auto;position:sticky;top:16px}.review-layout aside button{text-align:left;overflow-wrap:anywhere}.review-layout aside button span,.review-layout aside button time,.review-layout aside button small{display:block;margin-top:8px;font-size:12px}.review-layout aside button.selected{border-color:var(--ui-border-strong);background:var(--ui-selected)}.review-content{min-width:0;background:var(--ui-surface-muted);border:1px solid var(--ui-border);border-radius:12px;padding:24px}.review-script{line-height:1.85;overflow-wrap:anywhere;max-height:75vh;overflow:auto;padding:12px 4px;border-bottom:1px solid var(--ui-border)}.review-script table{border-collapse:collapse}.review-script td,.review-script th{border:1px solid var(--ui-border-strong);padding:8px}.review-script pre{white-space:pre-wrap}.review-actions{justify-content:flex-start;margin:24px 0 12px}.review-actions label{font-size:14px}.review-empty{padding:36px 18px;border:1px dashed var(--ui-border-strong);border-radius:10px}.review-error{padding:16px;background:var(--ui-danger-bg);color:var(--ui-danger)!important;border-radius:8px}.review-notice{padding:16px;background:var(--ui-success-bg);color:var(--ui-success)!important;border-radius:8px}.review-production{margin-top:30px;border-top:1px solid var(--ui-border-strong);padding-top:16px}.review-production details{padding:16px 0}.review-shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:20px}.review-shots article{padding:16px;border:1px solid var(--ui-border-strong);border-radius:10px;display:flex;flex-direction:column;gap:8px;min-width:0}.review-shots img,.review-shots video{width:100%;max-height:290px;object-fit:contain;background:#121512}.review-shots small{overflow-wrap:anywhere}.review-return{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border-strong);padding:9px 20px;font:14px system-ui;color:var(--ui-accent-text)}.review-return a{color:var(--ui-accent-text)}.review-return+*{height:calc(100vh - 38px)}@media(max-width:850px){.review-desk{padding:18px}.review-layout{grid-template-columns:1fr}.review-layout aside{position:static;max-height:280px}.review-content{padding:16px}}:root{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Inter,Noto Sans SC,Microsoft YaHei,sans-serif;color:var(--ui-text);background:var(--ui-bg);font-synthesis:none;font-size:13px;--panel:var(--ui-surface);--border:var(--ui-border);--muted:var(--ui-text-muted);--accent:var(--ui-accent);color-scheme:var(--ui-color-scheme,dark)}*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%;overflow:hidden}button,input,textarea,:is(select,.ark-select){font:inherit}button{color:inherit;cursor:pointer;border:0;background:none}button:disabled{cursor:not-allowed;opacity:.3}button,:is(select,.ark-select),input,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,:is(select,.ark-select):focus-visible{outline:2px solid var(--ui-border-strong);outline-offset:3px}input,textarea{color:inherit}input::placeholder,textarea::placeholder{color:var(--ui-text-muted)}input{min-width:0}:where(.studio) button:hover:not(:disabled){background-color:var(--ui-hover)}img{max-width:100%}.source-icon{flex-shrink:0;display:block;object-fit:contain;pointer-events:none}svg{flex-shrink:0}.studio{height:100dvh;width:100%;position:relative;isolation:isolate;background:var(--ui-canvas)}.react-flow{--xy-background-color:var(--ui-canvas);--xy-edge-stroke:var(--ui-border-strong);--xy-node-color:var(--ui-text);--xy-minimap-background-color:var(--ui-surface);--xy-attribution-background-color:transparent}.react-flow__pane{cursor:default}.react-flow__pane.dragging,.pan-mode .react-flow__pane{cursor:grab}.react-flow__attribution{opacity:.28!important;font-size:8px!important;bottom:58px!important;right:10px!important}.react-flow__node{border:0!important;background:none!important;box-shadow:none!important}.react-flow__selection{background:color-mix(in srgb,var(--ui-accent) 8.2%,transparent)!important;border-color:color-mix(in srgb,var(--ui-accent) 53.3%,transparent)!important}.react-flow__minimap{bottom:78px;border:1px solid var(--ui-border);border-radius:12px;overflow:hidden}.studio-node{width:350px;border:1px solid var(--ui-border-strong);border-radius:12px;position:relative;background:var(--ui-surface-muted);transition:border-color .15s,box-shadow .15s}.studio-node.is-selected{border-color:var(--ui-accent);box-shadow:0 0 0 .5px color-mix(in srgb,var(--ui-surface) 13.3%,transparent)}.node-heading{height:28px;position:absolute;left:-1px;right:0;top:-30px;display:flex;align-items:center;gap:5px;color:var(--ui-text-muted);cursor:grab}.node-heading>.source-icon{opacity:.6}.node-name{width:260px;max-width:calc(100% - 65px);border:0;outline:none;background:transparent;font-size:14px;line-height:20px;color:inherit;padding:0;cursor:text;text-overflow:ellipsis}.node-name:hover{color:var(--ui-text)}.node-name:focus{color:var(--ui-text);background:var(--ui-surface);border-radius:3px}.node-actions{margin-left:auto;display:flex;gap:1px;opacity:0}.node-actions .icon-button{width:22px;height:22px;border-radius:5px}.studio-node:hover .node-actions,.studio-node.is-selected .node-actions,.node-actions:focus-within{opacity:1}.node-text{height:100%;width:100%;resize:none;background:transparent;border:0;border-radius:12px;padding:15px 16px;font-size:14px;line-height:1.65;outline:none!important;overflow:auto}.node-preview{position:relative;display:flex;align-items:center;justify-content:center;height:100%;border-radius:12px;overflow:hidden;color:var(--ui-text-muted)}.preview-hint{position:absolute;bottom:18px;font-size:11px;color:var(--ui-text-muted);opacity:0;transition:opacity .15s}.studio-node:hover .preview-hint{opacity:1}.reference-count{position:absolute;left:10px;top:10px;display:flex;gap:4px;align-items:center;color:var(--ui-text-secondary);font-size:10px}.port.react-flow__handle{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid var(--ui-border-strong);background:var(--ui-surface);color:var(--ui-text);transition:opacity .15s,background .15s;opacity:0;border-radius:50%;min-width:20px;min-height:20px;cursor:crosshair}.port svg{pointer-events:none}.studio-node:hover .port,.studio-node.is-selected .port,.port.connectingfrom,.port.connectingto,.port:focus{opacity:1}.port:hover{background:var(--ui-accent-soft);border-color:var(--ui-accent)}.react-flow__connection-path{stroke:var(--ui-accent)!important;stroke-width:2!important}.edge-shimmer{stroke:var(--ui-accent);stroke-width:2;stroke-dasharray:12 110;opacity:.28;pointer-events:none;animation:edge-flow 4s linear infinite}.edge-delete{position:absolute;pointer-events:all;border-radius:50%;width:23px;height:23px;background:var(--ui-accent-soft);border:1px solid var(--ui-accent);display:flex;align-items:center;justify-content:center}.topbar{position:absolute;z-index:12;left:8px;right:8px;top:8px;height:32px;display:flex;align-items:center;gap:8px;pointer-events:none}.topbar>*{pointer-events:auto}.project-group{display:flex;align-items:center;height:32px;border:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-surface) 92.9%,transparent);border-radius:7px;padding:0 6px;gap:8px}.brand-button{height:30px;display:flex;align-items:center;gap:7px;padding:0 3px;margin-right:3px}.brand-button>.source-icon{width:25px;height:15px}.project-name{background:none;border:none;width:146px;font-size:13px;color:var(--ui-text);padding:3px 0}.separator{height:17px;width:1px;background:var(--ui-border);flex-shrink:0}.canvas-name{display:flex;align-items:center;gap:6px;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 0;font-size:12px;color:var(--ui-text)}.view-switch{height:32px;padding:3px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-surface)}.view-switch .icon-button{width:25px;height:24px;border-radius:4px}.topbar-right{display:flex;align-items:center;gap:8px;margin-left:auto}.topbar-right>.icon-button{height:32px;width:32px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:7px}.save-status{height:32px;display:flex;align-items:center;gap:6px;padding:0 10px;color:var(--ui-text-secondary);font-size:11px;border-radius:7px}.save-status.error,.save-status.blocked{color:var(--ui-warning)}.local-badge{height:30px;border:1px solid var(--ui-border);border-radius:6px;display:flex;align-items:center;gap:5px;color:var(--ui-text-secondary);padding:0 10px;font-size:11px;background:var(--ui-surface)}.icon-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:7px;padding:0;color:var(--ui-text-secondary);flex-shrink:0}.icon-button.active{background:var(--ui-selected);color:var(--ui-text)}.icon-button .source-icon{opacity:.78}.icon-button:hover .source-icon{opacity:1}.sidebar{position:absolute;z-index:11;left:8px;top:52px;bottom:74px;width:268px;border-radius:12px;border:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-surface-muted) 96.1%,transparent);display:flex;flex-direction:column;box-shadow:0 10px 30px #0002;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.sidebar>header{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 18px}.sidebar>header strong{font-size:13px;font-weight:500}.sidebar-tabs{display:flex;border-bottom:1px solid var(--ui-border);padding:0 12px}.sidebar-tabs button{position:relative;padding:10px 12px;color:var(--ui-text-muted);font-size:12px;display:flex;align-items:center;gap:5px}.sidebar-tabs button.selected{color:var(--ui-text)}.sidebar-tabs button.selected:after{content:"";height:2px;background:var(--ui-accent);position:absolute;bottom:-1px;left:12px;right:12px}.sidebar-tabs span{font-size:10px;color:var(--ui-text-muted)}.sidebar-search{margin:14px 12px 10px;border:1px solid var(--ui-border);border-radius:6px;padding:8px;display:flex;gap:8px;align-items:center}.sidebar-search>.source-icon{opacity:.5}.sidebar-search input{width:100%;border:0;background:none;outline:none;font-size:12px}.sidebar-list{padding:0 8px;overflow:auto;flex:1}.node-row{width:100%;display:flex;align-items:center;gap:9px;padding:11px 10px;border-radius:6px;text-align:left;color:var(--ui-text-secondary);font-size:12px}.node-row span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-row>svg{opacity:0}.node-row:hover>svg{opacity:.6}.node-row.selected{background:var(--ui-selected);color:var(--ui-text)}.node-row>.source-icon{opacity:.6}.sidebar>footer{padding:12px 14px;border-top:1px solid var(--ui-border);display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--ui-text-muted)}.sidebar>footer button{display:flex;align-items:center;gap:4px;color:var(--ui-text-secondary);font-size:11px}.edge-row{display:flex;padding:6px 4px;align-items:center}.edge-row>button:first-child{font-size:11px;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:8px;border-radius:6px;color:var(--ui-text-secondary);overflow:hidden;word-break:break-all}.edge-row>button:first-child>span{color:var(--ui-text-muted)}.empty-list{padding:18px 10px;color:var(--ui-text-muted);line-height:1.8}.inspector{position:absolute;z-index:9;background:var(--ui-surface);border:.5px solid var(--ui-border);border-radius:16px;padding:10px 12px 8px;box-shadow:0 4px 10px #0002}.inspector-top{display:flex;align-items:center;gap:8px;min-height:28px}.pill{border-radius:20px;display:flex;align-items:center;gap:3px;font-size:12px;color:var(--ui-text-secondary);background:color-mix(in srgb,var(--ui-text) 3.5%,transparent);padding:5px 8px;white-space:nowrap}.pill img{opacity:.6}.pill>span{font-size:10px;margin-left:1px}.inspector-node-name{font-size:11px;color:var(--ui-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-model{font-size:10px;color:var(--ui-text-muted);margin-left:auto;white-space:nowrap}.inspector-top .icon-button{width:22px;height:22px;color:var(--ui-text-muted)}.reference-strip{display:flex;gap:6px;overflow:auto;margin:8px 0 0}.reference-chip{height:40px;border:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-text) 3.9%,transparent);border-radius:7px;display:flex;align-items:center;padding:8px;gap:7px;font-size:11px;color:var(--ui-text);max-width:220px;flex-shrink:0}.reference-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-chip button{display:flex;padding:2px;color:var(--ui-text-muted)}.prompt-input{display:block;height:78px;width:100%;border:0;background:transparent;resize:none;padding:13px 4px;font-size:14px;line-height:1.6;outline:none!important;color:var(--ui-text)}.prompt-input::placeholder{color:var(--ui-text-muted)}.inspector-bottom{display:flex;align-items:center;gap:7px;margin-top:3px;min-height:32px}.model-select{display:flex;align-items:center;position:relative;gap:5px;max-width:190px;min-width:80px;flex-shrink:1}.model-select :is(select,.ark-select){border:0;background:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:8px 12px 8px 0;font-size:12px;cursor:pointer;min-width:0;max-width:160px;text-overflow:ellipsis;outline:none;color:var(--ui-text)}.model-select>svg{position:absolute;right:0;pointer-events:none;color:var(--ui-text-muted)}.model-select>img{opacity:.9}.model-select option{background:var(--ui-input)}.parameter-trigger{display:flex;align-items:center;gap:5px;padding:8px 5px;border-radius:7px;min-width:0;font-size:12px;color:var(--ui-text);white-space:nowrap}.parameter-trigger span{overflow:hidden;text-overflow:ellipsis}.parameter-trigger>svg:last-child{color:var(--ui-text-muted)}.inspector-bottom>.icon-button{margin-left:auto;width:27px}.generate-button{width:32px;height:32px;border-radius:10px;background:var(--ui-button);color:var(--ui-on-accent);display:flex;align-items:center;justify-content:center;margin-left:2px;flex-shrink:0}.generate-button:disabled{opacity:.35}.inspector-footnote{display:flex;align-items:center;gap:4px;color:var(--ui-text-muted);font-size:10px;padding:8px 3px 0}.inspector-footnote>span:last-child{margin-left:auto}.advanced{border-top:1px solid var(--ui-border);margin-top:10px;padding:12px 4px 3px}.advanced label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--ui-text)}.advanced input{accent-color:var(--ui-accent)}.advanced p{margin:7px 0 0;font-size:11px;color:var(--ui-text-muted)}.parameter-popover{position:absolute;width:380px;right:46px;bottom:calc(100% + 8px);max-height:min(570px,calc(100dvh - 110px));overflow:auto;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:13px;padding:12px;box-shadow:0 14px 40px #0007}.popover-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--ui-text-secondary);margin:0 0 8px 2px}.popover-title .icon-button{height:22px;width:22px}.choice-group{padding:0;border:0;margin:0 0 16px}.choice-group:last-child{margin-bottom:2px}.choice-group legend{font-size:11px;color:var(--ui-text-muted);margin-bottom:8px;padding:0}.choice-group>div{display:flex;gap:5px;flex-wrap:wrap}.choice-group button{font-size:11px;border:1px solid var(--ui-border);background:var(--ui-surface-raised);border-radius:5px;padding:7px 9px;line-height:1.2;color:var(--ui-text-secondary);flex:1;white-space:nowrap}.choice-group button.chosen{border-color:var(--ui-accent);color:var(--ui-text);background:var(--ui-selected)}.choice-group.ratios>div{display:grid;grid-template-columns:repeat(5,1fr)}.choice-group.ratios button{padding:9px 5px;min-height:34px}.reference-picker{position:absolute;bottom:calc(100% + 8px);left:0;width:280px;max-height:260px;overflow:auto;background:var(--ui-surface);border:1px solid var(--ui-border);box-shadow:0 10px 30px #0006;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:4px}.reference-picker>span{font-size:11px;color:var(--ui-text-muted);padding:6px 4px}.reference-picker>button{display:flex;gap:8px;align-items:center;padding:10px 5px;border-radius:5px;text-align:left;font-size:12px}.reference-picker>button>svg{margin-left:auto;color:var(--ui-text-muted)}.reference-picker p{color:var(--ui-text-muted);font-size:12px;padding:8px;line-height:1.7}.canvas-controls{position:absolute;z-index:10;bottom:15px;left:16px;display:flex;align-items:center;gap:5px;height:32px;color:var(--ui-text-muted)}.canvas-controls>.icon-button{width:27px;height:28px}.canvas-controls .source-icon{opacity:.62}.assets-button{display:flex;align-items:center;gap:5px;color:var(--ui-text-muted);font-size:12px;padding:7px 8px;border-radius:6px;margin-right:6px}.assets-button.active{color:var(--ui-text);background:var(--ui-selected)}.zoom-button{font-size:12px;display:flex;align-items:center;gap:4px;padding:7px 8px;color:var(--ui-text);border-radius:5px}.zoom-menu{position:absolute;z-index:15;bottom:59px;left:178px;width:178px;padding:6px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:11px;box-shadow:0 5px 20px #0004}.zoom-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:12px;text-align:left;padding:10px;border-radius:5px;color:var(--ui-text)}.zoom-menu button:nth-child(3){border-bottom:1px solid var(--ui-border);border-radius:0;margin-bottom:4px}.bottom-dock{position:absolute;z-index:13;bottom:12px;left:50%;transform:translate(-50%);height:50px;display:flex;align-items:center;gap:5px;padding:7px 8px;background:color-mix(in srgb,var(--ui-surface) 93.7%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--ui-border);border-radius:16px;box-shadow:0 2px 12px #0002}.bottom-dock>.icon-button{height:34px;width:34px}.bottom-dock .add-button{background:var(--ui-button);color:var(--ui-on-accent);border-radius:9px;margin-right:3px}.bottom-dock .add-button:hover{background:var(--ui-button)}.dock-separator{width:1px;height:20px;background:var(--ui-border);margin:0 1px}.canvas-hint{position:absolute;right:17px;bottom:25px;font-size:11px;color:var(--ui-text-muted);pointer-events:none}.add-menu{position:absolute;z-index:16;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px;padding:10px;width:236px;box-shadow:0 8px 28px #0005}.add-menu>header{display:flex;align-items:center;justify-content:space-between;height:28px;padding:0 3px 5px;color:var(--ui-text-muted);font-size:11px}.add-menu>header>.icon-button{width:22px;height:22px}.add-menu>button{width:100%;display:flex;align-items:center;padding:10px 6px;gap:10px;text-align:left;border-radius:6px;font-size:13px}.add-menu>button>span{margin-left:auto;font-size:10px;color:var(--ui-text-muted)}.menu-divider{height:1px;background:var(--ui-border);margin:8px 3px}.empty-canvas{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;max-width:90%;width:580px}.empty-canvas>.source-icon{margin:0 auto 22px;height:30px;opacity:.3}.empty-canvas h1{font-size:19px;letter-spacing:.5px;font-weight:500;color:var(--ui-text-secondary)}.empty-canvas p{font-size:12px;color:var(--ui-text-muted);margin-bottom:26px}.empty-canvas>div{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.empty-canvas button{pointer-events:auto;display:flex;align-items:center;gap:7px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:7px;padding:12px;color:var(--ui-text-muted);font-size:12px}.empty-canvas button>.source-icon{opacity:.6}.empty-canvas button>svg{color:var(--ui-text-muted)}.toast{position:absolute;left:50%;bottom:79px;transform:translate(-50%);z-index:30;padding:11px 16px;background:var(--ui-surface-raised);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:10px;box-shadow:0 5px 25px #0004;font-size:12px;display:flex;align-items:center;gap:8px;max-width:calc(100% - 32px);animation:toast-in .18s ease-out}.toast>svg{color:var(--ui-success)}.hidden-input{display:none}.modal-backdrop{position:absolute;z-index:40;top:0;right:0;bottom:0;left:0;background:var(--ui-overlay);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:var(--ui-surface);width:420px;max-height:85dvh;overflow:auto;max-width:100%;border:1px solid var(--ui-border);border-radius:18px;box-shadow:0 20px 80px #0008;padding:22px;outline:none}.modal>header{display:flex;align-items:center;justify-content:space-between;margin:-3px -5px 16px 0}.modal h2{font-size:17px;font-weight:500;margin:0}.dialog-description{color:var(--ui-text-muted);font-size:12px;line-height:1.8;margin:0 0 18px}.form-field{display:flex;flex-direction:column;gap:9px;font-size:12px;color:var(--ui-text-secondary);margin:15px 0}.form-field :is(select,.ark-select),.form-field input{width:100%;height:40px;border-radius:7px;background:var(--ui-input);border:1px solid var(--ui-border);color:var(--ui-text);padding:8px 10px;outline:none}.primary{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;background:var(--ui-button);color:var(--ui-on-accent);border-radius:8px;padding:12px 14px;margin-top:20px;font-weight:500}.primary:hover:not(:disabled){background:var(--ui-border-strong)}.primary:disabled{opacity:.28}.shortcut-list>div{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;color:var(--ui-text-secondary);padding:11px 0;border-bottom:1px solid var(--ui-border)}.shortcut-list kbd{font-family:inherit;font-size:11px;color:var(--ui-text);background:var(--ui-surface-raised);padding:4px 7px;border-radius:4px;text-align:right}.help-steps{padding-left:21px;margin:0;color:var(--ui-text-secondary)}.help-steps li{padding-left:6px;margin:16px 0}.help-steps strong{font-size:13px;color:var(--ui-text);font-weight:500}.help-steps p{font-size:12px;line-height:1.8;margin:6px 0}.callout{padding:12px;font-size:11px;line-height:1.8;border:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-text) 2%,transparent);border-radius:8px;color:var(--ui-text-secondary)}.project-menu-item{width:100%;padding:13px 8px;display:flex;align-items:center;gap:12px;border-radius:7px;color:var(--ui-text);text-align:left}.dialog-actions{display:flex;gap:10px;align-items:center}.dialog-actions>button{flex:1;display:flex;align-items:center;gap:6px;justify-content:center;font-size:12px}.dialog-actions>.primary{margin:0}.storage-summary{text-align:center;color:var(--ui-text-secondary);font-size:12px;line-height:1.8}.storage-summary>svg{margin:4px auto 14px;display:block;color:var(--ui-success)}.storage-summary strong{font-size:15px;color:var(--ui-text);font-weight:500}.storage-summary p{text-align:left;margin:18px 0}.storage-summary>span{font-size:11px;color:var(--ui-text-muted)}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes edge-flow{to{stroke-dashoffset:-122}}@keyframes toast-in{0%{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}@media(max-width:1100px){.canvas-hint{display:none}.canvas-controls{bottom:72px;left:12px}.zoom-menu{bottom:110px;left:155px}.project-name{width:120px}.save-status{font-size:10px;padding:0 5px}.topbar-right{gap:5px}.react-flow__minimap{bottom:120px}}@media(max-width:700px){.topbar{top:8px;gap:5px}.project-group{gap:6px;max-width:calc(100% - 72px);flex:1;padding:0 4px}.project-name{width:95px;flex:1;min-width:45px}.brand-button{gap:4px;margin-right:0}.canvas-name{max-width:85px;font-size:11px}.view-switch{display:none}.topbar-right{gap:2px;margin-left:0}.topbar-right>.icon-button,.local-badge{display:none}.save-status{width:32px;padding:0;justify-content:center}.save-status>span{display:none}.canvas-controls{bottom:73px;left:8px;gap:2px}.assets-button{padding:7px 5px;margin-right:0}.bottom-dock{bottom:12px;max-width:calc(100% - 20px);padding:7px;gap:4px;left:50%;height:52px}.bottom-dock>.icon-button{width:34px;height:36px}.dock-separator{margin:0}.bottom-dock .add-button{margin-right:1px}.sidebar{top:50px;bottom:118px;left:8px;width:calc(100% - 16px);max-width:350px}.mobile-inspector{left:8px;right:8px;bottom:119px;width:auto;padding:9px 10px;border-radius:14px;max-height:calc(100dvh - 205px);overflow:visible}.inspector-top{gap:5px}.inspector-node-name{font-size:10px}.local-model{font-size:9px}.prompt-input{height:66px;font-size:12px;padding:11px 2px}.inspector-bottom{flex-wrap:wrap;gap:4px}.model-select{max-width:145px}.model-select :is(select,.ark-select){font-size:11px;max-width:122px}.inspector-bottom .separator{display:none}.parameter-trigger{font-size:10px;padding:8px 3px;max-width:calc(100% - 144px);gap:3px}.inspector-bottom>.icon-button{margin-left:0}.generate-button{margin-left:auto;height:27px;width:27px}.inspector-footnote{font-size:9px}.reference-chip{height:33px;font-size:10px}.reference-chip>img{width:14px}.parameter-popover{position:fixed;left:10px;right:10px;bottom:120px;top:auto;width:auto;max-height:calc(100dvh - 190px);z-index:20;padding:13px}.choice-group button{padding:9px 6px}.reference-picker{width:calc(100% - 12px);left:6px}.toast{bottom:115px;font-size:11px;width:max-content;max-width:calc(100% - 30px);text-align:left}.react-flow__attribution{bottom:107px!important}.empty-canvas{top:40%;width:340px}.empty-canvas h1{font-size:17px}.empty-canvas button{min-width:131px;justify-content:center}.zoom-menu{left:155px;bottom:114px}.modal{padding:20px}.shortcut-list kbd{font-size:10px}.react-flow__minimap{width:135px!important;height:90px!important;bottom:117px!important}.advanced{max-height:120px;overflow:auto}.canvas-controls>.icon-button{width:26px}.port.react-flow__handle{width:26px;height:26px;opacity:.7}.node-actions{opacity:.6}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}.has-connections .port{opacity:.6}.has-connections:hover .port{opacity:1}.reference-chip{position:relative;width:48px;height:48px;justify-content:center;border:0;background:var(--ui-surface-raised);padding:8px}.reference-chip>.reference-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.reference-chip>.reference-order{position:absolute;top:3px;left:3px;background:#171717;color:#eee;border-radius:8px;padding:2px 4px;font-size:9px;line-height:1}.reference-chip>button{position:absolute;top:2px;right:2px;background:var(--ui-surface-raised);border-radius:50%;opacity:0}.reference-chip:hover>button,.reference-chip:focus-within>button{opacity:1}.prompt-input{height:86px}@media(max-width:700px){.prompt-input{height:66px}.reference-chip{width:38px;height:38px}.reference-chip>button{opacity:1}}.node-text{line-height:20px;font-weight:400}.brand-button .source-icon,.empty-canvas>.source-icon,.model-select .source-icon{filter:var(--ui-icon-filter,brightness(0) invert(1));object-fit:contain;width:38px;height:20px}.brand-button{gap:9px!important;padding:0 10px!important}.brand-name{font-size:15px;font-weight:650;letter-spacing:-.4px;color:var(--ui-text)}.empty-canvas>.source-icon{width:90px;height:36px}.model-select .source-icon{width:21px;height:13px}@media(max-width:700px){.brand-name{font-size:13px}.brand-button{gap:6px!important}.brand-button .source-icon{width:25px}}.run-workflow-button{height:30px;display:flex;align-items:center;gap:7px;border:1px solid var(--ui-border);border-radius:7px;padding:0 11px;font-size:11px;background:var(--ui-surface);color:var(--ui-text);white-space:nowrap}.run-workflow-button svg{fill:currentColor;width:11px}.topbar-right>.provider-settings-button{background:var(--ui-surface);border:1px solid var(--ui-border);width:31px;height:31px;border-radius:7px}.model-settings{border:0;color:var(--ui-text);gap:7px;padding:6px 3px;max-width:210px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.model-dot{width:13px;height:13px;border:2px solid var(--ui-border-strong);border-radius:4px;transform:rotate(-10deg);flex-shrink:0}.model-settings>svg{margin-left:2px}.generate-button:not(:disabled){background:var(--ui-border-strong);color:var(--ui-on-accent);opacity:1}.generate-button:hover:not(:disabled){background:var(--ui-border-strong)}.inspector-footnote>button{margin-left:auto;color:var(--ui-text-secondary);font-size:10px;padding:2px 0}.inspector-footnote>button:hover{text-decoration:underline;background:transparent}.ai-toggle{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--ui-text-secondary)}.ai-toggle input{accent-color:var(--ui-accent);cursor:pointer}.generation-error{display:flex;gap:7px;color:var(--ui-danger);font-size:11px;line-height:1.6;border-top:1px solid var(--ui-danger);padding:9px 1px 1px;margin-top:8px}.generation-error svg{margin-top:3px}.apply-text{font-size:11px;color:var(--ui-text);text-decoration:underline;padding:8px}.params-unconfigured{padding:16px 2px;color:var(--ui-text-muted);text-align:center}.params-unconfigured>svg{color:var(--ui-text-secondary);margin:0 auto 4px}.params-unconfigured>p{font-size:13px;color:var(--ui-text)}.params-unconfigured>span{font-size:11px;line-height:1.7;display:block;max-width:250px;margin:auto}.params-unconfigured>button{margin:16px auto 0;display:flex;align-items:center;gap:7px;background:var(--ui-surface-raised);border-radius:6px;padding:8px 12px;color:var(--ui-text);font-size:11px}.parameter-note{font-size:10px;color:var(--ui-text-muted);line-height:1.7;margin:15px 0 3px}.advanced input[type=number]{width:100px;background:var(--ui-input);border:1px solid var(--ui-border-strong);border-radius:4px;padding:5px}.text .node-text,.script .node-text{padding-bottom:45px}.text-node-tools{position:absolute;bottom:10px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center}.text-node-tools button{display:flex;gap:5px;align-items:center;padding:5px 7px;border-radius:5px;background:var(--ui-surface);color:var(--ui-text-secondary);font-size:10px}.text-node-tools>span{font-size:9px;color:var(--ui-text-muted)}.generated-image,.generated-video{width:100%;height:100%;object-fit:contain;background:#161616}.hidden{display:none!important}.node-generation-state{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#191919d9;border-radius:12px;pointer-events:none;color:#c9c9c9;font-size:12px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.output-toolbar{position:absolute;top:9px;right:9px;display:flex;align-items:center;gap:3px;border-radius:7px;padding:4px;background:#171717cf;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);color:#ddd;opacity:0;transition:opacity .15s}.studio-node:hover .output-toolbar,.studio-node.is-selected .output-toolbar,.output-toolbar:focus-within{opacity:1}.output-toolbar>span{padding:0 5px;font-size:10px}.output-toolbar>button,.output-toolbar>a{display:flex;padding:5px;border-radius:4px;color:inherit}.node-error-badge{position:absolute;bottom:10px;left:10px;display:flex;align-items:center;gap:5px;font-size:10px;color:var(--ui-danger);border-radius:5px;background:var(--ui-danger-bg);padding:5px 7px}.reference-chip.with-image{padding:0;overflow:hidden}.reference-chip.with-image>img{width:100%;height:100%;object-fit:cover;opacity:1}.modal:has(.generation-settings){width:820px;max-height:min(880px,90dvh);padding:22px 26px}.settings-intro{margin:-7px 0 22px;font-size:12px;color:var(--ui-text-muted)}.provider-tabs{display:flex;gap:6px;border-bottom:1px solid var(--ui-border);padding-bottom:12px;margin-bottom:20px}.provider-tabs>button{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:7px;color:var(--ui-text-muted);font-size:12px}.provider-tabs>button.selected{background:var(--ui-selected);color:var(--ui-text)}.provider-heading{display:flex;align-items:center;gap:12px;margin:7px 0 20px}.provider-monogram{height:35px;width:35px;background:var(--ui-surface-raised);border:1px solid var(--ui-border-strong);border-radius:10px;display:grid;place-items:center;color:var(--ui-text);font-weight:700;font-size:21px}.provider-monogram.deepseek{background:#344262;border-color:#4c5e84;color:#cddfff}.provider-heading>div:nth-child(2){display:flex;flex-direction:column;gap:5px}.provider-heading strong{font-size:14px;font-weight:550}.provider-heading>div>span{color:var(--ui-text-muted);font-size:11px}.connection-tag{margin-left:auto;font-size:10px;padding:5px 8px;border:1px solid var(--ui-border);background:var(--ui-surface-raised);border-radius:20px;color:var(--ui-text-muted)}.connection-tag.ready{border-color:var(--ui-success);color:var(--ui-success)}.settings-row{display:flex;gap:14px}.settings-row>.form-field{flex:1;margin:8px 0}.settings-row>.narrow{flex:0 0 210px}.generation-settings .form-field{font-size:11px;gap:7px}.generation-settings .form-field input,.generation-settings .form-field :is(select,.ark-select){height:36px;font-size:12px;background:var(--ui-input);border-color:var(--ui-border)}.generation-settings .form-field textarea{width:100%;min-height:110px;resize:vertical;background:var(--ui-input);border:1px solid var(--ui-border);padding:11px;border-radius:8px;line-height:1.7;font-size:12px}.mapping-title{display:flex;align-items:center;justify-content:space-between;margin:25px 0 12px}.mapping-title>div{display:flex;flex-direction:column;gap:7px}.mapping-title strong{font-weight:500;font-size:12px}.mapping-title span{font-size:11px;color:var(--ui-text-muted)}.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--ui-border);background:var(--ui-surface-raised);border-radius:6px;padding:8px 10px;font-size:11px;white-space:nowrap}.mapping-empty{border:1px dashed var(--ui-border);border-radius:9px;text-align:center;padding:22px 15px;background:var(--ui-surface)}.mapping-empty p{font-size:11px;color:var(--ui-text-muted);line-height:1.9;margin:13px 0 0}.mapping-diagram{display:flex;justify-content:center;align-items:center;gap:12px;color:var(--ui-text-muted)}.mapping-diagram>span{font-size:11px;color:var(--ui-text-secondary);border:1px solid var(--ui-border);padding:7px 11px;border-radius:5px;background:var(--ui-surface-raised)}.mapping-actions{display:flex;gap:15px;margin:12px 0 21px}.mapping-actions button{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--ui-text-secondary);border-radius:4px;padding:5px 0}.mapping-field{border:1px solid var(--ui-border);border-radius:8px;padding:11px 12px;margin:9px 0;background:var(--ui-surface)}.mapping-field-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.mapping-field-top>input{background:transparent;border:0;color:var(--ui-text);font-size:12px;width:80%;padding:2px 0}.mapping-field-top>button{color:var(--ui-text-muted);border-radius:3px;padding:5px}.mapping-grid{display:grid;grid-template-columns:90px 1fr 1.35fr;gap:10px}.mapping-grid label{font-size:10px;color:var(--ui-text-muted);display:flex;gap:6px;flex-direction:column}.mapping-grid input,.mapping-grid :is(select,.ark-select),.mapping-value input,.mapping-value :is(select,.ark-select),.value-map input{height:31px;width:100%;border-radius:5px;background:var(--ui-input);border:1px solid var(--ui-border);color:var(--ui-text);padding:5px 8px;font-size:11px}.mapping-value{display:flex;align-items:center;gap:12px;font-size:10px;color:var(--ui-text-secondary);margin-top:10px}.mapping-value input,.mapping-value :is(select,.ark-select){flex:1}.binding-description{font-size:10px;color:var(--ui-text-muted);margin:10px 0 0;line-height:1.6}.value-map{margin-top:9px;font-size:10px;color:var(--ui-text-secondary)}.value-map summary{cursor:pointer}.value-map input{margin-top:8px;font-family:monospace}.mapping-import{padding:10px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:7px;margin-bottom:20px}.mapping-import textarea{width:100%;height:130px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:5px;padding:10px;font-size:11px;font-family:monospace;resize:vertical;margin-bottom:8px}.settings-tip{display:flex;gap:9px;padding:12px;border-radius:7px;background:color-mix(in srgb,var(--ui-text) 1.6%,transparent);border:1px solid var(--ui-border);color:var(--ui-text-muted);font-size:11px;line-height:1.8}.settings-tip svg{margin-top:3px;color:var(--ui-text-secondary)}.settings-message{display:flex;align-items:center;gap:5px;font-size:11px;line-height:1.7;color:var(--ui-success);margin-bottom:0}.settings-message.error{color:var(--ui-danger)}.settings-footer{margin-top:21px;padding-top:15px;border-top:1px solid var(--ui-border);display:flex;align-items:center;justify-content:space-between;gap:20px}.settings-footer>span{font-size:10px;color:var(--ui-text-muted);display:flex;gap:6px;align-items:center}.settings-footer>.primary{margin:0;width:120px;padding:10px;flex-shrink:0;font-size:12px}.modal:has(.pipeline-setup){width:660px}.pipeline-steps{display:flex;align-items:center;justify-content:center;gap:12px;padding:15px 0 13px;flex-wrap:wrap}.pipeline-step{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:10px;min-width:140px;padding:16px 12px;display:flex;flex-direction:column;align-items:center;gap:10px;flex:1}.pipeline-step>svg{color:var(--ui-text-secondary)}.pipeline-step>strong{font-weight:500;font-size:12px;color:var(--ui-text)}.pipeline-step>span{font-size:10px;color:var(--ui-text-muted)}.step-arrow{color:var(--ui-text-muted)}.pipeline-note{font-size:11px;line-height:1.8;color:var(--ui-text-muted)}.configuration-needed{background:var(--ui-warning-bg);border:1px solid var(--ui-warning);border-radius:8px;padding:14px;display:flex;gap:10px;margin-top:15px;color:var(--ui-warning)}.configuration-needed>svg{margin-top:3px}.configuration-needed strong{font-size:12px;font-weight:500}.configuration-needed p{font-size:11px;line-height:1.7;margin:6px 0}.configuration-needed button{display:flex;align-items:center;gap:5px;font-size:11px;padding:6px 0;color:var(--ui-warning)}.inline-error{font-size:11px;color:var(--ui-danger);line-height:1.7}.run-monitor{position:absolute;right:16px;top:59px;z-index:8;width:260px;border:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-surface) 96.1%,transparent);box-shadow:0 8px 25px #0003;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:12px;padding:12px}.run-monitor>header{display:flex;align-items:center;justify-content:space-between;padding:0 0 9px;color:var(--ui-text)}.run-monitor>header>div{display:flex;align-items:center;gap:7px}.run-monitor strong{font-size:11px;font-weight:500}.run-monitor>header>button{display:flex;padding:4px;color:var(--ui-text-muted);border-radius:4px}.run-step{display:flex;width:100%;align-items:center;gap:8px;padding:9px 5px;border-radius:5px;color:var(--ui-text-muted)}.run-step>span:not(.step-dot){flex:1;text-align:left;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.run-step>small{font-size:10px}.run-step.succeeded,.run-step.reused{color:var(--ui-success)}.run-step.running,.run-step.uploading,.run-step.submitting,.run-step.downloading{color:var(--ui-text)}.run-step.failed,.run-step.uncertain{color:var(--ui-danger)}.step-dot{border:1px solid var(--ui-border-strong);width:9px;height:9px;border-radius:50%;margin:1px}.run-error{font-size:10px;line-height:1.7;color:var(--ui-danger);border-top:1px solid var(--ui-danger);padding-top:10px;margin:8px 0 2px}.resume-button{display:flex;align-items:center;justify-content:center;gap:7px;background:var(--ui-surface-raised);border:1px solid var(--ui-border-strong);width:100%;padding:8px;font-size:11px;border-radius:5px;margin-top:12px}.modal:has(.output-viewer){width:1000px;background:var(--ui-surface-muted)}.output-viewer>img,.output-viewer>video{display:block;width:100%;max-height:65dvh;object-fit:contain;background:#151515;border-radius:7px}.output-viewer>footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;color:var(--ui-text-muted);font-size:11px}.output-viewer a{display:flex;align-items:center;gap:6px;color:var(--ui-text);text-decoration:none}.output-pages{display:flex;justify-content:center;gap:7px;margin-top:12px}.output-pages button{border:1px solid var(--ui-border);padding:7px 12px;border-radius:5px}.output-pages button.selected{background:var(--ui-selected)}@media(max-width:1100px){.local-badge{display:none}.topbar-right{gap:4px}.project-name{width:110px}.topbar-right>.icon-button:not(.provider-settings-button){display:none}}@media(max-width:700px){.topbar-right>.provider-settings-button{display:flex!important;width:29px;height:29px}.run-workflow-button{width:29px;padding:0;justify-content:center;height:29px}.run-workflow-button>span{display:none}.project-group{max-width:calc(100% - 105px);gap:3px}.project-name{width:58px;min-width:30px}.canvas-name{display:none}.project-group>.separator{display:none}.brand-button{padding:0 5px!important}.modal:has(.generation-settings){padding:20px 16px;max-height:92dvh}.provider-tabs{gap:2px}.provider-tabs>button{padding:9px 8px;font-size:11px;gap:5px}.settings-row{flex-direction:column;gap:0}.settings-row>.narrow{flex:auto}.settings-footer{gap:10px;align-items:flex-start}.settings-footer>span{line-height:1.7;font-size:9px;max-width:180px}.settings-footer>.primary{width:103px;padding:10px 8px}.mapping-diagram{gap:7px}.mapping-diagram>span{padding:6px 7px;font-size:10px}.mapping-grid{grid-template-columns:58px 1fr 1.2fr;gap:7px}.model-settings{max-width:142px;font-size:10px}.ai-toggle{font-size:10px}.parameter-trigger{max-width:calc(100% - 153px)}.inspector-footnote>button{font-size:9px}.run-monitor{top:56px;right:8px;width:224px}.pipeline-step{min-width:100px;padding:13px 8px}.pipeline-steps{gap:5px}.pipeline-step>strong{font-size:10px}.pipeline-step>span{font-size:9px}.output-toolbar{opacity:1}.text-node-tools>span{display:none}}.service-error{position:absolute;z-index:9;top:54px;right:16px;display:flex;gap:6px;align-items:center;background:var(--ui-danger-bg);color:var(--ui-danger);border:1px solid var(--ui-danger);border-radius:6px;padding:8px 11px;font-size:11px;max-width:calc(100% - 32px)}@font-face{font-family:Inter;src:url(/reference/4de0dd34f6d85712.woff2) format("woff2");font-style:normal;font-weight:100 900;font-display:swap}.workspace{--nav-width:240px;--banner-height:0px;height:100dvh;background:var(--ui-bg);color:var(--ui-text);font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;position:relative}.workspace.has-banner{--banner-height:60px}.workspace-banner{height:60px;display:flex;align-items:center;justify-content:center;gap:22px;background:var(--ui-accent-soft);font-size:16px;letter-spacing:.1px;position:relative;z-index:12;flex-shrink:0}.banner-kicker{color:var(--ui-accent-text);font-size:14px;letter-spacing:2px;border-right:1px solid var(--ui-border);padding-right:23px}.workspace-banner>button{display:flex;gap:8px;align-items:center;font-size:12px;background:var(--ui-button);color:var(--ui-on-accent);border-radius:7px;padding:8px 13px}.workspace-banner>button:last-child{position:absolute;right:20px;background:transparent;color:var(--ui-text-secondary);padding:5px}.workspace-nav{position:absolute;left:0;top:var(--banner-height);bottom:0;width:var(--nav-width);background:var(--ui-sidebar);border-right:1px solid var(--ui-border);padding:24px 12px 14px;display:flex;flex-direction:column;z-index:11}.nav-brand{padding:0 10px;margin-bottom:27px;align-self:flex-start}.ark-brand{display:flex;align-items:center;gap:10px}.ark-brand img{width:47px;height:25px;object-fit:contain;filter:var(--ui-logo-filter)}.ark-brand strong{font-size:21px;letter-spacing:-.6px;font-weight:640}.ark-brand.compact img{width:27px;height:20px}.workspace-nav nav{display:flex;flex-direction:column;gap:8px}.workspace-nav nav>button{display:flex;align-items:center;gap:12px;text-align:left;width:100%;height:34px;padding:0 12px;border-radius:8px;font-size:13px;color:var(--ui-text-secondary)}.workspace-nav nav>button svg{color:var(--ui-text-secondary);stroke-width:1.7}.workspace-nav nav>button.selected{background:var(--ui-selected);color:var(--ui-text)}.workspace-nav nav>p{font-size:11px;color:var(--ui-text-muted);padding:0 12px;margin:21px 0 0}.nav-chevron{margin-left:auto}.nav-tag{margin-left:auto;font-size:9px;padding:2px 5px;border-radius:5px;background:var(--ui-hover);color:var(--ui-text-secondary)}.nav-tag.mint{color:var(--ui-success);background:var(--ui-success-bg)}.nav-tag.pink{color:var(--ui-text-secondary);background:var(--ui-accent-soft)}.nav-bottom{margin-top:auto;padding-top:25px}.nav-promo{padding:17px 14px;background:var(--ui-accent-soft);border:1px solid var(--ui-border);border-radius:10px;display:flex;gap:13px;flex-direction:column;margin:0 0 22px}.nav-promo .ark-brand img{width:33px;height:17px}.nav-promo .ark-brand strong{font-size:17px}.nav-promo>span{font-size:11px;color:var(--ui-text-secondary)}.nav-promo>button{align-self:flex-start;display:flex;align-items:center;gap:25px;padding:0;font-size:11px}.nav-bottom>button{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--ui-text-muted);width:100%;padding:0 9px}.nav-bottom>button>span{margin-left:auto}.workspace-main{height:calc(100% - var(--banner-height));margin-left:var(--nav-width);overflow:auto;scrollbar-color:var(--ui-border) transparent;scrollbar-width:thin}.workspace-account{height:64px;padding:0 30px;display:flex;align-items:center;justify-content:flex-end}.workspace-account>div{display:flex;align-items:center;gap:18px}.workspace-account>div>button:not(.profile-avatar){display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ui-text)}.local-account-tag{display:flex;align-items:center;gap:6px;color:var(--ui-text-muted);font-size:11px}.profile-avatar{display:grid;place-items:center;border-radius:50%;height:31px;width:31px;background:var(--ui-accent-soft);color:var(--ui-accent-text);font-weight:700;font-size:13px}.mobile-nav-toggle{display:none}.home-content{padding:0 40px 70px;max-width:1480px;margin:auto}.new-project-hero{height:160px;border:1px solid var(--ui-border);background:radial-gradient(var(--ui-grid) 1px,transparent 1px),linear-gradient(var(--ui-surface),var(--ui-surface-raised));background-size:auto,10px 10px;display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;border-radius:14px;gap:15px}.new-project-hero>span{width:86px;height:50px;display:grid;place-items:center;border:1px solid var(--ui-border-strong);border-radius:15px;background:var(--ui-surface);box-shadow:0 5px 16px #0005}.new-project-hero>strong{font-size:17px;font-weight:500}.new-project-hero:hover{border-color:var(--ui-border-strong)}.quick-actions{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;margin-top:32px;margin-bottom:56px}.quick-actions>button{display:flex;flex-direction:column;align-items:center;gap:13px;padding:0;background:none!important;font-size:13px;color:var(--ui-text);white-space:nowrap}.quick-actions>button>span{width:98px;height:56px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:17px;display:grid;place-items:center;box-shadow:inset 0 1px 3px #ffffff12,0 4px 7px #0002;transition:transform .15s}.quick-actions>button:hover>span{transform:translateY(-3px);border-color:var(--ui-border-strong)}.quick-actions img{height:39px;width:46px;object-fit:contain}.home-section{margin-bottom:45px}.home-section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.home-section h2{font-size:18px;font-weight:560;margin:0}.home-section>header>button{display:flex;align-items:center;gap:4px;color:var(--ui-text-muted);font-size:12px;padding:0}.recent-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.library-card{position:relative;min-width:0}.cover-button{width:100%;aspect-ratio:16/9;padding:0;overflow:hidden;border-radius:12px;background:var(--ui-surface);display:block}.cover-button>img,.cover-button>video{height:100%;width:100%;object-fit:cover}.project-cover-graph{position:relative;width:100%;height:100%;background-color:var(--ui-surface);background-image:radial-gradient(var(--ui-grid) 1px,transparent 1px);background-size:8px 8px;display:flex;align-items:center;justify-content:center;gap:8px}.project-cover-graph>span{width:22%;height:36%;border:1px solid var(--ui-border-strong);border-radius:4px;background:var(--ui-surface);position:relative}.project-cover-graph>span:first-child{height:24%;transform:translateY(13px)}.project-cover-graph>span:not(:last-child):after{content:"";position:absolute;left:100%;width:10px;top:50%;border-bottom:1px solid var(--ui-border-strong)}.project-cover-graph>svg{position:absolute;background:var(--ui-surface);padding:10px;box-sizing:content-box;opacity:.8}.folder-cover{display:grid;place-items:center;height:100%;background:var(--ui-surface);color:var(--ui-text-muted)}.card-copy{padding:12px 24px 0 0;min-width:0}.card-title{font-size:13px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;display:block;max-width:100%}.card-copy>small{color:var(--ui-text-muted);font-size:11px;display:block;margin-top:7px}.card-more{position:absolute;bottom:14px;right:0;border-radius:5px;padding:3px;display:flex;color:var(--ui-text-muted)}.library-card-menu{position:absolute;right:0;top:100%;z-index:15;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:9px;min-width:160px;box-shadow:0 7px 25px #0008;padding:6px}.library-card-menu>button{display:flex;align-items:center;gap:10px;text-align:left;border-radius:5px;padding:10px;width:100%;font-size:12px}.library-card-menu>button:last-child{color:var(--ui-danger)}.recent-card{display:flex;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:22px;height:86px;padding:5px;align-items:center;gap:12px}.recent-card .cover-button{flex-shrink:0;width:90px;height:74px;border-radius:17px}.recent-card .card-copy{padding:0 16px 0 0;flex:1}.recent-card .card-title{font-size:12px}.recent-card .card-more{right:8px;bottom:8px}.recent-card .card-copy>small{font-size:10px;color:var(--ui-text-muted)}.first-project{border:1px dashed var(--ui-border);background:var(--ui-surface-muted);border-radius:22px;height:86px;grid-column:span 2;display:flex;align-items:center;gap:20px;padding:0 25px;text-align:left}.first-project>div{display:flex;flex-direction:column;gap:8px;flex:1}.first-project strong{font-size:13px;font-weight:500}.first-project span{font-size:11px;color:var(--ui-text-muted)}.feature-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.feature-card{padding:0;text-align:left;background:none!important;min-width:0}.feature-card>div{aspect-ratio:16/9;position:relative;border-radius:14px;overflow:hidden;border:1px solid var(--ui-border);background:var(--ui-surface)}.feature-card img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.feature-card:hover img{transform:scale(1.04)}.feature-card>div>span{position:absolute;bottom:10px;right:10px;padding:4px 6px;background:#153c2de6;color:#c1e4ce;font-size:10px;border-radius:6px}.feature-card strong{display:block;font-size:13px;font-weight:450;margin-top:12px}.source-credit{font-size:10px;color:var(--ui-text-muted)}.gallery-filter{display:flex;gap:20px;margin-bottom:20px;align-items:center}.gallery-filter>div{display:flex;gap:8px;flex:1;overflow:auto;scrollbar-width:none}.gallery-filter button{padding:9px 14px;font-size:12px;color:var(--ui-text-muted);white-space:nowrap;border-radius:8px}.gallery-filter button.selected{background:var(--ui-selected);color:var(--ui-text)}.gallery-filter>label{height:32px;width:160px;background:var(--ui-surface);border:1px solid var(--ui-border);display:flex;align-items:center;gap:7px;padding:0 9px;border-radius:8px;color:var(--ui-text-muted)}.gallery-filter input{background:none;border:0;width:100%;font-size:12px;outline:none}.inspiration-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.inspiration-card{padding:0;text-align:left;min-width:0;background:none!important}.inspiration-card>img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:#252525}.inspiration-card:nth-child(3n)>img{aspect-ratio:1}.inspiration-card>div{padding:12px 2px}.inspiration-card strong{font-size:13px;font-weight:450;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inspiration-card small{font-size:10px;color:var(--ui-text-muted);display:flex;justify-content:space-between;margin-top:10px}.inspiration-detail>img{width:100%;max-height:55dvh;object-fit:contain;border-radius:9px}.inspiration-detail>p{font-size:12px;color:var(--ui-text-muted);line-height:1.8}.inspiration-detail>a{color:var(--ui-text-secondary);font-size:12px;display:inline-flex;align-items:center;gap:7px;text-decoration:none}.projects-page{max-width:1480px;padding:0 40px 70px;margin:auto}.projects-page>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:3px 0 28px}.projects-page>header>div{display:flex;align-items:center;gap:13px;min-width:0}.projects-page>header button{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ui-text);white-space:nowrap}.projects-page>header i{height:14px;width:1px;background:var(--ui-hover)}.projects-page h1{font-size:15px;font-weight:500;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.library-search{display:flex;align-items:center;gap:8px;height:34px;width:200px;border:1px solid var(--ui-border);border-radius:7px;color:var(--ui-text-muted);background:var(--ui-input);padding:0 10px}.library-search input{width:100%;background:transparent;border:0;outline:none;font-size:12px}.subtle-button{padding:8px 13px;border:1px solid var(--ui-border);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;background:var(--ui-surface)}.projects-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:26px 16px}.create-project-card{aspect-ratio:16/9;border:1px solid var(--ui-border);background:var(--ui-surface-muted);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.create-project-card>svg{color:var(--ui-text-secondary)}.create-project-card>strong{font-size:13px;font-weight:450}.create-project-card>small{font-size:11px;color:var(--ui-text-muted)}.search-empty{font-size:13px;color:var(--ui-text-muted);text-align:center;padding:40px}.recycle-bin>p{color:var(--ui-text-muted);font-size:12px}.modal:has(.recycle-bin){width:880px}.recycle-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:25px 0}.recycle-grid>label{display:flex;align-items:center;flex-direction:column;gap:14px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:10px;padding:25px 12px;position:relative;cursor:pointer}.recycle-grid>label>input{position:absolute;left:7px;top:7px}.recycle-grid strong{font-weight:400;font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recycle-grid small{color:var(--ui-text-muted);font-size:10px}.recycle-bin>footer{border-top:1px solid var(--ui-border);padding-top:17px;display:flex;align-items:center;gap:20px;font-size:12px;color:var(--ui-text-muted)}.recycle-bin>footer>button{margin-left:auto}.recycle-bin input{accent-color:var(--ui-accent)}.folder-destinations{display:flex;flex-direction:column;gap:5px}.folder-destinations>button{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border:1px solid var(--ui-border);border-radius:7px}.folder-destinations>button>svg:last-child{margin-left:auto}.assets-page{display:flex;height:calc(100% - 64px);border-top:1px solid var(--ui-border)}.assets-page>aside{width:190px;padding:23px 14px;border-right:1px solid var(--ui-border);flex-shrink:0;display:flex;flex-direction:column;gap:8px}.assets-page>aside>button{display:flex;align-items:center;gap:10px;padding:12px 10px;border-radius:7px;font-size:12px;text-align:left;color:var(--ui-text-secondary)}.assets-page>aside>button>span{margin-left:auto;color:var(--ui-text-muted)}.assets-page>aside>button.selected{background:var(--ui-selected);color:var(--ui-text)}.assets-main{flex:1;padding:26px 30px;overflow:auto}.assets-main>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.assets-main h1{font-size:20px;font-weight:500;margin:0}.assets-filters{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:30px}.assets-filters>div{display:flex;gap:7px}.assets-filters>div>button{font-size:12px;color:var(--ui-text-muted);padding:8px 13px;border-radius:7px}.assets-filters>div>button.selected{color:var(--ui-text);background:var(--ui-selected)}.asset-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.asset-card{display:flex;flex-direction:column;text-align:left;gap:10px;background:var(--ui-surface);padding:7px;border-radius:12px;border:1px solid var(--ui-border);min-width:0}.asset-card>img,.asset-card>video,.asset-card>.audio-cover{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.asset-card>span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.asset-card>small{font-size:10px;color:var(--ui-text-muted)}.audio-cover{display:grid;place-items:center;background:var(--ui-accent-soft);color:var(--ui-accent-text)}.library-empty{min-height:320px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--ui-text-muted)}.library-empty h3{font-size:15px;font-weight:450;color:var(--ui-text-secondary);margin:20px 0 0}.library-empty p{font-size:12px;line-height:1.7;margin:12px 0 25px;text-align:center}.library-empty>button{color:var(--ui-text)}.asset-detail>img,.asset-detail>video{width:100%;max-height:65dvh;object-fit:contain;border-radius:9px}.asset-detail>audio{width:100%}.asset-detail>footer{display:flex;align-items:center;gap:20px;margin-top:18px;font-size:12px}.asset-detail>footer>span{color:var(--ui-text-muted);margin-right:auto}.asset-detail>footer>a,.asset-detail>footer>button{color:var(--ui-text);display:flex;align-items:center;gap:6px;text-decoration:none}.modal:has(.asset-detail){width:900px}.feature-progress{color:var(--ui-text-muted);font-size:12px;line-height:2}.feature-progress ul{padding-left:20px;color:var(--ui-text-secondary)}.workspace-toast{bottom:25px;z-index:110}.nav-scrim{display:none}@media(min-width:1700px){.home-content,.projects-page{padding-left:40px;padding-right:40px}.recent-card .cover-button{width:100px}.quick-actions{margin-bottom:62px}}@media(max-width:1200px){.workspace{--nav-width:210px}.home-content,.projects-page{padding-left:28px;padding-right:28px}.quick-actions{gap:5px}.quick-actions>button>span{width:78px}.quick-actions>button{font-size:11px}.recent-grid{grid-template-columns:repeat(2,1fr)}.projects-grid{grid-template-columns:repeat(3,1fr)}.assets-page>aside{width:155px}.asset-grid{grid-template-columns:repeat(3,1fr)}.projects-page>header{align-items:flex-start}.projects-page>header>div:last-child{flex-wrap:wrap;justify-content:flex-end}.projects-page .library-search{width:150px}.workspace-nav{padding-top:24px}.nav-tag{font-size:8px}.nav-brand{padding-left:7px}.inspiration-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:850px){.workspace{--nav-width:180px}.feature-grid{grid-template-columns:repeat(3,1fr);gap:18px 14px}.quick-actions{grid-template-columns:repeat(4,1fr);row-gap:23px;margin-bottom:38px}.workspace-nav nav>button{font-size:12px;gap:8px;padding:0 7px}.workspace-nav .ark-brand{gap:7px}.workspace-nav .ark-brand img{width:35px}.workspace-nav .ark-brand strong{font-size:18px}.nav-tag{display:none}.recent-card .cover-button{width:65px}.assets-page{flex-direction:column;height:auto}.assets-page>aside{border-right:0;border-bottom:1px solid var(--ui-border);width:100%;flex-direction:row;padding:0 20px}.assets-main{padding:20px}.asset-grid{grid-template-columns:repeat(2,1fr)}.assets-filters{flex-wrap:wrap}.inspiration-grid{grid-template-columns:repeat(2,1fr)}.gallery-filter{flex-wrap:wrap}.projects-page>header{flex-direction:column}.projects-page>header>div:last-child{width:100%}.projects-page .library-search{flex:1}.projects-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.workspace{--nav-width:0px}.workspace-nav{width:240px;transform:translate(-100%);transition:transform .2s}.workspace-nav.open{transform:none}.workspace-nav .ark-brand strong{font-size:21px}.workspace-nav nav>button{font-size:13px;padding:0 12px;gap:12px}.workspace-nav .nav-tag{display:block}.nav-scrim{display:block;position:fixed;inset:var(--banner-height) 0 0;background:#0009;z-index:10}.workspace-banner{font-size:12px;gap:10px;padding:0 35px 0 15px;justify-content:flex-start}.banner-kicker{display:none;border-right:1px solid var(--ui-border)}.workspace-banner>button{font-size:10px;padding:6px 8px;gap:5px}.workspace-banner>button:last-child{right:7px;color:var(--ui-text-secondary)}.workspace-account{padding:0 20px;justify-content:space-between}.mobile-nav-toggle{display:flex;gap:12px;align-items:center;padding:0}.mobile-nav-toggle .ark-brand img{width:31px;height:18px}.mobile-nav-toggle .ark-brand strong{font-size:17px}.mobile-nav-toggle .ark-brand{gap:6px}.workspace-account>div{gap:12px}.workspace-account .local-account-tag{display:none}.workspace-account>div>button:not(.profile-avatar){font-size:0;gap:0}.home-content,.projects-page{padding-left:20px;padding-right:20px}.new-project-hero{height:160px;background:radial-gradient(var(--ui-grid) 1px,transparent 1px),linear-gradient(var(--ui-surface),var(--ui-surface-raised))}.new-project-hero>strong{font-size:16px}.quick-actions{grid-template-columns:repeat(3,1fr);gap:22px 10px;margin:30px 0 36px}.quick-actions>button>span{width:86px}.quick-actions>button{font-size:12px}.quick-actions>button:nth-child(7),.quick-actions>button:nth-child(8){display:none}.home-section>header{margin-bottom:20px}.home-section h2{font-size:17px}.recent-grid{grid-template-columns:1fr}.recent-card{border-radius:17px}.recent-card .cover-button{width:93px;border-radius:12px}.first-project{grid-column:auto;padding:0 16px;gap:12px}.home-section{margin-bottom:36px}.feature-grid{grid-template-columns:repeat(2,1fr);gap:19px 12px}.feature-card>div{border-radius:10px}.feature-card strong{font-size:12px;margin-top:10px}.inspiration-section{margin-top:38px}.source-credit{font-size:9px}.gallery-filter{gap:13px}.gallery-filter>div{min-width:100%}.gallery-filter button{padding:8px 11px}.gallery-filter>label{width:100%}.inspiration-grid{gap:16px 12px}.inspiration-card strong{font-size:12px}.inspiration-card small{font-size:9px}.projects-page>header{gap:22px;margin:9px 0 24px}.projects-page>header>div:last-child{gap:8px;justify-content:flex-start}.projects-page .library-search{width:100%;flex-basis:100%}.subtle-button{font-size:11px;padding:8px 10px}.projects-grid{gap:24px 12px}.create-project-card{gap:7px}.create-project-card>small{font-size:9px}.create-project-card>strong{font-size:12px}.card-copy{padding-top:9px}.card-title{font-size:12px}.card-copy>small{font-size:9px}.projects-grid .card-more{bottom:8px}.recycle-grid{grid-template-columns:repeat(2,1fr)}.recycle-bin>footer{gap:10px;font-size:11px}.assets-main>header{margin-bottom:23px}.assets-main h1{font-size:17px}.assets-filters>.library-search{width:100%}.asset-detail>footer{flex-wrap:wrap;gap:12px}.workspace-toast{bottom:15px}.nav-promo .ark-brand strong{font-size:17px}}.workspace-main{scrollbar-width:none}.workspace-main::-webkit-scrollbar{display:none}.nav-brand{margin-bottom:15px}.workspace-nav nav{gap:2px}.workspace-nav nav>button{height:32px}.quick-actions{margin-bottom:44px}.home-section>header{margin-bottom:19px}.home-section{margin-bottom:36px}.home-section h2{font-size:16px;font-weight:500}.new-project-hero{background:radial-gradient(var(--ui-grid) 1px,transparent 1px),linear-gradient(var(--ui-surface),var(--ui-surface-raised));background-size:auto,18px 18px,auto}.quick-actions img{width:30px;height:30px}.quick-actions>button>span{border-color:var(--ui-border);box-shadow:inset 0 1px 2px #ffffff08}.recent-card{background:var(--ui-surface-muted)}.recent-card .card-copy>small{font-size:11px}.inspiration-section{margin-top:52px}@media(max-width:650px){.quick-actions{margin-bottom:36px}.home-section h2{font-size:17px}.home-section>header{margin-bottom:20px}.inspiration-section{margin-top:38px}}@media(min-width:701px){.home-section>header{margin-bottom:12px}}.quick-actions>.quick-mobile-more{display:none}@media(max-width:700px){.workspace.has-banner{--banner-height:0px}.workspace-banner{display:none}.quick-actions>button>span{width:98px}.quick-actions>button:nth-child(6){display:none}.quick-actions>.quick-mobile-more{display:flex}.quick-more-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.quick-more-list>button{display:flex;align-items:center;gap:10px;padding:14px;background:var(--ui-hover);border:1px solid var(--ui-border);border-radius:10px}.quick-more-list img{width:24px;height:24px;object-fit:contain}}.new-project-hero{background:radial-gradient(var(--ui-grid) 1px,transparent 1px),linear-gradient(var(--ui-surface),var(--ui-surface-raised));background-size:18px 18px,auto}.workspace-customer{display:flex;align-items:center;gap:6px;color:var(--ui-text-muted);max-width:170px}.workspace-customer :is(select,.ark-select){background:transparent;color:var(--ui-text-secondary);border:0;outline-offset:3px;font-family:inherit;font-size:12px;max-width:145px;padding:5px 0;cursor:pointer;color-scheme:var(--ui-color-scheme)}.workspace-customer :is(select,.ark-select) option{background:var(--ui-surface);color:var(--ui-text)}.workspace-loading,.workspace-login{height:100dvh;background:var(--ui-bg);color:var(--ui-text);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;font-size:13px}.workspace-loading img,.workspace-login img{width:50px;filter:var(--ui-logo-filter)}.workspace-loading h1,.workspace-login h1{font-size:20px;margin:0}.workspace-login form{width:min(340px,90vw)}.workspace-switch-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:color-mix(in srgb,var(--ui-bg) 79%,transparent);z-index:200;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--ui-text);font-size:13px}@media(max-width:650px){.workspace-account>div{gap:9px}.workspace-customer{max-width:100px}.workspace-customer>svg{display:none}.workspace-customer :is(select,.ark-select){max-width:100px;font-size:11px}.workspace-account .profile-avatar{display:none}}.project-sort,.project-batch-tools{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ui-text-secondary);min-height:34px;white-space:nowrap}.project-sort :is(select,.ark-select){border:0;background:transparent;color:inherit;font:inherit;max-width:95px;color-scheme:var(--ui-color-scheme);cursor:pointer}.project-sort option{background:var(--ui-surface)}.project-batch-tools{padding:0 9px;border:1px solid var(--ui-border);border-radius:7px}.project-batch-tools label{display:flex;align-items:center;gap:6px}.project-batch-tools button{padding:5px}.project-selection{position:absolute;top:10px;left:10px;width:17px;height:17px;accent-color:var(--ui-accent);cursor:pointer}.library-card.is-picked>.cover-button{outline:2px solid var(--ui-accent);outline-offset:2px}.library-card.drop-target>.cover-button{outline:2px dashed var(--ui-accent);outline-offset:3px}.library-card-menu{z-index:20}.library-card-menu button:disabled{opacity:.35;cursor:not-allowed}@media(max-width:650px){.project-sort{margin-right:auto}.project-batch-tools{flex:1}.project-batch-tools label{margin-right:auto}}.create-project-card{min-width:0;width:100%;align-self:start}@media(forced-colors:none){.workspace button:focus-visible:not(.ark-select,[role=combobox],dialog *,[role=dialog] *,[role=alertdialog] *){outline:none}}.studio-node{background:var(--ui-surface);border-color:var(--ui-border);box-shadow:none!important;border-radius:12px}.studio-node.text,.studio-node.script{background:var(--ui-surface-muted)}.studio-node.is-selected,.studio-node.is-editing{border-color:var(--ui-accent)}.studio-node .node-heading{height:23px;top:auto;bottom:calc(100% + 5px);gap:4px;color:var(--ui-text-muted);font-size:12px;display:flex;align-items:center;position:absolute}.node-heading .node-name{padding:0;margin:0;min-width:0;max-width:calc(100% - 20px);flex:1;background:transparent;border:0;text-align:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:12px;font-weight:400;color:inherit;height:23px;line-height:23px;border-radius:2px}.node-heading .node-name:hover{color:var(--ui-text);background:transparent}.text-download{display:flex;border:1px solid var(--ui-border);border-radius:5px;padding:4px;margin-left:auto;background:var(--ui-surface)}.fixture-tag{font-size:9px;color:var(--ui-warning);margin-left:auto;white-space:nowrap}.node-preview>.source-icon{opacity:.3}.node-preview>svg{color:var(--ui-text-muted)}.node-preview audio{width:90%;height:35px}.studio-node .port.react-flow__handle{width:20px;height:20px;min-width:20px;min-height:20px;border:1px solid var(--ui-border-strong);color:var(--ui-text-secondary);background:var(--ui-surface);opacity:0;transition:opacity .12s}.studio-node.is-selected .port,.studio-node:hover .port,.react-flow__node:focus .port,.react-flow__node:focus-within .port{opacity:1}.react-flow__handle.connectionindicator{opacity:1}.port.react-flow__handle-left{left:-15px}.port.react-flow__handle-right{right:-15px}.rich-node-text{height:100%;width:100%;padding:14px 16px;white-space:pre-wrap;word-break:break-word;overflow:auto;font-size:14px;line-height:20px;font-weight:400;color:var(--ui-text);border-radius:12px;outline:none!important;cursor:inherit;scrollbar-width:thin;scrollbar-color:var(--ui-border-strong) transparent}.rich-node-text.editing{cursor:text}.rich-node-text:empty:before{content:attr(data-placeholder);color:var(--ui-text-muted);pointer-events:none}.rich-node-text h1{font-size:25px;line-height:1.4;margin:0 0 10px;font-weight:600}.rich-node-text h2{font-size:21px;line-height:1.4;margin:0 0 8px;font-weight:600}.rich-node-text h3{font-size:17px;line-height:1.5;margin:0 0 6px;font-weight:600}.rich-node-text p{margin:0 0 10px}.rich-node-text ul,.rich-node-text ol{padding-left:22px;margin:6px 0}.rich-node-text hr{border:0;border-bottom:1px solid var(--ui-border-strong);margin:12px 0}.text-format-bar{position:absolute;z-index:12;height:50px;padding:8px 11px;border:1px solid var(--ui-border);background:var(--ui-surface);box-shadow:0 8px 25px #0003;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:3px}.text-format-bar>button{font-size:12px;color:var(--ui-text-secondary);padding:5px;min-width:24px;height:28px;border-radius:4px}.text-format-bar .icon-button{width:27px;min-width:25px;height:28px}.text-format-bar>i{height:15px;width:1px;background:var(--ui-surface-raised);margin:0 2px}.text-format-bar input[type=color]{width:21px;height:21px;border:none;padding:0;background:none;cursor:pointer;border-radius:50%}.text-format-bar>label{width:24px;display:flex;align-items:center}.text-format-bar input::-webkit-color-swatch{border-radius:50%;border:1px solid var(--ui-border-strong)}.text-format-bar.in-expanded{position:relative;width:100%;left:auto;top:auto;box-shadow:none;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;padding:6px 0;justify-content:flex-start;gap:10px;margin-bottom:15px}.modal:has(.expanded-text-editor){width:1000px}.expanded-text-editor>.rich-node-text{min-height:400px;max-height:65dvh;padding:15px 10px;font-size:16px;line-height:1.9}.react-flow__resize-control.handle{border:0!important;border-radius:2px!important;opacity:.6}.react-flow__resize-control.handle:not(.bottom.right){opacity:0}.react-flow__resize-control.handle.bottom.right{width:8px!important;height:8px!important;background:repeating-linear-gradient(135deg,transparent 0px,transparent 2px,var(--ui-surface-raised) 3px,var(--ui-surface-raised) 4px)!important;transform:translate(-7px,-7px)!important}.topbar{top:8px;left:8px;right:8px;gap:8px;height:32px}.project-group{gap:8px;height:32px;padding:0 6px 0 0;border-radius:7px;background:var(--ui-surface);border:1px solid var(--ui-border)}.brand-button{gap:5px!important;padding:0 8px!important;height:30px}.brand-button .source-icon{width:28px;height:19px;filter:var(--ui-icon-filter,brightness(0) invert(1))}.project-name{font-size:12px;width:99px;padding:0 2px;text-overflow:ellipsis}.project-group .separator{height:15px}.canvas-name{font-size:11px;gap:5px;max-width:100px;padding:0 1px;display:flex;height:30px;align-items:center}.view-switch{display:flex;gap:1px;padding:3px;height:32px;border-radius:7px;background:var(--ui-surface);border:1px solid var(--ui-border)}.view-switch .icon-button{height:25px;width:27px;border-radius:4px;color:var(--ui-text-muted)}.view-switch .icon-button.active{background:var(--ui-selected);color:var(--ui-text)}.topbar-right{gap:7px}.canvas-profile{height:30px;width:30px;background:var(--ui-accent-soft);color:var(--ui-accent-text);border-radius:50%;font-size:12px;font-weight:600;display:grid;place-items:center}.save-status{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:7px;font-size:10px;height:30px}.save-status.saved>svg{color:var(--ui-success)}.bottom-dock{height:50px;bottom:12px;padding:7px;gap:6px;border-radius:13px;background:var(--ui-surface);border:1px solid var(--ui-border);box-shadow:0 3px 12px #0002}.bottom-dock>.icon-button{height:33px;width:32px;border-radius:7px}.bottom-dock .add-button{width:33px;height:33px;border-radius:8px;background:var(--ui-button);color:var(--ui-on-accent);margin-right:0}.bottom-dock .dock-separator{margin:0;width:1px;height:20px;background:var(--ui-border)}.director-trigger{position:absolute;z-index:7;bottom:12px;left:calc(50% + 163px);width:49px;height:50px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:50%;display:grid;place-items:center}.director-trigger>span{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;color:#bbf5ff;background:radial-gradient(circle at 40% 30%,#7cdce8,#2babc5 30%,#486eaa 65%,#2b9fbd 90%);box-shadow:0 0 9px #61c4ef50,inset 0 0 5px #afe8e5}.canvas-controls{left:18px;bottom:17px;gap:7px;background:none}.canvas-controls>.icon-button{width:24px;height:28px}.assets-button{font-size:12px;padding:7px 8px;gap:6px}.zoom-button{font-size:12px;padding:5px 3px}.canvas-hint{display:none}.zoom-menu{bottom:62px;left:197px}.pointer-menu{position:absolute;z-index:15;bottom:73px;left:calc(50% - 107px);padding:7px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:9px;min-width:190px;box-shadow:0 5px 20px #0005}.pointer-menu>button{width:100%;display:flex;align-items:center;gap:10px;padding:10px;border-radius:5px;font-size:12px}.pointer-menu kbd{margin-left:auto;font-size:11px;color:var(--ui-text-muted)}.add-menu{width:238px;border-radius:12px;background:var(--ui-surface);border:1px solid var(--ui-border);padding:8px;box-shadow:0 7px 24px #0006}.add-menu header{padding:8px 8px 10px;font-size:12px;color:var(--ui-text-secondary)}.add-menu>button{padding:10px 9px;border-radius:6px;font-size:12px;gap:12px}.add-menu>button>span{font-size:10px}.node-context-menu{position:absolute;z-index:20;background:var(--ui-surface);border:1px solid var(--ui-border);box-shadow:0 10px 24px #0006;padding:6px;border-radius:9px;width:215px}.node-context-menu>button{display:flex;align-items:center;gap:11px;padding:11px;width:100%;text-align:left;font-size:12px;border-radius:5px}.node-context-menu>button:last-child{color:var(--ui-danger)}.canvas-switcher{position:absolute;z-index:20;top:47px;left:140px;width:233px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:11px;box-shadow:0 10px 25px #0006;padding:8px}.canvas-switcher>header{display:flex;align-items:center;justify-content:space-between;color:var(--ui-text-secondary);padding:1px 6px 8px;font-size:12px}.canvas-switcher>header .icon-button{height:25px;width:25px}.canvas-switch-row{position:relative;display:flex;align-items:center;border-radius:6px}.canvas-switch-row.selected{background:var(--ui-selected)}.canvas-switch-row>button:first-child{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:10px 8px;font-size:12px;border-radius:5px}.canvas-switch-row>button:first-child>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.canvas-switch-row>.icon-button{width:27px;height:28px;color:var(--ui-text-muted)}.canvas-switch-row input{width:100%;background:var(--ui-input);border:1px solid var(--ui-border-strong);border-radius:3px;font-size:12px;padding:2px}.canvas-row-actions{position:absolute;left:100%;top:0;width:165px;border:1px solid var(--ui-border);background:var(--ui-surface);box-shadow:0 8px 20px #0005;padding:6px;border-radius:8px;z-index:5}.canvas-row-actions>button{display:flex;align-items:center;gap:8px;font-size:12px;padding:9px;border-radius:5px;width:100%}.v2-inspector{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:15px;padding:11px 13px 9px;box-shadow:0 8px 24px #0002}.v2-inspector .inspector-top{gap:4px;height:25px}.v2-inspector .pill{border:0;background:var(--ui-surface-raised);color:var(--ui-text-muted);font-size:11px;padding:4px 7px;gap:2px;height:25px}.inspector-top-spacer{flex:1}.v2-inspector .inspector-top>.icon-button{width:23px;height:24px;color:var(--ui-text-muted)}.v2-inspector .reference-strip{margin:8px 0 0;padding:0;gap:8px}.v2-inspector .prompt-input{height:95px;padding:14px 3px 8px;font-size:13px;line-height:1.65;color:var(--ui-text);resize:none;margin:0}.v2-inspector .prompt-input::placeholder{color:var(--ui-text-muted)}.v2-inspector .inspector-bottom{height:35px;gap:8px;flex-wrap:nowrap}.v2-inspector .model-settings{font-size:12px;max-width:220px}.v2-inspector .model-settings>.source-icon{filter:var(--ui-icon-filter,brightness(0) invert(1));width:17px;height:12px}.v2-inspector .parameter-trigger{font-size:11px;white-space:nowrap;gap:5px;padding:7px 2px;color:var(--ui-text-secondary);max-width:none}.v2-inspector .inspector-bottom>.icon-button{margin-left:auto;width:25px;height:27px}.v2-inspector .generate-button{width:33px;height:33px;border-radius:10px;margin-left:2px}.v2-inspector .parameter-popover{width:320px;bottom:calc(100% + 8px);left:210px;border-radius:12px;background:var(--ui-surface);border-color:var(--ui-border);padding:15px}.parameter-popover .choice-group>div{display:flex;flex-wrap:wrap;gap:6px}.parameter-popover .choice-group button{min-width:50px;padding:8px 9px;font-size:11px;border-radius:6px;border:1px solid var(--ui-border);background:var(--ui-surface-raised)}.parameter-popover .choice-group button.chosen{border-color:var(--ui-accent);color:var(--ui-text);background:var(--ui-selected)}.parameter-popover .choice-group legend{font-size:11px}.inspector.v2-inspector.expanded-inspector{position:fixed;left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(900px,calc(100vw - 30px));z-index:35;border-color:var(--ui-border-strong);box-shadow:0 0 0 100vmax #0008}.expanded-inspector .prompt-input{height:45dvh}.model-popover{position:absolute;bottom:calc(100% + 8px);left:0;background:var(--ui-surface);border:1px solid var(--ui-border);width:290px;padding:12px;border-radius:10px;box-shadow:0 5px 20px #0005}.model-popover>span{font-size:11px;color:var(--ui-text-muted);display:block;margin-bottom:10px}.model-popover>button{display:flex;gap:9px;align-items:center;font-size:12px;padding:10px 4px;width:100%;border-radius:5px}.model-popover>small{display:block;color:var(--ui-text-muted);font-size:10px;padding:6px 4px 12px;border-bottom:1px solid var(--ui-border);overflow-wrap:anywhere}.preset-picker{position:absolute;bottom:calc(100% + 8px);left:12px;width:340px;max-width:calc(100vw - 30px);border:1px solid var(--ui-border);background:var(--ui-surface);box-shadow:0 8px 22px #0005;padding:13px;border-radius:10px}.preset-picker>span{font-size:11px;color:var(--ui-text-muted)}.preset-picker>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.preset-picker button{font-size:11px;padding:8px;background:var(--ui-surface-raised);border-radius:5px}.preset-picker>div>span{font-size:11px;color:var(--ui-text-secondary)}.reference-mode .topbar,.reference-mode .bottom-dock,.reference-mode .director-trigger{visibility:hidden}.reference-select-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:color-mix(in srgb,var(--ui-input) .8%,transparent);border:1px solid transparent;border-radius:11px;z-index:5;display:flex;align-items:flex-start;justify-content:flex-end;padding:10px;color:var(--ui-text)}.reference-select-overlay>svg{border-radius:50%;border:1px solid var(--ui-border-strong);padding:2px;background:var(--ui-input);width:24px;height:24px}.reference-select-overlay.selected{border:2px solid var(--ui-accent);background:color-mix(in srgb,var(--ui-accent) 3.9%,transparent)}.reference-select-overlay.selected>svg{background:var(--ui-button);color:var(--ui-on-accent)}.reference-mode-bar{position:absolute;top:16px;left:50%;transform:translate(-50%);background:var(--ui-surface);box-shadow:0 8px 28px #0005;border:1px solid var(--ui-border);border-radius:10px;padding:11px 15px;display:flex;align-items:center;gap:14px;z-index:25;font-size:12px;white-space:nowrap}.reference-mode-bar>span{color:var(--ui-text-secondary)}.reference-mode-bar>button{display:flex;align-items:center;gap:5px;background:var(--ui-surface-raised);padding:7px 9px;border-radius:5px}.storyboard{position:absolute;top:48px;right:8px;bottom:0;left:8px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;z-index:5;background:var(--ui-canvas)}.storyboard-column{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px 14px 0 0;overflow:auto;padding:10px 16px;scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent}.storyboard-column>header{height:33px;display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:10px}.storyboard-column>header .icon-button{width:25px;height:25px;color:var(--ui-text-muted)}.storyboard-column article{padding:6px 0 20px;border-bottom:1px solid var(--ui-border);margin-bottom:16px;max-width:100%}.storyboard-column article>header{display:flex;align-items:center;gap:3px;font-size:11px;color:var(--ui-text-muted);margin-bottom:12px}.storyboard-column article>header>button:not(.icon-button){padding:0;text-align:left;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.storyboard-column article>header>.icon-button{margin-left:auto;width:25px;height:20px}.storyboard-column textarea{display:block;width:100%;min-height:180px;resize:vertical;border:0;background:transparent;outline:none;padding:0 9px;color:var(--ui-text-secondary);font-size:13px;line-height:1.8}.storyboard-preview{display:flex;align-items:center;justify-content:center;gap:12px;flex-direction:column;max-width:100%;width:283px;aspect-ratio:16/9;background:var(--ui-surface-muted);border:1px solid var(--ui-border);border-radius:12px;overflow:hidden;padding:0;color:var(--ui-text-muted)}.storyboard-preview>span{font-size:10px}.storyboard-preview>img:not(.source-icon),.storyboard-preview>video{width:100%;height:100%;object-fit:cover}.storyboard-preview>.source-icon{opacity:.4}.storyboard-column article>footer{padding:11px 0}.storyboard-column article>footer>button{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--ui-text-muted)}.storyboard-column article>p{font-size:11px;line-height:1.8;color:var(--ui-text-muted);max-width:283px;white-space:pre-wrap}.story-references{display:flex;gap:7px}.story-references>button{width:36px;height:40px;border-radius:6px;background:var(--ui-surface-muted);display:grid;place-items:center;opacity:.7}.story-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px dashed var(--ui-border);border-radius:10px;padding:40px;color:var(--ui-text-muted);width:100%;font-size:12px}.storyboard-mode .bottom-dock,.storyboard-mode .canvas-controls,.storyboard-mode .director-trigger,.storyboard-mode .zoom-menu,.storyboard-mode .empty-canvas{display:none}.director-panel{position:absolute;right:8px;top:max(56px,calc(100dvh - 655px));bottom:12px;width:390px;max-width:calc(100vw - 16px);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px;box-shadow:0 8px 25px #0007;z-index:22;display:flex;flex-direction:column;padding:14px}.director-panel>header{display:flex;align-items:center;gap:9px;height:29px}.director-panel>header>strong{font-size:13px;font-weight:500}.director-panel>header>.icon-button{margin-left:auto;width:25px;height:25px}.director-orb{background:linear-gradient(130deg,#348f9d,#556295);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:#b7e8ea}.director-messages{flex:1;overflow:auto;scrollbar-width:thin;padding:20px 4px;min-height:0}.director-welcome{padding:22px 4px}.director-welcome h2{font-size:20px;font-weight:500;line-height:1.5;margin:0 0 12px}.director-welcome>p{font-size:12px;color:var(--ui-text-muted);line-height:1.8;margin-bottom:30px}.director-welcome>div{display:flex;flex-direction:column;gap:10px}.director-welcome button{display:flex;justify-content:space-between;align-items:center;font-size:12px;text-align:left;padding:12px;border:1px solid var(--ui-border);border-radius:8px;color:var(--ui-text-secondary);background:var(--ui-surface)}.director-panel form{border:1px solid var(--ui-border);border-radius:12px;padding:10px;background:var(--ui-surface)}.director-panel textarea{width:100%;height:75px;resize:none;background:transparent;border:0;outline:none;font-size:12px;line-height:1.7;padding:0}.director-panel form>footer{display:flex;align-items:center;justify-content:space-between}.director-panel form>footer>button{display:flex;align-items:center;gap:6px;color:var(--ui-text-secondary);font-size:11px;padding:4px}.director-panel form>footer>button[type=submit]{width:28px;height:28px;justify-content:center;border-radius:50%;background:var(--ui-button);color:var(--ui-on-accent)}.user-message{padding:12px;background:var(--ui-surface-raised);border-radius:10px;font-size:12px;line-height:1.7}.assistant-message{font-size:12px;line-height:1.8;white-space:pre-wrap;color:var(--ui-text-secondary);padding:10px 2px}.modal:has(.canvas-assets){width:850px}.canvas-assets>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px}.canvas-assets>header>div{display:flex;gap:5px}.canvas-assets>header>div>button{padding:7px 12px;font-size:12px;border-radius:6px;color:var(--ui-text-muted)}.canvas-assets>header>div>button.selected{background:var(--ui-selected);color:var(--ui-text)}.canvas-assets-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0;max-height:50dvh;overflow:auto}.canvas-assets-grid>button{padding:6px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:10px;display:flex;flex-direction:column;gap:10px;min-width:0;text-align:left}.canvas-assets-grid>button>img,.canvas-assets-grid>button>video,.canvas-assets-grid>button>.audio-cover{aspect-ratio:1;width:100%;object-fit:cover;border-radius:7px}.canvas-assets-grid>button>span{font-size:11px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.canvas-assets-grid small{font-size:9px;color:var(--ui-warning)}.character-setup img{width:100%;max-height:250px;object-fit:cover;border-radius:10px}.character-setup p{font-size:12px;color:var(--ui-text-muted);line-height:1.8}.sidebar{top:48px;bottom:64px;left:8px;width:280px;background:var(--ui-surface);border-color:var(--ui-border);border-radius:12px}.sidebar header{padding:15px 12px}.sidebar-tabs{padding:0 10px}.sidebar-search{margin:12px}.sidebar-list{padding:0 9px}.node-row{padding:13px 10px;font-size:12px}.empty-canvas{pointer-events:auto}.empty-canvas>.source-icon{filter:var(--ui-icon-filter,brightness(0) invert(1))}.new-project-hero>span{background:var(--ui-button);color:var(--ui-on-accent);border-color:var(--ui-button);box-shadow:0 3px 14px color-mix(in srgb,var(--ui-surface) 8.2%,transparent)}@media(max-width:1100px){.canvas-controls{bottom:74px;left:12px}.zoom-menu{bottom:115px}.canvas-name{display:flex}.topbar-right>.icon-button:not(.provider-settings-button){display:none}}@media(max-width:700px){.topbar{gap:5px;left:7px;right:7px}.project-group{max-width:calc(100% - 123px);gap:5px;flex:1}.project-name{width:60px;flex:1;min-width:20px;font-size:11px}.brand-button{padding:0 5px!important;gap:3px!important}.brand-button .source-icon{width:24px}.canvas-name{font-size:10px;max-width:62px}.project-group>.separator{display:block}.view-switch{display:none}.topbar-right{gap:4px}.canvas-profile{display:none}.save-status{height:28px;width:23px;background:none;border:0}.topbar-right>.provider-settings-button{height:29px;width:29px}.canvas-switcher{left:80px;width:210px}.canvas-row-actions{left:auto;right:0;top:100%;z-index:4}.bottom-dock{left:calc(50% - 22px);bottom:12px;gap:3px;height:49px;max-width:calc(100% - 70px);padding:6px}.bottom-dock>.icon-button{width:29px;height:33px}.director-trigger{left:auto;right:9px;width:43px;height:45px;bottom:14px}.canvas-controls{bottom:74px;left:8px;gap:3px}.canvas-controls .icon-button{width:23px}.assets-button{font-size:11px;padding:6px}.pointer-menu{left:55px;bottom:70px}.text-format-bar{height:auto;min-height:47px;flex-wrap:wrap;justify-content:flex-start;gap:2px;padding:7px 9px}.text-format-bar>button{font-size:11px}.text-format-bar>i{margin:0}.v2-inspector.mobile-inspector{bottom:118px;left:8px;right:8px;width:auto;padding:9px 10px}.v2-inspector .prompt-input{height:80px;font-size:12px}.v2-inspector .inspector-bottom{gap:4px;height:auto;min-height:33px;flex-wrap:wrap}.v2-inspector .model-settings{font-size:10px;max-width:160px;padding:5px 1px}.v2-inspector .parameter-trigger{font-size:10px;max-width:180px;padding:5px 0}.v2-inspector .inspector-bottom>.icon-button{width:23px}.v2-inspector .generate-button{width:29px;height:29px;flex-shrink:0;margin-left:auto}.v2-inspector .parameter-popover{position:fixed;bottom:118px;left:9px;right:9px;width:auto;max-height:calc(100dvh - 200px)}.model-popover{max-width:calc(100vw - 30px)}.reference-mode-bar{top:10px;width:calc(100% - 20px);white-space:normal;flex-wrap:wrap;gap:7px;padding:10px;font-size:11px}.reference-mode-bar>span{flex:1}.reference-mode-bar>button{font-size:10px}.reference-mode-bar>button:first-of-type{margin-left:auto}.storyboard{grid-template-columns:repeat(3,minmax(280px,1fr));overflow-x:auto;gap:8px;top:48px;right:6px;bottom:0;left:6px}.storyboard-column{padding:10px}.storyboard-column.text{max-height:100%}.storyboard-preview{width:100%}.director-panel{width:calc(100% - 16px);top:58px;bottom:12px}.canvas-assets-grid{grid-template-columns:repeat(2,1fr)}.canvas-assets>header>div{gap:0}.canvas-assets>header>div>button{padding:7px 9px;font-size:11px}.expanded-text-editor>.rich-node-text{min-height:330px;font-size:14px}.text-format-bar.in-expanded{gap:3px;height:auto;min-height:45px}.sidebar{width:calc(100% - 16px);max-width:320px;bottom:119px}.empty-canvas{max-width:calc(100% - 30px)}.empty-canvas h1{font-size:17px}}.group-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:2;overflow:hidden}.node-group-frame{position:absolute;border:1px dashed var(--ui-border-strong);border-radius:12px;background:color-mix(in srgb,var(--ui-accent) 3.1%,transparent);pointer-events:none;min-height:40px}.node-group-frame>header{pointer-events:auto;display:flex;align-items:center;gap:7px;position:absolute;left:9px;top:8px;right:9px;height:24px;cursor:grab;color:var(--ui-text-muted);font-size:11px}.node-group-frame input{background:transparent;border:0;color:var(--ui-text-secondary);font-size:11px;min-width:0;width:130px;max-width:60%;outline:none}.node-group-frame header>button{display:flex;padding:4px;border-radius:4px;color:var(--ui-text-muted)}.node-group-frame header>span{margin-left:auto}.node-group-frame header:active{cursor:grabbing}.topbar,.bottom-dock,.canvas-controls{z-index:8}.director-trigger>span>img{width:21px;height:13px;filter:brightness(0) invert(1);object-fit:contain}.studio{-webkit-font-smoothing:antialiased;font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}.studio-node.text,.studio-node.script{border-color:var(--ui-border-strong)}.studio-node.text.is-selected,.studio-node.script.is-selected{border-color:var(--ui-accent)}.studio-node.image,.studio-node.video,.studio-node.audio{background:var(--ui-surface);border-color:var(--ui-border)}.selection-actions{position:absolute;z-index:7;top:58px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid var(--ui-border);border-radius:10px;background:color-mix(in srgb,var(--ui-surface) 96.1%,transparent);box-shadow:0 5px 22px #0004;font-size:12px;white-space:nowrap}.selection-actions>span{padding:0 7px;color:var(--ui-text-secondary)}.selection-actions .icon-button{width:29px;height:29px}.node-context-menu button:disabled{opacity:.35;cursor:not-allowed}@media(max-width:700px){.selection-actions{top:52px;max-width:calc(100vw - 20px);overflow-x:auto}.selection-actions>span{font-size:11px;padding:0 3px}.selection-actions .icon-button{width:27px;height:27px;flex-shrink:0}}.studio{user-select:none;-webkit-user-select:none}.studio input,.studio textarea,.studio [contenteditable=true],.studio [contenteditable=true] *{user-select:text;-webkit-user-select:text}.studio.pan-mode .react-flow__node,.studio.pan-mode .react-flow__node *,.studio.pan-mode .react-flow__nodesselection,.studio.pan-mode .react-flow__nodesselection *,.studio.pan-mode .group-layer,.studio.pan-mode .group-layer *{pointer-events:none!important}.studio.pan-mode .react-flow__pane{cursor:grab}.studio.pan-mode .react-flow__pane.dragging{cursor:grabbing}.studio-node .port:before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--port-hit-size,40px);height:var(--port-hit-size,40px);border-radius:50%}.studio-node .port:hover,.studio.is-connecting .port,.studio-node .port.connectingto,.studio-node .port.connectingfrom{opacity:1}.studio-node .port.valid,.studio-node .port.connectingto{background:var(--ui-accent-soft);border-color:var(--ui-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent) 14.1%,transparent)}.reference-input-summary{font-size:11px;line-height:1.5;color:var(--ui-text-muted);margin:7px 2px 0}.reference-reviews{padding:10px;border:1px solid var(--ui-warning);border-radius:8px;background:var(--ui-warning-bg)}.reference-reviews summary{cursor:pointer;color:var(--ui-warning)}.reference-review-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.reference-review-tabs [aria-pressed=true]{border-color:var(--ui-accent);color:var(--ui-accent-text)}.reference-review-current{padding-top:8px;border-top:1px solid var(--ui-border)}.reference-review-current>strong{margin-right:8px}.asset-review-image{display:block;width:auto;max-width:100%;max-height:260px;object-fit:contain}.compact-asset-review .asset-review-image{max-height:96px;margin:6px 0}.asset-review label{display:block;margin:6px 0}.generation-readiness{padding:10px;border:1px solid var(--ui-warning);border-radius:8px;background:var(--ui-warning-bg);font-size:12px;line-height:1.6;margin:8px 0}.generation-readiness:focus{outline:1px solid var(--ui-accent)}.generation-readiness ul{padding-left:18px;margin:6px 0}.generation-readiness li .pill{margin-left:6px}.generation-readiness details .pill{display:block;margin:6px 0}.generation-readiness details p{color:var(--ui-text-secondary)}.v2-inspector .inspector-bottom{position:sticky;bottom:-9px;z-index:2;background:var(--ui-surface);padding:9px 0 4px;box-shadow:0 -8px 10px var(--ui-surface)}.studio:has(>.expanded-inspector)>:is(.video-selection-toolbar,.image-selection-toolbar){z-index:34}.asset-review-preview{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;margin-top:8px}.asset-review-controls{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}.asset-review .asset-review-controls .asset-review-viewed{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;line-height:20px}.asset-review .asset-review-viewed input[type=checkbox]{display:block;width:14px;height:14px;flex:0 0 14px;margin:0;padding:0}.asset-review .asset-review-controls .asset-review-viewed>span{display:block;line-height:20px;margin:0}.asset-review .asset-review-controls .asset-review-approve{height:auto;min-height:34px;padding:7px 14px;font-size:12px}.compact-asset-review .asset-review-image{margin:0}.inspector.v2-inspector:not(.expanded-inspector){overscroll-behavior:contain;overflow-x:hidden}.inspector.v2-inspector:not(.expanded-inspector) .inspector-top{position:sticky;top:-11px;z-index:3;background:var(--ui-surface);padding:4px 0;height:33px}.inspector.v2-inspector:not(.expanded-inspector) .reference-prompt{min-height:75px;max-height:165px}.inspector.v2-inspector .inspector-bottom>.canvas-model-select{min-width:90px;max-width:100%}.selection-reference-box{position:absolute;z-index:4;border:1px dashed var(--ui-border-strong);border-radius:10px;background:color-mix(in srgb,var(--ui-text) 1.2%,transparent);pointer-events:none}.selection-reference-plus{position:absolute;z-index:9;transform:translate(-50%,-50%);width:30px;height:30px;padding:0;display:grid;place-items:center;border:1px solid var(--ui-border-strong);border-radius:50%;background:var(--ui-surface);color:var(--ui-text);cursor:crosshair;touch-action:none;box-shadow:0 2px 10px #0004}.selection-reference-plus:hover,.selection-reference-plus:focus-visible{border-color:var(--ui-accent);color:var(--ui-accent-text);background:var(--ui-accent-soft);outline:none}.selection-reference-wires{position:absolute;top:0;right:0;bottom:0;left:0;z-index:8;width:100%;height:100%;overflow:visible;pointer-events:none}.selection-reference-wires path{fill:none;stroke:var(--ui-accent);stroke-width:1.5;opacity:.85}.batch-reference-target .studio-node{border-color:var(--ui-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-accent) 22%,transparent)!important}.edge-shimmer.reference-flow{stroke:var(--ui-accent);stroke-width:2.4;stroke-dasharray:12 42;opacity:.95;animation:reference-flow 1.6s linear infinite}@keyframes reference-flow{to{stroke-dashoffset:-54}}.task-monitor-toggle{display:flex;align-items:center;gap:6px;height:30px;padding:0 9px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-surface);color:var(--ui-text-secondary);font-size:11px;white-space:nowrap}.task-monitor-toggle[aria-expanded=true]{background:var(--ui-selected);color:var(--ui-text)}.task-monitor-toggle[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}@media(max-width:700px){.task-monitor-toggle>span{display:none}.task-monitor-toggle{padding:0 7px}}@media(prefers-reduced-motion:reduce){.edge-shimmer.reference-flow{animation:none;stroke-dasharray:8 6}}.ark-select{display:inline-flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;background:var(--ui-input);border:1px solid var(--ui-border-strong);color:var(--ui-text);border-radius:7px;padding:8px 10px;font:inherit;font-size:12px;text-align:left;cursor:pointer;outline:none}.ark-select>span{overflow-wrap:anywhere;white-space:normal;min-width:0;flex:1}.ark-select>svg{flex-shrink:0;color:var(--ui-text-muted)}.ark-select:hover:not(:disabled){background:var(--ui-hover)}.ark-select:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.ark-select:disabled{opacity:.45;cursor:default}.form-field>.ark-select{width:100%;height:40px}.ark-select-menu{position:fixed;z-index:1000;overflow-y:auto;overflow-x:hidden;padding:5px;border:1px solid var(--ui-border-strong);border-radius:9px;background:var(--ui-surface);box-shadow:0 8px 28px #0008;color:var(--ui-text);font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif;font-size:12px;line-height:20px;scrollbar-width:thin;scrollbar-color:var(--ui-border-strong) transparent}.ark-select-menu>[role=option]{display:flex;gap:9px;align-items:center;min-height:33px;padding:6px 8px;border-radius:5px;cursor:pointer}.ark-select-menu>[role=option]>span{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}.ark-select-menu>[role=option]>svg{flex-shrink:0;color:var(--ui-text)}.ark-select-menu>[role=option].active{background:var(--ui-selected)}.ark-select-menu>[role=option][aria-disabled=true]{opacity:.4;cursor:default}.ark-select{max-width:100%}.ark-select-menu[data-measuring=true]{max-width:none}.ark-select-menu[data-measuring=true]>[role=option]>span{white-space:nowrap}.provider-tabs>button>small{font-size:10px;color:var(--ui-text-muted);margin-left:2px}.models-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:11px;color:var(--ui-text-muted)}.model-list{display:flex;flex-direction:column;gap:9px}.configured-model{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:9px;padding:13px 14px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.configured-model-info{display:flex;flex-direction:column;gap:6px;flex:1;min-width:100px}.configured-model-info>strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.configured-model-info>small{font-size:11px;color:var(--ui-text-muted)}.configured-model-info>span{font-size:10px}.model-ready{color:var(--ui-success)}.model-needs-config{color:var(--ui-warning)}.model-actions{display:flex;align-items:center;gap:8px}.model-actions>button{height:28px;width:28px;display:flex;align-items:center;justify-content:center;border-radius:5px;color:var(--ui-text-secondary)}.model-actions>.model-switch{width:29px;height:17px;background:var(--ui-surface);border:1px solid var(--ui-border-strong);border-radius:20px;justify-content:flex-start;padding:2px;margin-right:6px}.model-actions>.model-switch>span{display:block;width:11px;height:11px;background:var(--ui-surface);border-radius:50%;transition:transform .12s}.model-actions>.model-switch.on{background:var(--ui-button);border-color:var(--ui-button)}.model-actions>.model-switch.on>span{transform:translate(10px);background:var(--ui-button)}.model-delete-confirm{flex-basis:100%;border-top:1px solid var(--ui-danger);padding-top:12px;font-size:11px;display:flex;gap:12px;align-items:center;color:var(--ui-danger)}.model-delete-confirm>span{flex:1}.model-delete-confirm>button:first-of-type{color:var(--ui-danger)}.model-default{max-width:300px;margin-top:18px}.model-editor-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:15px}.model-editor-heading>button{display:flex;gap:6px;align-items:center;color:var(--ui-text-secondary);font-size:11px}.model-editor-heading>strong{font-weight:500}.model-editor-fields{border:0;padding:0;margin:0;min-width:0}.provider-static{display:flex;align-items:center;height:36px;font-size:12px;border:1px solid var(--ui-border);border-radius:7px;padding:8px 10px;background:var(--ui-surface);color:var(--ui-text-secondary)}.mapping-toggle{display:flex;align-items:center;gap:8px;text-align:left;padding:4px 0}.collapsed{transform:rotate(-90deg)}.mapping-toggle>svg,.mapping-field-summary>button>svg{transition:transform .12s}.mapping-toggle>span{font-size:10px}.mapping-field-summary{display:flex;gap:8px;align-items:center}.mapping-field-summary>button:first-child{display:flex;align-items:center;gap:8px;flex:1;min-width:0;text-align:left;padding:4px 0}.mapping-field-summary strong{font-size:12px;font-weight:450;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mapping-field-summary small{font-size:10px;color:var(--ui-text-muted);margin-left:auto;white-space:nowrap}.mapping-field-summary>button:last-child{padding:5px;color:var(--ui-text-muted)}.mapping-field-body{border-top:1px solid var(--ui-border);margin-top:9px;padding-top:2px}.mapping-expand-controls{display:flex;gap:14px;justify-content:flex-end;font-size:10px;color:var(--ui-text-muted)}.mapping-grid .ark-select{font-size:11px;padding:5px 8px;height:31px}.mapping-value .ark-select{flex:1}.model-editor-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.model-editor-footer>.primary{margin:0;width:auto;font-size:12px;padding:10px 16px}.model-test{margin-top:20px;border-top:1px solid var(--ui-border);padding-top:18px}.model-test>header{display:flex;align-items:center;justify-content:space-between;font-size:13px}.model-test>header>strong{font-weight:500}.model-test>p{font-size:11px;color:var(--ui-text-secondary);line-height:1.7}.model-test-result{margin-top:14px;padding:12px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;font-size:12px}.model-test-result>strong{font-weight:500;color:var(--ui-text-secondary)}.model-test-result>p{font-size:12px;line-height:1.8;white-space:pre-wrap}.model-test-result>img,.model-test-result>video{display:block;max-width:100%;max-height:250px;margin:10px auto;object-fit:contain}.model-test-result>audio{width:100%;height:40px;margin:12px 0}.model-test-result>a{display:block;color:var(--ui-accent-text);font-size:11px;margin-top:10px}.test-image-input{display:flex;align-items:center;gap:12px;margin-bottom:14px}.test-image-input>img{height:55px;width:55px;object-fit:cover;border-radius:6px}.inspector .canvas-model-select.ark-select{background:transparent;border:0;padding:6px 3px;max-width:235px;font-size:12px}.generation-settings button:disabled{opacity:.4;cursor:default}@media(max-width:700px){.provider-tabs{justify-content:space-between}.provider-tabs>button{gap:5px;padding:8px 6px}.provider-tabs>button>small{display:none}.configured-model{gap:8px;padding:12px}.model-actions{gap:3px}.model-actions>.model-switch{margin-right:2px}.configured-model-info>small{font-size:10px;overflow-wrap:anywhere}.mapping-field-summary small{max-width:100px;overflow:hidden;text-overflow:ellipsis}.mapping-title{gap:7px}.mapping-toggle{flex-wrap:wrap}.mapping-title .secondary-button{font-size:10px;padding:7px}.inspector .canvas-model-select.ark-select{max-width:155px;font-size:11px}.model-delete-confirm{flex-wrap:wrap}}.inspector-bottom>.canvas-model-select{flex:0 1 235px;width:auto;min-width:90px}.output-viewer>audio{width:100%;margin:30px 0}.model-test-result>small{display:block;color:var(--ui-text-muted);font-size:10px;margin-top:5px}.model-test-result>details{font-size:11px;color:var(--ui-text-secondary);margin-top:9px}.model-test-result>details>p{white-space:pre-wrap;line-height:1.6}.api-type-config{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:12px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px;margin:12px 0 18px}.api-type-config>.form-field{flex:1;min-width:180px;margin:0}.api-type-config>button{margin-top:22px}.api-type-config>p,.api-type-config>small{flex-basis:100%;margin:0;line-height:1.7;font-size:11px;color:var(--ui-text-muted)}.api-type-config>p{color:var(--ui-text)}.api-type-config strong{color:var(--ui-accent-text);font-weight:400}.inspector.v2-inspector .inspector-bottom{height:auto;min-height:35px;flex-wrap:wrap}.inspector.v2-inspector .canvas-model-select.ark-select{width:max-content;max-width:100%;flex-shrink:0;height:auto;font-size:12px}.inspector.v2-inspector .canvas-model-select>span{white-space:normal;overflow-wrap:anywhere}.inspector.v2-inspector .inspector-bottom>.icon-button{flex-shrink:0}.inspector.v2-inspector .parameter-trigger{max-width:100%;white-space:normal;text-align:left}.inspector.v2-inspector .generate-button{flex-shrink:0}.inspector.v2-inspector .canvas-model-select.ark-select{flex:0 1 auto}.inspector.v2-inspector{max-height:calc(100dvh - 150px);overflow-y:auto}.voice-design-fields{max-height:290px;overflow:auto}.voice-design-fields .form-field{margin:8px 0}.platform-templates{border:1px solid var(--ui-border);border-radius:9px;padding:12px 14px;margin:0 0 18px;font-size:12px}.platform-templates summary{cursor:pointer;color:var(--ui-text)}.platform-templates p{font-size:11px;line-height:1.7;color:var(--ui-text-secondary)}.platform-template{display:flex;align-items:center;gap:12px;border-top:1px solid var(--ui-border);padding-top:12px;margin-top:12px}.platform-template>div{flex:1}.platform-template strong{font-size:12px;font-weight:500}.platform-template>button{flex-shrink:0}.model-enable{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ui-text-secondary);margin:14px 0}.model-enable input{width:auto}html,body,*{scrollbar-width:none!important;-ms-overflow-style:none!important}*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}input:focus-visible,textarea:focus-visible{outline:none}input:focus,textarea:focus,.form-field input:focus,.form-field textarea:focus{border-color:var(--ui-border-strong)}:is(.library-search,.sidebar-search,.asset-search,.gallery-filter>label):focus-within{border-color:var(--ui-border-strong)}.canvas-project-menu{z-index:1000;padding:7px 4px;border:1px solid var(--ui-border);border-radius:16px;background:var(--ui-surface);box-shadow:0 12px 32px #0005;overflow:auto}.canvas-project-menu>button{display:block;width:100%;text-align:left;height:43px;padding:0 12px;border-radius:8px;font-size:14px;color:var(--ui-text)}.canvas-project-menu>button:hover:not(:disabled),.canvas-project-menu>button:focus-visible{background:var(--ui-hover);outline:none}.canvas-project-menu>[role=separator]{height:1px;margin:5px 0;background:var(--ui-surface)}.brand-button[aria-expanded=true]{background:var(--ui-surface);border-radius:7px}.brand-button[aria-expanded=true]>svg{transform:rotate(180deg)}.canvas-parameter-popover{z-index:1000;border-radius:12px;background:var(--ui-surface);border-color:var(--ui-border);padding:15px;overscroll-behavior:contain}.parameter-input{display:flex;align-items:center;gap:8px;margin:12px 0;color:var(--ui-text-secondary);font-size:11px}.parameter-input>input{margin-left:auto;width:105px;padding:7px;border:1px solid var(--ui-border-strong);border-radius:6px;background:var(--ui-input);color:var(--ui-text)}.asset-actual-details{display:inline-flex;align-items:center;font-size:10px;color:var(--ui-text-secondary);gap:4px}.asset-actual-details>[hidden]{display:none!important}.v2-inspector>.asset-actual-details{margin:5px 3px 0}.composer-duration{display:inline-flex;gap:3px;align-items:center;font-size:12px;color:var(--ui-text-secondary)}.composer-duration>input{width:40px;background:var(--ui-input);border:1px solid var(--ui-border-strong);border-radius:5px;color:inherit;padding:4px}.test-image-input{flex-wrap:wrap}.test-reference{position:relative;flex:none}.test-reference>span{position:absolute;left:3px;top:3px;background:#222c;color:#eee;padding:1px 4px;border-radius:4px;font-size:10px}.test-reference>button{position:absolute;right:2px;top:2px;border:0;border-radius:50%;background:#333e;color:#eee;display:grid;place-items:center;width:18px;height:18px;cursor:pointer}:root,[data-theme=light]{--ui-color-scheme:light;--ui-bg:#e9e9e9;--ui-sidebar:#f2f2f2;--ui-surface:#f6f6f6;--ui-surface-raised:#f9f9f9;--ui-surface-muted:#ececec;--ui-hover:#e6e6e6;--ui-selected:#dedede;--ui-text:#1c1c1c;--ui-text-secondary:#606060;--ui-text-muted:#707070;--ui-border:#d8d8d8;--ui-border-strong:#b8b8b8;--ui-input:#f6f6f6;--ui-accent:#5388ff;--ui-accent-text:#285bc6;--ui-accent-soft:#e8efff;--ui-button:#2863ec;--ui-on-accent:#fff;--ui-danger:#b9383c;--ui-danger-bg:#fff0f0;--ui-warning:#8b610f;--ui-warning-bg:#fff5dc;--ui-success:#227253;--ui-success-bg:#eaf6ef;--ui-overlay:rgba(0,0,0,.32);--ui-canvas:#e6e6e6;--ui-grid:rgb(0 0 0 / 30%);--ui-edge:#909090;--ui-minimap-mask:rgba(236,236,236,.72);--ui-shadow:0 10px 32px #00000014;--ui-logo-filter:brightness(0) saturate(100%);--ui-icon-filter:brightness(0) saturate(100%);--ui-custom-text:#f3f4f6}[data-theme=dark]{--ui-color-scheme:dark;--ui-bg:#111;--ui-sidebar:#161616;--ui-surface:#1c1c1c;--ui-surface-raised:#262626;--ui-surface-muted:#171717;--ui-hover:#333;--ui-selected:#303030;--ui-text:#f4f4f5;--ui-text-secondary:#b3b3b3;--ui-text-muted:#999;--ui-border:#333;--ui-border-strong:#555;--ui-input:#1c1c1c;--ui-accent-text:#92b3ff;--ui-accent-soft:#22304b;--ui-button:#3267e3;--ui-danger:#f3a2a2;--ui-danger-bg:#3e2527;--ui-warning:#dfbc7b;--ui-warning-bg:#332c20;--ui-success:#9ad0b5;--ui-success-bg:#23372e;--ui-overlay:rgba(0,0,0,.65);--ui-canvas:#000;--ui-grid:rgb(255 255 255 / 32%);--ui-edge:#858585;--ui-minimap-mask:rgba(38,38,38,.72);--ui-shadow:0 10px 32px #0005;--ui-logo-filter:brightness(0) invert(1);--ui-icon-filter:brightness(0) invert(1)}html{color-scheme:var(--ui-color-scheme);background:var(--ui-bg);color:var(--ui-text)}body{background:var(--ui-bg);color:var(--ui-text)}::selection{background:var(--ui-button);color:var(--ui-on-accent)}input,textarea,select{color-scheme:var(--ui-color-scheme);accent-color:var(--ui-button)}input::placeholder,textarea::placeholder{color:var(--ui-text-muted);opacity:1}:is(.modal,.dialog,.ark-select-menu,.account-popover,.library-card-menu,.canvas-project-menu){box-shadow:var(--ui-shadow)}.workspace-nav .nav-bottom>.theme-control{padding:0 9px;color:var(--ui-text-secondary);min-height:36px}:root .theme-control .theme-mode-button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.account-theme{position:fixed;right:24px;top:20px;z-index:10100;color:var(--ui-text-secondary)}.account-theme>.theme-control{color:var(--ui-text-secondary)}.settings-appearance{max-width:640px}.settings-appearance>.theme-control{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:12px;padding:16px;font-size:14px}.settings-appearance .theme-control-label{flex:1}.settings-appearance .theme-segments{flex-wrap:wrap}.theme-palette{display:flex;gap:10px;margin-top:24px}.theme-palette i{display:block;width:40px;height:40px;border-radius:50%;border:1px solid var(--ui-border);background:var(--ui-sidebar)}.theme-palette i:nth-child(2){background:var(--ui-surface)}.theme-palette i:nth-child(3){background:var(--ui-selected)}.theme-palette i:nth-child(4){background:var(--ui-accent)}.theme-palette i:nth-child(5){background:var(--ui-text)}.review-theme{justify-content:flex-end;margin-bottom:16px}.studio-node .rich-node-text{color:var(--node-text-ink,var(--ui-text))}.studio-node[style*=--node-text-ink] .rich-node-text:empty:before{color:var(--node-text-ink);opacity:.65}@media(max-width:700px){.account-theme{right:12px;top:12px}.settings-appearance>.theme-control{align-items:flex-start;flex-direction:column}.settings-appearance .theme-segments{flex-shrink:1}}:root .source-icon{filter:var(--ui-icon-filter)}:root .primary .source-icon{filter:brightness(0) invert(1)}.react-flow__attribution{background:var(--ui-surface);color:var(--ui-text-muted)}
