/* ── 语音通话 · 暮光烛火 ── */

.layout-voice-call {
  --call-bg-deep: #1e2426;
  --call-bg-mid: #2a3235;
  --call-amber: rgba(196, 112, 75, 0.55);
  --call-amber-soft: rgba(232, 168, 124, 0.22);
  --call-glass: rgba(255, 252, 248, 0.06);
  --call-glass-border: rgba(255, 252, 248, 0.1);
  --call-text-soft: rgba(255, 252, 248, 0.68);
  --call-dock-h: 108px;

  background:
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(158, 82, 56, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(107, 144, 128, 0.12), transparent 50%),
    linear-gradient(172deg, #3d3834 0%, var(--call-bg-mid) 38%, var(--call-bg-deep) 100%);
  color: var(--brand-on);
}

.layout-voice-call::before {
  background:
    radial-gradient(ellipse 90% 55% at 50% 32%, var(--call-amber-soft), transparent 62%),
    radial-gradient(ellipse 50% 35% at 85% 8%, rgba(212, 165, 116, 0.12), transparent 55%);
}

.layout-voice-call::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, rgba(255, 252, 248, 0.05), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.voice-call-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.status-bar--light {
  --status-bar-image: url("../images/status-bar-white.svg");
}

.home-indicator--light {
  background: rgba(255, 255, 255, 0.32);
}

.layout-voice-call .top-header-shell {
  height: auto;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 12;
}

.layout-voice-call .screen-content {
  padding-top: 128px;
  padding-bottom: calc(var(--call-dock-h) + 16px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 1;
  transition: padding-top 0.35s var(--ease-soft);
}

.layout-voice-call:has(#context-bar:not(.hidden)) .screen-content {
  padding-top: 156px;
}

.voice-call-header {
  padding-bottom: 0;
}

/* ── 顶栏卡片 ── */
.voice-call-header-card {
  margin: 50px 16px 0;
  padding: 14px 16px 12px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 252, 248, 0.11) 0%, rgba(255, 252, 248, 0.04) 100%);
  border: 1px solid rgba(255, 252, 248, 0.14);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 252, 248, 0.08);
  backdrop-filter: blur(18px);
}

.voice-call-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
}

.voice-call-topbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.voice-call-signal {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-call-signal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 168, 124, 0.35);
  background: radial-gradient(circle at 40% 35%, rgba(232, 168, 124, 0.18), transparent 68%);
}

.voice-call-live-dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 10px rgba(232, 168, 124, 0.65);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
}

.layout-voice-call[data-call-state="connected"] .voice-call-live-dot {
  opacity: 1;
  transform: scale(1);
  animation: livePulse 2.4s ease-in-out infinite;
}

.layout-voice-call[data-call-state="connecting"] .voice-call-live-dot {
  opacity: 0.55;
  transform: scale(1);
  animation: livePulse 1s ease-in-out infinite;
}

.layout-voice-call[data-call-state="connected"] .voice-call-signal-ring {
  animation: signalRingBreathe 3s ease-in-out infinite;
}

.voice-call-topbar-info {
  min-width: 0;
  flex: 1;
}

.voice-call-topbar-info strong {
  display: block;
  font-family: var(--font-family-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-on);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.voice-call-topbar-info span,
#chat-topbar-status {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--call-text-soft);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-call-timer-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(20, 24, 25, 0.28);
  border: 1px solid rgba(255, 252, 248, 0.1);
}

.voice-call-timer-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 252, 248, 0.42);
}

.voice-call-timer {
  font-family: var(--font-family-data);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 252, 248, 0.92);
  font-variant-numeric: tabular-nums;
}

/* ── 话题上下文 ── */
.voice-call-context.hidden { display: none; }

.voice-call-context-divider {
  height: 1px;
  margin: 12px 0 10px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 168, 124, 0.35) 20%,
    rgba(232, 168, 124, 0.35) 80%,
    transparent 100%
  );
}

.voice-call-context-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-call-context-topic {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 252, 248, 0.82);
}

.voice-call-context-topic i {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--brand-light);
  opacity: 0.85;
}

.voice-call-context-prefix {
  flex-shrink: 0;
  color: rgba(255, 252, 248, 0.48);
}

.voice-call-context-topic #context-bar-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-family-display);
  letter-spacing: 0.02em;
}

