.tooltip-inner {
    max-width: 500px;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.main-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}

.main-container #iframe-container {
  flex-grow: 1;
}

.frame-layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.frame-panel {
  min-height: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.frame-panel-primary {
  flex: 1 1 0;
}

.frame-panel-sidekick {
  flex: 0 0 auto;
  width: min(40vw, 560px);
  min-width: 280px;
  max-width: 75vw;
  display: none;
  flex-direction: column;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.frame-layout.sidekick-active .frame-panel-sidekick {
  display: flex;
}

.frame-splitter {
  width: 8px;
  flex: 0 0 8px;
  display: none;
  cursor: col-resize;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.04) 0,
      rgba(0, 0, 0, 0.08) 50%,
      rgba(0, 0, 0, 0.04) 100%
    );
}

.frame-layout.sidekick-active .frame-splitter {
  display: block;
}

.frame-splitter:hover,
.frame-splitter.dragging {
  background:
    linear-gradient(
      90deg,
      rgba(13, 110, 253, 0.12) 0,
      rgba(13, 110, 253, 0.35) 50%,
      rgba(13, 110, 253, 0.12) 100%
    );
}

.frame-drag-overlay {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 10;
  cursor: col-resize;
}

.frame-drag-overlay.active {
  display: block;
}

.chat-launcher-toggle {
  padding-right: 8px;
  color: #999999;
}

.chat-launcher-toggle.chat-launcher-flash,
.chat-launcher-toggle:hover,
.chat-launcher-toggle:focus {
  color: #666666;
}

.chat-launcher-flash .chat-launcher-icon img {
  animation: chat-launcher-pulse 0.9s ease-in-out;
}

.chat-launcher-toggle.chat-launcher-flash .chat-launcher-icon {
  background: rgba(25, 135, 84, 0.12);
  border-radius: 999px;
}

@keyframes chat-launcher-pulse {
  0% {
    transform: scale(1);
    filter: none;
  }
  35% {
    transform: scale(1.22);
    filter: drop-shadow(0 0 10px rgba(25, 135, 84, 0.85));
  }
  100% {
    transform: scale(1);
    filter: none;
  }
}

.chat-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-launcher-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.chat-launcher-icon img {
  width: 25px;
  height: 25px;
  display: block;
}

.chat-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-menu-checkbox {
  margin: 0;
  pointer-events: none;
}

.chat-context-bar {
  display: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8f9fa;
  padding: 10px 12px;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.chat-context-bar.active {
  display: flex;
}

#chatframe {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
}

.chat-context-summary {
  min-width: 0;
}

.chat-context-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}

.chat-context-title {
  font-size: 13px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-context-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.chat-context-status {
  font-size: 12px;
  color: #666;
}

.chat-menu-toggle-active {
  background: rgba(13, 110, 253, 0.08);
}

iframe {
  height: 100%;
  width: 100%;
  border: none;
}

.status-ok {
  color: #6fe46f;
}

.status-waiting {
  color: #f3f374;
}

.status-not-ok {
  color: #f37474;
}
