/* A practical working set, with account access and future membership kept explicit. */
[data-billing-account]:not(:empty){margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
[data-billing-account] p{margin:16px 0;line-height:1.65;overflow-wrap:anywhere}
[data-billing-account] .ls-button{min-height:44px;padding:10px 16px}
.account-main{max-width:1440px;margin:0 auto;padding:48px clamp(24px,4vw,64px) 32px;min-height:calc(100dvh - var(--header-height) - 140px)}
.account-main svg,.auth-main svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.account-breadcrumb{font-size:14px;font-weight:500;color:var(--muted);margin:0 0 16px}.account-title{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:40px;padding-bottom:40px;border-bottom:1px solid var(--line)}.account-title h1{font-family:var(--display,var(--sans));font-size:44px;font-weight:650;line-height:1.2;letter-spacing:-1.5px;margin:0}.account-title p:last-child{font-size:16px;color:var(--muted);margin:16px 0 0}.account-title>.ls-button{font-size:15px;min-height:48px;flex:none}
.account-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:48px}.workspace-sidebar{border-right:1px solid var(--line);padding-right:24px}.account-nav{display:flex;flex-direction:column;gap:8px}.account-nav a{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px;font-weight:500;min-height:48px;padding:10px 12px;border:1px solid transparent;border-radius:6px;color:var(--muted);transition:background 180ms ease,color 180ms ease}.account-nav a:hover{background:var(--surface-soft);color:var(--ink)}.account-nav a[aria-current="page"]{border-color:var(--line);background:var(--surface-soft);color:var(--ink)}.account-nav a[href="#membership"]{margin-top:16px}.nav-count{font-size:12px;font-variant-numeric:tabular-nums;min-width:22px;text-align:center;border-radius:4px;padding:2px 5px;background:var(--paper);color:var(--muted)}.nav-pro{font-size:12px;font-weight:600;border:1px solid var(--line);border-radius:4px;padding:2px 6px;color:var(--ink)}.sidebar-note{font-size:12px;color:var(--muted);line-height:1.65;margin:32px 12px 0;max-width:170px}
.account-panel{min-width:0;min-height:460px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.panel-eyebrow{font-size:14px;font-weight:500;color:var(--muted);margin:0 0 12px}.account-panel h2{font-family:var(--display,var(--sans));font-size:32px;line-height:1.25;font-weight:650;letter-spacing:-.8px;margin:0;text-wrap:balance}.account-panel>.panel-note{font-size:16px;line-height:1.65;color:var(--muted);max-width:720px;margin:0 0 32px}.storage-note{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;color:var(--muted);flex-shrink:0;margin:0}.storage-note svg{width:18px;height:18px}
.account-stats{display:grid;grid-template-columns:1fr 1fr;margin:28px 0 40px;border-block:1px solid var(--line)}.account-stat{display:grid;grid-template-columns:auto 1fr 20px;gap:20px;align-items:center;min-height:114px;padding:24px 28px 24px 0}.account-stat+ .account-stat{border-left:1px solid var(--line);padding-left:28px}.account-stat strong{font:650 44px/1.1 var(--display,var(--sans));letter-spacing:-1.5px;font-variant-numeric:tabular-nums}.account-stat span{font-size:14px;color:var(--muted);max-width:145px;line-height:1.5}.account-stat svg{width:18px;height:18px;color:var(--muted)}.account-stat:hover strong,.account-stat:hover svg{color:var(--accent)}
.section-label{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px}.section-label h3{font-size:18px;font-weight:600;letter-spacing:-.25px;margin:0}.section-label>a{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;color:var(--muted)}.section-label>a:hover{color:var(--accent)}.section-label svg{width:18px;height:18px}
.account-entries{display:flex;flex-direction:column;border-top:1px solid var(--line)}.account-entry{display:flex;gap:20px;align-items:center;padding:20px 12px 20px 0;border-bottom:1px solid var(--line);transition:background 180ms ease}.account-entry:hover{background:var(--surface-soft)}.account-entry>img{width:100px;height:76px;object-fit:cover;border-radius:6px;border:1px solid var(--line);flex:none}.account-entry strong{display:block;font-size:18px;font-weight:600;line-height:1.4}.account-entry small{display:block;font-size:14px;color:var(--muted);margin-top:6px;line-height:1.5}.entry-action{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:14px;font-weight:500}.entry-action svg{width:18px;height:18px}
.workspace-empty{display:flex;gap:24px;padding:32px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px}.workspace-empty>svg{width:44px;height:44px;stroke-width:1.2;color:var(--muted)}.workspace-empty h3{font-size:20px;font-weight:600;line-height:1.4;letter-spacing:-.3px;margin:0}.workspace-empty p{font-size:16px;line-height:1.65;color:var(--muted);max-width:530px;margin:12px 0 20px}.workspace-empty .ls-button{font-size:15px;min-height:44px;background:var(--surface)}
.workspace-membership{display:flex;align-items:center;gap:24px;min-height:88px;margin-top:32px;border-top:1px solid var(--line);padding:24px 0 0}.pro-wordmark{display:inline-flex;align-items:center;gap:8px;font-size:18px;font-weight:600;white-space:nowrap}.pro-wordmark b{font-size:12px;border:1px solid var(--line);padding:3px 7px;border-radius:4px;font-weight:600}.workspace-membership>span:nth-child(2){font-size:14px;color:var(--muted)}.workspace-membership>svg{margin-left:auto}.workspace-membership:hover{color:var(--accent)}
.account-favorites{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.account-favorite{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:24px;border:1px solid var(--line);border-radius:8px;background:var(--surface);transition:border-color 180ms ease}.account-favorite:hover{border-color:var(--accent)}.reference-type{font-size:14px;color:var(--muted)}.account-favorite strong{font-size:36px;font-weight:600;line-height:1.2;letter-spacing:-1px;font-variant-numeric:tabular-nums}.reference-action{font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border-top:1px solid var(--line);padding-top:16px;color:var(--muted)}.reference-action svg{width:18px;height:18px}
.preferences-form{display:grid;gap:28px;max-width:480px;padding-top:8px}.preferences-form .ls-field{font-size:16px;gap:10px}.preferences-form .ls-field select{font-size:16px;min-height:48px}.preferences-note{font-size:14px;color:var(--muted);line-height:1.6;margin:0}.account-panel .ls-notice{font-size:15px;padding:20px 24px;border-radius:0 6px 6px 0;max-width:740px}.account-panel .ls-notice p{margin:8px 0 0;line-height:1.6}.account-readonly{display:grid;gap:0;margin:32px 0;max-width:740px}.account-readonly>div{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:64px;border-bottom:1px solid var(--line);font-size:16px}.account-readonly dt{color:var(--muted)}.account-readonly dd{margin:0;text-align:right}.account-panel>.ls-button{font-size:15px;min-height:48px}
.account-panel h2.membership-title{font-size:40px;display:flex;align-items:center;gap:12px;letter-spacing:-1px}.membership-title span{font-size:20px;line-height:1;padding:8px 12px;border-radius:6px;background:var(--action-bg);color:var(--action-ink);letter-spacing:0}.availability-badge{font-size:12px;font-weight:500;color:var(--muted);padding:6px 10px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.membership-information{margin-top:32px;padding:28px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.membership-information h3{font-size:22px;line-height:1.4;letter-spacing:-.4px;margin:0 0 16px;font-weight:600}.membership-information p,.membership-next p{font-size:16px;line-height:1.7;max-width:650px;color:var(--muted);margin:0}.membership-next .ls-button{margin-top:24px;font-size:15px;min-height:48px}
.auth-intro h1{font-family:var(--display,var(--sans));font-size:56px;font-weight:650;line-height:1.1;letter-spacing:-2px;max-width:550px;margin:24px 0 0;text-wrap:balance}.auth-intro>p:not(.account-breadcrumb):not(.auth-study-caption){font-size:18px;line-height:1.7;color:var(--muted);max-width:500px;margin:24px 0 0}.auth-workspace-link{display:inline-flex;align-items:center;gap:12px;font-size:16px;font-weight:600;min-height:44px;margin-top:24px}.auth-workspace-link:hover{color:var(--accent)}.auth-study{display:grid;grid-template-columns:1.25fr 1fr 1fr;grid-template-rows:minmax(0,1fr);gap:8px;max-width:510px;height:155px;margin-top:40px}.auth-study img{min-height:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:6px;min-width:0}.auth-study img:nth-child(2){object-position:center}.auth-study img:nth-child(3){object-position:center 43%}.auth-study-caption{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 0}
.auth-form{padding:36px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.auth-form h2{font-family:var(--display,var(--sans));font-size:28px;line-height:1.3;letter-spacing:-.7px;font-weight:650;margin:0 0 24px}.auth-form .ls-notice{font-size:14px;line-height:1.65;padding:16px 18px}.auth-form .ls-notice p{margin:8px 0 0}.auth-form fieldset{border:0;padding:0;margin:28px 0 0;display:grid;gap:20px}.auth-form fieldset:disabled{opacity:.72}.auth-form .ls-field{font-size:15px;gap:8px}.auth-form .ls-field input{font-size:16px;min-height:48px}.auth-form .ls-button{width:100%;font-size:16px;min-height:48px;margin-top:4px}.auth-switch{font-size:14px;color:var(--muted);line-height:1.6;margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.auth-switch a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px;color:var(--ink)}.auth-switch a:hover{color:var(--accent)}.auth-footer{max-width:1440px;margin-top:32px;font-size:14px}
:root[lang="zh-CN"] .account-title h1,:root[lang="zh-CN"] .account-panel h2,:root[lang="zh-CN"] .auth-intro h1{letter-spacing:-.4px;line-height:1.3}
@media(max-width:1100px){.account-layout{grid-template-columns:190px minmax(0,1fr);gap:32px}.workspace-sidebar{padding-right:20px}.panel-heading{align-items:flex-start;flex-direction:column;gap:16px}.account-panel h2{font-size:30px}.account-favorites{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-intro h1{font-size:48px}.auth-form{padding:28px}.auth-study{height:130px}.account-stat{gap:12px}.account-stat strong{font-size:40px}}
@media(max-width:850px){.account-main{padding-top:32px}.account-title{margin-bottom:24px;padding-bottom:28px}.account-title h1{font-size:38px}.account-layout{display:block}.workspace-sidebar{padding:0;border:0;margin-bottom:32px}.account-nav{flex-direction:row;flex-wrap:wrap;gap:8px}.account-nav a{font-size:14px;gap:10px;min-height:44px;padding:8px 12px}.account-nav a[href="#membership"]{margin-top:0}.sidebar-note{display:none}.account-panel{min-height:420px}.panel-heading{flex-direction:row}.auth-intro h1{font-size:44px;max-width:540px}.auth-intro>p:not(.account-breadcrumb):not(.auth-study-caption){font-size:16px}.auth-study,.auth-study-caption{display:none}.auth-intro .account-breadcrumb{margin-bottom:12px}.auth-intro h1{margin-top:12px}.auth-form{padding:32px}}
@media(max-width:550px){.account-title{display:block}.account-title h1{font-size:34px}.account-title>.ls-button{margin-top:24px;font-size:15px}.account-title p:last-child{line-height:1.6}.panel-heading{flex-direction:column}.account-panel h2{font-size:28px}.account-stats{margin-top:24px;margin-bottom:32px}.account-stat{grid-template-columns:1fr 20px;gap:10px;padding:20px 18px 20px 0}.account-stat+ .account-stat{padding-left:18px}.account-stat strong{font-size:36px}.account-stat span{font-size:14px;grid-column:1;grid-row:2}.account-stat svg{grid-column:2;grid-row:1}.workspace-empty{padding:24px;gap:16px}.workspace-empty>svg{display:none}.workspace-empty h3{font-size:20px}.workspace-empty p{font-size:16px}.workspace-membership{flex-wrap:wrap;gap:12px}.workspace-membership>span:nth-child(2){order:2;flex-basis:100%}.workspace-membership svg{width:20px}.account-entry{gap:14px}.account-entry>img{width:76px;height:68px}.account-entry strong{font-size:16px}.account-entry small{font-size:12px}.entry-action{font-size:0;gap:0}.entry-action svg{width:20px}.account-favorites{gap:12px}.account-favorite{padding:18px;gap:16px}.reference-type{font-size:12px}.reference-action{font-size:12px;gap:5px}.account-favorite strong{font-size:30px}.account-readonly>div{font-size:14px;gap:16px}.membership-information{padding:24px}.membership-information h3{font-size:20px}.auth-intro h1{font-size:40px;letter-spacing:-1.4px}.auth-form{padding:24px}.auth-form h2{font-size:26px}.auth-footer{margin-top:16px}.account-nav a{font-size:14px}.nav-count{font-size:12px}}
@media(prefers-reduced-motion:reduce){.account-nav a,.account-entry,.account-favorite{transition:none}}
.account-message{font-size:15px;line-height:1.6;color:var(--accent);margin:0 0 20px;overflow-wrap:anywhere}.account-message:empty{display:none}.account-message[data-error="true"]{color:var(--ink);border-left:3px solid #e38370;padding-left:12px}.auth-form .ls-button:disabled{opacity:.5;cursor:not-allowed}.auth-divider{display:flex;align-items:center;gap:16px;margin-top:24px;font-size:14px;color:var(--muted)}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.auth-small{font-size:13px;line-height:1.7;color:var(--muted);margin:16px 0 0}.auth-explainer{font-size:16px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.auth-explainer strong{color:var(--ink)}.account-text-button{font:inherit;font-size:14px;padding:8px 0;min-height:44px;background:none;border:0;color:var(--muted);cursor:pointer;text-decoration:underline;text-underline-offset:4px}.account-text-button:hover{color:var(--ink)}.account-text-button:disabled{opacity:.5;cursor:not-allowed}.account-import{display:flex;align-items:center;gap:24px;border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;padding:24px;margin-bottom:28px}.account-import p{color:var(--muted);font-size:14px;line-height:1.6;margin:8px 0 0}.account-import .ls-button{flex-shrink:0}.account-favorite>a{display:flex;flex-direction:column;gap:20px;width:100%}.account-favorite>.account-text-button{margin-top:auto}.profile-identity{display:flex;align-items:center;gap:20px;margin-bottom:24px}.profile-identity strong{font-size:20px}.profile-identity p{color:var(--muted);font-size:15px}.session-row{display:flex;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid var(--line)}.session-row p,.session-row small{max-width:620px;font-size:13px;color:var(--muted);overflow-wrap:anywhere;line-height:1.6}.account-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}.account-subheading{font-size:20px;margin-top:32px}.google-brand-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:#fff}.google-brand-icon img{display:block;width:18px;height:auto}.preferences-form input{min-height:48px;font-size:16px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--ink)}
@media(max-width:650px){.account-import{align-items:stretch;flex-direction:column}}

/* Password and email-link forms */
.auth-mode-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 28px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.auth-mode-nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;border:1px solid transparent;border-radius:5px;font-size:15px;font-weight:650;line-height:1.4;text-align:center;color:var(--ink)}
.auth-mode-nav a:hover{background:var(--hover)}
.auth-mode-nav a[aria-current="page"]{background:var(--action-bg);color:var(--action-ink)}
.auth-form h2.sr-only{margin:0;}
.auth-submit-actions{display:grid;gap:8px;}
.auth-recovery-link{display:inline-flex;align-items:center;min-height:32px;font-size:var(--text-sm,14px);margin:0 0 0 auto;text-align:right;white-space:nowrap;}
.password-hint{margin:-4px 0 4px;}
.auth-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-top:16px;font-size:14px;}
.auth-navigation>span{line-height:32px;}
.auth-navigation a{font-weight:650;color:var(--accent);}
.auth-field-error{margin:-8px 0 0;font-size:14px;line-height:1.5;color:#ef9c8b;}
.auth-field-error:empty{display:none;}
.auth-navigation a,.auth-recovery-link,.account-readonly a{text-decoration:underline;text-underline-offset:3px;}
#verify-email-resend{margin-top:16px;}

#auth-captcha{display:flex;justify-content:center;min-width:0;}
#auth-captcha:empty{display:none;}
.auth-captcha-cancel{justify-self:center;margin:0 auto;}
.profile-avatar-form{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line);}
.profile-avatar-actions{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;}
.profile-avatar-form .auth-small{margin-top:12px;line-height:1.6;}
.profile-avatar-form [hidden]{display:none!important;}

/* Focus authentication and empty workspaces on the next action. */
.auth-form{padding:24px 28px}.auth-mode-nav{margin-bottom:20px}.auth-form fieldset{margin-top:18px;gap:14px}.auth-divider{margin-top:18px}.auth-form .ls-field{gap:6px}.auth-form .ls-field input{min-height:46px}.auth-form .auth-explainer{margin-block:12px}.auth-form .auth-navigation{margin-top:20px}.auth-study{height:100px}.auth-intro h1{font-size:44px}.auth-intro>p:not(.account-breadcrumb){margin-top:18px}.password-input-wrap{position:relative;display:block;width:100%}.password-input-wrap input{width:100%;padding-right:74px}.password-visibility{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-width:58px;min-height:38px;padding:6px;font-size:14px;color:var(--muted);background:transparent;border:0;border-radius:5px}.password-visibility:hover{color:var(--ink);background:var(--hover)}.workspace-start-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.workspace-login{margin-top:20px}.account-nav a[href="#membership"]{font-size:14px;color:var(--muted)}
@media(max-width:850px){.auth-form{order:0;width:100%;max-width:480px}.auth-intro{order:1}.auth-intro h1{font-size:28px}.auth-study{display:none}}
@media(min-width:851px) and (max-height:850px){.auth-form{padding:20px 28px}.auth-mode-nav{margin-bottom:14px}.auth-divider{margin-top:14px;line-height:20px}.auth-form .auth-explainer{font-size:14px;line-height:1.5;margin-block:8px}.auth-form fieldset{margin-top:14px;gap:10px}.auth-form .ls-field{font-size:14px;line-height:1.4;gap:5px}.auth-form .ls-field input{padding-block:10px;min-height:46px}.auth-form .password-hint{line-height:1.5;margin-block:0}.auth-form .auth-navigation{margin-top:14px}}

/* Authentication starts directly at the form; no promotional title column. */
.auth-form{width:100%;max-width:480px}



.profile-avatar-editor{display:flex;flex:none;align-items:center;flex-direction:column;gap:8px}.avatar-camera{display:grid;place-items:center;width:32px;height:32px;padding:7px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--surface)}.avatar-camera:hover{background:var(--hover);border-color:var(--accent)}.avatar-camera svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.account-panel>.panel-heading:not(:first-of-type){margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.profile-avatar-editor{position:relative;display:grid;place-items:center;gap:0;width:64px;height:64px}
.profile-avatar-editor .avatar-camera{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;margin:0;padding:11px;border-radius:50%;background:color-mix(in srgb,var(--paper) 84%,transparent);color:var(--ink);z-index:1}
.profile-avatar-editor .avatar-camera:hover{background:var(--surface)}
.profile-identity>div:last-child{min-width:0}.profile-identity strong{display:block;overflow-wrap:anywhere}
.profile-avatar-form{padding-bottom:0;margin-bottom:0;border-bottom:0}
#avatar-status:empty{display:none}
.account-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.account-work-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.account-work-grid .account-work-link{display:block;padding:0;border:0}
.account-work-thumb,.account-favorite-preview{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;overflow:hidden;background:var(--paper)}
.account-work-thumb img,.account-favorite-preview img{display:block;width:100%;height:100%;object-fit:contain}
.account-work-link strong{padding:12px 88px 12px 12px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-work-delete{position:absolute;right:4px;bottom:3px;display:grid;place-items:center;width:38px;height:38px;padding:9px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.account-work-delete:hover{background:var(--hover);color:var(--ink)}
.account-work-delete svg{width:18px;height:18px}
.account-work-rename{position:absolute;right:44px;bottom:3px;display:grid;place-items:center;width:38px;height:38px;padding:9px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.account-work-rename:hover{background:var(--hover);color:var(--ink)}
.account-work-rename svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.account-work-rename:focus-visible,.account-work-delete:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.account-work-dialog{width:min(420px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #0005}
.account-work-dialog::backdrop{background:#0008}
.account-work-dialog form{display:grid;gap:20px}
.account-work-dialog h2{margin:0;font-size:22px}
.account-work-dialog p{margin:0;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.account-work-dialog input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit}
.account-work-dialog-actions{display:flex;justify-content:flex-end;gap:10px}
.account-work-dialog .ls-button{min-width:80px}
.account-work-dialog .danger{background:#b94343;color:#fff;border-color:#b94343}
.preferences-form{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.account-work-placeholder,.account-preview-loading{width:50%;height:8px;border-radius:4px;background:var(--line)}
.account-favorites .account-favorite{padding:0;gap:0;overflow:hidden}
.account-favorites .account-favorite>a{display:block}
.account-favorites .account-favorite strong{display:block;padding:12px 12px 0;font-size:16px;letter-spacing:0;line-height:1.4}
.account-favorites .reference-action{padding:12px;border:0}
.account-favorites .account-text-button{margin:0 12px 8px}
.account-favorite-preview[data-failed=true]{padding:16px;color:var(--muted);font-size:14px;text-align:center}
@media(max-width:1000px){.account-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:550px){.account-work-grid{grid-template-columns:minmax(0,1fr)}}
.auth-social-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.auth-social-buttons .ls-button{font-size:14px;gap:8px;padding-inline:12px;white-space:nowrap}
.github-brand-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;padding:3px;box-sizing:border-box;border-radius:50%;background:#24292f;flex:none}
.github-brand-icon img{display:block;width:19px;height:19px}

/* Center the authentication card in the viewport; long forms stay in normal flow. */
body:is([data-account-view="login"],[data-account-view="register"],[data-account-view="recover"]){
  min-height:100vh;
  min-height:100dvh;
  display:grid;
  grid-template-rows:minmax(min-content,1fr) auto minmax(min-content,1fr);
}
body:is([data-account-view="login"],[data-account-view="register"],[data-account-view="recover"])>[data-site-header]{align-self:start;width:100%}
body:is([data-account-view="login"],[data-account-view="register"],[data-account-view="recover"])>.auth-main{
  display:grid;
  grid-template-columns:minmax(0,480px);
  justify-content:center;
  align-items:center;
  width:100%;
  max-width:none;
  min-height:0;
  margin:0;
  padding:24px clamp(16px,4vw,32px);
  gap:0;
  box-sizing:border-box;
}
body:is([data-account-view="login"],[data-account-view="register"],[data-account-view="recover"]) .auth-form{width:100%;max-width:480px;min-width:0;margin:0;box-sizing:border-box}
body:is([data-account-view="login"],[data-account-view="register"],[data-account-view="recover"])>.auth-footer{align-self:end;width:100%;margin:0 auto;box-sizing:border-box}
@media(max-height:600px){
  body:is([data-account-view="login"],[data-account-view="register"],[data-account-view="recover"]){grid-template-rows:auto 1fr auto}
  body:is([data-account-view="login"],[data-account-view="register"],[data-account-view="recover"])>.auth-main{padding-block:16px}
}

/* Center the account-loading state without moving the loaded workspace. */
body[data-account-view="workspace"]:has(#account-root>.ls-loading:only-child){min-height:100vh;min-height:100dvh;display:grid;grid-template-rows:minmax(min-content,1fr) auto minmax(min-content,1fr)}
body[data-account-view="workspace"]:has(#account-root>.ls-loading:only-child)>[data-site-header]{align-self:start;width:100%}
body[data-account-view="workspace"]:has(#account-root>.ls-loading:only-child)>.account-main{display:grid;place-items:center;max-width:none;width:100%;min-height:0;margin:0;padding:24px;box-sizing:border-box}
body[data-account-view="workspace"]:has(#account-root>.ls-loading:only-child)>.auth-footer{align-self:end;width:100%;margin:0 auto;box-sizing:border-box}
.profile-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.profile-summary .ls-account-plan{flex:none;font-size:12px;line-height:1.4;padding:3px 7px;border:1px solid var(--line);border-radius:4px;font-weight:600;letter-spacing:.02em}
.profile-avatar-form{margin-top:0}
.profile-avatar-form .auth-small:empty{display:none}
@media(max-height:600px){body[data-account-view="workspace"]:has(#account-root>.ls-loading:only-child){grid-template-rows:auto 1fr auto}}

.account-points-header{display:flex;align-items:center;gap:18px;margin-bottom:16px;min-width:0}.account-panel .account-points-header h2{margin:0;font-size:24px;line-height:1.3}.account-points-balance{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.2;color:var(--muted);margin:0}.account-points-balance strong{font-size:21px;color:var(--ink);font-variant-numeric:tabular-nums}.account-points-header .account-points-toolbar{margin-left:auto;gap:8px}.account-points-status:empty,[data-account-arcade]>.auth-small:empty{display:none}
.account-arcade-card{display:flex;align-items:center;gap:24px;padding:28px;border:1px solid var(--ls-line,#314556);border-radius:16px;background:linear-gradient(110deg,#182b32,#15202b);margin-top:28px}.account-arcade-card small{color:#93b5b7;font-size:11px}.account-arcade-card h3{margin:3px 0;font-size:24px;color:#f0f7f8}.account-arcade-card p{color:#9caebb;font-size:12px;margin:7px 0 0}.account-arcade-card .ls-button{margin-left:auto;white-space:nowrap}.arcade-box-mark{width:54px;height:54px;flex:none;border:5px solid #a88557;box-shadow:inset 0 0 0 3px #684b30,4px 5px 0 #0003;background:linear-gradient(45deg,transparent 44%,#a88557 44% 56%,transparent 56%),linear-gradient(-45deg,transparent 44%,#a88557 44% 56%,transparent 56%),#3c3023;transform:rotate(-5deg);border-radius:3px}.account-arcade-dialog{padding:0;border:1px solid #304457;border-radius:16px;background:#0c1118;color:#eaf2fa;width:min(1000px,96vw);max-width:96vw;max-height:94dvh;overflow:hidden;box-shadow:0 30px 100px #0009}.account-arcade-dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.account-arcade-dialog header{display:flex;justify-content:space-between;align-items:center;height:46px;padding:0 20px;border-bottom:1px solid #243442}.account-arcade-dialog header button{background:none;border:0;color:#bdcbd6;font:28px/1 sans-serif;cursor:pointer;padding:4px 8px}.account-arcade-dialog iframe{display:block;width:100%;height:min(82dvh,840px);border:0;background:#0c1118}@media(max-width:680px){.account-arcade-card{flex-wrap:wrap;gap:16px;padding:20px}.account-arcade-card>div{flex:1;min-width:180px}.account-arcade-card .ls-button{margin-left:0;width:100%}.account-arcade-dialog{width:98vw;max-width:98vw;border-radius:10px}.account-arcade-dialog iframe{height:83dvh}}

.arcade-pacman-mark{width:54px;height:54px;flex:none;border-radius:50%;background:conic-gradient(from 45deg,transparent 0deg 90deg,#ffd646 90deg 360deg);filter:drop-shadow(0 5px 8px #0005);position:relative}.arcade-pacman-mark:after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#17202a;top:11px;left:26px}.arcade-plane-mark{width:54px;height:54px;flex:none;color:#b8e1ff;filter:drop-shadow(0 4px 8px #0006)}.arcade-plane-mark svg{width:100%;height:100%;fill:currentColor}.account-arcade-dialog[data-game=pacman],.account-arcade-dialog[data-game=s1945ii]{width:min(680px,96vw)}

/* Default game view fills the browser; native fullscreen is requested on Play. */
.account-arcade-dialog.is-maximized{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.account-arcade-dialog.is-maximized[open]{display:flex;flex-direction:column}.account-arcade-dialog.is-maximized>header{flex:none}.account-arcade-dialog.is-maximized>iframe{flex:1;height:0;min-height:0}

.account-points-toolbar{display:flex;align-items:center;gap:24px}.account-points-toolbar .account-points-balance{margin-right:auto}.account-points-toolbar button{white-space:nowrap}
.arcade-game-cover{display:block;flex:none;width:112px;height:152px;padding:4px;object-fit:contain;border:1px solid #ffffff24;border-radius:8px;background:#070c13;box-shadow:0 8px 20px #0005}
.arcade-game-cover--crop{display:grid;place-items:center;overflow:hidden}
.arcade-dontpull-cover-crop{position:relative;display:block;width:100%;aspect-ratio:370/412;overflow:hidden}
.arcade-dontpull-cover-crop img{position:absolute;width:229.72973%;height:auto;max-width:none;left:-119.45946%;top:-163.59224%}
@media(max-width:680px){.arcade-game-cover{width:84px;height:114px}.account-points-toolbar{gap:10px}}

.profile-details{min-width:0}.profile-name-row{display:flex;align-items:center;gap:6px}.profile-name-row strong{min-width:0}.profile-name-edit{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:10px;color:var(--muted);background:transparent;border:0;border-radius:8px;cursor:pointer}.profile-name-edit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}.profile-name-edit:hover{color:var(--ink);background:var(--hover)}.profile-name-edit:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.profile-identity .profile-email{margin:0 0 10px;overflow-wrap:anywhere}.profile-summary .profile-upgrade{min-height:36px;padding:6px 12px;font-size:13px}
/* Compact arcade library and on-demand leaderboards. */
.account-arcade-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.account-arcade-grid .account-arcade-card{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;flex-wrap:nowrap;gap:7px;aspect-ratio:3/4;padding:14px 12px 20px;margin:0;min-width:0;overflow:hidden;border-radius:15px;background:#151b23;border-color:#7e899d55;color:#fff;box-shadow:inset 0 1px 0 #ffffff33,0 5px 14px #0003;transition:transform .16s,border-color .16s}
.account-arcade-grid .account-arcade-card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#090e1600 26%,#10151ba6 55%,#111820f5 77%,#111820);pointer-events:none}
.account-arcade-grid .account-arcade-card::after{content:"";position:absolute;inset:5px;border:1px solid #ffffff18;border-radius:10px;pointer-events:none}
.account-arcade-grid .account-arcade-card:hover{transform:translateY(-2px);border-color:#b5caec99}
.account-arcade-grid .arcade-game-cover{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;z-index:-2;padding:0;border:0;border-radius:0;object-fit:cover;object-position:center top;background:#12171e;box-shadow:none}
.account-arcade-grid .arcade-game-cover--crop{display:grid;place-items:start center;overflow:hidden}.account-arcade-grid .arcade-dontpull-cover-crop{height:auto;width:100%;max-width:none;aspect-ratio:370/412}
.arcade-game-chip{position:absolute;top:13px;left:13px;width:31px;height:25px;filter:drop-shadow(0 2px 3px #0008)}.arcade-game-chip svg{display:block;width:100%;height:100%;fill:#ceb782;stroke:#6e5935;stroke-width:.9}.arcade-game-chip svg path{fill:none}
.account-arcade-grid .arcade-card-copy{flex:none;min-width:0;position:relative;text-shadow:0 1px 4px #000a}.account-arcade-grid .arcade-card-copy h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em;margin:0;font-size:14px;line-height:1.25;color:#fff}
.account-arcade-grid .arcade-card-copy p{margin:5px 0 0;font-size:9.5px;line-height:1.4;color:#d2d9e4;overflow-wrap:anywhere}
.account-arcade-grid .arcade-card-actions{display:flex;align-items:center;gap:5px;min-width:0;flex:none;position:relative}.account-arcade-grid .arcade-card-actions .ls-button{margin:0;width:auto;min-width:0;min-height:30px;padding:5px 7px;font-size:11px;color:#fff;border-color:#d6e2f63d;background:#d8e8ff14}.account-arcade-grid .arcade-play-button{flex:1;background:#d6e8ff29!important}.account-arcade-grid .arcade-card-actions .ls-button:hover{background:#d6e8ff35}
.account-points-chip{display:block;width:29px;height:29px;filter:drop-shadow(0 2px 3px #0004)}.account-points-chip svg{width:100%;height:100%}.account-points-toolbar .account-points-icon{display:grid;place-items:center;width:35px;height:35px;min-height:35px;padding:8px}.account-points-icon svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.account-points-icon.is-refreshing svg{animation:points-refresh .8s linear infinite}@keyframes points-refresh{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.account-points-icon.is-refreshing svg{animation:none}.account-arcade-grid .account-arcade-card{transition:none}}
.arcade-ranking-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.arcade-ranking-trigger svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.arcade-record-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 16px;padding:0 0 14px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}.arcade-record-summary>.arcade-ranking-trigger{margin-left:auto;min-height:32px;padding:5px 10px;font-size:12px}
.arcade-personal-records{display:flex;gap:22px;flex-wrap:wrap;margin:0;padding:0;border:0}.arcade-personal-records>div{display:flex;align-items:baseline;gap:8px}.arcade-personal-records dt{font-size:12px;color:var(--muted)}.arcade-personal-records dd{margin:0;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.arcade-ranking-dialog{width:min(460px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:80dvh;box-sizing:border-box;padding:0;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 80px #0007}.arcade-ranking-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}
.arcade-ranking-dialog header{display:flex;align-items:center;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}.arcade-ranking-dialog h3{flex:1;min-width:0;margin:0;font-size:17px;line-height:1.4}.arcade-ranking-dialog [data-close-ranking]{flex:none;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:26px;cursor:pointer}.arcade-ranking-dialog [data-close-ranking]:hover{background:var(--hover);color:var(--ink)}.arcade-ranking-dialog-body{padding:20px;overflow:auto;max-height:calc(80dvh - 76px);box-sizing:border-box}
.arcade-ranking{display:grid;gap:18px;list-style:none;padding:0;margin:0}.arcade-ranking-entry{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0}.arcade-rank{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;font-size:12px;color:var(--muted)}.arcade-ranking-entry:first-child .arcade-rank{color:#d4ae55;border-color:#a18b55;background:#ab8c2b19}.arcade-ranking-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.arcade-ranking-score{font-size:17px;font-variant-numeric:tabular-nums}.arcade-ranking-score small{margin-left:5px;font-size:11px;font-weight:400;color:var(--muted)}.arcade-ranking-status,.arcade-ranking-empty{margin:0;font-size:13px;color:var(--muted)}.arcade-ranking-status:empty{display:none}.arcade-record-summary>.arcade-ranking-status:not(:empty){flex-basis:100%}
@media(max-width:1000px){.account-arcade-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.account-points-header{gap:12px;flex-wrap:wrap}.account-panel .account-points-header h2{font-size:21px}.account-points-header .ls-button{font-size:12px;padding:6px 9px;min-height:34px}.arcade-record-summary{gap:12px}.arcade-personal-records{gap:10px 18px}.arcade-personal-records>div{gap:6px}.account-arcade-grid{gap:10px}.account-arcade-grid .account-arcade-card{padding:10px;gap:10px}.account-arcade-grid .arcade-card-actions{flex-wrap:wrap}.account-arcade-grid .arcade-card-actions .ls-button{flex:1}.arcade-record-summary>.arcade-ranking-trigger{margin-left:0}}
@media(max-width:359px){.account-arcade-grid{grid-template-columns:minmax(0,1fr)}}

.profile-chip{display:inline-flex;width:20px;height:20px;vertical-align:middle;margin-right:4px}.profile-chip svg{width:100%;height:100%}
.account-billing-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.account-billing-heading h2{margin:0;font-size:25px;letter-spacing:-.5px}.account-billing-heading .ls-button{min-height:34px;padding:6px 12px;font-size:13px}
.account-billing-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;margin-bottom:16px}.account-billing-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.account-billing-table th{color:var(--muted);font-weight:500;background:var(--surface);padding:12px 16px;white-space:nowrap}.account-billing-table td{padding:16px;border-top:1px solid var(--line);vertical-align:middle}.account-billing-table strong{display:block;font-size:14px;font-weight:600}.account-billing-table small{display:block;max-width:210px;overflow:hidden;text-overflow:ellipsis;margin-top:5px;color:var(--muted);font-size:11px}.account-billing-table time,.account-billing-amount{white-space:nowrap;font-variant-numeric:tabular-nums}.account-billing-invoice{white-space:nowrap;color:var(--accent)}
.account-billing-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:4px 8px;background:var(--surface-soft);border:1px solid var(--line);border-radius:5px;font-size:12px;color:var(--muted)}.account-billing-status[data-status=active],.account-billing-status[data-status=completed],.account-billing-status[data-status=paid]{color:var(--ink)}.account-billing-status[data-status=active]::before,.account-billing-status[data-status=completed]::before{content:'';width:5px;height:5px;background:var(--accent);border-radius:50%}
button.account-billing-invoice{padding:5px 0;background:none;border:0;font:inherit;cursor:pointer}button.account-billing-invoice:hover{text-decoration:underline}button.account-billing-invoice:disabled{opacity:.6;cursor:wait}
.account-subscription-card{max-width:700px;border:1px solid var(--line);border-radius:12px;padding:24px;background:var(--surface)}.account-subscription-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.account-subscription-heading>strong{font-size:25px;letter-spacing:-.5px}.account-subscription-heading>strong>span{color:var(--accent)}.account-subscription-card dl{margin:22px 0}.account-subscription-card dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.account-subscription-card dt{color:var(--muted)}.account-subscription-card dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.account-billing-actions{display:flex;flex-wrap:wrap;gap:10px}.account-billing-actions .ls-button{min-height:38px;font-size:13px;padding:8px 14px}.account-billing-note{margin:14px 0;color:var(--muted);font-size:13px}.account-billing-note:empty{display:none}.account-billing-empty{padding:28px 0;border-top:1px solid var(--line);color:var(--muted)}.account-billing-empty p{margin:0 0 18px}.account-billing-empty .ls-button{font-size:13px}
@media(max-width:600px){.account-subscription-card{padding:18px}.account-billing-table td,.account-billing-table th{padding:12px}.account-billing-table{min-width:600px}.account-subscription-heading>strong{font-size:22px}.account-subscription-card dl>div{font-size:13px;gap:12px}}
