/* Shared brand dimensions for authentication and app headers. */
.app-brand{display:flex;align-items:center;gap:12px;min-width:0;height:44px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}
.app-brand img{display:block;width:44px;height:44px;flex:0 0 44px;border-radius:10px;object-fit:contain;filter:none}
.app-brand h1{margin:0;font-size:22px;font-weight:700;letter-spacing:-.6px;line-height:26px;white-space:nowrap}
.app-header{--panel:#fff;--text:#151515;--muted:#777;--line:#e7e7e4;--soft:#e7e7e4;--inverse:#fff;background:var(--bg);color:var(--text)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .app-header{--panel:#1c1c1c;--text:#eee;--muted:#aaa;--line:#333;--soft:#333;--inverse:#111}}
:root[data-theme=dark] .app-header{--panel:#1c1c1c;--text:#eee;--muted:#aaa;--line:#333;--soft:#333;--inverse:#111}
:root .auth-shell .app-header{--bg:inherit;--panel:inherit;--text:inherit;--muted:inherit;--line:inherit;--soft:inherit;--inverse:inherit}
@media(max-width:420px){.app-header .app-brand h1{font-size:20px}}

/* The header inherits the body background, including its outer margins. */
.app-header{position:relative;isolation:isolate;z-index:20}

/* Preserve header dimensions while keeping its boundary the body color. */
.app-shell:not(.auth-shell) .app-header,body:not(.auth-shell)>.app-header{border-bottom-color:transparent}
