/* CHARLIE-CONCIERGE-FACE-01 */

.charlie-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  font-family: inherit;
  pointer-events: none;
}

.charlie-launch,
.charlie-dock.is-open .charlie-pane {
  pointer-events: auto;
}

.scroll-top,
.scroll-top.is-on {
  right: 22px;
  bottom: 96px;
  z-index: 80;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.charlie-open .scroll-top,
body:has(.charlie-dock.is-open) .scroll-top {
  top: auto;
  bottom: calc(18px + min(72vh, 520px) + 12px);
}

.charlie-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.92);
  color: #f4f1ea;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.22);
}

.charlie-launch img,
.charlie-pane-head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(240, 215, 140, 0.45), 0 0 14px rgba(34, 211, 238, 0.4);
}

.charlie-launch strong {
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
  color: #7ef9ff;
}

.charlie-pane {
  display: none;
  width: min(92vw, 380px);
  height: min(72vh, 520px);
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background:
    radial-gradient(ellipse at 50% 0, rgba(124, 58, 237, 0.22), transparent 50%),
    #07080d;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.16);
  overflow: hidden;
}

.charlie-dock.is-open .charlie-pane {
  display: flex;
}

.charlie-dock.is-open .charlie-launch {
  display: none;
}

.charlie-pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.charlie-pane-head p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(158, 239, 255, 0.75);
}

.charlie-pane-head strong {
  display: block;
  color: #f0d78c;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.charlie-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #7ef9ff;
  font-size: 22px;
  cursor: pointer;
}

.charlie-log {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.charlie-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.charlie-bubble a {
  color: #7ef9ff;
}

.charlie-bubble.is-her {
  align-self: flex-start;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.charlie-bubble.is-you {
  align-self: flex-end;
  background: rgba(240, 215, 140, 0.12);
  border: 1px solid rgba(240, 215, 140, 0.28);
}

.charlie-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(34, 211, 238, 0.2);
}

.charlie-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: #05060a;
  color: #f4f1ea;
}

.charlie-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #e8d08a;
  color: #140f08;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 720px) {
  .charlie-dock {
    right: 10px;
    bottom: 10px;
  }
}
