/* =========================================================
   Chat app look (dark, 2026 style): chats list, chat screen,
   Updates (status + channels), Communities, Calls, menus.
   Loaded after style.css, so it wins.
   ========================================================= */
:root {
  /* dark (2026 design tokens) */
  --wa-bg: #161717; --wa-bg2: #1D1F1F; --wa-card: #1D1F1F; --wa-pill: #242626; --wa-hdr: #161717;
  --wa-tx: #FAFAFA; --wa-tx2: rgba(250,250,250,.6); --wa-line: rgba(255,255,255,.1);
  --wa-green: #21C063; --wa-green2: #21C063; --wa-nav: #103529; --wa-chip-tx: #D8FDD2; --wa-on: #0A0A0A;
  --wa-in: #242626; --wa-out: #144D37; --wa-blue: #53BDEB; --wa-menu: #242626;
  --wa-press: rgba(255,255,255,.07); --wa-av-bg: #242626; --wa-grey: #757778; --wa-red: #FB5061;
  --wa-sys: #1D1F1F; --wa-e2e-bg: #1D1F1F; --wa-e2e-tx: #FFD279; --wa-mt: rgba(250,250,250,.6);
  --wa-shadow: rgba(0,0,0,.25); --wa-quote: rgba(0,0,0,.22); --wa-quote-bar: #06CF9C; --wa-toast: #2E3030;
  --wa-wall-c: #161717; --wa-wall: 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='%23ffffff' stroke-opacity='.06' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 22a8 8 0 1 1 0 .1zM14 22h12M20 16v12'/%3E%3Cpath d='M64 18l6 10h-12z'/%3E%3Cpath d='M110 14c4-6 14-6 14 3 0 7-14 15-14 15s-14-8-14-15c0-9 10-9 14-3z'/%3E%3Crect x='16' y='62' width='18' height='14' rx='3'/%3E%3Cpath d='M62 64a9 9 0 1 0 0 12M70 60v20'/%3E%3Cpath d='M104 62h18v12l-9 6-9-6z'/%3E%3Cpath d='M138 66l6 6-6 6M146 72h-14'/%3E%3Cpath d='M18 112c6-8 18-8 18 0s-12 10-18 0z'/%3E%3Ccircle cx='66' cy='112' r='8'/%3E%3Cpath d='M62 110h.1M70 110h.1M62 116c2 2 6 2 8 0'/%3E%3Cpath d='M106 104l8 16 8-16z'/%3E%3Cpath d='M142 106v14M136 113h12'/%3E%3Cpath d='M30 146l8-8 8 8-8 8z'/%3E%3Cpath d='M84 140h22v12H84zM90 140v-4h10v4'/%3E%3Cpath d='M136 140l10 10M146 140l-10 10'/%3E%3C/g%3E%3C/svg%3E");
  --wa-link: #53BDEB;
}
:root[data-wa="light"] {
  --wa-bg: #FFFFFF; --wa-bg2: #F7F5F3; --wa-card: #FFFFFF; --wa-pill: #F6F5F4; --wa-hdr: #FFFFFF;
  --wa-tx: #0A1014; --wa-tx2: #5B6368; --wa-line: rgba(0,0,0,.08);
  --wa-green: #1DAA61; --wa-green2: #1DAA61; --wa-nav: #D9FDD3; --wa-chip-tx: #15603E; --wa-on: #FFFFFF;
  --wa-in: #FFFFFF; --wa-out: #D9FDD3; --wa-blue: #53BDEB; --wa-menu: #FFFFFF;
  --wa-press: rgba(0,0,0,.05); --wa-av-bg: #DFE5E7; --wa-grey: #C4C9CC; --wa-red: #EA0038;
  --wa-sys: #FFFFFF; --wa-e2e-bg: #FFEECD; --wa-e2e-tx: #54656F; --wa-mt: rgba(10,16,20,.45);
  --wa-shadow: var(--wa-shadow); --wa-quote: rgba(0,0,0,.05); --wa-quote-bar: #06CF9C; --wa-toast: #3B4A54;
  --wa-wall-c: #EFEAE2; --wa-wall: 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='%23000000' stroke-opacity='.07' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 22a8 8 0 1 1 0 .1zM14 22h12M20 16v12'/%3E%3Cpath d='M64 18l6 10h-12z'/%3E%3Cpath d='M110 14c4-6 14-6 14 3 0 7-14 15-14 15s-14-8-14-15c0-9 10-9 14-3z'/%3E%3Crect x='16' y='62' width='18' height='14' rx='3'/%3E%3Cpath d='M62 64a9 9 0 1 0 0 12M70 60v20'/%3E%3Cpath d='M104 62h18v12l-9 6-9-6z'/%3E%3Cpath d='M138 66l6 6-6 6M146 72h-14'/%3E%3Cpath d='M18 112c6-8 18-8 18 0s-12 10-18 0z'/%3E%3Ccircle cx='66' cy='112' r='8'/%3E%3Cpath d='M62 110h.1M70 110h.1M62 116c2 2 6 2 8 0'/%3E%3Cpath d='M106 104l8 16 8-16z'/%3E%3Cpath d='M142 106v14M136 113h12'/%3E%3Cpath d='M30 146l8-8 8 8-8 8z'/%3E%3Cpath d='M84 140h22v12H84zM90 140v-4h10v4'/%3E%3Cpath d='M136 140l10 10M146 140l-10 10'/%3E%3C/g%3E%3C/svg%3E");
  --wa-link: #027EB5;
}
:root[data-wa="light"] .notif, :root[data-wa="light"] .igs, :root[data-wa="light"] .dm-sheet, :root[data-wa="light"] .wa-menu, :root[data-wa="light"] .wa-att { box-shadow: 0 4px 18px rgba(0,0,0,.18) !important; }
:root[data-wa="light"] #toast { color: #fff !important; }

