.vl-dialog {
  --vl-line: #383542;
  --vl-accent: #d8ceff;
  width: min(38rem, calc(100% - 2rem));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  color: #f4f1f9;
  background: #19171f;
  border: 1px solid #494352;
  border-radius: 1.4rem;
  box-shadow: 0 1.5rem 6rem #0009;
}
.vl-dialog::backdrop { background: #090811bd; backdrop-filter: blur(8px); }
.vl-shell { display: flex; flex-direction: column; max-height: min(82dvh, 47rem); border-radius: inherit; overflow: hidden; }
.vl-head { display: flex; align-items: flex-start; gap: .85rem; padding: 1.4rem 1.4rem 1.15rem; border-bottom: 1px solid var(--vl-line); }
.vl-head h2 { margin: 0; color: #fff; font-size: clamp(1.23rem, 3.3vw, 1.6rem); letter-spacing: -.035em; line-height: 1.25; overflow-wrap: anywhere; outline: none; }
.vl-head p,.vl-footer p { margin: .35rem 0 0; font-size: .88rem; line-height: 1.45; color: #c6bfce; }
.vl-sigil,.vl-close,.vl-play { flex: 0 0 auto; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
.vl-sigil { background: #332d47; color: #dbccff; border-radius: .8rem; }
.vl-close,.vl-play { margin: 0; padding: 0; color: #ece5fa; background: #26232d; border: 1px solid #433d4b; border-radius: 50%; }
.vl-close { margin-left: auto; }
.vl-filters { display: flex; gap: .6rem; padding: 1rem 1.4rem 0; }
.vl-search { flex: 1; display: flex; align-items: center; gap: .45rem; min-width: 0; padding-inline: .7rem; }
.vl-search,.vl-filters select { min-height: 2.75rem; margin: 0; border-radius: .65rem; background: #121017; border: 1px solid var(--vl-line); color: #ded8ea; }
.vl-filters select { width: auto; max-width: 100%; font: inherit; font-size: .88rem; padding-inline: .7rem; }
.vl-search input { flex: 1; width: 100%; min-width: 0; margin: 0; padding: .45rem .1rem; border: 0; background: none; color: inherit; font: inherit; font-size: 1rem; }
.vl-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .75rem 1.4rem; scrollbar-color: #5c5668 transparent; }
.vl-empty { color: #c7bfd1; }
.vl-row { display: flex; gap: .55rem; align-items: center; padding: .38rem .45rem .38rem .65rem; border: 1px solid transparent; border-bottom-color: var(--vl-line); }
.vl-row.current { border-radius: .75rem; border-color: #807196; background: #302a3b; }
.vl-label { display: flex; align-items: center; align-self: stretch; gap: .7rem; flex: 1; padding: .2rem 0; margin: 0; min-width: 0; cursor: pointer; }
.vl-label input { flex: 0 0 1rem; width: 1rem; height: 1rem; margin: 0; accent-color: var(--vl-accent); }
.vl-words { display: grid; gap: .18rem; overflow-wrap: anywhere; min-width: 0; }
.vl-words strong,.vl-footer strong { font-size: .98rem; line-height: 1.3; color: #fff; }
.vl-words small,.vl-missing,.vl-footer small { color: #bdb5c7; font-size: .79rem; line-height: 1.35; }
.vl-missing { padding: 0 .3rem; }
.vl-play[aria-pressed="true"] { background: #d7c5ff; color: #21172f; border-color: transparent; }
.vl-play .pause { display: block; width: .75rem; height: 1rem; border-inline: .24rem solid currentColor; }
.vl-footer { padding: .9rem 1.4rem 1rem; display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: .2rem 1rem; background: #201d27; border-top: 1px solid var(--vl-line); }
.vl-footer div { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.vl-footer p { grid-column: 1/-1; font-size: .78rem; min-height: 1em; margin: 0; }
.vl-footer progress { grid-column: 1/-1; width: 100%; height: .24rem; border: 0; border-radius: 1rem; appearance: none; overflow: hidden; color: #cbb0ff; background: #393441; }
.vl-footer progress::-webkit-progress-bar { background: #393441; }
.vl-footer progress::-webkit-progress-value { background: #cbb0ff; }
.vl-footer progress::-moz-progress-bar { background: #cbb0ff; }
.vl-apply { min-height: 2.8rem; padding: .55rem 1rem; color: #21192e; background: #e7ddff; border: 0; border-radius: .72rem; font-weight: 750; }
.vl-dialog :is(button,input,select):focus-visible,.voice-launch:focus-visible { outline: 2px solid #e0cfff; outline-offset: 2px; }
.voice-launch { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .55rem .85rem; border-radius: .7rem; border: 1px solid #514559; background: #2a2332; color: #efe8fb; font: inherit; font-weight: 650; }
.voice-launch .ic { flex: 0 0 auto; }
.voice-field { display: grid; gap: .35rem; min-width: 0; }
.voice-field .voice-launch { justify-content: space-between; text-align: start; }
.vl-dialog [hidden] { display: none !important; }
@media (max-width: 560px) {
  .vl-dialog { margin: auto 0 0; width: 100%; border-width: 1px 0 0; border-radius: 1.3rem 1.3rem 0 0; }
  .vl-shell { max-height: 91dvh; }
  .vl-head,.vl-filters,.vl-list,.vl-footer { padding-inline: 1rem; }
  .vl-footer { padding-bottom: max(.9rem,env(safe-area-inset-bottom)); }
  .vl-filters { flex-wrap: wrap; }
  .vl-search { min-width: 9rem; }
}
@media (hover:hover) { .vl-play:hover,.vl-close:hover,.voice-launch:hover { border-color: #a38bbc; } .vl-apply:hover { background: #f6f0ff; } }
/* Companion dialogs used while casting and reviewing a chapter. */
:is(#newProject,#draftPhotoViewer,#storyboardPhoto,#takeReviewDialog) {
  border: 1px solid #47404f; border-radius: 1.15rem;
  padding: clamp(.85rem,2vw,1.4rem); color: #f4f1f9; background: #1a1720;
  box-shadow: 0 1.2rem 5rem #0008; overscroll-behavior: contain;
}
:is(#newProject,#draftPhotoViewer,#storyboardPhoto,#takeReviewDialog)::backdrop { background: #080710bc; backdrop-filter: blur(6px); }
:is(#newProject,#draftPhotoViewer,#storyboardPhoto,#takeReviewDialog) .dr-photo-viewer-head {
  padding: 0 0 .7rem; margin: 0 0 .9rem; border-bottom: 1px solid #38313e;
}
:is(#newProject,#draftPhotoViewer,#storyboardPhoto,#takeReviewDialog) .dr-photo-viewer-head h3 { font-size: 1.12rem; letter-spacing: -.018em; overflow-wrap: anywhere; }
:is(#newProject,#draftPhotoViewer,#storyboardPhoto,#takeReviewDialog) .dr-photo-viewer-head button { min-height: 2.75rem; border-radius: .65rem; }
:is(#draftPhotoViewer,#storyboardPhoto) img { border-radius: .65rem; }
