
:root{--site-accent:#27654d;--site-soft:#e7efe8;--site-bg:#f5f6f2;--site-card:#fff;--site-text:#1b312a;--site-muted:#66776c;--site-line:#dce3dc}
:root[data-ui-color=ocean]{--site-accent:#22647d;--site-soft:#e5f0f4}
:root[data-ui-color=amber]{--site-accent:#936322;--site-soft:#f5eddf}
:root[data-ui-color=rose]{--site-accent:#954f64;--site-soft:#f5e8ec}
:root:not([data-theme=light]){--site-bg:#131c18;--site-card:#1b2721;--site-text:#e8eee8;--site-muted:#a3b3a8;--site-line:#34483b}
html,body{background:var(--site-bg);color:var(--site-text)}
body{--bg:var(--site-bg);--panel:var(--site-card);--text:var(--site-text);--muted:var(--site-muted);--line:var(--site-line);--accent:var(--site-accent);--gold:var(--site-accent);--surface:var(--site-card);--text-primary:var(--site-text);--text-secondary:var(--site-muted);font-family:StudioSans,"Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65}
button,input,select,textarea{font:inherit}
.app-shell .side-brand,.app-shell .wallet-box,.app-shell .sidebar,.app-shell .global-topbar{background:var(--site-card);color:var(--site-text);border-color:var(--site-line);box-shadow:none}
.app-shell .sidebar{padding:24px 20px}
.app-shell .side-nav-main{gap:3px}
.app-shell .nav-item{font-size:13px;padding:9px 12px;border-radius:8px}
.app-shell .nav-item:hover,.app-shell .nav-item.active{background:var(--site-soft);color:var(--site-accent)}
.site-billing-records summary{cursor:pointer}
.site-billing-records>a{margin-left:12px}
.app-shell .view-head h1{font-size:24px;letter-spacing:0}
.app-shell .card{border-radius:12px;padding:20px}
.app-shell .studio-link{background:var(--site-accent);color:var(--site-on-accent,#ffffff);border:0;border-radius:9px}
.card,.auth-card,.panel,.public-nav,.topbar{background:var(--site-card);border-color:var(--site-line);box-shadow:none}
.btn-primary,button.primary{background:var(--site-accent);border-color:var(--site-accent);color:var(--site-on-accent,#ffffff)}
input,select,textarea{background:var(--site-bg);color:var(--site-text);border-color:var(--site-line);border-radius:8px}
h1{font-size:28px;line-height:1.4}h2{font-size:20px;line-height:1.5}h3{font-size:16px}
#auth-view .auth-intro,#auth-view .public-sections,#auth-view .public-footer,#auth-view .public-login-link{display:none!important}
#auth-view .auth-wrap{display:flex;justify-content:center;min-height:calc(100vh - 100px);padding:54px 20px;align-items:center;max-width:none}
#auth-view .auth-card{width:min(100%,470px);margin:0;padding:32px;border:1px solid var(--site-line);border-radius:18px}
#auth-view .public-nav-inner{max-width:1400px;margin:auto;padding:20px 32px}
#auth-view .wordmark{color:var(--site-text)}#auth-view .wordmark small{color:var(--site-muted)}
#auth-view .public-links{gap:22px;font-size:13px}
#auth-view .auth-card h2{margin:0 0 6px}
#auth-view .auth-tabs{background:var(--site-bg)}
#auth-view .auth-tabs .active{background:var(--site-soft);color:var(--site-accent)}
.site-info-card{padding:0;width:min(900px,94vw);max-height:88vh;border:1px solid var(--site-line);border-radius:16px;background:var(--site-card);color:var(--site-text)}
.site-info-card>header{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;border-bottom:1px solid var(--site-line)}
.site-info-card iframe{border:0;width:100%;height:70vh;background:var(--site-bg)}
.site-info-card>p{padding:22px}
.site-info-card::backdrop{background:#07150b80}
@media(max-width:640px){#auth-view .public-nav-inner{padding:18px;flex-wrap:wrap;gap:18px}#auth-view .public-links{gap:14px;flex-wrap:wrap}#auth-view .wordmark small{font-size:11px}#auth-view .auth-wrap{padding:25px 15px}#auth-view .auth-card{padding:24px}}

.site-theme-editor{border:1px solid var(--site-line);border-radius:12px;padding:18px}
#site-theme-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}#site-theme-fields fieldset{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px;border:1px solid var(--site-line)}
#site-theme-fields label{font-size:12px}#site-theme-fields input[type=color]{display:block;width:100%;height:34px;padding:3px;border:1px solid var(--site-line)}
#site-theme-swatches{display:flex;gap:9px;flex-wrap:wrap;padding:16px 0}.site-theme-swatch{width:30px;height:30px;border:2px solid var(--site-line);border-radius:50%}
@media(max-width:640px){#site-theme-fields{grid-template-columns:1fr}}

.global-account{position:relative}.global-account nav{margin-top:0!important;top:100%}.global-account nav::before{content:"";height:7px;position:absolute;top:-7px;left:0;right:0}

:root{--site-soft:color-mix(in srgb,var(--site-accent) 12%,var(--site-card))}

.app-shell .nav-item.active{background:var(--site-accent);color:var(--site-on-accent,#ffffff)}

/* Sign-in and public desktop downloads share the account palette and type scale. */
#auth-view .remember-login{display:flex;align-items:center;gap:9px;line-height:1.4;width:fit-content;cursor:pointer}
#auth-view .remember-login[hidden]{display:none}
#auth-view .remember-login input{width:16px;height:16px;margin:0;accent-color:var(--site-accent)}
#auth-view .desktop-collector-link{display:flex;justify-content:center;margin-top:12px;text-align:center;text-decoration:none}
#auth-view.web-login .auth-wrap{
  display:grid;width:min(100%,1090px);grid-template-columns:repeat(2,minmax(0,470px));
  gap:clamp(34px,6.1vw,88px);align-items:stretch;align-content:center;margin-inline:auto
}
#auth-view.web-login .auth-card{grid-column:2;grid-row:1;justify-self:stretch}
#auth-view .login-downloads{
  grid-column:1;grid-row:1;display:grid;grid-template-rows:repeat(3,minmax(120px,1fr));
  gap:16px;min-width:0;scroll-margin-top:114px
}
#auth-view .login-download-button{
  display:grid;grid-template-columns:46px minmax(0,1fr) 22px;align-items:center;
  align-self:center;justify-self:center;width:calc(100% - 40px);min-height:100px;
  gap:clamp(14px,2.5vw,24px);padding:16px 18px;
  min-width:0;border:1px solid var(--site-line);border-radius:14px;background:var(--site-card);
  color:var(--site-text);text-decoration:none;font-size:16px;font-weight:600;line-height:1.35;
  transition:border-color .16s ease,background-color .16s ease
}
#auth-view .login-download-button:hover{
  border-color:var(--site-accent);
  background:color-mix(in srgb,var(--site-card) 91%,var(--site-accent))
}
#auth-view .login-download-logo,#auth-view .login-download-arrow{display:grid;place-items:center}
#auth-view .login-download-logo svg{width:46px;height:46px}
#auth-view .login-download-arrow{color:var(--site-muted)}
#auth-view .login-download-arrow svg{width:20px;height:20px}
#auth-view .login-downloads:target{outline:2px solid var(--site-accent);outline-offset:4px;border-radius:19px}
#auth-view :is(.remember-login input,.login-download-button,.desktop-collector-link,.public-download-link):focus-visible{
  outline:2px solid var(--site-accent);outline-offset:3px
}
@media(max-width:850px){
  #auth-view.web-login .auth-wrap{grid-template-columns:minmax(0,470px);gap:24px;align-content:start}
  #auth-view.web-login .auth-card,#auth-view .login-downloads{grid-column:1;grid-row:auto}
  #auth-view .login-downloads{grid-template-rows:repeat(3,minmax(82px,auto));gap:10px}
  #auth-view .login-download-button{grid-template-columns:34px minmax(0,1fr) 21px;width:100%;min-height:82px;padding:15px 22px}
  #auth-view .login-download-logo svg{width:34px;height:34px}
}
@media(prefers-reduced-motion:reduce){#auth-view .login-download-button{transition:none}}
