html, body {
  overflow-x: hidden;
}

.admin-support-dialog {
  min-height: 0;
}

.admin-support-messages,
.chat-flow {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.admin-support-messages {
  max-height: none !important;
  min-height: 0;
}

.admin-support-messages article {
  overflow-wrap: anywhere;
}

.admin-period-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.admin-period-filter select,
.admin-period-filter input {
  min-height: 40px;
  border: 1px solid var(--admin-line, #273142);
  border-radius: 5px;
  background: #0b0e13;
  color: #eef3fb;
  padding: 0 10px;
}

.aimcode-docs-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ffffff24;
  border-radius: 6px;
  color: #cfd7ff;
  background: #10141a;
  font-size: 12px;
  font-weight: 700;
}

.playground-view[data-playground-mode="audio"] .playground-attach {
  color: #a7b4ff;
  border-color: #7688ff66;
}

.playground-view[data-playground-mode="audio"] .chat-composer textarea {
  min-height: 46px;
}

.playground-view[data-playground-mode="audio"] .chat-empty h2::after {
  content: " / MP3, WAV, M4A, WEBM";
  display: block;
  margin-top: 6px;
  color: #96a2b5;
  font: 10px/1.4 "IBM Plex Mono", monospace;
}

.playground-view[data-playground-mode="image"] .playground-model-info,
.playground-view[data-playground-mode="video"] .playground-model-info,
.playground-view[data-playground-mode="audio"] .playground-model-info {
  border-color: #6f5dff66;
}

.mode-pill {
  color: #9ef0d0 !important;
}

.playground-thread-panel {
  margin-top: 16px;
  border-top: 1px solid #ffffff1d;
  padding-top: 14px;
}

.playground-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.playground-thread-head b {
  font-size: 12px;
}

.playground-thread-head button,
.playground-thread-list button {
  border: 1px solid #ffffff20;
  background: #0b0f15;
  color: #eef3fb;
  border-radius: 6px;
}

.playground-thread-head button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.playground-thread-list {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
}

.playground-thread-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 4px 8px;
  text-align: left;
  padding: 8px;
}

.playground-thread-list span,
.playground-thread-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playground-thread-list small {
  color: #768294;
  font-size: 9px;
}

.playground-thread-list i {
  grid-row: 1 / 3;
  grid-column: 2;
  place-self: center;
  color: #ff9cac;
  font-style: normal;
  font-size: 16px;
}

.playground-media {
  max-width: min(720px, 100%);
  max-height: 60vh;
  object-fit: contain;
}

@media (max-width: 900px) {
  .admin-period-filter {
    justify-content: stretch;
  }

  .admin-period-filter select,
  .admin-period-filter input,
  .aimcode-docs-link {
    width: 100%;
  }

  .playground-shell {
    grid-template-columns: 1fr !important;
  }

  .playground-thread-list {
    max-height: 150px;
  }
}
