.theme-ic-sun{display:none}[data-theme="dark"] .theme-ic-sun{display:inline-block}[data-theme="dark"] .theme-ic-moon{display:none}.qr-scan-trigger{display:none}html.has-cam .qr-scan-trigger{display:inline-flex}body.auth-page{overflow-x:hidden}body.auth-page .topbar,body.auth-page .footer{display:none !important}body.auth-page .page{min-height:100svh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:max(20px,env(safe-area-inset-top)) 18px max(20px,env(safe-area-inset-bottom))}body.auth-page .flashes{width:100%;max-width:420px}.app-mode .footer{display:none !important}.app-mode .topbar{position:fixed;top:0;left:0;bottom:0;width:220px;z-index:40;border-bottom:0;border-right:1px solid var(--border)}.app-mode .topbar-inner{flex-direction:column;align-items:stretch;flex-wrap:nowrap;height:100%;max-width:none;margin:0;padding:14px 12px;gap:6px;overflow-y:auto;scrollbar-width:thin}.app-mode .brand{padding:6px 8px 14px}.app-mode .pill-nav{flex-direction:column;align-items:stretch;background:transparent;border-radius:0;padding:0;margin:0;gap:2px;overflow:visible}.app-mode .pill{text-align:left;padding:10px 12px;border-radius:8px;font-size:14px;display:flex;align-items:center;gap:10px;white-space:nowrap;box-shadow:none}.app-mode .pill:hover{background:var(--bg-2);color:var(--text)}.app-mode .pill.active{background:var(--accent-soft);color:var(--accent-ink);box-shadow:none}.app-mode .nav-badge{position:static;margin-left:auto;box-shadow:none}.app-mode .topbar-actions{display:none}.rail-user{display:none}.app-mode .rail-user{display:flex;align-items:center;gap:10px;width:100%;margin-top:auto;padding:10px 8px;border:0;border-top:1px solid var(--border);border-radius:0;background:none;cursor:pointer;color:var(--text)}.app-mode .rail-user:hover{background:var(--bg-2)}.rail-user .ru-av{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:var(--bg-2);border:1px solid var(--border)}.rail-user .ru-name{flex:1;text-align:left;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rail-user .ru-caret{color:var(--muted);display:inline-flex}.rail-menu{position:fixed;bottom:62px;left:12px;width:196px;z-index:60;padding:6px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-2)}.rail-menu[hidden]{display:none}.rail-menu a,.rail-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:8px 10px;border-radius:7px;background:none;border:0;cursor:pointer;color:var(--text);text-decoration:none;font-size:13.5px}.rail-menu .ic{color:var(--muted)}.rail-menu a:hover,.rail-menu button:hover{background:var(--bg-2)}.rail-menu .rm-logout,.rail-menu .rm-logout .ic{color:var(--danger)}.app-mode body:not(.auth-page){overflow-x:hidden}.app-mode body:not(.auth-page) .page{margin-left:220px;margin-right:0;max-width:none;width:calc(100% - 220px);box-sizing:border-box;overflow-x:hidden;padding:18px 22px 22px}.app-mode body.auth-page .topbar{display:none !important}.app-mode .hero-row,.app-mode .room-bar,.app-mode .list-meta{flex-wrap:wrap}.app-mode .hero{margin-bottom:12px}.app-mode body.chat-page .page{position:fixed;top:0;left:220px;right:0;bottom:0;margin:0;width:auto;max-width:none;padding:10px 16px;display:flex;flex-direction:column;overflow:hidden}.app-mode body.chat-page .hero{flex:0 0 auto;margin:0 0 8px}.app-mode body.chat-page .hero-badge,.app-mode body.chat-page .hero .muted{display:none}.app-mode body.chat-page .hero h1{font-size:20px}.app-mode body.chat-page .chat-layout{flex:1 1 auto;min-height:0}.app-mode body.chat-page .chat-card{flex:1 1 auto;min-height:0;height:auto;margin:0;display:flex;flex-direction:column}.app-mode body.chat-page .chat-card .chat-box{flex:1 1 auto;height:auto;min-height:0}.app-mode body.chat-page .chat-card .chat-input{flex:0 0 auto}@media (max-width:1023px){.app-mode .topbar{position:sticky;top:0;left:auto;right:auto;bottom:auto;width:auto;border-right:0;border-bottom:1px solid var(--border)}.app-mode .topbar-inner{flex-direction:row;flex-wrap:wrap;align-items:center;height:auto;max-width:1240px;margin:0 auto;padding:6px 12px;gap:6px 12px}.app-mode .brand{padding:0}.app-mode .pill-nav{flex-direction:row;background:var(--bg-2);border-radius:10px;padding:3px;margin:0;order:3;width:100%;overflow-x:auto;justify-content:flex-start}.app-mode .pill{text-align:center;padding:7px 12px;border-radius:8px;gap:7px}.app-mode .pill.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-1)}.app-mode .nav-badge{position:absolute;margin-left:0;box-shadow:0 0 0 2px var(--surface)}.app-mode .topbar-actions{display:flex}.app-mode .rail-user,.app-mode .rail-menu{display:none !important}.app-mode body:not(.auth-page) .page{margin-left:0;width:100%}.app-mode body.chat-page .page{position:static;left:auto;right:auto;bottom:auto;margin:0;width:100%;padding:10px 14px;overflow-x:clip}}@media (max-width:1023px){body.chat-page{height:100vh;height:100dvh;min-height:0;overflow:hidden}body.chat-page .topbar{position:static;flex:0 0 auto}body.chat-page .page{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;padding:8px 12px 0;overflow:hidden}body.chat-page .page>*{flex:0 0 auto}body.chat-page .page>.chat-layout{flex:1 1 auto;min-height:0}body.chat-page .chat-main{flex:1 1 auto;min-height:0}body.chat-page .chat-card{flex:1 1 auto;min-height:0;height:auto;margin:0;display:flex;flex-direction:column}body.chat-page .chat-card .chat-box{flex:1 1 auto;height:auto;min-height:0}body.chat-page .chat-card .chat-input{flex:0 0 auto;padding-bottom:max(10px,env(safe-area-inset-bottom))}body.chat-page .footer{display:none}.app-mode body.chat-page .page{position:static;width:100%;margin:0;padding:8px 12px 0}}html.fp-pip .topbar,html.fp-pip .page,html.fp-pip .footer,html.fp-pip .rail-menu{display:none !important}html.fp-pip body{overflow:hidden}html.fp-pip #call-overlay{inset:0 !important}html.fp-pip #call-overlay .call-top,html.fp-pip #call-overlay .call-controls{display:none !important}.topbar-actions .icon-btn-aiorg{display:none}@media (min-width:641px){.topbar-actions .icon-btn-aiorg{display:inline-flex}}