/* Easy Studio R1.7.35 — projects. Scoped, compact and consistent with the Studio dialogs. */
.esp-dialog{--esp-bg:#fff;--esp-soft:#f6f7f9;--esp-ink:#252831;--esp-muted:#737984;--esp-line:#e2e5eb;--esp-accent:#174ff5;position:fixed;inset:0;margin:auto;width:min(780px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--esp-line);border-radius:14px;background:var(--esp-bg);color:var(--esp-ink);box-shadow:0 18px 64px rgba(13,14,17,.17);font:14px/1.6 Manrope,Inter,system-ui,sans-serif;overflow:hidden;color-scheme:light;box-sizing:border-box}
.esp-dialog[open]{display:flex;flex-direction:column}.esp-dialog::backdrop{background:rgba(13,14,17,.14);backdrop-filter:none;-webkit-backdrop-filter:none}.esp-dialog *{box-sizing:border-box}.esp-dialog [hidden],#studioProjectSaveNotice[hidden]{display:none!important}.esp-dialog button,.esp-dialog input{font:inherit;letter-spacing:normal}.esp-dialog button{cursor:pointer}.esp-dialog :focus-visible{outline:2px solid var(--esp-accent);outline-offset:3px}.esp-dialog button:disabled,.esp-dialog input:disabled{cursor:wait;opacity:.55}.esp-dialog h2,.esp-dialog h3,.esp-dialog p{margin:0}.esp-dialog #espTitle:focus{outline:none}.esp-dialog h2{font-size:20px;line-height:1.4;font-weight:550;letter-spacing:-.025em;margin-top:8px}.esp-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 28px 22px;border-bottom:1px solid var(--esp-line)}.esp-eyebrow{font-size:10px;font-weight:600;letter-spacing:.12em;color:var(--esp-muted)}.esp-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 28px;scrollbar-width:thin}.esp-foot{flex:none;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:16px 28px;border-top:1px solid var(--esp-line)}.esp-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 15px;border:1px solid var(--esp-line);border-radius:7px;background:var(--esp-bg);color:var(--esp-ink);font-size:13px;line-height:1.4;font-weight:500;text-align:center;text-decoration:none;transition:background .15s,border-color .15s}.esp-button:hover{background:var(--esp-soft);border-color:#bfc6d2}.esp-button.esp-primary{background:var(--esp-accent);border-color:var(--esp-accent);color:#fff}.esp-button.esp-primary:hover{background:#1342d0;border-color:#1342d0}.esp-button.esp-link{min-height:36px;padding:6px 0;border-color:transparent;background:transparent;color:var(--esp-accent);font-size:13px;text-align:left}.esp-button.esp-link:hover{text-decoration:underline;text-underline-offset:3px}.esp-dialog .esp-close{flex:0 0 32px;width:32px;min-height:32px;padding:0;border:0;background:transparent;color:var(--esp-muted);font:300 23px/1 system-ui,sans-serif}.esp-search-row{display:flex;align-items:stretch;gap:12px;margin-bottom:18px}.esp-search{flex:1;min-width:0}.esp-search input,.esp-field input{display:block;width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--esp-line);border-radius:6px;background:var(--esp-bg);color:var(--esp-ink);font-size:14px;line-height:1.5}.esp-search input::placeholder,.esp-field input::placeholder{color:var(--esp-muted);opacity:.85}.esp-results{display:grid;gap:10px}.esp-card{display:flex;align-items:center;gap:15px;padding:16px;border:1px solid var(--esp-line);border-radius:8px;min-width:0}.esp-card.is-current{background:var(--esp-soft)}.esp-thumb{flex:0 0 56px;width:56px;height:64px;display:flex;align-items:center;justify-content:center;border:1px solid var(--esp-line);border-radius:5px;background:var(--esp-bg);color:var(--esp-muted);font-size:18px;font-weight:400;letter-spacing:-.025em}.esp-card-copy{flex:1;min-width:0;overflow-wrap:anywhere}.esp-name-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-bottom:4px}.esp-dialog h3{font-size:14px;font-weight:600;line-height:1.5}.esp-badge{border:1px solid var(--esp-line);border-radius:4px;padding:1px 6px;font-size:10px;color:var(--esp-muted);white-space:nowrap}.esp-card-copy>p{font-size:12px;line-height:1.7;color:var(--esp-muted)}.esp-card-copy .esp-date{font-size:11px;margin-top:4px}.esp-card-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}.esp-button.esp-more{padding:9px 7px;min-width:32px;border-color:transparent;background:transparent;letter-spacing:1px}.esp-demo{font-size:10px;border:1px solid var(--esp-line);padding:1px 4px;border-radius:3px}.esp-empty{padding:38px 18px;text-align:center;font-size:14px;color:var(--esp-muted)}.esp-muted{font-size:12px;color:var(--esp-muted)}.esp-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--esp-muted);margin-bottom:18px}.esp-field .esp-muted{display:inline}.esp-reset-history{padding-top:8px;border-top:1px solid var(--esp-line)}.esp-error{padding:12px 14px;margin-bottom:18px;border-radius:7px;background:#fff5f4;border:1px solid #eecbc6;color:#a33333;font-size:13px;overflow-wrap:anywhere}.esp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.esp-dialog[aria-busy=true] .esp-head::after{content:'';position:absolute;top:0;left:0;width:100%;height:2px;background:linear-gradient(90deg,transparent,var(--esp-accent),transparent);animation:esp-busy 1.4s ease-in-out infinite}@keyframes esp-busy{0%,100%{opacity:.25}50%{opacity:1}}
#studioProjectsButton{white-space:nowrap}#studioProjectsButton[data-save-state=error]::after{content:'·';margin-left:5px;color:#e19d8f}#studioProjectSaveNotice{font-weight:400!important;font-size:11px!important;color:#f0b5a9!important}
body.studio-theme-night .esp-dialog{--esp-bg:#202126;--esp-soft:#292b32;--esp-ink:#eeedf0;--esp-muted:#a4a7b0;--esp-line:#3a3d47;--esp-accent:#7d9fff;color-scheme:dark;box-shadow:0 18px 64px rgba(0,0,0,.3)}body.studio-theme-night .esp-button.esp-primary{background:#285ef6;border-color:#285ef6;color:#fff}body.studio-theme-night .esp-button.esp-primary:hover{background:#3469ff;border-color:#3469ff}body.studio-theme-night .esp-error{background:#40292a;border-color:#684043;color:#ffb5ad}
@media(max-width:620px){.esp-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:11px}.esp-head{padding:20px 18px 18px}.esp-dialog h2{font-size:18px}.esp-body{padding:20px 18px}.esp-foot{padding:14px 18px;gap:8px}.esp-foot .esp-button{flex:1 1 auto;font-size:12px}.esp-search-row{flex-wrap:wrap;gap:10px}.esp-search{flex-basis:100%}.esp-search-row>.esp-button{width:100%}.esp-card{gap:10px;flex-wrap:wrap;padding:13px}.esp-thumb{flex-basis:42px;width:42px;height:52px;font-size:15px}.esp-card-copy{flex-basis:calc(100% - 54px)}.esp-card-actions{justify-content:flex-end;width:100%}.esp-card-actions>.esp-button:first-child{flex:1}.esp-card-copy .esp-date{font-size:11px}#studioProjectSaveNotice{display:none}}
@media(prefers-reduced-motion:reduce){.esp-dialog *{animation:none!important;transition:none!important}}
/* Keep the existing three-dot menu available before creation and after reset. */
body:not(.composition-v1-system-bar-active) #studioUtility.esp-projects-ready:not(.visible){display:flex!important;left:auto;right:0;bottom:0;width:auto;height:44px;padding:0 16px;background:transparent!important;border:0!important;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body:not(.composition-v1-system-bar-active) #studioUtility.esp-projects-ready:not(.visible)>:not(.system-bar-right),
body:not(.composition-v1-system-bar-active) #studioUtility.esp-projects-ready:not(.visible)>.system-bar-right>:not(#utilityMoreWrap),
body:not(.composition-v1-system-bar-active) #studioUtility.esp-projects-ready:not(.visible) .utility-more-menu>:not(#studioProjectsButton){display:none!important}
body:not(.composition-v1-system-bar-active) #studioUtility.esp-projects-ready:not(.visible) #utilityMore{color:#626873!important}
body.studio-theme-night:not(.composition-v1-system-bar-active) #studioUtility.esp-projects-ready:not(.visible) #utilityMore{color:#b9bdc7!important}

/* Project deletion stays in the existing compact dialog. */
.esp-button.esp-danger{color:#a53636;border-color:#e8c9c9}.esp-button.esp-danger:hover{background:#fff3f2;border-color:#d59c9c}.esp-button.esp-delete-link{margin-right:auto;border-color:transparent;background:transparent;}.esp-button.esp-danger-solid{color:#fff;background:#b33e3e;border-color:#b33e3e}.esp-button.esp-danger-solid:hover{background:#982f2f;border-color:#982f2f}.esp-dialog .esp-delete-name{font-size:16px;font-weight:550;overflow-wrap:anywhere;margin-bottom:12px}.esp-dialog .esp-delete-copy{font-size:14px;line-height:1.7}.esp-dialog .esp-delete-note{margin-top:14px}body.studio-theme-night .esp-button.esp-danger{color:#ffb5ad;border-color:#684043}body.studio-theme-night .esp-button.esp-danger:hover{background:#40292a}body.studio-theme-night .esp-button.esp-delete-link{border-color:transparent;background:transparent}body.studio-theme-night .esp-button.esp-danger-solid{background:#aa3636;border-color:#aa3636;color:#fff}body.studio-theme-night .esp-button.esp-danger-solid:hover{background:#bd4242;border-color:#bd4242}@media(max-width:620px){.esp-foot .esp-delete-link{flex-basis:100%;justify-content:flex-start;margin-right:0}}
