/* Heyra AI and Talk to Heyra on the web. */
.ha, .ha-voice { position: fixed; inset: 0; z-index: 920; font-family: var(--font, Inter, system-ui, sans-serif); }
.ha[hidden], .ha-voice[hidden] { display: none; }
.ha { background: var(--bg, #0e1020); color: var(--text, #edeffa); }
.ha * , .ha-voice * , .ha-back * { box-sizing: border-box; }
.ha button, .ha-voice button, .ha-back button { font: inherit; cursor: pointer; }
.ha-wrap { display: flex; flex-direction: column; height: 100%; max-width: 820px; margin: 0 auto; }
.ha-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.ha-title { flex: 1; display: flex; flex-direction: column; }
.ha-title b { font-size: 18px; } .ha-title small { color: var(--muted, #868cae); font-size: 12px; } .ha-title small.busy { color: var(--ok, #35d39a); }
.ha-icon { background: none; border: 0; color: inherit; font-size: 19px; padding: 8px; border-radius: 50%; }
.ha-icon:hover { background: var(--hover, rgba(255,255,255,.05)); }
.ha-orb { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 26px;
  background: radial-gradient(circle at 30% 30%, #ff7aa8, #8e6cff 55%, #2f80ed); box-shadow: 0 0 40px rgba(142,108,255,.45); }
.ha-orb.small { width: 34px; height: 34px; font-size: 15px; box-shadow: none; }
.ha-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ha-hello { margin: auto; text-align: center; max-width: 440px; color: var(--muted, #868cae); }
.ha-hello h2 { color: var(--text, #edeffa); }
.ha-b { align-self: flex-start; max-width: 80%; background: var(--in-bg, #1d2142); color: var(--in-ink, #edeffa); border-radius: 18px 18px 18px 6px; padding: 10px 14px; position: relative; }
.ha-b.me { align-self: flex-end; background: var(--out-bg, #6a4bff); color: var(--out-ink, #fff); border-radius: 18px 18px 6px 18px; }
.ha-b.failed { opacity: .8; border: 1px solid var(--danger, #ff6b86); }
.ha-b p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.ha-copy { background: none; border: 0; color: var(--muted, #868cae); font-size: 11px; padding: 4px 0 0; }
.ha-typing { display: flex; gap: 4px; } .ha-typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: hadot 1s infinite; }
.ha-typing i:nth-child(2) { animation-delay: .15s; } .ha-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hadot { 50% { opacity: .25; } }
.ha-tools { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; }
.ha-tools button { flex: none; border: 1px solid var(--line-strong, rgba(255,255,255,.16)); background: var(--raised, #1c2040); color: inherit; border-radius: 16px; padding: 7px 12px; font-size: 13px; }
.ha-compose { display: flex; gap: 8px; padding: 8px 16px 16px; }
.ha-compose textarea { flex: 1; resize: none; max-height: 160px; background: var(--field, #10132a); color: inherit; border: 1px solid var(--line-strong, rgba(255,255,255,.16)); border-radius: 20px; padding: 12px 16px; font: inherit; }
.ha-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--violet, #7958ff); color: #fff; font-size: 17px; }
.ha-back { position: fixed; inset: 0; z-index: 960; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ha-card { background: var(--panel, #141730); color: var(--text, #edeffa); border-radius: 22px; padding: 22px; max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; }
.ha-card p { color: var(--muted, #868cae); line-height: 1.5; }
.ha-row { display: flex; gap: 10px; justify-content: flex-end; }
.ha-btn { border: 0; border-radius: 14px; padding: 10px 18px; background: var(--violet, #7958ff); color: #fff; font-weight: 700; }
.ha-btn.ghost { background: var(--raised, #1c2040); color: inherit; }
.ha-link { background: none; border: 0; color: var(--muted, #868cae); padding: 10px; }
.ha-langs button { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 10px 6px; border-radius: 10px; }
.ha-langs button:hover { background: var(--hover, rgba(255,255,255,.05)); }

.ha-voice { background: radial-gradient(circle at 50% 75%, #1b1240, #050510 70%); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 14px 18px 22px; }
.ha-vtop { width: 100%; max-width: 680px; display: flex; justify-content: space-between; align-items: center; }
.ha-wake { display: flex; gap: 8px; align-items: center; font-size: 13px; } .ha-wake small { color: #8e8aa8; }
.ha-vturns { flex: 1; width: 100%; max-width: 680px; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-end; }
.ha-vturns p { font-size: 20px; font-weight: 600; margin: 8px 0; line-height: 1.4; }
.ha-vturns p.me { font-size: 15px; font-weight: 400; color: #b9b5d1; text-align: right; }
.ha-vpartial { color: #8e8aa8; min-height: 22px; text-align: right; width: 100%; max-width: 680px; }
.ha-vstate { color: #d7d3ea; margin: 10px 0 14px; }
.ha-vorb { width: 118px; height: 118px; border-radius: 50%; border: 0; color: #fff; font-size: 40px; background: radial-gradient(circle at 30% 30%, #ff7aa8, #8e6cff 55%, #2f80ed); box-shadow: 0 0 60px rgba(142,108,255,.5); transition: transform .2s; }
.ha-vorb.listening { animation: haorb 0.9s ease-in-out infinite; }
.ha-vorb.speaking { animation: haorb 1.2s ease-in-out infinite; }
.ha-vorb.thinking { animation: haorb .45s ease-in-out infinite; opacity: .85; }
@keyframes haorb { 50% { transform: scale(1.14); box-shadow: 0 0 90px rgba(255,122,168,.6); } }
.ha-vtype { width: 100%; max-width: 420px; margin-top: 16px; }
.ha-vtype input { width: 100%; background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 11px 16px; font: inherit; }
.ha-vhint { color: #6f6b88; font-size: 12px; text-align: center; margin-top: 12px; }

/* entry points in the main app */
.side-extra { display: flex; gap: 8px; padding: 0 14px 8px; }
.side-extra button { flex: 1; border: 0; border-radius: 14px; padding: 9px 10px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; color: #fff; }
.side-extra .social { background: linear-gradient(135deg, #e8436d, #8e6cff); }
.side-extra .ai { background: linear-gradient(135deg, #2f80ed, #8e6cff); }
.talk-fab { position: fixed; right: 22px; bottom: 96px; z-index: 800; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 22px;
  background: radial-gradient(circle at 30% 30%, #ff7aa8, #8e6cff 55%, #2f80ed); box-shadow: 0 8px 30px rgba(142,108,255,.5); }
.ha-wake { white-space: nowrap; cursor: pointer; }
.ha-wake input { -webkit-appearance: auto; appearance: auto; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: #8e6cff; flex: none; }
.ha-wake small { white-space: nowrap; }