.voice-call-context-clear {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid rgba(255, 252, 248, 0.16);
  border-radius: var(--radius-full);
  background: rgba(255, 252, 248, 0.06);
  color: rgba(255, 252, 248, 0.68);
  font-size: 11px;
  cursor: pointer;
  transition:
    background 0.2s var(--ease-soft),
    border-color 0.2s var(--ease-soft),
    color 0.2s var(--ease-soft);
}

.voice-call-context-clear:hover {
  background: rgba(255, 252, 248, 0.1);
  border-color: rgba(232, 168, 124, 0.35);
  color: rgba(255, 252, 248, 0.9);
}

.voice-call-context-clear:active {
  transform: scale(0.97);
}

.anim-call-header {
  animation: callHeaderIn 0.65s var(--ease-soft) both;
}

/* ── 主舞台 ── */
.voice-call-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.voice-call-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0 22px 8px;
  text-align: center;
}

.ctx-quote-card--call {
  width: 100%;
  max-width: 310px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--call-glass);
  border: 1px solid var(--call-glass-border);
  backdrop-filter: blur(12px);
  animation: fadeUp 0.45s var(--ease-soft) both;
}

.ctx-quote-card--call.hidden { display: none; }

.ctx-quote-card--call .ctx-quote-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 252, 248, 0.5);
  margin-bottom: 6px;
}

.ctx-quote-card--call .ctx-quote-meta i {
  color: var(--brand-light);
  font-size: 10px;
}

.ctx-quote-card--call .ctx-quote-text {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 252, 248, 0.94);
}

/* ── IP 英雄区 ── */
.voice-call-hero-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 28px;
}

.voice-call-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 168, 124, 0.14);
  pointer-events: none;
}

.voice-call-orbit--1 {
  inset: -4px;
  animation: orbitDrift 12s linear infinite;
}

.voice-call-orbit--2 {
  inset: -18px;
  border-style: dashed;
  border-color: rgba(232, 168, 124, 0.08);
  animation: orbitDrift 18s linear infinite reverse;
}

.voice-call-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.voice-call-glow--outer {
  inset: -6px;
  border: 1px solid rgba(232, 168, 124, 0.3);
  animation: callGlowOuter 3.6s ease-in-out infinite;
}

.voice-call-glow--inner {
  inset: 16px;
  background: radial-gradient(circle, var(--call-amber), rgba(196, 112, 75, 0.02) 72%);
  animation: callGlowInner 3s ease-in-out infinite;
}

.voice-call-hero {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f6f8;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.32),
    0 0 0 3px rgba(232, 168, 124, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.voice-call-hero.xiaoxia-ip-host[data-ip-state="idle"] {
  animation: ipIdleBreathe 4.5s ease-in-out infinite;
}

.voice-call-hero.xiaoxia-ip-host[data-ip-state="listen"] {
  transform: scale(1.05);
  box-shadow:
    0 0 0 4px rgba(196, 112, 75, 0.36),
    0 14px 44px rgba(196, 112, 75, 0.38);
}

.voice-call-hero.xiaoxia-ip-host[data-ip-state="listen"]::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(232, 168, 124, 0.4);
  animation: ipListenRing 1.6s ease-out infinite;
  pointer-events: none;
}

.voice-call-hero.xiaoxia-ip-host[data-ip-state="think"] {
  animation: ipThinkPulse 1.6s ease-in-out infinite;
  box-shadow:
    0 0 0 4px rgba(212, 165, 116, 0.3),
    0 10px 32px rgba(212, 165, 116, 0.34);
}

.voice-call-hero.xiaoxia-ip-host[data-ip-state="speak"] {
  animation: ipSpeakPulse 1s ease-in-out infinite;
  box-shadow:
    0 0 0 4px rgba(196, 112, 75, 0.34),
    0 14px 40px rgba(196, 112, 75, 0.42);
}

.layout-voice-call[data-call-state="connecting"] .voice-call-glow--outer {
  animation: callConnectingRing 1.3s ease-out infinite;
}

.layout-voice-call[data-call-state="connecting"] .voice-call-orbit--1 {
  animation: callConnectingRing 1.8s ease-out infinite;
}

/* ── 状态文案 ── */
.voice-call-status-block {
  width: 100%;
  max-width: 320px;
}

.voice-call-status {
  margin: 0 0 8px;
  font-family: var(--font-family-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-on);
  letter-spacing: 0.03em;
}

