/* ALETHEIA: Atlas Terminal and Chat share one monochrome identity. */
body.atlas-entry{background:var(--ui-neutral-255,#ffffff);background-image:none}
.atlas-entry .ae-hero::before,.atlas-entry .ae-main::before,.atlas-entry .ae-shell::before{display:none}
.atlas-entry .ae-brand-mark{width:35px;height:40px;object-fit:contain}
.atlas-entry .ae-wordmark strong{font-size:17px;letter-spacing:.14em;font-weight:600}
.atlas-entry .ae-wordmark>span{font-size:8px;letter-spacing:.12em;color:var(--ui-neutral-102,#666666)}
.atlas-entry .ae-aletheia-glyph{display:block;object-fit:contain}
.atlas-entry .ae-welcome-mark{object-fit:contain;font-style:normal}
.atlas-entry .ae-physical{transition:background-color .12s,color .12s;box-shadow:none}
.atlas-entry .ae-physical:hover,.atlas-entry .ae-physical:active{transform:none}
.terminal-v2-page .terminal-home-mark.aletheia-lockup{display:flex;align-items:center;gap:10px;min-width:142px;padding-right:12px;color:var(--ui-neutral-8,#080808);text-decoration:none}
.terminal-v2-page .aletheia-lockup::before,.terminal-v2-page .aletheia-lockup::after{content:none!important;display:none!important}
.terminal-v2-page .aletheia-lockup img{width:27px;height:31px;object-fit:contain}
.terminal-v2-page .aletheia-lockup>span{font-family:"Space Grotesk",sans-serif;font-size:13px;font-weight:600;letter-spacing:.1em;color:var(--ui-neutral-8,#080808)}
@media(max-width:650px){.terminal-v2-page .terminal-home-mark.aletheia-lockup{min-width:34px;padding-right:0;gap:0}.terminal-v2-page .aletheia-lockup>span{display:none}.atlas-entry .ae-wordmark strong{font-size:14px}.atlas-entry .ae-nav{display:flex;gap:9px;font-size:9px}.atlas-entry .ae-nav>button{display:none}.atlas-entry .ae-header{gap:12px}.atlas-entry .ae-brand{margin-right:auto}}

/* New-host sign-in uses the shared appearance preference. */
html[data-theme] .yc-entry-root[data-aletheia="true"]{background:var(--ui-neutral-255,#ffffff)!important;color:var(--ui-neutral-21,#151515)!important;color-scheme:var(--ui-color-scheme,light);--scene-bg:var(--ui-neutral-255,#ffffff);--scene-bg-soft:var(--ui-neutral-255,#ffffff);--scene-panel:var(--ui-neutral-255,#ffffff);--scene-border:var(--ui-neutral-222,#dedede);--scene-muted:var(--ui-neutral-102,#666666);--scene-accent:var(--ui-neutral-17,#111111);--docta-rule:var(--ui-neutral-229,#e5e5e5);--color-page-background:var(--ui-neutral-255,#ffffff);--color-header:var(--ui-neutral-255,#ffffff);--color-text-primary:var(--ui-neutral-21,#151515);--color-text-secondary:var(--ui-neutral-102,#666666);--color-field-background:var(--ui-neutral-255,#ffffff);--color-border:var(--ui-neutral-221,#dddddd);--color-border-strong:var(--ui-neutral-204,#cccccc);--color-focus:var(--ui-neutral-85,#555555);--color-focus-ring:rgba(var(--ui-neutral-85-rgb,85,85,85),0.1333);transition:none}
html[data-theme] .yc-entry-root[data-aletheia="true"]::before,html[data-theme] .yc-entry-root[data-aletheia="true"]::after,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-auth-column::before{display:none}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-shell{display:flex;justify-content:center;min-height:calc(100dvh - 76px);background:var(--ui-neutral-255,#ffffff)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-auth-column{width:100%;max-width:490px;background:var(--ui-neutral-255,#ffffff)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-topbar{background:var(--ui-neutral-255,#ffffff)!important;color:var(--ui-neutral-17,#111111)!important;border-color:var(--ui-neutral-229,#e5e5e5)}
html[data-theme] .yc-entry-root[data-aletheia="true"] .aletheia-auth-logo{display:flex;gap:11px;align-items:center;color:var(--ui-neutral-17,#111111)!important;letter-spacing:.12em}
html[data-theme] .yc-entry-root[data-aletheia="true"] .aletheia-auth-logo::before{display:none!important}
html[data-theme] .yc-entry-root[data-aletheia="true"] .aletheia-auth-logo img{display:block;width:29px;height:33px;object-fit:contain;flex:none}
html[data-theme] .yc-entry-root[data-aletheia="true"] .aletheia-auth-logo>span{line-height:1.2}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-auth{background:var(--ui-neutral-255,#ffffff)!important;color:var(--ui-neutral-21,#151515)!important;box-shadow:none!important;backdrop-filter:none;border:0}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-auth h2,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-tab,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-field label,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-languages a,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-auth-kicker{color:var(--ui-neutral-21,#151515)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-field input{background:var(--ui-neutral-255,#ffffff)!important;color:var(--ui-neutral-21,#151515)!important;border-color:var(--ui-neutral-204,#cccccc)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-field input::placeholder{color:var(--ui-neutral-119,#777777)!important;opacity:1}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-guest,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-link-button,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-password-toggle{color:var(--ui-neutral-51,#333333)!important;background:var(--ui-neutral-255,#ffffff)!important;border-color:var(--ui-neutral-204,#cccccc)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-submit{color:var(--ui-neutral-255,#ffffff)!important;background:var(--ui-neutral-17,#111111)!important;border-color:var(--ui-neutral-17,#111111)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-submit:hover:not(:disabled){color:var(--ui-neutral-255,#ffffff)!important;background:var(--ui-neutral-51,#333333)!important;border-color:var(--ui-neutral-51,#333333)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-check,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-legal,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-auth-copy,html[data-theme] .yc-entry-root[data-aletheia="true"] .yc-entry-divider{color:var(--ui-neutral-102,#666666)!important}

/* Product-owned sign-in keeps the existing A mark and a product-specific introduction. */
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,430px);
  align-items:center;
  gap:clamp(44px,7vw,112px);
  width:min(1180px,100%);
  min-height:calc(100dvh - 68px);
  padding:40px clamp(24px,5vw,72px) 64px;
}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-story{
  display:block;
  min-height:0;
  padding:24px 0;
  border:0;
  background:none;
}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-story::before,
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-story::after,
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-eyebrow::before{display:none}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-eyebrow{margin-bottom:22px;font-size:10px;letter-spacing:.14em;color:var(--ui-neutral-102,#666666)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-title{
  max-width:13ch;
  font-size:clamp(38px,4.6vw,64px);
  line-height:1.18;
  letter-spacing:-.045em;
  font-weight:540;
  color:var(--ui-neutral-21,#151515)!important;
}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-title span{display:block;margin-top:8px;color:var(--ui-neutral-102,#666666)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-subtitle{max-width:38ch;margin-top:26px;font-size:15px;line-height:1.85;color:var(--ui-neutral-102,#666666)!important}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-auth-column{min-height:0;max-height:none;padding:20px 0;overflow:visible}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-auth{width:100%;max-width:none;padding:0}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .aletheia-auth-wordmark{display:grid;gap:4px;font-size:15px;line-height:1.2;letter-spacing:.08em}
html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .aletheia-auth-wordmark small{font-size:9px;font-weight:400;letter-spacing:.16em;color:var(--ui-neutral-102,#666666)}

/* The server marks each login document before the script runs, including its fallback. */
html[data-auth-product="atlas"],html[data-auth-product="chat"],
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) body{background:var(--ui-neutral-255,#ffffff)}
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback{background:var(--ui-neutral-255,#ffffff);color:var(--ui-neutral-21,#151515)}
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback-card{background:transparent;border:0;box-shadow:none}
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback-logo{color:var(--ui-neutral-21,#151515)!important;font-size:20px;letter-spacing:.06em}
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback-logo::before{background-image:url('/assets/brand/aletheia-mark-dark.svg?v=f4cbb424b3c1')!important}
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback-logo:has(>img)::before{display:none!important}
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback-logo img{width:29px;height:33px;object-fit:contain}
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback p{color:var(--ui-neutral-102,#666666)}
html:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback-action{color:var(--ui-neutral-21,#151515);background:transparent;border-color:var(--ui-neutral-204,#cccccc);border-radius:6px}
html[data-theme="dark"]:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback-logo::before,
html[data-theme="dark"]:is([data-auth-product="atlas"],[data-auth-product="chat"]) .yc-entry-fallback-logo img{filter:invert(1)}
@media(max-width:820px){
  html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-shell{grid-template-columns:minmax(0,1fr);gap:12px;width:min(540px,100%);min-height:0;padding:20px 24px 48px}
  html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-story{padding:10px 0 14px}
  html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-eyebrow{margin-bottom:12px;font-size:9px}
  html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-title{max-width:20ch;font-size:clamp(30px,7.5vw,40px);line-height:1.2}
  html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-title span{margin-top:4px}
  html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-subtitle{margin-top:14px;font-size:13px;line-height:1.7;max-width:42ch}
  html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .yc-entry-auth-column{padding:20px 0 0}
  html[data-theme] .yc-entry-root[data-aletheia="true"][data-auth-product] .aletheia-auth-wordmark{font-size:12px;letter-spacing:.06em}
}
