.project-page-head{align-items:flex-start;flex-wrap:wrap;gap:12px 24px}
.project-page-identity{flex:1 1 520px;min-width:0}
.project-page-identity h1{margin:0 0 6px}
.project-page-identity p{max-width:850px;overflow-wrap:anywhere;line-height:1.4}
.project-page-status{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:8px}
.project-page-status .badge{white-space:nowrap}
.project-live-progress{display:grid;grid-template-columns:minmax(120px,1fr) minmax(145px,auto);align-items:center;gap:7px 14px;margin-top:10px}
.project-live-progress .progress{height:7px;margin:0;overflow:hidden;border-radius:999px;background:#dce8f5}
.project-live-progress .progress span{display:block;height:100%;border-radius:inherit;background:var(--blue);transition:width .35s ease}
.project-live-progress>div:last-child{display:flex;align-items:baseline;justify-content:space-between;gap:10px;white-space:nowrap}
.project-live-progress>div:last-child strong{font-size:12px}
.project-live-progress small,.project-live-progress-copy small{color:var(--muted);font-size:11px}
.project-live-progress-copy{display:flex;align-items:center;gap:10px;margin-top:8px}
@media(max-width:760px){.project-page-status{width:100%;justify-content:flex-start;padding-top:0}}
@media(max-width:560px){.project-live-progress{grid-template-columns:1fr}.project-live-progress>div:last-child{justify-content:space-between}}
.project-one-page{display:grid;gap:22px}
.project-one-page .panel{min-width:0}
.project-config{padding:20px 24px}
.project-config-heading,.project-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}
.project-config-heading h2,.project-section-heading h2{text-wrap:balance}
.project-config-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.project-config-actions .btn{min-height:40px}
.project-config-form{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(220px,1.2fr) auto;align-items:end;gap:14px;margin-top:16px}
.project-config-form .field{min-width:0}
.project-config-form .reference-compact-row{min-height:42px;padding:9px 12px}
.project-config-form .reference-compact small{font-size:11px}
.project-config-form .reference-compact-row .grow{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-config-save{min-height:42px}
.project-config-more{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px}
.project-config-more summary{display:list-item;width:max-content;color:var(--blue);font-size:12px;font-weight:700;cursor:pointer}
.project-config-more[open]{display:grid;gap:12px}
.project-config-more textarea{min-height:72px}
.project-scenes{padding:18px}
.project-section-heading{margin-bottom:14px}
.project-section-heading p{margin:4px 0 0}
.project-scene-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.project-scene-summary span{padding:7px 10px;border:1px solid var(--line);border-radius:99px;background:#f5f9ff}
.project-scene-grid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:9px;min-width:0}
.project-scene-grid:has(> :nth-child(7)){grid-auto-columns:minmax(185px,1fr);overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:9px}
.project-scene-grid{scrollbar-width:thin;scrollbar-color:#8bbdf7 #e9f3ff}
.project-scene-grid::-webkit-scrollbar{height:8px}
.project-scene-grid::-webkit-scrollbar-track{background:#e9f3ff;border-radius:99px}
.project-scene-grid::-webkit-scrollbar-thumb{background:#8bbdf7;border-radius:99px}
.project-scene-card{min-width:0;padding:8px;border:1px solid #cbdff5;border-radius:10px;background:#fff;box-shadow:0 2px 8px #173e6b08;animation:project-scene-enter .24s ease-out both;transition:border-color .18s,box-shadow .18s,transform .18s}
.project-scene-card:nth-child(2){animation-delay:30ms}.project-scene-card:nth-child(3){animation-delay:60ms}.project-scene-card:nth-child(4){animation-delay:90ms}
@keyframes project-scene-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.project-scene-card:hover{border-color:#9cc6f2;box-shadow:0 8px 22px #173e6b12;transform:translateY(-2px)}
.project-scene-heading{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-bottom:7px}
.project-scene-heading h3{font-size:12px}
.project-scene-file{display:none}
.project-scene-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.project-scene-media{min-width:0}
.project-scene-media-heading{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:37px;margin-bottom:5px;font-size:10px}
.project-scene-media-heading .badge{padding:2px 5px;font-size:9px}
.project-scene-preview{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:9/16;padding:0;overflow:hidden;border:1px solid #c8d9ec;border-radius:9px;background:#123252;color:#fff;transition:border-color .18s,box-shadow .18s}
.project-scene-preview:hover{border-color:#4591f4;box-shadow:0 0 0 3px #2478f41a}
.project-scene-preview img,.project-scene-preview video{display:block;width:100%;height:100%;object-fit:contain;background:#123252}
.project-scene-preview video{pointer-events:none}
.project-scene-preview img{outline:1px solid #0002;outline-offset:-1px}
.project-scene-preview.is-pending{background:#edf4fc;color:#52779e}
.project-scene-preview.is-failed{background:#fff0f1;color:#a8394b;border-color:#efb8be}
.project-scene-video.is-pending{background:#102e54;color:#d2e7ff}
.project-scene-placeholder{display:grid;justify-items:center;gap:6px;padding:5px;text-align:center}
.project-scene-placeholder .icon{width:22px;height:22px}
.project-scene-placeholder small{font-size:9px;line-height:1.25;text-wrap:pretty}
.project-scene-play{position:absolute;inset:0;display:grid;place-items:center;color:white;background:#071b3426}
.project-scene-play .icon{width:42px;height:42px;padding:10px;border-radius:50%;background:#2478f4;box-shadow:0 6px 18px #0004}
.project-scene-open{width:100%;min-height:32px;margin-top:5px;padding:4px 3px;font-size:9px;gap:3px;white-space:normal}
.project-scene-open .icon{width:14px;height:14px}
.project-edit-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding:13px 16px;border-radius:10px;background:#edf5ff;color:#4d6d8f;font-size:12px}
.project-documents{padding:24px}
.project-document-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.project-document-list .file-row{margin:0;border:0;border-bottom:1px solid var(--line)}
.project-document-list .file-row:last-child{border-bottom:0}
.project-document-name{min-width:0;overflow-wrap:anywhere}
.project-story-idea{display:grid;gap:10px;margin-bottom:18px}
.project-story-idea .btn{justify-self:start}
@media(max-width:1050px){.project-config-heading{align-items:flex-start;flex-direction:column}.project-config-actions{justify-content:flex-start}.project-config-form{grid-template-columns:repeat(2,minmax(0,1fr))}.project-config-save{grid-column:1/-1;justify-self:start}}
@media(max-width:1100px){.project-scene-grid{grid-auto-columns:minmax(185px,26vw);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding-bottom:9px}.project-scene-card{scroll-snap-align:start}}
@media(max-width:560px){.project-config,.project-scenes,.project-documents{padding:16px}.project-config-form{grid-template-columns:1fr}.project-config-save{grid-column:auto;width:100%}.project-scene-grid{grid-auto-columns:minmax(190px,64vw)}.project-edit-bar{align-items:stretch;flex-direction:column}.project-document-list .file-row{gap:8px;flex-wrap:wrap}.project-document-list .file-actions{margin-left:auto}}
#modal.clip-gallery-modal[open]{display:flex;flex-direction:column;height:min(780px,calc(100dvh - 20px));max-height:calc(100dvh - 20px)}
.clip-gallery-modal .modal-head{flex:none;padding:14px 20px}
.clip-gallery-modal .modal-head h2{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clip-gallery-modal .modal-body{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;padding:14px 20px}
.clip-gallery-modal .gallery-dialogue{flex:none;margin:0 64px 12px;padding:10px 14px}
.clip-gallery-modal .gallery-dialogue p{font-size:14px;line-height:1.35}
.clip-gallery-modal .clip-gallery{flex:1;min-height:0}
.clip-gallery-modal .gallery-player,.clip-gallery-modal .gallery-missing{height:100%;min-height:0}
.clip-gallery-modal .gallery-player video{height:100%;max-height:none}
.clip-gallery-modal .gallery-footer{flex:none;margin-top:12px;gap:8px}
@media(max-width:700px){.clip-gallery-modal .gallery-dialogue{margin:0 38px 10px}.clip-gallery-modal .modal-body{padding:12px}.clip-gallery-modal .gallery-footer>.small{display:none}}
#modal.image-gallery-modal[open]{display:flex;flex-direction:column;height:min(780px,calc(100dvh - 20px));max-height:calc(100dvh - 20px)}
.image-gallery-modal .modal-head{flex:none;padding:14px 20px}
.image-gallery-modal .modal-body{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;padding:14px 20px}
.image-gallery-modal .image-gallery{flex:1;min-height:0}
.image-gallery-modal .image-gallery-stage,.image-gallery-modal .image-gallery>.image-missing{width:auto;height:100%;max-width:100%;min-height:0;aspect-ratio:9/16;justify-self:center}
.image-gallery-modal .gallery-footer{flex:none;margin-top:12px;gap:8px}
.media-gallery-footer{display:block;flex:none;border-top:1px solid #e3ecf6;padding-top:11px}
.media-footer-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#7389a5;font-size:11px}
.media-footer-top strong{color:#102e54;font-size:12px;font-variant-numeric:tabular-nums}
.media-footer-top strong span{color:#8da0b6;font-weight:600}
.media-footer-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px}
.media-footer-group{display:grid;gap:6px;min-width:0}
.media-footer-copy{flex:1}
.media-footer-manage{flex:none}
.media-footer-label{color:#8295ad;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.media-footer-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.media-footer-manage .media-footer-buttons{justify-content:flex-end}
.media-gallery-footer .btn{min-height:38px;padding:8px 11px;border-radius:8px;font-size:12px;gap:6px}
.media-gallery-footer .btn .icon{width:16px;height:16px}
.media-footer-copy .btn{background:#f6f9fd;border-color:#e3ebf5;color:#315579}
.media-footer-copy .btn:hover{background:#eaf3ff;border-color:#b7d4f5;color:#176bd0}
.media-footer-manage .btn:not(.primary){border-color:#dce8f5;color:#466784}
.media-footer-manage .btn.primary{box-shadow:none}
.media-gallery-footer .btn:active{transform:scale(.98)}
.media-gallery-footer .manual-upload-status:empty{display:none}
@media(max-width:850px){.media-footer-toolbar{align-items:stretch;flex-direction:column;gap:10px}.media-footer-manage .media-footer-buttons{justify-content:flex-start}}
@media(max-width:700px){.image-gallery-modal .modal-body{padding:12px}.image-gallery-modal .gallery-footer>.small{display:none}}
@media(prefers-reduced-motion:reduce){.project-scene-card,.project-scene-preview{animation:none;transition:none}.project-scene-card:hover{transform:none}}
.adjust-scene-fieldset{border:1px solid #c8dcf6;border-radius:10px;padding:12px 14px}.adjust-scene-fieldset legend{font-size:13px;font-weight:700;color:#0b2d57;padding:0 5px}.adjust-scene-choices{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.adjust-scene-choice{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #d0e1f7;border-radius:7px;background:#f5f9ff;color:#163c6a;font-size:13px;cursor:pointer}.adjust-scene-choice:has(input:checked){border-color:#2876e8;background:#e7f1ff}.adjust-scene-choice input{accent-color:#2675e8}
dialog:has(#restart-image-form){width:min(780px,calc(100% - 28px));border:1px solid #173d68;border-radius:12px;overflow:hidden}dialog:has(#restart-image-form) .modal-head{background:#102e54;color:#fff;border:0;padding:20px 24px 17px}dialog:has(#restart-image-form) .modal-head h2{font-size:21px;letter-spacing:-.035em}dialog:has(#restart-image-form) .modal-head .icon-btn{color:#c8dff8}dialog:has(#restart-image-form) .modal-head .icon-btn:hover{background:#ffffff20;color:#fff}dialog:has(#restart-image-form) .modal-body{padding:0}.restart-form{display:grid;grid-template-columns:minmax(220px,31%) minmax(0,1fr);color:#102e54}.restart-aside{display:flex;flex-direction:column;align-items:flex-start;min-height:310px;padding:22px 24px 24px;background:#102e54;color:#fff}.restart-brand-mark{width:31px;height:31px;margin-bottom:24px;color:#ff7019}.restart-aside-label{font-size:10px;font-weight:800;letter-spacing:.16em;color:#9cc6ee}.restart-aside>strong{margin-top:6px;font-family:Manrope,system-ui,sans-serif;font-size:22px;line-height:1.12;letter-spacing:-.04em;overflow-wrap:anywhere}.restart-version-path{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:27px;color:#a8cae9;font-size:11px}.restart-version-path b{color:#fff;font-weight:750}.restart-version-path span[aria-hidden]{color:#ff7019;font-size:16px}.restart-aside p{max-width:220px;margin:auto 0 0;color:#aac8e6;font-size:12px;line-height:1.45}.restart-main{display:flex;flex-direction:column;min-width:0;padding:23px 25px 20px;background:#fff}.restart-intro{margin:0 0 14px;font-family:Manrope,system-ui,sans-serif;color:#102e54;font-size:17px;font-weight:800;line-height:1.25}.restart-options{border:0;margin:0;padding:0}.restart-options legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.restart-option{position:relative;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:70px;padding:13px 12px;border-bottom:1px solid #dbe7f5;cursor:pointer;transition:background .18s}.restart-option:hover{background:#f6faff}.restart-option:has(input:checked){background:#edf6ff;border-bottom:2px solid #2478f4}.restart-option:focus-within{outline:2px solid #6da8ff;outline-offset:-2px}.restart-option input{position:absolute;opacity:0;width:1px;height:1px}.restart-option-copy{display:grid;gap:3px}.restart-option-copy strong{color:#102e54;font-size:14px;font-weight:750;line-height:1.25}.restart-option-copy small{color:#647f9f;font-size:12px;line-height:1.35}.restart-option-check{flex:none;width:18px;height:18px;border:1.5px solid #9eb5cf;border-radius:50%;background:#fff}.restart-option:has(input:checked) .restart-option-check{border:5px solid #ff7019}.restart-observation{margin-top:15px}.restart-observation textarea{margin-top:7px}.restart-actions{margin-top:auto;padding-top:22px;justify-content:flex-end}.restart-actions .btn.primary{min-width:145px}@media(max-width:620px){.restart-form{grid-template-columns:1fr}.restart-aside{min-height:0;padding:18px 20px}.restart-brand-mark{display:none}.restart-aside>strong{font-size:19px}.restart-version-path{margin-top:10px}.restart-aside p{margin:10px 0 0;max-width:none}.restart-main{padding:20px}.restart-actions{padding-top:24px}.restart-actions .btn{flex:1}}
