/* Account workspace shares the public site's palette and control geometry. */
:root{--bg:#fff;--surface:#fff;--surface-2:#fcfdff;--surface-3:#e3eaee;--text:#28334b;--text-2:#5f687e;--text-3:#687e89;--line:#d6e0e5;--line-soft:#e0e7eb;--accent:#475cca;--accent-hover:#384bad;--accent-soft:#e9edff;--r-card:16px;--r-inner:10px;--r-btn:8px;--shadow:0 2px 6px #24343b06;--shadow-lg:0 12px 40px #24343b14}
body{font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif}
button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}input{min-width:0}
.view,.subview{animation:none}.topbar{background:#f3f5fc;color:var(--text);backdrop-filter:none;border-bottom:1px solid var(--line);min-height:76px;height:auto;padding:14px 32px}.topbar .brand{color:var(--text);font-size:21px;white-space:nowrap;letter-spacing:-.6px}.tabs{gap:8px}.tab{border-radius:8px;padding:9px 14px}.tab.active{background:#fff;color:#28334b;box-shadow:none}.tab.active::after{display:none}.email-chip{color:var(--text-2);border-color:var(--line);border-radius:6px;background:transparent;max-width:280px;min-width:0}.email-chip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logout-btn,.login-btn{border-radius:8px}.layout{max-width:1248px}.sidebar{top:76px;width:200px;padding:32px 16px}.side-label{letter-spacing:0;color:var(--text-2);font-size:12px}.side-item{border-radius:8px}.side-item:hover{transform:none;box-shadow:none;background:var(--surface-3)}.side-item.active{box-shadow:none;background:var(--accent-soft)}.side-item.active::before{display:none}.main{padding:36px 32px 64px}.page-title{font-size:28px;font-weight:650;letter-spacing:-.5px}.page-head{margin-bottom:28px}.grid{gap:24px}.card{background:#fcfdff;border-color:var(--line);border-radius:10px;box-shadow:none;padding:26px;transition:none}.card:hover{transform:none;box-shadow:none}.product-name{font-size:21px;font-weight:650}.desc{font-size:14px;line-height:1.85}.preview-slot{border:1px solid var(--line);background:var(--surface-3)}#productGrid>.card:not(.locked) .preview-slot{height:220px;min-height:220px;padding:18px}#productGrid>.card:not(.locked) .preview-slot.has-img{background:var(--surface-3)}.btn,.btn-primary-soft,.btn-primary{box-shadow:none;transition:background .15s}.btn:hover,.btn-primary-soft:hover,.btn-primary:hover,.btn-ghost:hover,.btn-ghost2:hover,.btn-danger-soft:hover{transform:none;box-shadow:none}.btn-sm,.tab-mini{border-radius:8px}.tab-mini{background:transparent;color:var(--text-2)}.badge.ok{color:#226646;background:#e2f3ea}.badge.off{color:var(--text-2)}.auth-card{border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg);max-width:880px;grid-template-columns:340px 1fr}.auth-side{background:#f3f5fc;color:var(--text);padding:40px 32px}.auth-side::before,.auth-side::after{display:none}.auth-side h2{font-size:28px;font-weight:650;margin-top:52px}.auth-side .feature .dot{background:transparent;box-shadow:none}.auth-form{padding:40px}.auth-form h1{font-size:28px;font-weight:650}.auth-form .sub{line-height:1.8;margin-top:10px;margin-bottom:28px}.input-wrap{height:48px;border-width:1px;background:var(--surface);border-color:#b9cbd3}.input-wrap:focus-within{box-shadow:0 0 0 3px var(--accent-soft)}.captcha-text{letter-spacing:0;color:var(--text-2)}.captcha-slider{box-shadow:none}.redeem-card{box-shadow:none;border-color:var(--line);padding:32px}.redeem-card h2,.redeem-card .sub{text-align:left}.modal{border:1px solid var(--line);border-radius:16px}.toast{border-radius:8px;max-width:calc(100% - 32px);text-align:center}.btn-lg{height:48px}
@media(max-width:1100px){.topbar{gap:12px;padding:12px 20px;flex-wrap:wrap}.tabs{order:3;width:100%;overflow-x:auto}.tab{flex-shrink:0;white-space:nowrap}.user{max-width:100%}}
@media(max-width:860px){.topbar{padding:14px 16px}.topbar>.user{width:auto;margin-left:auto;flex-wrap:wrap}.topbar .brand{font-size:19px}.email-chip{max-width:210px;padding:6px 8px}.layout{flex-direction:column}.sidebar{width:100%;padding:18px 16px 0;position:static}.main{padding:24px 16px 64px;width:100%}.auth-card{grid-template-columns:1fr}.auth-form{padding:30px 24px}.auth-side{display:none}.card{padding:22px}.grid{grid-template-columns:1fr}.page-title{font-size:25px}}
@media(max-width:520px){.topbar>.user{width:100%;margin:0}.email-chip{max-width:calc(100% - 85px)}.auth-wrap{padding:20px 16px}.auth-form{padding:28px 22px}.product-name{font-size:20px}.redeem-card{padding:24px}.card{padding:22px}.btn-row{gap:10px}.btn-row>.btn{flex:1;white-space:nowrap}.tab{padding:9px 12px;font-size:13px}#productGrid>.card:not(.locked) .preview-slot{height:190px;min-height:190px;padding:14px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:860px){.auth-side{display:flex;padding:22px 24px 0;background:var(--surface)}.auth-side>h2,.auth-side>p,.auth-side>.feature-list{display:none}.auth-card:has(.auth-side) .auth-form{padding-top:24px}}

/* Workspace navigation is distinct from public product presentation. */
.topbar .tab{color:var(--text-2)}.topbar .tab:hover{background:#e9edff;color:var(--accent)}.topbar .tab.active{color:#28334b;background:#fff}.topbar .logout-btn{color:var(--text-2)}.topbar .logout-btn:hover{background:#e9edff;color:var(--accent)}.topbar .email-chip:hover{color:var(--accent);border-color:#a3c0d0}.topbar .avatar{background:#e9edff;color:#28334b}.topbar .brand-mark{background:transparent}.auth-side p,.auth-side .feature{color:var(--text-2)}.auth-side .feature .dot{color:var(--accent)}.auth-side .brand-mark{background:transparent}.auth-side .brand{font-size:22px}.auth-side h2{font-size:30px}.side-item.active{background:#e9edff;color:var(--accent)}.sidebar{border-right:1px solid var(--line);align-self:stretch}.main{padding-top:40px}.preview-slot{border-radius:6px}.badge{border-radius:5px}.devices{background:white}.tab-mini{background:white}.auth-card{box-shadow:none}.auth-wrap{background:#f3f5fc}.redeem-wrap{margin-left:0}.redeem-card{border-radius:10px}.page-head{padding-bottom:20px;border-bottom:1px solid var(--line)}
@media(max-width:860px){.sidebar{border-right:0;align-self:auto}.auth-side{color:var(--text)}.auth-side .brand-mark{color:var(--accent)}.main{padding-top:24px}}

.topbar{background:#fff;border-color:#e3e6ef}.topbar .tab.active{background:#e9edff;color:#475cca}.topbar .avatar{background:#e9edff;color:#475cca}.topbar .brand-mark{color:#475cca}.side-item.active{background:#e9edff;color:#475cca}.card{border-radius:14px;background:#fff}.auth-side{background:#f3f5fc}.auth-side .brand-mark{color:#475cca}.auth-card{border-radius:18px}.page-head{border-bottom:0}.sidebar{border-right:0}.layout{background:#fff}.main{background:#fff}
/* Keep profile, admin and logout controls on the same vertical rhythm. */
.user .email-chip,.user .login-btn,.user .logout-btn{height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;line-height:1.4}
.user .email-chip{justify-content:flex-start}
