.dev74-chat-root {
  position: fixed;
  left: 0.65rem;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 1200;
  font-family: inherit;
  touch-action: manipulation;
}
.dev74-chat-root--custom-pos {
  transform: none;
}
.dev74-chat-root--hidden .dev74-chat-fab,
.dev74-chat-root--hidden .dev74-chat-panel {
  display: none !important;
}
.dev74-chat-launcher {
  position: relative;
  display: inline-block;
}
.dev74-chat-launcher--drag-ready {
  cursor: grab;
}
.dev74-chat-root--dragging .dev74-chat-launcher--drag-ready {
  cursor: grabbing;
}
.dev74-chat-fab {
  border: 1px solid var(--color-gold, #f5c518);
  background: rgba(7, 7, 8, 0.92);
  color: #f4f1ea;
  border-radius: 1rem;
  padding: 0.55rem 0.85rem 0.6rem;
  cursor: pointer;
  line-height: 1.1;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.dev74-chat-dismiss {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid #3a3f46;
  border-radius: 999px;
  background: #15171c;
  color: #c8c3b8;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
.dev74-chat-restore {
  display: none;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1199;
  border: 1px solid var(--color-gold, #f5c518);
  border-left: 0;
  border-radius: 0 0.65rem 0.65rem 0;
  background: rgba(7, 7, 8, 0.94);
  color: #f4f1ea;
  padding: 0.55rem 0.5rem 0.55rem 0.35rem;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dev74-chat-root--hidden + .dev74-chat-restore {
  display: block;
}
.dev74-chat-fab-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 3.25rem;
}
.dev74-chat-fab-logo {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  display: block;
}
.dev74-chat-fab-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dev74-chat-panel {
  position: absolute;
  left: calc(100% + 0.65rem);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: min(22rem, calc(100vw - 4.5rem));
  max-height: min(28rem, 70vh);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #3a3f46;
  background: #0d0f12;
  color: #f4f1ea;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 860px) {
  .dev74-chat-dismiss {
    display: none;
  }
}
@media (max-width: 859px) {
  .dev74-chat-panel {
    left: 0;
    top: auto;
    bottom: calc(100% + 0.65rem);
    transform: none;
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(24rem, 55vh);
  }
  .dev74-chat-root--custom-pos .dev74-chat-panel {
    bottom: calc(100% + 0.65rem);
    top: auto;
    transform: none;
  }
}
.dev74-chat-panel[hidden] {
  display: none !important;
}
.dev74-chat-head {
  font-weight: 600;
  font-size: 0.95rem;
}
.dev74-chat-log {
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 16rem;
}
.dev74-chat-msg {
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: pre-wrap;
}
.dev74-chat-msg--user {
  align-self: flex-end;
  background: #1c2430;
}
.dev74-chat-msg--assistant {
  align-self: flex-start;
  background: #15171c;
  border: 1px solid #2a313a;
}
.dev74-chat-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 2.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  background: #15171c;
  border: 1px solid #2a313a;
}
.dev74-chat-typing span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #c8cdd4;
  animation: dev74-chat-dot 1.05s infinite ease-in-out;
}
.dev74-chat-typing span:nth-child(2) {
  animation-delay: 0.16s;
}
.dev74-chat-typing span:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes dev74-chat-dot {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dev74-chat-typing span {
    animation: none;
    opacity: 0.75;
  }
}
.dev74-chat-cites {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.dev74-chat-cite {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid #3a3f46;
  border-radius: 0.4rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
}
.dev74-chat-cite img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 0.25rem;
}
.dev74-chat-input {
  width: 100%;
  resize: vertical;
  min-height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid #3a3f46;
  background: #070708;
  color: inherit;
  padding: 0.45rem;
}
.dev74-chat-send {
  align-self: flex-end;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--color-gold, #f5c518);
  color: #070708;
  cursor: pointer;
}
.dev74-chat-send:disabled,
.dev74-chat-input:disabled {
  opacity: 0.55;
  cursor: default;
}
