﻿/* =============================================
   REPLY BAR
   ============================================= */

#chat-reply-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--purple) 12%, var(--bg-2));
  border-top: 1px solid color-mix(in srgb, var(--purple) 30%, var(--border));
  font-size: 12px;
  color: var(--text-2);
  min-height: 34px;
  flex-shrink: 0;
}
#chat-reply-bar.visible { display: flex; }

.reply-bar-icon {
  color: var(--purple);
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}
.reply-bar-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.reply-bar-name {
  font-weight: 700;
  color: var(--text-1);
}
.reply-bar-msg-preview {
  color: var(--text-3);
}
#reply-bar-close-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s;
}
#reply-bar-close-btn:hover { color: var(--text-1); }

/* =============================================
   STREAM-END SUMMARY OVERLAY
   ============================================= */

#stream-summary-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#stream-summary-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.summary-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 90vh;
  overflow-y: auto;
}

.summary-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.summary-emoji { font-size: 38px; line-height: 1; }
.summary-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
}
.summary-subtitle {
  font-size: 13px;
  color: var(--text-2);
}

.summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-stat {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.summary-stat-icon { font-size: 18px; line-height: 1; }
.summary-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}
.summary-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.summary-close-btn { align-self: stretch; }
