* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0a0a0a; color: #fff; height: 100vh; overflow: hidden; }
.container { max-width: 800px; margin: 0 auto; height: 100vh; display: flex; flex-direction: column; background: #111; }
header { background: #1c1c1e; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #333; }
header h1 { font-size: 22px; font-weight: 600; }
#persona-select { background: #333; color: white; border: none; border-radius: 20px; padding: 6px 12px; font-size: 15px; }
.tabs { display: flex; background: #1c1c1e; border-bottom: 1px solid #333; }
.tabs button { flex: 1; padding: 14px; background: none; border: none; color: #aaa; font-size: 16px; font-weight: 500; }
.tabs button.active { color: #fff; border-bottom: 3px solid #00d4ff; }
.tab-content { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.tab-content.active { display: flex; }
#messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: #0f0f0f; }
.message { max-width: 80%; padding: 14px 18px; border-radius: 20px; line-height: 1.4; }
.message.user { align-self: flex-end; background: #00d4ff; color: #000; border-bottom-right-radius: 4px; }
.message.bot { align-self: flex-start; background: #333; color: white; border-bottom-left-radius: 4px; }
.input-bar { padding: 12px; background: #1c1c1e; display: flex; gap: 10px; }
#chat-input { flex: 1; padding: 16px 20px; border-radius: 9999px; border: none; background: #333; color: white; font-size: 17px; }
#send-chat { width: 48px; height: 48px; border-radius: 50%; background: #00d4ff; color: #000; border: none; font-size: 22px; display: flex; align-items: center; justify-content: center; }
#imagine-tab { padding: 20px; gap: 20px; }
#imagine-prompt { flex: 1; padding: 20px; border-radius: 20px; background: #1c1c1e; color: white; font-size: 17px; min-height: 160px; resize: none; }
#generate-btn { background: #00d4ff; color: #000; padding: 16px; border-radius: 9999px; font-size: 18px; font-weight: 600; border: none; }
#image-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
#image-results img { width: 100%; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
#voice-tab { align-items: center; justify-content: center; padding: 40px 20px; text-align: center; gap: 30px; }
.big-voice-btn { width: 220px; height: 220px; border-radius: 50%; background: linear-gradient(145deg, #00d4ff, #0099cc); color: #000; font-size: 60px; border: none; box-shadow: 0 0 40px rgba(0,212,255,0.6); transition: all 0.2s; }
.big-voice-btn:active { transform: scale(0.95); box-shadow: 0 0 60px rgba(0,212,255,0.9); }
#voice-status, #voice-output { margin-top: 20px; font-size: 18px; min-height: 28px; }