/* ChatNexa Web — Telegram Desktop-style layout: folder rail · chat list · chat · emoji panel */
:root {
  --accent: #3390EC; --accent-d: #2B7FD3;
  --rail: #2E3D50; --rail-ink: #A9B8C9; --rail-on: #FFFFFF; --rail-sel: #3A4B60;
  --side: #FFFFFF; --ink: #000000; --sub: #707579; --line: #DADCE0; --hover: #F4F4F5;
  --sel: #3390EC; --sel-ink: #FFFFFF;
  --in: #FFFFFF; --out: #EEFFDE; --out-meta: #4FAE4E; --meta: #A0ACB6;
  --wall1: #B7D9A4; --wall2: #D9E8BE; --wall3: #9CC59A; --pattern: rgba(48, 88, 40, .13);
  --input: #FFFFFF; --danger: #E53935; --chip: rgba(70, 100, 60, .45);
  --shadow: 0 1px 1.5px rgba(16, 35, 47, .15);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rail: #17212B; --rail-ink: #7F91A4; --rail-sel: #232E3C;
    --side: #17212B; --ink: #F5F5F5; --sub: #7F91A4; --line: #0E1621; --hover: #202B36;
    --sel: #2B5278; --in: #182533; --out: #2B5278; --out-meta: #7DA8D3; --meta: #6D7F8F;
    --wall1: #0E1621; --wall2: #13202C; --wall3: #0B131B; --pattern: rgba(120, 160, 200, .06);
    --input: #17212B; --chip: rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--side); color: var(--ink);
  font: 14px/1.38 -apple-system, "Segoe UI", Roboto, "Open Sans", "Noto Sans Bengali", sans-serif; }
#root { height: 100dvh; display: flex; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; color: var(--ink); }
.splash { margin: auto; text-align: center; }
.splash img { width: 88px; height: 88px; border-radius: 24px; }
.spin { width: 26px; height: 26px; margin: 18px auto; border: 3px solid rgba(127,127,127,.25); border-top-color: var(--accent); border-radius: 50%; animation: s .8s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }

