/* ── Enhanced Typing Indicator ────────────────── */
.typing-card {
  align-self: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 0;
  overflow: hidden;
  max-width: 560px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  animation: fadeIn 0.3s ease;
}

.typing-shimmer {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.typing-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
}

.typing-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  position: relative;
}

.typing-icon svg {
  width: 36px;
  height: 36px;
}

.typing-icon .ring-outer {
  animation: ringPulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
.typing-icon .ring-inner {
  animation: ringPulse 2.4s ease-in-out infinite 0.4s;
  transform-origin: center;
}
.typing-icon .sparkle {
  animation: sparkleSpin 3s linear infinite;
  transform-origin: center;
}
.typing-icon .core {
  animation: corePulse 1.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.15; transform: scale(0.92); }
  50%      { opacity: 0.4;  transform: scale(1.05); }
}
@keyframes sparkleSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes corePulse {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%      { transform: scale(1.15); opacity: 1; }
}

.typing-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.typing-process {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.typing-tip {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  transition: opacity 0.25s ease;
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}

.typing-tip.fading { opacity: 0; }

.typing-card--exiting {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
