/* A shared modal boundary keeps both interfaces on the same safe workflow. */
@scope (.two-video-project-dialog) {
  :scope {box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--tc-line,#d5d6d0);border-radius:12px;background:var(--tc-surface,#fff);color:var(--tc-ink,#202420);font:14px/1.5 var(--tc-body,system-ui);overflow:auto;box-shadow:0 20px 60px #0005;}
  *,*::before,*::after {box-sizing:border-box;}
  [hidden] {display:none;}
  form {display:grid;gap:20px;margin:0;padding:24px;}
  .dialog-heading {display:flex;align-items:flex-start;gap:16px;}
  .dialog-heading strong {flex:1;font-size:28px;line-height:1.12;letter-spacing:-.3px;}
  p {margin:0;color:var(--tc-muted,#5f675f);}
  button,input {font:inherit;color:inherit;min-width:0;max-width:100%;border:1px solid var(--tc-line,#d5d6d0);border-radius:8px;}
  button {min-height:44px;padding:10px 14px;background:transparent;cursor:pointer;}
  button:disabled {opacity:.5;cursor:default;}
  :is(button,input):focus-visible {outline:2px solid var(--tc-accent,#21703c);outline-offset:3px;}
  .icon-button {flex:none;width:40px;padding:0;border:0;font-size:24px;}
  .two-video-project-previews {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  figure {min-width:0;margin:0;}
  .two-video-project-thumbnail {display:grid;place-items:center;aspect-ratio:16/10;overflow:hidden;border-radius:8px;background:var(--tc-raised,#f1f3ed);color:var(--tc-muted,#5f675f);}
  .two-video-project-thumbnail img {display:block;width:100%;height:100%;object-fit:contain;}
  figcaption {display:grid;gap:3px;padding-top:8px;overflow-wrap:anywhere;}
  figcaption small {color:var(--tc-muted,#5f675f);font-size:11px;}
  figcaption strong {font-size:13px;font-weight:600;}
  .two-video-project-name {display:grid;gap:6px;color:var(--tc-muted,#5f675f);font-size:12px;}
  input {width:100%;min-height:44px;padding:10px 12px;background:var(--tc-raised,#f1f3ed);color:var(--tc-ink,#202420);}
  .two-video-project-choices {display:grid;gap:10px;}
  .two-video-project-choices button {display:grid;gap:6px;width:100%;padding:16px;text-align:left;}
  .two-video-project-choices button>span:last-child {font-size:13px;line-height:1.5;color:var(--tc-muted,#5f675f);}
  .two-video-choice-title {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-weight:650;}
  .two-video-choice-title small {font-size:10px;font-weight:600;}
  [data-two-video-action="create"] {border-color:var(--tc-accent,#21703c);background:var(--tc-accent-soft,#eaf5e9);}
  [data-two-video-action="create"]:hover:not(:disabled) {background:var(--tc-raised,#f1f3ed);}
  .dialog-actions {display:flex;justify-content:flex-end;}
  #twoVideoProjectStatus {font-size:13px;overflow-wrap:anywhere;}
  @media(max-width:700px) {
    :scope {width:calc(100vw - 24px);max-height:calc(100dvh - 24px);}
    form {padding:20px;gap:18px;}
    .dialog-heading strong {font-size:24px;}
    input {font-size:16px;}
    .two-video-project-previews {gap:10px;}
    .dialog-actions button {width:100%;}
  }
}
.two-video-project-dialog::backdrop {background:#10100fe0;}
