#dash-interface-preview-window {
  width: min(640px, 94vw);
  min-width: 480px;
}

#dash-interface-preview-window .window-body {
  padding: 8px !important;
}

.vs-interface-preview-host {
  background: var(--dc-bg-primary, #313338);
  border: 1px solid #3f4147;
  border-radius: 4px;
  padding: 10px 14px 12px;
  min-height: 0;
  max-height: min(80vh, 640px);
  overflow: auto;
  color: var(--dc-color, #dbdee1);
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
}

.vs-interface-preview-host[data-dc-theme="dark"] {
  color-scheme: dark;
}

#dash-interface-preview-window .vs-interface-preview-host button.dc-btn {
  font-family: inherit;
  text-shadow: none;
  box-shadow: none;
  background-image: none;
}

#dash-interface-preview-window .vs-interface-preview-host .vs-cv2-select-trigger {
  appearance: none;
  -webkit-appearance: none;
  background-image: none !important;
}

#dash-interface-preview-window .vs-interface-preview-host .vs-cv2-select-trigger::before,
#dash-interface-preview-window .vs-interface-preview-host .vs-cv2-select-trigger::after {
  content: none !important;
  display: none !important;
}

.vs-interface-preview-host .dc-msg {
  margin-block-start: 0;
  max-width: 100%;
  padding-inline: 4.5rem 0.75rem;
  padding-block: 0.125rem 0.25rem;
}

.vs-interface-preview-host .dc-msg-author-img {
  inset-inline-start: 0.75rem;
  block-size: 2.5rem;
  inline-size: 2.5rem;
}

.vs-interface-preview-host .dc-msg-content {
  margin-block-end: 0.25rem;
}

.vs-interface-preview-host .dc-msg-components {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(100%, 480px);
  padding-block: 0;
}

.vs-interface-preview-host .dc-msg-mentioned .dc-mention {
  --dc-mention-bg: var(--dc-mention-rgb);
  --dc-mention-bg-opacity: 30%;
  --dc-mention-color-rgb: var(--dc-white-rgb);
  --dc-mention-color-opacity: 1;
}

.vs-interface-preview-host button.dc-btn,
.vs-interface-preview-host button.dc-btn.vs-cv2-btn {
  appearance: none;
  background: var(--dc-btn-background, #4e5058) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  min-height: 32px;
  padding: 2px 14px;
  border-radius: 3px;
  cursor: default;
}

.vs-interface-preview-host .dc-embed.vs-minimal-embed {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
}

.vs-cv2-container {
  --vs-cv2-accent: #5865f2;
  background: #2b2d31;
  border-radius: 8px;
  border: 1px solid #1e1f22;
  box-shadow: 0 1px 0 rgba(4, 4, 5, 0.2);
  overflow: visible;
  position: relative;
  padding: 0 12px 12px;
  max-width: min(100%, 480px);
}

.vs-cv2-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--vs-cv2-accent);
  border-radius: 8px 0 0 8px;
}

.vs-cv2-section {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 12px;
}

.vs-cv2-section-text {
  flex: 1;
  min-width: 0;
  color: #dbdee1;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.vs-cv2-section-accessory {
  flex-shrink: 0;
}

.vs-cv2-thumbnail {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.vs-cv2-separator {
  height: 1px;
  background: #3f4147;
  margin: 8px 0;
}

.vs-cv2-select-wrap {
  position: relative;
}

.vs-cv2-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  background: #383a40;
  border: none;
  border-radius: 4px;
  color: #dbdee1;
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  user-select: none;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
}

.vs-cv2-select-trigger:hover,
.vs-cv2-select-trigger:focus,
.vs-cv2-select-trigger:active,
.vs-cv2-select-wrap.is-open .vs-cv2-select-trigger {
  background: #383a40;
  border: none;
  outline: none;
  box-shadow: none;
}

.vs-cv2-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #949ba4;
}

.vs-cv2-select-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%23b5bac1' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.vs-cv2-select-menu {
  display: none;
  background: #2b2d31;
  border: none;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #1a1b1e #2b2d31;
}

.vs-cv2-select-menu.vs-cv2-select-menu-portal {
  display: block !important;
}

.vs-cv2-select-menu::-webkit-scrollbar {
  width: 8px;
}

.vs-cv2-select-menu::-webkit-scrollbar-thumb {
  background: #1a1b1e;
  border-radius: 4px;
}

.vs-cv2-select-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #dbdee1;
  cursor: default;
}

.vs-cv2-select-option:hover {
  background: #404249;
}

.vs-cv2-select-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vs-cv2-select-option-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #f2f3f5;
}

.vs-cv2-select-option-desc {
  font-size: 0.8125rem;
  color: #949ba4;
  line-height: 1.35;
}

.vs-cv2-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vs-cv2-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.vs-cv2-emoji {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.25em;
  object-fit: contain;
  flex-shrink: 0;
}

.vs-md-h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f3f5;
  margin: 0 0 4px;
}

.vs-md-li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #dbdee1;
  margin: 0 0 2px;
}

.vs-md-li-body {
  flex: 1;
  min-width: 0;
}

.vs-md-line {
  margin: 0 0 2px;
}

.vs-md-bullet {
  flex-shrink: 0;
  color: #b5bac1;
}

.vs-md-code {
  background: #1e1f22;
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", monospace;
  font-size: 0.85em;
  color: #dbdee1;
}