.voice-call-caption {
  margin: 0 auto;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--call-text-soft);
  min-height: 48px;
  transition: color 0.4s var(--ease-soft);
}

.layout-voice-call[data-call-state="connected"] .voice-call-caption {
  color: rgba(255, 252, 248, 0.78);
}

.voice-call-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  margin-top: 12px;
}

.voice-call-wave.hidden { display: none; }

.voice-call-wave span {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  opacity: 0.9;
}

.voice-call-wave.is-active span {
  animation: voiceBar 0.8s ease-in-out infinite;
}

.voice-call-wave span:nth-child(2) { animation-delay: 0.08s; }
.voice-call-wave span:nth-child(3) { animation-delay: 0.16s; }
.voice-call-wave span:nth-child(4) { animation-delay: 0.24s; }
.voice-call-wave span:nth-child(5) { animation-delay: 0.32s; }
.voice-call-wave span:nth-child(6) { animation-delay: 0.4s; }
.voice-call-wave span:nth-child(7) { animation-delay: 0.48s; }

/* ── 快捷话题 ── */
.voice-call-chips-wrap {
  width: 100%;
  margin-top: 22px;
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}

.voice-call-chips-wrap.is-collapsed {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
}

.voice-call-chips-hint {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 252, 248, 0.38);
}

.voice-call-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-height: 120px;
  overflow: hidden;
}

.layout-voice-call .chip {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--call-glass-border);
  background: var(--call-glass);
  color: rgba(255, 252, 248, 0.9);
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background 0.25s var(--ease-soft),
    border-color 0.25s var(--ease-soft),
    transform 0.2s var(--ease-soft);
}

.layout-voice-call .chip:hover {
  background: rgba(255, 252, 248, 0.12);
  border-color: rgba(232, 168, 124, 0.35);
}

.layout-voice-call .chip:active {
  transform: scale(0.97);
}

.layout-voice-call .chip--highlight {
  background: rgba(196, 112, 75, 0.28);
  border-color: rgba(232, 168, 124, 0.45);
  box-shadow: 0 0 20px rgba(196, 112, 75, 0.2);
}

.layout-voice-call[data-call-state="connecting"] .voice-call-chips-wrap {
  opacity: 0.4;
  pointer-events: none;
}

/* ── 底部控制坞 ── */
.voice-call-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 16px 28px 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 24, 25, 0.55) 40%, rgba(20, 24, 25, 0.82) 100%);
}

.voice-call-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(255, 252, 248, 0.72);
  font-size: 11px;
  padding: 0;
  transition: color 0.2s, transform 0.2s var(--ease-soft);
}

.voice-call-dock-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--call-glass);
  border: 1px solid var(--call-glass-border);
  font-size: 15px;
  backdrop-filter: blur(10px);
  transition: background 0.25s, border-color 0.25s;
}

.voice-call-dock-btn--minimize {
  justify-self: start;
}

.voice-call-dock-btn--minimize:active {
  transform: scale(0.94);
}

.voice-call-dock-btn--hangup {
  justify-self: center;
  color: rgba(255, 252, 248, 0.55);
}

.voice-call-dock-btn--hangup i {
  width: 64px;
  height: 64px;
  font-size: 22px;
  background: linear-gradient(145deg, #e05c56 0%, #c9443e 100%);
  border: none;
  color: #fff;
  box-shadow:
    0 10px 28px rgba(201, 68, 62, 0.45),
    0 0 0 6px rgba(201, 68, 62, 0.12);
}

.voice-call-dock-btn--hangup:active i {
  transform: scale(0.94);
  box-shadow:
    0 6px 18px rgba(201, 68, 62, 0.38),
    0 0 0 4px rgba(201, 68, 62, 0.1);
}

.voice-call-dock-spacer {
  justify-self: end;
  width: 44px;
}

/* ── 录音浮层（保留兼容） ── */
.layout-voice-call .chat-voice-overlay {
  padding-bottom: var(--call-dock-h);
  background: rgba(20, 24, 25, 0.6);
  backdrop-filter: blur(4px);
}

.chat-voice-overlay.hidden { display: none; }

.chat-voice-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.chat-voice-recording-panel {
  min-width: 160px;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  background: rgba(44, 54, 57, 0.9);
  color: var(--brand-on);
  text-align: center;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
}

.chat-voice-recording-panel.is-cancel {
  background: rgba(212, 132, 124, 0.92);
}

.chat-voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  margin-bottom: 10px;
}

