/* Site-only adapter: source fixed header variants and final offsets remain intact. */
body header .ai-network{flex:none}
@media(min-width:769px) and (max-width:1100px){
 body .u-header-body:has(>.v-header-nav),body .seo-header__inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:44px 32px;gap:4px 14px;height:104px;min-height:104px;padding:10px 14px;box-sizing:border-box}
 body .u-header-body:has(>.v-header-nav)>.ai-network,body .seo-header__inner>.ai-network{grid-column:2;grid-row:1;justify-self:end}
 body .u-header-body:has(>.v-header-nav)>a:last-child,body .seo-header__inner>.seo-header__cta{grid-column:3;grid-row:1}
 body .v-header-nav,body .seo-header__nav{grid-column:1/-1;grid-row:2;margin:0;justify-content:center}
 :root{--header-offset:140px;--seo-header-offset:140px}
}
@media(max-width:768px){
 :root{--header-offset:140px;--seo-header-offset:140px}
 body header:not([data-ai-network-service-header])>div{width:calc(100% - 20px);max-width:none;padding:0}
 body header :is(.u-header-body,.d-header-body,.k-header-body,.c-header-body,.f-header-body,.header-info,.i-header-info,.s-header-info,.seo-header__inner){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 44px;gap:8px;height:112px;min-height:112px;padding:10px;box-sizing:border-box;align-items:center}
 body header :is(.u-header-body,.d-header-body,.k-header-body,.c-header-body,.f-header-body,.header-info,.i-header-info,.s-header-info,.seo-header__inner)>a:first-child{grid-column:1;grid-row:1;min-width:0;max-width:110px}
 body header :is(.u-header-body,.d-header-body,.k-header-body,.c-header-body,.f-header-body,.header-info,.i-header-info,.s-header-info,.seo-header__inner)>.ai-network{grid-column:2;grid-row:1;justify-self:end}
 body header :is(.u-header-body,.d-header-body,.k-header-body,.c-header-body,.f-header-body,.header-info,.i-header-info,.s-header-info,.seo-header__inner)>a:last-child,body header .header-actons{grid-column:1/-1;grid-row:2;width:100%;min-height:44px;margin:0;justify-content:center}
 body header .header-actons>a{width:100%;min-height:44px;justify-content:center}
 body .seo-header__inner>.seo-logo{font-size:14px;white-space:nowrap}
 body .i-banner,body .s-realistic-platform{padding-top:156px}
 body .f-main-cnt{padding-top:150px}
}
/* Desktop CharacterAI had a mobile-only header; keep old hidden links hidden, expose only menu. */
@media(min-width:993px){
 body .f-header{display:block;position:relative;top:auto;left:auto;min-height:64px;padding:8px 12px;box-sizing:border-box}
 body .f-header .f-header-body{height:48px;min-height:48px;justify-content:flex-end;padding:4px 10px}
 body .f-header .f-header-body>a{display:none}
}
/* Headerless accepted chat pages and404 receive a menu-only in-flow row. */
body>header[data-ai-network-service-header]{position:relative;top:auto;left:auto;width:100%;height:64px;min-height:64px;display:flex;align-items:center;justify-content:flex-end;padding:12px;box-sizing:border-box;z-index:100}
body:has(>header[data-ai-network-service-header])>.chat-wrapper{height:calc(100svh - 64px);min-height:calc(100svh - 64px)}
body:has(>header[data-ai-network-service-header])>.error-page{min-height:calc(100vh - 64px)}
