/* project-comms-view.css — wave272 (2026-10-30): the project tab's Texts & calls.
 * wave348-comms (2026-11-02): also dresses the ONE Communications surface
 * (project-comments.js — the fixed header with the Show / Audience dropdowns,
 * the main chat's list | thread panes), the project Email inbox (list |
 * reading pane), the Kind dropdown + folders, and the Pending actions card
 * (client-doorway.js). The Texts & calls TAB rule is gone with the strip.
 * Every component (rows, bubbles, call cards, tags, transcript, panel,
 * composers) is dressed by comms-view.css, unchanged. This file only fits the
 * page's three panes into the project tab: it sizes by the tab's own width
 * (a container query) instead of the window's, so the layout steps down where
 * the tab narrows — list | thread | panel, then list | thread with the panel
 * under the thread, then list OR thread. */

.pcv-root { container-type: inline-size; container-name: pcv; margin-top: 4px; }
.pcv-root .cv-layout { grid-template-columns: 260px minmax(0, 1fr) 270px; }
.pcv-root .cv-pane-side { grid-column: auto; }
.pcv-root .cv-pane-thread { min-height: 440px; }
.pcv-root .cv-stream { max-height: 58vh; }
.pcv-search { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.pcv-scopeline { font-size: var(--ds-fs-xs, 11.5px); margin: 10px 2px 0; line-height: 1.45; }
.pcv-root .pcv-none { min-height: 0; }
.pcv-none .cv-empty { min-height: 160px; }
/* the skin's `#app .btn { display: inline-flex }` outranks comms-view.css's
 * `.cv-back { display: none }`, so "← All conversations" showed beside a list
 * that is already on screen; in the tab it shows only in the one-pane layout */
body.skin-billdr #app .pcv-root .cv-back, .pcv-root .cv-back { display: none; }

@container pcv (max-width: 1079px) {
  .pcv-root .cv-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .pcv-root .cv-pane-side { grid-column: 2; }
}
@container pcv (max-width: 719px) {
  .pcv-root .cv-layout { grid-template-columns: 1fr; }
  .pcv-root .cv-pane-side { grid-column: auto; }
  .pcv-root .cv-layout.show-thread .cv-pane-list { display: none; }
  .pcv-root .cv-layout:not(.show-thread) .cv-pane-thread, .pcv-root .cv-layout:not(.show-thread) .cv-pane-side { display: none; }
  body.skin-billdr #app .pcv-root .cv-layout.show-thread .cv-back, .pcv-root .cv-layout.show-thread .cv-back { display: inline-flex; }
  .pcv-root .cv-item { max-width: 94%; }
  .pcv-root .cv-call { width: 100%; }
}

/* ---------------- wave348-comms: the one surface ---------------- */
.pcs { container-type: inline-size; container-name: pcs; }
.pcs-head { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding: 8px 0 10px; margin-bottom: 10px; background: var(--ds-surface, var(--bg, #fff)); border-bottom: 1px solid var(--ds-line, rgba(0,0,0,.1)); }
.pcs-dd, .pe-dd { display: inline-flex; flex-direction: column; gap: 3px; }
/* wave434: the conversation toggle — Internal team · Job group · Customer */
.pcs-togglewrap { display: inline-flex; flex-direction: column; gap: 3px; }
.pcs-toggle { display: inline-flex; border: 1px solid var(--ds-line, rgba(0,0,0,.18)); border-radius: 999px; overflow: hidden; background: var(--ds-surface, #fff); }
.pcs-seg { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 13px; min-height: 34px; border: 0; border-right: 1px solid var(--ds-line, rgba(0,0,0,.12)); background: transparent; color: var(--ds-navy, var(--navy, #1d2b4a)); cursor: pointer; }
.pcs-seg:last-child { border-right: 0; }
.pcs-seg:hover { background: var(--ds-tint, #e8edf3); }
.pcs-seg.on { background: var(--ds-navy, var(--navy, #1d2b4a)); color: #fff; }
.pcs-seg:disabled { opacity: .5; cursor: default; }
.pcs-seg-n { font-weight: 800; }
.pcs-dd select, .pe-dd select, .pcs-lanepick select { font: inherit; padding: 6px 28px 6px 10px; min-height: 34px; border-radius: 8px; border: 1px solid var(--ds-line, rgba(0,0,0,.18)); background: var(--ds-surface, #fff); color: inherit; max-width: 100%; }
.pcs-audline { flex: 1 1 260px; margin: 0 0 6px; font-size: var(--ds-fs-xs, 12px); line-height: 1.45; }
.pcs-chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.pcs-list { min-width: 0; display: grid; gap: 8px; align-content: start; }
.pcs-search, .pe-search { width: 100%; box-sizing: border-box; font: inherit; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--ds-line, rgba(0,0,0,.18)); }
.pcs-rows { display: grid; gap: 2px; }
.pcs-rows .conv-row { width: 100%; text-align: left; }
.pcs-listfoot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* wave487: the trade lane's two door selects (DM door + lane picker) carry
   long option labels (person · company). As shrink-wrapped flex items with
   only max-width:100% they rendered at intrinsic width (~370px), painting
   ~70px past the 300px list track under the thread pane — the Job group
   overlap. Each door now takes the foot's full row and its select is
   width-bound to the list. */
.pcs-listfoot .pcs-dmdoor, .pcs-listfoot .pcs-lanepick { flex: 1 1 100%; min-width: 0; }
.pcs-listfoot .pcs-dmdoor select, .pcs-listfoot .pcs-lanepick select { width: 100%; max-width: 100%; box-sizing: border-box; }
.pcs-wait { font-size: var(--ds-fs-xs, 12px); }
.pcs-thread { min-width: 0; min-height: 420px; }
.pcs-thread-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.pcs-thread-head .mod-h { margin: 0; }
.pcs-empty { display: grid; place-items: center; min-height: 240px; }
.pcs-shared-tag { color: var(--ds-warn, #8a5a00); font-weight: 600; }
body.skin-billdr #app .pcs .pcs-back, .pcs .pcs-back, body.skin-billdr #app .pe-back, .pe-back { display: none; }
@container pcs (max-width: 760px) {
  .pcs-chat { grid-template-columns: 1fr; }
  .pcs-chat.show-thread .pcs-list { display: none; }
  .pcs-chat:not(.show-thread) .pcs-thread { display: none; }
  body.skin-billdr #app .pcs .pcs-chat.show-thread .pcs-back, .pcs .pcs-chat.show-thread .pcs-back { display: inline-flex; margin-bottom: 8px; }
}

/* the project Email: the main inbox's list | reading pane, scoped */
.pe-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.pe-bar .pe-search { flex: 1 1 220px; width: auto; }
.pe-inbox { container-type: inline-size; container-name: peinbox; display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 10px; }
.pe-list { display: grid; gap: 2px; max-height: 70vh; overflow: auto; }
.pe-list .em-row { width: 100%; text-align: left; }
.pe-row .em-chip { margin-right: 6px; flex: none; }
.pe-row .em-row-top { display: flex; align-items: baseline; gap: 6px; }
.pe-row .em-row-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-row .em-row-meta { display: flex; gap: 8px; align-items: center; }
.pe-read { min-width: 0; }
@media (max-width: 760px) {
  .pe-inbox { grid-template-columns: 1fr; }
  .pe-inbox.show-read .pe-list { display: none; }
  .pe-inbox:not(.show-read) .pe-read { display: none; }
  body.skin-billdr #app .pe-inbox.show-read .pe-back, .pe-inbox.show-read .pe-back { display: inline-flex; margin-bottom: 8px; }
}

/* Texts & calls: the Kind dropdown beside View, the two folders */
.pcv-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.pcv-folders { display: grid; gap: 2px; margin: 6px 0 8px; }
.pcv-folders .cv-row-door.active { outline: 2px solid var(--ds-navy, #1f3a5f); outline-offset: -2px; }
.pcv-folderback { margin: 0 0 8px; font-size: var(--ds-fs-xs, 12px); }

/* the Pending actions card — the client home's cd-card dress, and the team preview */
.cd-pending .cd-pending-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cd-pending .cd-pending-go { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; text-align: left; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ds-line, rgba(0,0,0,.14)); background: var(--ds-surface-2, #f7f7f9); cursor: pointer; color: inherit; }
.cd-pending .cd-pending-go:hover, .cd-pending .cd-pending-go:focus-visible { border-color: var(--ds-navy, #1f3a5f); }
.cd-pending .cd-pending-t { font-weight: 600; }
.cd-pending .cd-pending-s { grid-column: 1; font-size: var(--ds-fs-xs, 12px); opacity: .8; }
.cd-pending .cd-pending-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; }
.cd-pending.is-team { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--ds-line, rgba(0,0,0,.2)); margin-bottom: 4px; }
.cd-pending.is-team .cd-dt { font-weight: 700; margin: 0 0 2px; }
.cd-pending.is-team .cd-note { font-size: var(--ds-fs-xs, 12px); margin: 0; opacity: .8; }
.pcs-rows > *, .pe-list > *, .pcv-folders > * { min-width: 0; }
.pcv-folders .cv-row { width: 100%; }
.pcv-folders .cv-row-prev { white-space: normal; }
