.chatkit-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  min-height: calc(100vh - 140px);
}

.chatkit-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1 1 auto;
}

.chatkit-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-layout__container.chatkit-container {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.chatkit-shell__frame {
  position: relative;
  min-height: 520px;
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  overflow: hidden;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.chatkit-shell__frame > openai-chatkit,
.chatkit-shell__frame > .chatkit-embed {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.chatkit-embed {
  display: block;
  width: 100%;
  min-height: 520px;
  height: 100%;
  border: none;
  flex: 1 1 auto;
  container-type: inline-size;
  container-name: chat;
}

.chatkit-shell__status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-text-muted);
  padding: var(--spacing-sm);
}

.chatkit-shell__status--inline {
  display: none !important;
  visibility: hidden !important;
}

.chatkit-shell__frame > .chatkit-shell__status {
  display: none !important;
  visibility: hidden !important;
}

.chatkit-shell__spinner {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  animation: chatkit-spin 0.9s linear infinite;
}

@keyframes chatkit-spin {
  to {
    transform: rotate(360deg);
  }
}

.chatkit-shell__error {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  background: var(--color-error-surface);
  color: var(--color-error-700);
  border: 1px solid var(--color-error-200);
}

.chatkit-shell__empty {
  padding: var(--spacing-md);
  background: var(--color-surface-elevated);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
}

.chatkit-shell__hint {
  margin-top: var(--spacing-xs);
  font-size: 14px;
  color: var(--color-text-muted);
}
.ck-wrapper {
  height: 100%;
}
.ck-wrapper iframe {
  width: 100%;
  height: 100%;
}
