/* ImageEditor account surfaces: one quiet frame, a clear next action. */
#accountMount{position:relative;flex-shrink:0;font-size:13px}
#accountMount [hidden],.account-dialog [hidden]{display:none!important}
.account-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 15px;border:1px solid #dfe3eb;border-radius:10px;background:#fff;color:#344054;font-family:inherit;font-size:13px;font-weight:550;line-height:1.2;cursor:pointer;box-shadow:0 1px 2px #17233a04}
.account-signin-label{display:flex;align-items:center;gap:9px}
.account-signin-label svg{width:16px;height:16px;color:#8991a2}
.account-trigger:hover{background:#fafbfd;border-color:#bfc9da;color:var(--ink)}
.account-trigger.is-signed-in{gap:7px;padding:3px 5px 3px 3px;min-height:42px;border-color:transparent;background:transparent;box-shadow:none}
.account-trigger.is-signed-in:hover,.account-trigger.is-signed-in[aria-expanded=true]{background:#edf0f6;border-color:#e3e7ef}
.account-avatar{position:relative;overflow:hidden;display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border:1px solid #dbe2f4;border-radius:50%;background:linear-gradient(145deg,#edf2ff,#e4eafa);color:#4c62a4;font-size:12px;font-weight:650;line-height:1;letter-spacing:.015em}
.account-avatar>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;background:#edf2ff}
.account-trigger-chevron{display:flex;color:#8991a2}
.account-trigger-chevron svg{width:15px;height:15px}
.account-trigger-chevron{transition:transform .16s}
.account-trigger[aria-expanded=true] .account-trigger-chevron{transform:rotate(180deg)}
.account-trigger:focus-visible,.account-dialog :focus-visible,.account-menu :focus-visible{outline:3px solid #4264cb45;outline-offset:3px}
.account-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:60;width:272px;max-width:calc(100vw - 32px);padding:7px;border:1px solid #e2e6ed;border-radius:14px;background:#fff;box-shadow:0 2px 6px #17233a04,0 14px 40px #17233a14;animation:account-menu-in .15s ease-out}
.account-menu-identity{display:flex;align-items:center;gap:11px;padding:13px 10px 16px;margin-bottom:6px;border-bottom:1px solid #edf0f5}
.account-menu-identity .account-avatar{width:38px;height:38px}
.account-menu-identity>div{min-width:0;display:grid;gap:4px}
.account-menu-identity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:var(--ink)}
.account-menu-identity>div>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#798293}
.account-menu>button{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:10px 12px;text-align:left;border:0;border-radius:8px;background:transparent;color:#465064;font-family:inherit;font-size:13px;font-weight:500;line-height:1.4;cursor:pointer}
.account-menu>button svg{width:17px;height:17px;color:#8b94a5}
.account-menu>button:hover,.account-menu>button:focus-visible{background:#f3f5f9;color:var(--ink)}
.account-menu>button:disabled{opacity:.45}
.account-menu>p{margin:8px 12px;color:#a53636;font-size:12px;line-height:1.6}

/* The photo is product context; the action remains the highest contrast. */
.account-dialog{box-sizing:border-box;width:min(700px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #e4e8ef;border-radius:20px;background:#fff;color:#222b3b;box-shadow:0 2px 8px #17233a06,0 24px 80px #17233a26;font-family:inherit;font-size:13px;line-height:1.6}
.account-dialog[open]{display:grid;grid-template-columns:240px minmax(0,1fr)}
.account-dialog::backdrop{background:#1d29464d;backdrop-filter:blur(4px)}
.account-close{position:absolute;z-index:2;right:14px;top:14px;display:grid;place-items:center;width:32px;height:32px;padding:8px;border:0;border-radius:50%;background:transparent;color:#8e97a8;cursor:pointer}
.account-close svg{width:16px;height:16px}
.account-close:hover{background:#f3f5f9;color:#344054}
.account-art{display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:420px;padding:27px 24px 28px;background:linear-gradient(155deg,#f0f3fb 0%,#e9effb 55%,#f3f5fb 100%);border-right:1px solid #e7ebf4}
.account-art-brand{display:flex;align-items:center;align-self:flex-start;gap:8px;font-size:14px;font-weight:650;letter-spacing:-.035em;color:#38435b}
.account-art-brand img{width:27px;height:27px}
.account-photo-print{width:166px;margin:25px 0 19px;padding:7px 7px 19px;border-radius:5px;background:#fff;transform:rotate(-6deg);box-shadow:0 2px 4px #253d6510,0 15px 25px -8px #253d653d}
.account-photo-print>img{display:block;width:152px;height:190px;object-fit:cover;object-position:55% 50%;border-radius:2px}
.account-photo-line{display:block;width:37px;height:2px;margin:11px auto 0;background:#e9ecf2;border-radius:2px}
.account-art-caption{align-self:flex-start;display:grid;gap:6px}
.account-art-caption strong{font-size:15px;font-weight:550;letter-spacing:-.025em;color:#45536f}
.account-art-caption>span{font-size:11px;letter-spacing:.08em;color:#8a96ad}
.account-main{min-width:0;align-self:center;padding:45px 40px 28px}
.account-mobile-brand{display:none;align-items:center;justify-content:center;gap:8px;margin-bottom:27px;font-size:14px;font-weight:600;letter-spacing:-.035em}
.account-mobile-brand img{width:28px;height:28px}
.account-heading{text-align:center;margin:0 0 28px}
.account-heading h2{margin:0;color:#242e40;font-size:25px;font-weight:650;line-height:1.35;letter-spacing:-.04em}
.account-heading p{margin:11px 0 0;color:#8891a2;font-size:12px;line-height:1.65}
.account-google,.account-primary{display:flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;width:100%;min-height:46px;border-radius:10px;font-family:inherit;font-size:13px;font-weight:550;line-height:1.4;cursor:pointer}
.account-google{position:relative;min-height:48px;padding:12px 20px;border:1px solid #dce1e9;background:#fff;color:#30384a;box-shadow:0 1px 2px #17233a04}
.account-google-mark{display:block;width:20px;height:20px;overflow:hidden;flex-shrink:0}.account-google-mark>img{display:block;width:40px;height:40px;max-width:none;transform:translate(-10px,-10px)}
.account-google:hover:not(:disabled){border-color:#b7c3d9;background:#fafbfe;box-shadow:0 2px 6px #17233a06}
.account-google:active:not(:disabled){transform:none;background:#f2f5fb}
.account-spinner{position:absolute;right:15px;width:13px;height:13px;border:1.5px solid #dce3f4;border-top-color:var(--accent);border-radius:50%;animation:account-spin .8s linear infinite}
.account-primary{min-height:44px;margin-top:18px;padding:11px 18px;border:1px solid var(--accent);background:var(--accent);color:#fff;box-shadow:0 2px 3px #304d9d0c}
.account-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}
.account-divider{display:flex;align-items:center;gap:14px;margin:22px 0;color:#a0a8b5;font-size:11px}
.account-divider:before,.account-divider:after{content:"";height:1px;flex:1;background:#edf0f5}
.account-dialog label{display:block;margin-bottom:7px;font-size:12px;font-weight:550;color:#4b566b}
.account-dialog input{box-sizing:border-box;width:100%;min-height:44px;padding:11px 12px;border:1px solid #dce1e9;border-radius:10px;background:#fff;color:#222b3b;font-family:inherit;font-size:14px;line-height:1.5;box-shadow:none}
.account-dialog input::placeholder{color:#a2aab7}
.account-dialog input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #4264cb14}
.account-dialog button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.account-dialog input:disabled{background:#f7f8fa}
.account-text{padding:0;border:0;background:transparent;color:var(--accent);font-family:inherit;font-size:12px;font-weight:500;cursor:pointer}
.account-text:hover{color:var(--accent-hover)}
.account-registration-note{margin:15px 0 0;color:#9aa2b1;font-size:11px;text-align:center}
.account-privacy{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:24px;color:#8590a1;font-size:11px}
.account-privacy svg{width:13px;height:13px;color:#8d9bb4}
.account-dismiss{border-top:1px solid #eef0f5;margin-top:24px;padding-top:16px;text-align:center}
.account-dismiss .account-text{min-height:28px;padding:3px 8px;color:#8a93a3;font-size:11px}
.account-dismiss .account-text:hover{color:#445879}
.account-message{margin:16px 0 0;padding:10px 12px;background:#f5f7fc;border:1px solid #e9edf5;border-radius:9px;color:#71809b;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.account-message.is-error{color:#a53636;background:#fcf5f5;border-color:#f2dddd}
#accountRetry{margin-top:11px}
.account-code-destination{display:grid;gap:4px;margin:0 0 20px;color:#8791a2;font-size:11px}
.account-code-destination strong{color:#38445b;font-size:13px;overflow-wrap:anywhere}
.account-code-destination .account-text{justify-self:start;margin-top:5px}
.account-resend{display:block;margin:15px auto 0;min-height:28px}
.account-footnote{margin:21px 0 0;color:#8a94a5;font-size:11px;line-height:1.7}
.account-google-only #accountEmailForm,.account-google-only #accountCodeForm,.account-google-only .account-divider{display:none}
.account-dialog[data-view=account]{width:min(400px,calc(100vw - 32px));grid-template-columns:minmax(0,1fr)}
.account-dialog[data-view=account] .account-art{display:none}
.account-dialog[data-view=account] .account-main{padding:36px 32px 30px}
.account-dialog[data-view=account] .account-heading{margin-bottom:21px}
.account-dialog[data-view=account] .account-heading h2{font-size:24px}
.account-profile-avatar{width:48px;height:48px;margin:0 auto 20px;font-size:16px}
.account-info-row{display:grid;gap:6px;padding:13px 0;border-bottom:1px solid #edf0f5;overflow-wrap:anywhere}
.account-info-row>span{font-size:11px;color:#919baa}
.account-info-row strong{font-size:13px;font-weight:500;color:#43516b}
html:has(.account-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
@keyframes account-spin{to{transform:rotate(360deg)}}
@keyframes account-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:620px){
 html:has(.account-dialog[open]){scrollbar-gutter:auto}
 .account-dialog{width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border-radius:18px}
 .account-dialog[open]{grid-template-columns:minmax(0,1fr)}
 .account-art{display:none}
 .account-main{padding:36px 28px 24px}
 .account-mobile-brand{display:flex}
 .account-heading{margin-bottom:26px}
 .account-heading h2{font-size:24px}
 .account-heading p{font-size:12px}
 .account-google{min-height:48px;padding-inline:14px}
 .account-trigger{min-height:38px;padding-inline:13px;font-size:12px}
 .account-trigger.is-signed-in{padding-inline:3px}
 .account-signin-label{gap:7px}
 .account-trigger-chevron{display:none}
 .account-menu{right:0;width:268px}
 .account-dialog[data-view=account] .account-main{padding:34px 26px 26px}
 .account-dialog[data-view=account] .account-mobile-brand{margin-bottom:22px}
}
@media(max-width:360px){
 .account-main{padding:34px 21px 22px}
 .account-heading h2{font-size:22px}
 .account-google{font-size:12px;gap:9px}
 .account-signin-label svg{display:none}
}
@media(prefers-reduced-motion:reduce){
 .account-dialog *,.account-menu{animation:none!important;transition:none!important}
}

.account-legal{margin:8px 0 0;text-align:center;font-size:10px;color:#8590a1}.account-legal a{color:#687488;text-underline-offset:3px}.account-legal a:focus-visible{outline:2px solid #4264cb;outline-offset:3px}

.account-login-status{position:absolute;right:0;top:calc(100% + 8px);z-index:65;width:280px;max-width:calc(100vw - 32px);margin:0;padding:12px 14px;border:1px solid #e2e6ed;border-radius:10px;background:#fff;color:#687488;font-size:12px;line-height:1.6;box-shadow:0 8px 24px #17233a10}
