.video-project-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.55);color:var(--ink);font-family:inherit}
.video-project-room{width:min(100%,760px);max-height:calc(100dvh - 32px);overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;box-sizing:border-box}
.video-project-room header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:sticky;top:-20px;background:inherit;z-index:2;padding:12px 0}
.video-project-room h2{font:700 var(--yp-font-A)/1.4 var(--yp-font-family);margin:0;overflow-wrap:anywhere}
.video-project-room p,.video-project-room figcaption{font-size:var(--yp-font-C);line-height:1.6;margin:6px 0}
.video-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.video-project-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:var(--yp-font-C)}
.video-project-pages>div{display:flex;align-items:center;gap:8px;white-space:nowrap}
.video-project-pages button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:var(--yp-font-B)}
.video-project-pages button:disabled{opacity:.35}
.video-project-grid figcaption>span{min-width:0}
.video-project-grid figcaption>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.video-project-grid figcaption>span:last-child{flex-shrink:0;font-variant-numeric:tabular-nums}
.video-project-pages .video-project-rotate svg{width:22px;height:22px}
.video-project-pages .video-project-rotate[aria-pressed="true"]{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.video-project-grid figure{position:relative;margin:0;border-radius:10px;background:#161a20;color:#fff;overflow:hidden;min-width:0}
.video-project-grid video{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.video-project-grid [data-video-local]{transform:scaleX(-1)}
.video-project-grid figcaption{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:6px 10px;overflow-wrap:anywhere}
.video-project-grid .video-project-remove{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:7px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.video-project-grid .video-project-remove:before{content:"";position:absolute;inset:6px;border-radius:50%;background:rgba(16,20,28,.62)}
.video-project-grid .video-project-remove svg{position:relative;width:18px;height:18px}
.video-project-grid .video-project-remove:hover:before{background:rgba(16,20,28,.85)}
.video-project-grid .video-project-remove:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.video-project-grid .video-project-remove:disabled{opacity:.45;cursor:default}
.video-camera-off{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;width:100%;text-align:center;font-size:var(--yp-font-C);color:#c5cbd4}
.video-project-grid video::-webkit-media-controls{display:none!important}
.video-project-grid video::-webkit-media-controls-start-playback-button{display:none!important}
.video-project-status{padding:10px 12px;background:var(--yp-accent-softer,#f3f4f6);border-radius:8px;overflow-wrap:anywhere}
.video-project-status[hidden]{display:none}
.video-project-grid [data-video-time]{font-variant-numeric:tabular-nums}
.video-project-facts{border-top:1px solid var(--line);margin:12px 0;padding:10px 0 0 18px;color:var(--muted);font-size:var(--yp-font-C);line-height:1.6;list-style:disc}
.video-project-facts li{margin:3px 0}
.video-project-room footer{position:sticky;bottom:-20px;background:inherit;display:flex;gap:8px;padding:12px 0}
.video-project-room footer button{flex:1;display:flex;justify-content:center;align-items:center;min-height:44px;font-size:var(--yp-font-B);font-weight:700;line-height:1.3;border-radius:8px;padding:10px}
.video-project-room footer button.secondary{background:var(--soft,#f3f4f6);border:1px solid var(--line);color:var(--ink)}
.group-project-setup-panel > .video-project-schedule-fields{margin-top:20px}
.video-project-notice{padding:12px;border:1px solid var(--line);border-radius:8px;font-size:var(--yp-font-C);line-height:1.6;margin-bottom:14px}
.video-project-notice strong{display:block;font-size:var(--yp-font-B);margin-bottom:4px}
body.dark-mode .video-project-room{background:#171b23;color:#f2f4f8;border-color:#363e4b}
body.dark-mode .video-project-status{background:#29313e}
body.dark-mode .video-project-facts{color:#b7bfcd}
@media(max-width:400px){.video-project-overlay{padding:8px}.video-project-room{padding:14px;max-height:calc(100dvh - 16px)}.video-project-grid{gap:6px}}
.video-project-overlay.is-page{padding:0;align-items:stretch;background:var(--panel,#fff)}
.video-project-overlay.is-page .video-project-room{display:flex;flex-direction:column;width:100%;height:100%;max-height:none;border:0;border-radius:0;overscroll-behavior:contain;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.video-project-overlay.is-page .video-project-room>header{top:0;margin:0 0 16px!important;padding:8px 0 12px!important;flex-shrink:0}
.video-project-overlay.is-page .video-project-room>footer{bottom:0;margin-top:auto;flex-shrink:0}
.video-project-overlay.is-page .video-project-grid{width:100%;max-width:1080px;margin:16px auto;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
.video-project-overlay.is-page .video-project-grid video,.video-project-overlay.is-page .video-camera-off{max-height:32dvh;object-fit:cover}
@media(max-width:480px){.video-project-pages{gap:4px}.video-project-pages>div{gap:4px}.video-project-pages button{width:38px}.video-project-overlay.is-page .video-project-room{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}}

.video-project-setup-actions{display:grid;grid-template-columns:1fr;gap:10px}

/* Participation is selected directly in the shared project setup form. */
.project-participation-field { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.project-participation-field > legend { margin-bottom: 8px; padding: 0; color: var(--muted, #666); font-size: var(--yp-font-C); font-weight: 900; line-height: 1.5; }
html.custom-font-weight body #app .project-participation-field > legend { font-weight: var(--yp-font-weight) !important; }
.project-participation-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.project-participation-option { box-sizing: border-box; display: grid; gap: 4px; min-width: 0; width: 100%; min-height: 44px; padding: 12px; border: 1px solid var(--line, #ddd); border-radius: var(--yp-box-radius, 16px); background: var(--panel, #fff); color: var(--ink, #111); text-align: left; font-family: inherit; cursor: pointer; }
.project-participation-option > strong { min-width: 0; font-size: var(--yp-font-B); font-weight: 700; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.project-participation-option > span { min-width: 0; color: var(--muted, #666); font-size: var(--yp-font-C); font-weight: 400; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.project-participation-option[aria-pressed="true"] { border-color: var(--ink, #111); box-shadow: inset 0 0 0 1px var(--ink, #111); background: var(--yp-accent-softer, var(--soft, #f7f7f7)); }
.project-participation-option[aria-pressed="false"]:hover { background: var(--soft, #f7f7f7); }
.project-participation-option:focus-visible { outline: 2px solid var(--ink, #111); outline-offset: 3px; }