/* ---------- sign in */
.auth { margin: auto; width: min(400px, 100% - 32px); padding: 30px 24px; text-align: center; }
.auth .logo { display: block; width: 120px; height: 120px; border-radius: 34px; margin: 0 auto 18px; }
.auth h1 { margin: 0; font-size: 28px; font-weight: 600; }
.auth p.tag { margin: 6px 0 24px; color: var(--sub); }
.field { display: block; width: 100%; padding: 15px 16px; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--input); outline: none; font-size: 16px; }
.field:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn { display: block; width: 100%; padding: 15px; margin-top: 14px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.btn:hover { background: var(--accent-d); } .btn:disabled { opacity: .6; }
.btn.ghost { background: transparent; color: var(--accent); margin-top: 4px; text-transform: none; letter-spacing: 0; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 6px; }

/* ---------- 4 columns */
.app { flex: 1; display: grid; grid-template-columns: 72px 360px 1fr 0; min-width: 0; }
.app.panelon { grid-template-columns: 72px 360px 1fr 340px; }
.rail { background: var(--rail); display: flex; flex-direction: column; align-items: stretch; padding: 6px 0; overflow-y: auto; }
.railbtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 2px; color: var(--rail-ink); font-size: 11.5px; }
.railbtn svg { width: 26px; height: 26px; }
.railbtn.menu { padding: 14px 0; } .railbtn.menu svg { width: 24px; height: 24px; }
.railbtn:hover { background: rgba(255,255,255,.05); }
.railbtn.on { background: var(--rail-sel); color: var(--rail-on); }
.railbtn .cnt:empty { display: none; }
.railbtn .cnt { position: absolute; top: 6px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/18px sans-serif; font-style: normal; border: 2px solid var(--rail); }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.stop { padding: 10px 12px 8px; padding-top: max(10px, env(safe-area-inset-top)); }
.search { width: 100%; padding: 9px 16px; border-radius: 20px; border: 1px solid transparent; background: var(--hover); outline: none; }
.search:focus { border-color: var(--accent); background: var(--side); }
.list { flex: 1; overflow-y: auto; }
.row { display: flex; gap: 10px; align-items: center; padding: 8px 10px 8px 9px; margin: 0 6px; border-radius: 10px; cursor: pointer; }
.row:hover { background: var(--hover); }
.row.on { background: var(--sel); color: var(--sel-ink); }
.row.on .last, .row.on .time { color: rgba(255,255,255,.85); } .row.on .tick { color: #fff; }
.meta { flex: 1; min-width: 0; }
.l1, .l2 { display: flex; align-items: center; gap: 6px; }
.l1 .name { flex: 1; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time { color: var(--sub); font-size: 12.5px; white-space: nowrap; }
.tick { color: #4FAE4E; font-style: normal; margin-right: 3px; }
.l2 .last { flex: 1; color: var(--sub); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.last.at { color: var(--accent); }
.badge { color: var(--accent); font-size: 12px; } .row.on .badge { color: #fff; }
.avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 20px; color: #fff; background: linear-gradient(#72D5FD, #2A9EF1); overflow: hidden; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 42px; height: 42px; font-size: 16px; }
.dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: #0AC630; border: 2.5px solid var(--side); }
.empty { text-align: center; color: var(--sub); padding: 40px 20px; }
.section { padding: 10px 16px 4px; color: var(--sub); font-size: 13.5px; font-weight: 600; background: var(--hover); margin-top: 6px; }
.install { margin: 0 12px 8px; padding: 9px 12px; border-radius: 10px; background: var(--hover); font-size: 13px; }

/* ---------- chat */
.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.wall { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, var(--wall1), var(--wall2) 45%, var(--wall3)); }
.wall::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 22h28a6 6 0 0 1 6 6v14a6 6 0 0 1-6 6H30l-8 7v-7h-4a6 6 0 0 1-6-6V28a6 6 0 0 1 6-6z'/%3E%3Cpath d='M112 20l4 9 10 1-7 7 2 10-9-5-9 5 2-10-7-7 10-1z'/%3E%3Cpath d='M70 92c-6-7-18-2-14 8 3 7 14 13 14 13s11-6 14-13c4-10-8-15-14-8z'/%3E%3Ccircle cx='128' cy='110' r='12'/%3E%3Cpath d='M122 108h0M134 108h0M123 115c3 3 7 3 10 0'/%3E%3Cpath d='M22 120l14-8 6 12-14 8z'/%3E%3Cpath d='M98 140h20M108 130v20'/%3E%3Cpath d='M70 34c8-6 18 2 12 10'/%3E%3C/g%3E%3C/svg%3E") repeat; background-size: 150px 150px; opacity: .14; }
@media (prefers-color-scheme: dark) { .wall::before { filter: invert(1); opacity: .05; } }
.main > :not(.wall) { position: relative; z-index: 1; }
.hello { margin: auto; }
.hello span { display: inline-block; background: var(--chip); color: #fff; padding: 4px 12px; border-radius: 14px; font-size: 14px; }
.chead { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 14px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--side); border-bottom: 1px solid var(--line); min-height: 56px; }
.chead .who { flex: 1; min-width: 0; }
.chead .name { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chead .star { color: var(--accent); }
.sub { color: var(--sub); font-size: 13.5px; } .sub.on { color: var(--accent); }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--sub); flex: none; }
.iconbtn:hover { background: var(--hover); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn.back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 10px max(12px, calc((100% - 760px) / 2)) 10px; display: flex; flex-direction: column; gap: 2px; }
.day { align-self: center; background: var(--chip); color: #fff; font-size: 13px; font-weight: 500; padding: 2px 10px; border-radius: 12px; margin: 10px 0 6px; }
.b { max-width: min(80%, 480px); padding: 6px 9px 6px 11px; border-radius: 15px; background: var(--in); box-shadow: var(--shadow); position: relative; word-wrap: break-word; white-space: pre-wrap; font-size: 15px; }
.b.me { align-self: flex-end; background: var(--out); border-bottom-right-radius: 4px; }
.b.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.b + .b.me, .b + .b.them { margin-top: 1px; }
.b .t { font-size: 12px; color: var(--meta); float: right; margin: 7px 0 -4px 12px; user-select: none; }
.b.me .t { color: var(--out-meta); }
.b.bare { background: transparent; box-shadow: none; padding: 0; }
.b.bare .t { float: none; display: inline-block; background: var(--chip); color: #fff; padding: 0 7px; border-radius: 10px; margin: 2px 0 0; }
.b.flash { animation: fl 1.4s; } @keyframes fl { 30% { box-shadow: 0 0 0 4px var(--accent); } }
.b a { color: var(--accent); }
.b img.media, .b video.media { display: block; max-width: 100%; max-height: 340px; border-radius: 12px; margin: -2px -5px 4px -7px; }
.b img.sticker { width: 150px; height: 150px; object-fit: contain; display: block; }
.b .big { font-size: 52px; line-height: 1.12; }
.ie { height: 1.4em; vertical-align: -0.35em; margin: 0 -0.1em; }
.b.big .ie { height: 64px; vertical-align: middle; }
.note { color: var(--sub); font-style: italic; }
.composer { display: flex; align-items: flex-end; gap: 4px; padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: var(--side); border-top: 1px solid var(--line); min-height: 54px; }
.ce { flex: 1; max-height: 160px; overflow-y: auto; padding: 12px 8px; outline: none; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.ce:empty::before { content: attr(data-ph); color: var(--sub); pointer-events: none; }
.ce .ie { height: 1.45em; }
.cbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--sub); flex: none; }
.cbtn:hover { color: var(--accent); }
.cbtn svg { width: 25px; height: 25px; }
.cbtn.send { color: var(--accent); }

/* ---------- emoji panel */
.panel { background: var(--side); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.app:not(.panelon) .panel { display: none; }
.ptabs { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 6px; }
.ptabs button { flex: 1; padding: 14px 4px 12px; color: var(--sub); font-weight: 600; border-bottom: 2px solid transparent; }
.ptabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.ptabs .pclose { flex: none; width: 36px; }
.pgrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 2px; padding: 8px; align-content: start; }
.pe { height: 42px; font-size: 27px; border-radius: 8px; display: grid; place-items: center; }
.pe:hover { background: var(--hover); }
.pe img { width: 34px; height: 34px; object-fit: contain; }

/* ---------- phone / small window */
@media (max-width: 900px) { .app.panelon { grid-template-columns: 72px 300px 1fr 300px; } }
@media (max-width: 760px) {
  .app, .app.panelon { grid-template-columns: 1fr; }
  .rail { display: none; }
  .app.chatting .side { display: none; }
  .app:not(.chatting) .main { display: none; }
  .iconbtn.back { display: grid; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; height: 42dvh; z-index: 5; border-left: 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.15); }
  .app.panelon .msgs { padding-bottom: 42dvh; }
  .app.panelon .composer { margin-bottom: 42dvh; }
  .avatar { width: 50px; height: 50px; }
}
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(0,0,0,.78); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); z-index: 10; }
#toast.show { opacity: 1; }

/* ---------- phone: top bar, folder tabs, ☰ menu, ✏️ button */
.mtop, .mtabs, .fab { display: none; }
.drawer { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.dpanel { position: absolute; top: 0; bottom: 0; left: 0; width: min(300px, 82vw); background: var(--side); transform: translateX(-100%); transition: transform .22s; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.drawer.open .dpanel { transform: none; }
.dhead { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 16px; padding-top: max(22px, env(safe-area-inset-top)); background: linear-gradient(135deg, #3390EC, #6C3BFF); color: #fff; }
.dhead .avatar { width: 64px; height: 64px; }
.dname { font-weight: 600; font-size: 16px; } .dsub { opacity: .85; font-size: 13.5px; }
.ditem { display: flex; align-items: center; gap: 22px; width: 100%; padding: 13px 22px; text-align: left; font-size: 15px; text-decoration: none; color: var(--ink); }
.ditem:hover { background: var(--hover); }
.ditem.danger { color: var(--danger); }
.dfoot { color: var(--sub); font-size: 12px; padding: 14px 22px; }
@media (max-width: 760px) {
  .mtop { display: flex; align-items: center; gap: 6px; padding: 6px 6px 2px; padding-top: max(6px, env(safe-area-inset-top)); }
  .mtop b { flex: 1; font-size: 20px; padding-left: 6px; }
  .stop { display: none; padding-top: 4px; }
  .app.searching .stop { display: block; }
  .mtabs { display: flex; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .mtabs button { position: relative; padding: 10px 12px; color: var(--sub); font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; }
  .mtabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
  .mtabs .cnt:empty { display: none; }
  .mtabs .cnt { font-style: normal; margin-left: 5px; background: var(--accent); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; }
  .row { margin: 0; border-radius: 0; padding: 9px 14px; }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 4; }
  .fab svg { width: 26px; height: 26px; }
  .app.chatting .fab { display: none; }
}

/* ---------- phone v1.1: looks like the ChatNexa Android app */
.mpage, .fabs, .bnav { display: none; }
@media (max-width: 760px) {
  .side { --bnav-h: 74px; }
  .mtop { gap: 2px; padding: 10px 8px 6px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
  .mtop .iconbtn { width: 44px; height: 44px; color: var(--ink); }
  .mtop .iconbtn svg { width: 26px; height: 26px; }
  .sring { display: flex; padding: 0; margin-right: 8px; }
  .sring:empty { display: none; }
  .avatar.ring { width: 42px; height: 42px; font-size: 16px; box-shadow: 0 0 0 2px var(--side), 0 0 0 4px #3D7BFF; margin-right: -12px; }
  .sring .avatar.ring:last-child { margin-right: 0; }
  .mtop b.brand { flex: 1; font-size: 25px; font-weight: 800; padding-left: 10px; letter-spacing: -.01em;
    background: linear-gradient(90deg, #1F6BFF, #3D8BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .mtabs { gap: 2px; margin: 6px 12px 6px; padding: 4px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 26px; scrollbar-width: none; }
  .mtabs::-webkit-scrollbar { display: none; }
  .mtabs button { flex: 1; border: 0; border-radius: 22px; padding: 9px 14px; font-size: 15.5px; font-weight: 500; color: var(--sub); display: flex; align-items: center; justify-content: center; }
  .mtabs button.on { color: #1F6BFF; background: #E3EEFF; border: 0; font-weight: 600; }
  .mtabs .cnt { margin-left: 7px; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; padding: 0 6px; background: #A8B3C2; font-size: 12px; text-align: center; }
  .mtabs button.on .cnt { background: #1F6BFF; }
  .row { padding: 8px 14px; gap: 14px; }
  .row .avatar { width: 54px; height: 54px; font-size: 21px; background: linear-gradient(160deg, #3D8BFF, #4F46E5); }
  .row .name { font-weight: 700; font-size: 16px; }
  .row .last { font-size: 15px; }
  .row .last.onl { color: #16A06A; }
  img.ie.pv { width: 22px; height: 22px; vertical-align: -5px; }
  .list { padding-bottom: calc(var(--bnav-h) + 90px); }
  .fab { display: none !important; }
  .fabs { display: flex; flex-direction: column; align-items: center; gap: 14px; position: fixed; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 4; }
  .fab2 { width: 52px; height: 52px; border-radius: 50%; padding: 0; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.22); }
  .fab2 img { width: 100%; height: 100%; display: block; }
  .fabs .fab { display: grid !important; position: static; width: 62px; height: 62px; background: #1F6BFF; }
  .fabs .fab svg { width: 28px; height: 28px; }
  .bnav { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: var(--bnav-h, 74px); z-index: 4;
    background: var(--side); border: 1px solid var(--line); border-radius: 28px; padding: 5px; box-shadow: 0 2px 14px rgba(0,0,0,.08); }
  .bnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 22px; color: var(--sub); min-width: 0; }
  .bnav button b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
  .bnav button.on { background: #E3EEFF; color: #1F6BFF; }
  .bi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
  .bnav [data-t="social"] .bi { border-radius: 50%; }
  .bi svg { width: 21px; height: 21px; }
  .app.chatting .fabs, .app.chatting .bnav { display: none; }
  .app:not([data-tab="chats"]) .side, .app:not([data-tab="chats"]) .fabs { display: none; }
  .app:not([data-tab="chats"]):not(.chatting) .mpage { display: block; overflow-y: auto; height: 100dvh; padding-bottom: 100px; }
  .app.chatting .mpage { display: none !important; }
  .phead { padding: 16px 18px 10px; padding-top: max(16px, env(safe-area-inset-top)); }
  .phead b { font-size: 25px; font-weight: 800; }
  .prow { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 18px; text-align: left; font-size: 16px; color: var(--ink); text-decoration: none; }
  .prow.danger { color: var(--danger); }
  .prow .pic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; background: #1F6BFF; flex: none; }
  .prow.act { color: #1F6BFF; font-weight: 600; }
  .pme { display: flex; align-items: center; gap: 14px; margin: 4px 14px 12px; padding: 14px; border-radius: 18px; background: var(--hover); }
  .pme .avatar { width: 60px; height: 60px; font-size: 24px; }
  .soon { text-align: center; padding: 50px 28px; }
  .soon .big { font-size: 56px; } .soon h3 { margin: 10px 0 6px; } .soon p { color: var(--sub); margin: 0 0 18px; }
  .soon .btn { display: inline-block; width: auto; padding: 13px 22px; text-decoration: none; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  .mtabs button.on, .bnav button.on { background: #1E2F4A; color: #6EA8FF; }
}

/* ---------- v1.2: AI + Browser buttons, "+" create sheet, settings */
.b { font-size: var(--fs, 15px); }
.ce { font-size: var(--fs, 15px); }
.fabai { display: none; }
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet.open { opacity: 1; pointer-events: auto; }
.sbox { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; background: var(--side); border-radius: 26px 26px 0 0;
  padding: 6px 0 calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .24s; max-width: 560px; margin: 0 auto; }
.sheet.open .sbox { transform: none; }
.shandle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 10px; }
.stitle { font-size: 20px; font-weight: 700; padding: 4px 22px 8px; }
.citem { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 22px; text-align: left; }
.citem:active, .citem:hover { background: var(--hover); }
.cic { width: 46px; height: 46px; border-radius: 50%; background: #EAF2FF; display: grid; place-items: center; font-size: 21px; flex: none; }
.citem b { display: block; font-size: 16px; font-weight: 600; } .citem small { display: block; color: var(--sub); font-size: 13.5px; line-height: 1.3; }
.bhead { display: flex; align-items: center; gap: 12px; padding: 4px 20px 6px; } .bhead img { width: 44px; height: 44px; border-radius: 50%; } .bhead b { font-size: 19px; }
.bform { display: flex; gap: 8px; padding: 0 16px; align-items: center; } .bform .field { flex: 1; margin: 8px 0; } .bform .btn { width: auto; margin: 0; padding: 14px 18px; }
.bquick { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 6px; }
.bquick a { padding: 9px 14px; border-radius: 20px; background: var(--hover); color: var(--ink); text-decoration: none; font-weight: 500; }
@media (prefers-color-scheme: dark) { .cic { background: #1E2F4A; } }
@media (max-width: 760px) {
  .fabs { gap: 12px; }
  .fabai { display: block; width: 44px; height: 44px; padding: 0; border-radius: 50%; overflow: hidden; }
  .fabai img, .fab2 img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .fab2 { width: 54px; height: 54px; }
  .bi:has(img) { box-shadow: none; background: none !important; width: 40px; height: 40px; }
  .bi img { width: 40px; height: 40px; border-radius: 50%; display: block; }
  .pgroup { color: #1F6BFF; font-weight: 600; font-size: 14px; padding: 14px 18px 4px; }
  .prow .pl { flex: 1; }
  .prow .pv2 { color: var(--sub); font-size: 14px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- v1.3: groups & channels */
.b .sname { font-weight: 600; font-size: 13.5px; margin-bottom: 1px; }
.b.post { max-width: min(92%, 560px); }
.last .who2 { color: var(--ink); }
.composer.ro { justify-content: center; color: var(--sub); font-size: 14px; padding: 14px; }
