.message{display:flex;max-width:85%}.message-user{align-self:flex-end;margin-left:auto}.message-assistant{align-self:flex-start;margin-right:auto}.message-bubble{padding:10px 14px;border-radius:18px;word-wrap:break-word;white-space:pre-wrap}.message-user .message-bubble{background-color:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color);border-bottom-right-radius:4px}.message-assistant .message-bubble{background-color:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color);border-bottom-left-radius:4px}.message-content{font-size:15px;line-height:1.4}.message-cursor{animation:blink 1s infinite;margin-left:2px}.chat{display:flex;flex-direction:column;height:100%;max-height:100vh}.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.chat-empty{display:flex;align-items:center;justify-content:center;height:100%;color:var(--tg-theme-hint-color);text-align:center;padding:20px}.chat-error{background-color:#ffebee;color:#c62828;padding:12px 16px;border-radius:12px;font-size:14px}.chat-input-form{display:flex;align-items:flex-end;gap:8px;padding:12px 16px;background-color:var(--tg-theme-secondary-bg-color);border-top:1px solid rgba(0,0,0,.1)}.chat-input{flex:1;border:none;background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);padding:12px 16px;border-radius:20px;font-size:16px;resize:none;max-height:120px;font-family:inherit}.chat-input:focus{outline:none}.chat-input::placeholder{color:var(--tg-theme-hint-color)}.chat-input:disabled{opacity:.6}.chat-send-button{width:44px;height:44px;border:none;background-color:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .2s}.chat-send-button:disabled{opacity:.5;cursor:not-allowed}.chat-send-button:not(:disabled):hover{opacity:.9}.realtime-chat{display:flex;flex-direction:column;height:100%;padding:16px}.realtime-content{flex:1;display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding-bottom:16px}.realtime-spacer{flex:1}.realtime-bubble{padding:12px 16px;border-radius:16px;max-width:90%;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.realtime-bubble-user{align-self:flex-end;background-color:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.realtime-bubble-assistant{align-self:flex-start;background-color:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.realtime-bubble-label{font-size:12px;opacity:.7;margin-bottom:4px}.realtime-bubble-text{font-size:15px;line-height:1.4}.typing-indicator{animation:blink 1s infinite}@keyframes blink{0%,50%{opacity:1}51%,to{opacity:0}}.realtime-error{text-align:center;color:#c62828;padding:12px;background-color:#ffebee;border-radius:12px}.realtime-controls{display:flex;flex-direction:column;align-items:center;gap:20px;padding:20px 0}.realtime-status{display:flex;align-items:center;gap:12px;padding:12px 20px;border-radius:24px;background-color:var(--tg-theme-secondary-bg-color)}.status-indicator{position:relative;width:16px;height:16px}.status-dot{width:16px;height:16px;border-radius:50%;background-color:var(--tg-theme-hint-color)}.status-idle .status-dot{background-color:var(--tg-theme-hint-color)}.status-listening .status-dot{background-color:#4caf50}.status-speaking .status-dot{background-color:#2196f3}.status-ai-speaking .status-dot{background-color:#9c27b0}.status-ring{position:absolute;top:50%;left:50%;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;transform:translate(-50%,-50%);animation:pulse-ring 1.5s ease infinite;opacity:0}.status-speaking .status-ring{color:#2196f3}.status-ai-speaking .status-ring{color:#9c27b0}.status-ring-2{animation-delay:.75s}@keyframes pulse-ring{0%{width:16px;height:16px;opacity:.8}to{width:40px;height:40px;opacity:0}}.status-text{font-size:14px;color:var(--tg-theme-text-color)}.realtime-buttons{display:flex;gap:12px}.realtime-button{display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 24px;border:none;border-radius:24px;font-size:16px;font-family:inherit;cursor:pointer;transition:all .2s ease}.realtime-button-connect{background-color:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.realtime-button-connect:disabled{opacity:.6;cursor:not-allowed}.realtime-button-disconnect{background-color:#e53935;color:#fff}.realtime-button-interrupt{background-color:#ff9800;color:#fff}.realtime-button:not(:disabled):hover{transform:scale(1.02)}.app{display:flex;flex-direction:column;height:100vh;max-height:100vh;overflow:hidden}.loading{display:flex;align-items:center;justify-content:center;height:100vh;color:var(--tg-theme-hint-color)}.mode-switcher{display:flex;gap:8px;padding:12px 16px;background-color:var(--tg-theme-secondary-bg-color);border-bottom:1px solid rgba(0,0,0,.1)}.mode-button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:none;border-radius:12px;background-color:transparent;color:var(--tg-theme-hint-color);font-size:14px;font-family:inherit;cursor:pointer;transition:all .2s ease}.mode-button.active{background-color:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.mode-button:not(.active):hover{background-color:#0000000d}*{margin:0;padding:0;box-sizing:border-box}:root{--tg-theme-bg-color: #ffffff;--tg-theme-text-color: #000000;--tg-theme-hint-color: #999999;--tg-theme-link-color: #2481cc;--tg-theme-button-color: #2481cc;--tg-theme-button-text-color: #ffffff;--tg-theme-secondary-bg-color: #f0f0f0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-height:100vh}#root{min-height:100vh;display:flex;flex-direction:column}
