.st-surface-panel {
  border-radius: 14px;
}

.st-card-muted,
.st-ticket-card,
.st-empty-state,
.message-bubble,
.rounded-\[18px\] {
  border-radius: 14px;
}

.st-login-card {
  border-radius: 18px;
}

.rounded-\[16px\] {
  border-radius: 12px;
}

.st-page-btn,
.st-secondary-btn,
.st-tab-btn,
.st-toolbar-btn {
  border-radius: 0.7rem;
}

.st-primary-btn {
  border-radius: 0.75rem;
}

.st-input-control,
.st-textarea-control {
  border-radius: 0.8rem;
}

.st-sidebar {
  width: 390px;
  min-width: 390px;
}

.st-detail-body {
  grid-template-columns: minmax(0, 1.8fr) minmax(340px, 0.95fr);
}

.st-chat-scroll {
  padding: 1.25rem 1.5rem 1rem;
}

.st-side-scroll {
  padding: 1rem 1.1rem;
}

.message-bubble {
  max-width: 82%;
}

.st-message-composer {
  border-radius: 14px;
  padding: 0.95rem 1rem 1rem;
}

.st-message-composer:focus-within {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.08),
    0 0 0 3px rgba(16, 185, 129, 0.12);
}

.st-message-input {
  min-height: 56px;
  padding: 0.1rem 0 0.2rem;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1.6;
  box-shadow: none;
}

.st-message-input:focus {
  outline: none;
}

.chat-image-preview-btn {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.chat-image-preview-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.st-image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.st-image-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.86);
}

.st-image-preview-stage {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1120px, 96vw);
  max-height: 92dvh;
  flex-direction: column;
  gap: 0.75rem;
}

.st-image-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.st-image-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.st-image-preview-body {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: auto;
  border-radius: 18px;
}

.st-image-preview-close,
.st-image-preview-tool {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.9rem;
  color: #fff;
  font-size: 0.875rem;
}

.st-image-preview-tool:hover,
.st-image-preview-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.st-image-preview-img {
  max-width: 100%;
  max-height: calc(92dvh - 7.5rem);
  border-radius: 18px;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.14s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.st-image-preview-footer {
  display: flex;
  justify-content: center;
}

.st-image-preview-download {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.5rem 1.4rem;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 1023px) {
  .st-sidebar {
    width: auto;
    min-width: 0;
  }

  .st-detail-body {
    grid-template-columns: 1fr;
  }
}