html, body { background: var(--wa-bg); }
body { font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif; }
.ig-nav, #igSplash .sp-from, #ibNotes, #ibTabs, #inbox > .pr-top, .ib-meta { display: none !important; }

/* ---------------- splash ---------------- */
#igSplash { background: var(--wa-bg) !important; }
#igSplash img { width: 84px !important; height: 84px !important; border-radius: 22px; }
#igSplash .wa-sp-b { position: absolute; bottom: 48px; left: 0; right: 0; text-align: center; color: var(--wa-tx2); font-size: 13px; letter-spacing: .3px; }
#igSplash .wa-sp-b b { display: block; color: var(--wa-tx); font-size: 16px; margin-top: 2px; font-weight: 600; }

/* ---------------- home ---------------- */
#inbox.wa-home { background: var(--wa-bg); color: var(--wa-tx); display: none; flex-direction: column; }
#inbox.wa-home.on { display: flex; }
.wa-top { display: flex; align-items: center; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 8px 6px 16px; background: var(--wa-bg); flex-shrink: 0; }
.wa-top .wa-title { font-size: 23px; font-weight: 600; color: var(--wa-tx); letter-spacing: -.2px; user-select: none; }
#inbox[data-tab="chats"] .wa-top .wa-title { color: var(--wa-tx); }
.wa-top .grow { flex: 1; }
.wa-ib { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--wa-tx); background: none; border: 0; }
.wa-ib:active { background: var(--wa-press); }
#inbox .pr-scroll { background: var(--wa-bg); flex: 1; overflow-y: auto; padding-bottom: 90px; }
#inbox:not([data-tab="chats"]) .pr-scroll { display: none; }
#inbox .ib-search { margin: 4px 16px 8px; background: var(--wa-pill); border-radius: 24px; height: 44px; padding: 0 16px; gap: 12px; border: 0; }
#inbox .ib-search input { color: var(--wa-tx); font-size: 16px; background: none; }
#inbox .ib-search input::placeholder { color: var(--wa-tx2); }
.wa-chips { display: flex; gap: 8px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.wa-chips::-webkit-scrollbar { display: none; }
.wa-chips button { flex-shrink: 0; border: 0; border-radius: 18px; padding: 7px 14px; background: var(--wa-pill); color: var(--wa-tx2); font-size: 14px; font-weight: 500; }
.wa-chips button.on { background: var(--wa-nav); color: var(--wa-chip-tx); }
.wa-chips button b { font-weight: 500; margin-left: 4px; }

.wa-row { display: flex; align-items: center; gap: 14px; padding: 9px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wa-row:active { background: var(--wa-press); }
.wa-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--wa-av-bg); }
.wa-mid { flex: 1; min-width: 0; }
.wa-l1, .wa-l2 { display: flex; align-items: center; gap: 8px; }
.wa-l1 b { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; color: var(--wa-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-l1 time { font-size: 12px; color: var(--wa-tx2); flex-shrink: 0; }
.wa-row.unread .wa-l1 time { color: var(--wa-green); }
.wa-l2 { margin-top: 3px; }
.wa-pv { flex: 1; min-width: 0; font-size: 14.5px; color: var(--wa-tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.wa-pv > span { overflow: hidden; text-overflow: ellipsis; }
.wa-pv.typing { color: var(--wa-green); }
.wa-row.unread .wa-pv { color: var(--wa-tx); }
.wa-bd { display: flex; align-items: center; gap: 6px; color: var(--wa-tx2); flex-shrink: 0; }
.wa-n { min-width: 21px; height: 21px; border-radius: 11px; background: var(--wa-green); color: var(--wa-on); font-size: 12px; font-weight: 600; display: grid; place-items: center; padding: 0 6px; }
.wa-row.muted .wa-n { background: var(--wa-grey); color: var(--wa-tx); }
.wa-tk { display: inline-flex; flex-shrink: 0; }
.wa-tk.read { color: var(--wa-blue); }
.wa-tk.dlv, .wa-tk.sent { color: var(--wa-tx2); }
.wa-empty { text-align: center; color: var(--wa-tx2); padding: 40px 30px; font-size: 14px; line-height: 1.5; }
.wa-lock { text-align: center; color: var(--wa-tx2); font-size: 12px; padding: 18px 30px 6px; }
.wa-lock b { color: var(--wa-green); font-weight: 500; }

.wa-pane { display: none; flex: 1; overflow-y: auto; padding-bottom: 90px; color: var(--wa-tx); }
#inbox[data-tab="updates"] #waUpd, #inbox[data-tab="communities"] #waCom, #inbox[data-tab="calls"] #waCalls { display: block; }
.wa-h { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 600; padding: 14px 16px 8px; color: var(--wa-tx); }
.wa-h small { font-size: 14px; font-weight: 500; color: var(--wa-green); }
.wa-sub { font-size: 14px; color: var(--wa-tx2); padding: 0 16px 10px; line-height: 1.45; }

/* status cards */
.wa-st-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.wa-st-row::-webkit-scrollbar { display: none; }
.wa-st { flex-shrink: 0; width: 92px; height: 150px; border-radius: 14px; position: relative; overflow: hidden; background: var(--wa-av-bg) center/cover no-repeat; cursor: pointer; }
.wa-st::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 50%, rgba(0,0,0,.65)); }
.wa-st .wa-st-av { position: absolute; top: 8px; left: 8px; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--wa-green); padding: 2px; background: var(--wa-av-bg); z-index: 1; }
.wa-st.seen .wa-st-av { border-color: var(--wa-grey); }
.wa-st .wa-st-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.wa-st small { position: absolute; left: 8px; right: 6px; bottom: 8px; z-index: 1; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-st.me .wa-st-av { border: 0; padding: 0; }
.wa-st.me .wa-plus { position: absolute; top: 34px; left: 34px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: var(--wa-green); color: var(--wa-on); font-size: 17px; font-weight: 700; display: grid; place-items: center; border: 2px solid #26343d; line-height: 1; }
.wa-ch-row .wa-av { border-radius: 14px; }
.wa-ch-tick { color: var(--wa-green); margin-left: 4px; vertical-align: -2px; }

/* communities */
.wa-com-new { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; }
.wa-com-new .wa-sq { width: 52px; height: 52px; border-radius: 14px; background: var(--wa-av-bg); display: grid; place-items: center; position: relative; color: var(--wa-tx2); }
.wa-com-new .wa-sq i { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--wa-green); color: var(--wa-on); font-style: normal; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--wa-bg); }
.wa-com-new b { font-size: 17px; font-weight: 500; }
.wa-gap { height: 8px; background: var(--wa-bg2); margin: 6px 0; }
.wa-com-h { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.wa-com-h img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.wa-com-h b { font-size: 17px; font-weight: 600; }
.wa-sm .wa-av { width: 42px; height: 42px; border-radius: 12px; margin-left: 5px; }
.wa-ann { width: 42px; height: 42px; border-radius: 12px; margin-left: 5px; background: var(--wa-nav); color: var(--wa-green); display: grid; place-items: center; flex-shrink: 0; }

/* calls */
.wa-fav { display: flex; gap: 18px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; }
.wa-fav > div { width: 64px; text-align: center; flex-shrink: 0; cursor: pointer; }
.wa-fav img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.wa-fav small { display: block; font-size: 12.5px; color: var(--wa-tx); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-call-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--wa-tx); background: none; border: 0; flex-shrink: 0; }
.wa-arrow { font-size: 13px; }
.wa-arrow.out { color: var(--wa-green); } .wa-arrow.in { color: var(--wa-green); } .wa-arrow.miss { color: var(--wa-red); }
.wa-row.missed .wa-l1 b { color: var(--wa-red); }

/* bottom bar + new chat button */
.wa-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; background: var(--wa-bg); border-top: 1px solid var(--wa-line); padding: 10px 0 calc(10px + var(--sb, 0px)); z-index: 3; }
.wa-nav button { flex: 1; background: none; border: 0; color: var(--wa-tx); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; position: relative; }
.wa-nav .wa-ni { width: 64px; height: 32px; border-radius: 16px; display: grid; place-items: center; position: relative; }
.wa-nav button.on .wa-ni { background: var(--wa-nav); color: var(--wa-chip-tx); }
.wa-nav button.on { font-weight: 700; }
.wa-nav .wa-nb { position: absolute; top: -4px; left: 36px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--wa-green); color: var(--wa-on); font-size: 11px; font-weight: 700; display: none; place-items: center; padding: 0 5px; border: 2px solid var(--wa-bg); }
.wa-nav .wa-nb.on { display: grid; }
.wa-nav .wa-nb.dot { min-width: 11px; width: 11px; height: 11px; padding: 0; top: 0; left: 42px; }
.wa-fab { position: absolute; right: 16px; bottom: calc(86px + var(--sb, 0px)); width: 56px; height: 56px; border-radius: 16px; background: var(--wa-green); color: var(--wa-on); border: 0; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.35); z-index: 3; }
#inbox[data-tab="communities"] .wa-fab { display: none; }

