/* static/ask/people.css - PEOPLE CHAT (v803): the thread between two people (static/ask/people.js), the pane's YantrAI | People switch and its
 * people rows (static/index.html _cfChatsPaint), the Share menu's "Who are you inviting?" with Invite by email (_hbKindsHtml), the Home cards
 * for a group admin (static/home/home.js asks). Light buttons, black ink (owner's rule); OHM's blue for the marks. */
.pp-thread { display: grid; gap: 6px; align-content: start; }
.pp-day { justify-self: center; margin: 2px 0 8px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #ECEFF5; color: #8A94A6; font-size: 11.5px; font-weight: 500; }
.pp-me { position: relative; justify-self: end; max-width: 72%; margin-top: 4px; padding: 8px 12px 20px; border-radius: 14px; border-top-right-radius: 4px; background: #E7F0FD; color: #1E293B; font-size: var(--chat-fs, 14.2px); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-them { display: flex; align-items: flex-end; gap: 8px; max-width: 80%; margin-top: 4px; }
.pp-bub { position: relative; min-width: 120px; padding: 7px 12px 20px; border-radius: 14px; border-top-left-radius: 4px; background: var(--card-bg, #fff); border: 1px solid #ECEFF5; color: #1E293B; font-size: var(--chat-fs, 14.2px); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pp-nm { display: block; font-size: 12px; font-weight: 600; color: #2F5FB3; margin-bottom: 1px; white-space: nowrap; }
.pp-meta { position: absolute; right: 10px; bottom: 5px; font-size: 10.5px; color: #6B7280; white-space: nowrap; }
.pp-av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #EAF1FC; color: #2F5FB3; font: 600 12px Inter, "Segoe UI", system-ui, sans-serif; flex: none; }
.pp-av.h { width: 40px; height: 40px; font-size: 15px; }
.ask-head .ask-av .pp-av.h, .yc-mark .pp-av.h { width: 100%; height: 100%; }
.yc-mark .pp-av.h { width: 34px; height: 34px; font-size: 13px; }
.pp-sys { justify-self: stretch; display: grid; justify-items: center; }
.pp-sys .pp-card { width: 100%; max-width: 520px; }
.pp-pill { justify-self: center; margin: 4px auto; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #ECEFF5; color: #6B7280; font-size: 12.5px; text-align: center; max-width: 92%; }
.pp-pill.ok { color: #15803D; border-color: #CFE9D8; background: #F2FAF5; }
.pp-pill.err { color: #A4361F; border-color: #F3D2CA; background: #FFF6F3; }
.pp-card { margin: 4px 0; padding: 12px 14px; border: 1px solid #E3E7EE; border-radius: 12px; background: var(--card-bg, #fff); color: #1E293B; font-size: 13.5px; line-height: 1.45; }
.pp-card .t { font-weight: 600; font-size: 14px; }
.pp-card .s { margin-top: 3px; color: #6B7588; font-size: 12.5px; }
.pp-card ol { margin: 8px 0 0; padding-left: 20px; } .pp-card ol li + li { margin-top: 3px; }
.pp-card .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pp-card.code .digits { margin: 8px 0 2px; font: 700 30px/1.1 Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: .14em; color: #0B1F3A; font-variant-numeric: tabular-nums; }
.pp-card.code.linked .digits { color: #8A94A6; text-decoration: line-through; }
.pp-ok { color: #15803D; font-weight: 600; }
.pp-err { margin-top: 8px; color: #A4361F; font-size: 12.5px; } .pp-err[hidden] { display: none; }
.pp-btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #1F4E9C; background: var(--card-bg, #fff); color: #1F4E9C; font: 500 13px Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.pp-btn.pri { background: #9BCCF2; border-color: #9BCCF2; color: #111827; }
.pp-btn:disabled { opacity: .6; cursor: default; }
.pp-btn:focus-visible, .pp-send:focus-visible, .cf-chip:focus-visible { outline: 2px solid #0176d3; outline-offset: 2px; }
.pp-foot { display: flex; align-items: flex-end; gap: 10px; }
.pp-in { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 44px; padding: 4px 16px; border-radius: 22px; border: 1px solid #DCE2EC; background: #fff; }
.pp-in:focus-within { border-color: #9DBDEB; box-shadow: 0 0 0 3px rgba(155,204,242,.35); }
.pp-in textarea { width: 100%; box-sizing: border-box; border: 0; outline: 0; resize: none; background: transparent; color: inherit; min-height: 34px; max-height: 160px; padding: 8px 0; font: inherit; font-size: var(--chat-fs, 14.2px); line-height: 1.4; }
@media (max-width: 768px) { .pp-in textarea { font-size: max(16px, var(--chat-fs, 16px)); } }   /* v866 - under 16px a phone zooms the page when the box is tapped */
.pp-send { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: #DCE6F2; display: grid; place-items: center; cursor: pointer; transition: background .12s ease; }
.pp-send.on { background: #9BCCF2; }
.pp-note { margin: 6px 4px 0; font-size: 11px; color: #8A93A3; text-align: center; }
.yc-foot .pp-foot { padding: 0; } .yc-body .pp-thread { padding: 12px 12px 6px; }
.yc-body > .pp-thread { flex: 1; min-height: 0; overflow-y: auto; }          /* v806 - the column's thread scrolls, as .yc-thread does */

/* v806 (2A) the pane: one list under Chats, narrowed by All · Agents · People (a dot on People with news); one row shape for every chat */
#cf-chats .cf-chips { display: flex; gap: 6px; padding: 2px 16px 8px; } #cf-chats .cf-chips[hidden] { display: none; }
.cf-chip { position: relative; padding: 3px 10px; border-radius: 999px; border: 1px solid #E3E3E3; background: #fff; color: #4B5563; font: 500 12px Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.cf-chip.on { background: #9BCCF2; border-color: #9BCCF2; color: #111827; }
.cf-chip i { display: none; position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: #2F6FE4; }
.cf-chip.news i { display: block; }
#cf-chats .cf-row.pp2 { height: auto; padding: 6px 10px; align-items: center; gap: 10px; }
#cf-chats .cf-row.pp2 .av { width: 28px; height: 28px; border-radius: 50%; background: #EAF1FC; color: #2F5FB3; display: grid; place-items: center; font: 600 11px Inter, "Segoe UI", system-ui, sans-serif; flex: none; }
#cf-chats .cf-row.pp2 .tx { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
#cf-chats .cf-row.pp2 .tx b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cf-chats .cf-row.pp2 .tx small { display: block; margin: 0; font-size: 12px; color: #8F8F8F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cf-chats .cf-row.pp2 .n { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #2F6FE4; color: #fff; font: 600 11px/18px Inter, "Segoe UI", system-ui, sans-serif; text-align: center; }
#cf-chats .cf-row.pp2 time { flex: none; font-size: 11px; color: #8F8F8F; }
#cf-chats .cf-row.pp2 .rt { flex: none; display: grid; justify-items: end; gap: 3px; } #cf-chats .cf-row.pp2 time.new { color: #2F6FE4; font-weight: 600; }
#cf-chats .cf-row.pp2 .av.app, #cf-chats .cf-row.pp2 .av.ai { background: none; overflow: hidden; }
#cf-chats .cf-row.pp2 .av.app > *, #cf-chats .cf-row.pp2 .av.ai > * { width: 28px; height: 28px; display: block; } #cf-chats .cf-row.pp2 .av.app > * { border-radius: 7px; }
html.cf-drawer #cf-chats .cf-row.pp2 { height: auto; min-height: 52px; }
/* v820 the two pinned chats: Your books and Help, at the top under Pinned */
#cf-chats .cf-pinh { padding: 6px 18px 2px; font: 600 11px Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8A94A6; }
#cf-chats .cf-pinsep { height: 1px; margin: 6px 18px; background: #EEF0F3; }
#cf-chats .cf-row.pp2 .av.hp { background: #0B1F3A; color: #fff; font: 700 13px Inter, "Segoe UI", system-ui, sans-serif; }
#cf-chats .cf-row.pp2 .rt.pin { color: #8A94A6; align-self: center; }
/* and in the chat's own head */
.ask-head .ask-av.pin-help { background: #9BCCF2; color: #111827; font: 700 15px Inter, "Segoe UI", system-ui, sans-serif; }   /* v1000 - Help's headset, light */
.ask-head .ask-av.pin-help svg { width: 20px; height: 20px; }
.ask-head .ask-av.pin-books { background: none; overflow: hidden; } .ask-head .ask-av.pin-books > * { width: 100%; height: 100%; display: block; border-radius: 50%; }
/* v806 (4A) WhatsApp's ticks: ✓ sent · ✓✓ grey it reached them · ✓✓ blue read */
.tk { flex: none; vertical-align: -1px; margin-right: 3px; }
.pp-meta .tk { margin: 0 0 0 2px; vertical-align: -2px; }
.pp-seen { color: inherit; }

/* v804 (1A) - "+ New chat with a person" and its picker: a popover at the row on a computer, a sheet from the bottom on a phone */
#cf-chats .cf-row.pp-new { color: #1F4E9C; }
#cf-chats .cf-row.pp-new .pl { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed #9DBDEB; display: grid; place-items: center; font-size: 17px; line-height: 1; flex: none; }
#cf-chats .cf-row.pp-new .tx b { font-weight: 600; }
.pp-pick { position: fixed; z-index: 100000; width: 360px; max-height: min(560px, 86vh); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
           background: #fff; border: 1px solid #E3E7EE; border-radius: 14px; box-shadow: 0 16px 40px rgba(16,24,40,.16); color: #1E293B;
           font-family: Inter, "Segoe UI", system-ui, sans-serif; overflow: hidden; }
.pp-pick h3 { margin: 0; padding: 14px 16px 2px; font-size: 15px; font-weight: 650; }
.pp-pick .q { margin: 8px 12px 6px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid #DCE2EC; border-radius: 10px; color: #8A94A6; }
.pp-pick .q:focus-within { border-color: #9DBDEB; box-shadow: 0 0 0 3px rgba(155,204,242,.35); }
.pp-pick .q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #1E293B; }
.pp-pick .l { overflow: auto; padding: 0 6px 6px; min-height: 60px; }
.pp-pick .g { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8A94A6; }
.pp-pick .r { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 9px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pp-pick .r:hover, .pp-pick .r:focus-visible { background: #F0F5FC; outline: none; }
.pp-pick .r.busy { opacity: .6; }
.pp-pick .r .av { width: 30px; height: 30px; border-radius: 50%; background: #EAF1FC; color: #2F5FB3; display: grid; place-items: center; font: 600 11.5px Inter, sans-serif; flex: none; }
.pp-pick .r .av.ag { background: none; overflow: hidden; border-radius: 8px; } .pp-pick .r .av.ag > * { width: 30px; height: 30px; display: block; }   /* v806 - an agent's own mark */
.pp-pick .r .tx { min-width: 0; display: grid; line-height: 1.25; } .pp-pick .r .tx b { font-size: 13.5px; font-weight: 600; }
.pp-pick .r .tx small { font-size: 12px; color: #6B7588; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-pick .none { padding: 12px 10px; font-size: 13px; color: #6B7588; }
.pp-pick .ft { padding: 10px 14px 12px; border-top: 1px solid #EEF0F4; font-size: 12px; line-height: 1.45; color: #6B7588; background: #FAFBFD; }
.pp-pick .ft.bad { color: #A4361F; }
.pp-pick.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 78vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
                 grid-template-rows: auto auto auto minmax(0, 1fr) auto; }   /* v806 - the grab handle is a row of its own: without this the search box got the shrinking row and drew over the list (owner's phone, 01 Nov) */
.pp-pick.sheet .grip { width: 40px; height: 5px; border-radius: 5px; background: #D5DAE3; margin: 8px auto 0; }
.pp-pick.sheet .q input { font-size: 16px; }
.pp-pick.sheet .r { min-height: 48px; }
.pp-pick-dim { position: fixed; inset: 0; z-index: 99999; background: rgba(15,23,42,.32); }
html.pp-picking .yhs-bar, html.pp-picking #ph-bar { visibility: hidden; }   /* v806 - nothing of the page over the sheet */
/* v808 (3A) "Know when <them> replies · Turn on" above the box; after Block, how to allow them again (static/ask/push.js) */
.nt-strip { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 9px 8px 9px 10px; border: 1px solid #DCE6F4; border-radius: 12px; background: #F3F7FD;
            font: 13px/1.35 Inter, "Segoe UI", system-ui, sans-serif; color: #1E293B; }
.nt-strip .bell { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid #DCE6F4; display: grid; place-items: center; color: #1F4E9C; }
.nt-strip .tx { flex: 1; min-width: 0; } .nt-strip .tx b { display: block; font-weight: 600; } .nt-strip .tx small { display: block; color: #6B7588; font-size: 12px; }
.nt-strip .on { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: #9BCCF2; color: #111827; font: 600 13px Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.nt-strip .x { flex: none; width: 36px; height: 36px; margin: -4px -4px -4px 0; border: 0; border-radius: 8px; background: none; color: #6B7588; font-size: 20px; line-height: 1; cursor: pointer; }
.nt-strip .x:hover { background: rgba(15,23,42,.06); }
.nt-strip.slim { padding: 5px 6px 5px 8px; gap: 8px; } .nt-strip.slim .bell { width: 26px; height: 26px; }
.nt-strip.slim .tx b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nt-strip.slim .on { height: 30px; }
.nt-strip .on:focus-visible, .nt-strip .x:focus-visible { outline: 2px solid #0176d3; outline-offset: 2px; }
.nt-strip.bad { background: #FFF8E8; border-color: #F1D9A6; align-items: flex-start; } .nt-strip.bad .bell { color: #8A5A12; border-color: #F1D9A6; }
.nt-strip.bad ol { margin: 6px 0 0; padding-left: 18px; color: #5B4A1E; font-size: 12.5px; } .nt-strip.bad ol li + li { margin-top: 2px; }
.ask-foot .pp-nt:empty, .yc-foot .pp-nt:empty { display: none; }
/* the line in the pane and the drawer, above View as */
#cf-chats .cf-ntb { flex: none; padding: 6px 0 0; border-top: 1px solid #EDEDED; }
#cf-chats .cf-ntb + .cf-vab { border-top: 0; padding-top: 0; }
#cf-chats .cf-r.cf-nt small { margin-left: auto; color: #8F8F8F; font-size: 11.5px; white-space: nowrap; } #cf-chats .cf-r.cf-nt small b { color: #1F4E9C; font-weight: 600; }
#cf-chats .cf-r.cf-nt.on small { color: #15803D; font-weight: 600; }
/* an iPhone's steps; after Block, how to allow: a sheet from the foot (a card at the foot on a computer) */
.nt-dim { position: fixed; inset: 0; z-index: 100001; background: rgba(15,23,42,.42); }
.nt-sheet { position: fixed; z-index: 100002; left: 0; right: 0; bottom: 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: #fff;
            color: #1E293B; font: 14px/1.45 Inter, "Segoe UI", system-ui, sans-serif; box-shadow: 0 -8px 30px rgba(16,24,40,.18); }
.nt-sheet.wide { left: 50%; right: auto; bottom: 24px; width: min(440px, calc(100vw - 32px)); transform: translateX(-50%); border-radius: 16px; padding-bottom: 18px; }
.nt-sheet .grip { width: 40px; height: 5px; border-radius: 5px; background: #D5DAE3; margin: 0 auto 12px; } .nt-sheet.wide .grip { display: none; }
.nt-sheet h3 { margin: 4px 0; font-size: 16px; font-weight: 650; } .nt-sheet > p { margin: 0 0 12px; color: #6B7588; font-size: 13px; }
.nt-sheet ol { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.nt-sheet li { display: flex; gap: 10px; align-items: center; }
.nt-sheet li .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #EAF1FC; color: #1F4E9C; font-weight: 600; font-size: 12.5px; display: grid; place-items: center; }
.nt-sheet li .ib { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #F1F3F7; vertical-align: middle; margin: 0 2px; }
.nt-sheet .ok { width: 100%; height: 42px; border: 0; border-radius: 10px; background: #9BCCF2; color: #111827; font: 600 14px Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
/* v804 (2A) - viewing as someone: a note where the box was */
.pp-va { padding: 12px 14px; border: 1px solid #F1D9A6; border-radius: 12px; background: #FFF8E8; color: #5B4A1E; font-size: 13.5px; line-height: 1.45; }
.pp-va b { color: #3A2E0F; } .pp-va .acts { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* the Share card's Invite by email form (v809: inside the team row; the card itself is in style.css) */
.hb-inv { display: grid; gap: 6px; padding: 4px 12px 10px; }
.hb-inv input, .hb-inv select, .hb-inv textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid #DCE2EC; border-radius: 8px; background: #fff; color: #1E293B; }
.hb-inv textarea { resize: vertical; min-height: 36px; }
.hb-inv .row { display: flex; gap: 6px; } .hb-inv .row select { flex: 1; }
.hb-inv .row button { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: #9BCCF2; color: #111827; font: 500 13px Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.hb-inv .row button:disabled { opacity: .6; cursor: default; }
.hb-inv .err { font-size: 12px; color: #A4361F; } .hb-inv .err[hidden] { display: none; }

/* Home: who asks to join (a group admin), and a word of what each press does */
.yhs-asks { display: grid; gap: 10px; max-width: 560px; margin: 14px auto 0; } .yhs-asks[hidden] { display: none; }
.yhs-ask { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #E3E7EE; border-radius: 12px; background: #fff; text-align: left; }
.yhs-ask .av { width: 36px; height: 36px; border-radius: 50%; background: #EAF1FC; color: #2F5FB3; display: grid; place-items: center; font: 600 13px Inter, "Segoe UI", system-ui, sans-serif; flex: none; }
.yhs-ask .tx { flex: 1; min-width: 0; line-height: 1.3; } .yhs-ask .tx b { font-weight: 600; } .yhs-ask .tx small { display: block; color: #6B7588; font-size: 12.5px; }
.yhs-ask .acts { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.yhs-ask .err { flex-basis: 100%; color: #A4361F; font-size: 12.5px; }
.wr-team { margin-top: 14px; display: grid; gap: 8px; }
.pp-hn { display: none; }
@media (max-width: 768px) {
  .ask-who .pp-hn { display: inline; margin-right: 6px; color: #1F1F1F; font-weight: 600; }
  .pp-hb { display: none; }                                                     /* v806 - the phone's head keeps to "seen today at 12:58" */
  .ask-who > span:has(> .pp-seen) { flex-direction: column; gap: 0; line-height: 1.2; }   /* the name, and under it when they were last seen */
  .ask-who > span:has(> .pp-seen) .pp-hn { margin: 0; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ask-who .pp-seen { font-size: 12px; color: #6B7588; white-space: nowrap; }
  .pp-me { max-width: 84%; } .pp-them { max-width: 92%; }
  .yhs-ask { flex-wrap: wrap; } .yhs-ask .acts { flex-basis: 100%; justify-content: flex-start; }
}
#cf-chats .cf-row.pp2 .av.pn { background: none; overflow: hidden; } #cf-chats .cf-row.pp2 .av.pn svg { display: block; width: 100%; height: 100%; }   /* v919 - a person with no photo */
.pp-av:has(> svg) { background: none; overflow: hidden; }
