/* Demo chat widget skin v2: matches the Graveyard Shift Digital dark theme.
 * No images, no frameworks. Near-black panel, bone text, gold accent.
 * Identical class names to v1 so shipping is a file swap.
 * Adds: .gsd-voice (speaker toggle), .gsd-mic (mic button),
 * .gsd-muted (voice off), .gsd-listening (mic live pulse). */

.gsd-chat {
  background: #131316;
  border: 1px solid #26262c;
  border-radius: 10px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gsd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #26262c;
  background: #101012;
}

.gsd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9a24b;
  box-shadow: 0 0 8px rgba(201, 162, 75, .7);
  flex: none;
}

.gsd-title { color: #ece7d8; font-weight: 750; font-size: 1rem; }
.gsd-sub { color: #8f8a7c; font-size: .82rem; }

/* speaker toggle, pushed to the right edge of the header */
.gsd-voice {
  margin-left: auto;
  flex: none;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid #26262c;
  border-radius: 50%;
  color: #c9a24b;
  cursor: pointer;
  transition: border-color .15s, color .15s, opacity .15s;
}
.gsd-voice:hover { border-color: #c9a24b; color: #ece7d8; }
.gsd-voice.gsd-muted { color: #8f8a7c; opacity: .55; }
.gsd-voice:focus-visible { outline: 2px solid #c9a24b; outline-offset: 2px; }

.gsd-log {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gsd-msg { display: flex; }
.gsd-msg.bot { justify-content: flex-start; }
.gsd-msg.you { justify-content: flex-end; }

.gsd-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .95rem;
  line-height: 1.55;
  color: #c9c4b4;
}

.gsd-msg.bot .gsd-bubble { background: #1b1b20; border: 1px solid #26262c; border-top-left-radius: 4px; }
.gsd-msg.you .gsd-bubble { background: #c9a24b; color: #141005; border-top-right-radius: 4px; }

.gsd-typing .gsd-bubble span {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #8f8a7c;
  animation: gsd-blink 1.2s infinite;
}
.gsd-typing .gsd-bubble span:nth-child(2) { animation-delay: .2s; }
.gsd-typing .gsd-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes gsd-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.gsd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.gsd-chip {
  background: transparent;
  border: 1px solid #26262c;
  color: #c9c4b4;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: .85rem;
  cursor: pointer;
}
.gsd-chip:hover { border-color: #c9a24b; color: #ece7d8; }

.gsd-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid #26262c;
  align-items: center;
}

.gsd-in {
  flex: 1;
  background: #1b1b20;
  border: 1px solid #26262c;
  border-radius: 6px;
  color: #ece7d8;
  padding: 11px 14px;
  font-size: .95rem;
}
.gsd-in:focus { outline: none; border-color: #c9a24b; }
.gsd-in::placeholder { color: #8f8a7c; }

/* mic button: ghost circle, gold when listening */
.gsd-mic {
  flex: none;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid #26262c;
  border-radius: 50%;
  color: #c9c4b4;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.gsd-mic:hover { border-color: #c9a24b; color: #ece7d8; }
.gsd-mic:focus-visible { outline: 2px solid #c9a24b; outline-offset: 2px; }
.gsd-mic.gsd-listening {
  border-color: #c9a24b;
  color: #c9a24b;
  animation: gsd-pulse 1.4s ease-out infinite;
}
@keyframes gsd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 75, .55); }
  70% { box-shadow: 0 0 0 10px rgba(201, 162, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0); }
}

.gsd-send {
  background: #c9a24b;
  color: #141005;
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  padding: 11px 20px;
  font-size: .95rem;
  cursor: pointer;
}
.gsd-send:hover { background: #ddb95e; }
