*{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;background:#f8f9fb;color:#1a1a2e;min-height:100vh;-webkit-font-smoothing:antialiased}#root{max-width:100%;margin:0;padding:0}.layout{display:flex;min-height:100vh}.page-wrapper{flex:1;max-width:820px;margin:0 auto;padding:2rem 1.5rem;display:flex;flex-direction:column;gap:1.5rem;min-height:100vh}.sidebar{width:240px;background:#fff;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;flex-shrink:0;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar-header{padding:24px 20px 20px;border-bottom:1px solid #e2e8f0}.sidebar-title{font-size:1.1rem;font-weight:700;color:#1a1a2e;letter-spacing:-.01em}.sidebar-subtitle{font-size:.72rem;color:#94a3b8;margin-top:2px}.sidebar-nav{display:flex;flex-direction:column;gap:4px;padding:12px 10px}.sidebar-link{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;border:none;background:transparent;color:#64748b;cursor:pointer;text-align:left;transition:all .15s;width:100%}.sidebar-link:hover{background:#f1f5f9;color:#1a1a2e}.sidebar-link.active{background:#eef2ff;color:#4f46e5}.sidebar-icon{width:20px;height:20px;flex-shrink:0}.sidebar-link-label{display:block;font-size:.85rem;font-weight:600}.sidebar-link-desc{display:block;font-size:.68rem;color:#94a3b8;margin-top:1px}.sidebar-link.active .sidebar-link-label{color:#4f46e5}.sidebar-link.active .sidebar-link-desc{color:#6366f1}.sidebar-overlay{display:none}.hamburger{display:none;flex-direction:column;gap:4px;background:none;border:none;cursor:pointer;padding:4px}.hamburger span{display:block;width:20px;height:2px;background:#64748b;border-radius:2px}.main{display:flex;flex-direction:column;gap:1.5rem;flex:1}.header{display:flex;align-items:center;gap:12px}.title{font-size:1.75rem;font-weight:700;color:#1a1a2e;letter-spacing:-.02em}.subtitle{font-size:.875rem;color:#64748b;margin-top:2px}.header-badge{display:flex;gap:6px;flex-shrink:0}.badge{display:inline-block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:4px 8px;border-radius:4px;background:#eef2ff;color:#4f46e5;white-space:nowrap}.server-status{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;font-size:.85rem}.status-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.server-status.online .status-indicator{background:#22c55e;box-shadow:0 0 0 3px #22c55e20}.server-status.offline .status-indicator{background:#ef4444;box-shadow:0 0 0 3px #ef444420}.server-status.loading .status-indicator{background:#f59e0b}.status-indicator.pulse{animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.status-details{display:flex;flex-direction:column;gap:1px;flex:1}.status-text{font-weight:600;color:#1a1a2e}.status-meta{font-size:.75rem;color:#94a3b8}.refresh-btn{background:none;border:1px solid #e2e8f0;border-radius:6px;padding:4px 10px;font-size:.75rem;color:#64748b;cursor:pointer;transition:all .15s}.refresh-btn:hover{background:#f1f5f9;border-color:#cbd5e1;color:#1a1a2e}.tabs{display:flex;gap:0;border-bottom:2px solid #e2e8f0}.tab{background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;padding:10px 20px;font-size:.9rem;font-weight:500;color:#94a3b8;cursor:pointer;transition:all .15s}.tab:hover{color:#1a1a2e}.tab.active{color:#4f46e5;border-bottom-color:#4f46e5;font-weight:600}.field-label{display:block;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-bottom:8px}.profile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.profile-card{display:flex;flex-direction:column;gap:4px;padding:12px;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;cursor:pointer;text-align:left;transition:all .15s}.profile-card:hover{border-color:#a5b4fc;background:#fafafe}.profile-card.active{border-color:#4f46e5;background:#eef2ff;box-shadow:0 0 0 2px #4f46e520}.profile-name{font-size:.85rem;font-weight:600;color:#1a1a2e;text-transform:capitalize}.profile-desc{font-size:.72rem;color:#94a3b8;line-height:1.3}.profile-meta{font-size:.7rem;font-weight:600;color:#4f46e5;margin-top:2px}.profile-card.active .profile-meta{color:#4338ca}.input-section{display:flex;flex-direction:column}textarea{width:100%;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;color:#1a1a2e;font-size:1.05rem;line-height:1.8;padding:14px 16px;resize:vertical;outline:none;font-family:Inter,Segoe UI,system-ui,sans-serif;transition:border-color .2s,box-shadow .2s;min-height:120px}textarea:focus{border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e510}textarea::placeholder{color:#94a3b8}.text-info{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px;font-size:.75rem;color:#94a3b8}.separator{color:#cbd5e1}.bucket{font-weight:600}.bucket-short{color:#22c55e}.bucket-medium{color:#f59e0b}.bucket-long{color:#ef4444}.streaming-badge{background:#ecfdf5;color:#059669;font-weight:600;font-size:.7rem;padding:2px 6px;border-radius:4px}.presets{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}.presets-label{font-size:.75rem;color:#94a3b8;font-weight:500}.preset-chip{background:#fff;border:1px solid #e2e8f0;border-radius:100px;padding:4px 10px;font-size:.72rem;color:#64748b;cursor:pointer;direction:rtl;transition:all .15s;white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis}.preset-chip:hover{background:#eef2ff;border-color:#a5b4fc;color:#4f46e5}.action-section{display:flex;align-items:center;gap:14px}.options-row{flex:1}.toggle-label{display:flex;align-items:center;gap:8px;font-size:.85rem;color:#1a1a2e;cursor:pointer}.toggle-label.disabled{color:#94a3b8;cursor:default}.toggle-label input[type=checkbox]{width:16px;height:16px;accent-color:#4f46e5;cursor:pointer}.toggle-label.disabled input[type=checkbox]{cursor:default}.toggle-hint{font-size:.7rem;color:#94a3b8;font-style:italic}.synth-btn{display:inline-flex;align-items:center;gap:8px;background:#4f46e5;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:.95rem;font-weight:600;padding:10px 28px;transition:all .15s;white-space:nowrap}.synth-btn:hover:not(:disabled){background:#4338ca}.synth-btn.busy{background:#64748b}.synth-btn.busy:hover{background:#475569}.synth-btn:disabled{opacity:.35;cursor:not-allowed}.shortcut-hint{font-size:.7rem;color:#94a3b8;white-space:nowrap}.spinner{display:inline-block;width:14px;height:14px;border:2px solid #ffffff40;border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.streaming-indicator{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#eef2ff;border-radius:8px;font-size:.85rem;color:#4f46e5;font-weight:500;margin-bottom:12px}.error-banner{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#dc2626;padding:10px 14px;font-size:.85rem}.results-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px}.section-title{font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-bottom:12px}.audio-player{width:100%;border-radius:8px;margin-bottom:16px}.stats-panel{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.stat-item{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 8px;background:#f8f9fb;border-radius:8px}.stat-value{font-size:1rem;font-weight:700;color:#4f46e5}.stat-label{font-size:.68rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.03em}.stress-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px}.stress-config{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.stress-field label.field-label{margin-bottom:4px}.stress-field input[type=number]{width:100%;background:#f8f9fb;border:1.5px solid #e2e8f0;border-radius:8px;padding:8px 12px;font-size:.9rem;color:#1a1a2e;outline:none;font-family:inherit;transition:border-color .15s}.stress-field input[type=number]:focus{border-color:#4f46e5}.stress-field input:disabled{opacity:.5;cursor:not-allowed}.stress-profiles{display:flex;gap:6px;flex-wrap:wrap}.stress-profile-btn{background:#f8f9fb;border:1.5px solid #e2e8f0;border-radius:6px;padding:5px 10px;font-size:.75rem;font-weight:500;color:#64748b;cursor:pointer;text-transform:capitalize;transition:all .15s}.stress-profile-btn:hover:not(:disabled){border-color:#a5b4fc}.stress-profile-btn.active{background:#eef2ff;border-color:#4f46e5;color:#4f46e5;font-weight:600}.stress-profile-btn:disabled{opacity:.5;cursor:not-allowed}.stress-actions,.stress-progress{margin-bottom:16px}.progress-bar{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden;margin-bottom:6px}.progress-fill{height:100%;background:#4f46e5;border-radius:3px;transition:width .2s ease}.progress-text{font-size:.75rem;color:#94a3b8}.stress-results{display:flex;flex-direction:column;gap:12px}.stress-results .stats-panel{grid-template-columns:repeat(4,1fr)}.stat-value.fail{color:#dc2626}.stress-ttfa{font-size:.8rem;color:#64748b;background:#f8f9fb;padding:8px 12px;border-radius:8px}.stress-breakdown{display:flex;flex-direction:column;gap:6px}.breakdown-grid{display:flex;flex-direction:column;gap:4px}.breakdown-card{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f8f9fb;border-radius:6px;font-size:.8rem}.breakdown-name{font-weight:600;color:#1a1a2e;text-transform:capitalize}.breakdown-stat{color:#64748b}.stress-errors{display:flex;flex-direction:column;gap:6px}.stress-errors .error-banner{font-size:.78rem}.asr-input-section{display:flex;flex-direction:column;gap:10px}.drop-zone{border:2px dashed #e2e8f0;border-radius:10px;padding:32px 20px;text-align:center;cursor:pointer;transition:all .15s;background:#fff}.drop-zone:hover{border-color:#a5b4fc;background:#fafafe}.drop-zone.has-file{border-color:#4f46e5;border-style:solid;background:#eef2ff;padding:16px 20px}.drop-zone-placeholder{display:flex;flex-direction:column;gap:4px;color:#94a3b8;font-size:.9rem}.drop-zone-hint{font-size:.72rem;color:#cbd5e1}.drop-zone-file{display:flex;align-items:center;gap:10px;justify-content:center}.drop-zone-filename{font-weight:600;color:#1a1a2e;font-size:.9rem}.drop-zone-size{font-size:.75rem;color:#94a3b8}.drop-zone-clear{background:none;border:1px solid #e2e8f0;border-radius:6px;padding:3px 10px;font-size:.72rem;color:#64748b;cursor:pointer;transition:all .15s}.drop-zone-clear:hover{background:#fef2f2;border-color:#fecaca;color:#dc2626}.record-row{display:flex;align-items:center;gap:10px}.record-btn{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;padding:8px 16px;font-size:.85rem;font-weight:500;color:#1a1a2e;cursor:pointer;transition:all .15s}.record-btn:hover{border-color:#ef4444;background:#fef2f2}.record-btn.recording{border-color:#ef4444;background:#fef2f2;color:#dc2626}.record-dot{width:10px;height:10px;border-radius:50%;background:#94a3b8;flex-shrink:0}.record-dot.active{background:#ef4444;animation:pulse 1s ease-in-out infinite}.recording-hint{font-size:.75rem;color:#ef4444;font-weight:500}.asr-options-section{display:flex;flex-direction:column}.lang-selector{display:flex;gap:8px}.lang-btn{padding:8px 20px;background:#fff;border:1.5px solid #e2e8f0;border-radius:8px;font-size:.85rem;font-weight:500;color:#64748b;cursor:pointer;transition:all .15s}.lang-btn:hover{border-color:#a5b4fc}.lang-btn.active{border-color:#4f46e5;background:#eef2ff;color:#4f46e5;font-weight:600}.transcription-text{background:#f8f9fb;border-radius:10px;padding:20px;font-size:1.1rem;line-height:2;color:#1a1a2e;margin-bottom:12px;min-height:60px}.no-speech{color:#94a3b8;font-style:italic}.asr-note{font-size:.8rem;color:#f59e0b;background:#fffbeb;padding:8px 12px;border-radius:6px;margin-bottom:12px}.agent-page{display:flex;flex-direction:column;flex:1;min-height:0}.agent-status-row{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.conversation-view{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-height:250px;max-height:50vh}.conversation-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;color:#94a3b8;text-align:center;gap:4px;font-size:.9rem}.conversation-empty-hint{font-size:.75rem;color:#cbd5e1}.chat-bubble{max-width:80%;padding:10px 14px;border-radius:12px;line-height:1.7}.chat-bubble.user{align-self:flex-end;background:#eef2ff;border-bottom-right-radius:4px}.chat-bubble.agent{align-self:flex-start;background:#f1f5f9;border-bottom-left-radius:4px}.chat-role{display:block;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;margin-bottom:2px}.chat-text{font-size:.95rem;color:#1a1a2e;margin:0}.typing-cursor{display:inline-block;width:2px;height:1em;background:#4f46e5;margin-left:2px;animation:blink .8s step-end infinite;vertical-align:text-bottom}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.agent-controls{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 0}.phase-badge{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600;color:#64748b;padding:4px 12px;border-radius:100px;background:#f1f5f9}.phase-badge.phase-listening{color:#059669;background:#ecfdf5}.phase-badge.phase-loading_vad,.phase-badge.phase-processing_asr,.phase-badge.phase-processing_llm{color:#d97706;background:#fffbeb}.phase-badge.phase-speaking{color:#4f46e5;background:#eef2ff}.phase-dot{width:8px;height:8px;border-radius:50%;background:currentColor;animation:pulse 1.5s ease-in-out infinite}.mic-button{width:80px;height:80px;border-radius:50%;border:3px solid #e2e8f0;background:#fff;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;box-shadow:0 2px 8px #0000000a}.mic-button:hover{border-color:#a5b4fc;color:#4f46e5;box-shadow:0 4px 16px #4f46e510}.mic-button:disabled{opacity:.6;cursor:not-allowed}.mic-button.loading_vad{border-color:#f59e0b;color:#f59e0b;animation:spin 1.5s linear infinite}.mic-button.listening{border-color:#22c55e;color:#22c55e;box-shadow:0 0 0 6px #22c55e15;animation:mic-pulse 2s ease-in-out infinite}.mic-button.processing_asr,.mic-button.processing_llm{border-color:#f59e0b;color:#f59e0b;box-shadow:0 0 0 6px #f59e0b15}.mic-button.speaking{border-color:#4f46e5;color:#4f46e5;box-shadow:0 0 0 6px #4f46e515;animation:mic-pulse 1.5s ease-in-out infinite}@keyframes mic-pulse{0%,to{box-shadow:0 0 0 6px currentColor;opacity:1}50%{box-shadow:0 0 0 14px transparent;opacity:.8}}.agent-hint{font-size:.72rem;color:#94a3b8}.agent-reset-btn{background:none;border:1px solid #e2e8f0;border-radius:6px;padding:5px 12px;font-size:.75rem;color:#64748b;cursor:pointer;transition:all .15s}.agent-reset-btn:hover{background:#f1f5f9;border-color:#cbd5e1;color:#1a1a2e}.footer{text-align:center;font-size:.72rem;color:#94a3b8;padding-top:1rem;border-top:1px solid #e2e8f0;margin-top:auto}@media (max-width: 768px){.sidebar{position:fixed;left:-260px;top:0;z-index:100;transition:left .25s ease;box-shadow:none}.sidebar.open{left:0;box-shadow:4px 0 24px #0000001a}.sidebar-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000030;z-index:99}.hamburger{display:flex}.page-wrapper{padding:1.25rem 1rem}.title{font-size:1.4rem}.profile-grid{grid-template-columns:repeat(2,1fr)}.action-section{flex-direction:column;align-items:stretch;gap:10px}.synth-btn{width:100%;justify-content:center;padding:12px}.shortcut-hint{display:none}.stats-panel{grid-template-columns:repeat(2,1fr)}textarea{font-size:1rem;min-height:100px}.preset-chip{max-width:160px}.server-status{flex-wrap:wrap}.status-details{min-width:0}.stress-config{grid-template-columns:1fr}.stress-results .stats-panel{grid-template-columns:repeat(2,1fr)}.breakdown-card{flex-direction:column;align-items:flex-start;gap:2px}.drop-zone{padding:24px 16px}.drop-zone-file{flex-wrap:wrap;justify-content:center}.lang-selector{flex:1}.lang-btn{flex:1;text-align:center}.conversation-view{max-height:40vh}.chat-bubble{max-width:90%}.mic-button{width:70px;height:70px}}@media (max-width: 400px){.profile-grid{grid-template-columns:1fr 1fr;gap:6px}.profile-card{padding:10px}.profile-desc{display:none}.stats-panel{grid-template-columns:1fr 1fr;gap:6px}.stress-results .stats-panel{grid-template-columns:1fr 1fr}}
