/* Transparent ITSUS mark: one monochrome asset follows the active theme. */
.topbar .brand-links{display:flex;align-items:center;gap:10px;flex:1;white-space:nowrap;min-width:220px}
.topbar .brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0}
.topbar .brand img{display:block;width:36px;height:36px;object-fit:contain;border-radius:var(--ui-radius-control);background:transparent;filter:brightness(0);mix-blend-mode:normal}
.topbar .brand span{display:inline!important;border:0;padding:0;font-size:14px;font-weight:650;color:var(--text)}
.topbar .brand{text-decoration:none}
.app-rail .rail-footer{margin-top:auto;flex-shrink:0;display:flex;align-items:center;gap:6px;min-height:54px;color:var(--text)}
.login-card .login-logo,.auth .brand img{border-radius:var(--ui-radius-control)}
@media(min-width:701px){.office-shell.settings-mode>.topbar .brand img{width:30px;height:30px}.office-shell .brand-links{min-width:240px}}
@media(max-width:700px){.topbar .brand-links{min-width:0;gap:6px}.topbar .brand{gap:6px}.topbar .brand img{width:30px;height:30px;border-radius:var(--ui-radius-control)}.topbar .brand span{font-size:12px}.topbar .top-tools{flex-shrink:0}}
@media print{body:has(.office-shell),.office-shell{min-width:0!important}}

/* Shared rail footer: organization followed by centered theme control. */
.app-rail .rail-bottom{margin-top:auto;display:flex;flex-direction:column;gap:4px;flex-shrink:0;width:100%}
.app-rail .rail-bottom .rail-footer{margin-top:0}
.app-rail .rail-bottom #theme-toggle{width:100%;min-height:38px;padding:8px 2px;display:flex;flex-direction:row;align-items:center;justify-content:center;text-align:center;font-size:11px;white-space:nowrap;color:var(--text);border:1px solid var(--line);background:var(--panel)}
.app-rail .rail-bottom #theme-toggle:hover{background:var(--soft)}
.app-rail .rail-bottom #theme-toggle:focus-visible{outline:2px solid var(--text);outline-offset:2px}

/* Preserve alpha; never paint a white tile behind the company mark. */
:root .topbar .brand img,:root .login-card .login-logo,:root .auth .brand img{background:transparent;border-radius:0;mix-blend-mode:normal;filter:brightness(0)}
:root[data-theme=dark] .topbar .brand img,:root[data-theme=dark] .login-card .login-logo,:root[data-theme=dark] .auth .brand img{filter:brightness(0) invert(1)}
:root[data-theme=light] .login-card .login-logo,:root[data-theme=light] .auth .brand img{filter:brightness(0);mix-blend-mode:normal}
.company-brand-preview img{filter:brightness(0);background:transparent;mix-blend-mode:normal}
