*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0a0a0f;--surface-1: #12121a;--surface-2: #1a1a26;--surface-3: #24243a;--border: #1e1e2e;--border-light: #2a2a3e;--text: #e0e0e8;--text-dim: #8888a0;--text-muted: #55556a;--phase-analyze: #3b82f6;--phase-plan: #a855f7;--phase-execute: #22c55e;--phase-evaluate: #06b6d4;--phase-complete: #f59e0b;--phase-failed: #ef4444;--op-cut: #ef4444;--op-fade: #3b82f6;--op-normalize: #22c55e;--op-concat: #f59e0b;--radius: 8px;--radius-sm: 4px;--font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh}.app{max-width:1400px;margin:0 auto;padding:24px;display:flex;flex-direction:column;gap:20px;min-height:100vh}.app__header{display:flex;align-items:center;justify-content:space-between}.app__title{font-size:20px;font-weight:600;letter-spacing:-.02em}.app__header-right{display:flex;align-items:center;gap:12px}.app__connection{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-dim)}.app__settings{position:relative}.app__settings-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-1);color:var(--text-dim);cursor:pointer;transition:color .15s,border-color .15s,background .15s}.app__settings-btn:hover{color:var(--text);border-color:var(--text-dim);background:var(--surface-2, rgba(255,255,255,.06))}.app__settings-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:360px;max-height:70vh;overflow-y:auto;background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 8px 24px #0006;z-index:100;display:flex;flex-direction:column;gap:2px;padding:8px}.settings-section{background:transparent!important;border:none!important}.settings-section__header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:var(--radius-sm);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}.settings-section__header:hover{background:#ffffff0a}.settings-section__title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text)}.settings-section__count{font-size:11px;font-weight:500;color:var(--text-dim);background:#ffffff14;padding:1px 7px;border-radius:10px}.settings-section__chevron{font-size:11px;color:var(--text-dim)}.settings-section__body{padding:4px 10px 10px;max-height:250px;overflow-y:auto}.app__settings-dropdown .run-history__list{max-height:250px;overflow-y:auto;padding:4px 10px 10px}.app__settings-dropdown .settings-section+.settings-section{border-top:1px solid var(--border)!important;margin-top:2px;padding-top:2px}.app__dot{width:8px;height:8px;border-radius:50%}.app__dot--on{background:var(--phase-execute);box-shadow:0 0 6px var(--phase-execute)}.app__dot--off{background:var(--phase-failed)}.app__banner{padding:10px 16px;border-radius:var(--radius-sm);font-size:13px}.app__banner--warning{background:#f59e0b1a;border:1px solid rgba(245,158,11,.3);color:var(--phase-complete)}.app__banner--historical{background:#a855f71a;border:1px solid rgba(168,85,247,.3);color:var(--phase-plan);display:flex;align-items:center;justify-content:space-between}.app__banner-btn{padding:4px 12px;font-size:12px;font-weight:600;background:var(--surface-3);border:1px solid var(--border-light);border-radius:var(--radius-sm);color:var(--text);cursor:pointer;transition:all .15s}.app__banner-btn:hover{background:var(--phase-plan);border-color:var(--phase-plan);color:#fff}.app__main{display:grid;grid-template-columns:1fr 360px;gap:20px;flex:1;min-height:0}.app__timeline-col{min-height:0}.app__sidebar{display:flex;flex-direction:column;gap:16px;min-height:0;overflow-y:auto}.app__summary{background:linear-gradient(135deg,#34d3990f,#06b6d40a);border:1px solid rgba(52,211,153,.25);border-radius:var(--radius);padding:16px 20px;margin-top:8px}.app__summary-title{font-size:14px;font-weight:600;color:#34d399;margin:0 0 10px;text-transform:uppercase;letter-spacing:.5px}.app__summary-body{font-size:13px;line-height:1.7;color:var(--text)}.app__summary-body h4{font-size:13px;font-weight:600;color:var(--text);margin:12px 0 4px}.app__summary-body h4:first-child{margin-top:0}.app__summary-body p{margin:4px 0}.app__summary-body ul{margin:4px 0;padding-left:18px}.app__summary-body li{margin:2px 0}.app__summary-body code{font-family:var(--font-mono);font-size:12px;background:#ffffff0f;padding:1px 5px;border-radius:3px}.app__summary-body strong{color:var(--text);font-weight:600}.evaluation-view__retry-btn--rerun{background:var(--surface-3);border-color:var(--border-light)}.app__agents{margin:8px 0}.debug-panel__tab{position:fixed;right:0;top:50%;transform:translateY(-50%);writing-mode:vertical-rl;text-orientation:mixed;padding:12px 6px;background:var(--surface-2);border:1px solid var(--border);border-right:none;border-radius:6px 0 0 6px;color:var(--text-muted);font-family:var(--font-mono);font-size:11px;cursor:pointer;z-index:100;transition:background .15s,color .15s}.debug-panel__tab:hover,.debug-panel__tab--open{background:var(--surface-3);color:var(--text)}.debug-panel__tab-text{white-space:nowrap}.debug-panel{position:fixed;right:0;top:0;bottom:0;background:var(--surface-1);border-left:1px solid var(--border);display:flex;flex-direction:column;z-index:99;box-shadow:-4px 0 16px #0000004d}.debug-panel__resize{position:absolute;left:-3px;top:0;bottom:0;width:6px;cursor:col-resize;z-index:1}.debug-panel__resize:hover{background:var(--accent);opacity:.3}.debug-panel__header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);flex-shrink:0}.debug-panel__title{font-weight:600;font-size:13px;color:var(--text)}.debug-panel__count{font-family:var(--font-mono);font-size:11px;color:var(--text-muted)}.debug-panel__content{flex:1;overflow-y:auto;overflow-x:hidden}.debug-panel__content .timeline{height:auto;border:none;border-radius:0;padding:8px 12px;overflow-y:visible}.file-drop-zone{padding:16px 20px;background:var(--surface-1);border:2px dashed var(--border-light);border-radius:var(--radius);cursor:pointer;text-align:center;transition:border-color .15s,background .15s}.file-drop-zone:hover{border-color:var(--phase-analyze);background:var(--surface-2)}.file-drop-zone--drag-over{border-color:var(--phase-analyze);background:#3b82f614}.file-drop-zone--has-file{border-style:solid;border-color:var(--border);text-align:left;padding:10px 16px}.file-drop-zone__placeholder{color:var(--text-muted);font-size:14px}.file-drop-zone__file-row{display:flex;align-items:center;gap:12px;width:100%}.file-drop-zone__filename{color:var(--text);font-size:14px;font-weight:500}.file-drop-zone__change-btn{background:none;border:1px solid var(--border-light);border-radius:var(--radius-sm);color:var(--text-dim);font-size:12px;padding:2px 10px;cursor:pointer;transition:color .15s,border-color .15s}.file-drop-zone__change-btn:hover{color:var(--text);border-color:var(--phase-analyze)}.intent-input{display:flex;gap:12px;align-items:stretch;padding:16px 18px;background:linear-gradient(135deg,#3b82f60f,#a855f70f);border:1px solid rgba(59,130,246,.3);border-radius:var(--radius);position:relative;box-shadow:0 0 20px #3b82f614,inset 0 1px #ffffff08;animation:intent-glow 3s ease-in-out infinite}@keyframes intent-glow{0%,to{box-shadow:0 0 20px #3b82f614,inset 0 1px #ffffff08}50%{box-shadow:0 0 28px #3b82f626,0 0 8px #6366f11a,inset 0 1px #ffffff08}}.intent-input:focus-within{border-color:#3b82f680;animation:none;box-shadow:0 0 24px #3b82f633,inset 0 1px #ffffff08}.intent-input__label{display:flex;align-items:center;font-size:13px;font-weight:700;letter-spacing:.04em;color:var(--phase-analyze);white-space:nowrap;flex-shrink:0}.intent-input__text{flex:1;padding:10px 16px;background:#0a0a0f99;border:1px solid var(--border);border-radius:var(--radius);color:var(--text);font-size:15px;outline:none;transition:border-color .2s,box-shadow .2s}.intent-input__text:focus{border-color:var(--phase-analyze);box-shadow:0 0 0 3px #3b82f626}.intent-input__text:disabled{opacity:.5}.intent-input__text::placeholder{color:var(--text-dim);font-style:italic}.intent-input__submit{padding:10px 28px;background:linear-gradient(135deg,var(--phase-analyze),#6366f1);border:none;border-radius:var(--radius);color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:transform .15s,box-shadow .15s;box-shadow:0 2px 8px #3b82f64d}.intent-input__submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #3b82f666}.intent-input__submit:active:not(:disabled){transform:translateY(0)}.intent-input__submit:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}.agent-progress{display:flex;align-items:center;justify-content:center;gap:0;padding:16px 0;flex-wrap:wrap}.agent-progress__step{display:flex;align-items:center;gap:8px}.agent-progress__dot{width:12px;height:12px;border-radius:50%;background:var(--surface-3);border:2px solid var(--border-light);transition:all .3s;flex-shrink:0}.agent-progress__step--done .agent-progress__dot{background:var(--phase-execute);border-color:var(--phase-execute)}.agent-progress__step--active .agent-progress__dot{animation:pulse-dot 1.5s ease-in-out infinite}.agent-progress__step--failed .agent-progress__dot{border-color:var(--phase-failed);background:var(--phase-failed)}.agent-progress__label{font-size:13px;font-weight:500;color:var(--text-muted);transition:color .3s;text-transform:capitalize}.agent-progress__step--done .agent-progress__label,.agent-progress__step--active .agent-progress__label{color:var(--text)}.agent-progress__line{width:32px;height:2px;background:var(--border);margin:0 4px;transition:background .3s}.agent-progress__step--done+.agent-progress__line,.agent-progress__step--done .agent-progress__line{background:var(--phase-execute)}.agent-progress__duration{font-size:11px;font-family:var(--font-mono);color:var(--text-muted);margin-left:4px;font-weight:400}.agent-progress__step--done .agent-progress__duration{color:inherit;opacity:.7}.agent-progress--agentic .agent-progress__line{width:20px}.exec-timeline{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:16px}.exec-timeline__header{font-size:13px;font-weight:600;color:var(--text-muted);margin-bottom:12px;font-family:var(--font-mono)}.exec-timeline__live{color:#34d399;font-size:11px;margin-left:8px;animation:bar-pulse 1.5s ease-in-out infinite}.exec-timeline__track{display:flex;flex-direction:column;gap:4px}.exec-timeline__row{display:flex;flex-direction:column}.exec-timeline__agent-row{display:flex;align-items:center;gap:8px;height:32px}.exec-timeline__label{width:130px;flex-shrink:0;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500}.exec-timeline__icon{font-size:14px}.exec-timeline__bar-track{flex:1;position:relative;height:26px}.exec-timeline__bar{position:absolute;top:0;height:24px;border-radius:4px;display:flex;align-items:center;padding:0 8px;transition:opacity .2s;min-width:0;opacity:.85}.exec-timeline__bar--clickable{cursor:pointer}.exec-timeline__bar--clickable:hover{opacity:1}.exec-timeline__bar--running{animation:bar-pulse 1.5s ease-in-out infinite}@keyframes bar-pulse{0%,to{opacity:.85}50%{opacity:.5}}.exec-timeline__bar-label{font-size:11px;font-weight:600;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exec-timeline__tool-detail{margin-left:130px;padding:6px 8px 8px;margin-top:2px;margin-bottom:4px;background:var(--surface-2);border-radius:4px;border-left:3px solid var(--border-light)}.exec-timeline__tool-detail--parallel{border-left-color:#f59e0b}.timeline__highlight{animation:highlight-flash 2.5s ease-out;border-radius:4px}.timeline__highlight>.timeline__card{box-shadow:0 0 0 2px #fbbf2499;border-radius:4px}@keyframes highlight-flash{0%,40%{background:#fbbf2440}to{background:transparent}}.exec-timeline__tool-track{position:relative}.exec-timeline__tool{position:absolute;top:0;height:24px;border-radius:3px;display:flex;align-items:center;cursor:pointer;transition:opacity .15s;overflow:hidden}.exec-timeline__tool:hover{opacity:.8}.exec-timeline__tool-label{font-size:11px;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}.exec-timeline__tool-dur{font-size:10px;font-family:var(--font-mono);opacity:.7}.timeline{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);padding:16px;overflow-y:auto;height:calc(100vh - 260px);position:relative;display:flex;flex-direction:column;gap:8px}.timeline--empty{display:flex;align-items:center;justify-content:center}.timeline__placeholder{color:var(--text-muted);font-size:14px}.timeline__jump{position:sticky;bottom:0;align-self:center;padding:6px 16px;background:var(--surface-3);border:1px solid var(--border-light);border-radius:16px;color:var(--text-dim);font-size:12px;cursor:pointer}.timeline__card{animation:fade-in .2s ease-out}.timeline__card--mode{text-align:center;padding:8px 0}.timeline__mode-banner{display:inline-block;padding:4px 16px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);background:var(--surface-2);border-radius:12px;border:1px solid var(--border)}.timeline__card--mode[data-mode=analyze] .timeline__mode-banner{color:var(--phase-analyze);border-color:#3b82f64d}.timeline__card--mode[data-mode=plan] .timeline__mode-banner{color:var(--phase-plan);border-color:#a855f74d}.timeline__card--mode[data-mode=execute] .timeline__mode-banner{color:var(--phase-execute);border-color:#22c55e4d}.timeline__card--tool{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm)}.timeline__tool-header{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;-webkit-user-select:none;user-select:none}.timeline__tool-header:hover{background:var(--surface-3)}.timeline__tool-status{width:18px;text-align:center;font-size:12px}.timeline__card--tool-completed .timeline__tool-status{color:var(--phase-execute)}.timeline__card--tool-error .timeline__tool-status{color:var(--phase-failed)}.timeline__tool-name{font-family:var(--font-mono);font-size:13px;font-weight:500;flex:1}.timeline__expand{font-size:10px;color:var(--text-muted)}.timeline__tool-details{border-top:1px solid var(--border);padding:8px 12px;display:flex;flex-direction:column;gap:8px}.timeline__tool-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:4px}.timeline__tool-code{font-family:var(--font-mono);font-size:12px;background:var(--bg);padding:8px;border-radius:var(--radius-sm);overflow-x:auto;white-space:pre-wrap;word-break:break-all;max-height:200px;overflow-y:auto;color:var(--text-dim)}.timeline__tool-section--error .timeline__tool-code{color:var(--phase-failed)}.timeline__card--message{padding:8px 12px}.timeline__message-text{font-size:14px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word}.timeline__cursor{display:inline-block;width:2px;height:16px;background:var(--text);margin-left:2px;vertical-align:text-bottom;animation:blink .8s step-end infinite}.timeline__card--shell{padding:0;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm)}.timeline__shell-header{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;-webkit-user-select:none;user-select:none}.timeline__shell-header:hover{background:var(--surface-3)}.timeline__shell-icon{font-family:var(--font-mono);font-size:12px;color:var(--text-muted);flex-shrink:0}.timeline__shell-summary{font-family:var(--font-mono);font-size:12px;color:var(--text-dim);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline__shell-output{font-family:var(--font-mono);font-size:12px;color:var(--text-dim);padding:6px 12px;background:#0000004d;border-top:1px solid var(--border);overflow-x:auto;white-space:pre-wrap;max-height:150px;overflow-y:auto}.timeline__card--error{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;background:#ef444414;border:1px solid rgba(239,68,68,.2);border-radius:var(--radius-sm);color:var(--phase-failed);font-size:13px}.timeline__error-icon{flex-shrink:0}.timeline__card--pipeline{text-align:center;padding:10px;font-size:13px;font-weight:600;color:var(--text-dim)}.timeline__card--pipeline-started{color:var(--phase-analyze)}.timeline__card--pipeline-complete{color:var(--phase-complete)}.timeline__timestamp{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);flex-shrink:0}.timeline__card--approval{display:flex;align-items:center;gap:8px;padding:6px 12px;font-size:12px;color:var(--text-muted);background:#a855f70d;border:1px solid rgba(168,85,247,.15);border-radius:var(--radius-sm)}.timeline__approval-icon{flex-shrink:0}.timeline__approval-text{flex:1}.timeline__approval-text strong{color:var(--text-dim);font-family:var(--font-mono)}.timeline__card--state-change{display:flex;align-items:center;gap:8px;padding:6px 12px;font-size:12px;color:var(--text-muted);background:#3b82f60d;border:1px solid rgba(59,130,246,.15);border-radius:var(--radius-sm)}.timeline__state-label{font-family:var(--font-mono);color:var(--text-dim)}.timeline__state-arrow{color:var(--text-muted)}.timeline__state-value{font-family:var(--font-mono);font-weight:600;color:var(--phase-analyze)}.timeline__card--question{display:flex;align-items:flex-start;gap:8px;padding:8px 12px;font-size:12px;color:var(--text-dim);background:#f59e0b0d;border:1px solid rgba(245,158,11,.15);border-radius:var(--radius-sm)}.timeline__question-icon{flex-shrink:0}.timeline__question-text{flex:1}.timeline__question-answer{font-size:11px;color:var(--text-muted);font-style:italic}.timeline__card--system-prompt{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);border-left:3px solid var(--text-muted)}.timeline__card--system-prompt[data-mode=analyze]{border-left-color:var(--phase-analyze)}.timeline__card--system-prompt[data-mode=plan]{border-left-color:var(--phase-plan)}.timeline__card--system-prompt[data-mode=execute]{border-left-color:var(--phase-execute)}.timeline__system-prompt-header{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;-webkit-user-select:none;user-select:none}.timeline__system-prompt-header:hover{background:var(--surface-3)}.timeline__system-prompt-icon{font-family:var(--font-mono);font-size:10px;font-weight:700;padding:1px 6px;border-radius:var(--radius-sm);background:var(--surface-3);color:var(--text-muted);flex-shrink:0}.timeline__system-prompt-label{font-size:12px;font-weight:500;color:var(--text-dim);flex:1}.timeline__system-prompt-body{font-family:var(--font-mono);font-size:11px;color:var(--text-dim);padding:8px 12px;background:#0000004d;border-top:1px solid var(--border);overflow-x:auto;white-space:pre-wrap;max-height:250px;overflow-y:auto;line-height:1.5}.timeline__card--user-message{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);border-left:3px solid var(--text-muted)}.timeline__card--user-message[data-mode=analyze]{border-left-color:var(--phase-analyze)}.timeline__card--user-message[data-mode=plan]{border-left-color:var(--phase-plan)}.timeline__card--user-message[data-mode=execute]{border-left-color:var(--phase-execute)}.timeline__user-message-header{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;-webkit-user-select:none;user-select:none}.timeline__user-message-header:hover{background:var(--surface-3)}.timeline__user-message-icon{font-family:var(--font-mono);font-size:10px;font-weight:700;padding:1px 6px;border-radius:var(--radius-sm);background:#60a5fa26;color:#60a5fa;flex-shrink:0}.timeline__user-message-label{font-size:12px;font-weight:500;color:var(--text-dim);flex:1}.timeline__user-message-body{font-family:var(--font-mono);font-size:11px;color:var(--text-dim);padding:8px 12px;background:#0000004d;border-top:1px solid var(--border);overflow-x:auto;white-space:pre-wrap;max-height:250px;overflow-y:auto;line-height:1.5}.app__intent{display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius)}.app__intent-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);flex-shrink:0}.app__intent-text{font-size:14px;color:var(--text)}.panel{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.panel__header{display:flex;align-items:center;justify-content:space-between;cursor:pointer;-webkit-user-select:none;user-select:none;margin-bottom:0}.panel__header:hover{opacity:.85}.panel__header .panel__title{margin-bottom:0}.panel__toggle{font-size:12px;color:var(--text-muted);flex-shrink:0}.panel__body{margin-top:12px}.panel__title{font-size:14px;font-weight:600;margin-bottom:12px;color:var(--text)}.analysis-view__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.analysis-view__stat{display:flex;flex-direction:column;gap:2px}.analysis-view__stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.analysis-view__stat-value{font-size:14px;font-weight:500;font-family:var(--font-mono)}.analysis-view__subtitle{font-size:12px;font-weight:600;color:var(--text-dim);margin-top:12px;margin-bottom:6px}.analysis-view__silence-list{display:flex;flex-direction:column;gap:4px}.analysis-view__silence-item{font-size:13px;font-family:var(--font-mono);color:var(--text-dim);display:flex;align-items:center;gap:8px}.analysis-view__silence-dur{margin-left:auto;color:var(--text-muted);font-size:12px}.edit-plan-view__reasoning{font-size:13px;color:var(--text-dim);margin-bottom:12px;line-height:1.5}.edit-plan-view__steps{display:flex;flex-direction:column;gap:8px}.edit-plan-view__step{display:flex;align-items:center;gap:8px;font-size:13px}.edit-plan-view__index{width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--surface-3);font-size:11px;font-weight:600;flex-shrink:0}.edit-plan-view__badge{padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;font-family:var(--font-mono);text-transform:lowercase;color:#fff;flex-shrink:0}.edit-plan-view__desc{color:var(--text-dim);flex:1}.execute-view__duration{font-size:11px;font-family:var(--font-mono);color:var(--phase-execute);font-weight:400;margin-left:8px}.execute-view__summary{display:flex;gap:12px;margin-bottom:10px}.execute-view__stat{font-size:12px;font-family:var(--font-mono);color:var(--text-dim)}.execute-view__stat--error{color:var(--phase-failed)}.execute-view__tools{display:flex;flex-direction:column;gap:4px}.execute-view__tool{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm)}.execute-view__tool-header{display:flex;align-items:center;gap:8px;padding:6px 10px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:13px}.execute-view__tool-header:hover{background:var(--surface-3)}.execute-view__tool-icon{width:16px;text-align:center;font-size:12px;flex-shrink:0}.execute-view__tool--completed .execute-view__tool-icon{color:var(--phase-execute)}.execute-view__tool--error .execute-view__tool-icon{color:var(--phase-failed)}.execute-view__tool-name{font-family:var(--font-mono);font-size:12px;flex:1}.execute-view__tool-details{border-top:1px solid var(--border);padding:6px 10px;display:flex;flex-direction:column;gap:4px}.execute-view__tool-code{font-family:var(--font-mono);font-size:11px;color:var(--text-dim);background:var(--bg);padding:6px 8px;border-radius:var(--radius-sm);overflow-x:auto;white-space:pre-wrap;word-break:break-all;max-height:120px;overflow-y:auto}.execute-view__tool-code--error{color:var(--phase-failed)}.execute-view__output{margin-top:10px;display:flex;align-items:center;gap:8px}.execute-view__output-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.execute-view__output-file{font-family:var(--font-mono);font-size:13px;color:var(--phase-execute)}.audio-player__tracks{display:flex;flex-direction:column;gap:12px}.audio-player__track{display:flex;flex-direction:column;gap:6px}.audio-player__label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.audio-player__track audio{width:100%;height:36px}.run-history{padding:0}.run-history__header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;cursor:pointer;-webkit-user-select:none;user-select:none}.run-history__header:hover{background:var(--surface-2)}.run-history__title{display:flex;align-items:center;gap:8px;margin-bottom:0}.run-history__count{font-size:11px;font-weight:600;background:var(--surface-3);color:var(--text-dim);padding:1px 7px;border-radius:10px}.run-history__toggle{font-size:12px;color:var(--text-muted)}.run-history__list{display:flex;flex-direction:column;gap:1px;border-top:1px solid var(--border);max-height:300px;overflow-y:auto}.run-history__card{padding:10px 16px;display:flex;flex-direction:column;gap:4px;transition:background .1s}.run-history__card:hover{background:var(--surface-2)}.run-history__card--current{border-left:2px solid var(--phase-analyze);background:#3b82f60a}.run-history__card-header{display:flex;align-items:center;gap:8px}.run-history__status{width:7px;height:7px;border-radius:50%;flex-shrink:0}.run-history__status--complete{background:var(--phase-execute)}.run-history__status--running{background:var(--phase-analyze);animation:pulse-dot 1.5s ease-in-out infinite}.run-history__status--failed{background:var(--phase-failed)}.run-history__file{font-size:13px;font-weight:500;font-family:var(--font-mono);color:var(--text);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.run-history__time{font-size:11px;font-family:var(--font-mono);color:var(--text-muted);flex-shrink:0}.run-history__intent{font-size:12px;color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.run-history__meta{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--text-muted)}.run-history__duration{font-family:var(--font-mono)}.run-history__play{margin-left:auto;padding:2px 10px;font-size:11px;font-weight:600;background:var(--surface-3);border:1px solid var(--border-light);border-radius:10px;color:var(--text-dim);cursor:pointer;transition:all .15s}.run-history__play:hover{background:var(--phase-analyze);border-color:var(--phase-analyze);color:#fff}.spinner{display:inline-block;width:12px;height:12px;border:2px solid var(--border-light);border-top-color:var(--phase-analyze);border-radius:50%;animation:spin .6s linear infinite}@keyframes pulse-dot{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:.7}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}@keyframes fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}.evaluation-view__score-badge{display:inline-block;margin-left:.5rem;padding:.15rem .5rem;border-radius:12px;font-size:.75rem;font-weight:700;font-variant-numeric:tabular-nums}.evaluation-view__score-badge--green{background:#22c55e33;color:#22c55e}.evaluation-view__score-badge--yellow{background:#f59e0b33;color:#f59e0b}.evaluation-view__score-badge--red{background:#ef444433;color:#ef4444}.evaluation-view__spinner{display:inline-block;width:14px;height:14px;margin-left:.5rem;border:2px solid var(--phase-evaluate);border-top-color:transparent;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle}.evaluation-view__loading{color:var(--text-dim);font-size:.85rem;padding:.5rem 0}.evaluation-view__scores{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.evaluation-view__score-row{display:grid;grid-template-columns:100px 1fr 36px;grid-template-rows:auto auto;gap:0 .5rem;align-items:center}.evaluation-view__score-label{font-size:.8rem;color:var(--text-dim);text-transform:capitalize}.evaluation-view__score-bar-track{height:6px;background:var(--surface-3);border-radius:3px;overflow:hidden}.evaluation-view__score-bar-fill{height:100%;border-radius:3px;transition:width .4s ease}.evaluation-view__score-bar-fill--green{background:#22c55e}.evaluation-view__score-bar-fill--yellow{background:#f59e0b}.evaluation-view__score-bar-fill--red{background:#ef4444}.evaluation-view__score-value{font-size:.8rem;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}.evaluation-view__score-value--green{color:#22c55e}.evaluation-view__score-value--yellow{color:#f59e0b}.evaluation-view__score-value--red{color:#ef4444}.evaluation-view__score-detail{grid-column:1 / -1;font-size:.75rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evaluation-view__summary{font-size:.85rem;color:var(--text);line-height:1.5;margin-bottom:.75rem}.evaluation-view__suggestions{margin-bottom:.75rem}.evaluation-view__suggestions-title{font-size:.8rem;color:var(--text-dim);margin-bottom:.35rem}.evaluation-view__suggestions-list{padding-left:1.2rem;font-size:.8rem;color:var(--text);line-height:1.6}.evaluation-view__retry-btn{width:100%;padding:.5rem;border:1px solid var(--phase-evaluate);border-radius:6px;background:#06b6d41a;color:var(--phase-evaluate);font-size:.85rem;font-weight:600;cursor:pointer;transition:background .15s,transform .1s}.evaluation-view__retry-btn:hover{background:#06b6d433}.evaluation-view__retry-btn:active{transform:scale(.98)}.evaluation-view__retry-exhausted{text-align:center;font-size:.8rem;color:var(--text-muted);padding:.35rem 0}.timeline__card--context-summary{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);border-left:3px solid var(--text-muted)}.timeline__card--context-summary[data-mode=analyze]{border-left-color:var(--phase-analyze)}.timeline__card--context-summary[data-mode=plan]{border-left-color:var(--phase-plan)}.timeline__card--context-summary[data-mode=execute]{border-left-color:var(--phase-execute)}.timeline__card--context-summary[data-mode=evaluate]{border-left-color:var(--phase-evaluate)}.timeline__context-header{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;-webkit-user-select:none;user-select:none}.timeline__context-header:hover{background:var(--surface-3)}.timeline__context-icon{font-family:var(--font-mono);font-size:10px;font-weight:700;padding:1px 6px;border-radius:var(--radius-sm);background:#a855f726;color:#a855f7;flex-shrink:0}.timeline__context-label{font-size:12px;font-weight:500;color:var(--text-dim);flex:1}.timeline__context-tokens{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);background:var(--surface-3);padding:1px 6px;border-radius:var(--radius-sm)}.timeline__context-memories{font-family:var(--font-mono);font-size:11px;color:#a855f7;background:#a855f71a;padding:1px 6px;border-radius:var(--radius-sm)}.timeline__context-details{border-top:1px solid var(--border);padding:6px 12px;display:flex;flex-direction:column;gap:4px}.timeline__context-piece{display:flex;align-items:center;gap:8px;font-size:12px}.timeline__context-piece-key{font-family:var(--font-mono);color:var(--text-dim);flex:1}.timeline__context-piece-size,.timeline__context-piece-chars{font-family:var(--font-mono);font-size:11px;color:var(--text-muted)}.memory-panel{padding:0}.memory-panel .panel__header{padding:12px 16px}.memory-panel .panel__header:hover{background:var(--surface-2)}.memory-panel .panel__body{margin-top:0;border-top:1px solid var(--border);padding:12px 16px}.memory__empty{font-size:12px;color:var(--text-muted);margin:0 0 8px}.memory__item{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 10px;margin-bottom:6px}.memory__item-header{display:flex;align-items:center;gap:6px;margin-bottom:4px}.memory__type-badge{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:1px 6px;border-radius:var(--radius-sm)}.memory__type-badge--preference{background:#a855f726;color:#a855f7}.memory__type-badge--correction{background:#f59e0b26;color:#f59e0b}.memory__type-badge--learned{background:#06b6d426;color:#06b6d4}.memory__item-source{font-size:10px;color:var(--text-muted);font-family:var(--font-mono);flex:1}.memory__delete-btn{background:none;border:none;color:var(--text-muted);font-size:16px;cursor:pointer;padding:0 4px;line-height:1}.memory__delete-btn:hover{color:var(--phase-failed)}.memory__item-content{font-size:12px;color:var(--text-dim);line-height:1.4}.memory__add-form{display:flex;gap:6px;margin-top:8px}.memory__type-select{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-dim);font-size:11px;padding:4px 6px;flex-shrink:0}.memory__input{flex:1;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:12px;padding:4px 8px;min-width:0}.memory__input::placeholder{color:var(--text-muted)}.memory__add-btn{background:#a855f71a;border:1px solid rgba(168,85,247,.3);border-radius:var(--radius-sm);color:#a855f7;font-size:11px;font-weight:600;padding:4px 10px;cursor:pointer;flex-shrink:0}.memory__add-btn:hover{background:#a855f733}.memory__add-btn:disabled{opacity:.4;cursor:default}@media(max-width:768px){.app{padding:16px 12px;gap:12px}.app__header{flex-wrap:wrap;gap:8px}.app__title{font-size:16px}.app__main{grid-template-columns:1fr}.app__settings-dropdown{position:fixed;top:auto;left:12px;right:12px;width:auto}.intent-input{flex-direction:column;gap:8px}.intent-input__label{white-space:normal}.intent-input__submit{width:100%}.timeline{height:calc(100vh - 200px)}.analysis-view__grid{grid-template-columns:1fr}.evaluation-view__score-row{grid-template-columns:80px 1fr 32px}.memory__add-form{flex-wrap:wrap}.memory__input{min-width:0;flex-basis:100%;order:-1}.music-editor__transport{flex-wrap:wrap;gap:8px}.music-editor__zoom{margin-left:0;width:100%;justify-content:flex-end}.music-editor__toolbar{flex-wrap:wrap;gap:6px}.agent-progress__line{width:16px}.agent-progress__label{font-size:11px}.app__settings-btn,.intent-input__submit,.music-editor__btn--transport,.music-editor__btn--edit,.evaluation-view__retry-btn,.memory__add-btn,.agent-card__expand{min-height:44px;min-width:44px}}@media(max-width:480px){.app{padding:8px;gap:10px}.app__title{font-size:14px}.app__header-right{gap:6px}.timeline{height:calc(100vh - 160px)}.agent-progress{gap:0}.agent-progress__line{width:8px}.agent-progress__label,.agent-progress__duration{display:none}.music-editor__zoom-slider{width:60px}.producer-bubble__content{max-width:95%}.agent-card__header{padding:8px 10px}.app__summary{padding:12px}}.music-editor{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;margin-bottom:12px}.music-editor__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.music-editor__label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--phase-analyze)}.music-editor__region-info{font-size:11px;font-family:var(--font-mono);color:var(--text-dim)}.music-editor__waveform{border-radius:var(--radius-sm);overflow:hidden;background:var(--surface-2);border:1px solid var(--border);min-height:128px}.music-editor__waveform-container{width:100%;min-height:128px;cursor:crosshair}.music-editor__transport{display:flex;align-items:center;gap:16px;padding:8px 0}.music-editor__transport-buttons{display:flex;gap:4px}.music-editor__btn{background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:var(--radius-sm);cursor:pointer;font-size:13px;transition:background .15s,border-color .15s}.music-editor__btn:hover:not(:disabled){background:var(--surface-3);border-color:var(--border-light)}.music-editor__btn:disabled{opacity:.35;cursor:not-allowed}.music-editor__btn--transport{width:36px;height:32px;font-size:16px;display:flex;align-items:center;justify-content:center}.music-editor__time{font-family:var(--font-mono);font-size:13px;color:var(--text-dim);min-width:100px}.music-editor__time-current{color:var(--text)}.music-editor__time-separator{margin:0 4px;color:var(--text-muted)}.music-editor__zoom{display:flex;align-items:center;gap:8px;margin-left:auto}.music-editor__zoom-label{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}.music-editor__zoom-slider{width:100px;height:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--surface-3);border-radius:2px;outline:none}.music-editor__zoom-slider::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--phase-analyze);cursor:pointer}.music-editor__toolbar{display:flex;align-items:center;gap:8px;padding-top:8px;border-top:1px solid var(--border)}.music-editor__toolbar-group{display:flex;gap:4px}.music-editor__toolbar-group--right{margin-left:auto}.music-editor__btn--edit{padding:4px 12px;font-size:12px;font-weight:500}.music-editor__btn--undo{padding:4px 12px;font-size:12px;font-weight:500;color:var(--text-dim)}.music-editor__processing{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--phase-execute)}.music-editor__waveform-container ::part(region){border:1px solid rgba(59,130,246,.5)}.timeline__card--delegation{background:var(--surface-2);border:1px solid var(--border);border-left:3px solid #888;border-radius:var(--radius-sm)}.timeline__card--delegation-error{border-left-color:#ef4444}.timeline__delegation-header{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;-webkit-user-select:none;user-select:none}.timeline__delegation-header:hover{background:var(--surface-3)}.timeline__delegation-status{width:18px;text-align:center;font-size:14px}.timeline__delegation-agent{font-family:var(--font-mono);font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.timeline__delegation-duration{font-family:var(--font-mono);font-size:11px;color:var(--text-dim);margin-left:auto}.timeline__delegation-details{padding:8px 12px;border-top:1px solid var(--border);font-size:13px}.timeline__delegation-task{color:var(--text-dim);margin-bottom:8px;line-height:1.4}.timeline__delegation-result{margin-top:8px}.timeline__delegation-result pre{margin-top:4px;max-height:200px;overflow-y:auto}.agent-work{padding:4px 0}.agent-work__title{font-size:14px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;margin:0 0 12px}.producer-bubble{display:flex;gap:10px;align-items:flex-start;margin-bottom:16px}.producer-bubble__avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#6366f1,#818cf8);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;box-shadow:0 0 8px #6366f14d}.producer-bubble__content{background:#6366f10f;border:1px solid rgba(99,102,241,.15);border-radius:2px 12px 12px;padding:10px 14px;max-width:85%;position:relative}.producer-bubble__name{font-size:11px;font-weight:600;color:#818cf8;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.producer-bubble__text{font-size:14px;color:var(--text);margin:0;line-height:1.5}.producer-bubble__text em{color:#818cf8e6;font-style:italic}.producer-bubble__status{font-size:12px;color:var(--text-dim);margin:6px 0 0;display:flex;align-items:center;gap:6px}.producer-bubble__status:before{content:"";width:6px;height:6px;border-radius:50%;background:#818cf8;animation:pulse 1.5s ease-in-out infinite}.agent-card{background:var(--surface-1);border:1px solid var(--border);border-left:3px solid #888;border-radius:var(--radius-sm);margin-bottom:8px;overflow:hidden}.agent-card--running{border-left-color:#fbbf24}.agent-card--error{border-left-color:#ef4444}.agent-card__header{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer}.agent-card__header:hover{background:var(--surface-2)}.agent-card__icon{font-size:18px;flex-shrink:0}.agent-card__info{flex:1;display:flex;align-items:baseline;gap:8px}.agent-card__name{font-weight:600;font-size:14px}.agent-card__duration{font-family:var(--font-mono);font-size:11px;color:var(--text-dim)}.agent-card__status{width:20px;text-align:center;font-size:14px}.agent-card__body{padding:0 14px 10px}.agent-card__working{color:var(--text-muted);font-style:italic;font-size:13px;margin:0}.agent-card__narrative{color:var(--text);font-size:13px;line-height:1.5;margin:0}.agent-card__tools{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.agent-card__tool-badge{font-family:var(--font-mono);font-size:10px;padding:2px 6px;background:var(--surface-3);border-radius:3px;color:var(--text-muted)}.agent-card__tool-badge--error{background:#ef444426;color:#ef4444}.agent-card__raw{padding:0 14px 10px;border-top:1px solid var(--border);margin-top:4px}.agent-card__raw pre{font-size:11px;color:var(--text-muted);white-space:pre-wrap;word-break:break-word;max-height:300px;overflow-y:auto;margin:8px 0 0}.agent-card__expand{display:block;width:100%;padding:6px;background:none;border:none;border-top:1px solid var(--border);color:var(--text-muted);font-size:11px;cursor:pointer;text-align:center}.agent-card__expand:hover{color:var(--text);background:var(--surface-2)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
