/* Login-compatible palettes; public img/ asset route needs no auth. */
[data-theme="telegram-light"] {
 --bg:#ffffff;--fg:#17212b;--card:#f1f4f7;--muted:#edf2f6;--muted-fg:#5c6e7e;--popover:#fff;
 --primary:#1674ad;--primary-fg:#fff;--secondary:#dcecf8;--accent:#edf4fa;--border:#dce4eb;--input:#fff;--sidebar:#fff;
 --bubble:#e3ffc9;--bubble-border:#cde5b7;--ok:#287a48;--warn:#916214;--danger:#ba3340;--code-bg:#f0f4f7;--shadow:0 8px 32px #17212b24;
 --tg-chat:#dfeaf0;--tg-incoming:#fff;--tg-active:#267ab6;--tg-active-fg:#fff;--tg-doodle:#9bb5c333;--tg-avatar:#277ab5;
 color-scheme:light;
}
[data-theme="telegram-dark"] {
 --bg:#17212b;--fg:#edf2f7;--card:#202f3e;--muted:#253647;--muted-fg:#a5b7c8;--popover:#1d2b39;
 --primary:#70b7eb;--primary-fg:#122336;--secondary:#2b5278;--accent:#23384c;--border:#304151;--input:#17212b;--sidebar:#17212b;
 --bubble:#2b5278;--bubble-border:#355f86;--ok:#82d49e;--warn:#efc26b;--danger:#ff939d;--code-bg:#13202d;--shadow:0 8px 32px #0006;
 --tg-chat:#0e1822;--tg-incoming:#182938;--tg-active:#2b5278;--tg-active-fg:#fff;--tg-doodle:#45637926;--tg-avatar:#3f81b6;
 color-scheme:dark;
}
/* Approved ATLAS ribbon identity. Independent of user skin/preferences. */
.atlas-logo { display:inline-flex;align-items:center;gap:13px;max-width:100%;width:350px;color:#07214e;vertical-align:middle; }
[data-mode="dark"] .atlas-logo,[data-theme="hermes"] .atlas-logo,[data-theme="midnight"] .atlas-logo,[data-theme="ember"] .atlas-logo,[data-theme="mono"] .atlas-logo,[data-theme="cyberpunk"] .atlas-logo,[data-theme="slate"] .atlas-logo,[data-theme="poseidon"] .atlas-logo,[data-theme="ares"] .atlas-logo { color:#edf5ff; }
[data-theme="telegram-light"] .atlas-logo { color:#07214e; }
[data-theme="telegram-dark"] .atlas-logo { color:#edf5ff; }
.atlas-logo .atlas-symbol { display:block;width:85px;height:85px;flex:none;object-fit:contain;image-rendering:auto;margin:0; }
.atlas-logo .atlas-word { display:block;flex:1;min-width:0;width:250px;height:auto;overflow:visible; }
.brand .atlas-identity { display:flex;flex-direction:column;min-width:0;flex:1; }
.brand .atlas-logo { display:flex;width:205px;gap:7px; }
.brand .atlas-logo .atlas-symbol { display:block;width:48px;height:48px;margin:0;image-rendering:auto; }
.brand .atlas-logo .atlas-word { width:150px; }
.brand .atlas-identity>small { font:10px/1.3 "Segoe UI",sans-serif;letter-spacing:.025em;color:var(--muted-fg);margin:0 0 0 55px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.sidebar .brand { min-height:76px;gap:8px;padding:9px 13px; }
.welcome>.atlas-logo { width:390px;margin:0 auto 17px; }
.welcome>.atlas-logo .atlas-symbol { width:96px;height:96px; }
.welcome>.atlas-logo .atlas-word { width:280px; }
.login .box>.atlas-logo { width:310px;margin:0 auto 18px; }
.login .box>.atlas-logo .atlas-symbol { width:78px;height:78px; }
.login .box>.atlas-logo .atlas-word { width:220px; }
@media(max-width:820px) {
 .sidebar .brand { padding:8px 10px;min-height:73px; }
 .brand .atlas-logo { width:192px;gap:6px; }
 .brand .atlas-logo .atlas-symbol { width:45px;height:45px; }
 .brand .atlas-logo .atlas-word { width:141px; }
 .brand .atlas-identity>small { margin-left:51px;font-size:9px; }
 .welcome>.atlas-logo { width:290px;gap:8px; }
 .welcome>.atlas-logo .atlas-symbol { width:70px;height:70px; }
 .welcome>.atlas-logo .atlas-word { width:210px; }
 .login .box>.atlas-logo { width:290px;gap:8px; }
 .login .box>.atlas-logo .atlas-symbol { width:70px;height:70px; }
 .login .box>.atlas-logo .atlas-word { width:210px; }
}
@media(max-width:360px) {
 .brand .atlas-logo { width:172px; }
 .brand .atlas-logo .atlas-symbol { width:40px;height:40px; }
 .brand .atlas-logo .atlas-word { width:126px; }
 .brand .atlas-identity>small { margin-left:46px; }
 .welcome>.atlas-logo,.login .box>.atlas-logo { width:250px; }
 .welcome>.atlas-logo .atlas-symbol,.login .box>.atlas-logo .atlas-symbol { width:60px;height:60px; }
}
