/* Load last. Opt in on BODY only. No default, no management theme, no remote assets.
   Role scale and palette mirror the final token block in homepage-spatial-preview.css. */
body:is([data-zjt-surface="gate"],[data-zjt-surface="manual"],[data-zjt-surface="intake"],[data-zjt-surface="catalog"],[data-zjt-surface="corporate"],[data-zjt-surface="terminal"],[data-zjt-surface="studio"],[data-zjt-surface="studio-entry"],[data-zjt-surface="account"],[data-zjt-surface="credits"]){
  --z-ink:#162431;--z-muted:#485866;--z-paper:#f3f5f5;--z-panel:#fff;--z-edge:#c5cdd0;
  --z-dark:#0b1119;--z-gold:#d7bd85;--z-link:#224f65;--z-focus:#995b13;
  --z-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  --z-title:2.125rem;--z-section:1.625rem;--z-copy:.9375rem;--z-nav:.8125rem;
  font-family:var(--z-font);
}
@media(max-width:670px){
  body:is([data-zjt-surface="gate"],[data-zjt-surface="manual"],[data-zjt-surface="intake"],[data-zjt-surface="catalog"],[data-zjt-surface="corporate"],[data-zjt-surface="terminal"],[data-zjt-surface="studio"],[data-zjt-surface="studio-entry"],[data-zjt-surface="account"],[data-zjt-surface="credits"]){
    --z-title:1.625rem;--z-section:1.375rem;--z-copy:.875rem;
  }
}
body:is([data-zjt-surface="gate"],[data-zjt-surface="intake"],[data-zjt-surface="manual"],[data-zjt-surface="catalog"],[data-zjt-surface="credits"]){
  background-color:var(--z-paper);color:var(--z-ink);font-size:var(--z-copy);line-height:1.65;
}
body[data-zjt-surface="corporate"],
body[data-zjt-surface="corporate"] :is(main.company-page,main.page-main),
body[data-zjt-surface="studio"] .stage-hero-copy p{
  font-family:var(--z-font);font-size:var(--z-copy);
}
body[data-zjt-surface="account"]{font-size:var(--z-copy)}
/* Protected workspace and public admin-login: scope even the tokens to chrome,
   never the editor, chart, auth/ops forms, or main content. */
body[data-zjt-surface="studio-workspace"] :is(.app-header,.app-sidebar),
body[data-zjt-surface="brand-shell"]>.site-header{
  --z-dark:#0b1119;--z-paper:#f3f5f5;--z-ink:#162431;--z-edge:#c5cdd0;--z-nav:.8125rem;
  --z-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  font-family:var(--z-font);
}
body[data-zjt-surface="brand-shell"]>.site-header{background:var(--z-paper);color:var(--z-ink);border-color:var(--z-edge)}
body[data-zjt-surface="brand-shell"]>.site-header .utility-bar{background:var(--z-dark);color:#edf0f2}
body[data-zjt-surface="brand-shell"]>.site-header :is(.site-home-return,.site-nav>a){font-size:var(--z-nav)}
body[data-zjt-surface="account"]>.site-header,
body[data-zjt-surface="studio-entry"]>.site-header,
body[data-zjt-surface="studio-workspace"] .app-shell>.app-header{
  background:var(--z-paper);color:var(--z-ink);border-color:var(--z-edge);
}
body[data-zjt-surface="account"] .site-header .utility-bar{background:var(--z-dark);color:#edf0f2}
body[data-zjt-surface="account"] .utility-bar :is(p,a){color:inherit}
body[data-zjt-surface="account"] .site-return-shell .site-home-return,
body[data-zjt-surface="studio-entry"]>.site-header nav a,
body[data-zjt-surface="studio-workspace"] .app-sidebar .nav-item{font-family:var(--z-font);font-size:var(--z-nav)}
body[data-zjt-surface="studio-workspace"] .app-header .brand{color:var(--z-ink)}
body[data-zjt-surface="account"] :is(.auth-main:not(.admin-auth-main) .auth-intro,.dashboard-main .dashboard-hero,.dashboard-main .dashboard-heading) h1,
body[data-zjt-surface="studio-entry"] #private-beta h1{
  font:650 var(--z-title)/1.22 var(--z-font);letter-spacing:-.02em;text-wrap:balance;
}
body[data-zjt-surface="account"] :is(.auth-main:not(.admin-auth-main) .login-card-head,.dashboard-main .dashboard-card) h2,
body[data-zjt-surface="studio-entry"] .gate-dialog h2{
  font:630 var(--z-section)/1.35 var(--z-font);letter-spacing:-.012em;
}
body[data-zjt-surface="account"] :is(.auth-main:not(.admin-auth-main) .auth-intro,.dashboard-hero,.dashboard-heading,.login-card-head) p:not(.overline),
body[data-zjt-surface="studio-entry"] #private-beta>p:not(.eyebrow){
  font-size:var(--z-copy);line-height:1.72;max-inline-size:74ch;
}
body[data-zjt-surface="account"] :is(.login-form,.profile-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select),
body[data-zjt-surface="studio-entry"] .gate-dialog input:not([type=hidden]){
  font-family:var(--z-font);font-size:max(1rem,16px);
}
body:is([data-zjt-surface="gate"],[data-zjt-surface="manual"],[data-zjt-surface="intake"],[data-zjt-surface="catalog"],[data-zjt-surface="credits"]) h1,
body[data-zjt-surface="corporate"] :is(.company-hero,.page-hero) h1,
body[data-zjt-surface="studio"] .stage-hero-copy h1,
body[data-zjt-surface="terminal"] .qa-terminal .qa-title{
  font-family:var(--z-font);font-size:var(--z-title);font-weight:650;
  line-height:1.22;letter-spacing:-.02em;text-wrap:balance;overflow-wrap:break-word;
}
body:is([data-zjt-surface="manual"],[data-zjt-surface="intake"],[data-zjt-surface="catalog"],[data-zjt-surface="credits"]) h2,
body[data-zjt-surface="corporate"] :is(.company-section,.legal-section,.section-head,.section-heading,.page-section) h2{
  font-family:var(--z-font);font-size:var(--z-section);font-weight:630;
  line-height:1.35;letter-spacing:-.012em;text-wrap:balance;overflow-wrap:break-word;
}
/* Actual product card titles and dashboard metric labels are not section headings. */
body[data-zjt-surface="corporate"] :is(.hero-lead,.page-hero-copy>p,.legal-section p,.company-section p,.section-heading p,.brain-intro p),
body[data-zjt-surface="gate"] main p,
body[data-zjt-surface="intake"] :is(.intro p,.block p,form .field,form .consent),
body[data-zjt-surface="manual"] :is(.manual-header>p,article p,.chapter p,.chapter li),
body[data-zjt-surface="catalog"] :is(.page-heading p,article.task p),
body[data-zjt-surface="credits"] p{
  font-size:var(--z-copy);line-height:1.72;
}
body[data-zjt-surface="manual"] :is(.chapter p,.manual-header>p,article p),
body[data-zjt-surface="corporate"] :is(.legal-section p,.company-section p,.page-hero-copy>p),
body[data-zjt-surface="credits"] p{
  max-inline-size:74ch;
}
/* A light, legible corporate navigation rail; keep the existing mobile menu,
   emblem, imagery, legal states and app layout completely intact. */
