:root{--assistant-width: 360px}*{box-sizing:border-box}html,body{width:100%;min-width:100%;margin:0;padding:0}body{font-family:Segoe UI,Hiragino Kaku Gothic ProN,Meiryo,sans-serif;background:#f6f7f9;color:#222}button{font:inherit;border-radius:10px;border:1px solid rgba(43,108,176,.16);background:linear-gradient(180deg,#fff,#f3f7fb);color:#1f2937;box-shadow:0 1px 2px #0f172a0f,0 8px 18px #0f172a0a;transition:transform .12s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease,color .16s ease}button:hover{transform:translateY(-1px);box-shadow:0 2px 4px #0f172a14,0 12px 24px #0f172a14}button:active{transform:translateY(0);box-shadow:0 1px 2px #0f172a14}button:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}button.secondary{border-color:#94a3b852;background:linear-gradient(180deg,#fff,#f8fafc);color:#334155}button.secondary:hover{background:linear-gradient(180deg,#fff,#eef4fb);border-color:#3b82f652;color:#1d4ed8}h1{font-size:1.4em;margin:0}h2{font-size:1.1em;margin:12px 0 6px}.app-shell{min-height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr);background:#f6f7f9}.app-shell.sidebar-collapsed{grid-template-columns:56px minmax(0,1fr)}.app-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;border-right:1px solid #d8dde2;background:#fff;overflow:hidden}.sidebar-brand{min-height:58px;display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #edf0f2}.sidebar-logo{flex:0 0 30px;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#111827;color:#fff;font-weight:700;font-size:.85em}.sidebar-title{min-width:0;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-toggle{margin-left:auto;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8dde2;border-radius:6px;background:#fff;color:#344054;cursor:pointer}.sidebar-nav{display:grid;gap:4px;padding:12px 10px}.sidebar-link{width:100%;min-height:40px;display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#344054;text-align:left;cursor:pointer;font:inherit}.sidebar-link:hover{background:#f3f6f9}.sidebar-link.is-active{border-color:#2b6cb0;background:#ebf2fa;color:#1a365d}.sidebar-icon{flex:0 0 22px;width:22px;display:inline-flex;justify-content:center;font-weight:700;font-size:.86em}.sidebar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-shell.sidebar-collapsed .sidebar-title,.app-shell.sidebar-collapsed .sidebar-label{display:none}.app-shell.sidebar-collapsed .sidebar-brand{padding:12px 10px;justify-content:center}.app-shell.sidebar-collapsed .sidebar-toggle{position:absolute;left:14px;bottom:14px;margin-left:0}.app-shell.sidebar-collapsed .sidebar-nav{padding:12px 8px 56px}.app-shell.sidebar-collapsed .sidebar-link{justify-content:center;padding:8px}.app-main{min-width:0;padding:16px;position:relative}.app-workspace{position:relative;min-width:0}.app-workspace.assistant-collapsed{min-width:0}.workspace-main{min-width:0;padding-right:calc(var(--assistant-width) + 16px)}.assistant-sidebar{position:fixed;top:16px;right:16px;width:var(--assistant-width);min-width:0;z-index:25}.assistant-resize-handle{position:fixed;top:16px;right:calc(var(--assistant-width) + 12px);width:10px;height:calc(100vh - 32px);cursor:col-resize;z-index:30;background:transparent;transition:background .2s}.assistant-resize-handle:hover,.assistant-resize-handle.is-dragging{background:#2b6cb04d}.app-workspace.assistant-collapsed .assistant-resize-handle{display:none}.assistant-rail{height:calc(100vh - 32px);min-height:calc(100vh - 32px);max-height:calc(100vh - 32px);display:flex;flex-direction:column;border:1px solid #d8dde2;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 18px 40px #0f172a14}.assistant-rail-header{min-height:58px;display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #edf0f2}.assistant-rail-title{min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assistant-rail-toggle{margin-left:auto;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8dde2;border-radius:6px;background:#fff;color:#344054;cursor:pointer}.assistant-rail-body{min-height:0;flex:1 1 auto;display:flex;flex-direction:column}.app-workspace.assistant-collapsed .assistant-sidebar{width:56px}.app-workspace.assistant-collapsed .workspace-main{padding-right:72px}.app-workspace.assistant-collapsed .assistant-rail{height:calc(100vh - 32px);min-height:calc(100vh - 32px);max-height:calc(100vh - 32px)}.app-workspace.assistant-collapsed .assistant-rail-title,.app-workspace.assistant-collapsed .assistant-rail-body{display:none}.app-workspace.assistant-collapsed .assistant-rail-header{justify-content:center;padding:12px 10px;border-bottom:none}.app-workspace.assistant-collapsed .assistant-rail-toggle{margin-left:0}.project-title-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:6px 0 4px;background:#f6f7f9f2;backdrop-filter:blur(10px);position:sticky;top:0;z-index:22;padding-right:calc(var(--assistant-width) + 16px)}.project-title-bar.assistant-collapsed{padding-right:72px}.project-name-input{font-size:1.05em;font-weight:600;color:#1a202c;border:none;border-bottom:2px solid transparent;background:transparent;padding:2px 6px;min-width:180px;max-width:340px;outline:none;transition:border-color .15s}.project-name-input:hover{border-bottom-color:#d8dde2}.project-name-input:focus{border-bottom-color:#2b6cb0}.cloud-save-status{font-size:.78em;color:#888;min-width:60px;flex-shrink:0}.project-cloud-auth{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.project-cloud-auth-status{font-size:.82em;color:#667085;white-space:nowrap}.project-cloud-auth-button{font-size:.82em;padding:5px 10px;background:#fff;color:#344054;border:1px solid #d0d5dd;border-radius:9px;cursor:pointer}.project-cloud-auth-button:hover{background:#f8fafc}.project-cloud-auth-widget{display:inline-flex;align-items:center}.project-title-actions{display:flex;gap:6px;margin-left:auto;align-items:center}.project-title-actions button{font-size:.85em;padding:6px 12px;background:linear-gradient(180deg,#fff,#eff6ff);color:#1d4ed8;border:1px solid rgba(59,130,246,.2);border-radius:10px;cursor:pointer}.project-title-actions button:hover{background:linear-gradient(180deg,#fff,#dbeafe)}.project-list-panel{position:absolute;top:calc(100% + 4px);right:0;background:#fff;border:1px solid #d8dde2;border-radius:6px;box-shadow:0 4px 12px #0000001f;min-width:320px;max-height:360px;overflow-y:auto;z-index:100;padding:8px 0}.project-list-item{display:flex;align-items:center;padding:8px 12px;gap:8px;font-size:.9em}.project-list-item:hover{background:#f0f4f8}.project-list-item-name{flex:1;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-list-item-date{color:#888;font-size:.85em;white-space:nowrap;flex-shrink:0}.project-list-item-load{padding:3px 8px;font-size:.8em;background:#2b6cb0;color:#fff;border:none;border-radius:4px;cursor:pointer;flex-shrink:0}.project-list-item-load:hover{background:#2c5282}.project-list-item-download{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;font-size:.95em;background:#fff;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:4px;cursor:pointer;flex-shrink:0}.project-list-item-download:hover{background:#eff6ff}.project-list-empty{padding:16px;color:#999;text-align:center;font-size:.9em}.auth-required-overlay[hidden]{display:none}.auth-required-overlay{position:fixed;inset:0;z-index:1500;display:flex;align-items:center;justify-content:center;padding:24px;background:#f6f7f9eb;backdrop-filter:blur(3px)}.auth-required-card{width:min(460px,calc(100vw - 48px));padding:28px 24px;border:1px solid #d8dde2;border-radius:18px;background:#fff;box-shadow:0 20px 48px #0f172a2e;text-align:center}.auth-required-title{margin:0 0 10px;font-size:1.3em;color:#111827}.auth-required-message{margin:0 0 18px;color:#475467;line-height:1.7}.auth-required-button{min-width:220px;padding:10px 18px;border-radius:12px;border:1px solid rgba(79,70,229,.2);background:linear-gradient(180deg,#7c3aed,#4f46e5);color:#fff}.auth-required-button:hover{background:linear-gradient(180deg,#8b5cf6,#5b51f0)}.template-gallery-modal[hidden]{display:none}.template-gallery-modal{position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a61;backdrop-filter:blur(6px)}.template-gallery-dialog{width:min(720px,calc(100vw - 48px));max-height:min(82vh,720px);display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;padding:18px;overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 24px 64px #0f172a38}.template-gallery-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.template-gallery-title{color:#111827;font-size:18px;font-weight:700}.template-gallery-subtitle{margin-top:4px;color:#64748b;font-size:12px}.template-gallery-close{width:32px;height:32px;padding:0;border-radius:50%}.template-gallery-list{display:grid;gap:10px;overflow-y:auto;padding-right:4px}.template-gallery-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px;border:1px solid #d8dde2;border-radius:8px;background:#f8fafc}.template-gallery-item-name{color:#111827;font-weight:700}.template-gallery-item-description{margin-top:4px;color:#475569;font-size:13px;line-height:1.5}.template-gallery-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.template-gallery-tag{padding:2px 7px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:11px;font-weight:600}.template-gallery-tier{background:#dcfce7;color:#166534}.template-gallery-open{min-width:92px}.app-header{position:sticky;top:36px;z-index:20;display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:6px 0 8px;padding-right:calc(var(--assistant-width) + 16px);background:#f6f7f9f2;backdrop-filter:blur(10px)}.app-header.is-hidden{display:none}.app-header.assistant-collapsed{padding-right:72px}.app-header-copy{display:none}.app-header-copy p{margin:4px 0 0}.panel-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:10px}.panel-heading h2{margin:0}.panel-heading-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.panel-action-btn{padding:7px 12px;background:linear-gradient(180deg,#2d74c7,#245ea5);color:#fff;border:1px solid #255c9b;border-radius:8px;cursor:pointer;font-size:.9em}.panel-action-btn:hover{background:linear-gradient(180deg,#256ab8,#1f4f89)}.header-action-group{display:flex;align-items:center;gap:8px}.header-action-group.is-hidden{display:none}.workspace-view{display:none;min-width:0}.workspace-view.is-active{display:block}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.toolbar{background:#fff;border:1px solid #d8dde2;border-radius:6px;padding:10px 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.toolbar button{padding:7px 12px;background:linear-gradient(180deg,#2d74c7,#245ea5);color:#fff;border:1px solid #255c9b;cursor:pointer;font-size:.9em}.toolbar button:hover{background:linear-gradient(180deg,#256ab8,#1f4f89)}.toolbar button.secondary{background:linear-gradient(180deg,#fff,#f6faff);color:#245ea5}.toolbar button.secondary:hover{background:linear-gradient(180deg,#fff,#e6f0fb)}.toolbar .sep{width:1px;height:24px;background:#d8dde2;margin:0 4px}.toolbar input[type=file]{font-size:.85em}.app-header .toolbar,.settings-grid .toolbar{margin-bottom:0}.toolbar-popover{position:relative}.axis-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:40;width:280px;max-width:min(280px,calc(100vw - 32px));display:none;padding:12px;border:1px solid #d8dde2;border-radius:10px;background:#fff;box-shadow:0 18px 40px #0f172a1f}.axis-popover.is-open{display:grid;gap:10px}.axis-popover-title{font-size:.88em;font-weight:700;color:#344054}.axis-popover-help{margin:0;font-size:.8em;color:#667085;line-height:1.5}.axis-popover-presets{display:flex;flex-wrap:wrap;gap:8px}.axis-preset-button{padding:6px 10px;border:1px solid #d0d5dd;border-radius:999px;background:#fff;color:#344054;cursor:pointer;font:inherit;font-size:.85em}.axis-preset-button:hover{border-color:#2b6cb0;color:#1a365d;background:#ebf2fa}.axis-popover-form{display:grid;gap:8px}.axis-popover-field{display:grid;gap:4px;font-size:.82em;color:#475467}.axis-popover-form input,.axis-popover-form select{width:100%;padding:8px 10px;border:1px solid #d0d5dd;border-radius:8px;font:inherit;background:#fff}.axis-popover-actions{display:flex;justify-content:flex-end;gap:8px}.axis-popover-actions button{padding:6px 12px;border:1px solid #2b6cb0;border-radius:6px;background:#2b6cb0;color:#fff;cursor:pointer;font:inherit}.axis-popover-actions button.secondary{background:#fff;color:#2b6cb0}.unit-block{display:flex;flex-wrap:wrap;gap:12px;padding:8px 0}.unit-block label{font-size:.85em}.panel{background:#fff;border:1px solid #d8dde2;border-radius:6px;padding:12px;margin-bottom:12px}.errors{background:#fff5f5;border:1px solid #fc8181;color:#9b2c2c;padding:8px 12px;border-radius:4px;margin-bottom:12px;font-size:.9em}.errors ul{margin:4px 0;padding-left:20px}.timing-grid{min-width:800px}.axis-row{display:flex;align-items:stretch}.axis-side{flex:0 0 280px;width:280px;padding:8px;border-bottom:1px solid #e2e8f0;background:#fafbfc}.axis-side.selected{background:#ebf2fa}.axis-side .axis-name-input{width:100%;font-weight:700;padding:4px;margin-bottom:4px}.axis-side .axis-meta{font-size:.8em;color:#555;line-height:1.5}.axis-side .axis-meta input{width:70px;padding:2px 4px;font-size:.95em}.axis-side .axis-actions button{font-size:.75em;padding:2px 6px;margin-top:4px;margin-right:4px;background:#fff;color:#2b6cb0;border:1px solid #2b6cb0;border-radius:3px;cursor:pointer}.axis-side .axis-actions button.danger{color:#c53030;border-color:#c53030}.axis-track{flex:1 1 auto;position:relative;min-height:100px;border-bottom:1px solid #e2e8f0;background-color:#fff;overflow:hidden}.axis-track .ruler-label{position:absolute;top:8px;font-size:.7em;color:#888;padding:1px 3px;z-index:2}.axis-track svg.curve-svg{display:block;position:absolute;top:0;left:0}.axis-track .y-scale{position:absolute;left:2px;top:2px;font-size:.7em;color:#888;line-height:1;pointer-events:none}.axis-track .y-scale .y-min{position:absolute;bottom:-90px;left:0}.axis-track svg .motion-region{fill:#4299e10f;cursor:pointer}.axis-track svg .motion-region:hover{fill:#4299e12e}.axis-track svg .motion-region.selected{fill:#f6e05e4d;stroke:#d69e2e;stroke-dasharray:3 3}.axis-track svg .wait-region{fill:#a0aec02e;cursor:pointer}.axis-track svg .error-region{fill:#fc818133}.axis-track svg .pos-curve{fill:none;stroke:#2b6cb0;stroke-width:2}.axis-track svg .pos-curve.selected{stroke:#1a365d;stroke-width:3}.axis-track svg .motion-label{font-size:10px;fill:#2c5282;pointer-events:none}.axis-track svg .motion-label-time{font-size:9px;fill:#555;pointer-events:none}.axis-track svg .ref-line{stroke:#cbd5e0;stroke-dasharray:2 2}.ruler{display:flex;align-items:stretch;background:#f7fafc}.ruler .axis-side{background:#f7fafc;font-size:.8em;color:#555}.ruler .axis-track{min-height:40px}.ruler-scale-control{position:absolute;top:6px;right:12px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border:1px solid #d8dde2;border-radius:8px;background:#fffffff5;color:#344054;font-size:.82em}.ruler-scale-control input{width:64px;padding:2px 6px;border:1px solid #d0d5dd;border-radius:6px;font:inherit}.detail-section{background:#f0f6fc;border-bottom:2px solid #2b6cb0;padding:8px 12px}.detail-collapsible>summary{cursor:pointer;padding:4px 0;color:#2b6cb0;list-style:none;user-select:none}.detail-collapsible>summary:before{content:"▶ ";display:inline-block;transition:transform .1s}.detail-collapsible[open]>summary:before{content:"▼ "}.detail-collapsible[open]{padding-bottom:6px}.detail-collapsible>*:not(summary){margin-top:8px}.detail-section table{width:100%;border-collapse:collapse;background:#fff;font-size:.85em}.detail-section th,.detail-section td{border:1px solid #cbd5e0;padding:4px 6px;text-align:center}.detail-section th{background:#edf2f7;font-weight:600}.detail-section input[type=number]{width:70px;padding:2px 4px}.detail-section input[type=text]{width:100%;padding:2px 4px;min-width:80px}.detail-section select{padding:2px 4px;font-size:.9em}.detail-section .row-actions button{font-size:.75em;padding:2px 6px;background:#fff;color:#c53030;border:1px solid #c53030;border-radius:3px;cursor:pointer}.detail-section .axis-config{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:8px;font-size:.85em}.detail-section .axis-config label{white-space:nowrap}.detail-section .axis-config input{width:80px;padding:2px 4px}.detail-section .computed{background:#f9f9f9;color:#333}.flow-canvas-shell{position:relative}#drawflow-container{position:relative;width:100%;height:460px;min-height:460px;border:1px solid #cbd5e0;border-radius:4px;background:#fafbfc}#drawflow-container.flow-connect-mode{box-shadow:inset 0 0 0 2px #2563eb29}#drawflow-container.flow-connect-mode .drawflow-node .input,#drawflow-container.flow-connect-mode .drawflow-node .output{cursor:crosshair}#drawflow-container .drawflow-node.flow-connection-source{box-shadow:0 0 0 3px #2563eb2e}#drawflow-container .drawflow-node .output.flow-connection-source-port{box-shadow:0 0 0 4px #2563eb2e;background:#bfdbfe;border-color:#1d4ed8}.flow-canvas-overlay{position:absolute;top:12px;right:12px;left:12px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;pointer-events:none;z-index:12}.flow-canvas-overlay .flow-overlay-actions,.flow-canvas-overlay .flow-connection-hint{pointer-events:auto}.flow-overlay-actions{margin-left:auto;display:inline-flex;align-items:center;gap:8px;padding:6px;border:1px solid rgba(148,163,184,.3);border-radius:14px;background:#fffffff5;box-shadow:0 10px 24px #0f172a14}.flow-connect-label{padding:0 4px 0 6px;color:#475467;font-size:.8em;font-weight:600;white-space:nowrap}.flow-connect-mode-group{display:inline-flex;align-items:center;gap:6px}.drawflow .drawflow-node.motion{--flow-node-label-bg: #fff;--flow-node-label-border: #2b6cb0;--flow-node-label-color: #2b6cb0;background:#fff;border:2px solid #2b6cb0;border-radius:4px;padding:12px 10px 6px;min-width:140px}.drawflow .drawflow-node.motion .node-axis{font-size:.75em;color:#888}.drawflow .drawflow-node.motion .node-name{font-weight:700;font-size:.9em;margin:2px 0}.drawflow .drawflow-node.start{--flow-node-label-bg: #edfdf5;--flow-node-label-border: #2f855a;--flow-node-label-color: #276749;background:#edfdf5;border:2px solid #2f855a;border-radius:999px;padding:14px 14px 10px;min-width:110px}.drawflow .drawflow-node.condition{--flow-node-label-bg: #fffaf0;--flow-node-label-border: #dd6b20;--flow-node-label-color: #9a3412;background:#fffaf0;border:2px solid #dd6b20;border-radius:6px;padding:14px 12px 8px;min-width:180px}.drawflow .drawflow-node.condition .outputs{margin-top:8px}.drawflow .drawflow-node.condition .node-name{font-weight:600;font-size:.9em;margin:2px 0 0;padding-right:60px;white-space:nowrap}.drawflow .drawflow-node.condition .node-meta{font-size:.74em;color:#9a3412;margin-top:4px;padding-right:60px}.drawflow .drawflow-node.condition .condition-layout{position:relative;min-height:96px;padding-right:56px}.drawflow .drawflow-node.button{--flow-node-label-bg: #f0fdf4;--flow-node-label-border: #16a34a;--flow-node-label-color: #166534;background:#f0fdf4;border:2px solid #16a34a;border-radius:6px;padding:14px 12px 8px;min-width:180px}.drawflow .drawflow-node.button .outputs{margin-top:8px}.drawflow .drawflow-node.button .node-name{font-weight:600;font-size:.9em;margin:2px 0 0;padding-right:60px;white-space:nowrap}.drawflow .drawflow-node.button .node-meta{font-size:.74em;color:#166534;margin-top:4px;padding-right:60px}.drawflow .drawflow-node.button .button-layout{position:relative;min-height:72px;padding-right:56px}.drawflow .drawflow-node.error{--flow-node-label-bg: #fff5f5;--flow-node-label-border: #c53030;--flow-node-label-color: #9b2c2c;background:#fff5f5;border:2px solid #c53030;border-radius:6px;padding:14px 12px 8px;min-width:180px}.drawflow .drawflow-node.error .node-name{font-weight:700;color:#9b2c2c;margin:2px 0 6px}.drawflow .drawflow-node.error .node-meta{font-size:.76em;color:#742a2a;line-height:1.35}.drawflow .drawflow-node.signal-output{--flow-node-label-bg: #f0f9ff;--flow-node-label-border: #0284c7;--flow-node-label-color: #075985;background:#f0f9ff;border:2px solid #0284c7;border-radius:6px;padding:14px 12px 8px;min-width:180px}.drawflow .drawflow-node.signal-output .node-name{font-weight:700;color:#075985;margin:2px 0 6px}.drawflow .drawflow-node.signal-output .node-meta{font-size:.76em;color:#0c4a6e;line-height:1.35}.drawflow .drawflow-node.end{--flow-node-label-bg: #f8fafc;--flow-node-label-border: #64748b;--flow-node-label-color: #334155;background:#f8fafc;border:2px solid #64748b;border-radius:999px;padding:14px 14px 10px;min-width:120px}.drawflow .drawflow-node.end .node-name{font-weight:700;color:#334155}.drawflow .drawflow-node.end .node-meta{font-size:.76em;color:#475569;line-height:1.35}.drawflow .drawflow-node.subprocess{--flow-node-label-bg: rgba(255, 247, 237, .98);--flow-node-label-border: #d69e2e;--flow-node-label-color: #92400e;background:#fef7e8;border:2px solid #d69e2e;border-radius:16px;padding:10px 12px 12px;min-width:150px}.drawflow .drawflow-node.subprocess:has(.subprocess-layout.is-expanded){--flow-node-label-bg: rgba(245, 243, 255, .98);--flow-node-label-border: #a78bfa;--flow-node-label-color: #6d28d9;width:max-content;min-width:220px}.drawflow .drawflow-node.subprocess .node-name{font-weight:700;color:#92400e;margin:0 0 4px}.drawflow .drawflow-node.subprocess .node-meta{font-size:.72em;color:#9a3412;line-height:1.25}.drawflow .drawflow-node.subprocess .subprocess-duration{display:inline-block}.drawflow .drawflow-node.subprocess .subprocess-collapsed-shell{position:relative;padding-top:10px}.drawflow .drawflow-node.subprocess .subprocess-collapsed-body{display:grid;gap:2px}.drawflow .drawflow-node.subprocess .subprocess-expanded-shell{display:grid;gap:0;width:max-content}.drawflow .drawflow-node.subprocess .subprocess-expanded-body{position:relative;padding-top:12px;width:max-content}.drawflow .drawflow-node.subprocess .subprocess-group-label{position:absolute;left:50%;top:-10px;z-index:2;display:inline-flex;align-items:center;justify-content:center;max-width:140px;padding:2px 8px;border:1px solid var(--flow-node-label-border, #a78bfa);border-radius:999px;background:var(--flow-node-label-bg, rgba(245, 243, 255, .98));color:var(--flow-node-label-color, #6d28d9);font-size:.58em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:translate(-50%,-50%);box-shadow:0 1px 2px #a78bfa1f;cursor:pointer}.drawflow .drawflow-node.subprocess .subprocess-preview{position:relative;margin-top:0;border:1px dashed #a78bfa;border-radius:14px;background:radial-gradient(circle at 1px 1px,rgba(167,139,250,.18) 1px,transparent 0) 0 0 / 10px 10px,#f5f3ffeb;overflow:hidden;cursor:pointer}.drawflow .drawflow-node.subprocess:has(.subprocess-layout.is-expanded) .subprocess-preview{min-height:138px;box-shadow:inset 0 0 0 1px #a78bfa1a}.drawflow .drawflow-node.subprocess .subprocess-preview-node{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:1px solid #10b981;background:#ecfdf5;color:#065f46;border-radius:8px;padding:2px 6px;font-size:.64em;line-height:1.15;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:1;box-shadow:0 1px 2px #0f172a14}.drawflow .drawflow-node.subprocess .subprocess-preview-group,.drawflow .drawflow-node.subprocess .subprocess-preview-svg{position:absolute;inset:0}.drawflow .drawflow-node.subprocess .subprocess-preview-group{border-radius:12px;box-shadow:inset 0 0 0 1px #a78bfa2e}.drawflow .drawflow-node.subprocess .subprocess-preview-svg{width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}.drawflow .drawflow-node.subprocess .subprocess-preview-edge{stroke:#6366f173;stroke-width:1.5;fill:none}.drawflow .drawflow-node.subprocess .subprocess-preview-node.node-start,.drawflow .drawflow-node.subprocess .subprocess-preview-node.node-end{border-color:#94a3b8;background:#f8fafc;color:#334155}.drawflow .drawflow-node.subprocess .subprocess-preview-node.node-condition,.drawflow .drawflow-node.subprocess .subprocess-preview-node.node-button{border-color:#38bdf8;background:#f0f9ff;color:#0f766e}.drawflow .drawflow-node.subprocess .subprocess-preview-node.node-motion{border-color:#10b981;background:#fff;color:#065f46}.drawflow .drawflow-node.subprocess .subprocess-preview-node.node-error{border-color:#fb7185;background:#fff1f2;color:#9f1239}.drawflow .drawflow-node.subprocess .subprocess-preview-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.7em;color:#7c3aed}.drawflow .drawflow-node.subprocess .subprocess-preview.is-empty{min-height:72px}.drawflow .drawflow-node.subprocess:has(.subprocess-layout.is-collapsed) .subprocess-group-label{top:-10px}.drawflow .drawflow-node .node-type{position:absolute;left:50%;top:0;z-index:2;display:inline-flex;align-items:center;justify-content:center;max-width:calc(100% - 28px);padding:2px 8px;border:1px solid var(--flow-node-label-border, #94a3b8);border-radius:999px;background:var(--flow-node-label-bg, #fff);color:var(--flow-node-label-color, #475569);font-size:.58em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:translate(-50%,-50%);box-shadow:0 1px 2px #0f172a14;pointer-events:none}.drawflow .drawflow-node .node-branch{font-size:.68em;color:#9c4221;position:absolute;inset:0}.drawflow .drawflow-node .node-branch-item{position:absolute;right:0;width:50px;text-align:right;line-height:1.2;white-space:nowrap}.drawflow .drawflow-node .node-branch-item.top{top:24px}.drawflow .drawflow-node .node-branch-item.middle{top:47px}.drawflow .drawflow-node .node-branch-item.bottom{bottom:8px}.flow-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}.flow-tabs{display:flex;flex-wrap:wrap;align-items:flex-end;gap:2px;margin-bottom:10px;padding:0 8px;border-bottom:1px solid #cbd5e1}.flow-tab{position:relative;bottom:-1px;min-height:34px;padding:7px 12px;border:1px solid #cbd5e1;border-bottom-color:transparent;border-radius:6px 6px 0 0;background:#f8fafc;color:#334155;font-size:.88em;line-height:1.2;cursor:pointer}.flow-tab:hover{background:#fff}.flow-tab.is-active{background:#fff;border-color:#cbd5e1;border-top-color:#2b6cb0;color:#1e293b;font-weight:600}.flow-tab.flow-tab-add{border-style:dashed;min-width:36px;padding-left:10px;padding-right:10px}.flow-toolbar label{font-size:.9em;display:inline-flex;align-items:center;gap:4px}.flow-toolbar select{padding:4px 6px}.flow-axis-selector{display:inline-flex;align-items:center;gap:4px}.axis-icon-btn{width:26px;height:26px;padding:0;font-size:1.1em;line-height:1;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;background:#2b6cb0;color:#fff;border:1px solid #2b6cb0;cursor:pointer;flex-shrink:0}.axis-icon-btn:hover{background:#2c5282}.axis-icon-btn.secondary{background:#fff;color:#c53030;border-color:#c53030}.axis-icon-btn.secondary:hover{background:#fff5f5}.axis-icon-btn:disabled{opacity:.4;cursor:not-allowed}.flow-node-add-group{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}.flow-toolbar .flow-toolbar-label{font-size:.9em;color:#344054}.flow-connection-hint{min-height:44px;max-width:min(440px,calc(100% - 140px));display:flex;align-items:center;padding:10px 14px;border:1px solid rgba(148,163,184,.32);border-radius:12px;background:#fff;color:#475467;font-size:.85em;line-height:1.45;box-shadow:0 10px 24px #0f172a14;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease}.flow-connection-hint.is-pending{border-color:#2563eb47;background:#eff6ff;color:#1d4ed8}.flow-connection-hint.is-visible{opacity:1;visibility:visible;transform:translateY(0)}.flow-connect-mode-btn.is-active{background:linear-gradient(180deg,#2563eb,#1d4ed8);color:#fff;border-color:#1d4ed8}.flow-connect-mode-btn{min-width:88px;padding:7px 12px;border-radius:10px;font-size:.84em;white-space:nowrap}.flow-node-editor{position:fixed;display:none;width:min(420px,calc(100vw - 24px));max-height:min(480px,calc(100vh - 24px));overflow:auto;padding:12px;border:1px solid #d8dde2;border-radius:6px;background:#fff;box-shadow:0 14px 36px #0f172a2e;z-index:50}.flow-node-editor.is-open{display:block}.flow-node-editor .editor-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.flow-node-editor h3{margin:0;font-size:1em}.flow-node-editor .editor-close{width:28px;height:28px;padding:0;border-radius:4px;line-height:1}.flow-node-editor .editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 12px}.flow-node-editor label{display:flex;flex-direction:column;gap:4px;font-size:.88em}.flow-node-editor .editor-full{grid-column:1 / -1}.flow-node-editor .condition-editor-rows{grid-column:1 / -1;display:flex;flex-direction:column;gap:8px}.flow-node-editor .condition-editor-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) auto;gap:8px;align-items:end}.flow-node-editor .condition-editor-actions{grid-column:1 / -1;display:flex;justify-content:flex-start}.flow-node-editor .condition-editor-helper{display:flex;gap:8px;align-items:end}.flow-node-editor input,.flow-node-editor select{padding:4px 6px;border:1px solid #cbd5e0;border-radius:4px}.assistant-panel{display:flex;flex-direction:column;gap:6px;min-height:0;flex:1 1 auto;margin-bottom:0;padding:8px 10px 10px;border:none;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}#assistantApp{display:flex;flex:1 1 auto;min-height:0;width:100%}.assistant-panel.is-collapsed{min-height:0;padding:0;background:transparent;overflow:visible}.chat-shell{display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-width:0;height:100%;min-height:0;box-sizing:border-box;padding:12px}.chat-shell.is-hidden{display:none}.chat-window{display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-width:0;min-height:0}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;border-bottom:1px solid #edf0f2;margin-bottom:8px}.chat-header-copy{min-width:0}.chat-header-copy h2{margin:0;font-size:1.05em;font-weight:700;color:#1d2939;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-header-toolbar{display:flex;align-items:center;gap:6px;flex-shrink:0}.chat-header-btn{width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid #d0d5dd;background:#fff;color:#475467;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .1s;box-shadow:0 1px 2px #1018280d}.chat-header-btn:hover{background:#f9fafb;border-color:#cbd5e1;color:#1d2939;transform:translateY(-1px)}.chat-header-btn:active{transform:translateY(0)}.chat-header-btn.is-open{background:#ebf2fa;border-color:#2b6cb0;color:#1a365d;box-shadow:none}.chat-settings{display:none;gap:8px;padding:10px;border:1px solid #eaecf0;border-radius:12px;background:#f8fafc;max-height:min(72vh,720px);overflow-y:auto;overscroll-behavior:contain}.chat-settings.is-open{display:grid}.chat-settings-grid{display:grid;gap:8px}.chat-settings label{display:flex;flex-direction:column;gap:4px;font-size:.8em;color:#344054}.chat-settings input,.chat-settings select,.chat-settings textarea,.chat-input textarea{width:100%;padding:8px 10px;border:1px solid #d0d5dd;border-radius:12px;font:inherit;background:#fff;min-width:0}.chat-settings textarea{line-height:1.45;resize:vertical}.chat-settings-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.plc-profile-summary-card{grid-template-columns:1fr;min-width:0}.plc-profile-markdown-preview{font-size:12px;line-height:1.6;color:#475467}.plc-profile-markdown-preview h3,.plc-profile-markdown-preview h4{margin:8px 0 4px;color:#344054;font-weight:700;line-height:1.4}.plc-profile-markdown-preview h3{font-size:13px}.plc-profile-markdown-preview h4{font-size:12px}.plc-profile-markdown-preview p{margin:4px 0}.plc-profile-markdown-preview ul{margin:4px 0 8px;padding-left:18px}.plc-profile-markdown-preview li+li{margin-top:2px}.plc-profile-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:24px;background:#0f172a61;backdrop-filter:blur(6px)}.plc-profile-modal-dialog{width:min(960px,calc(100vw - 48px));max-height:min(88vh,920px);display:grid;gap:12px;padding:18px;border-radius:18px;background:#fff;box-shadow:0 24px 64px #0f172a38;overflow:hidden}.plc-profile-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.plc-profile-modal-title{font-size:18px;font-weight:700;color:#111827}.plc-profile-modal-subtitle{margin-top:4px;font-size:12px;line-height:1.5;color:#667085}.plc-profile-modal-actions{display:flex;justify-content:flex-end;gap:8px}.plc-profile-editor{grid-template-columns:1fr;border:1px solid #d0d5dd;border-radius:10px;padding:16px;max-height:min(72vh,760px);overflow-y:auto;overscroll-behavior:contain;background:#fff}.plc-profile-editor-section{display:grid;gap:10px;padding:10px;border:1px solid #eaecf0;border-radius:8px;background:#fcfcfd;min-width:0}.plc-profile-editor-section label,.plc-profile-editor-fields label{display:flex;flex-direction:column;gap:4px;width:100%;min-width:0;font-size:.8em;color:#344054}.plc-profile-editor-section input,.plc-profile-editor-section select,.plc-profile-editor-section textarea,.plc-profile-editor-fields input,.plc-profile-editor-fields select,.plc-profile-editor-fields textarea{width:100%;min-width:0;padding:8px 10px;border:1px solid #d0d5dd;border-radius:12px;font:inherit;background:#fff}.plc-profile-editor-section textarea,.plc-profile-editor-fields textarea{line-height:1.45;resize:vertical}.plc-profile-editor-note{font-size:12px;line-height:1.5;color:#475467;background:#f4f7fb;border:1px solid #d8e2f0;border-radius:10px;padding:10px 12px}.plc-profile-editor-fields{display:grid;gap:10px;min-width:0}.plc-profile-editor-fields.two,.plc-profile-editor-fields.three{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.plc-profile-editor-fields.compact{font-size:12px;color:#475467}.plc-profile-editor-fields.compact label{flex-direction:row;align-items:center;line-height:1.35}.plc-profile-editor-fields.compact input[type=checkbox]{width:auto;padding:0;flex:0 0 auto}.plc-profile-rules-textarea{min-height:280px}.plc-profile-advanced{display:grid;gap:10px;border:1px solid #d8e2f0;border-radius:10px;background:#f8fafc;padding:0 10px 10px}.plc-profile-advanced summary{cursor:pointer;list-style:none;font-size:12px;font-weight:700;color:#344054;padding:12px 2px 10px}.plc-profile-advanced summary::-webkit-details-marker{display:none}.plc-profile-advanced summary:before{content:"▸";display:inline-block;margin-right:6px;transition:transform .15s ease}.plc-profile-advanced[open] summary:before{transform:rotate(90deg)}@media (max-width: 900px){.plc-profile-modal{padding:12px}.plc-profile-modal-dialog{width:min(100vw - 24px,960px);max-height:calc(100vh - 24px);padding:14px}.plc-profile-modal-header{flex-direction:column;align-items:stretch}.plc-profile-editor{max-height:calc(100vh - 180px);padding:12px}}.chat-settings-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.78em;color:#667085}.chat-panel{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.task-history-panel{display:none;width:100%;min-width:0;gap:8px;padding:10px 12px;border:1px solid #d0d5dd;border-radius:12px;background:linear-gradient(180deg,#f8fbff,#f8fafc)}.task-history-panel.is-open{display:grid}.task-history-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.task-history-title{font-size:.82em;font-weight:700;color:#344054}.task-history-list{display:grid;gap:8px;max-height:220px;overflow-y:auto}.task-history-empty{padding:10px 12px;border:1px dashed #d0d5dd;border-radius:10px;font-size:.8em;color:#667085;background:#ffffffd1}.task-history-item{width:100%;text-align:left;padding:10px 12px;border:1px solid #d0d5dd;border-radius:10px;background:#fffffff5;display:grid;gap:6px}.task-history-item:hover{border-color:#98a2b3;background:#fff}.task-history-item.is-active{border-color:#98b4ff;box-shadow:inset 0 0 0 1px #c7d7fe;background:#eef4ff}.task-history-item-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.task-history-item-goal{flex:1 1 auto;min-width:0;font-size:.85em;font-weight:600;color:#101828;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-history-item-status{font-size:.74em;color:#475467;white-space:nowrap}.task-history-item-meta{font-size:.76em;color:#667085;display:flex;flex-wrap:wrap;gap:8px}.chat-log{flex:1 1 auto;width:100%;min-width:0;min-height:0;overflow-y:auto;padding:8px 0;background:#fff}.chat-log-empty{padding:12px;border:1px dashed #d0d5dd;border-radius:12px;color:#667085;background:#f8fafc}.chat-message{width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:10px 12px;border-radius:16px;margin-bottom:8px;white-space:pre-wrap;word-break:break-word}.chat-message.user{background:#ecf3ff;border:1px solid #d6e4ff}.chat-message.assistant{background:#fff;border:1px solid #eaecf0}.chat-message.system{background:#f8fafc;border:1px solid #eaecf0}.chat-message .meta{display:block;font-size:.75em;color:#667085;margin-bottom:4px}.chat-message-body{min-width:0;max-width:100%;white-space:normal}.chat-text-segment{white-space:pre-wrap}.chat-text-segment+.chat-code-block,.chat-code-block+.chat-text-segment{margin-top:8px}.chat-code-block{width:100%;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:10px;overflow:hidden;background:#1e1e1e}.chat-code-head{display:flex;align-items:center;justify-content:space-between;min-width:0;padding:5px 10px;background:#2d2d2d;border-bottom:1px solid #3a3a3a}.chat-code-lang{font-size:.72em;color:#9cdcfe;text-transform:uppercase;letter-spacing:.04em}.chat-code-copy{font-size:.72em;padding:3px 9px;border:1px solid #4a4a4a;border-radius:6px;background:#3a3a3a;color:#e6e6e6;cursor:pointer}.chat-code-copy:hover{background:#4a4a4a}.chat-code-pre{margin:0;max-width:100%;padding:10px 12px;overflow-x:auto;white-space:pre;color:#e6e6e6;font-family:Consolas,Menlo,Monaco,monospace;font-size:.82em;line-height:1.5}.chat-code-pre code{font-family:inherit}.chat-message-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.chat-message-actions button{font-size:.82em;padding:7px 11px}.chat-input{position:relative;display:flex;border:1px solid #d0d5dd;border-radius:12px;background:#fff;box-shadow:0 1px 2px #1018280d;overflow:hidden;transition:border-color .2s,box-shadow .2s}.chat-input:focus-within{border-color:#2b6cb0;box-shadow:0 0 0 3px #2b6cb01f}.chat-input textarea{flex:1 1 auto;min-height:86px;max-height:200px;width:100%;padding:10px 48px 10px 12px;border:none;outline:none;resize:none;font:inherit;background:transparent}.chat-send-btn{position:absolute;bottom:8px;right:8px;width:32px;height:32px;border-radius:9999px;border:none;background:#2b6cb0;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,transform .1s,opacity .15s;box-shadow:0 2px 4px #0000001a;padding:0;z-index:5}.chat-send-btn:hover:not(:disabled){background:#1a5696;transform:translateY(-1px)}.chat-send-btn:active:not(:disabled){transform:translateY(0)}.chat-send-btn:disabled{background:#f2f4f7;color:#98a2b3;box-shadow:none;cursor:not-allowed;opacity:.8}.chat-composer{position:relative;display:grid;gap:8px;padding-top:10px;border-top:1px solid #f2f4f7}.chat-composer-suggestions{position:absolute;bottom:100%;left:0;right:0;background:#fff;border:1px solid #d8dde2;border-radius:12px;box-shadow:0 -4px 20px #0f172a1f;z-index:50;overflow:hidden;margin-bottom:8px;display:grid;padding:6px 0}.suggestion-item{display:flex;align-items:center;padding:8px 12px;gap:12px;cursor:pointer;transition:background .15s;font-size:.86em}.suggestion-item:hover,.suggestion-item.is-selected{background:#f0f4f8}.suggestion-cmd{font-weight:700;color:#2b6cb0;font-family:monospace}.suggestion-desc{color:#667085}.chat-clear-link{font-size:.78em;color:#667085;cursor:pointer;user-select:none;transition:color .15s}.chat-clear-link:hover{color:#c53030}.chat-worklog{margin-bottom:8px;border:1px solid #eaecf0;border-radius:14px;background:#f8fafc;overflow:hidden}.chat-worklog-toggle{width:100%;padding:10px 12px;border:none;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;color:#344054;font:inherit;cursor:pointer}.chat-worklog-summary{font-size:.82em;font-weight:600}.chat-worklog-count{font-size:.76em;color:#667085}.chat-worklog-lines{display:grid;gap:6px;padding:0 12px 12px;border-top:1px solid #eaecf0}.chat-worklog-line{padding-top:8px;white-space:pre-wrap;word-break:break-word}.chat-worklog-line .meta{display:block;margin-bottom:4px;font-size:.72em;color:#667085}.agent-question-card{border-color:#c7d7fe;background:linear-gradient(180deg,#f8fbff,#eef4ff)}.fa-verification-card{display:grid;gap:10px;border-width:1px;border-style:solid}.fa-verification-card.is-pass{border-color:#b7e4c7;background:linear-gradient(180deg,#f6fdf8,#ecfdf3)}.fa-verification-card.is-fail{border-color:#f3c1c1;background:linear-gradient(180deg,#fff8f8,#fef2f2)}.fa-verification-card.is-skipped{border-color:#d0d5dd;background:linear-gradient(180deg,#fcfcfd,#f8fafc)}.fa-verification-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.fa-verification-title{font-size:.9em;font-weight:700;color:#1d2939}.fa-verification-badge{flex:0 0 auto;padding:3px 8px;border-radius:999px;font-size:.72em;font-weight:700;letter-spacing:.04em}.fa-verification-badge.is-pass{background:#d1fadf;color:#027a48}.fa-verification-badge.is-fail{background:#fee4e2;color:#b42318}.fa-verification-badge.is-skipped{background:#eaecf0;color:#475467}.fa-verification-stats{display:flex;flex-wrap:wrap;gap:8px}.fa-verification-stat{padding:3px 8px;border-radius:999px;background:#ffffffbf;border:1px solid rgba(16,24,40,.08);font-size:.75em;color:#344054}.chat-applied-skills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.chat-applied-skill-chip{padding:3px 8px;border-radius:999px;font-size:.75em;border:1px solid rgba(16,24,40,.08)}.chat-applied-skill-chip.is-on-demand{background:#fee49a66;color:#93530c}.chat-applied-skill-chip.is-project{background:#ffffffbf;color:#344054}.agent-question-header{display:grid;gap:4px;margin-bottom:10px}.agent-question-title{font-size:.9em;font-weight:700;color:#1d2939}.agent-question-reason{font-size:.78em;color:#475467}.agent-question-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.agent-question-section-label{width:100%;font-size:.76em;font-weight:700;color:#344054}.agent-question-actions button{font-size:.82em;padding:7px 11px}.agent-question-input{display:grid;gap:8px;margin-top:10px}.agent-question-input-help{font-size:.76em;color:#667085;line-height:1.45}.agent-question-input-row{display:flex;align-items:center;gap:8px}.agent-question-input-row input{flex:1 1 auto;min-width:0;width:100%;padding:8px 10px;border:1px solid #c7d7fe;border-radius:10px;font:inherit;background:#fff}.agent-question-inline-error{padding:8px 10px;border:1px solid #fda29b;border-radius:10px;background:#fef3f2;color:#b42318;font-size:.78em}.chat-composer-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.chat-composer-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.chat-status{min-width:0;max-width:100%;font-size:.8em;color:#667085;text-align:right;white-space:normal;overflow-wrap:anywhere}@media (max-width: 1180px){.app-shell,.app-shell.sidebar-collapsed{grid-template-columns:1fr}.app-sidebar{position:sticky;top:0;z-index:30;height:auto;border-right:none;border-bottom:1px solid #d8dde2}.sidebar-brand{min-height:50px}.sidebar-nav{display:flex;overflow-x:auto;padding:8px 10px}.sidebar-link{width:auto;flex:0 0 auto}.app-shell.sidebar-collapsed .sidebar-title,.app-shell.sidebar-collapsed .sidebar-label{display:inline}.app-shell.sidebar-collapsed .sidebar-toggle{position:static;margin-left:auto}.app-main{padding:12px}.app-workspace,.app-workspace.assistant-collapsed{min-width:0}.project-title-bar,.project-title-bar.assistant-collapsed{position:static;padding-right:0;flex-wrap:wrap}.app-header{position:static;align-items:center;flex-direction:row;justify-content:flex-end;padding:0 0 8px;top:0}.app-header.assistant-collapsed{padding-right:0}.assistant-sidebar{position:static;top:auto;right:auto;width:auto}.assistant-resize-handle{display:none!important}.workspace-main,.app-workspace.assistant-collapsed .workspace-main{padding-right:0}.assistant-rail,.app-workspace.assistant-collapsed .assistant-rail{min-height:0}.app-workspace.assistant-collapsed .assistant-rail-title,.app-workspace.assistant-collapsed .assistant-rail-body{display:flex}.app-workspace.assistant-collapsed .assistant-rail-header{justify-content:flex-start;padding:12px 14px;border-bottom:1px solid #edf0f2}.app-workspace.assistant-collapsed .assistant-rail-toggle{margin-left:auto}}@media (max-width: 980px){.chat-settings-row{grid-template-columns:1fr}}#speedChart{max-height:320px}.help{font-size:.85em;color:#555}.skills-layout{display:grid;grid-template-columns:320px 1fr;gap:16px;align-items:start;min-height:calc(100vh - 200px)}.skills-list-panel{display:flex;flex-direction:column;height:100%}.skills-panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.skills-reload-btn{padding:4px 8px;font-size:.8em;cursor:pointer;border-radius:6px}.skills-list{display:flex;flex-direction:column;gap:8px;max-height:500px;overflow-y:auto;padding-right:4px;margin-top:8px}.skill-item{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;cursor:pointer;transition:all .16s ease}.skill-item:hover{background:#f1f5f9;border-color:#cbd5e1}.skill-item.is-selected{background:#eff6ff;border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f6}.skill-item-checkbox{margin-top:3px;cursor:pointer}.skill-item-info{flex:1;min-width:0}.skill-item-name{font-weight:600;font-size:.9em;color:#1e293b;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.skill-item-builtin-badge{display:inline-block;padding:1px 4px;font-size:.7em;font-weight:700;color:#2563eb;background:#dbeafe;border-radius:4px;margin-left:6px;vertical-align:middle}.skill-item-desc{font-size:.85em;color:#666;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.skills-detail-panel{display:flex;flex-direction:column;height:100%}.skill-markdown-editor{flex:1;min-height:520px;width:100%;box-sizing:border-box;font-family:Consolas,Monaco,monospace;font-size:.85em;line-height:1.55;background:#f8fafc;color:#1e293b;border:1px solid #cbd5e1;padding:12px;border-radius:8px;resize:vertical;white-space:pre-wrap}.skill-markdown-editor:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f629}.control-spec-table th,.control-spec-table td{padding:10px 8px;border-bottom:1px solid #dee2e6}.control-spec-table tr:hover{background-color:#f8f9fa}.control-spec-badge{display:inline-block;padding:3px 8px;font-size:.8em;font-weight:700;border-radius:12px;text-align:center}.control-spec-badge.input{background-color:#e3f2fd;color:#0d47a1}.control-spec-badge.output{background-color:#e8f5e9;color:#1b5e20}.control-spec-badge.internal{background-color:#f3e5f5;color:#4a148c}.control-spec-action-item{display:flex;flex-direction:column;gap:4px;padding:8px 10px;background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;cursor:pointer;transition:all .2s ease}.control-spec-action-item:hover{background:#e9ecef!important;border-color:#ced4da!important}.control-spec-action-item.is-active{background:#e8f0fe!important;border-color:#aecbfa!important;box-shadow:0 0 0 2px #1a73e833!important}.control-spec-action-btn{padding:3px 8px;font-size:.85em;border-radius:4px;cursor:pointer;border:1px solid #ccc;background:#fff;color:#333;transition:background .1s}.control-spec-action-btn:hover{background:#eee}.control-spec-action-btn.delete{color:#dc3545;border-color:#f5c6cb;background-color:#fdf2f2}.control-spec-action-btn.delete:hover{background-color:#f8d7da}.control-spec-tab-btn{padding:8px 16px;border:1px solid #ddd;border-radius:4px;background:#fff;color:#333;cursor:pointer;font-weight:700;transition:background .2s,color .2s}.control-spec-tab-btn:hover{background:#f5f5f5}.control-spec-tab-btn.is-active{background:#007bff;color:#fff;border-color:#007bff}.control-spec-tabpanel{height:100%;display:none;flex-direction:column}.control-spec-tabpanel.is-active{display:flex}.signal-category-table-wrapper thead th{position:sticky;top:0;z-index:1;background:#f8f9fa}#view-settings .settings-grid{display:flex;flex-direction:column;gap:16px}#view-settings .panel{width:100%}#view-settings .unit-block{display:flex;flex-wrap:wrap;gap:10px 14px}#view-settings .unit-block label{display:inline-flex;align-items:center;gap:6px}.ctrl-spec-th{padding:8px;font-weight:700;color:#495057}.ctrl-spec-input-sm{padding:4px;border:1px solid #ccc;border-radius:4px;font-size:.85em}.ctrl-spec-input{padding:6px;border:1px solid #ccc;border-radius:4px;font-size:.9em}.ctrl-spec-label{font-weight:700;font-size:.85em;color:#555}.ctrl-spec-label-sm{font-weight:700;font-size:.8em;color:#555}.ctrl-spec-form-col{display:flex;flex-direction:column;gap:4px}.ctrl-spec-form-col-sm{display:flex;flex-direction:column;gap:2px}.ctrl-spec-flex-row{display:flex;gap:8px}.ctrl-spec-thead-tr{background:#f8f9fa;border-bottom:2px solid #dee2e6}.ctrl-spec-table{width:100%;border-collapse:collapse;font-size:.9em;text-align:left}.ctrl-spec-panel-title{margin:0 0 5px;font-size:1.1em;color:#333}.ctrl-spec-panel-help{margin:0;color:#666;font-size:.9em}.ctrl-spec-form-col1{flex:1}.ctrl-spec-empty-cell{padding:20px;text-align:center;color:#888;background:#fafafa}.ctrl-spec-help-text{color:#666;font-size:.9em}.ctrl-spec-scroll-panel{flex:1;min-height:0;overflow:auto;border:1px solid #ddd;border-radius:4px;background:#fff}.ctrl-spec-toolbar-sep{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:6px;border-top:1px solid #eee}.ctrl-spec-toolbar-mb{margin-bottom:12px;display:flex;gap:10px;align-items:center}.text-danger{color:#dc3545}.ctrl-spec-label-xs{font-weight:700;font-size:.82em;color:#555}.ctrl-spec-input-md{padding:6px;border:1px solid #ccd6e0;border-radius:4px;font-size:.88em}.text-muted-sm{font-size:.8em;color:#888}.ctrl-spec-error-msg{color:#dc3545;font-size:.85em;display:none;background:#f8d7da;padding:8px;border-radius:4px;border:1px solid #f5c6cb}.ctrl-spec-th-action{width:110px}.ctrl-spec-section-title{margin:0 0 5px;font-size:1.15em;color:#333;border-bottom:1px solid #eee;padding-bottom:8px}button.primary,button.secondary{padding:6px 12px;font-weight:700;border-radius:4px;border:none;cursor:pointer}button.primary{background:#007bff;color:#fff}button.secondary{background:#fff;color:#333;border:1px solid #ccc}.skill-item-checkbox-label{display:flex;align-items:center;gap:8px;width:100%;cursor:pointer;margin:0}.ctrl-action-header{display:flex;justify-content:space-between;align-items:center;width:100%}.ctrl-action-title{font-weight:700;font-size:.9em;color:#333}.ctrl-action-btns{display:flex;gap:5px}.ctrl-action-btn-sm{padding:2px 6px;font-size:.8em}.ctrl-action-meta{font-size:.8em;color:#666;display:flex;gap:10px;flex-wrap:wrap}.text-blue{color:#007bff}.text-green{color:#28a745}.text-purple{color:#6f42c1}.ctrl-spec-tr{border-bottom:1px solid #dee2e6}.ctrl-spec-td{padding:10px 8px}.ctrl-spec-td-muted{padding:10px 8px;color:#555}.ctrl-spec-td-help{padding:10px 8px;color:#666}.ctrl-spec-td-mono{padding:10px 8px;font-family:monospace}.ctrl-spec-td-mono-bold{padding:10px 8px;font-family:monospace;font-weight:700}.ctrl-spec-td-mono-bold-muted{padding:10px 8px;font-family:monospace;font-weight:700;color:#555}.ctrl-spec-td-mono-bold-dark{padding:10px 8px;font-family:monospace;font-weight:700;color:#333}.ctrl-spec-td-bold{padding:10px 8px;font-weight:700;color:#333}.ctrl-spec-td-btns{padding:10px 8px;display:flex;gap:5px}.ctrl-spec-td-desc{padding:10px 8px;color:#555;max-width:260px;white-space:normal}.ctrl-spec-td-desc-360{padding:10px 8px;color:#555;max-width:360px;white-space:normal}.ctrl-spec-td-mono-muted{padding:10px 8px;color:#555;font-family:monospace}.ctrl-spec-td-desc-320{padding:10px 8px;color:#555;max-width:320px;white-space:normal}.ctrl-spec-td-desc-520{padding:10px 8px;color:#555;max-width:520px;white-space:normal}.ctrl-spec-td-mono-id{padding:10px 8px;font-family:monospace;color:#333}.ctrl-spec-td-bold-help{padding:10px 8px;color:#666;font-weight:700}.ctrl-action-target-btns{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}.ctrl-source-label{font-size:.85em;color:#888;margin-bottom:4px}.ctrl-spec-scroll-y{flex:1;overflow-y:auto;border:1px solid #ddd;border-radius:4px;background:#fff}.ctrl-spec-meta-right{margin-left:auto;color:#666;font-size:.9em}.ctrl-spec-toolbar-flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ctrl-spec-tabpanel-col{height:100%;display:none;flex-direction:column;gap:12px;padding:10px}.ctrl-spec-form-actions{margin-top:10px;display:flex;gap:8px;justify-content:flex-end}.ctrl-spec-flex-gap{display:flex;gap:10px}.ctrl-spec-ml{margin-left:8px}.ctrl-spec-td-truncate-150{padding:10px 8px;color:#666;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