/* pop-up menu (⋮) */
.wa-menu-bg { position: fixed; inset: 0; z-index: 90; }
.wa-menu { position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 8px; z-index: 91; background: var(--wa-menu); border-radius: 12px; padding: 6px 0; min-width: 210px; box-shadow: 0 6px 24px rgba(0,0,0,.5); transform-origin: top right; animation: waPop .14s ease-out; }
.wa-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--wa-tx); font-size: 16px; padding: 13px 20px; }
.wa-menu button:active { background: var(--wa-press); }
@keyframes waPop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- chat screen ---------------- */
#thread { background: var(--wa-bg); color: var(--wa-tx); }
#thread .th-top { background: var(--wa-hdr); box-shadow: 0 1px 0 var(--wa-line); border: 0; padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: 6px; gap: 2px; min-height: 60px; }
#thread .th-top svg, #thread .th-top button svg { stroke: var(--wa-tx); }
#thread .th-top #thBack { padding: 0 2px 0 4px; }
#thread .th-avw { margin-right: 6px; }
#thread .th-avw::after, #thread .th-avw.act::after { display: none !important; }
#thread .th-av { width: 40px !important; height: 40px !important; border-radius: 50%; }
#thread .th-name { font-size: 17px; font-weight: 500; color: var(--wa-tx); }
#thread .th-name .vtick { display: none; }
#thread .th-sub { font-size: 12.5px; color: var(--wa-tx2); }
#thread .th-sub.typing { color: var(--wa-green); }
#thread #thVideo { order: 5; margin: 0 8px; }
#thread #thCall { order: 6; margin: 0 8px; }
#thread #thInfo { order: 7; margin: 0 4px 0 6px; }
#thread .th-top > .grow { order: 4; }
#thread .th-body {
  background-color: var(--wa-wall-c);
  background-image: var(--wa-wall);
  background-size: 160px 160px; padding: 6px 0 10px;
}
#thread .th-card { display: none; }
#thread .th-time { align-self: center; margin: 10px auto 8px; background: var(--wa-sys); color: var(--wa-tx2); font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 8px; text-align: center; width: max-content; text-transform: none; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
#thread .th-sys { margin: 6px auto; background: var(--wa-sys); color: var(--wa-tx2); font-size: 12.5px; padding: 6px 12px; border-radius: 8px; text-align: center; width: max-content; max-width: 85%; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
#thread .wa-e2e { margin: 8px auto 10px; max-width: 86%; background: var(--wa-e2e-bg); color: var(--wa-e2e-tx); font-size: 12.5px; line-height: 1.45; padding: 7px 12px; border-radius: 8px; text-align: center; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
#thread .brow { padding: 0 9px; margin: 2px 0 0; gap: 6px; align-items: flex-start; }
#thread .brow.wa-tail { margin-top: 9px; }
#thread:not(.wa-grp) .b-av { display: none !important; }
#thread.wa-grp .b-av { width: 30px; height: 30px; margin-top: 0; align-self: flex-start; }
#thread .bub {
  background: var(--wa-in) !important; color: var(--wa-tx) !important; border-radius: 8px !important;
  padding: 6px 8px 7px 9px !important; max-width: 82%; font-size: var(--wa-fs, 15.2px); line-height: 1.32; position: relative;
  box-shadow: 0 1px .5px var(--wa-shadow); border: 0 !important; word-wrap: break-word;
}
#thread .bub.me { background: var(--wa-out) !important; }
#thread .brow.wa-tail .bub:not(.me) { border-top-left-radius: 0 !important; }
#thread .brow.wa-tail .bub.me { border-top-right-radius: 0 !important; }
#thread .brow.wa-tail .bub:not(.me):not(.big)::before { content: ''; position: absolute; top: 0; left: -8px; border-top: 0 solid transparent; border-right: 8px solid var(--wa-in); border-bottom: 13px solid transparent; }
#thread .brow.wa-tail .bub.me:not(.big)::before { content: ''; position: absolute; top: 0; right: -8px; border-left: 8px solid var(--wa-out); border-bottom: 13px solid transparent; }
#thread .bub.big { background: transparent !important; box-shadow: none; font-size: 48px; line-height: 1.1; padding: 0 4px !important; }
#thread .bub.big .wa-mt { background: rgba(11,20,26,.55); padding: 1px 6px; border-radius: 10px; }
.wa-mt { float: right; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; line-height: 15px; color: var(--wa-mt); margin: 7px 0 -6px 12px; white-space: nowrap; position: relative; }
.wa-mt .wa-tk.read { color: var(--wa-blue); }
#thread .b-from { display: block; font-size: 13px; font-weight: 600; margin: 0 0 2px; line-height: 18px; }
#thread .th-seen { display: none !important; }
#thread .brow:has(.bub.typing) { display: none; }
#thread .b-react { position: absolute; bottom: -16px; left: 8px; background: var(--wa-sys); border: 2px solid var(--wa-bg); border-radius: 12px; padding: 0 5px; font-size: 13px; line-height: 20px; }
#thread .bub.me .b-react { left: auto; right: 8px; }
#thread .bub.reacted { margin-bottom: 15px; }
#thread .q-bub { background: var(--wa-quote) !important; border-left: 4px solid var(--wa-quote-bar); border-radius: 6px !important; color: var(--wa-tx2) !important; }
#thread .q-who { color: var(--wa-tx2); }
#thread .vn .vn-wave i { background: var(--wa-mt); }

