/* AI Summary Card - Global Styles (theme-aware) */
.ai-summary-dashed-container {
  margin: 0.8rem auto 1.5rem auto;
  position: relative;
  border-radius: 12px;
  padding: 1rem;
  background: var(--card);
  border: 1px dashed var(--block-border);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  cursor: default;
}
.ai-summary-dashed-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px var(--theme-link-opa);
}
.ai-summary-dashed-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: ai-sweepLight 3s linear infinite;
}

.ai-summary-content { display: flex; flex-direction: column; gap: 0.5rem; }
.ai-summary-header { display: flex; align-items: center; }
.ai-summary-tag {
  background: var(--theme-link);
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
}
.ai-summary-slogan { margin-left: 0.6rem; color: var(--text-p2); font-size: 0.9rem; white-space: nowrap; }
.ai-summary-slogan::after { margin-left: 3px; font-weight: 700; color: var(--theme-link); content: '|'; animation: ai-blink-caret 0.75s step-end infinite; }
.ai-summary-body { line-height: 2; color: var(--text); font-size: 0.95rem; margin-bottom: 0.5rem; opacity: 0; animation: ai-fadeIn 0.8s forwards 0.2s; }
.ai-summary-text { margin: 0; }

@keyframes ai-blink-caret { from, to { opacity: 0; } 50% { opacity: 1; } }
@keyframes ai-fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ai-sweepLight { 0% { left: -100%; } 100% { left: 150%; } }