/* Chat layout and voice UI. Colors and typography come from synox-design.css. */
body.synox-app { animation: none; overflow: hidden; }
.synox-app::before { display: none; }
.synox-app .app-container { background: var(--page-bg); }
.synox-app .sidebar { background: var(--bg-2); width: 258px; border-color: var(--border); backdrop-filter: none; box-shadow: none; }
.sidebar-brand { display: flex; align-items: center; padding: 26px 22px 12px; }
.sidebar-caption { padding: 22px 23px 5px; color: var(--text-dim); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.synox-app .sidebar-header { padding: 14px 17px 0; border: 0; }
.synox-app .new-chat-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; color: var(--text); box-shadow: none; font-size: 12px; font-weight: 500; }
.synox-app .new-chat-btn:hover { transform: translateY(-1px); background: var(--hover); box-shadow: none; }
.synox-app .sidebar-toggle { display: none; }
.synox-app .chat-history { padding: 7px 12px 15px; }
.synox-app .chat-item { padding: 10px 12px; min-height: 41px; border: 0; border-radius: 9px; color: var(--text-muted); margin-bottom: 3px; background: transparent; box-shadow: none; animation: none; }
.synox-app .chat-item::before { display: none; }
.synox-app .chat-item:hover, .synox-app .chat-item.active { background: var(--surface); transform: none; border: 0; color: var(--text); }
.synox-app .chat-item-title { font-size: 12px; font-weight: 400; }
.synox-app .chat-item-icon { opacity: .5; font-size: 12px; }
.synox-app .chat-item-delete { width: 26px; height: 26px; box-shadow: none; }
.synox-app .sidebar-footer { border-top: 1px solid var(--border); padding: 15px 16px; }
.sidebar-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; color: var(--text-muted); border-radius: 8px; font-size: 11px; }
.sidebar-link:hover { color: var(--text); background: var(--surface); }
.sidebar-link svg { width: 15px; height: 15px; }
.sidebar-bottom-note { color: var(--text-dim); font-size: 9px; padding: 13px 10px 2px; }
.synox-app .main-content { background: var(--page-bg); backdrop-filter: none; min-width: 0; }
.synox-app .chat-header { min-height: 77px; padding: 16px 30px; background: var(--page-bg); border-bottom: 0; backdrop-filter: none; }
.synox-app .chat-header h1 { font-size: 18px !important; color: var(--text); font-weight: 600 !important; letter-spacing: -.05em; text-shadow: none; }
.synox-app #modelSelectorBtn { padding: 8px 10px !important; color: var(--text); border-radius: 9px !important; }
.synox-app #modelSelectorBtn:hover { background: var(--surface); }
.synox-app #currentModelLabel { font-size: 10px !important; padding: 3px 7px !important; border-radius: 6px !important; background: var(--surface-2) !important; opacity: 1 !important; color: var(--text-muted); }
.synox-app .header-actions, .synox-app .user-info-desktop { gap: 10px; }
.synox-app .user-info-desktop > span { display: none; }
.synox-app .user-info-desktop a { font-size: 11px !important; color: var(--text-muted) !important; }
.synox-app .user-info-desktop a:hover { color: var(--text) !important; }
.synox-app .user-avatar-desktop, .synox-app .user-avatar-mobile { width: 28px; height: 28px; box-shadow: none; border: 1px solid var(--border); }
.synox-app .login-btn { padding: 8px 12px; color: var(--text-muted); background: transparent; border: 1px solid var(--border); box-shadow: none; border-radius: 9px; font-size: 11px; }
.synox-app .login-btn:hover { background: var(--surface); transform: none; }
.synox-app .menu-toggle { background: transparent; color: var(--text-muted); border: 0; box-shadow: none; }
.synox-app .welcome-screen { padding: 22px 32px 38px; }
.synox-app .welcome-content { max-width: 660px; width: 100%; text-align: left; animation: enter-soft .65s both; }
.synox-app .welcome-logo { width: 40px; height: 40px; margin: 0 0 27px; filter: saturate(.6); animation: none; }
.welcome-eyebrow { color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 13px; }
.synox-app .welcome-content h2 { font-size: clamp(29px, 3vw, 42px); line-height: 1.23; font-weight: 500; letter-spacing: -.055em; margin-bottom: 15px; text-shadow: none; animation: none; }
.synox-app .welcome-title .welcome-title-text { background: none; -webkit-text-fill-color: var(--text); animation: none; }
.synox-app .welcome-content p { font-size: 13px; line-height: 1.8; color: var(--text-muted); max-width: 410px; margin-bottom: 27px; animation: none; }
.synox-app .suggestions { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
.synox-app .suggestion-btn { padding: 17px 18px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); border-radius: 12px; box-shadow: none; min-height: 76px; font-size: 11px; line-height: 1.7; animation: enter-soft .5s both; backdrop-filter: none; }
.synox-app .suggestion-btn:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--border-2); color: var(--text); box-shadow: none; }
.synox-app .suggestion-btn::after { display: none; }
.synox-app .suggestion-icon { font-size: 17px; filter: grayscale(.5); }
.synox-app .suggestion-btn:hover .suggestion-icon { transform: translateY(-2px); }
.welcome-links { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.synox-app #premiumButton { background: transparent !important; color: var(--accent) !important; padding: 0 !important; border: 0 !important; font-size: 10px !important; font-weight: 500 !important; box-shadow: none !important; }
.synox-app #changelogWelcomeBtn { color: var(--text-dim) !important; font-size: 10px !important; opacity: 1 !important; }
.synox-app .chat-window { padding: 30px 34px 20px; gap: 28px; scroll-behavior: smooth; }
.synox-app .message { max-width: 770px; gap: 14px; margin-bottom: 10px; animation: enter-soft .28s ease both; }
.synox-app .message.user .bubble { background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--border); border-radius: 17px 17px 5px 17px; padding: 12px 17px; max-width: min(82%, 620px); font-size: 14px; line-height: 1.75; }
.synox-app .message.bot .bubble { color: var(--text); font-size: 14px; line-height: 1.85; padding: 2px 0; background: transparent; border: 0; box-shadow: none; }
.synox-app .message.bot .message-avatar { visibility: visible !important; width: 26px !important; min-width: 26px !important; max-width: 26px !important; height: 26px !important; min-height: 26px !important; max-height: 26px !important; border-radius: 0 !important; filter: saturate(.65); box-shadow: none; }
.synox-app .avatar-ring-wrapper { display: flex !important; opacity: 1 !important; width: 28px; min-width: 28px; height: 28px; transform: none; margin-top: 3px; }
.synox-app .message.bot > .bubble { flex: 1; min-width: 0; max-width: calc(100% - 42px); }
.synox-app .message-actions { padding-left: 42px; }
.synox-app .thinking-ring { display: none; }
.synox-app .message.bot .bubble, .synox-app .reason-answer { position: relative; }
.response-activity { display: inline-flex; align-items: center; gap: 13px; min-height: 34px; padding-block: 1px; color: var(--text-muted); font-size: 12px; font-weight: 500; }
.thread-motion { pointer-events: none; }
.thread-waiting { display: block; width: 72px; height: 32px; flex: 0 0 72px; }
.response-activity-label { background: linear-gradient(105deg, var(--text-dim) 20%, var(--text) 46%, var(--text-dim) 72%); background-size: 240% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: response-label 4.5s ease-in-out infinite; }
.response-activity.thread-handoff { position: absolute; top: 0; left: 0; z-index: 1; animation: thread-handoff .65s ease-out both; animation-delay: var(--thread-delay, 0ms); }
.thread-handoff .thread-waiting { transform-origin: left center; animation: thread-fold .65s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--thread-delay, 0ms); }
.thread-handoff .response-activity-label { animation: thread-label-out .25s ease-out both; animation-delay: var(--thread-delay, 0ms); }
.synox-app .thread-cursor { display: inline-block; width: 32px; height: 15px; margin-left: 5px; vertical-align: -.12em; background: transparent; clip-path: none; animation: none; }
.synox-app .thread-afterglow { transform-origin: left center; animation: thread-settle .65s ease-out both; }
.stream-word { display: inline-block; animation: stream-ink-in .54s cubic-bezier(.2,.7,.25,1) both; }
.synox-app .typewriter-active::after { display: none; }
.synox-app .reason-thinking { background: var(--surface); border-color: var(--border); border-radius: 11px; }
.synox-app .reason-thinking-head { color: var(--text-muted); font-size: 12px; }
.synox-app .reason-thinking-body { font-size: 12px; color: var(--text-muted); }
@keyframes response-label { 0%, 100% { background-position: 100% 50%; } 50% { background-position: 0 50%; } }
@keyframes thread-handoff { to { opacity: 0; } }
@keyframes thread-fold { to { transform: translateX(8px) scaleX(.35); } }
@keyframes thread-label-out { to { opacity: 0; transform: translateX(5px); } }
@keyframes thread-settle { to { opacity: 0; transform: scaleX(.25); } }
@keyframes stream-ink-in { 0% { opacity: .06; filter: blur(2.5px); transform: translateY(2px); color: var(--accent); } 70% { color: var(--text); } 100% { opacity: 1; filter: blur(0); transform: translateY(0); } }
#synoxFlyingLogo, #synoxParticles { display: none !important; }
.synox-app .message .bubble pre { background: var(--bg-2); }
.synox-app .message-actions { color: var(--text-dim); }
.synox-app .input-area { padding: 14px 32px 22px; background: var(--page-bg); backdrop-filter: none; }
.synox-app .input-container { max-width: 770px; min-height: 60px; background: var(--surface) !important; border: 1px solid var(--border-2) !important; border-radius: 16px; padding: 7px; gap: 6px; align-items: flex-end; backdrop-filter: none; box-shadow: none; }
.synox-app .input-container:focus-within { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); }
.synox-app .input-container textarea { padding: 10px 9px; font-size: 13px; line-height: 1.7; color: var(--text); min-width: 0; }
.synox-app .input-container textarea::placeholder { color: var(--text-dim); }
.synox-app .input-container button { background: transparent; color: var(--text-muted); width: 40px; height: 40px; padding: 10px; border-radius: 10px; box-shadow: none; flex-shrink: 0; }
.synox-app .input-container button:hover { transform: none; background: var(--hover); box-shadow: none; }
.synox-app .input-container #sendBtn { color: var(--accent-ink); background: var(--accent); border-radius: 11px; }
.synox-app .input-container #sendBtn:hover { background: var(--synox-accent-hover); transform: translateY(-1px); }
.synox-app .input-container #sendBtn:active { transform: scale(.94); }
.synox-app #voiceBtn { border-radius: 10px !important; }
.synox-app #voiceBtn:hover { background: var(--hover) !important; color: var(--text) !important; }
.composer-note { text-align: center; margin: 10px auto 0; font-size: 9px; color: var(--text-dim); }
.synox-app #menuDropdown, .synox-app #modelDropdown, .synox-app .user-menu-dropdown, .synox-app .regen-model-menu { background: var(--surface) !important; color: var(--text); border-color: var(--border-2) !important; box-shadow: 0 14px 40px #0003 !important; backdrop-filter: none !important; border-radius: 13px !important; }
.synox-app #modelDropdown { min-width: 300px !important; animation: menu-enter .18s ease both; }
.synox-app #modelDropdown .model-option { min-height: 54px; color: var(--text) !important; padding: 11px 12px !important; }
.synox-app #modelDropdown .model-option > div > div:first-child { font-weight: 500 !important; font-size: 12px !important; }
.synox-app #modelDropdown .model-option > div > div:first-child > span { background: var(--surface-2) !important; color: var(--text-muted); border: 1px solid var(--border); font-size: 8px !important; }
.synox-app #modelDropdown .model-option.active, .synox-app #modelDropdown .model-option:hover { background: var(--hover) !important; }
.synox-app #modelDropdown .model-logo { width: 23px; height: 23px; }
.synox-app .model-check { color: var(--accent) !important; }
.synox-app #menuDropdown { width: 248px; min-width: 0 !important; max-width: calc(100vw - 56px); padding: 6px !important; box-sizing: border-box; }
.synox-app #menuDropdown .menu-item { height: 44px; justify-content: flex-start; gap: 10px !important; padding: 10px 12px !important; font-size: 12px !important; line-height: 20px; white-space: nowrap; }
.synox-app #menuDropdown .menu-item > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.synox-app #menuDropdown .menu-item > span:first-of-type { flex: 1; text-align: left; }
.synox-app #menuDropdown .menu-item > span[id] { flex-shrink: 0; }
.synox-app #menuDropdown .menu-item:hover { background: var(--hover); }
.synox-app .scroll-bottom-btn { background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); color: var(--text); }
.synox-app .scroll-bottom-btn:hover { background: var(--hover); }
/* One composed voice surface. Orbit and waveform respond to real audio. */
.voice-mode-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 24px; background: #09090db8; backdrop-filter: blur(16px); }
.voice-dialog { position: relative; width: min(100%, 500px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px 32px 26px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 26px; color: var(--text); box-shadow: 0 35px 100px #0004; animation: voice-enter .45s cubic-bezier(.2,.8,.2,1) both; text-align: center; }
.voice-dialog-header { display: flex; align-items: center; justify-content: space-between; }
.voice-dialog-title { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.voice-dialog-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.voice-close { width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--text-dim); font-size: 23px; display: grid; place-items: center; }
.voice-close:hover { background: var(--hover); color: var(--text); }
.voice-mode-logo-container { position: relative; display: grid; place-items: center; width: 174px; height: 174px; margin: 34px auto 20px; isolation: isolate; }
.voice-orbit { position: absolute; width: 124px; height: 124px; border: 1px solid var(--border-2); border-radius: 44% 56% 52% 48% / 48% 42% 58% 52%; animation: orbit-drift 13s linear infinite; transition: border-color .5s; }
.voice-orbit:nth-child(2) { width: 151px; height: 151px; border-color: var(--border); animation-duration: 19s; animation-direction: reverse; }
.voice-orbit:nth-child(3) { width: 174px; height: 174px; opacity: .5; animation-duration: 25s; }
.voice-core { display: grid; place-items: center; width: 94px; height: 94px; border-radius: 50%; background: var(--accent-soft); border: 1px solid #b7a5e42a; transform: scale(calc(1 + var(--voice-level, 0) * .14)); transition: transform .12s ease-out, background .4s; }
.synox-app #voiceModeLogo { width: 43px; height: 43px; border-radius: 0; filter: saturate(.65); animation: none; box-shadow: none; }
.voice-mode-logo-container.recording .voice-orbit { border-color: #b7a5e455; }
.voice-mode-logo-container.speaking .voice-core { background: #b7a5e426; }
.voice-mode-logo-container.speaking .voice-orbit { animation-duration: 5s; border-color: #b7a5e466; }
.voice-waveform { display: flex; align-items: center; justify-content: center; gap: 4px; height: 22px; margin: 0 auto 18px; color: var(--accent); }
.voice-waveform span { width: 3px; height: 4px; border-radius: 3px; background: currentColor; transform: scaleY(calc(1 + var(--voice-level, 0) * var(--bar-height, 3))); transition: transform .12s ease-out; opacity: .65; }
.voice-status { font-size: 20px; font-weight: 500; letter-spacing: -.03em; margin: 0 0 12px; }
.voice-caption { min-height: 78px; max-height: 128px; overflow-y: auto; margin: 0 0 22px; padding-inline: 10px; font-size: 13px; line-height: 1.8; color: var(--text-muted); }
.voice-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.synox-app #voiceModeMicToggle { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); box-shadow: none; }
.synox-app #voiceModeMicToggle:hover { background: var(--hover); transform: translateY(-2px); box-shadow: none; }
.synox-app #voiceModeMicToggle.muted { color: #df9696; border-color: #df969650; }
.voice-end { width: 54px; height: 54px; border-radius: 50%; background: #d5858520; color: #e7a6a6; border: 1px solid #d5858530; display: grid; place-items: center; }
.voice-end:hover { background: #d5858535; transform: translateY(-2px); }
.voice-mic-text { color: var(--text-dim); font-size: 10px; margin: 12px 0 22px; }
.voice-powered { border-top: 1px solid var(--border); padding-top: 18px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 9px; color: var(--text-dim); }
.voice-powered img { width: 12px; height: 12px; opacity: .65; }
.voice-play { display: none; margin: 0 auto 18px; }
.synox-app .theme-selector { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.synox-app .theme-option { display: grid; place-items: center; padding: 0; width: 30px; height: 30px; color: var(--text-dim); background: transparent; border: 0; border-radius: 7px; animation: none; box-shadow: none; }
.synox-app .theme-option.active { color: var(--text); background: var(--hover); }
.synox-app .theme-option:hover { transform: none; color: var(--text); }
.synox-app .user-info-desktop { background: transparent; border: 0; padding: 0; box-shadow: none; }
.synox-app .changelog-badge { position: static; flex: 0 0 5px; width: 5px; min-width: 5px; height: 5px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--accent); font-size: 0; line-height: 0; box-shadow: none; animation: none; transform: none; }
.synox-app #changelogWelcomeBtn { display: inline-flex; align-items: center; gap: 7px; }
.synox-app .changelog-new-update { animation: none; text-shadow: none; box-shadow: none; }
.synox-app .changelog-new-update::after { display: none; }
.synox-app .update-toast { position: fixed; bottom: 115px; right: 24px; z-index: 9000; width: min(350px, calc(100vw - 32px)); padding: 20px; display: flex; align-items: flex-start; gap: 15px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 15px; color: var(--text); box-shadow: var(--shadow); animation: enter-soft .35s both; }
.update-toast strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.update-toast p { font-size: 11px; line-height: 1.8; color: var(--text-muted); margin: 0; }
.update-toast button { position: absolute; right: 8px; top: 7px; background: transparent; border: 0; color: var(--text-dim); font-size: 18px; }
.synox-app .update-toast.is-closing { animation: enter-soft .35s reverse both; }
.synox-app .synox-modal { background: var(--surface) !important; color: var(--text); border-color: var(--border-2) !important; box-shadow: var(--shadow) !important; }
.synox-app .synox-modal h3 { color: var(--text) !important; }
.synox-app .synox-modal p { color: var(--text-muted) !important; }
.synox-app .synox-modal-btn { background: var(--accent) !important; color: var(--accent-ink) !important; box-shadow: none !important; }
.synox-app .synox-modal-secondary { color: var(--text-muted) !important; border-color: var(--border-2) !important; }
.synox-app .memory-notification { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--border-2) !important; box-shadow: var(--shadow) !important; font-size: 12px !important; font-weight: 500 !important; animation: enter-soft .3s ease both !important; backdrop-filter: none !important; }
[data-ui-style="minimal"] .synox-app * { animation: none !important; scroll-behavior: auto; }
@keyframes orbit-drift { to { transform: rotate(360deg); } }
@keyframes voice-enter { from { opacity: 0; transform: translateY(25px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes menu-enter { from { opacity: 0; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 769px) {
  .synox-app .sidebar { position: relative; height: 100dvh; flex: 0 0 258px; transform: none; }
  .synox-app .sidebar.hidden { display: none; }
  .synox-app .main-content { width: calc(100% - 258px); }
  .synox-app .sidebar-overlay { display: none !important; }
  .synox-app .menu-toggle { display: none; }
}
@media (max-width: 768px) {
  .synox-app .sidebar, .synox-app .sidebar:not(.hidden) { position: fixed; width: min(295px, 85vw); height: 100dvh; z-index: 2001; }
  .synox-app .sidebar.hidden { transform: translateX(-100%); }
  .synox-app .sidebar-overlay.active { z-index: 2000; backdrop-filter: blur(4px); background: #0006; }
  .synox-app .sidebar-toggle { display: grid; place-items: center; margin-left: auto; background: transparent; color: var(--text-muted); box-shadow: none; }
  .synox-app .chat-header { padding: 13px 14px; min-height: 65px; }
  .synox-app .chat-header h1 { font-size: 17px !important; }
  .synox-app .header-actions { gap: 6px; }
  .synox-app .welcome-screen { padding: 24px 25px; }
  .synox-app .welcome-logo { width: 34px; height: 34px; margin-bottom: 20px; }
  .synox-app .welcome-content h2 { font-size: clamp(27px, 6.3vw, 36px); }
  .synox-app .welcome-content p { font-size: 12px; margin-bottom: 20px; }
  .synox-app .suggestions { gap: 8px; margin-top: 22px; }
  .synox-app .suggestion-btn { padding: 12px; font-size: 10px; min-height: 74px; }
  .synox-app .suggestion-icon { font-size: 14px; }
  .synox-app .chat-window { padding: 20px 17px; gap: 25px; }
  .synox-app .message { gap: 10px; }
  .synox-app .message.user .bubble, .synox-app .message.bot .bubble { font-size: 13px; }
  .synox-app .message-avatar { width: 22px; height: 22px; }
  .synox-app .avatar-ring-wrapper { min-width: 23px; width: 23px; height: 23px; }
  .synox-app .input-area { padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
  .synox-app .input-container { min-height: 54px; padding: 5px; border-radius: 14px; gap: 2px; }
  .synox-app .input-container textarea { font-size: 16px; padding: 9px 5px; }
  .synox-app .input-container button { width: 35px; height: 38px; padding: 8px; }
  .composer-note { font-size: 8px; margin-top: 8px; }
  .welcome-links { margin-top: 20px; gap: 12px; }
  .voice-mode-modal { padding: 14px; }
  .voice-dialog { padding: 22px; max-height: calc(100dvh - 28px); border-radius: 22px; }
  .voice-mode-logo-container { margin-top: 26px; }
  .voice-caption { min-height: 72px; font-size: 12px; }
}
@media (max-height: 680px) {
  .synox-app .welcome-logo { display: none; }
  .synox-app .welcome-content h2 { font-size: 27px; }
  .synox-app .welcome-screen { padding-block: 12px; overflow-y: auto; }
  .synox-app .suggestion-btn { min-height: 60px; }
  .voice-mode-logo-container { margin-block: 18px 10px; width: 136px; height: 136px; }
  .voice-orbit:nth-child(2) { width: 132px; height: 132px; }
  .voice-orbit:nth-child(3) { width: 146px; height: 146px; }
  .voice-caption { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-orbit { animation: none; }
  .synox-app .chat-window { scroll-behavior: auto; }
}