body:is([data-zjt-surface="corporate"],[data-zjt-surface="terminal"])>.site-header,
body[data-zjt-surface="studio"]>header.site-return-shell{
  background:var(--z-paper);color:var(--z-ink);border-color:var(--z-edge);
}
body:is([data-zjt-surface="corporate"],[data-zjt-surface="terminal"]) .site-header .utility-bar{
  background:var(--z-dark);color:#eaedf0;
}
body:is([data-zjt-surface="corporate"],[data-zjt-surface="terminal"]) .utility-bar :is(p,a){color:inherit}
body:is([data-zjt-surface="corporate"],[data-zjt-surface="terminal"]) .site-return-shell .brand-copy strong{color:var(--z-ink)}
body:is([data-zjt-surface="corporate"],[data-zjt-surface="terminal"],[data-zjt-surface="studio"]) .site-return-shell .site-home-return,
body[data-zjt-surface="studio"]>.site-return-shell .site-home-return{
  font:600 var(--z-nav)/1.35 var(--z-font);background:#fff;border-color:var(--z-edge);color:var(--z-ink);
}
body:is([data-zjt-surface="corporate"],[data-zjt-surface="terminal"]) .site-return-shell .site-nav>a:not(.nav-login):not(.nav-contact),
body[data-zjt-surface="studio"]>.site-return-shell nav a{font-size:var(--z-nav)}
body[data-zjt-surface="corporate"] .site-nav .nav-contact,
body[data-zjt-surface="terminal"] .site-nav .nav-contact,
body[data-zjt-surface="corporate"] .page-hero .button-gold{
  background:var(--z-gold);border-color:var(--z-gold);color:var(--z-dark);
}
body[data-zjt-surface="corporate"] .site-footer,
body[data-zjt-surface="terminal"] .site-footer{background-color:var(--z-dark)}
/* Access pages: scope substantive controls to the gate form, not the floating language menu. */
body[data-zjt-surface="gate"]{background:var(--z-paper)}
body[data-zjt-surface="gate"] main{
  box-sizing:border-box;background:var(--z-panel);color:var(--z-ink);border:1px solid var(--z-edge);
  border-radius:10px;box-shadow:0 12px 30px rgb(11 17 25 / .06);
}
body[data-zjt-surface="gate"] main h1{color:var(--z-ink)}
body[data-zjt-surface="gate"] main p:not([role="alert"]):not(.error):not(.message):not(.notice){color:var(--z-muted)}
body[data-zjt-surface="gate"] main form label{font-family:var(--z-font);color:var(--z-ink)}
body[data-zjt-surface="gate"] main form button,
body[data-zjt-surface="intake"] #intake button.primary{
  font:600 var(--z-copy)/1.45 var(--z-font);background:var(--z-dark);color:#fff;
  min-height:44px;border:1px solid var(--z-dark);border-radius:5px;
}
body[data-zjt-surface="gate"] main a,body[data-zjt-surface="credits"] a{color:var(--z-link);text-underline-offset:.18em}
body[data-zjt-surface="intake"]>header,body[data-zjt-surface="manual"]>header.site-header,
body[data-zjt-surface="catalog"]>header.brand{
  background:var(--z-dark);color:#f5f6f6;border-color:#34434d;
}
body[data-zjt-surface="intake"]>header :is(.brand,.back),
body[data-zjt-surface="manual"]>header.site-header :is(.brand,.back-home),
body[data-zjt-surface="catalog"]>header.brand a{color:#f5f6f6}
body[data-zjt-surface="manual"]>header.site-header .site-language,
body[data-zjt-surface="catalog"]>header.brand .site-language,
body[data-zjt-surface="manual"]>header.site-header .site-language:hover,
body[data-zjt-surface="catalog"]>header.brand .site-language:hover{color:#edf0f2}
body[data-zjt-surface="manual"]>header.site-header .site-language::before,
body[data-zjt-surface="catalog"]>header.brand .site-language::before{border-color:#8e9da7}
body[data-zjt-surface="intake"] .bar .back{font-size:var(--z-nav)}
body[data-zjt-surface="intake"] #intake{background:var(--z-panel);border-color:var(--z-edge)}
body[data-zjt-surface="intake"] #intake button.secondary{
  color:var(--z-link);background:#fff;border:1px solid #91a1a7;border-radius:5px;min-height:42px;
}
body[data-zjt-surface="gate"] form input[type="password"],
body[data-zjt-surface="intake"] #intake :is(input:not([type]),input[type="text"],input[type="tel"],input[type="email"],textarea,select),
body[data-zjt-surface="catalog"] :is(#task-search,#task-category){
  font-family:var(--z-font);font-size:1rem;color:var(--z-ink);background-color:#fff;
  border:1px solid #83949d;border-radius:5px;min-height:44px;
}
body:is([data-zjt-surface="gate"],[data-zjt-surface="intake"],[data-zjt-surface="catalog"]) :is(input,textarea)::placeholder{
  color:#596b76;opacity:1;
}
body[data-zjt-surface="manual"] .manual-header,
body[data-zjt-surface="catalog"] .page-heading{border-color:var(--z-edge)}
body[data-zjt-surface="manual"] .contents a,
body[data-zjt-surface="manual"] .breadcrumbs a{color:var(--z-link)}
body[data-zjt-surface="credits"]{background:var(--z-paper);color:var(--z-ink)}
body[data-zjt-surface="credits"] article{border-color:var(--z-edge)}
body[data-zjt-surface="credits"] article h2{margin-block:1em .3em}
body:is([data-zjt-surface="gate"],[data-zjt-surface="manual"],[data-zjt-surface="intake"],[data-zjt-surface="catalog"],[data-zjt-surface="corporate"],[data-zjt-surface="terminal"],[data-zjt-surface="studio"],[data-zjt-surface="studio-entry"],[data-zjt-surface="account"],[data-zjt-surface="credits"]) :focus-visible{
  outline:2px solid var(--z-focus);outline-offset:3px;box-shadow:0 0 0 2px white;
}
@media(hover:hover){
  body[data-zjt-surface="gate"] main form button:hover:not(:disabled),
  body[data-zjt-surface="intake"] #intake button.primary:hover:not(:disabled){background:#253a48}
  body[data-zjt-surface="intake"] #intake button.secondary:hover:not(:disabled){background:#edf2f3}
}
@media(max-width:670px){
  /* iOS zooms focused editable fields below 16px; leave input type/appearance alone. */
  body:is([data-zjt-surface="gate"],[data-zjt-surface="catalog"],[data-zjt-surface="manual"],[data-zjt-surface="intake"]) :is(select,textarea,input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"]){font-size:max(16px,1rem)}
  body[data-zjt-surface="gate"] main{padding:clamp(19px,5vw,28px)}
}
@media(forced-colors:active){
  body:is([data-zjt-surface="gate"],[data-zjt-surface="manual"],[data-zjt-surface="intake"],[data-zjt-surface="catalog"],[data-zjt-surface="corporate"],[data-zjt-surface="terminal"],[data-zjt-surface="studio"],[data-zjt-surface="studio-entry"],[data-zjt-surface="account"],[data-zjt-surface="credits"]) :focus-visible{outline-color:Highlight;box-shadow:none}
}
