@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; text-rendering: optimizeLegibility; }
* { box-sizing: border-box; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app { min-height: 100vh; --accent:#2aa7d3; --accent-strong:#1696c5; --accent-soft:rgba(42,167,211,.14); --bg:#0d141b; --panel:#131d27; --panel-2:#192531; --panel-3:#202e3b; --surface:#18232e; --surface-hover:#22313e; --border:rgba(188,207,222,.10); --border-strong:rgba(188,207,222,.18); --text:#eef4f8; --muted:#93a5b3; --subtle:#6f8392; --shadow:0 18px 50px rgba(0,0,0,.24); color:var(--text); background:var(--bg); }
.app.theme-light { --accent:#198fbd; --accent-strong:#137da8; --accent-soft:rgba(25,143,189,.12); --bg:#edf3f7; --panel:#ffffff; --panel-2:#f7fafc; --panel-3:#eaf1f6; --surface:#ffffff; --surface-hover:#f2f7fa; --border:rgba(28,54,72,.09); --border-strong:rgba(28,54,72,.16); --text:#152633; --muted:#667b89; --subtle:#899ba7; --shadow:0 16px 44px rgba(29,68,91,.09); }
.app-shell { min-height:100vh; display:flex; }
.desktop-sidebar { width:248px; min-width:248px; background:var(--panel); border-right:1px solid var(--border); padding:25px 16px 18px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; z-index:5; }
.side-brand { padding:0 12px 28px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.045em; font-size:22px; color:var(--text); }
.brand img { width:32px; height:32px; object-fit:contain; }
.brand.small { font-size:18px; gap:7px; }.brand.small img { width:25px; height:25px; }
.side-user { display:flex; align-items:center; gap:11px; padding:13px 11px; border-radius:17px; background:var(--panel-2); border:1px solid var(--border); margin-bottom:22px; }
.side-user > div:nth-child(2) { display:flex; flex:1; min-width:0; flex-direction:column; gap:3px; }.side-user strong { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.side-user span { font-size:11px; color:var(--muted); }
.side-nav { display:flex; flex-direction:column; gap:5px; }
.side-nav button, .side-bottom button { border:0; color:var(--muted); background:transparent; display:flex; align-items:center; gap:13px; padding:12px 13px; width:100%; text-align:left; border-radius:14px; font-size:13px; font-weight:600; transition:.18s ease; }
.side-nav button:hover, .side-bottom button:hover { background:var(--surface-hover); color:var(--text); }.side-nav button.active { background:var(--accent-soft); color:var(--accent); }.side-nav button span { flex:1; }
.nav-count { font-style:normal; background:var(--accent); color:#fff; border-radius:20px; min-width:20px; height:20px; padding:0 6px; display:grid; place-items:center; font-size:10px; }
.side-bottom { margin-top:auto; display:flex; flex-direction:column; gap:3px; }.side-status { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--muted); padding:14px 13px 0; }.status-dot, .connection-dot { width:8px; height:8px; border-radius:50%; background:#39bb83; box-shadow:0 0 0 4px rgba(57,187,131,.12); }.status-dot.demo { background:#e0a543; box-shadow:0 0 0 4px rgba(224,165,67,.12); }
.main-area { flex:1; min-width:0; padding:0 30px 40px; max-width:1600px; margin:0 auto; width:100%; }.mobile-topbar { display:none; }
.page { width:100%; max-width:1120px; margin:0 auto; padding-top:30px; }.page-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:23px; }.page-head h1 { margin:0; font-size:27px; letter-spacing:-.04em; font-weight:800; }.page-head p { color:var(--muted); margin:6px 0 0; font-size:13px; }.head-actions { display:flex; gap:8px; }
.icon-btn { width:38px; height:38px; display:inline-grid; place-items:center; border:1px solid transparent; border-radius:50%; background:transparent; color:var(--muted); transition:.16s ease; flex-shrink:0; }.icon-btn:hover { background:var(--surface-hover); color:var(--text); border-color:var(--border); }.icon-btn.accent { color:var(--accent); background:var(--accent-soft); }.icon-btn.accent:hover { background:var(--accent); color:white; }
.primary-btn, .soft-btn, .text-btn, .sub-btn, .recommend-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:13px; padding:11px 16px; font-size:13px; font-weight:700; transition:.17s ease; }.primary-btn { color:#fff; background:linear-gradient(135deg,var(--accent),var(--accent-strong)); box-shadow:0 6px 18px rgba(31,153,198,.20); }.primary-btn:hover { filter:brightness(1.08); transform:translateY(-1px); }.primary-btn:disabled { opacity:.5; cursor:not-allowed; }.primary-btn.compact { padding:10px 14px; }.soft-btn { color:var(--text); background:var(--panel-3); border:1px solid var(--border); }.soft-btn:hover { background:var(--surface-hover); }.text-btn { background:transparent; color:var(--accent); width:100%; }
.pill { border:1px solid var(--border); border-radius:999px; padding:8px 14px; white-space:nowrap; font-size:12px; font-weight:600; color:var(--muted); background:var(--panel-2); transition:.15s ease; }.pill:hover { color:var(--text); border-color:var(--border-strong); }.pill.selected { color:white; background:var(--accent); border-color:var(--accent); box-shadow:0 5px 16px rgba(31,153,198,.18); }.theme-light .pill.selected { color:white; }.add-pill { padding:8px 10px; display:inline-flex; align-items:center; }
.searchbox { display:flex; align-items:center; gap:10px; border-radius:16px; background:var(--panel-2); border:1px solid var(--border); color:var(--muted); height:46px; padding:0 14px; }.searchbox:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }.searchbox input { border:0; outline:0; background:transparent; flex:1; min-width:0; color:var(--text); font-size:13px; }.searchbox input::placeholder { color:var(--subtle); }.search-shortcut { font-size:10px; color:var(--subtle); border:1px solid var(--border); border-radius:6px; padding:3px 6px; }
.avatar { border-radius:50%; display:grid; place-items:center; flex-shrink:0; font-weight:750; color:#fff; background:linear-gradient(145deg,#3f93bb,#1b597c); border:1px solid rgba(255,255,255,.12); box-shadow:inset 0 1px 1px rgba(255,255,255,.14); }.avatar.sm { width:30px;height:30px;font-size:11px; }.avatar.md { width:40px;height:40px;font-size:14px; }.avatar.lg { width:48px;height:48px;font-size:16px; }.avatar.xl { width:92px;height:92px;font-size:29px; }.av-blue { background:linear-gradient(145deg,#5aaed0,#225d87); }.av-teal { background:linear-gradient(145deg,#62b9ab,#286e75); }.av-amber { background:linear-gradient(145deg,#d5a45c,#965c32); }.av-slate { background:linear-gradient(145deg,#849cac,#45596b); }.av-rose { background:linear-gradient(145deg,#ca8598,#824d68); }.av-violet { background:linear-gradient(145deg,#797eb0,#424e78); }
.chats-layout { display:grid; grid-template-columns:minmax(290px,380px) minmax(0,1fr); max-width:1220px; margin:0 auto; min-height:calc(100vh - 40px); border:1px solid var(--border); border-radius:24px; overflow:hidden; background:var(--panel); box-shadow:var(--shadow); }.chats-layout .chats-page { padding:23px 18px; border-right:1px solid var(--border); max-width:none; min-height:680px; }.chats-layout .chat-pane { min-height:680px; }
.stories-strip { display:flex; align-items:flex-start; gap:15px; overflow-x:auto; padding:0 0 18px; scrollbar-width:none; }.stories-strip::-webkit-scrollbar { display:none; }.story-item { border:0; background:transparent; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:7px; min-width:51px; }.story-item small { max-width:66px; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.story-ring { position:relative; padding:3px; border-radius:50%; background:conic-gradient(var(--accent),#81cfe8,var(--accent)); }.story-ring .avatar { border:3px solid var(--panel); }.story-ring.mine { background:var(--border-strong); }.story-ring > i { position:absolute; right:-1px; bottom:0; display:grid; place-items:center; width:18px;height:18px; background:var(--accent); color:white; border-radius:50%; border:2px solid var(--panel); }
.folder-row { display:flex; align-items:center; gap:7px; overflow-x:auto; padding:13px 0 15px; scrollbar-width:none; }.folder-row::-webkit-scrollbar { display:none; }.chat-list { display:flex; flex-direction:column; }.chat-row-wrap { position:relative; display:flex; align-items:center; border-bottom:1px solid var(--border); }.chat-row { flex:1; min-width:0; display:flex; align-items:center; gap:12px; border:0; text-align:left; background:transparent; padding:13px 4px; color:var(--text); }.chat-row:hover { background:var(--surface-hover); border-radius:14px; }.chat-info { min-width:0; flex:1; display:flex; flex-direction:column; gap:5px; }.chat-info strong { font-size:13px; font-weight:700; display:flex; align-items:center; gap:5px; }.chat-info small { color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.chat-meta { display:flex; min-width:33px; flex-direction:column; align-items:flex-end; gap:7px; color:var(--subtle); font-size:10px; }.unread { background:var(--accent); color:white; min-width:19px; height:19px; border-radius:15px; padding:0 5px; display:grid; place-items:center; font-style:normal; font-size:10px; }.verified { display:inline-grid; place-items:center; width:15px; height:15px; border-radius:50%; background:var(--accent); color:white; font-size:10px; font-weight:800; }.chat-more { width:28px;height:32px; display:grid; place-items:center; border:0; color:var(--subtle); background:transparent; border-radius:8px; }.chat-more:hover { color:var(--text); background:var(--surface-hover); }.folder-popover { position:absolute; right:24px; top:52px; z-index:6; background:var(--panel); border:1px solid var(--border-strong); border-radius:13px; padding:12px; box-shadow:var(--shadow); width:200px; display:flex; flex-direction:column; gap:9px; }.folder-popover strong { font-size:11px; }.folder-popover label { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); }.folder-popover input { accent-color:var(--accent); }
.page-note { display:flex; gap:7px; align-items:center; color:var(--subtle); font-size:10px; padding-top:16px; }.empty-state { min-height:220px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; color:var(--muted); text-align:center; }.empty-state strong { color:var(--text); font-size:14px; }.empty-state span { font-size:12px; max-width:260px; }
.chat-pane { display:flex; flex-direction:column; min-width:0; position:relative; background:var(--bg); }.chat-head { height:75px; flex-shrink:0; padding:0 22px; display:flex; align-items:center; gap:11px; border-bottom:1px solid var(--border); background:var(--panel); }.chat-head-info { flex:1; display:flex; flex-direction:column; gap:4px; }.chat-head-info strong { font-size:14px; }.chat-head-info small { font-size:10px; color:#3fb98e; }.chat-head-actions { display:flex; gap:3px; }.back-mobile { display:none; }
.message-area { flex:1; overflow-y:auto; padding:25px clamp(12px,4vw,54px) 20px; display:flex; flex-direction:column; gap:12px; background:radial-gradient(ellipse at 50% 0%,var(--accent-soft),transparent 48%),var(--bg); }.date-chip { margin:0 auto 10px; border-radius:20px; padding:5px 12px; color:var(--muted); background:var(--panel-2); border:1px solid var(--border); font-size:10px; }.message-line { display:flex; justify-content:flex-start; }.message-line.mine { justify-content:flex-end; }.message-bubble { position:relative; max-width:min(78%,520px); background:var(--panel-2); border:1px solid var(--border); color:var(--text); border-radius:18px 18px 18px 6px; padding:10px 13px 6px; font-size:13px; line-height:1.45; box-shadow:0 5px 18px rgba(0,0,0,.045); }.message-bubble.mine { background:var(--accent-soft); border-color:rgba(42,167,211,.22); border-radius:18px 18px 6px 18px; }.message-footer { display:flex; justify-content:flex-end; align-items:center; gap:5px; color:var(--subtle); font-size:9px; margin-top:5px; }.message-bubble.mine .message-footer svg { color:var(--accent); }.emoji-message { display:inline-block; font-size:47px; line-height:1.1; padding:5px 12px; animation:emoji-bounce 1.3s ease-in-out infinite; transform-origin:50% 80%; }.emoji-message.wink { animation:emoji-wink 1.1s ease-in-out infinite; }.message-bubble:has(.emoji-message) { background:transparent; border:0; box-shadow:none; }.message-action-wrap { position:absolute; right:6px; top:-18px; opacity:0; transition:.12s ease; }.message-bubble:hover .message-action-wrap { opacity:1; }.message-menu-trigger { border:1px solid var(--border); background:var(--panel); color:var(--muted); width:27px;height:25px; border-radius:8px; display:grid; place-items:center; }.message-actions { position:absolute; right:0; top:28px; z-index:10; width:186px; background:var(--panel); box-shadow:var(--shadow); border:1px solid var(--border-strong); border-radius:13px; padding:7px; display:flex; flex-direction:column; gap:4px; }.message-actions > button { border:0; background:transparent; color:var(--text); font-size:11px; display:flex; align-items:center; gap:8px; padding:8px; border-radius:8px; text-align:left; }.message-actions > button:hover { background:var(--surface-hover); }.quick-reactions { display:flex; justify-content:space-between; padding:3px 5px; }.quick-reactions button { border:0; background:transparent; font-size:17px; padding:3px; }.reaction-list { display:flex; gap:4px; position:absolute; bottom:-14px; left:10px; }.reaction-list button { border:1px solid var(--border); background:var(--panel); border-radius:15px; padding:2px 6px; font-size:12px; box-shadow:0 2px 6px rgba(0,0,0,.12); }.forward-label { display:flex; align-items:center; gap:5px; color:var(--accent); font-size:10px; margin-bottom:5px; }.reply-preview { padding:5px 8px; margin-bottom:6px; border-left:2px solid var(--accent); background:var(--accent-soft); border-radius:4px 8px 8px 4px; color:var(--muted); font-size:10px; }
.voice-message { display:flex; align-items:center; gap:9px; min-width:240px; }.play-btn { width:33px;height:33px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--accent); color:white; font-size:12px; }.waveform { display:flex; align-items:center; gap:2px; height:28px; flex:1; }.waveform i { display:block; width:3px; border-radius:4px; background:var(--accent); opacity:.8; }.voice-message small { font-size:10px; color:var(--muted); }.video-circle { width:178px; }.video-placeholder { height:178px; width:178px; border-radius:50%; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; position:relative; color:white; background:radial-gradient(circle at 70% 25%,#6f899e,#273a4b 55%,#0d1924); border:3px solid rgba(255,255,255,.3); }.video-placeholder span { font-size:11px; }.video-placeholder b { font-size:10px; font-weight:500; }.file-bubble { display:flex; align-items:center; gap:10px; min-width:180px; color:var(--accent); }.file-bubble div { display:flex; flex-direction:column; gap:4px; }.file-bubble strong { color:var(--text); font-size:12px; }.file-bubble small { color:var(--muted); font-size:10px; }
.composer-area { padding:12px 20px 16px; background:var(--panel); border-top:1px solid var(--border); position:relative; }.composer { display:flex; align-items:center; gap:5px; background:var(--panel-2); border:1px solid var(--border); border-radius:18px; padding:5px 6px; min-height:49px; }.composer input { flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--text); padding:8px 5px; font-size:13px; }.composer input::placeholder { color:var(--subtle); }.composer-buttons { display:flex; gap:0; }.send-btn { border:0; width:36px;height:36px; border-radius:50%; color:#fff; background:var(--accent); display:grid; place-items:center; }.send-btn:disabled { opacity:.3; cursor:not-allowed; }.replying { margin-bottom:9px; padding:8px 10px; border-radius:12px; background:var(--accent-soft); border-left:3px solid var(--accent); display:flex; align-items:center; justify-content:space-between; }.replying span { display:flex; flex-direction:column; gap:2px; }.replying strong { font-size:11px; }.replying small { font-size:10px; color:var(--muted); }.recording-bar { display:flex; align-items:center; gap:8px; color:#e16c6c; font-size:11px; padding:0 0 10px; }.recording-bar button { border:0; background:var(--accent-soft); color:var(--accent); border-radius:8px; padding:5px 9px; margin-left:auto; font-size:10px; }.record-dot { width:8px;height:8px;background:#e35e62;border-radius:50%; box-shadow:0 0 0 5px rgba(227,94,98,.12); }.emoji-picker { position:absolute; right:56px; bottom:72px; width:310px; max-height:350px; overflow:hidden; border:1px solid var(--border-strong); border-radius:17px; background:var(--panel); box-shadow:var(--shadow); padding:12px; z-index:12; }.emoji-picker-head { display:flex; align-items:center; justify-content:space-between; font-size:12px; font-weight:700; margin-bottom:9px; }.emoji-grid { display:grid; grid-template-columns:repeat(8,1fr); gap:2px; max-height:280px; overflow-y:auto; }.emoji-grid button { border:0; background:transparent; font-size:21px; border-radius:8px; padding:5px; }.emoji-grid button:hover { background:var(--surface-hover); transform:scale(1.12); }
@keyframes emoji-bounce { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-5px) scale(1.06); } } @keyframes emoji-wink { 0%,100% { transform:rotate(0) scale(1); } 35% { transform:rotate(-8deg) scale(1.08); } 70% { transform:rotate(5deg) scale(.96); } }
.wall-composer { display:flex; align-items:center; gap:11px; background:var(--panel); border:1px solid var(--border); padding:11px 14px; border-radius:17px; color:var(--muted); font-size:13px; cursor:pointer; }.wall-composer span { flex:1; }.wall-composer:hover { border-color:var(--accent); }.wall-tabs { display:flex; gap:7px; padding:16px 0; }.post-list { display:flex; flex-direction:column; gap:15px; max-width:760px; }.post-card { background:var(--panel); border:1px solid var(--border); border-radius:20px; padding:17px; overflow:hidden; }.post-head { display:flex; align-items:center; gap:10px; }.post-head > div { flex:1; display:flex; flex-direction:column; gap:4px; }.post-head strong { font-size:12px; }.post-head small { font-size:10px; color:var(--muted); }.post-text { font-size:13px; line-height:1.6; margin:14px 0; white-space:pre-wrap; }.post-image { width:100%; max-height:420px; object-fit:cover; border-radius:15px; }.post-placeholder { height:230px; display:flex; align-items:flex-end; padding:18px; border-radius:15px; background:linear-gradient(140deg,#31546b,#8f9b91 48%,#1b313e); color:rgba(255,255,255,.8); letter-spacing:.16em; font-size:11px; }.post-stats { display:flex; justify-content:space-between; padding:11px 3px; color:var(--muted); font-size:10px; border-bottom:1px solid var(--border); }.post-actions { display:flex; gap:5px; padding-top:8px; }.post-actions button { flex:1; border:0; background:transparent; color:var(--muted); border-radius:10px; padding:9px 5px; display:flex; align-items:center; justify-content:center; gap:7px; font-size:11px; }.post-actions button:hover { background:var(--surface-hover); color:var(--text); }.post-actions button.liked { color:#e46b75; }
.channel-list { display:flex; flex-direction:column; gap:10px; max-width:820px; }.channel-card { display:flex; align-items:center; gap:13px; padding:14px; border:1px solid var(--border); background:var(--panel); border-radius:18px; }.channel-symbol { width:48px;height:48px; border-radius:15px; display:grid; place-items:center; flex-shrink:0; color:white; font-size:22px; font-weight:700; background:linear-gradient(145deg,#367fa2,#1a3f5e); }.channel-1 { background:linear-gradient(145deg,#c48b45,#79522f); }.channel-2 { background:linear-gradient(145deg,#647c92,#344959); }.channel-3 { background:linear-gradient(145deg,#49677b,#233b4d); }.channel-4 { background:linear-gradient(145deg,#6a9e9a,#2c6867); }.channel-info { display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }.channel-info strong { font-size:13px; display:flex; gap:5px; align-items:center; }.channel-info small { font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.channel-subs { color:var(--subtle); font-size:10px; }.channel-actions { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }.sub-btn { padding:8px 12px; background:var(--accent); color:#fff; border-radius:10px; font-size:10px; white-space:nowrap; }.sub-btn.subscribed { color:var(--accent); background:var(--accent-soft); border:1px solid rgba(42,167,211,.18); }.recommend-btn { padding:6px 9px; background:transparent; color:var(--muted); border:1px solid var(--border); border-radius:9px; font-size:10px; }.recommend-btn.recommended { color:var(--accent); background:var(--accent-soft); border-color:rgba(42,167,211,.2); }.recommend-btn small { font-size:9px; }.recommend-intro { max-width:820px; display:flex; align-items:center; gap:14px; background:var(--accent-soft); border:1px solid rgba(42,167,211,.18); border-radius:18px; padding:16px; margin-bottom:18px; }.recommend-icon { width:43px;height:43px;border-radius:14px; display:grid;place-items:center; color:white; background:var(--accent); }.recommend-intro strong { font-size:13px; }.recommend-intro p { font-size:11px; color:var(--muted); margin:5px 0 0; line-height:1.5; }.recommend-badge { width:41px;height:41px; display:grid;place-items:center; color:var(--accent); background:var(--accent-soft); border-radius:14px; }
.profile-hero { max-width:650px; display:flex; flex-direction:column; align-items:center; padding:28px 18px; background:var(--panel); border:1px solid var(--border); border-radius:22px; text-align:center; }.profile-hero h2 { margin:13px 0 4px; font-size:20px; }.profile-hero > span { color:var(--accent); font-size:12px; }.profile-hero p { color:var(--muted); font-size:12px; margin:10px 0 16px; }.profile-stats { width:min(100%,390px); display:flex; justify-content:space-around; margin-top:22px; padding-top:18px; border-top:1px solid var(--border); }.profile-stats div { display:flex; flex-direction:column; gap:4px; }.profile-stats strong { font-size:18px; }.profile-stats small { color:var(--muted); font-size:10px; }.settings-list { max-width:650px; margin-top:14px; background:var(--panel); border:1px solid var(--border); border-radius:18px; overflow:hidden; }.settings-list button, .settings-action { display:flex; align-items:center; gap:12px; width:100%; padding:15px 16px; border:0; border-bottom:1px solid var(--border); background:transparent; color:var(--text); text-align:left; font-size:12px; }.settings-list button:last-child { border-bottom:0; }.settings-list button svg:last-child { margin-left:auto; color:var(--subtle); }.settings-list button:hover, .settings-action:hover { background:var(--surface-hover); }
.head-title-back { display:flex; align-items:center; gap:10px; }.settings-section { max-width:760px; margin-bottom:23px; }.settings-section h3 { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; margin:0 0 10px 4px; }.theme-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }.theme-options button { display:flex; align-items:center; gap:10px; padding:15px; color:var(--text); background:var(--panel); border:1px solid var(--border); border-radius:15px; }.theme-options button.chosen { border-color:var(--accent); background:var(--accent-soft); }.theme-options button svg:last-child { margin-left:auto; color:var(--accent); }.setting-row { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 15px; background:var(--panel); border-bottom:1px solid var(--border); font-size:12px; }.setting-row:first-of-type { border-radius:15px 15px 0 0; }.setting-row:last-of-type { border-radius:0 0 15px 15px; border-bottom:0; }.setting-row > span:first-child { display:flex; align-items:center; gap:10px; }.setting-row > span svg { color:var(--muted); }.setting-row select { border:1px solid var(--border); color:var(--text); background:var(--panel-2); border-radius:9px; padding:7px 9px; font-size:11px; }.switch { width:42px;height:24px; padding:3px; border:0; background:var(--panel-3); border-radius:20px; }.switch i { display:block; width:18px;height:18px; border-radius:50%; background:var(--muted); transition:.18s; }.switch.on { background:var(--accent); }.switch.on i { transform:translateX(18px); background:#fff; }.connection-card, .about-card { display:flex; align-items:center; gap:12px; border:1px solid var(--border); border-radius:15px; background:var(--panel); padding:14px; }.connection-card div { display:flex; flex-direction:column; gap:4px; }.connection-card strong { font-size:12px; }.connection-card small, .about-card small { color:var(--muted); font-size:10px; line-height:1.5; }.connection-dot.offline { background:#dda547; box-shadow:0 0 0 4px rgba(221,165,71,.12); }.settings-action { margin-top:7px; border:1px solid var(--border); border-radius:12px; background:var(--panel); }.settings-action svg:last-child { margin-left:auto; }.settings-action.danger { color:#df7078; }.about-card { flex-direction:column; align-items:flex-start; }.about-card > span { font-size:11px; color:var(--muted); }
.bottom-nav { display:none; }.toast { position:fixed; z-index:50; left:50%; bottom:26px; transform:translateX(-50%); display:flex; align-items:center; gap:9px; padding:11px 16px; border:1px solid var(--border-strong); border-radius:13px; background:var(--panel); color:var(--text); box-shadow:var(--shadow); font-size:12px; animation:toast-in .22s ease; max-width:min(90vw,460px); }.toast svg { color:#37b98b; flex-shrink:0; }.muted { color:var(--muted); }.tiny { font-size:10px; }
@keyframes toast-in { from { opacity:0; transform:translate(-50%,10px); } to { opacity:1; transform:translate(-50%,0); } }
.modal-backdrop { position:fixed; z-index:40; inset:0; display:grid; place-items:center; padding:20px; background:rgba(2,8,13,.58); backdrop-filter:blur(7px); }.modal { width:min(100%,430px); max-height:min(85vh,760px); overflow-y:auto; padding:19px; border-radius:22px; border:1px solid var(--border-strong); background:var(--panel); box-shadow:var(--shadow); animation:modal-in .2s ease; }.modal.wide { width:min(100%,560px); }.modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }.modal-head h3 { margin:0; font-size:16px; }.form-stack { display:flex; flex-direction:column; gap:13px; }.form-stack label { display:flex; flex-direction:column; gap:7px; font-size:11px; font-weight:650; color:var(--muted); }.form-stack input, .form-stack textarea, .form-stack select { width:100%; padding:12px 13px; border-radius:12px; border:1px solid var(--border); outline:0; background:var(--panel-2); color:var(--text); font-size:13px; resize:vertical; }.form-stack input:focus, .form-stack textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }.modal-tools { display:flex; align-items:center; justify-content:space-between; }.list-select { display:flex; flex-direction:column; gap:5px; max-height:330px; overflow:auto; }.list-select button { display:flex; align-items:center; gap:10px; padding:10px; border:0; border-radius:11px; background:transparent; color:var(--text); text-align:left; font-size:12px; }.list-select button:hover { background:var(--surface-hover); }.list-select button span { flex:1; }.list-select button svg { color:var(--muted); }.searchbox input:focus { outline:0; }.modal .searchbox { margin-bottom:6px; }
@keyframes modal-in { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }

@media (max-width: 980px) {
  .desktop-sidebar { width:215px; min-width:215px; }.main-area { padding:0 19px 30px; }.chats-layout { grid-template-columns:minmax(265px,330px) minmax(0,1fr); }.chat-head { padding:0 15px; }.message-area { padding-left:16px; padding-right:16px; }
}
@media (max-width: 760px) {
  .desktop-sidebar { display:none; }.main-area { padding:0 0 78px; }.mobile-topbar { height:60px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 13px; position:sticky; top:0; z-index:15; background:var(--panel); border-bottom:1px solid var(--border); }.mobile-topbar .top-actions { display:flex; gap:2px; }.page { padding:20px 15px 30px; }.page-head { margin-bottom:17px; }.page-head h1 { font-size:24px; }.page-head p { font-size:11px; }.bottom-nav { position:fixed; z-index:20; bottom:0; left:0; right:0; display:flex; align-items:stretch; justify-content:space-around; padding:6px 3px max(6px,env(safe-area-inset-bottom)); background:color-mix(in srgb,var(--panel) 92%,transparent); border-top:1px solid var(--border); backdrop-filter:blur(18px); }.bottom-nav button { border:0; background:transparent; color:var(--subtle); display:flex; flex:1; min-width:0; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:3px 0; }.bottom-nav button .nav-icon { position:relative; width:40px;height:28px; border-radius:13px; display:grid; place-items:center; }.bottom-nav button.active { color:var(--accent); }.bottom-nav button.active .nav-icon { background:var(--accent-soft); }.bottom-nav button small { font-size:9px; font-weight:600; white-space:nowrap; }.bottom-dot { position:absolute; top:2px; right:6px; width:6px;height:6px; border-radius:50%; background:var(--accent); border:1px solid var(--panel); }
  .chats-layout { display:block; border:0; border-radius:0; box-shadow:none; min-height:calc(100vh - 138px); background:transparent; }.chats-layout .chats-page { border:0; padding:17px 15px 20px; min-height:0; }.chats-layout .chat-pane { display:none; min-height:calc(100vh - 138px); }.chats-layout.chat-is-open .chats-page { display:none; }.chats-layout.chat-is-open .chat-pane { display:flex; position:fixed; z-index:18; top:60px; bottom:68px; left:0; right:0; min-height:0; }.chat-head { height:63px; padding:0 10px; }.back-mobile { display:inline-grid; }.chat-head-actions { gap:0; }.message-area { padding:18px 13px 24px; }.composer-area { padding:9px 10px max(10px,env(safe-area-inset-bottom)); }.composer { min-height:46px; }.composer-buttons .icon-btn { width:31px; }.chat-head-info strong { font-size:13px; }.message-bubble { max-width:86%; font-size:12px; }.voice-message { min-width:200px; }.video-placeholder { width:150px;height:150px; }.video-circle { width:150px; }.chat-more { opacity:.9; }.folder-popover { right:20px; }.channel-card { padding:11px; gap:10px; }.channel-symbol { width:42px;height:42px; border-radius:13px; }.channel-info small { max-width:150px; }.channel-actions { gap:5px; }.sub-btn { padding:7px 9px; font-size:9px; }.recommend-btn { padding:5px 7px; }.recommend-btn small { font-size:8px; }.post-card { padding:13px; border-radius:16px; }.post-actions button { font-size:9px; gap:4px; }.profile-hero { padding:23px 14px; }.modal { border-radius:19px; padding:16px; }.toast { bottom:85px; }.emoji-picker { right:8px; bottom:65px; width:min(310px,calc(100vw - 16px)); }
}
@media (max-width: 390px) {
  .bottom-nav button small { font-size:8px; }.bottom-nav button .nav-icon { width:35px; }.head-actions { gap:2px; }.head-actions .icon-btn { width:34px;height:34px; }.chat-row { gap:9px; }.chat-row .avatar { width:42px;height:42px; }.chat-info strong { font-size:12px; }.chat-info small { font-size:10px; }.channel-card { align-items:flex-start; }.channel-actions { margin-top:2px; }.channel-info small { white-space:normal; }
}
.image-message { width:min(230px,70vw); }.image-message img { display:block; width:100%; max-height:250px; object-fit:cover; border-radius:12px; }.image-placeholder { height:115px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:6px; background:var(--panel-3); color:var(--muted); border-radius:12px; font-size:11px; }.story-view-image { width:100%; max-height:55vh; object-fit:contain; border-radius:15px; background:#05080b; }.story-view-text { padding:20px 4px; color:var(--text); font-size:15px; line-height:1.6; }.emoji-message.cry { animation:emoji-cry 1.25s ease-in-out infinite; }.emoji-message.laugh { animation:emoji-laugh .65s ease-in-out infinite; }.emoji-message.heart { animation:emoji-heart .9s ease-in-out infinite; }
@keyframes emoji-cry { 0%,100% { transform:translateY(0); } 50% { transform:translateY(3px) rotate(-3deg); } }
@keyframes emoji-laugh { 0%,100% { transform:rotate(0) scale(1); } 25% { transform:rotate(-8deg) scale(1.08); } 75% { transform:rotate(8deg) scale(1.08); } }
@keyframes emoji-heart { 0%,100% { transform:scale(1); } 45% { transform:scale(1.2); } 70% { transform:scale(.96); } }

/* Lichka v0.2 refinements: monochrome identity, usable media controls and comments */
.app { --bg:#0a0d10; --panel:#11161a; --panel-2:#171e23; --panel-3:#20282e; --surface:#151c21; --surface-hover:#202a31; --text:#f4f7f8; --muted:#9baab2; --subtle:#74838c; --accent:#31b6df; --accent-strong:#159bc8; --accent-soft:rgba(49,182,223,.14); }
.app.theme-light { --bg:#f7f9fa; --panel:#ffffff; --panel-2:#f0f4f6; --panel-3:#e8eef1; --surface:#ffffff; --surface-hover:#edf3f6; --text:#11191e; --muted:#63737c; --subtle:#8b999f; --accent:#169dce; --accent-strong:#087eae; --accent-soft:rgba(22,157,206,.12); }
.theme-light .brand img { filter:invert(1); }
.av-violet { background:linear-gradient(145deg,#7ca9bb,#405f70); }
.emoji-search { display:flex; align-items:center; gap:8px; padding:8px 10px; margin:5px 0 9px; border:1px solid var(--border); border-radius:10px; color:var(--muted); background:var(--panel-2); }
.emoji-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--text); font-size:11px; }
.emoji-category-row { display:flex; gap:5px; overflow-x:auto; padding:0 0 8px; scrollbar-width:none; }
.emoji-category-row::-webkit-scrollbar { display:none; }
.emoji-category-row button { border:1px solid var(--border); border-radius:999px; padding:6px 9px; flex:0 0 auto; background:var(--panel-2); color:var(--muted); font-size:10px; }
.emoji-category-row button.selected { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
.emoji-message { display:inline-block; transform-origin:center; }
.emoji-message.thumb { animation:emoji-thumb .7s ease-in-out infinite; }
.emoji-message.fire { animation:emoji-fire .75s ease-in-out infinite; }
.emoji-message.party { animation:emoji-party 1.15s ease-in-out infinite; }
.emoji-message.surprise { animation:emoji-surprise .8s ease-in-out infinite; }
.video-circle-player { width:190px; height:190px; max-width:65vw; max-height:65vw; object-fit:cover; border-radius:50%; background:#080b0e; display:block; }
.voice-message audio { display:none; }
.play-btn:disabled { opacity:.65; cursor:default; }
.comment-thread { display:flex; flex-direction:column; gap:13px; max-height:48vh; overflow:auto; padding:4px 2px 14px; }
.comment-row { display:flex; gap:9px; align-items:flex-start; }
.comment-row > div { min-width:0; flex:1; }
.comment-row strong { display:block; font-size:12px; }
.comment-row p { margin:4px 0; color:var(--text); font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.comment-row small { color:var(--subtle); font-size:10px; }
.comment-form { display:flex; gap:8px; padding-top:11px; border-top:1px solid var(--border); }
.comment-form input { min-width:0; flex:1; border:1px solid var(--border); border-radius:12px; padding:10px 12px; outline:none; background:var(--panel-2); color:var(--text); }
.comment-form .primary-btn { padding:9px 13px; }
.post-stats button { border:0; padding:0; background:transparent; color:var(--muted); font-size:10px; }
.post-stats button:hover { color:var(--accent); }
@keyframes emoji-thumb { 0%,100%{transform:rotate(0) scale(1)} 35%{transform:rotate(-12deg) scale(1.15)} 70%{transform:rotate(8deg) scale(1.08)} }
@keyframes emoji-fire { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-3px) scale(1.12)} }
@keyframes emoji-party { 0%,100%{transform:rotate(0) scale(1)} 25%{transform:rotate(-10deg) scale(1.12)} 75%{transform:rotate(10deg) scale(1.12)} }
@keyframes emoji-surprise { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }

.emoji-message.pulse { animation:emoji-surprise .95s ease-in-out infinite; }

/* Touch devices: keep per-message actions accessible without hover. */
@media (hover: none) { .message-action-wrap { opacity: 1; } }
.chat-status-pill { color:var(--muted); font-size:10px; padding:6px 10px; border:1px solid var(--border); border-radius:999px; background:var(--panel-2); }

/* Numeric unread badges for the five-tab navigation. */
.bottom-nav .nav-icon { overflow:visible; }
.nav-badge { position:absolute; top:-4px; right:-5px; min-width:17px; height:17px; padding:0 4px; display:grid; place-items:center; border:2px solid var(--panel); border-radius:999px; background:var(--accent); color:#fff; font-size:9px; line-height:1; font-style:normal; font-weight:800; }

.post-follow { flex:0 0 auto; border:1px solid var(--border); background:var(--surface); color:var(--accent); border-radius:999px; padding:7px 11px; font-size:10px; font-weight:700; cursor:pointer; transition:background .18s ease,border-color .18s ease; }.post-follow:hover { border-color:var(--accent); }.post-follow.following { color:var(--muted); background:var(--surface-hover); }