/* input bar */
#thread #thBar { background: transparent; border: 0; display: flex; align-items: flex-end; gap: 6px; padding: 5px 6px calc(6px + var(--sb, 0px)); }
#thBar > .th-cam, #thBar > .th-icons { display: none !important; }
.wa-pill { flex: 1; min-width: 0; display: flex; align-items: center; background: var(--wa-pill); border-radius: 26px; min-height: 50px; padding: 0 4px; }
.wa-pill #thInput { flex: 1; min-width: 0; background: none !important; border: 0 !important; color: var(--wa-tx); font-size: 16.5px; padding: 0 4px; height: 48px; }
.wa-pill #thInput::placeholder { color: var(--wa-tx2); }
.wa-pill button, .wa-pill .th-cam { width: 42px; height: 42px; border: 0; background: none; color: var(--wa-tx2); display: grid !important; place-items: center; flex-shrink: 0; border-radius: 50%; padding: 0; }
.wa-pill .th-cam svg { stroke: var(--wa-tx2); width: 23px; height: 23px; }
#thBar.typing .wa-pill .th-cam { display: none !important; }
.wa-round { width: 50px; height: 50px; border-radius: 50%; background: var(--wa-green); flex-shrink: 0; display: grid; place-items: center; position: relative; }
.wa-round > * { grid-area: 1 / 1; }
.wa-round #thSend { width: 50px; height: 50px; border-radius: 50%; background: none; border: 0; color: var(--wa-on); font-size: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.wa-round #thSend svg { width: 24px; height: 24px; }
.wa-round .wa-mic { stroke: var(--wa-on) !important; width: 25px; height: 25px; display: block !important; }
#thBar.typing .wa-round #thSend, #thBar.nomic .wa-round #thSend { opacity: 1; pointer-events: auto; }
#thBar.typing .wa-round .wa-mic, #thBar.nomic .wa-round .wa-mic { display: none !important; }
#thread .grp-left { background: var(--wa-bg); color: var(--wa-tx2); border-top: 1px solid var(--wa-line); }
#thread .grp-left button { background: var(--wa-green); color: var(--wa-on); border-radius: 20px; }

