/* v72.87: Chat, like Telegram, in the studio's black / white / gray. The list of chats on the left, the conversation
   on the right (on a phone: one at a time). My messages are black on the right, others' white on the left.
   v72.88: two see-through glass panels like the rest of the app (the silver background shows through). */
.ch { --ch-mine: #111110; --ch-line: rgba(0,0,0,.07); --ch-glass: rgba(255,255,255,.64); --ch-edge: rgba(255,255,255,.8);
  display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; height: 640px; min-height: 320px; position: relative; }
.ch-side, .ch-conv { min-height: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--ch-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(0,0,0,.05); }
.ch-host { margin: -4px 0 0; }
html.ch-page .jjs-main-inner { padding-bottom: 0 !important; }
html.ch-page body { overscroll-behavior: none; }

/* ---------- the list of chats ---------- */
.ch-side { display: flex; flex-direction: column; background: var(--ch-glass); }
.ch-side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; }
.ch-side-head .h1 { margin: 0; font-size: 24px; }
.ch-search { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 0 12px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 2px rgba(0,0,0,.04); color: #6a6a66; }
.ch-search .jjs-ico { width: 16px; height: 16px; flex: none; }
.ch-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: var(--v2-ink, #0b0b0b); }
.ch-search:focus-within { box-shadow: 0 0 0 2px rgba(0,0,0,.75); background: #fff; }
.ch-rooms { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 6px 10px; }
.ch-room { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.ch-room:hover { background: rgba(255,255,255,.7); }
.ch-room.on { background: var(--ch-mine); color: #fff; }
.ch-room:focus-visible { outline: 2px solid #000; outline-offset: -2px; }
.ch-rtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-rtop, .ch-rbot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ch-rtop b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 650; }
.ch-rtop small { flex: none; font-size: 12px; color: #77776f; }
.ch-room.on .ch-rtop small, .ch-room.on .ch-rprev { color: rgba(255,255,255,.72); }
.ch-rprev { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #6a6a66; }
.ch-rprev.typing { color: #2f6fed; }
.ch-room.unread .ch-rprev { color: #2a2a28; }
.ch-room.on.unread .ch-rprev { color: #fff; }
.ch-rn { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #2f6fed; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ch-room.on .ch-rn { background: #fff; color: #111; }
.ch-norooms { color: #6a6a66; font-size: 13px; padding: 12px; margin: 0; }
.ch-rav { flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; background: #3d3d3a; }
.ch-rav.gen { background: #0b0b0b; }
.ch-rav.gen .jjs-mark { width: 44%; height: 44%; color: #fff; }
.ch-room.on .ch-rav.gen { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.ch-rav.sm { width: 38px; height: 38px; font-size: 13px; }
.ch-rav.lg { width: 72px; height: 72px; font-size: 22px; }

/* ---------- the conversation ---------- */
.ch-conv { position: relative; display: flex; flex-direction: column; min-width: 0; background: rgba(255,255,255,.4); }
.ch-conv.drop::after { content: "Drop to attach"; position: absolute; inset: 10px; border: 2px dashed rgba(0,0,0,.35); border-radius: 14px; background: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #111; z-index: 5; pointer-events: none; }
.ch-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 60px; background: rgba(255,255,255,.62); border-bottom: 1px solid var(--ch-line); }
.ch-back { display: none; border: 0; background: none; padding: 8px; margin-left: -6px; border-radius: 50%; cursor: pointer; color: #111; }
.ch-back .jjs-ico { width: 22px; height: 22px; }
.ch-hbtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 6px; border-radius: 10px; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.ch-hbtn:hover { background: rgba(255,255,255,.7); }
.ch-htxt { min-width: 0; display: flex; flex-direction: column; }
.ch-htxt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-htxt small { font-size: 12.5px; color: #6a6a66; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-htxt small.typing { color: #2f6fed; }
.ch-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 10px 14px 6px; overscroll-behavior: contain; outline: none; display: flex; flex-direction: column; }
.ch-scroll[hidden] { display: none; }
.ch-list { display: flex; flex-direction: column; width: 100%; max-width: 860px; margin: auto auto 0; }
.ch-list.ch-list-empty { margin: auto; }
.ch-older { text-align: center; font-size: 12.5px; color: #6a6a66; padding: 6px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.ch-state { margin: 40px auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #5f5f5a; font-size: 13.5px; line-height: 1.45; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 18px 22px; border-radius: 18px; max-width: 320px; }
.ch-state b { color: #111; font-size: 15px; }
.ch-state.ch-first { margin: auto; padding: 26px 28px 24px; gap: 6px; }
.ch-state.ch-first .ch-rav { margin-bottom: 6px; }
.ch-first-n { font-size: 17px !important; overflow-wrap: anywhere; }
.ch-first-t { max-width: 240px; }
.ch-none { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ch-none[hidden] { display: none; }
.ch-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 340px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 22px 24px; border-radius: 18px; color: #5f5f5a; font-size: 13.5px; line-height: 1.45; }
.ch-pick .jjs-ico { width: 28px; height: 28px; color: #111; }
.ch-pick b { color: #111; font-size: 16px; }
.ch-day, .ch-unreadline { display: flex; justify-content: center; margin: 10px 0 6px; pointer-events: none; } /* v72.88: not floating (it covered the text under it) */
.ch-day span { background: rgba(0,0,0,.42); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ch-unreadline span { width: 100%; text-align: center; background: rgba(255,255,255,.7); color: #444; font-size: 12px; font-weight: 600; padding: 4px; border-radius: 8px; }

/* one message */
.ch-m { position: relative; display: flex; align-items: flex-end; gap: 6px; margin-top: 2px; }
.ch-m.first { margin-top: 8px; }
.ch-m.mine { flex-direction: row-reverse; }
.ch-mav { flex: none; width: 34px; align-self: flex-end; }
.ch-mav .tm-av { width: 34px; height: 34px; font-size: 12px; }
.ch-col { display: flex; flex-direction: column; min-width: 0; max-width: min(560px, 76%); }
.ch-m.mine .ch-col { align-items: flex-end; }
.ch-m.theirs .ch-col { align-items: flex-start; }
.ch-b { position: relative; min-width: 64px; max-width: 100%; padding: 6px 10px 6px; border-radius: 16px; background: #fff; color: #141413; box-shadow: 0 1px 2px rgba(0,0,0,.08); overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.42; }
.ch-m.mine .ch-b { background: var(--ch-mine); color: #fff; }
.ch-m.theirs.last .ch-b { border-bottom-left-radius: 5px; }
.ch-m.mine.last .ch-b { border-bottom-right-radius: 5px; }
.ch-m.theirs:not(.first) .ch-b { border-top-left-radius: 7px; }
.ch-m.mine:not(.first) .ch-b { border-top-right-radius: 7px; }
.ch-m.theirs:not(.last) .ch-b { border-bottom-left-radius: 7px; }
.ch-m.mine:not(.last) .ch-b { border-bottom-right-radius: 7px; }
.ch-m.flash .ch-b { animation: chFlash 1.4s ease; }
@keyframes chFlash { 0%, 40% { box-shadow: 0 0 0 3px #2f6fed; } 100% { box-shadow: 0 1px 2px rgba(0,0,0,.08); } }
.ch-who { display: block; font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.ch-t { white-space: normal; }
.ch-t.big { font-size: 40px; line-height: 1.15; }
.ch-m:has(.ch-t.big):not(:has(.ch-files, .ch-pics, .ch-voice)) .ch-b { background: none; box-shadow: none; padding: 0 2px; }
.ch-m.mine:has(.ch-t.big) .ch-b { color: #111; }
.ch-t a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ch-m.theirs .ch-t a { color: #1d4ed8; }
.ch-at { font-weight: 700; color: #2f6fed; }
.ch-m.mine .ch-at { color: #9ec0ff; }
.ch-at.me { background: rgba(47,111,237,.14); border-radius: 4px; padding: 0 2px; }
.ch-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -4px 10px; font-size: 11px; line-height: 1; color: #8a8a83; white-space: nowrap; user-select: none; }
.ch-m.mine .ch-meta { color: rgba(255,255,255,.62); }
.ch-meta.solo { float: none; display: flex; justify-content: flex-end; margin: 4px 0 0; }
.ch-ed { font-style: italic; }
.ch-tick { display: inline-flex; }
.ch-tick .jjs-ico { width: 15px; height: 15px; }
.ch-tick.seen { color: #7fb2ff; }
.ch-tick.bad { width: 15px; height: 15px; border-radius: 50%; background: #cf2a1f; color: #fff; font-weight: 800; font-size: 10px; align-items: center; justify-content: center; }
.ch-m.gone .ch-b { background: rgba(255,255,255,.55); color: #77776f; box-shadow: none; border: 1px dashed rgba(0,0,0,.15); font-style: italic; font-size: 13.5px; }
.ch-m.mine.gone .ch-b { background: rgba(0,0,0,.06); color: #6a6a66; }
.ch-m.failed .ch-b { opacity: .78; }
.ch-fail { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; font-size: 12px; color: #cf2a1f; max-width: 100%; }
.ch-fail span { flex: 1 1 100%; text-align: right; }
.ch-fail .jjs-btn { background: #fff; }
/* the message it answers */
.ch-q { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 120px; margin: 2px 0 5px; padding: 3px 8px; border: 0; border-left: 3px solid #2f6fed; border-radius: 4px 8px 8px 4px; background: rgba(47,111,237,.08); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.ch-m.mine .ch-q { background: rgba(255,255,255,.12); border-left-color: #fff; }
.ch-q b { font-size: 12.5px; color: #2f6fed; }
.ch-m.mine .ch-q b { color: #fff; }
.ch-q span { font-size: 12.5px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* photos */
.ch-pics { display: grid; gap: 3px; margin: 2px -6px 4px; border-radius: 12px; overflow: hidden; width: min(320px, 62vw); }
.ch-pics.n2 { grid-template-columns: 1fr 1fr; } .ch-pics.n3 { grid-template-columns: 1fr 1fr; } .ch-pics.n3 .ch-pic:first-child { grid-column: span 2; } .ch-pics.n4 { grid-template-columns: 1fr 1fr; }
.ch-pic { position: relative; display: block; border: 0; padding: 0; margin: 0; background: #e6e6e1; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.ch-pics.n1 .ch-pic { aspect-ratio: auto; min-height: 120px; max-height: 360px; }
.ch-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-pics.n1 .ch-pic img { height: auto; max-height: 360px; }
.ch-pic.broken::after { content: "Photo not available"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #6a6a66; }
.ch-ring { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.5); overflow: hidden; }
.ch-ring i { display: block; height: 100%; background: #fff; transition: width .2s; }
/* files */
.ch-file { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 320px; margin: 2px 0 4px; padding: 6px 8px 6px 4px; border: 0; border-radius: 10px; background: rgba(0,0,0,.04); cursor: pointer; text-align: left; color: inherit; font: inherit; }
.ch-m.mine .ch-file { background: rgba(255,255,255,.1); }
.ch-ficon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ch-m.mine .ch-ficon { background: #fff; color: #111; }
.ch-ficon .jjs-ico { width: 18px; height: 18px; }
.ch-ftxt { min-width: 0; display: flex; flex-direction: column; }
.ch-ftxt b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-ftxt small { font-size: 12px; opacity: .7; }
/* voice */
.ch-voice { display: flex; align-items: center; gap: 10px; min-width: 220px; margin: 2px 0; }
.ch-vplay { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ch-m.mine .ch-vplay { background: #fff; color: #111; }
.ch-vplay .jjs-ico { width: 18px; height: 18px; }
.ch-vwave { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; min-width: 120px; }
.ch-vwave i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(0,0,0,.25); }
.ch-vwave i.p { background: #111; }
.ch-m.mine .ch-vwave i { background: rgba(255,255,255,.35); }
.ch-m.mine .ch-vwave i.p { background: #fff; }
.ch-vtime { flex: none; font-size: 12px; opacity: .75; min-width: 32px; font-variant-numeric: tabular-nums; }
/* reactions */
.ch-rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ch-rxc { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 6px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); background: #fff; cursor: pointer; font: inherit; font-size: 12.5px; color: #333; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.ch-rxc.me { background: #111; color: #fff; border-color: #111; }
.ch-rxe { font-size: 15px; line-height: 1; }
.ch-rxn { display: inline-flex; align-items: center; font-weight: 700; }
.ch-rxn .tm-av { width: 18px; height: 18px; font-size: 8px; }
/* seen by */
.ch-m { flex-wrap: wrap; }
.ch-seen { flex: 0 0 100%; display: flex; gap: 2px; align-items: center; margin-top: 3px; justify-content: flex-end; }
.ch-seen .tm-av { width: 16px; height: 16px; font-size: 7px; border: 1.5px solid #fff; box-sizing: content-box; }
.ch-seen-more { font-size: 10.5px; color: #6a6a66; margin-left: 2px; }
/* the hover buttons */
.ch-tools { position: absolute; top: -14px; display: none; gap: 2px; padding: 2px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.14); z-index: 3; }
.ch-m.theirs .ch-tools { left: 48px; }
.ch-m.mine .ch-tools { right: 8px; }
.ch-tb { width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: #333; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ch-tb:hover { background: #f0f0ec; }
.ch-tb .jjs-ico { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .ch-m:hover .ch-tools, .ch-m:focus-within .ch-tools { display: flex; } }
@media (hover: none) { .ch-b { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } }
/* jump to the newest */
.ch-jump { position: absolute; right: 18px; bottom: 84px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; box-shadow: 0 3px 12px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 4; }
.ch-jump[hidden] { display: none; }
.ch-jump .jjs-ico { width: 22px; height: 22px; }
.ch-jump-n { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #2f6fed; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ch-jump-n[hidden] { display: none; }

/* ---------- writing ---------- */
.ch-compose { position: relative; padding: 6px 12px 12px; }
.ch-compose[hidden] { display: none; }
.ch-bar, .ch-recbar { display: flex; align-items: flex-end; gap: 6px; max-width: 860px; margin: 0 auto; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.95); border-radius: 24px; padding: 5px 6px; box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.ch-bar[hidden], .ch-recbar[hidden] { display: none; }
.ch-input { flex: 1; min-width: 0; border: 0; outline: none; resize: none; background: none; font: inherit; font-size: 15px; line-height: 1.4; padding: 8px 4px; max-height: 180px; overflow-y: hidden; color: #141413; }
.ch-input.scroll { overflow-y: auto; }
.ch-ibtn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: #55554f; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ch-ibtn:hover { background: #f2f2ef; color: #111; }
.ch-ibtn[hidden] { display: none; }
.ch-ibtn .jjs-ico { width: 21px; height: 21px; }
.ch-send { background: #111; color: #fff; }
.ch-send:hover { background: #333; color: #fff; }
.ch-ctx { display: flex; align-items: center; gap: 10px; max-width: 860px; margin: 0 auto 6px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ch-ctx[hidden] { display: none; }
.ch-ctx-ic { color: #2f6fed; display: inline-flex; } .ch-ctx-ic .jjs-ico { width: 18px; height: 18px; }
.ch-ctx-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 2px solid #2f6fed; padding-left: 8px; }
.ch-ctx-txt b { font-size: 12.5px; color: #2f6fed; }
.ch-ctx-txt span { font-size: 13px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-pend { display: flex; gap: 8px; flex-wrap: wrap; max-width: 860px; margin: 0 auto 6px; }
.ch-pend[hidden] { display: none; }
.ch-pf { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 4px 4px 4px 4px; box-shadow: 0 1px 3px rgba(0,0,0,.08); max-width: 240px; }
.ch-pf img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.ch-pf .ch-ficon { width: 36px; height: 36px; }
.ch-pf-n { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.ch-pf-x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #f0f0ec; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ch-pf-x .jjs-ico { width: 14px; height: 14px; }
.ch-closed { max-width: 860px; margin: 0 auto; text-align: center; font-size: 13px; color: #5f5f5a; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); border-radius: 14px; padding: 10px; }
.ch-closed[hidden] { display: none; }
/* recording */
.ch-recbar { align-items: center; padding-left: 4px; }
.ch-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e11d48; animation: chRec 1s infinite; flex: none; }
@keyframes chRec { 50% { opacity: .25; } }
.ch-rec-t { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; min-width: 40px; }
.ch-rec-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; min-width: 0; }
.ch-rec-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #111; opacity: .7; transition: height .1s; }
.ch-rec-x { color: #cf2a1f; }
/* @mention suggestions */
.ch-ment { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); max-width: 420px; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.16); padding: 6px; z-index: 6; }
.ch-ment[hidden] { display: none; }
.ch-mo { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.ch-mo.on, .ch-mo:hover { background: #f2f2ef; }
.ch-mo span { display: flex; flex-direction: column; min-width: 0; }
.ch-mo b { font-size: 14px; } .ch-mo small { font-size: 12px; color: #6a6a66; }

/* ---------- pop-ups: reactions, a message's menu, members ---------- */
.ch-pop { position: fixed; z-index: 1200; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 6px; max-width: min(360px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto; }
.ch-pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; max-width: none; border-radius: 20px 20px 0 0; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); animation: chUp .18s ease; }
@keyframes chUp { from { transform: translateY(30px); opacity: 0; } }
.ch-popbg { position: fixed; inset: 0; z-index: 1199; background: rgba(0,0,0,.32); }
.ch-rrow { display: flex; gap: 2px; align-items: center; padding: 2px; }
.ch-rgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px 2px 2px; border-top: 1px solid #eee; margin-top: 4px; }
.ch-rp { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .1s; }
.ch-rp:hover, .ch-rp:focus-visible { background: #f2f2ef; transform: scale(1.12); outline: none; }
.ch-rp.me { background: #e8efff; }
.ch-rmore { color: #55554f; }
.ch-rmore .jjs-ico { width: 20px; height: 20px; }
.ch-mmenu { display: flex; flex-direction: column; min-width: 220px; }
.ch-mmenu .ch-rrow { border-bottom: 1px solid #eee; padding-bottom: 6px; margin-bottom: 4px; }
.ch-mi { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; font: inherit; font-size: 14px; color: #141413; }
.ch-mi:hover, .ch-mi:focus-visible { background: #f2f2ef; outline: none; }
.ch-mi .jjs-ico { width: 18px; height: 18px; color: #55554f; }
.ch-mi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-mi.bad, .ch-mi.bad .jjs-ico { color: #cf2a1f; }
.ch-mstamp { margin: 4px 12px 2px; font-size: 11.5px; color: #8a8a83; }
.ch-mem { padding: 8px 8px 4px; min-width: 260px; }
.ch-mem-h { display: block; font-size: 16px; }
.ch-mem-sub { margin: 4px 0 10px; font-size: 12.5px; color: #6a6a66; line-height: 1.45; }
.ch-mem-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow: auto; }
.ch-mem-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.ch-mem-row span { display: flex; flex-direction: column; } .ch-mem-row b { font-size: 14px; } .ch-mem-row small { font-size: 12px; color: #6a6a66; }

/* v72.88: smaller laptops and tablets: a narrower chat list, so the conversation keeps its room */
@media (max-width: 1240px) and (min-width: 861px) { .ch { grid-template-columns: 280px minmax(0, 1fr); gap: 12px; } }
@media (max-width: 1060px) and (min-width: 861px) {
  .ch { grid-template-columns: 236px minmax(0, 1fr); }
  .ch-room { gap: 10px; padding: 8px; } .ch-room .ch-rav { width: 40px; height: 40px; font-size: 13px; }
  .ch-side-head { padding: 14px 14px 8px; } .ch-search { margin: 0 10px 8px; }
}
/* ---------- phone and narrow screens: one at a time ---------- */
@media (max-width: 860px) {
  .ch { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ch-side, .ch-conv { border-radius: 16px; }
  .ch:not(.has-room) .ch-conv { display: none; }
  .ch.has-room .ch-side { display: none; }
  .ch-back { display: inline-flex; }
  .ch-col { max-width: 84%; }
  .ch-tools { display: none !important; }
  html.ch-open .v2-dock { display: none !important; }
  html.ch-open .ch { margin: 0 -16px; }
  html.ch-open .ch-conv { border-radius: 0; border-left: 0; border-right: 0; background: rgba(255,255,255,.5); }
  .ch-scroll { padding: 8px 8px 4px; }
  .ch-compose { padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
  .ch-mav { width: 30px; } .ch-mav .tm-av { width: 30px; height: 30px; }
  .ch-jump { bottom: 76px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ch-m.flash .ch-b, .ch-pop.sheet, .ch-rec-dot { animation: none; } }
.ch-t.big .ch-meta { float: none; display: flex; justify-content: flex-end; margin: 2px 0 0; }
.ch-m.mine .ch-t.big .ch-meta { color: #8a8a83; }

/* v72.88: browsers without see-through support keep the panels readable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .ch-pop { background: #fff; } }
/* v72.88: slim scrollbars (Windows and a Mac with a mouse showed thick grey bars on the glass panels) */
.ch-rooms, .ch-scroll, .ch-input.scroll, .ch-mem-list, .ch-pop { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.22) transparent; }
.ch-rooms::-webkit-scrollbar, .ch-scroll::-webkit-scrollbar, .ch-input::-webkit-scrollbar, .ch-mem-list::-webkit-scrollbar, .ch-pop::-webkit-scrollbar { width: 8px; height: 8px; }
.ch-rooms::-webkit-scrollbar-thumb, .ch-scroll::-webkit-scrollbar-thumb, .ch-input::-webkit-scrollbar-thumb, .ch-mem-list::-webkit-scrollbar-thumb, .ch-pop::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.ch-rooms::-webkit-scrollbar-track, .ch-scroll::-webkit-scrollbar-track, .ch-input::-webkit-scrollbar-track, .ch-mem-list::-webkit-scrollbar-track, .ch-pop::-webkit-scrollbar-track { background: transparent; }
/* touch screens: 16px text in the boxes, so iPhone Safari doesn't zoom in when you tap them */
@media (pointer: coarse), (max-width: 860px) { .ch-input, .ch-search input { font-size: 16px; } }
