/* Public surfaces: dark for brand/product stories, paper for content/forms.
   Borders and transparent overlays provide hierarchy, never a third section background. */
:root{--surface-brand:#111416;--surface-content:#fafaf8;--brand-accent:#ff6a00;--text-ink:#151719;--text-muted:#666b70;--border-soft:#dadcd9;--heading-xl:clamp(36px,4.8vw,64px);--heading-lg:clamp(32px,4.4vw,60px);--paper:var(--surface-content);--dark:var(--surface-brand);--dark2:var(--surface-brand);--bg:var(--surface-content);--accent:var(--brand-accent);--darkline:#34393d}
body,body.site-inner,body.ping-login,body.ping-downloads{background:var(--surface-content);color:var(--text-ink);font-family:-apple-system,BlinkMacSystemFont,"Inter","PingFang SC",sans-serif;line-height:1.6}
body .dark,body .dl-platform,body .dark-panel{background:var(--surface-brand);color:#f6f6f3}
body .orange{color:inherit}
body .eyebrow,body .ping-login .eyebrow,body .dl-kicker{color:var(--text-muted)}
body .dark .eyebrow{color:#a5adb3}
body :is(.page-head h1,.dl-intro h1,.docs-layout h1,.login-panel h1){font-size:var(--heading-xl);line-height:1.13;letter-spacing:-.04em;font-weight:650;text-wrap:balance}
body .display{font-size:var(--heading-lg);letter-spacing:-.04em}
body.site-inner>main{width:calc(100% - 2 * var(--nav-gutter));max-width:1296px;padding:0;margin:auto;min-height:55vh}
body.ping-downloads>main,body.ping-login>main{width:100%;max-width:none}
body .page-head{padding:64px 0 48px;max-width:850px}
body .page-head p{font-size:18px;max-width:65ch}
body .page-head .back{display:inline-block;margin:20px 20px 0 0}
body .button,body .dl-download,body .scenario-buttons .button,body .am-action button{border:1px solid currentColor;background:transparent;color:inherit;border-radius:999px;min-height:44px;padding:10px 22px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;box-sizing:border-box;white-space:normal}
body :is(a.button[href='/downloads'],.dl-download,.shared-download,.nav-download){background:var(--brand-accent);border:1px solid var(--brand-accent);color:#111416;min-height:44px;padding:10px 22px;border-radius:999px;font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
body :is(a.button[href='/downloads'],.dl-download,.shared-download,.nav-download):hover{background:#ff8533;color:#111416}
body :is(.text-button,.guide-link,.dl-guide,.am-bottom a,.product-faq a,.final-actions>a:not(.button),.back){color:inherit;text-decoration:underline;text-underline-offset:4px}
body .login-panel .button,body.site-inner:not(.ping-login):not(.ping-downloads) .button{background:transparent;border-color:currentColor;color:inherit}
body.site-inner:not(.ping-login):not(.ping-downloads) a.button[href='/downloads']{background:var(--brand-accent);border-color:var(--brand-accent);color:#111416}
body .demo-label i,body .am-top i,body .hero-video::before{display:none}
body .setup-steps>article>span,body .dl-features li::before{color:inherit}
body .hero-copy{display:block;min-width:0}
body .hero h1{font-size:clamp(46px,5.4vw,78px);line-height:1.04;letter-spacing:-.045em;margin:0}
body .hero-subtitle{font-size:clamp(17px,1.5vw,21px);color:#bdc5c9;margin:24px 0 0;max-width:36ch;line-height:1.5}
body .hero-actions{margin:24px 0 0;gap:22px}
body .hero-video{border:0;border-radius:0;padding:10px 0;background:none;min-height:44px;text-decoration:underline;text-underline-offset:5px;font-size:14px;color:inherit}
#features{scroll-margin-top:73px;height:0}
body .get-started,body .product-faq,body .anywhere,body .model-section{background:var(--surface-content)}
body .walk-panel,body .am-panel,body .am-node,body .am-form select,body .am-value,body .am-route article,body .am-route article div,body .mobile-context,body .mobile-editor :is(select,input,textarea),body .guide-shortcuts a,body .guide-example,body .guide-figure,body .panel,body.site-inner .wallet-panel,body .login-panel,body .notice{background:var(--surface-content)}
body .dark-panel .mini-card,body .dark-panel .scenario-columns{background:transparent}
body .agent-switch-example{border:1px solid #454b4e;border-radius:8px;padding:20px;margin-top:24px}
.agent-choice{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 22px}
.agent-choice button{display:flex;align-items:center;gap:8px;padding:9px 12px;background:transparent;color:inherit;border:1px solid #586166;border-radius:999px;font-size:13px}
.agent-choice button[aria-pressed=true]{border-color:var(--brand-accent);color:var(--brand-accent)}
.agent-example-session{border-top:1px solid #454b4e;padding-top:16px}
.agent-example-session>span{display:block;font-size:12px;color:#aeb8be;margin-bottom:8px}
.agent-example-session strong{font-size:24px}
body .login-shell{display:block;min-height:0}
body .login-panel{padding:64px 22px 80px;display:grid;place-items:center}
body .login-panel-inner{width:min(100%,440px)}
.login-brand{display:inline-flex;margin-bottom:20px}
body .login-panel h1{font-size:clamp(34px,4vw,48px);margin:12px 0 20px}
body .login-panel input,body .panel input{background:var(--surface-content)}
body .login-help{display:flex;flex-wrap:wrap}
body .dl-page{width:calc(100% - 2 * var(--nav-gutter));max-width:1296px;padding:56px 0 40px}
body .dl-showcase{background:none}
body .dl-computer .dl-device-top i:first-child{background:#b3b8bd}
.dl-unavailable{color:#c5cdd1;font-size:15px;line-height:1.7;margin:0;max-width:42ch}
body .dl-guide{border:1px solid #697177;border-radius:999px;padding:10px 18px;text-decoration:none;min-height:44px}
body .guide-figure{height:auto;min-height:0}
body .guide-figure img{height:auto;max-height:440px;object-fit:contain}
body .docs-tools{top:92px;max-height:calc(100dvh - 110px)}
body .shared-header{position:sticky;top:0;z-index:20}
body .home-footer{display:block;max-width:none;width:100%;margin:0;padding:0;background:var(--surface-brand);color:#f6f6f3;border:0}
body .home-footer>.wrap{width:calc(100% - 2 * var(--nav-gutter));max-width:1296px;margin:auto}
body .home-footer nav{display:block;margin:0;padding:0;text-align:left}
body .home-footer a{color:inherit}
body .home-footer :is(h2,p,li,small){line-height:1.6;letter-spacing:normal}
body .home-footer h2{font-weight:650}
body .home-footer li span{display:inline}
body .home-footer .home-footer-bottom{display:flex}
body .home-footer .brand{display:inline-flex}
body .home-footer button{font:inherit}
body :is(.skip,.skip-link){background:var(--surface-content);color:var(--text-ink)}
@media(max-width:599px){body .hero h1{font-size:clamp(44px,11.4vw,64px)}body .hero-actions{gap:18px}body .hero-grid{padding-top:36px}body .dl-page{padding-top:32px}body .dl-platform{padding:26px 20px}body .dl-tabs a{font-size:12px;padding:12px 5px;gap:5px}body .dl-intro h1{max-width:none}body .home-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body .home-footer-brand{grid-column:1/-1}body .page-head{padding:40px 0 32px}body .login-panel{padding:42px 22px 56px}}

/* Shared multi-column footer. */
.home-footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(96px, 1fr));
  gap: 32px;
  border-top: 1px solid var(--darkline);
  padding: 36px 0 28px;
}
.home-footer-brand img { width: 122px; height: auto; }
.home-footer-brand p { margin: 11px 0 0; max-width: 36ch; color: #aeb8be; font-size: 14px; }
.home-footer h2 { margin: 0 0 10px; color: #f2f4f3; font-size: 14px; }
.home-footer ul { margin: 0; padding: 0; list-style: none; }
.home-footer li { font-size: 14px; color: #b5bec4; }
.home-footer li a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.home-footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.home-footer-community li { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.home-footer-community img { flex: none; filter: invert(1); opacity: .75; }
.home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--darkline);
  padding: 5px 0 8px;
  color: #aeb8be;
}
.home-footer-bottom small { font-size: 12px; }
@media (max-width: 760px) {
  .home-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .home-footer-brand { grid-column: 1 / -1; }
}
/* Preserve contrast on the dark walkthrough while sharing the surface tokens. */
body .walk-panel.dark-panel{background:var(--surface-brand)}
body .dark-panel :is(.agent-switch-example,.mini-card){background:transparent;color:#f6f6f3}
body .dark-panel .agent-switch-example>p,body .dark-panel .agent-example-session p{color:#aeb8be}
body.ping-login .eyebrow{color:var(--text-muted)}
body .am-form,body .am-route,body .am-action,body .get-started{background:var(--surface-content)}
body .am-bottom a{border:0;padding:0;background:none;text-decoration:underline}
body :is(.home-footer li,.home-footer-brand p){font-weight:400}
body .home-footer h2{font-size:14px;letter-spacing:0}
body:has(>.site-inner){min-height:100vh}
body.site-inner{display:flex;flex-direction:column;min-height:100vh}
body.site-inner>main{flex:1}
.guide-figure svg[data-diagram]{display:block;width:100%;height:auto}
.guide-figure svg[data-diagram] text{font-family:system-ui,-apple-system,Arial,sans-serif;fill:var(--text-ink)}
.guide-figure svg[data-diagram] text.muted{fill:var(--text-muted)}
.guide-figure svg[data-diagram] text[y='40']{fill:#fff;font-size:22px;font-weight:600}
@media(max-width:599px){body :is(.nav-end .nav-download,.shared-end .shared-download){display:none}body :is(.nav-end,.shared-end){gap:12px}}
@media(max-width:599px){body .shared-header .shared-end .shared-download,body .site-header .nav-end .nav-download{display:none}}
body.site-inner:not(.ping-login):not(.ping-downloads){--bg:var(--surface-content);background:var(--surface-content)}
.product-slogan>span{display:block;white-space:nowrap}
body .contents-links a:hover:not([aria-current]),body .shared-header a:hover:not([aria-current]):not(.shared-download){color:inherit;text-decoration:underline;text-underline-offset:4px}
body.site-inner:not(.ping-login):not(.ping-downloads) .wallet-panel{background:var(--surface-content)}
body.site-inner:not(.ping-login):not(.ping-downloads) .text-button{color:inherit}
body .login-panel .notice{background:var(--surface-content)}
body.site-inner .panel input{background:var(--surface-content);border-color:var(--border-soft)}

/* Round two: navigation links are not primary CTAs. */
.download-secondary{color:inherit;text-decoration:underline;text-underline-offset:4px;font-size:14px}
body.ping-downloads .shared-header .shared-download{background:transparent;border-color:#697177;color:#d9dfe2}
body.ping-downloads .shared-header .shared-download:hover{background:transparent;color:#fff}
.agent-size-probe{position:absolute!important;visibility:hidden!important;pointer-events:none!important;left:0;top:0}

#agent-scenario{flex:none;overflow:auto;scrollbar-gutter:stable}

/* Account basics: one reading column, secondary invitations and session actions. */
.account-basic{max-width:820px;margin:0 auto 64px}.account-basic .panel{padding:28px;margin-bottom:20px}.account-basic h2{font-size:24px}.account-basic .session-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid #d7dcdc}.account-basic .session-row:last-child{border-bottom:0}.account-basic .session-row p{margin:4px 0}.account-basic .session-row span,.account-basic .fine{font-size:13px;color:#636c70}.account-basic .session-row>div>span{display:block;margin-top:6px}.account-basic .current-device{border:1px solid #bbc3c6;border-radius:999px;padding:5px 12px;white-space:nowrap}.account-basic #account-id{overflow-wrap:anywhere}.account-basic #profile-form{max-width:440px}.account-exit{display:flex;align-items:center;gap:16px;padding:8px 0 0}.account-exit p{margin:0;color:#687176;font-size:13px}.account-basic .form-status{margin-left:14px;font-size:13px;color:#636c70}.account-basic [aria-labelledby="referrals-title"]{background:transparent}.account-basic #referral-share input{width:100%;min-width:0}.account-basic .session-row button{white-space:nowrap}@media(max-width:600px){.account-basic .panel{padding:20px}.account-basic .session-row{gap:12px}.account-basic h2{font-size:22px}}

body:has(.account-basic) .page-head{max-width:820px;margin-left:auto;margin-right:auto}body:has(.account-basic) .shared-end:has(#nav-session:not([hidden])) .shared-signin{display:none}.account-basic #profile-form .button{background:var(--brand-accent);border-color:var(--brand-accent);color:#111416}

body:has(.account-basic) #nav-session #logout{display:none}

/* Account refinement: a compact profile and readable activity list, within the existing brand. */
body:has(.account-basic) .page-head{max-width:1040px;padding:56px 0 32px;margin-bottom:0}
body:has(.account-basic) .page-head h1{font-size:clamp(36px,4vw,52px);letter-spacing:-.045em;line-height:1.12}
body:has(.account-basic) .page-head p{font-size:16px;margin:14px 0 0;color:#747b7d}
.account-basic{max-width:1040px;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr);gap:22px;align-items:stretch;margin-bottom:72px}
.account-basic[hidden]{display:none}
.account-basic .panel{margin:0;border:1px solid #e1e4e3;border-radius:20px;padding:30px;background:#fff;box-shadow:0 3px 5px #11161902,0 14px 35px -24px #11161922;min-width:0}
.account-basic h2{font-size:20px;letter-spacing:-.025em;line-height:1.3;margin:0 0 16px;font-weight:650}
.account-basic .muted{font-size:13px;line-height:1.65;color:#747b7d}
.account-section-heading{display:flex;align-items:center;gap:16px;margin-bottom:32px}
.account-section-heading h2{margin:0}
.account-avatar{width:56px;height:56px;border:1px solid #e1e4e3;border-radius:18px;background:linear-gradient(145deg,#fff,#eeefed);display:grid;place-items:center;color:#333b3e;box-shadow:inset 0 1px 0 #fff}
.account-avatar svg{width:30px;height:30px}
.account-basic .account-profile label{font-size:12px;letter-spacing:.015em;font-weight:500;color:#798082;margin:0}
.account-basic #account-email{font-size:15px;color:#252c2f;margin:8px 0 26px;overflow-wrap:anywhere}
.account-basic #profile-form{max-width:none}
body .account-basic #display-name{width:100%;height:48px;background:#f7f8f6;border:1px solid #e0e4e1;border-radius:10px;padding:12px 14px;margin-top:9px;font-size:15px;transition:border-color .18s,box-shadow .18s;box-sizing:border-box}
body .account-basic #display-name:focus{outline:none;border-color:#8b969b;box-shadow:0 0 0 3px #11161909}
.account-basic #profile-form .button{margin-top:20px;min-height:40px;padding:10px 20px;font-size:13px;transition:filter .18s,transform .18s}
.account-basic #profile-form .button:hover{filter:brightness(.96);transform:translateY(-1px)}
.account-basic .form-status{display:block;margin:12px 0 0;font-size:12px}
.account-basic .form-status:empty{display:none}
.account-basic .account-profile>.fine{border-top:1px solid #eceeed;margin:30px 0 0;padding-top:18px;font-size:11px;color:#919799;line-height:1.7}
.account-basic .account-activity>h2{margin-bottom:10px}
.account-basic .account-activity>.muted{margin:0 0 18px;max-width:45ch}
.account-basic .session-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:14px;padding:19px 0;border:0;border-top:1px solid #eceeed;box-shadow:none;background:transparent;min-height:80px;box-sizing:border-box}
.account-basic .session-row::before{content:'';width:38px;height:38px;border-radius:11px;background-color:#f4f5f3;background-position:center;background-repeat:no-repeat;background-size:20px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2370787c' stroke-width='1.4'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9h18M7 6.5h1M10 6.5h1'/%3E%3C/svg%3E")}
.account-basic .session-row strong{font-size:14px;font-weight:600;color:#242c2e}
.account-basic .session-row>div>span{font-size:11px;line-height:1.5;color:#8a9295;margin-top:6px}
.account-basic .session-row .current-device{border:0;background:#edf0ec;color:#59685b;font-size:11px;padding:5px 10px;font-weight:500}
.account-basic .session-row button{font-size:12px;color:#737d81!important;text-decoration:none;border:1px solid transparent;padding:7px 10px;border-radius:8px;transition:background .18s}
.account-basic .session-row button:hover{background:#f1f3f0;color:#242c2e!important;border-color:#e1e4e3}
.account-basic #sessions-message:empty{display:none}
.account-basic .account-invite{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:32px;align-items:center;padding:28px 32px;background:linear-gradient(110deg,#fff,#f4f5f2);box-shadow:none}
.account-basic .account-invite h2{margin:0 0 8px;grid-column:1;grid-row:1}
.account-basic .account-invite>.muted{grid-column:1;margin:0}
.account-basic #create-referral-code{grid-column:2;grid-row:1/3;border-color:#ced4d1;min-height:42px;font-size:13px;background:#fff;padding:10px 18px}
.account-basic #referral-total{grid-column:1/-1;font-size:11px;color:#8a9295;margin:16px 0 0}
.account-basic #referral-share{grid-column:1/-1;display:grid;grid-template-columns:1fr 2fr;gap:10px 16px;margin-top:24px;border-top:1px solid #e2e6e1;padding-top:20px}
.account-basic #referral-share[hidden]{display:none}
.account-basic #referral-share label{font-size:12px;margin:0}
.account-basic #referral-share label[for='my-referral-code']{grid-column:1;grid-row:1}
.account-basic #referral-share label[for='my-referral-url']{grid-column:2;grid-row:1}
.account-basic #my-referral-code{grid-column:1;grid-row:2}
.account-basic #my-referral-url{grid-column:2;grid-row:2}
.account-basic #referral-share input{border-radius:9px;margin:0;font-size:13px;padding:12px}
.account-basic #copy-referral-url{grid-column:2;justify-self:end;font-size:12px}
.account-basic #referral-table,.account-basic #referrals-message,.account-basic #more-referrals{grid-column:1/-1}
.account-basic #referrals-message:empty{display:none}
.account-basic .account-exit{grid-column:1/-1;justify-content:flex-end;padding:0 4px}
.account-basic #account-logout{font-size:12px;color:#777f82;text-decoration:none;display:flex;gap:8px;align-items:center;padding:8px}
.account-basic #account-logout::before{content:'↗';font-size:16px}
.account-basic #account-logout:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:760px){
 body:has(.account-basic) .page-head{padding:36px 0 26px}
 body:has(.account-basic) .page-head p{font-size:14px}
 .account-basic{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:44px}
 .account-basic .panel{padding:24px;border-radius:16px}
 .account-section-heading{margin-bottom:26px}
 .account-basic .account-invite{grid-template-columns:minmax(0,1fr);padding:24px}
 .account-basic #create-referral-code{grid-column:1;grid-row:auto;justify-self:start;margin-top:20px}
 .account-basic .session-row{gap:10px;grid-template-columns:32px minmax(0,1fr) auto}
 .account-basic .session-row::before{width:32px;height:32px;border-radius:9px;background-size:18px}
 .account-basic .session-row button{padding:6px}
 .account-basic #referral-share{grid-template-columns:minmax(0,1fr)}
 .account-basic #referral-share :is(label,input,button){grid-column:1!important;grid-row:auto!important}
 .account-basic #copy-referral-url{justify-self:start}
}
@media(prefers-reduced-motion:reduce){.account-basic *{transition:none!important}}

/* Signed-in identity entry, shared by desktop and mobile public navigation. */
body header #nav-session.account-navigation{position:relative;display:block;flex:none;line-height:1}
body header #nav-session.account-navigation[hidden]{display:none}
body header #account-menu-toggle{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #d1d5d6;border-radius:50%;background:#e9ecec;color:#283035;font:600 13px/1 system-ui;cursor:pointer;box-shadow:none}
body header #account-menu-toggle:hover{background:#fff}
body header #account-menu-toggle:focus-visible{outline:2px solid #fff;outline-offset:4px}
body header #account-menu{position:absolute;right:0;top:calc(100% + 16px);width:280px;max-width:calc(100vw - 32px);padding:8px;border-radius:16px;border:1px solid #dfe3e1;background:#fff;color:#222a2d;box-shadow:0 16px 50px #0003;z-index:150;text-align:left;box-sizing:border-box;line-height:1.5}
body header #account-menu[hidden]{display:none}
.account-menu-identity{padding:14px 12px 18px;margin-bottom:6px;border-bottom:1px solid #eceeed}
.account-menu-identity strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.account-menu-identity #nav-email{display:block;margin-top:5px;font-size:12px;color:#788186;overflow-wrap:anywhere;line-height:1.5}
body header #account-menu :is(a,button){display:block!important;width:100%;box-sizing:border-box;border:0;border-radius:9px;background:transparent;text-align:left;color:#333c40;padding:11px 12px;font:500 13px/1.5 system-ui;text-decoration:none;cursor:pointer;margin:0;min-height:40px}
body header #account-menu :is(a,button):hover,body header #account-menu :is(a,button):focus-visible{background:#f2f4f1;color:#111;outline:none;text-decoration:none}
body header #account-menu #logout:disabled{opacity:.5;cursor:wait}
body header #account-menu #logout-message{display:block;font-size:12px;color:#747d82;line-height:1.5;padding:0 12px;white-space:normal}
body header #account-menu #logout-message:empty{display:none}
body header:has(.account-navigation:not([hidden])) :is(.shared-signin,a[href='/login']){display:none}
@media(max-width:600px){body header #account-menu{right:-44px;width:270px}body header #account-menu :is(a,button){min-height:44px}body header #account-menu-toggle{width:32px;height:32px}}

/* Platform management is a permission-gated group within the account menu. */
body header #account-menu{max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
#account-administration{margin:6px 0;padding:8px 0;border-block:1px solid #eceeed}
.account-menu-section-label{display:block;padding:5px 12px 7px;color:#788186;font:500 11px/1.5 system-ui}

.account-basic .account-admin-section{grid-column:1/-1;padding:30px;background:#fff}
.account-admin-section>p{margin:8px 0 24px;font-size:13px;color:#788186}
.account-admin-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.account-admin-links>a{position:relative;display:block;padding:22px 40px 22px 20px;border:1px solid #e3e6e3;border-radius:14px;text-decoration:none!important;color:#242c2e;background:#fafbf9;transition:border-color .15s,background .15s}
.account-admin-links>a:hover,.account-admin-links>a:focus-visible{background:#f1f3ef;border-color:#aab3af}
.account-admin-links strong{display:block;font-size:15px;font-weight:600}
.account-admin-links span:not(.account-admin-arrow){display:block;margin-top:10px;color:#788186;font-size:12px;line-height:1.7}
.account-admin-arrow{position:absolute;right:18px;top:20px;font-size:18px}
@media(max-width:700px){.account-admin-links{grid-template-columns:1fr}.account-basic .account-admin-section{padding:24px}.account-admin-links>a{padding:18px 40px 18px 18px}}

/* Social links retain the existing icon and label alignment. */
.community-panel li>a,.home-footer-community li>a{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.community-panel li>a{width:100%;padding:4px 0}
.community-panel li>a:hover,.home-footer-community li>a:hover{text-decoration:underline;text-underline-offset:4px}

/* Compact community menu and QQ invitation. */
body .community-panel{min-width:250px;padding:10px}
body .community-panel li{padding:0}
body .community-panel li>a,body .community-panel .community-qq{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:0;border-radius:8px;background:none;color:#f4f5f5;font:500 14px/1.5 system-ui;text-align:left;text-decoration:none;cursor:pointer}
body .community-panel li>a:hover,body .community-panel .community-qq:hover{background:#ffffff0a;text-decoration:none}
.community-panel small{display:block;margin-top:3px;color:#a7afb3;font-size:12px;font-weight:400}
body .home-footer-community .community-qq{display:flex;align-items:center;gap:10px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
body #qq-community-dialog{box-sizing:border-box;width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:36px 30px 22px;border:1px solid #dfe3e2;border-radius:24px;background:#fafbf9;color:#202628;text-align:center;box-shadow:0 24px 90px #0004}
#qq-community-dialog::backdrop{background:#080d11aa;backdrop-filter:blur(5px)}
#qq-community-dialog .qq-close{position:absolute;right:17px;top:14px;border:0;background:none;color:#697277;font-size:12px;padding:8px;cursor:pointer}
.qq-dialog-icon{display:flex;justify-content:center;margin-bottom:18px}.qq-dialog-icon img{width:28px;height:28px}
body #qq-community-dialog h2{font-size:25px;letter-spacing:-.03em;line-height:1.35;margin:0 0 10px}
body #qq-community-dialog p{font-size:13px;line-height:1.7;color:#737c80;margin:0}
#qq-community-dialog .qq-group-qr{display:block;width:200px;height:200px;padding:8px;background:#fff;border:1px solid #e4e7e5;border-radius:16px;margin:24px auto 10px;box-sizing:content-box}
#qq-community-dialog .qq-group-number{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;margin:22px 0 14px;border:1px solid #e0e4e2;border-radius:12px;background:white;font:500 16px/1.5 system-ui;letter-spacing:.04em}
#qq-community-dialog .qq-copy{border:0;background:none;color:#536067;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
body #qq-community-dialog .qq-join{display:block;border-radius:999px;padding:13px 20px;background:var(--brand-accent,#ff6b00);color:#141819;font-size:14px;font-weight:650;text-decoration:none}
#qq-community-dialog .qq-copy-status{min-height:22px;margin-top:10px}
@media(max-width:600px){body #qq-community-dialog{padding:32px 22px 18px}body #qq-community-dialog h2{font-size:23px}body .community-panel{min-width:0;width:100%;box-sizing:border-box}}