.chat-voice-wave span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-light);
  animation: voiceBar 0.7s ease-in-out infinite;
}

.chat-voice-hint {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

/* ── 弹层 ── */
.chat-clear-sheet.hidden { display: none; }

.chat-clear-sheet {
  position: absolute;
  inset: 0;
  z-index: 26;
  display: flex;
  align-items: flex-end;
}

.chat-clear-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 38, 0.45);
  backdrop-filter: blur(4px);
}

.chat-clear-panel {
  position: relative;
  width: 100%;
  padding: 20px 20px 28px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--surface-card);
  box-shadow: var(--shadow-float);
  animation: fadeUp 0.32s var(--ease-soft) both;
}

.chat-clear-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.chat-clear-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.chat-clear-actions {
  display: flex;
  gap: 10px;
}

.chat-clear-cancel,
.chat-clear-confirm {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.chat-clear-cancel {
  border: 1px solid var(--border-default);
  background: var(--surface-card);
}

.chat-clear-confirm {
  border: none;
  background: var(--brand);
  color: var(--brand-on);
}

.voice-call-transcript-sheet.hidden { display: none; }

.voice-call-transcript-sheet {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: flex;
  align-items: flex-end;
}

.voice-call-transcript-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 25, 0.52);
  backdrop-filter: blur(5px);
}

.voice-call-transcript-panel {
  position: relative;
  width: 100%;
  max-height: 62%;
  padding: 8px 20px 24px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--surface-card);
  box-shadow: var(--shadow-float);
  animation: fadeUp 0.32s var(--ease-soft) both;
  display: flex;
  flex-direction: column;
}

.voice-call-transcript-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--divider);
  margin: 4px auto 12px;
}

.voice-call-transcript-title {
  margin: 0 0 12px;
  font-family: var(--font-family-display);
  font-size: 17px;
  font-weight: 600;
}

.voice-call-transcript-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-call-transcript-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 28px 12px;
}

.voice-call-transcript-item {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  max-width: 88%;
}

.voice-call-transcript-item.is-user {
  align-self: flex-end;
  background: var(--surface-muted);
}

.voice-call-transcript-item.is-xiaoxia {
  align-self: flex-start;
  background: var(--spark-bg);
  border: 1px solid rgba(196, 112, 75, 0.12);
}

.voice-call-transcript-item p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.voice-call-transcript-meta {
  font-size: 11px;
  color: var(--text-tertiary);
}

.voice-call-transcript-close {
  margin-top: 12px;
  height: 44px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--surface-card);
  font-size: 14px;
  cursor: pointer;
}

/* ── 入场动画 ── */
.anim-call-hero {
  animation: callHeroIn 0.9s var(--ease-soft) 0.1s both;
}

.anim-call-status {
  animation: fadeUp 0.7s var(--ease-soft) 0.25s both;
}

.anim-call-chips {
  animation: fadeUp 0.7s var(--ease-soft) 0.4s both;
}

.anim-call-dock {
  animation: dockSlideUp 0.6s var(--ease-soft) 0.55s both;
}

/* ── 关键帧 ── */
@keyframes callHeroIn {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes dockSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes callHeaderIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes signalRingBreathe {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(232, 168, 124, 0.6); }
  50% { opacity: 0.55; box-shadow: 0 0 4px rgba(232, 168, 124, 0.3); }
}

@keyframes orbitDrift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ipIdleBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes ipListenRing {
  0% { transform: scale(0.9); opacity: 0.75; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes ipThinkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes ipSpeakPulse {
  0%, 100% { transform: scale(1.03); }
  50% { transform: scale(1.08); }
}

@keyframes callGlowOuter {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes callGlowInner {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes callConnectingRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}

@keyframes voiceBar {
  0%, 100% { height: 6px; }
  50% { height: 24px; }
}

@media (max-width: 768px) {
  .voice-call-header-card {
    margin: 46px 14px 0;
    padding: 12px 14px 10px;
  }

  .layout-voice-call .screen-content {
    padding-top: 120px;
    padding-bottom: calc(var(--call-dock-h) + 8px);
  }

  .layout-voice-call:has(#context-bar:not(.hidden)) .screen-content {
    padding-top: 148px;
  }

  .voice-call-dock {
    padding: 12px 24px 36px;
  }
}
