.studio-project-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.studio-project-actions button,.project-landing-button{font-family:inherit;font-weight:600;font-size:13px;line-height:1.2;border:1px solid #d7e3de;border-radius:9px;background:#fff;color:#285b4b;padding:10px 13px;cursor:pointer}.project-save-status{font-size:11px;color:#657c72;max-width:130px}.project-save-status.is-error{color:#9b4b30}.studio-project-actions button:disabled{opacity:.45;cursor:default}.project-dialog{margin:auto;font-family:var(--studio-font,inherit);color:#203d34;border:1px solid #dce7e1;border-radius:18px;background:#fff;padding:30px;width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow:auto;box-shadow:0 22px 80px #173c3024}.project-dialog::backdrop{background:#17382c66;backdrop-filter:blur(5px)}.project-dialog *{box-sizing:border-box}.project-dialog h2{font-size:23px;line-height:1.2;font-weight:700;letter-spacing:-.6px;margin:8px 28px 14px 0}.project-dialog p{font-size:14px;line-height:1.6;color:#63756d;margin:10px 0 20px}.project-dialog button{font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;background:#fff;border:1px solid #d8e3dd;border-radius:9px;color:#285b4b;padding:11px 15px;cursor:pointer}.project-dialog button:hover{background:#f1f7f4}.project-dialog .primary{background:#237b5f;color:#fff;border-color:#237b5f}.project-dialog .primary:hover{background:#19634c}.project-dialog button:focus-visible,.studio-project-actions button:focus-visible{outline:2px solid #2f8f63;outline-offset:3px}.project-dialog footer{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:22px}.project-dialog a{font-size:13px;color:#237b5f}.project-dialog .project-close{position:absolute;top:16px;right:16px;font-size:22px;border:0;padding:2px 9px;background:transparent;color:#74887d}.project-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.2px;color:#6e8a7b}.project-auth ul{list-style:none;margin:22px 0;padding:15px 18px;background:#f0f7f3;border-radius:12px}.project-auth li{font-size:14px;line-height:2.1}.project-auth li:before{content:'✓';color:#2f8f63;margin-right:10px}.project-auth>[data-account]{display:block;width:100%;margin-top:9px}.project-auth>small{display:block;text-align:center;font-size:11px;line-height:1.5;color:#7b8982;margin-top:16px}.project-auth .project-auth-note:empty{display:none}.project-library{width:min(540px,calc(100vw - 32px))}.project-row{padding:16px 0;border-top:1px solid #e7ede9;display:grid;gap:5px}.project-row .project-open{padding:0;border:0;text-align:left;font-size:15px;color:#203d34;overflow-wrap:anywhere}.project-row small{color:#7a8981;font-size:11px}.project-row-actions{display:flex;gap:6px;margin-top:7px}.project-row-actions button{font-size:11px;padding:5px 10px}.project-landing-button{margin-left:10px}.studio-appbar:has(.studio-project-actions) .studio-history{margin-left:0}.studio-appbar:has(.studio-project-actions) .studio-project{min-width:30px}
@media(max-width:900px){.project-save-status{display:none}.studio-project-actions{gap:4px}.studio-project-actions button{font-size:11px;padding:9px 7px}.studio-appbar:has(.studio-project-actions){gap:6px}.studio-appbar:has(.studio-project-actions) .studio-project{display:none}.project-dialog{padding:24px 20px;border-radius:16px;max-height:88dvh}.project-dialog h2{font-size:21px}.project-dialog p,.project-auth li{font-size:13px}.project-landing-button{font-size:12px;padding:9px}}
@media(max-width:480px){.studio-appbar:has(.studio-project-actions){padding:0 10px;gap:5px!important}.studio-appbar:has(.studio-project-actions) .studio-home img{width:80px}.studio-appbar:has(.studio-project-actions) .studio-project-actions button{min-height:40px;font-size:12px;padding:8px}.studio-appbar:has(.studio-project-actions) .studio-export-open{font-size:12px;padding:10px}.studio-appbar:has(.studio-project-actions) .studio-export-open span{display:none}.studio-appbar:has(.studio-project-actions) .studio-format-picker summary{gap:4px;padding:0 7px}}
@media(max-width:360px){.studio-appbar:has(.studio-project-actions) .studio-home img{width:62px}.studio-appbar:has(.studio-project-actions){padding:0 7px}}
.studio-project-actions .project-save-button.has-error{border-color:#bb7057;color:#9b4b30;background:#fff7f3}
/* Shared compact project library. Rows keep previews, names and actions aligned. */
.project-dialog.project-library{width:min(800px,calc(100vw - 32px));padding:28px;background:#fff;max-height:88dvh}
.project-library h2{margin:0 48px 6px 0;font-size:24px;letter-spacing:-.6px}
.project-library .project-library-info{font-size:12px;margin:0 0 24px;color:#718078}
.project-library .project-close{top:16px;right:16px;width:44px;height:44px;display:grid;place-items:center}
.project-library-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-right:44px;margin-bottom:24px}
.project-library-header>div{min-width:0}
.project-library .project-library-header h2{margin-right:0}
.project-library .project-library-header .project-library-info{margin:0}
.project-library .project-new-video{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:10px 16px;border-radius:8px;background:#237b5f;color:#fff!important;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.project-library .project-new-video:hover{background:#19634c}
.project-library .project-new-video:focus-visible{outline:2px solid #2f8f63;outline-offset:3px}
.project-library .project-new-video[aria-disabled=true]{opacity:.6;cursor:wait}
@media(max-width:600px){.project-library-header{align-items:flex-start;flex-direction:column;gap:14px;padding-right:40px;margin-bottom:16px}.project-library .project-new-video{font-size:12px;padding:10px 14px}}
.project-filters{display:flex;gap:6px;border-bottom:1px solid #e4ebe7;padding-bottom:12px}
.project-filters button{display:flex;justify-content:center;align-items:center;gap:8px;padding:10px 16px;min-height:44px;border:0;background:transparent;white-space:nowrap;font-size:13px;color:#65776e;border-radius:8px}
.project-filters button[aria-pressed=true]{background:#203f35;color:#fff}
.project-filter-count{font-size:11px;opacity:.7;font-weight:500}
.project-filter-status{display:block;font-size:11px;font-weight:600;color:#76867e;margin:18px 0 8px}
.project-grid{display:flex;flex-direction:column;gap:2px}
.project-card{position:relative;min-width:0;border-bottom:1px solid #e8eeea;background:#fff;padding-right:48px;border-radius:9px}
.project-card:last-child{border-bottom-color:transparent}
.project-card:hover,.project-card:focus-within{background:#f5f8f6}
.project-library .project-card-open{display:flex;align-items:center;gap:18px;width:100%;padding:12px 8px;border:0;background:transparent;border-radius:9px;text-align:left;color:#203d34;min-width:0}
.project-card-open:disabled{opacity:.65;cursor:wait}
.project-cover{flex:none;width:112px;height:70px;border-radius:7px;background:#e8efeb;overflow:hidden;display:flex;align-items:center;justify-content:center}
.project-cover img{display:block;width:100%;height:100%;object-fit:cover}
.project-card-body{flex:1;min-width:0}
.project-card h3{font-size:15px;line-height:1.4;font-weight:650;overflow-wrap:anywhere;margin:0 0 8px;letter-spacing:-.15px}
.project-card-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.project-type{color:#477261;background:#edf3ef;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:600;line-height:1.5}
.project-card time{font-size:11px;color:#72847a;font-weight:400;line-height:1.5}
.project-edit-label{flex:none;font-size:12px;font-weight:600;color:#237b5f;padding:10px 6px}
.project-edit-label span{margin-left:5px}
.project-cover-empty{background:linear-gradient(135deg,#e0ece5,#f2f6f3);color:#769184}
.project-cover-empty svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linejoin:round;stroke-linecap:round}
.project-card-menu{position:absolute;right:4px;top:50%;transform:translateY(-50%)}
.project-card-menu summary{display:grid;place-items:center;list-style:none;cursor:pointer;font-size:13px;letter-spacing:1px;border-radius:7px;color:#6b7d73;line-height:18px;width:44px;height:44px;text-align:center}
.project-card-menu summary::-webkit-details-marker{display:none}
.project-card-menu summary:hover,.project-card-menu[open] summary{background:#e6efe9;color:#203d34}
.project-card-menu summary:focus-visible{outline:2px solid #2f8f63;outline-offset:2px}
.project-card-menu-items{position:absolute;bottom:46px;right:0;width:154px;padding:5px;background:#fff;border:1px solid #dce6df;box-shadow:0 8px 25px #193c3026;border-radius:10px;z-index:2}
.project-card-menu-items button{display:block;border:0;width:100%;text-align:left;font-size:12px;padding:10px;border-radius:6px;min-height:44px}.project-card-menu-items .project-delete{color:#a04738}
.project-empty{padding:36px 12px;text-align:center;background:#f8faf9;border-radius:9px}.project-empty strong{font-size:15px;font-weight:600}.project-empty p{font-size:12px;margin:8px 0 0}
/* Explicitly reset the public site's footer spacing inside this dialog. */
.project-library .project-library-footer{display:flex;flex-wrap:wrap;align-items:center;gap:16px;border-top:1px solid #e0e9e3;padding:18px 0 0;margin:18px 0 0;width:auto;min-height:0;background:transparent;text-align:left;box-shadow:none}
.project-library .project-library-footer>button:last-child{margin-left:auto;background:transparent;border:0;color:#73847a}
.project-library .project-library-footer a{font-size:12px;text-underline-offset:3px}
@media(max-width:600px){
 .project-dialog.project-library{padding:22px 16px;width:calc(100vw - 24px);border-radius:16px}
 .project-library h2{font-size:22px}.project-library .project-library-info{margin-bottom:18px}
 .project-filters{gap:3px}.project-filters button{flex:1;padding:9px 5px;font-size:12px;gap:5px}
 .project-library .project-card-open{gap:12px;padding:12px 0}
 .project-cover{width:76px;height:60px}.project-card h3{font-size:14px;margin-bottom:5px}
 .project-card-meta{gap:4px 6px}.project-card time{font-size:10px}
 .project-edit-label{display:none}.project-card{padding-right:42px}.project-card-menu{right:-3px}
 .project-library .project-library-footer{gap:8px;padding-top:14px;margin-top:12px}
 .project-library .project-library-footer>button{font-size:12px;padding:10px;min-height:44px}
 .project-library .project-library-footer>a{order:3;flex-basis:100%;padding:6px 0;font-size:11px}
}

/* Message actions have their own spacing, independent of the project library. */
.project-message{padding:28px;width:min(440px,calc(100vw - 32px))}
.project-message h2{margin:0 0 8px;font-size:22px;line-height:1.3;letter-spacing:-.4px}
.project-message p{margin:0 0 22px;font-size:13px;line-height:1.6}
.project-message-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin-top:24px}
.project-message-actions button{min-height:44px;padding:11px 17px}
.project-resume-card{display:flex;align-items:center;gap:14px;padding:16px;background:#f5f8f6;border:1px solid #e1e9e4;border-radius:12px}
.project-resume-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:10px;background:#e4f0e9;color:#237b5f}
.project-resume-icon svg{width:24px;height:24px}
.project-resume-card>div{min-width:0}
.project-resume-card strong{display:block;color:#203d34;font-size:15px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.project-resume-meta{display:block;margin-top:4px;color:#6a7d73;font-size:11px;line-height:1.5}
.project-resume .project-message-actions>button:first-child{margin-right:auto;background:transparent;border-color:transparent;color:#63756d}
@media(max-width:480px){
 .project-message{padding:24px 20px}
 .project-message h2{font-size:21px}
 .project-resume-card{padding:14px;gap:12px}
 .project-resume .project-message-actions{flex-direction:column-reverse;gap:8px;margin-top:20px}
 .project-resume .project-message-actions>button{width:100%;margin:0}
 .project-resume .project-message-actions>button:first-child{margin-right:0}
}

/* Guest drafts show status; cloud Save remains an action for signed-in editors. */
.studio-project-identity{min-width:0;display:flex;flex-direction:column;gap:2px}
.studio-project-identity .project-save-status{max-width:none;line-height:1.3;font-size:11px}
.studio-project-actions .project-save-button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:78px;white-space:nowrap}
.studio-project-actions{margin-left:0}
.studio-project-actions[hidden],.studio-project-actions .project-save-button[hidden],.project-mobile-save-status[hidden]{display:none!important}
.studio-appbar:has(.studio-project-actions) .studio-history{margin-left:auto}
.studio-appbar:has(.studio-project-actions) .studio-format-picker{margin-left:0}
.project-mobile-save-status{display:none;align-items:center;gap:6px;white-space:nowrap;color:#497564;font-size:11px;font-weight:600}
.project-mobile-save-status:before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:#2b8a65}
.project-mobile-save-status[data-state=saving]:before{background:#9aaa9f}
.project-mobile-save-status[data-state=error]{color:#9b4b30}
.project-mobile-save-status[data-state=error]:before{background:#b65c3c}
.project-save-button::before{content:'';width:6px;height:6px;border-radius:50%;background:#8ba395;flex:none}
.project-save-button[data-state=saved]::before,.project-save-button[data-state=local]::before{background:#2b8a65}
.project-save-button[data-state=saving]::before{width:9px;height:9px;border:1.5px solid #cbded5;border-top-color:#237b5f;background:transparent;animation:project-saving .8s linear infinite}
.project-save-button[data-state=error]::before{background:#b65c3c}
@keyframes project-saving{to{transform:rotate(360deg)}}
@media(max-width:900px){.studio-project-identity{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.studio-project-identity .project-save-status{display:block}.studio-project-actions .project-save-button{min-width:68px}.project-mobile-save-status{display:inline-flex}}
@media(max-width:900px){.studio-appbar:has(.studio-project-actions) .studio-format-picker{margin-left:auto}}
@media(max-width:480px){.studio-project-actions .project-save-button{gap:4px;min-width:0}}
@media(max-width:300px){.project-mobile-save-label{display:none}.project-mobile-save-status{width:20px;justify-content:center}}
@media(prefers-reduced-motion:reduce){.project-save-button[data-state=saving]::before{animation:none}}
@media(max-width:380px){
 .studio-appbar:has(.studio-project-actions) .studio-home{width:28px;min-width:28px;overflow:hidden;flex:none}
 .studio-appbar:has(.studio-project-actions) .studio-home img{width:80px;max-width:none}
 .studio-appbar:has(.studio-project-actions) .studio-project-actions button{font-size:11px;padding:8px 6px}
 .studio-appbar:has(.studio-project-actions) .studio-format-picker summary{font-size:11px;padding:0 5px;gap:3px}
 .studio-appbar:has(.studio-project-actions) .studio-export-open{font-size:11px;padding:10px 8px}
}

/* Storage limits are actionable without covering the editor or its preview. */
.project-quota-note{padding:14px 16px;margin:0 0 18px;border:1px solid #e6d5b1;border-radius:10px;background:#fff9ed;color:#71552a}
.project-quota-note strong{font-size:14px;line-height:1.4}
.project-dialog .project-quota-note p{font-size:12px;line-height:1.5;margin:6px 0 0;color:#715f41}

.studio-project-actions .project-save-button[data-state=quota]{border-color:#d6b982;color:#795626;background:#fff9ed}
.studio-project-actions .project-save-button[data-state=quota]::before{background:#ad8037}
@media(max-width:480px){.studio-project-actions .project-save-button[data-state=quota]{width:66px;min-width:0;flex:none;white-space:normal;font-size:11px!important;line-height:1.2;padding:6px!important;gap:4px}}

/* Match the account popup: a neutral backdrop and a quiet filter sidebar. */
.project-dialog.project-library{
 box-sizing:border-box;width:min(800px,calc(100vw - 32px));max-width:none;
 margin:24px auto auto;padding:0;max-height:calc(100dvh - 48px);
 border:1px solid #ddd;border-radius:12px;background:#fff;color:#111;
 box-shadow:0 2px 8px #0000000a;overflow:auto;
}
.project-dialog.project-library[open]{display:grid;grid-template-columns:200px minmax(0,1fr);align-items:stretch}
.project-dialog.project-library::backdrop{background:rgb(0 0 0 / 50%);backdrop-filter:none;-webkit-backdrop-filter:none}
.project-library-sidebar{padding:24px;border-right:1px solid #e5e5e5}
.project-library-sidebar .project-filters{display:flex;flex-direction:column;gap:4px;padding:0;border:0}
.project-library-sidebar .project-filters button{justify-content:space-between;text-align:left;width:100%;padding:10px 12px;min-height:40px;border-radius:8px;color:#2d8f65;font-size:14px;font-weight:400}
.project-library-sidebar .project-filters button[aria-pressed=true]{background:#eaf4ef;color:#247d56;font-weight:600}
.project-library-sidebar .project-filters button:hover{background:#f2f7f4}
.project-library .project-library-content{display:flex;flex-direction:column;min-width:0;min-height:540px;padding:24px}
.project-library .project-library-header{gap:16px;margin-bottom:28px;padding-right:52px}
.project-library .project-library-header h2{font-size:30px;line-height:1.2;font-weight:700;letter-spacing:-.5px;color:#111;margin:0 0 8px}
.project-library .project-library-info{font-size:12px;color:#777}
.project-library .project-close{top:18px;right:18px;width:36px;height:36px;font-size:24px;font-weight:400;color:#777;padding:0;z-index:1}
.project-library .project-new-video{background:#2e9168;font-size:13px;min-height:40px;padding:9px 12px;border-radius:8px}
.project-library .project-new-video:hover{background:#247853}
.project-library .project-gallery{flex:1;min-width:0}
.project-library .project-filter-status{margin:0 0 12px;color:#777;font-weight:500}
.project-library .project-card-open{gap:12px;color:#111}
.project-library .project-cover{width:88px;height:64px}
.project-library .project-card h3{font-size:14px;font-weight:600}
.project-library .project-card-menu summary{border:0;background:transparent}
.project-library .project-library-footer{margin:24px 0 0;border-color:#e5e5e5}
@media(max-width:700px){
 .project-dialog.project-library{width:calc(100vw - 24px);margin:12px auto auto;max-height:calc(100dvh - 24px)}
 .project-dialog.project-library[open]{grid-template-columns:minmax(0,1fr)}
 .project-library-sidebar{padding:64px 20px 16px;border-right:0;border-bottom:1px solid #e5e5e5}
 .project-library-sidebar .project-filters{flex-direction:row;gap:4px;flex-wrap:wrap}
 .project-library-sidebar .project-filters button{width:auto;flex:1;justify-content:center;padding:10px 6px;gap:6px;font-size:13px}
 .project-library .project-library-content{min-height:360px;padding:24px 20px}
 .project-library .project-library-header{flex-direction:column;align-items:flex-start;padding:0;gap:16px;margin-bottom:24px}
 .project-library .project-library-header h2{font-size:28px}
 .project-library .project-close{top:14px;right:14px}
 .project-library .project-cover{width:72px;height:56px}
}

/* The initial screen-reader focus target is a heading, not a control. */
.project-library #projectLibraryTitle:focus{outline:none}
