/* Official Lion AI Cloud wordmark. Shared by every skin and both Office shells. */
html[data-skin][data-nav] body #appView>aside .brand-image-wrap,
html body #appView>aside .brand-image-wrap{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;background:#07101c!important;border-radius:6px!important;padding:5px!important;box-sizing:border-box!important;overflow:hidden!important;min-height:52px!important}
html body #appView>aside .brand-image-wrap::before,
html body #appView>aside .brand-image-wrap::after{content:none!important;display:none!important}
html[data-skin][data-nav] body #appView>aside .brand-image,
html body #appView>aside .brand-image{display:block!important;opacity:1!important;visibility:visible!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:64px!important;margin:0!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important;clip-path:none!important;border-radius:0!important;box-shadow:none!important}
html body .lion-brand-image{display:block;object-fit:contain;object-position:center;transform:none;filter:none;max-width:100%;height:auto;flex-shrink:0}
html body .sidebar>.brand.lion-brand{display:flex!important;flex-direction:column;align-items:flex-start;gap:6px;background:#07101c!important;padding:8px!important;border-radius:6px;min-width:0}
html body .sidebar>.brand.lion-brand .lion-brand-image{width:216px;height:64px}
html body .sidebar>.brand.lion-brand .brand-name{font-size:12px;color:#dce6ed}
html body .lion-brand-rail{display:flex;justify-content:center;align-items:center;background:#07101c;border-radius:5px;padding:5px;margin:0 0 8px;min-width:0;flex-shrink:0}
html body .lion-brand-rail .lion-brand-image{width:122px;height:40px}
html body .r9-sidebar-brand{background:#07101c!important;padding:9px!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0}
html body .r9-sidebar-brand .lion-brand-image{width:216px;height:64px}
@media(max-width:900px){html body .lion-brand-rail{margin:0 5px 0 0;padding:4px;align-self:center}html body .lion-brand-rail .lion-brand-image{width:96px;height:30px}}

/* ===== R9.1 (2026-10-28): official logo always visible + gold logo for Lion Gold + login layout ===== */
/* 1) Sidebar: the real logo wins over every skin (older Lion Gold rules hid it and painted a crest + text). */
html body #appView>aside .brand-image-wrap:not(#_):not(#__):not(#___){background:#07101c!important;background-image:none!important;padding:5px!important;min-height:52px!important}
html body #appView>aside .brand-image-wrap:not(#_):not(#__):not(#___)::before,
html body #appView>aside .brand-image-wrap:not(#_):not(#__):not(#___)::after{content:none!important;display:none!important}
html body #appView>aside .brand-image-wrap:not(#_):not(#__):not(#___)>img{opacity:1!important;visibility:visible!important;display:block!important}
/* 2) Lion Gold: same logo in gold tones (the blue original stays on the other six skins). The <img> keeps its
      src/alt; its own pixels are moved out of view and the gold file is painted as its background. */
html:is([data-skin-variant=liongold],[data-lg-skin=liongold]) body img[src*="/brand/lion-ai-cloud-logo.png"]:not(#_):not(#__):not(#___){object-position:-99999px 0!important;background:url("/brand/lion-ai-cloud-logo-gold.png?v=r91") center/contain no-repeat!important}
html:is([data-skin-variant=liongold],[data-lg-skin=liongold]) body #appView>aside .brand-image-wrap:not(#_):not(#__):not(#___){background:#0b0906!important;border:1px solid rgba(217,180,90,.22)!important}
/* 3) Login card (Nexus layout, used by Lion Gold): eyebrow + language on one row, real card, no clipping. */
html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__){position:relative!important;box-sizing:border-box!important;width:min(440px,100%)!important;padding:30px 30px 26px!important;border-radius:20px!important;overflow:visible!important;background:rgba(10,12,16,.72)!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 30px 80px -40px rgba(0,0,0,.8)!important}
html[data-skin=nexus][data-skin-variant=liongold] body #loginView #loginForm.login-card:not(#_):not(#__){background:rgba(14,11,6,.78)!important;border-color:rgba(217,180,90,.28)!important}
html[data-skin=nexus][data-vision=day] body #loginView #loginForm.login-card:not(#_):not(#__){background:rgba(255,252,245,.9)!important;border-color:rgba(120,90,30,.2)!important;box-shadow:0 24px 60px -36px rgba(80,60,20,.45)!important}
html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__)::before{position:static!important;display:block!important;margin:0 0 22px!important;padding:0 120px 0 0!important;white-space:nowrap!important;overflow:visible!important;text-indent:0!important;transform:none!important;left:auto!important}
html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__)>.lac-language-select{position:absolute!important;top:22px!important;right:26px!important;margin:0!important;width:auto!important;min-width:0!important;max-width:120px!important;height:32px!important}
html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__) .login-brand-image-wrap{margin:0 0 22px!important;padding:0!important;justify-content:center!important}
html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__) .login-brand-image{width:100%!important;height:auto!important;max-height:120px!important;object-fit:contain!important;border-radius:12px!important}
html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__) :is(input,button){box-sizing:border-box!important;width:100%!important}
/* 4) Phones: one column. The decorative left panel is hidden so the form gets the full width. */
@media (max-width:900px){
 html[data-skin=nexus] body #loginView.login-wrap:not(.hidden):not(#_):not(#__){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;grid-template-columns:none!important;padding:76px 16px 28px!important;gap:18px!important;min-height:100vh!important;box-sizing:border-box!important}
 html[data-skin=nexus] body #loginView.login-wrap:not(#_):not(#__)::before{display:none!important}
 html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__){width:100%!important;max-width:440px!important;padding:24px 20px 22px!important}
 html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__)::before{padding-right:104px!important;font-size:9px!important}
 html[data-skin=nexus] body #loginView #loginForm.login-card:not(#_):not(#__)>.lac-language-select{top:16px!important;right:16px!important}
 html[data-skin=nexus] body #loginView .nx-admin-entry-note:not(#_){width:100%!important;max-width:440px!important;text-align:center!important;height:auto!important;margin:0 auto!important}
}
/* R9.1.2: the login card never covers the theme / day-night switch (seen at 1366x768 and similar laptop heights) */
html body .skin-fab:not(#_):not(#__){z-index:1000!important}
@media (min-width:901px){html[data-skin=nexus] body #loginView.login-wrap:not(#_):not(#__){padding-top:84px!important;box-sizing:border-box!important;min-height:100vh!important}}
/* R9.3.5: native drop-down lists (language, theme) follow Night/Day instead of a white list on a dark page */
html:not([data-vision=day]) select,html:not([data-vision=day]) option{color-scheme:dark}
html:not([data-vision=day]) option{background-color:#121214;color:#f3ead6}
html[data-vision=day] select{color-scheme:light}
