.account-entry{flex:none;min-height:38px;padding:8px 17px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:550;white-space:nowrap}
.account-entry:hover{background:var(--surface)}
.account-dialog{--account-muted:#63656a;--account-field:#fff;--account-line:#dedfe3;box-sizing:border-box;width:min(840px,calc(100vw - 48px));max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:16px;background:#fff;color:#202125;overflow:auto;box-shadow:0 28px 96px #0005;scrollbar-color:#b2b4bb transparent;scrollbar-width:thin}
.account-dialog::backdrop{background:#171a2488}
.account-layout{display:grid;grid-template-columns:43% 57%;min-height:590px}
.account-scene{position:relative;overflow:clip;background:#16181e;border-radius:16px 0 0 16px;isolation:isolate}
.account-wall{position:absolute;left:50%;top:-90px;width:440px;display:grid;grid-template-columns:1fr 1fr;gap:12px;transform:translateX(-50%) rotate(-9deg);transform-origin:center top}
.account-wall-track{animation:account-wall-drift 76s linear infinite;animation-play-state:paused}
.account-wall-track:nth-child(2){animation-duration:92s;animation-direction:reverse}
.account-scene[data-running=true] .account-wall-track{animation-play-state:running}
.account-wall-group{display:grid;gap:12px;padding-bottom:12px}
.account-wall-tile{position:relative;margin:0;aspect-ratio:4/3;overflow:hidden;border-radius:10px;background:#292c34;border:1px solid #ffffff1a}
.account-wall-tile img,.account-wall-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.account-wall-tile video{opacity:0;transition:opacity .18s}.account-wall-tile video.is-playing{opacity:1}
.account-wall-tile figcaption{position:absolute;z-index:1;bottom:0;left:0;right:0;padding:25px 12px 10px;background:linear-gradient(transparent,#0b0c10cc);color:#fff;font-size:11px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-scene::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(#101218d9,transparent 23%,transparent 42%,#101218f5 100%);pointer-events:none}
.account-scene-copy{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:space-between;padding:32px 30px;color:#fff;pointer-events:none}
.account-wordmark{font-size:17px;font-weight:650;letter-spacing:-.02em}
.account-scene-copy p{margin:0;font-size:34px;line-height:1.3;font-weight:600;letter-spacing:-.025em;color:#fff}
.account-scene-copy small{display:block;margin-top:12px;font-size:12px;line-height:1.6;color:#c6c8cf}
@keyframes account-wall-drift{from{transform:translateY(0)}to{transform:translateY(-50%)}}
@media(prefers-reduced-motion:reduce){.account-wall-track{animation:none}.account-wall-tile video{transition:none}}

.account-content{padding:54px 44px 28px;min-width:0}
.account-dialog .account-close{position:absolute;right:14px;top:14px;z-index:2;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--account-muted)}
.account-close:hover{background:#80808014}.account-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.account-mobile-logo{display:none}
.account-dialog h2{font-size:26px;line-height:1.35;letter-spacing:-.025em;margin:0 0 8px;font-weight:650;text-wrap:balance}
.account-intro{font-size:14px;line-height:1.65;color:var(--account-muted);margin:0 0 24px}
.account-tabs{display:flex;gap:24px;margin-bottom:24px;border-bottom:1px solid var(--account-line)}
.account-tabs button{position:relative;min-height:44px;padding:0 0 12px;font-size:14px;font-weight:550;color:var(--account-muted);white-space:nowrap}
.account-tabs button[aria-pressed=true]{color:inherit}
.account-tabs button[aria-pressed=true]:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:currentColor;border-radius:2px}
.account-form label{display:block;font-size:13px;font-weight:550;margin:20px 0 8px}
.account-form>label:first-child{margin-top:0}
.account-form input{box-sizing:border-box;width:100%;min-width:0;height:48px;padding:0 13px;border:1px solid var(--account-line);border-radius:8px;background:var(--account-field);color:inherit;font:inherit;font-size:15px;caret-color:#335cff;transition:border-color .16s}
.account-form input::placeholder{color:#72747a;opacity:1}.account-form input:focus{border-color:#5c6ab4}.account-form input:read-only{background:#8080800c;color:var(--account-muted)}
.account-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.account-send{padding:0 12px;border:1px solid var(--account-line);border-radius:8px;font-size:13px;font-weight:550;white-space:nowrap;min-height:48px}
.account-send:hover{background:#8080800a}
.account-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin-top:24px;padding:12px 18px;border-radius:8px;background:#26282d;color:#fff;font-size:14px;font-weight:550;transition:background .16s,transform .16s}
.account-primary:hover{background:#3b3e46}.account-primary:active{transform:translateY(1px)}.account-primary span{font-size:19px;line-height:1}
.account-dialog button:disabled{cursor:not-allowed;opacity:.45}.account-dialog button:disabled:active{transform:none}
.account-hint,.account-field-hint{font-size:12px;line-height:1.7;color:var(--account-muted);margin:14px 0 0}.account-field-hint{margin-top:7px}
.account-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 8px}.account-label-row label{margin:0}
.account-text-button{padding:4px 0;font-size:12px;color:inherit;text-decoration:underline;text-decoration-color:#9b9da4;text-underline-offset:4px}.account-hint .account-text-button{margin-left:6px}
.account-password-row{position:relative}.account-password-row input{padding-right:56px}.account-reveal{position:absolute;right:3px;top:3px;bottom:3px;min-width:46px;font-size:12px;color:var(--account-muted);border-radius:6px}
.account-status{font-size:13px;line-height:1.6;color:var(--account-muted);margin:14px 0 0;overflow-wrap:anywhere}.account-status:empty{display:none}.account-status[data-error=true]{color:#b32b35}
.account-privacy{font-size:12px;line-height:1.8;color:var(--account-muted);margin:30px 0 0}.account-privacy a{text-decoration:underline;text-underline-offset:3px;color:inherit}
.account-back{display:block;min-height:44px;margin:10px auto 0;padding:8px 16px;font-size:13px;color:var(--account-muted)}.account-back:hover{color:inherit}
.account-wechat{text-align:center;padding-top:20px}.account-wechat p{font-size:14px;line-height:1.8;color:var(--account-muted)}
.account-dialog button:focus-visible,.account-dialog input:focus-visible,.account-dialog a:focus-visible,.account-entry:focus-visible{outline:2px solid #5570ef;outline-offset:3px}
.account-dialog ::selection{color:#10214e;background:#d3ddff}.account-dialog [hidden]{display:none!important}
.account-profile{padding:20px 0;border-block:1px solid var(--account-line);display:grid;gap:10px;font-size:14px;overflow-wrap:anywhere}.account-profile strong{font-size:22px;font-weight:600;letter-spacing:.02em}.account-profile small{font-size:12px;color:var(--account-muted)}
.account-dialog[open]{animation:account-arrive .24s cubic-bezier(.16,1,.3,1)}
@keyframes account-arrive{from{opacity:.65;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@media(prefers-color-scheme:dark){:where(:root:not([data-site-theme])) .account-dialog{--account-muted:#a9adb8;--account-field:#23252a;--account-line:#3a3d45;background:#1b1d22;color:#f2f3f6}:where(:root:not([data-site-theme])) .account-form input::placeholder{color:#a1a6b2}:where(:root:not([data-site-theme])) .account-primary{background:#f0f1f4;color:#202125}:where(:root:not([data-site-theme])) .account-primary:hover{background:#fff}:where(:root:not([data-site-theme])) .account-status[data-error=true]{color:#ff9da5}}
:where(:root[data-site-theme="dark"]) .account-dialog{--account-muted:#a9adb8;--account-field:#23252a;--account-line:#3a3d45;background:#1b1d22;color:#f2f3f6}
@media(max-width:900px) and (min-width:601px){.masthead-inner{gap:14px}.account-entry{padding-inline:12px}.view-nav .nav-item{padding-inline:9px}.account-content{padding-inline:32px}.account-tabs{gap:18px}}
@media(max-width:680px){.account-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.account-layout{display:block;min-height:0}.account-scene{display:none}.account-content{padding:36px 28px 26px}.account-mobile-logo{display:block;width:36px;height:36px;object-fit:cover;border-radius:9px;margin-bottom:24px}.account-dialog h2{font-size:25px}.account-tabs{gap:26px}.account-form input{font-size:16px}.account-privacy{margin-top:26px}}
@media(max-width:600px){.account-entry{order:1;margin-left:auto;min-height:36px;padding:7px 13px}.masthead-inner .view-nav{margin-left:0}.masthead-inner .brand{margin-right:0}}
@media(max-width:360px){.account-content{padding-inline:22px}.account-tabs{gap:20px}.masthead-inner{gap:8px}.masthead-inner .brand{gap:6px}.masthead-inner .brand-avatar{width:24px;height:24px}.masthead-inner .brand-name{font-size:16px}.masthead-inner .view-nav{gap:0}.masthead-inner .view-nav .nav-item{padding:6px 4px;font-size:11px}.masthead-inner .view-nav .nav-item span,.masthead-inner .inspiration-toggle svg{display:none}.masthead-inner .account-entry{margin:0;padding-inline:10px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.account-dialog[open]{animation:none}.account-dialog button,.account-form input{transition:none}}

/* Account navigation stays visually quieter than the library navigation. */
.account-nav{position:relative;flex:none;line-height:1.4}
.account-nav [hidden],.profile-dialog [hidden]{display:none!important}
.account-entry.is-member{display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:4px;border:0;border-radius:50%;background:transparent}
.user-avatar{position:relative;display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#eeeae3;color:#6c6459;font-size:15px;font-weight:550;user-select:none}
.user-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.user-avatar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.account-entry.is-member:hover>.user-avatar,.account-entry.is-member[aria-expanded=true]>.user-avatar{box-shadow:0 0 0 3px #18181809}
.account-menu{position:absolute;right:0;top:100%;z-index:100;width:220px;max-width:calc(100vw - 32px);padding-top:8px}
.account-menu-panel{padding:6px;background:var(--bg,#fff);color:var(--text,#202125);border:1px solid var(--line,#e8e8e8);border-radius:12px;box-shadow:0 6px 24px #0000000c,0 2px 6px #00000004}
.account-menu-identity{padding:10px 10px 12px;display:grid;gap:3px}
.account-menu-identity strong{font-size:13px;font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.account-menu-identity span{font-size:12px;color:var(--muted,#777);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.account-menu [role=menuitem]{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:9px 10px;border:0;border-radius:6px;font:inherit;font-size:13px;font-weight:400;color:inherit;background:transparent;text-decoration:none;text-align:left;cursor:pointer}
.account-menu [role=menuitem]:hover,.account-menu [role=menuitem]:focus-visible{background:var(--surface,#f5f5f5);outline:none}
.account-menu [role=menuitem]:disabled{opacity:.5;cursor:wait}
.account-menu [role=menuitem] svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:var(--muted,#737373)}
.account-menu-divider{height:1px;margin:5px 8px;background:var(--line,#e8e8e8)}
.account-menu .account-status{margin:6px 10px;font-size:12px}
.header-checkin{order:-1;position:relative;display:flex;align-items:center;justify-content:center;gap:6px;flex:none;height:38px;padding:0 12px;border:1px solid var(--line,#e8e8e8);border-radius:999px;background:transparent;color:var(--ink,#222);font:inherit;font-size:12px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s}
.header-checkin svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.header-checkin::after{content:"";position:absolute;inset:-3px 0}
.header-checkin:hover:not(:disabled){background:var(--surface,#f5f5f5);border-color:var(--muted,#777)}
.header-checkin:disabled{cursor:default;color:var(--muted,#777)}
.header-checkin[data-claimed=true]{border-color:transparent;background:var(--surface,#f5f5f5)}
.header-checkin:focus-visible{outline:2px solid var(--ink,#222);outline-offset:3px}
.account-menu-credits{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 0 0;padding-top:10px;border-top:1px solid var(--line,#e8e8e8)}
.account-menu-credits-label{display:flex;align-items:center;gap:10px}.account-menu-credits-label>svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:var(--muted,#737373)}
.account-menu-identity .account-menu-credits strong{font-size:15px;line-height:1.5;font-variant-numeric:tabular-nums;color:var(--ink,#222)}
.account-menu-credits[data-state=error] strong,.account-menu-credits[data-state=loading] strong{font-size:12px;color:var(--muted,#777)}
.header-credit-toast{position:fixed;z-index:1300;bottom:32px;left:50%;transform:translateX(-50%);box-sizing:border-box;max-width:calc(100vw - 32px);padding:12px 20px;border:1px solid var(--line,#e8e8e8);border-radius:999px;background:var(--paper,#fff);color:var(--ink,#222);box-shadow:0 8px 30px #0002;font-size:13px;line-height:1.5;text-align:center;pointer-events:none}
.header-credit-toast[hidden]{display:none}
@media(max-width:600px){.header-checkin{height:36px;padding-inline:10px;font-size:11px;gap:5px}.header-checkin svg{width:15px;height:15px}}
@media(max-width:360px){.header-checkin svg{display:none}.header-checkin{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.header-checkin{transition:none}}
/* Profile editor adapted from Origin UI comp-331, MIT (origin-ui-LICENSE.txt).
   Native dialog and existing account persistence replace the React primitives. */
.profile-dialog{--profile-bg:#fff;--profile-surface:#f7f7f7;--account-muted:#6d6d73;--account-line:#e9e9eb;--profile-input:#d7d7db;--profile-focus:#78787e;box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:16px;background:var(--profile-bg);color:#242427;overflow:hidden;box-shadow:0 24px 80px #15151b2e;line-height:1.5}
.profile-dialog[open]{display:flex;flex-direction:column}
.profile-dialog::backdrop{background:#1c1c245c}
.profile-header{position:relative;display:flex;align-items:center;flex:none;min-height:64px;padding:0 24px;border-bottom:1px solid var(--account-line)}
.profile-dialog h2{margin:0;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.015em}
.profile-dialog .account-close{position:absolute;right:12px;top:10px;display:grid;place-items:center;width:44px;height:44px;border-radius:8px;color:var(--account-muted)}
.profile-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#profileForm{display:flex;flex-direction:column;min-height:0;margin:0}
.profile-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-color:#b2b2b8 transparent;scrollbar-width:thin}
.profile-cover{height:128px;background:#d3d9db url('profile-cover.jpg?v=feb98d05c4c2') center 48%/cover no-repeat}
.profile-body{padding:0 24px 26px}
.profile-avatar-row{position:relative;display:flex;align-items:flex-end;gap:16px;margin:-40px 0 26px}
.profile-avatar-pick{position:relative;align-self:flex-start;flex:none;box-sizing:border-box;padding:0;border:4px solid var(--profile-bg);border-radius:50%;background:var(--profile-bg)}
.profile-avatar-pick>.user-avatar,.profile-avatar-pick .user-avatar>.user-avatar{width:80px;height:80px;font-size:30px}
.profile-avatar-pick svg{width:30px;height:30px}
.profile-avatar-edit{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:28px;height:28px;border:3px solid var(--profile-bg);border-radius:50%;background:#27272a;color:#fff;transition:background .15s}
.profile-avatar-pick:hover .profile-avatar-edit{background:#52525b}
.profile-avatar-edit svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.profile-avatar-tools{min-width:0;padding-top:48px}
.profile-avatar-buttons{display:flex;align-items:center;gap:4px}
.profile-upload,.profile-remove{min-height:36px;padding:6px 12px;border-radius:7px;font:inherit;font-size:12px;font-weight:500;white-space:nowrap;transition:background .15s}
.profile-upload{border:1px solid var(--profile-input);background:var(--profile-bg);color:inherit}
.profile-upload:hover{background:var(--profile-surface)}
.profile-remove{color:var(--account-muted)}
.profile-remove:hover{color:inherit;background:var(--profile-surface)}
.profile-avatar-hint{margin:7px 0 0;font-size:11px;line-height:1.5;color:var(--account-muted)}
.profile-field label,#profileIdentityLabel{display:block;font-size:13px;font-weight:500;margin-bottom:8px}
.profile-field input{box-sizing:border-box;width:100%;height:44px;padding:0 12px;border:1px solid var(--profile-input);border-radius:8px;background:var(--profile-bg);color:inherit;font:inherit;font-size:14px;caret-color:currentColor;transition:border-color .15s,box-shadow .15s}
.profile-field input::placeholder{color:var(--account-muted);opacity:1}
.profile-field input:focus-visible{border-color:var(--profile-focus);outline:0;box-shadow:0 0 0 3px #71717a1f}
.profile-field p{margin:7px 0 0;font-size:12px;color:var(--account-muted);line-height:1.6}
.profile-identity{margin-top:22px}
.profile-identity-value{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:8px;background:var(--profile-surface);font-size:13px}
#profileIdentity{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--account-muted)}
.profile-verified{display:flex;align-items:center;gap:4px;flex:none;margin-left:auto;font-size:11px;color:var(--account-muted)}
.profile-verified svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.profile-actions{display:flex;justify-content:flex-end;flex:none;gap:8px;padding:16px 24px;border-top:1px solid var(--account-line);background:var(--profile-bg)}
.profile-actions button{min-height:40px;padding:8px 16px;border-radius:8px;font:inherit;font-size:13px;font-weight:500;transition:background .15s}
.profile-cancel{border:1px solid var(--profile-input);background:var(--profile-bg);color:inherit}
.profile-cancel:hover{background:var(--profile-surface)}
.profile-save{background:#27272a;color:#fff}
.profile-save:hover{background:#3f3f46}
.profile-dialog button:disabled,.profile-dialog input:disabled{opacity:.5;cursor:wait}
.profile-dialog button:focus-visible{outline:2px solid var(--profile-focus);outline-offset:3px}
.profile-dialog ::selection{color:#18181b;background:#e1e1e6}
@media(max-width:600px){.account-nav{order:1;margin-left:auto}.account-nav .account-entry{margin-left:0}.account-menu [role=menuitem]{min-height:44px}.profile-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.profile-header{padding-inline:20px}.profile-body{padding-inline:20px}.profile-cover{height:112px}.profile-field input{font-size:16px}.profile-upload,.profile-remove{min-height:44px}.profile-actions{padding-inline:20px}.profile-actions button{min-height:44px}}
@media(max-width:360px){.profile-avatar-row{gap:12px}.profile-avatar-pick>.user-avatar,.profile-avatar-pick .user-avatar>.user-avatar{width:64px;height:64px}.profile-avatar-hint{max-width:166px;font-size:11px}.profile-upload,.profile-remove{padding-inline:10px}}
@media(prefers-color-scheme:dark){:where(:root:not([data-site-theme])) .account-menu-panel{background:#1d1e20;color:#eee;border-color:#393a3c}:where(:root:not([data-site-theme])) .account-menu [role=menuitem]:hover,:where(:root:not([data-site-theme])) .account-menu [role=menuitem]:focus-visible{background:#ffffff0a}:where(:root:not([data-site-theme])) .user-avatar{background:#393630;color:#d8d0c3}:where(:root:not([data-site-theme])) .profile-dialog{--profile-bg:#202124;--profile-surface:#292a2e;--account-line:#36373a;--account-muted:#b0b0b8;--profile-input:#505057;--profile-focus:#aaaab4;color:#eee}:where(:root:not([data-site-theme])) .profile-save{background:#eee;color:#222}:where(:root:not([data-site-theme])) .profile-save:hover{background:#fff}:where(:root:not([data-site-theme])) .profile-dialog ::selection{background:#50505a;color:#fff}:where(:root:not([data-site-theme])) .account-menu-divider{background:#393a3c}}
:where(:root[data-site-theme="dark"]) .account-menu-panel{background:#1d1e20;color:#eee;border-color:#393a3c}
@media(prefers-reduced-motion:reduce){.profile-dialog button,.profile-field input,.profile-avatar-edit{transition:none}}
