/* Messenger-style chat heads + alert chip */
.veil-heads {
  position: fixed;
  right: 10px;
  bottom: 88px;
  z-index: 80;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.veil-head {
  pointer-events: auto;
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #141018;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(0, 255, 200, 0.35);
  cursor: pointer;
}
.veil-head.pop { animation: veil-head-pop 0.35s ease; }
@keyframes veil-head-pop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.veil-head.dragging { cursor: grabbing; }
.veil-head-photo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1c1824 center/cover no-repeat;
  color: #00ffc8;
  font-size: 16px;
  font-weight: 800;
}
.veil-head-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b5c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  box-shadow: 0 0 0 2px #06050b;
}
.veil-head-peek {
  display: none;
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(12, 10, 18, 0.94);
  border: 1px solid rgba(0, 255, 200, 0.2);
  color: #e8fff8;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.veil-head:hover .veil-head-peek,
.veil-head:focus .veil-head-peek { display: block; }
.veil-head-peek strong,
.veil-head-peek em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.veil-head-peek strong { font-size: 12px; }
.veil-head-peek em {
  font-size: 11px;
  font-style: normal;
  color: #9aa8a3;
}
.veil-head-x {
  display: none;
  position: absolute;
  left: -8px;
  top: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2a2433;
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
.veil-head:hover .veil-head-x { display: block; }
.veil-alert-ask {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 81;
  border: 1px solid rgba(0, 255, 200, 0.35);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(8, 7, 14, 0.94);
  color: #00ffc8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.bubble-media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 4px;
  max-width: 100%;
}
.bubble .bubble-img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  object-fit: contain;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bubble-img-save,
.veil-img-lightbox-acts button {
  border: 1px solid rgba(0, 255, 200, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(8, 7, 14, 0.88);
  color: #00ffc8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bubble.user .bubble-img-save {
  background: rgba(4, 17, 12, 0.55);
  color: #04110c;
  border-color: rgba(4, 17, 12, 0.35);
}
.veil-img-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}
.veil-img-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(96vw, 1200px);
  max-height: 94vh;
}
.veil-img-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: calc(94vh - 56px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
  cursor: default;
}
.veil-img-lightbox-acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.veil-img-lightbox-acts .veil-img-save {
  background: #00e6b8;
  color: #04110c;
  border-color: #00e6b8;
}

.veil-eaci-photos-panel {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
}
.veil-eaci-photos-panel[hidden] { display: none !important; }
.veil-eaci-photos-card {
  width: min(520px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px 18px 12px 12px;
  background: #100e16;
  border: 1px solid rgba(0, 255, 200, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  color: #f6f0e6;
}
.veil-eaci-photos-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.veil-eaci-photos-card header strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}
.veil-eaci-photos-hint {
  margin: 0;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.35;
}
.veil-eaci-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: auto;
  padding-bottom: 4px;
}
.veil-eaci-photo-cell {
  appearance: none;
  border: 1px solid rgba(0, 255, 200, 0.22);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #1a1622;
  aspect-ratio: 1;
  cursor: zoom-in;
}
.veil-eaci-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.veil-eaci-photo-cell-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.veil-eaci-photo-bg-btn {
  appearance: none;
  border: 1px solid rgba(0, 255, 200, 0.28);
  border-radius: 8px;
  background: rgba(0, 255, 200, 0.08);
  color: #dffaf0;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 6px;
  cursor: pointer;
}
.veil-eaci-photos-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.veil-eaci-photos-tools button {
  appearance: none;
  border: 1px solid rgba(0, 255, 200, 0.28);
  border-radius: 999px;
  background: rgba(0, 255, 200, 0.1);
  color: #dffaf0;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
}
