/* Video studio refinements use the shared workspace palette. */
.vd-studio .vd-composer-send > .vd-price-estimate,
.vd-modal .vr-process-footer > .vd-price-estimate {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  max-width: 240px;
  color: var(--workspace-text);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vd-price-estimate > small { color: var(--workspace-muted); font-size: 10px; line-height: 1.4; font-weight: 400; }
.vd-studio .vd-optimization-feedback:has(#vdOptimizationStatus:not([hidden])) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-top: 10px;
  color: var(--workspace-muted);
  font-size: 12px;
}
.vd-studio .vd-optimization-recovery { display: flex; gap: 12px; }
.vd-studio .vd-optimization-recovery > button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--workspace-text);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vd-studio .vd-composer-send > .vd-price-estimate[data-price-status="unknown"],
.vd-studio .vd-composer-send > .vd-price-estimate[data-price-status="loading"],
.vd-modal .vr-process-footer > .vd-price-estimate[data-price-status="unknown"],
.vd-modal .vr-process-footer > .vd-price-estimate[data-price-status="loading"] {
  color: var(--workspace-muted);
  font-weight: 400;
}
.vd-studio .vd-thumb.is-preview-playing .vd-card-play,
.vd-studio .vr-card-preview.is-preview-playing .vr-card-play {
  opacity: 0;
  pointer-events: none;
}
.vd-modal .vd-preset-editor-card,
.vd-modal .vd-process-editor-card { width: min(880px, 94vw); }
.vd-modal .vd-preset-editor { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(210px, 1fr); gap: 24px; }
.vd-modal .vd-preset-field { margin-top: 14px; }
.vd-modal .vd-preset-field > span,
.vd-modal .vd-preset-preview > strong { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--workspace-muted); }
.vd-modal .vd-preset-options { display: flex; gap: 6px; flex-wrap: wrap; }
.vd-modal .vd-preset-options > button { border: 1px solid var(--workspace-border); border-radius: 7px; padding: 5px 10px; background: var(--workspace-surface); color: var(--workspace-text); font-size: 12px; }
.vd-modal .vd-preset-options > button.active { background: var(--workspace-soft); border-color: var(--workspace-text); }
.vd-modal .vd-preset-duration { display: flex; align-items: center; gap: 10px; }
.vd-modal .vd-preset-duration > input[type="range"] { flex: 1; padding: 0; accent-color: var(--workspace-text); }
.vd-modal .vd-preset-duration > input[type="number"] { width: 68px; }
.vd-modal .vd-preset-preview video { display: block; width: 100%; max-height: 360px; border-radius: 12px; background: #111; object-fit: contain; margin-bottom: 10px; }
.vd-modal .vd-preset-thumb { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.vd-modal:is(.vd-trim-modal, .vd-upscale-modal) { background: color-mix(in srgb, var(--workspace-surface) 78%, transparent); backdrop-filter: blur(14px); }
.vd-modal:is(.vd-trim-modal, .vd-upscale-modal) .vd-modal-card { background: var(--workspace-surface); border-color: var(--workspace-border); color: var(--workspace-text); }
.vd-modal .vd-process-layout { min-width: 0; }
.vd-modal.vd-upscale-modal .vd-process-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); align-items: center; gap: 24px; }
.vd-modal .vd-process-video { display: block; height: 36dvh; max-height: 380px; width: 100%; object-fit: contain; border-radius: 12px; background: #111; }
.vd-modal .vd-local-price { display: block; color: var(--workspace-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.vd-modal .vd-trim-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 10px; font-size: 12px; color: var(--workspace-muted); }
.vd-modal .vd-trim-summary strong { color: var(--workspace-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.vd-modal .vd-trim-timeline { position: relative; height: 62px; border-radius: 8px; background: var(--workspace-soft); }
.vd-modal .vd-trim-frames { display: flex; height: 100%; overflow: hidden; border-radius: inherit; }
.vd-modal .vd-trim-frames > span { display: grid; place-items: center; flex: 1; min-width: 0; color: var(--workspace-muted); font-size: 9px; border-right: 1px solid var(--workspace-border); }
.vd-modal .vd-trim-frames img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vd-modal .vd-trim-selected { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px solid var(--workspace-text); border-radius: 7px; pointer-events: none; box-shadow: 0 0 0 999px rgb(0 0 0 / 0%); }
.vd-modal input.vd-trim-handle { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; pointer-events: none; appearance: none; }
.vd-modal input.vd-trim-handle::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.vd-modal input.vd-trim-handle::-webkit-slider-thumb { width: 11px; height: 62px; appearance: none; border: 2px solid var(--workspace-surface); border-radius: 5px; background: var(--workspace-text); cursor: ew-resize; pointer-events: auto; }
.vd-modal input.vd-trim-handle::-moz-range-thumb { width: 9px; height: 60px; border: 2px solid var(--workspace-surface); border-radius: 5px; background: var(--workspace-text); cursor: ew-resize; pointer-events: auto; }
.vd-modal .vd-trim-frame-status { margin: 8px 0 12px; color: var(--workspace-muted); font-size: 11px; }
.vd-modal .vd-trim-panel .vd-process-times { margin-bottom: 12px; }
.vd-modal .vd-trim-panel .vd-process-times label { display: flex; flex-direction: column; gap: 5px; color: var(--workspace-muted); font-size: 12px; }
.vd-modal .vd-trim-panel .vd-process-times input { width: 100%; border: 1px solid var(--workspace-border); padding: 8px 10px; border-radius: 8px; background: var(--workspace-surface); color: var(--workspace-text); }
@media (max-width: 650px) {
  .vd-modal .vd-preset-editor,
  .vd-modal.vd-upscale-modal .vd-process-layout { grid-template-columns: 1fr; gap: 16px; }
  .vd-modal .vd-preset-preview video { max-height: 220px; }
  .vd-modal .vd-process-video { height: 30dvh; }
  .vd-modal.vd-trim-modal .vd-modal-actions { flex-wrap: wrap; }
  .vd-modal.vd-trim-modal .vd-modal-actions > button { flex: 1; min-width: 120px; }
}
/* The viewer reserves the navigation rail and fits the actual video geometry. */
body:not(.is-editor) .vd-modal.vd-detail-viewer {
  --vd-viewer-height: calc(100dvh - 104px);
  --vd-viewer-panel: 450px;
  position: fixed;
  inset: 0 0 0 var(--side-w, 224px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 52px 36px;
  background: color-mix(in srgb, var(--workspace-surface) 88%, transparent);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
body.side-collapsed:not(.is-editor) .vd-modal.vd-detail-viewer { left: var(--side-w-min, 62px); }
body:not(.is-editor) .vd-modal.vd-detail-viewer > .vd-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--vd-viewer-panel);
  gap: 40px;
  width: min(1360px, 100%);
  height: var(--vd-viewer-height);
  max-height: var(--vd-viewer-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-player {
  position: relative;
  width: min(100%, calc(var(--vd-viewer-height) * var(--vd-preview-ratio, .5625)));
  max-height: 100%;
  aspect-ratio: var(--vd-preview-ratio, .5625);
  border-radius: 18px;
  background: #111;
  overflow: hidden;
  box-shadow: 0 8px 30px rgb(0 0 0 / 10%);
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-player > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #111;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-player > video[hidden],
body:not(.is-editor) .vd-detail-viewer .vd-video-state[hidden] { display: none; }
.vd-detail-viewer .vd-video-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: var(--workspace-muted);
}
.vd-detail-viewer .vd-video-state:not(.vd-generation-active) { background: var(--workspace-raised); }
.vd-detail-viewer .vd-video-state > svg { width: 38px; height: 38px; }
.vd-detail-viewer .vd-video-state strong { font-size: 13px; font-weight: 500; }
.vd-detail-viewer .vd-video-state p { margin: 0; text-align: center; font-size: 12px; line-height: 1.6; }
body:not(.is-editor) .vd-detail-viewer .vd-detail-info {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--workspace-border);
  border-radius: 20px;
  background: var(--workspace-surface);
  overflow: auto;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-chips {
  gap: 7px;
  color: var(--workspace-muted);
  font-size: 12px;
  margin-bottom: 18px;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-chips > span {
  color: var(--workspace-muted);
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  padding: 4px 8px;
}
body:not(.is-editor) .vd-detail-viewer button.vd-detail-prompt {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  width: 100%;
  min-height: 100px;
  max-height: none;
  padding: 16px;
  border: 1px solid var(--workspace-border);
  border-radius: 14px;
  background: var(--workspace-surface);
  color: var(--workspace-muted);
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
  cursor: copy;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  flex: none;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-action {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 46px;
  padding: 4px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--workspace-text);
  font-size: 11px;
  white-space: nowrap;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-action:hover { background: var(--workspace-soft); }
body:not(.is-editor) .vd-detail-viewer > .vd-detail-card > .vd-modal-close {
  position: absolute;
  top: 0;
  right: calc(var(--vd-viewer-panel) + 20px);
  width: 34px;
  height: 34px;
  margin: 0;
  transform: translate(50%, -50%);
  border: 0;
  border-radius: 50%;
  background: var(--workspace-soft);
  color: var(--workspace-muted);
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-loading {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--workspace-muted);
}
@media (max-width: 1200px) and (min-width: 801px) {
  body:not(.is-editor) .vd-modal.vd-detail-viewer { --vd-viewer-panel: 360px; padding-inline: 24px; }
  body:not(.is-editor) .vd-modal.vd-detail-viewer > .vd-detail-card { gap: 28px; }
  body:not(.is-editor) .vd-detail-viewer > .vd-detail-card > .vd-modal-close { right: calc(var(--vd-viewer-panel) + 14px); }
}
@media (max-width: 800px) {
  body:not(.is-editor) .vd-modal.vd-detail-viewer,
  body.side-collapsed:not(.is-editor) .vd-modal.vd-detail-viewer {
    --vd-viewer-height: calc(100dvh - 40px);
    left: 56px;
    padding: 20px 12px;
    overflow: auto;
  }
  body:not(.is-editor) .vd-modal.vd-detail-viewer > .vd-detail-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 16px;
    overflow: auto;
    padding-top: 30px;
  }
  body:not(.is-editor) .vd-detail-viewer .vd-detail-video { height: auto; max-height: 52dvh; flex: none; }
  body:not(.is-editor) .vd-detail-viewer .vd-detail-player { width: min(100%, calc(52dvh * var(--vd-preview-ratio, .5625))); max-height: 52dvh; }
  body:not(.is-editor) .vd-detail-viewer .vd-detail-info { height: auto; min-height: 280px; padding: 14px; flex: none; overflow: visible; }
  body:not(.is-editor) .vd-detail-viewer button.vd-detail-prompt { flex: none; max-height: 35dvh; }
  body:not(.is-editor) .vd-detail-viewer > .vd-detail-card > .vd-modal-close { top: 0; right: 0; transform: none; }
}
@media (max-width: 600px) {
  .vd-studio .vd-composer-send > .vd-price-estimate,
  .vd-modal .vr-process-footer > .vd-price-estimate {
    font-size: 11px;
    max-width: none;
  }
}
@media (min-width: 801px) {
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio {
    --vd-desktop-hover: #f5f5f5;
    --vd-desktop-icon: #707070;
    --vd-desktop-shadow: 0 1px 2px rgb(0 0 0 / 2%);
  }

  /* Equal outer heights make history, filters, search and multi-select one quiet row. */
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-filters {
    gap: 10px;
    margin-bottom: 24px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-filters :is(.vd-filter-btn, .vd-example-btn, .vd-search, .vd-multi-toggle) {
    height: 36px;
    box-sizing: border-box;
    background: var(--workspace-surface, #fff);
    border: 1px solid var(--workspace-border, #e4e4e4);
    border-radius: 9px;
    box-shadow: var(--vd-desktop-shadow);
    font-size: 13px;
    gap: 8px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-filters .vd-filter-btn {
    padding-inline: 13px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-view-switch {
    height: 36px;
    box-sizing: border-box;
    padding: 2px;
    gap: 2px;
    border: 1px solid var(--workspace-border, #e4e4e4);
    border-radius: 9px;
    background: var(--workspace-surface, #fff);
    box-shadow: var(--vd-desktop-shadow);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-view-switch :is(.vd-filter-btn, .vd-example-btn) {
    height: 30px;
    padding-inline: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-filters :is(.vd-filter-btn:hover, .vd-filter-btn[aria-expanded="true"], .vd-example-btn:hover, .vd-example-btn.active, .vd-multi-toggle:hover, .vd-multi-toggle.active) {
    background: var(--vd-desktop-hover);
    color: var(--workspace-text, #292929);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-search {
    width: 230px;
    padding-inline: 11px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-search input {
    font-size: 13px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-multi-toggle {
    width: 36px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio :is(.vd-filter-btn svg, .vd-search svg, .vd-multi-toggle svg, .vd-composer-pill svg) {
    color: var(--vd-desktop-icon);
  }

  /* Ordinary dropdown rows stay transparent; only interaction adds a soft fill. */
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-menu {
    padding: 6px;
    border-color: var(--workspace-border, #e4e4e4);
    background: var(--workspace-surface, #fff);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 7%), 0 1px 3px rgb(0 0 0 / 3%);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-menu-item {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 6px;
    background: transparent;
    color: var(--workspace-text, #292929);
    font-size: 13px;
    gap: 8px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-menu-item:is(:hover, .active, [aria-checked="true"]) {
    background: var(--vd-desktop-hover);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio :is(.vd-menu-item svg, .vd-composer-head-tools .vd-tool) {
    color: var(--vd-desktop-icon);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio :is(button, input, textarea):focus-visible {
    outline: 2px solid var(--workspace-focus, #858585);
    outline-offset: 2px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-search:focus-within {
    border-color: var(--workspace-focus, #858585);
  }

  /* A compact creation card with an understated edge instead of a broad shadow. */
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-genpanel {
    padding: 14px 16px;
    border-radius: 20px;
    background: var(--workspace-surface, #fff);
    box-shadow: 0 6px 24px rgb(0 0 0 / 6%), 0 1px 3px rgb(0 0 0 / 2%);
    backdrop-filter: none;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-head {
    margin-bottom: 10px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-tabs {
    padding: 2px;
    gap: 2px;
    background: var(--vd-desktop-hover);
    border: 1px solid var(--workspace-border, #e4e4e4);
    border-radius: 10px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-tabs button {
    min-height: 28px;
    padding: 5px 10px;
    gap: 6px;
    border-radius: 7px;
    color: var(--vd-desktop-icon);
    font-size: 12px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-tabs button.active {
    background: var(--workspace-surface, #fff);
    color: var(--workspace-text, #292929);
    box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-tabs button svg {
    width: 16px;
    height: 16px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-gp-input {
    gap: 14px;
    min-height: 54px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-media {
    gap: 7px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-add-media {
    width: 44px;
    height: 54px;
    border-color: #c5c5c5;
    border-radius: 9px;
    color: var(--vd-desktop-icon);
    background: transparent;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-add-media:hover:not(:disabled) {
    border-color: var(--vd-desktop-icon);
    background: var(--vd-desktop-hover);
    color: var(--workspace-text, #292929);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-add-media svg {
    width: 21px;
    height: 21px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-ref {
    width: 46px;
    height: 54px;
    border-radius: 9px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-gp-input textarea {
    height: 54px;
    min-height: 54px;
    padding-block: 6px;
    font-size: 13px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-expanded .vd-gp-input textarea {
    min-height: 210px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-gp-row {
    gap: 7px;
    margin-top: 11px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-gp-row :is(.vd-filter-btn, .vd-composer-pill) {
    height: 34px;
    box-sizing: border-box;
    padding-inline: 11px;
    gap: 6px;
    border: 1px solid var(--workspace-border, #e4e4e4);
    border-radius: 9px;
    background: var(--workspace-surface, #fff);
    font-size: 12px;
    box-shadow: var(--vd-desktop-shadow);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-gp-row :is(.vd-filter-btn:hover, .vd-filter-btn[aria-expanded="true"], .vd-composer-pill:hover) {
    background: var(--vd-desktop-hover);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-gp-row :is(.vd-filter-btn > svg:first-child, .vd-composer-pill svg) {
    width: 16px;
    height: 16px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-parameter-group {
    padding: 9px 8px 10px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-parameter-group label {
    margin-bottom: 8px;
    color: var(--vd-desktop-icon);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio :is(.vd-parameter-choices button, .vd-tristate button) {
    border: 1px solid var(--workspace-border, #e4e4e4);
    border-radius: 7px;
    background: transparent;
    color: var(--workspace-text, #292929);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-parameter-choices button {
    padding: 6px 10px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio :is(.vd-parameter-choices button, .vd-tristate button):is(:hover, .active) {
    background: var(--vd-desktop-hover);
    border-color: #cecece;
    color: var(--workspace-text, #292929);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-send {
    gap: 9px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-send {
    height: 34px;
    border-radius: 9px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-collapsed {
    padding: 0;
    border-radius: 14px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-composer-collapsed > button {
    height: 44px;
    border-radius: 14px;
    font-size: 13px;
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-tool::after {
    background: var(--workspace-text, #292929);
    color: var(--workspace-surface, #fff);
  }
  /* Existing light calendar controls inherited dark-only gray text values. */
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio :is(.vd-month-title button, .vd-date-day:not(:disabled)) {
    color: var(--workspace-text, #292929);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-date-day.outside:not(:disabled) {
    color: var(--workspace-muted, #858585);
  }
  html:not([data-workspace-theme="dark"]) body:not(.is-editor) .vd-root.vd-studio .vd-date-day.selected {
    color: var(--workspace-surface, #fff);
  }
}

/* Search and prompt focus belong to their outer surface, without an inner outline. */
html body:not(.is-editor) .vd-root.vd-studio .vd-search input,
html body:not(.is-editor) .vd-root.vd-studio .vd-search input:is(:focus,:focus-visible) {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  color: var(--workspace-text);
}
html body:not(.is-editor) .vd-root.vd-studio .vd-gp-input textarea,
html body:not(.is-editor) .vd-root.vd-studio .vd-gp-input textarea:is(:focus,:focus-visible) {
  border: 0;
  outline: none;
  box-shadow: none;
}
html body:not(.is-editor) .vd-root.vd-studio .vd-search:focus-within,
html body:not(.is-editor) .vd-root.vd-studio .vd-genpanel:has(.vd-gp-input textarea:focus) {
  border-color: var(--workspace-focus);
}

/* Multi-select is a readable toolbar in both workspace themes. */
html body:not(.is-editor) .vd-root.vd-studio .vd-filters .vd-multi-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 78px;
  padding-inline: 11px;
  white-space: nowrap;
  color: var(--workspace-text);
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--workspace-border);
  border-radius: 11px;
  background: var(--workspace-raised);
  color: var(--workspace-muted);
  box-shadow: none;
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-bar > span {
  font-size: 12px;
  white-space: nowrap;
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-bar .vd-select-all {
  padding: 7px 3px;
  color: var(--workspace-text);
  white-space: nowrap;
  font-size: 12px;
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions > button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 11px;
  gap: 6px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions > button svg {
  width: 16px;
  height: 16px;
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions > .vd-white-btn:not(:disabled) {
  background: var(--workspace-accent);
  border-color: var(--workspace-accent);
  color: var(--workspace-accent-text);
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions > .vd-secondary-btn:not(:disabled) {
  background: var(--workspace-surface);
  border-color: var(--workspace-border);
  color: var(--workspace-text);
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions > .vd-danger-btn:not(:disabled) {
  background: var(--workspace-danger-bg);
  border-color: var(--workspace-danger-border);
  color: var(--workspace-danger);
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions > button:disabled {
  opacity: 1;
  background: var(--workspace-surface);
  border-color: var(--workspace-border);
  color: var(--workspace-muted);
  cursor: not-allowed;
}
html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions > .vd-text-btn {
  background: transparent;
  border-color: transparent;
  color: var(--workspace-muted);
}
@media (max-width: 800px) {
  html body:not(.is-editor) .vd-root.vd-studio .vd-selection-bar { gap: 8px; }
  html body:not(.is-editor) .vd-root.vd-studio .vd-selection-actions { width: 100%; margin: 0; justify-content: flex-start; }
  html body:not(.is-editor) .vd-root.vd-studio .vd-filters .vd-multi-toggle { min-width: 72px; padding-inline: 9px; font-size: 12px; }
}

/* Match the workflow's compact circular generation action. */
html body:not(.is-editor) .vd-root.vd-studio #vdSend {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  gap: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--workspace-accent);
  color: var(--workspace-accent-text);
}
html body:not(.is-editor) .vd-root.vd-studio #vdSend > svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

/* Replication keeps the same dock collapse control and shared palette as generation. */
.vd-studio .vr-composer > .vd-composer-head {
  justify-content: flex-end;
  margin-bottom: 6px;
}

/* Browsers may require a click before starting audible hover playback. */
.vd-thumb > .vd-hover-play-hint,
.vr-card-preview > .vd-hover-play-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 35px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 5px 9px;
  border-radius: 8px;
  background: rgb(0 0 0 / 72%);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.vd-studio .vd-history-options { display: flex; align-items: center; gap: 14px; min-height: 34px; color: var(--workspace-muted); }
.vd-studio .vd-history-options > label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; white-space: nowrap; cursor: pointer; }
.vd-studio .vd-history-options input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--workspace-accent); }
.vd-studio .vd-history-options input[type="checkbox"]:focus-visible { outline: 2px solid var(--workspace-focus); outline-offset: 3px; }
.vd-studio .vd-history-options input[role="switch"] { position: relative; width: 28px; height: 16px; appearance: none; border: 0; border-radius: 9px; background: var(--workspace-border); cursor: pointer; }
.vd-studio .vd-history-options input[role="switch"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--workspace-surface); transition: transform .15s; }
.vd-studio .vd-history-options input[role="switch"]:checked { background: var(--workspace-accent); }
.vd-studio .vd-history-options input[role="switch"]:checked::after { transform: translateX(12px); background: var(--workspace-accent-text); }

/* Preserve original output pixels when the provider differs from the settings. */
.vd-studio .vd-thumb,
body:not(.is-editor) .vr-layout .vr-card-preview { aspect-ratio: var(--vd-output-ratio, .5625); }
.vd-studio .vd-thumb > video,
.vd-studio .vr-card-preview > video { object-fit: contain; }
.vd-output-summary { margin: 6px 0; color: var(--workspace-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.vd-output-summary.is-mismatch { color: var(--workspace-text); font-weight: 500; }
.vd-output-summary > span { display: block; }

/* Composer preferences reuse the system palette and wrap with existing controls. */
.vd-studio .vd-language-control,
.vd-studio .vd-subtitle-control {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
}
body:not(.is-editor) .vd-root.vd-studio .vd-language-control > select {
  width: auto;
  max-width: 125px;
  min-width: 0;
  min-height: 0;
  height: 28px;
  padding: 0 18px 0 2px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  background-color: transparent;
  color: var(--workspace-text);
  font: inherit;
  cursor: pointer;
}
body:not(.is-editor) .vd-root.vd-studio .vd-language-control > select:focus-visible {
  outline: 2px solid var(--workspace-focus);
  outline-offset: 2px;
}
body:not(.is-editor) :is(.vd-root.vd-studio,.vd-modal) .vd-subtitle-control {
  gap: 8px;
  cursor: pointer;
  color: var(--workspace-text);
}
body:not(.is-editor) :is(.vd-root.vd-studio,.vd-modal) .vd-subtitle-control > input {
  position: relative;
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 29px;
  height: 17px;
  min-width: 29px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--workspace-border);
  cursor: pointer;
  transition: background .15s ease;
}
body:not(.is-editor) :is(.vd-root.vd-studio,.vd-modal) .vd-subtitle-control > input::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--workspace-surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 15%);
  transition: transform .15s ease;
}
body:not(.is-editor) :is(.vd-root.vd-studio,.vd-modal) .vd-subtitle-control > input:checked {
  background: var(--workspace-accent);
}
body:not(.is-editor) :is(.vd-root.vd-studio,.vd-modal) .vd-subtitle-control > input:checked::before {
  transform: translateX(12px);
  background: var(--workspace-accent-text);
}
body:not(.is-editor) :is(.vd-root.vd-studio,.vd-modal) .vd-subtitle-control > input:focus-visible {
  outline: 2px solid var(--workspace-focus);
  outline-offset: 3px;
}
.vd-modal .vd-preset-preferences { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.vd-modal .vd-preset-preferences > label:first-child { flex: 1; min-width: 150px; }
@media (max-width: 520px) {
  .vd-studio .vd-language-control,
  .vd-studio .vd-subtitle-control { max-width: 100%; }
  body:not(.is-editor) .vd-root.vd-studio .vd-language-control > select { max-width: 114px; }
}

/* Persisted creation settings and measured output stay readable in both viewers. */
body:not(.is-editor) .vd-detail-viewer .vd-detail-info { overflow: hidden; }
body:not(.is-editor) .vd-detail-viewer .vd-detail-scroll {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  margin-right: -6px;
}
.vd-modal .vd-task-detail-section { margin: 0 0 18px; min-width: 0; }
.vd-modal .vd-task-detail-section > h5,
.vd-modal .vd-detail-prompt-heading {
  margin: 0 0 10px;
  color: var(--workspace-text);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.vd-modal .vd-task-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.vd-modal .vd-task-facts > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.vd-modal .vd-task-facts dt { margin: 0; color: var(--workspace-muted); }
.vd-modal .vd-task-facts dd {
  margin: 0;
  min-width: 0;
  color: var(--workspace-text);
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.vd-modal .vd-task-facts [data-vd-detail-field="estimated-cost"],
.vd-modal .vd-task-facts [data-vd-detail-field="output-estimated-cost"],
.vd-modal .vd-task-facts [data-vd-detail-field="generation-cost"] { font-weight: 600; }
.vd-modal .vd-task-detail-note {
  margin: 8px 0 0;
  color: var(--workspace-muted);
  font-size: 11px;
  line-height: 1.6;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-scroll button.vd-detail-prompt {
  flex: none;
  max-height: none;
  min-height: 110px;
  font-size: 12px;
  line-height: 1.8;
}
body:not(.is-editor) .vd-detail-viewer .vd-detail-actions {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--workspace-border);
}
.vd-modal.vr-detail-modal .vd-task-detail-section:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  body:not(.is-editor) .vd-detail-viewer .vd-detail-info { overflow: visible; }
  body:not(.is-editor) .vd-detail-viewer .vd-detail-scroll {
    flex: none;
    overflow: visible;
    padding-right: 0;
    margin-right: 0;
  }
  .vd-modal .vd-task-facts { font-size: 11px; }
  .vd-modal .vd-task-facts > div { grid-template-columns: 78px minmax(0,1fr); gap: 9px; }
}

/* The bounded generation fog follows the shared system theme; it has no
   separate theme setting or persistence. */
:is(.vd-studio, .vd-detail-viewer) :is(.vd-video-state, .vr-pending-card).vd-generation-active {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #05121f;
}
.vd-generation-effect {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 8% 95%, #042334 0%, transparent 62%), linear-gradient(145deg, #01060b 3%, #03101b 56%, #03141e);
}
.vd-generation-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 71% 15%, #010407c4 1%, transparent 59%), radial-gradient(ellipse at 58% 47%, #01040966 0%, transparent 42%), linear-gradient(180deg, #01060c33, transparent 65%, #01070d22);
}
.vd-generation-effect__field {
  position: absolute;
  inset: -32%;
  display: block;
  filter: blur(25px);
}
.vd-generation-effect__field > i {
  position: absolute;
  display: block;
  width: 76%;
  height: 57%;
  left: 0;
  top: 13%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 43% 54%, #3dbce8 0%, #1697c8 32%, #08618b99 59%, transparent 77%);
  opacity: .9;
  transform-origin: center;
  animation: vdGenerationFogBlue 18s ease-in-out -3s infinite;
}
.vd-generation-effect__field > i:nth-child(2) {
  width: 76%;
  height: 55%;
  left: 34%;
  top: 37%;
  background: radial-gradient(ellipse at 54% 49%, #28aebf 1%, #1082a3 31%, #06485d8c 59%, transparent 77%);
  opacity: .78;
  animation: vdGenerationFogCyan 20s ease-in-out -9s infinite;
}
.vd-generation-effect__field > i:nth-child(3) {
  width: 73%;
  height: 67%;
  left: 46%;
  top: 7%;
  background: radial-gradient(ellipse at 51% 51%, #13527f 0%, #071d3844 42%, transparent 72%);
  opacity: .72;
  animation: vdGenerationFogDepth 22s ease-in-out -14s infinite;
}
.vd-generation-effect__field > i:nth-child(4) {
  width: 91%;
  height: 47%;
  left: -15%;
  top: 36%;
  background: radial-gradient(ellipse at 53% 56%, #d8e0e7 0%, #9bb3c58c 29%, transparent 69%);
  opacity: .08;
  animation: vdGenerationFogSilver 22s ease-in-out -5s infinite;
}
:is(.vd-studio, .vd-detail-viewer) :is(.vd-video-state, .vr-pending-card).vd-generation-active > .vd-generation-status {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: auto;
  max-width: calc(100% - 24px);
  padding: 5px 8px;
  border: 1px solid #a9d9ee26;
  border-radius: 6px;
  background: #041322a6;
  color: #e2f2fa;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  backdrop-filter: blur(8px);
}
.vd-generation-status > i {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #87d1df;
  box-shadow: 0 0 7px #7bc9df77;
}
.vd-generation-progress { color: #c4e1ed; font-variant-numeric: tabular-nums; }
@keyframes vdGenerationFogBlue {
  0%, 100% { opacity: .84; transform: translate3d(-5%, -4%, 0) rotate(-9deg) scale(1.08); }
  50% { opacity: .97; transform: translate3d(7%, 7%, 0) rotate(8deg) scale(.97, 1.14); }
}
@keyframes vdGenerationFogCyan {
  0%, 100% { opacity: .7; transform: translate3d(-6%, 8%, 0) rotate(11deg) scale(1.06); }
  50% { opacity: .89; transform: translate3d(9%, -5%, 0) rotate(-10deg) scale(1.18, 1.04); }
}
@keyframes vdGenerationFogDepth {
  0%, 100% { opacity: .56; transform: translate3d(7%, -4%, 0) scale(1.05, 1.12); }
  50% { opacity: .85; transform: translate3d(-10%, 8%, 0) scale(1.2, .98); }
}
@keyframes vdGenerationFogSilver {
  0%, 12%, 78%, 100% { opacity: .025; transform: translate3d(-8%, 8%, 0) rotate(-15deg) scale(1.05); }
  40%, 50% { opacity: .18; transform: translate3d(8%, -12%, 0) rotate(12deg) scale(1.2); }
}
/* Pastel blue/cyan fog is the light system-theme palette of the same scene. */
html[data-workspace-theme="light"] :is(.vd-studio, .vd-detail-viewer) :is(.vd-video-state, .vr-pending-card).vd-generation-active {
  background: #ddeaf7;
}
html[data-workspace-theme="light"] .vd-generation-effect {
  background: radial-gradient(ellipse at 8% 95%, #dbecee 0%, transparent 62%), linear-gradient(145deg, #e8eef7 3%, #ddeaf7 56%, #e1edf1);
}
html[data-workspace-theme="light"] .vd-generation-effect::after {
  background: radial-gradient(ellipse at 71% 15%, #edf3f9b8 1%, transparent 59%), radial-gradient(ellipse at 58% 47%, #d9e3ed24 0%, transparent 42%), linear-gradient(180deg, #f2f5fa33, transparent 65%, #dbe7ee22);
}
html[data-workspace-theme="light"] .vd-generation-effect__field > i {
  background: radial-gradient(ellipse at 43% 54%, #b5d6f2 0%, #c0daf1 32%, #c6ddf099 59%, transparent 77%);
}
html[data-workspace-theme="light"] .vd-generation-effect__field > i:nth-child(2) {
  background: radial-gradient(ellipse at 54% 49%, #c0e6e9 1%, #c6e5e9 31%, #d0e8ec8c 59%, transparent 77%);
}
html[data-workspace-theme="light"] .vd-generation-effect__field > i:nth-child(3) {
  background: radial-gradient(ellipse at 51% 51%, #d9d9ed 0%, #e0e1ef77 42%, transparent 72%);
}
html[data-workspace-theme="light"] .vd-generation-effect__field > i:nth-child(4) {
  background: radial-gradient(ellipse at 53% 56%, #f3f5f8 0%, #e9eef58c 29%, transparent 69%);
}
html[data-workspace-theme="light"] :is(.vd-studio, .vd-detail-viewer) :is(.vd-video-state, .vr-pending-card).vd-generation-active > .vd-generation-status {
  border-color: #b3c5d76b;
  background: #e5eef6cc;
  color: #526373;
}
html[data-workspace-theme="light"] .vd-generation-status > i {
  background: #7da8c2;
  box-shadow: 0 0 7px #739ab522;
}
html[data-workspace-theme="light"] .vd-generation-progress { color: #627789; }
/* Moving fog pauses off screen and becomes a static diffuse scene for reduced motion. */
:is(.tab-pane:not(.active), [hidden], [aria-hidden="true"]) .vd-generation-effect *,
html[data-vd-generation-paused="true"] .vd-generation-effect *,
.vd-generation-effect[data-paused="true"] * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .vd-generation-effect__field > i { animation: none; transform: none; }
  .vd-generation-effect__field > i:nth-child(4) { opacity: .06; }
}

/* The composer anchors this owned-material menu to the textarea. */
.vd-studio .vd-gp-input { position: relative; }
.vd-studio .vd-mention-picker {
  position: absolute;
  z-index: 90;
  width: min(360px, calc(100% - 16px));
  max-width: calc(100% - 16px);
  max-height: 240px;
  padding: 5px;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: var(--workspace-surface);
  color: var(--workspace-text);
  box-shadow: var(--shadow-lg, 0 12px 36px #0002);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  box-sizing: border-box;
}
.vd-studio .vd-mention-picker[hidden] { display: none; }
.vd-studio button.vd-mention-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--workspace-text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.vd-studio button.vd-mention-option:is(:hover, .is-active, [aria-selected="true"]) {
  background: var(--workspace-soft);
}
.vd-studio button.vd-mention-option:is(:focus-visible, .is-active, [aria-selected="true"]) {
  border-color: var(--workspace-focus, var(--workspace-muted));
  outline: none;
}
.vd-studio .vd-mention-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--workspace-border);
  border-radius: 7px;
  background: var(--workspace-soft);
  color: var(--workspace-muted);
  overflow: hidden;
}
.vd-studio .vd-mention-thumb :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vd-studio .vd-mention-thumb > svg { width: 20px; height: 20px; }
.vd-studio .vd-mention-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.vd-studio .vd-mention-copy strong {
  overflow: hidden;
  color: var(--workspace-text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vd-studio .vd-mention-copy small {
  color: var(--workspace-muted);
  font-size: 10px;
  line-height: 1.5;
}
.vd-studio .vd-mention-empty {
  padding: 12px 10px;
  color: var(--workspace-muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .vd-studio .vd-mention-picker { max-height: min(240px, 35dvh); border-radius: 10px; }
  .vd-studio button.vd-mention-option { min-height: 48px; }
}