/* attach sheet */
.wa-att { position: fixed; left: 8px; right: 8px; bottom: calc(66px + var(--sb, 0px)); z-index: 92; background: var(--wa-menu); border-radius: 18px; padding: 22px 10px 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 4px; animation: waPop .14s ease-out; transform-origin: bottom center; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.wa-att button { background: none; border: 0; color: var(--wa-tx2); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wa-att .wa-ai { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; }

/* contact / group info */
#waInfo, #waSet { background: var(--wa-bg); color: var(--wa-tx); overflow-y: auto; z-index: 20; }
#waSet { z-index: 21; }
#waInfo .wa-it, #waSet .wa-it { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 8px 4px; position: sticky; top: 0; background: var(--wa-bg); z-index: 1; }
#waInfo .wa-ihead { text-align: center; padding: 6px 16px 18px; }
#waInfo .wa-ihead img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; }
#waInfo .wa-ihead h2 { font-size: 24px; font-weight: 500; margin: 12px 0 4px; }
#waInfo .wa-ihead p { color: var(--wa-tx2); font-size: 16px; margin: 0; }
.wa-ibtns { display: flex; justify-content: center; gap: 10px; padding: 0 16px 16px; }
.wa-ibtns button { flex: 1; max-width: 110px; background: none; border: 1px solid var(--wa-line); border-radius: 14px; color: var(--wa-tx); padding: 12px 0 10px; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wa-ibtns button svg { color: var(--wa-green); stroke: var(--wa-green); }
.wa-icard { border-top: 8px solid var(--wa-bg2); padding: 14px 16px; }
.wa-icard small { color: var(--wa-tx2); font-size: 14px; display: block; margin-bottom: 4px; }
.wa-icard p { margin: 0; font-size: 16px; line-height: 1.4; }
.wa-irow { display: flex; align-items: center; gap: 20px; padding: 14px 20px; font-size: 16px; color: var(--wa-tx); cursor: pointer; }
.wa-irow span { flex: 1; }
.wa-irow small { color: var(--wa-tx2); font-size: 13px; display: block; }
.wa-irow.red { color: var(--wa-red); }
.wa-irow .wa-sw { width: 36px; height: 20px; border-radius: 10px; background: var(--wa-grey); position: relative; flex-shrink: 0; }
.wa-irow .wa-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.wa-irow .wa-sw.on { background: var(--wa-green2); }
.wa-irow .wa-sw.on::after { left: 19px; background: #fff; }
.wa-mem { padding: 4px 0 10px; }
.wa-mem .wa-row { padding: 10px 20px; }
.wa-mem .wa-av { width: 44px; height: 44px; }
.wa-admin { font-size: 11px; color: var(--wa-green); border: 1px solid var(--wa-green2); border-radius: 6px; padding: 1px 6px; }

/* sheets, menus, banners: same dark green look */
.igs, .dm-sheet { background: var(--wa-menu) !important; color: var(--wa-tx) !important; }
.igs .igs-row, .dms-opt { color: var(--wa-tx) !important; border-color: var(--wa-press) !important; }
.dms-opt.red, .igs .igs-row.red { color: var(--wa-red) !important; }
.dms-opt.center { color: var(--wa-green) !important; }
.notif { background: var(--wa-card) !important; color: var(--wa-tx) !important; border-radius: 16px !important; box-shadow: 0 6px 20px rgba(0,0,0,.45) !important; }
.notif .nf-rp { color: var(--wa-green) !important; }
#toast { background: var(--wa-av-bg) !important; color: var(--wa-tx) !important; }

/* settings and the call screen */
#setup { background: #161717 !important; color: #FAFAFA; }
#setup .card { background: #1D1F1F !important; border-color: rgba(255,255,255,.1) !important; }
#setup .sbtn.blue, #setup .btn:not(.grey), #setupDone { background: #21C063 !important; color: #0A0A0A !important; }
#setup input[type=checkbox] { accent-color: #21C063; }
#call { background: #161717 !important; }
#call .cl-bg { opacity: .25; }
#call .vtick { display: none !important; }
#chan { background: #161717 !important; }
#chan .th-top { background: #161717 !important; }
#instStack { display: none !important; }
.wa-n { font-style: normal; }
.wa-ch-row .wa-l1 b { display: flex; align-items: center; gap: 2px; }
#olDown, .ol-down { background: var(--wa-e2e-bg) !important; color: var(--wa-e2e-tx) !important; border: 0 !important; margin: 4px 16px 8px !important; border-radius: 10px !important; }
.sm-what [data-w="live"], .sm-what [data-w="post"] { display: none !important; }
.igs .igs-chips button.on, .igs .igs-go:not(.grey) { background: var(--wa-green2) !important; color: var(--wa-on) !important; border-color: var(--wa-green2) !important; }
#thread .th-top { color: var(--wa-tx); }
#inbox .ib-search { color: var(--wa-tx2); }

/* ---------------- part 2 ---------------- */
.wa-tback { margin-left: -8px; }
#inbox.wa-subv .ib-search, #inbox.wa-subv .wa-chips, #inbox.wa-subv .wa-nav, #inbox.wa-subv .wa-fab { display: none !important; }
#inbox.wa-subv .pr-scroll { padding-bottom: 20px; }
.wa-selbar { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 2px; padding: calc(10px + env(safe-area-inset-top)) 6px 6px 8px; background: var(--wa-bg); }
.wa-selbar[hidden] { display: none; }
.wa-selbar b { font-size: 20px; font-weight: 500; margin-left: 10px; }
.wa-selbar .grow { flex: 1; }
.wa-avw { position: relative; flex-shrink: 0; }
.wa-selck { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--wa-green); color: var(--wa-on); display: grid; place-items: center; border: 2px solid var(--wa-bg); }
.wa-row.sel { background: var(--wa-press); }
.wa-special .wa-sic { width: 52px; display: grid; place-items: center; color: var(--wa-tx2); flex-shrink: 0; }
.wa-special { padding-top: 12px; padding-bottom: 12px; }
.wa-special .wa-l1 b { font-size: 16.5px; }
.wa-arn { color: var(--wa-green); font-size: 13px; font-weight: 600; }
.wa-draft { color: var(--wa-green); margin-right: 3px; flex-shrink: 0; }
.wa-n.wa-at { font-weight: 700; }
.wa-chips .wa-chip-add { padding: 7px 13px; font-size: 16px; line-height: 1; }
.wa-sub { color: var(--wa-tx2); font-size: 14px; }

/* sheets: confirm, ask, choose, pick */
.wa-cf { margin: 6px 20px 14px; font-size: 16px; line-height: 1.45; color: var(--wa-tx); }
.wa-cfb { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 14px 10px; }
.wa-cfb button { background: none; border: 0; color: var(--wa-green); font-size: 15px; font-weight: 600; padding: 10px 14px; border-radius: 20px; }
.wa-cfb button.red { color: var(--wa-red); }
.wa-ask { padding: 4px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.wa-ask input { background: transparent; border: 0; border-bottom: 2px solid var(--wa-green); color: var(--wa-tx); font-size: 17px; padding: 10px 2px; outline: 0; border-radius: 0; }
.wa-ask input[type=datetime-local] { color-scheme: dark; }
:root[data-wa="light"] .wa-ask input[type=datetime-local] { color-scheme: light; }
.wa-radio { display: flex; flex-direction: column; padding: 0 8px 12px; }
.wa-radio label { display: flex; align-items: center; gap: 18px; padding: 12px 12px; font-size: 16px; color: var(--wa-tx); }
.wa-radio input { accent-color: var(--wa-green); width: 20px; height: 20px; }
.wa-pick { max-height: 55vh; overflow-y: auto; }
.wa-pick .wa-row { cursor: pointer; }
.wa-pick input { accent-color: var(--wa-green); width: 20px; height: 20px; }
.wa-strow { padding: 10px 20px; border-bottom: 1px solid var(--wa-line); }
.wa-strow small { color: var(--wa-tx2); font-size: 12.5px; }
.wa-strow p { margin: 4px 0 0; font-size: 15px; color: var(--wa-tx); }

/* holding a message */
.wa-dim { background: rgba(0,0,0,.35); }
#thread .brow.wa-hl { background: rgba(33,192,99,.15); }
.wa-mm { position: fixed; z-index: 93; width: min(280px, calc(100vw - 24px)); animation: waPop .14s ease-out; }
.wa-mmr { display: flex; justify-content: space-between; background: var(--wa-menu); border-radius: 26px; padding: 6px 8px; margin-bottom: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.wa-mmr button { background: none; border: 0; font-size: 26px; width: 36px; height: 40px; padding: 0; color: var(--wa-tx2); }
.wa-mmr button[data-e="+"] { font-size: 22px; background: var(--wa-pill); border-radius: 50%; width: 34px; height: 34px; align-self: center; }
.wa-mml { background: var(--wa-menu); border-radius: 14px; padding: 4px 0; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.wa-mml button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--wa-tx); font-size: 16px; padding: 11px 18px; }
.wa-mml button.red { color: var(--wa-red); }
.wa-mt .wa-ed { margin-right: 3px; }
.wa-mt .wa-st1 { margin-right: 3px; font-size: 11px; }
#thread .bub.wa-del { color: var(--wa-tx2) !important; font-size: 14px; }
#thread .bub.wa-del i { font-style: italic; }
#thread .bub code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
#thread .bub .wa-link { color: var(--wa-link); text-decoration: underline; word-break: break-all; }
.wa-tag { color: var(--wa-tx2); font-weight: 400; }
.wa-tagb { margin-left: auto; background: none; border: 1px solid var(--wa-line); border-radius: 10px; color: var(--wa-tx2); font-size: 12px; padding: 2px 8px; flex-shrink: 0; }
.wa-unr { align-self: center; margin: 10px auto; background: var(--wa-sys); color: var(--wa-tx2); font-size: 12.5px; font-weight: 500; padding: 5px 14px; border-radius: 8px; width: max-content; box-shadow: 0 1px .5px var(--wa-shadow); }
.wa-minfo { padding: 0 0 12px; }
.wa-mibub { margin: 4px 20px 14px; background: var(--wa-out); color: var(--wa-tx); border-radius: 8px; padding: 8px 10px; font-size: 15px; }
.wa-minfo .wa-irow { padding: 10px 20px; }

/* cards: location, contact, event, document */
#thread .bub.wa-cardb { padding: 3px 3px 6px !important; min-width: 240px; max-width: 280px; }
.wa-map { height: 130px; border-radius: 6px; position: relative; background: #2b3a2f; background-image: linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(35deg, transparent 45%, rgba(255,214,102,.35) 46%, rgba(255,214,102,.35) 50%, transparent 51%), linear-gradient(120deg, transparent 60%, rgba(255,255,255,.18) 61%, rgba(255,255,255,.18) 64%, transparent 65%); background-size: 26px 26px, 26px 26px, 100% 100%, 100% 100%; }
:root[data-wa="light"] .wa-map { background-color: #dfe8d8; }
.wa-map.big { height: 170px; margin: 0 16px 8px; }
.wa-mpin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -85%); color: #ea4335; }
.wa-mpin svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.wa-cardt { padding: 6px 6px 0; }
.wa-cardt b { display: block; font-size: 15px; }
.wa-cardt small { color: var(--wa-tx2); font-size: 13px; }
.wa-cardbtn { margin: 6px -3px -6px; border-top: 1px solid var(--wa-line); text-align: center; color: var(--wa-link); font-size: 15px; font-weight: 500; padding: 10px 0 9px; cursor: pointer; }
.wa-cc { display: flex; align-items: center; gap: 12px; padding: 8px 8px 4px; }
.wa-cc img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wa-cc b { font-size: 16px; font-weight: 500; }
.wa-ev { display: flex; gap: 12px; align-items: center; padding: 8px 8px 4px; }
.wa-evd { width: 46px; height: 50px; border-radius: 8px; background: var(--wa-quote); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-evd small { font-size: 11px; color: var(--wa-red); font-weight: 600; }
.wa-evd b { font-size: 19px; line-height: 1.1; }
.wa-ev b { font-size: 15.5px; } .wa-ev small { display: block; color: var(--wa-tx2); font-size: 13px; margin-top: 2px; }
.wa-doc { display: flex; gap: 12px; align-items: center; padding: 10px 8px 4px; background: var(--wa-quote); border-radius: 6px; }
.wa-doci { width: 36px; height: 44px; border-radius: 4px; background: #e84a5f; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.wa-doc b { font-size: 14.5px; font-weight: 500; word-break: break-all; display: block; } .wa-doc small { color: var(--wa-tx2); font-size: 12.5px; }
.wa-cardb .wa-mt { margin-right: 4px; }

/* settings */
#waSet .wa-sett { font-size: 21px; font-weight: 500; margin-left: 10px; }
.wa-prof { display: flex; align-items: center; gap: 16px; padding: 14px 16px 18px; border-bottom: 1px solid var(--wa-line); cursor: pointer; }
.wa-prof img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.wa-prof div { flex: 1; min-width: 0; }
.wa-prof b { display: block; font-size: 19px; font-weight: 500; }
.wa-prof small { color: var(--wa-tx2); font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-qr { color: var(--wa-green); }
#waSet .wa-irow svg { color: var(--wa-tx2); flex-shrink: 0; }
#waSet .wa-irow { padding: 15px 20px; }
#waSet .wa-irow span { line-height: 1.35; }
.wa-ib[hidden], .wa-top button[hidden] { display: none !important; }
#thread .b-edit { display: none !important; }
#thread .bub.wa-cardb { display: block !important; width: 270px; }
#thread .bub.wa-cardb > div { width: 100%; box-sizing: border-box; }
#thread .bub .wa-link { word-break: normal; overflow-wrap: anywhere; }
.wa-draft { margin-right: 4px; }
.wa-phn { cursor: pointer; }
.wa-uns { color: var(--wa-tx2); font-size: 12px; flex-shrink: 0; }
#waInfo .wa-ihead p small { font-size: 14px; color: var(--wa-tx2); }
